In documentation for lreduce and rreduce, supply second argument as an explicit list
[maxima.git] / share / odepack / src / md.lisp
blobaab529c0ce97de2bacdfb6d90f32bb4c2003571c
1 ;;; Compiled by f2cl version:
2 ;;; ("f2cl1.l,v 95098eb54f13 2013/04/01 00:45:16 toy $"
3 ;;; "f2cl2.l,v 95098eb54f13 2013/04/01 00:45:16 toy $"
4 ;;; "f2cl3.l,v 96616d88fb7e 2008/02/22 22:19:34 rtoy $"
5 ;;; "f2cl4.l,v 96616d88fb7e 2008/02/22 22:19:34 rtoy $"
6 ;;; "f2cl5.l,v 95098eb54f13 2013/04/01 00:45:16 toy $"
7 ;;; "f2cl6.l,v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $"
8 ;;; "macros.l,v 1409c1352feb 2013/03/24 20:44:50 toy $")
10 ;;; Using Lisp CMU Common Lisp snapshot-2013-11 (20E Unicode)
11 ;;;
12 ;;; Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
13 ;;; (:coerce-assigns :as-needed) (:array-type ':array)
14 ;;; (:array-slicing t) (:declare-common nil)
15 ;;; (:float-format single-float))
17 (in-package "ODEPACK")
20 (defun md (n ia ja max v l head last$ next mark flag)
21 (declare (type (array f2cl-lib:integer4 (*)) mark next last$ head l v ja ia)
22 (type (f2cl-lib:integer4) flag max n))
23 (f2cl-lib:with-multi-array-data
24 ((ia f2cl-lib:integer4 ia-%data% ia-%offset%)
25 (ja f2cl-lib:integer4 ja-%data% ja-%offset%)
26 (v f2cl-lib:integer4 v-%data% v-%offset%)
27 (l f2cl-lib:integer4 l-%data% l-%offset%)
28 (head f2cl-lib:integer4 head-%data% head-%offset%)
29 (last$ f2cl-lib:integer4 last$-%data% last$-%offset%)
30 (next f2cl-lib:integer4 next-%data% next-%offset%)
31 (mark f2cl-lib:integer4 mark-%data% mark-%offset%))
32 (symbol-macrolet ((vk ek))
33 (prog ((tag 0) (dmin 0) (ek 0) (tail 0) (k 0))
34 (declare (type (f2cl-lib:integer4) k tail ek vk dmin tag))
35 (setf tag 0)
36 (multiple-value-bind
37 (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8 var-9
38 var-10 var-11)
39 (mdi n ia ja max v l head last$ next mark tag flag)
40 (declare (ignore var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7
41 var-8 var-9 var-10))
42 (setf flag var-11))
43 (if (/= flag 0) (go end_label))
44 (setf k 0)
45 (setf dmin 1)
46 label1
47 (if (>= k n) (go label4))
48 label2
49 (if (> (f2cl-lib:fref head-%data% (dmin) ((1 *)) head-%offset%) 0)
50 (go label3))
51 (setf dmin (f2cl-lib:int-add dmin 1))
52 (go label2)
53 label3
54 (setf vk (f2cl-lib:fref head-%data% (dmin) ((1 *)) head-%offset%))
55 (setf (f2cl-lib:fref head-%data% (dmin) ((1 *)) head-%offset%)
56 (f2cl-lib:fref next-%data% (vk) ((1 *)) next-%offset%))
57 (if (> (f2cl-lib:fref head-%data% (dmin) ((1 *)) head-%offset%) 0)
58 (setf (f2cl-lib:fref last$-%data%
59 ((f2cl-lib:fref head (dmin) ((1 *))))
60 ((1 *))
61 last$-%offset%)
62 (f2cl-lib:int-sub dmin)))
63 (setf k (f2cl-lib:int-add k 1))
64 (setf (f2cl-lib:fref next-%data% (vk) ((1 *)) next-%offset%)
65 (f2cl-lib:int-sub k))
66 (setf (f2cl-lib:fref last$-%data% (ek) ((1 *)) last$-%offset%)
67 (f2cl-lib:int-sub dmin 1))
68 (setf tag
69 (f2cl-lib:int-add tag
70 (f2cl-lib:fref last$-%data%
71 (ek)
72 ((1 *))
73 last$-%offset%)))
74 (setf (f2cl-lib:fref mark-%data% (vk) ((1 *)) mark-%offset%) tag)
75 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5 var-6)
76 (mdm vk tail v l last$ next mark)
77 (declare (ignore var-0 var-2 var-3 var-4 var-5 var-6))
78 (setf tail var-1))
79 (multiple-value-bind
80 (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8)
81 (mdp k ek tail v l head last$ next mark)
82 (declare (ignore var-1 var-3 var-4 var-5 var-6 var-7 var-8))
83 (setf k var-0)
84 (setf tail var-2))
85 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7)
86 (mdu ek dmin v l head last$ next mark)
87 (declare (ignore var-0 var-2 var-3 var-4 var-5 var-6 var-7))
88 (setf dmin var-1))
89 (go label1)
90 label4
91 (f2cl-lib:fdo (k 1 (f2cl-lib:int-add k 1))
92 ((> k n) nil)
93 (tagbody
94 (setf (f2cl-lib:fref next-%data% (k) ((1 *)) next-%offset%)
95 (f2cl-lib:int-sub
96 (f2cl-lib:fref next-%data% (k) ((1 *)) next-%offset%)))
97 label5
98 (setf (f2cl-lib:fref last$-%data%
99 ((f2cl-lib:fref next (k) ((1 *))))
100 ((1 *))
101 last$-%offset%)
102 k)))
103 (go end_label)
104 end_label
105 (return (values nil nil nil nil nil nil nil nil nil nil flag))))))
107 (in-package #:cl-user)
108 #+#.(cl:if (cl:find-package '#:f2cl) '(and) '(or))
109 (eval-when (:load-toplevel :compile-toplevel :execute)
110 (setf (gethash 'fortran-to-lisp::md fortran-to-lisp::*f2cl-function-info*)
111 (fortran-to-lisp::make-f2cl-finfo
112 :arg-types '((fortran-to-lisp::integer4)
113 (array fortran-to-lisp::integer4 (*))
114 (array fortran-to-lisp::integer4 (*))
115 (fortran-to-lisp::integer4)
116 (array fortran-to-lisp::integer4 (*))
117 (array fortran-to-lisp::integer4 (*))
118 (array fortran-to-lisp::integer4 (*))
119 (array fortran-to-lisp::integer4 (*))
120 (array fortran-to-lisp::integer4 (*))
121 (array fortran-to-lisp::integer4 (*))
122 (fortran-to-lisp::integer4))
123 :return-values '(nil nil nil nil nil nil nil nil nil nil
124 fortran-to-lisp::flag)
125 :calls '(fortran-to-lisp::mdu fortran-to-lisp::mdp
126 fortran-to-lisp::mdm fortran-to-lisp::mdi))))