In documentation for lreduce and rreduce, supply second argument as an explicit list
[maxima.git] / share / odepack / src / diprepi.lisp
blob4c190498b38621b5bb792815c6b0e4b7657bb409
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 diprepi (neq y s rwork ia ja ic jc ipflag res jac adda)
21 (declare (type (f2cl-lib:integer4) ipflag)
22 (type (array double-float (*)) rwork s y)
23 (type (array f2cl-lib:integer4 (*)) jc ic ja ia neq))
24 (let ()
25 (symbol-macrolet ((lyh (aref (dls001-part-1 *dls001-common-block*) 19))
26 (lewt (aref (dls001-part-1 *dls001-common-block*) 20))
27 (lacor (aref (dls001-part-1 *dls001-common-block*) 21))
28 (lsavf (aref (dls001-part-1 *dls001-common-block*) 22))
29 (lwm (aref (dls001-part-1 *dls001-common-block*) 23))
30 (n (aref (dls001-part-1 *dls001-common-block*) 31))
31 (istatc (aref (dlss01-part-1 *dlss01-common-block*) 2))
32 (lenyh (aref (dlss01-part-1 *dlss01-common-block*) 18))
33 (lenyhm (aref (dlss01-part-1 *dlss01-common-block*) 19))
34 (lenwk (aref (dlss01-part-1 *dlss01-common-block*) 20))
35 (lreq (aref (dlss01-part-1 *dlss01-common-block*) 21))
36 (lwmin (aref (dlss01-part-1 *dlss01-common-block*) 24)))
37 (f2cl-lib:with-multi-array-data
38 ((neq f2cl-lib:integer4 neq-%data% neq-%offset%)
39 (ia f2cl-lib:integer4 ia-%data% ia-%offset%)
40 (ja f2cl-lib:integer4 ja-%data% ja-%offset%)
41 (ic f2cl-lib:integer4 ic-%data% ic-%offset%)
42 (jc f2cl-lib:integer4 jc-%data% jc-%offset%)
43 (y double-float y-%data% y-%offset%)
44 (s double-float s-%data% s-%offset%)
45 (rwork double-float rwork-%data% rwork-%offset%))
46 (prog ((lyhn 0) (lyhd 0) (lewtn 0) (imax 0) (i 0))
47 (declare (type (f2cl-lib:integer4) i imax lewtn lyhd lyhn))
48 (setf ipflag 0)
49 (multiple-value-bind
50 (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8 var-9
51 var-10 var-11 var-12 var-13 var-14 var-15 var-16)
52 (dprepi neq y s
53 (f2cl-lib:array-slice rwork-%data%
54 double-float
55 (lyh)
56 ((1 *))
57 rwork-%offset%)
58 (f2cl-lib:array-slice rwork-%data%
59 double-float
60 (lsavf)
61 ((1 *))
62 rwork-%offset%)
63 (f2cl-lib:array-slice rwork-%data%
64 double-float
65 (lewt)
66 ((1 *))
67 rwork-%offset%)
68 (f2cl-lib:array-slice rwork-%data%
69 double-float
70 (lacor)
71 ((1 *))
72 rwork-%offset%)
73 ia ja ic jc
74 (f2cl-lib:array-slice rwork-%data%
75 double-float
76 (lwm)
77 ((1 *))
78 rwork-%offset%)
79 (f2cl-lib:array-slice rwork-%data%
80 double-float
81 (lwm)
82 ((1 *))
83 rwork-%offset%)
84 ipflag res jac adda)
85 (declare (ignore var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7
86 var-8 var-9 var-10 var-11 var-12 var-14 var-15
87 var-16))
88 (setf ipflag var-13))
89 (setf lenwk
90 (max (the f2cl-lib:integer4 lreq)
91 (the f2cl-lib:integer4 lwmin)))
92 (if (< ipflag 0) (go end_label))
93 (setf lyhn (f2cl-lib:int-add lwm lenwk))
94 (if (> lyhn lyh) (go end_label))
95 (setf lyhd (f2cl-lib:int-sub lyh lyhn))
96 (if (= lyhd 0) (go label20))
97 (setf imax (f2cl-lib:int-add (f2cl-lib:int-sub lyhn 1) lenyhm))
98 (f2cl-lib:fdo (i lyhn (f2cl-lib:int-add i 1))
99 ((> i imax) nil)
100 (tagbody
101 label10
102 (setf (f2cl-lib:fref rwork-%data% (i) ((1 *)) rwork-%offset%)
103 (f2cl-lib:fref rwork-%data%
104 ((f2cl-lib:int-add i lyhd))
105 ((1 *))
106 rwork-%offset%))))
107 (setf lyh lyhn)
108 label20
109 (setf lsavf (f2cl-lib:int-add lyh lenyh))
110 (setf lewtn (f2cl-lib:int-add lsavf n))
111 (setf lacor (f2cl-lib:int-add lewtn n))
112 (if (= istatc 3) (go label40))
113 (if (> lewtn lewt) (go end_label))
114 (f2cl-lib:fdo (i 1 (f2cl-lib:int-add i 1))
115 ((> i n) nil)
116 (tagbody
117 label30
118 (setf (f2cl-lib:fref rwork-%data%
119 ((f2cl-lib:int-sub
120 (f2cl-lib:int-add i lewtn)
122 ((1 *))
123 rwork-%offset%)
124 (f2cl-lib:fref rwork-%data%
125 ((f2cl-lib:int-sub
126 (f2cl-lib:int-add i lewt)
128 ((1 *))
129 rwork-%offset%))))
130 label40
131 (setf lewt lewtn)
132 (go end_label)
133 end_label
134 (return
135 (values nil nil nil nil nil nil nil nil ipflag nil nil nil)))))))
137 (in-package #:cl-user)
138 #+#.(cl:if (cl:find-package '#:f2cl) '(and) '(or))
139 (eval-when (:load-toplevel :compile-toplevel :execute)
140 (setf (gethash 'fortran-to-lisp::diprepi
141 fortran-to-lisp::*f2cl-function-info*)
142 (fortran-to-lisp::make-f2cl-finfo
143 :arg-types '((array fortran-to-lisp::integer4 (*))
144 (array double-float (*)) (array double-float (*))
145 (array double-float (*))
146 (array fortran-to-lisp::integer4 (*))
147 (array fortran-to-lisp::integer4 (*))
148 (array fortran-to-lisp::integer4 (*))
149 (array fortran-to-lisp::integer4 (*))
150 (fortran-to-lisp::integer4) t t t)
151 :return-values '(nil nil nil nil nil nil nil nil
152 fortran-to-lisp::ipflag nil nil nil)
153 :calls '(fortran-to-lisp::dprepi))))