In documentation for lreduce and rreduce, supply second argument as an explicit list
[maxima.git] / share / odepack / src / dsrcpk.lisp
blob68b5fadf25affb3db7efd4175954791436d16f1a
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 (let ((lenrls 218) (lenils 37) (lenrlp 4) (lenilp 13))
21 (declare (type (f2cl-lib:integer4) lenrls lenils lenrlp lenilp))
22 (defun dsrcpk (rsav isav job)
23 (declare (type (f2cl-lib:integer4) job)
24 (type (array f2cl-lib:integer4 (*)) isav)
25 (type (array double-float (*)) rsav))
26 (let ((dls001-rls
27 (make-array 218
28 :element-type 'double-float
29 :displaced-to (dls001-part-0 *dls001-common-block*)
30 :displaced-index-offset 0))
31 (dls001-ils
32 (make-array 37
33 :element-type 'f2cl-lib:integer4
34 :displaced-to (dls001-part-1 *dls001-common-block*)
35 :displaced-index-offset 0))
36 (dlpk01-rlsp
37 (make-array 4
38 :element-type 'double-float
39 :displaced-to (dlpk01-part-0 *dlpk01-common-block*)
40 :displaced-index-offset 0))
41 (dlpk01-ilsp
42 (make-array 13
43 :element-type 'f2cl-lib:integer4
44 :displaced-to (dlpk01-part-1 *dlpk01-common-block*)
45 :displaced-index-offset 0)))
46 (symbol-macrolet ((rls dls001-rls)
47 (ils dls001-ils)
48 (rlsp dlpk01-rlsp)
49 (ilsp dlpk01-ilsp))
50 (f2cl-lib:with-multi-array-data
51 ((rsav double-float rsav-%data% rsav-%offset%)
52 (isav f2cl-lib:integer4 isav-%data% isav-%offset%))
53 (prog ((i 0))
54 (declare (type (f2cl-lib:integer4) i))
55 (if (= job 2) (go label100))
56 (dcopy lenrls rls 1 rsav 1)
57 (dcopy lenrlp rlsp 1
58 (f2cl-lib:array-slice rsav-%data%
59 double-float
60 ((+ lenrls 1))
61 ((1 *))
62 rsav-%offset%)
64 (f2cl-lib:fdo (i 1 (f2cl-lib:int-add i 1))
65 ((> i lenils) nil)
66 (tagbody
67 label20
68 (setf (f2cl-lib:fref isav-%data% (i) ((1 *)) isav-%offset%)
69 (f2cl-lib:fref ils (i) ((1 37))))))
70 (f2cl-lib:fdo (i 1 (f2cl-lib:int-add i 1))
71 ((> i lenilp) nil)
72 (tagbody
73 label40
74 (setf (f2cl-lib:fref isav-%data%
75 ((f2cl-lib:int-add lenils i))
76 ((1 *))
77 isav-%offset%)
78 (f2cl-lib:fref ilsp (i) ((1 13))))))
79 (go end_label)
80 label100
81 (dcopy lenrls rsav 1 rls 1)
82 (dcopy lenrlp
83 (f2cl-lib:array-slice rsav-%data%
84 double-float
85 ((+ lenrls 1))
86 ((1 *))
87 rsav-%offset%)
88 1 rlsp 1)
89 (f2cl-lib:fdo (i 1 (f2cl-lib:int-add i 1))
90 ((> i lenils) nil)
91 (tagbody
92 label120
93 (setf (f2cl-lib:fref ils (i) ((1 37)))
94 (f2cl-lib:fref isav-%data%
95 (i)
96 ((1 *))
97 isav-%offset%))))
98 (f2cl-lib:fdo (i 1 (f2cl-lib:int-add i 1))
99 ((> i lenilp) nil)
100 (tagbody
101 label140
102 (setf (f2cl-lib:fref ilsp (i) ((1 13)))
103 (f2cl-lib:fref isav-%data%
104 ((f2cl-lib:int-add lenils i))
105 ((1 *))
106 isav-%offset%))))
107 (go end_label)
108 end_label
109 (return (values nil nil nil))))))))
111 (in-package #:cl-user)
112 #+#.(cl:if (cl:find-package '#:f2cl) '(and) '(or))
113 (eval-when (:load-toplevel :compile-toplevel :execute)
114 (setf (gethash 'fortran-to-lisp::dsrcpk
115 fortran-to-lisp::*f2cl-function-info*)
116 (fortran-to-lisp::make-f2cl-finfo
117 :arg-types '((array double-float (*))
118 (array fortran-to-lisp::integer4 (*))
119 (fortran-to-lisp::integer4))
120 :return-values '(nil nil nil)
121 :calls '(fortran-to-lisp::dcopy))))