In documentation for lreduce and rreduce, supply second argument as an explicit list
[maxima.git] / share / odepack / src / dsolsy.lisp
blobf73657d36a0dca22c3649a610918265ee00ed841
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-2017-01 (21B Unicode)
11 ;;;
12 ;;; Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
13 ;;; (:coerce-assigns :as-needed) (:array-type ':simple-array)
14 ;;; (:array-slicing t) (:declare-common nil)
15 ;;; (:float-format double-float))
17 (in-package "ODEPACK")
20 (defun dsolsy (wm iwm x tem)
21 (declare (type (array f2cl-lib:integer4 (*)) iwm)
22 (type (array double-float (*)) tem x wm))
23 (let ()
24 (symbol-macrolet ((el0 (aref (dls001-part-0 *dls001-common-block*) 210))
25 (h (aref (dls001-part-0 *dls001-common-block*) 211))
26 (iersl (aref (dls001-part-1 *dls001-common-block*) 14))
27 (miter (aref (dls001-part-1 *dls001-common-block*) 26))
28 (n (aref (dls001-part-1 *dls001-common-block*) 31)))
29 (prog ((mu 0) (ml 0) (meband 0) (i 0) (r 0.0) (phl0 0.0) (hl0 0.0)
30 (di 0.0))
31 (declare (type (double-float) di hl0 phl0 r)
32 (type (f2cl-lib:integer4) i meband ml mu))
33 (setf iersl 0)
34 (f2cl-lib:computed-goto (label100 label100 label300 label400 label400)
35 miter)
36 label100
37 (dgesl (f2cl-lib:array-slice wm double-float (3) ((1 *))) n n
38 (f2cl-lib:array-slice iwm f2cl-lib:integer4 (21) ((1 *))) x 0)
39 (go end_label)
40 label300
41 (setf phl0 (f2cl-lib:fref wm (2) ((1 *))))
42 (setf hl0 (* h el0))
43 (setf (f2cl-lib:fref wm (2) ((1 *))) hl0)
44 (if (= hl0 phl0) (go label330))
45 (setf r (/ hl0 phl0))
46 (f2cl-lib:fdo (i 1 (f2cl-lib:int-add i 1))
47 ((> i n) nil)
48 (tagbody
49 (setf di
50 (- 1.0
51 (* r
52 (+ 1.0
53 (/ -1.0
54 (f2cl-lib:fref wm
55 ((f2cl-lib:int-add i 2))
56 ((1 *))))))))
57 (if (= (abs di) 0.0) (go label390))
58 label320
59 (setf (f2cl-lib:fref wm ((f2cl-lib:int-add i 2)) ((1 *)))
60 (/ 1.0 di))))
61 label330
62 (f2cl-lib:fdo (i 1 (f2cl-lib:int-add i 1))
63 ((> i n) nil)
64 (tagbody
65 label340
66 (setf (f2cl-lib:fref x (i) ((1 *)))
67 (* (f2cl-lib:fref wm ((f2cl-lib:int-add i 2)) ((1 *)))
68 (f2cl-lib:fref x (i) ((1 *)))))))
69 (go end_label)
70 label390
71 (setf iersl 1)
72 (go end_label)
73 label400
74 (setf ml (f2cl-lib:fref iwm (1) ((1 *))))
75 (setf mu (f2cl-lib:fref iwm (2) ((1 *))))
76 (setf meband (f2cl-lib:int-add (f2cl-lib:int-mul 2 ml) mu 1))
77 (dgbsl (f2cl-lib:array-slice wm double-float (3) ((1 *))) meband n ml
78 mu (f2cl-lib:array-slice iwm f2cl-lib:integer4 (21) ((1 *))) x 0)
79 (go end_label)
80 end_label
81 (return (values nil nil nil nil))))))
83 (in-package #:cl-user)
84 #+#.(cl:if (cl:find-package '#:f2cl) '(and) '(or))
85 (eval-when (:load-toplevel :compile-toplevel :execute)
86 (setf (gethash 'fortran-to-lisp::dsolsy
87 fortran-to-lisp::*f2cl-function-info*)
88 (fortran-to-lisp::make-f2cl-finfo
89 :arg-types '((array double-float (*))
90 (array fortran-to-lisp::integer4 (*))
91 (array double-float (*)) (array double-float (*)))
92 :return-values '(nil nil nil nil)
93 :calls '(fortran-to-lisp::dgbsl fortran-to-lisp::dgesl))))