In documentation for lreduce and rreduce, supply second argument as an explicit list
[maxima.git] / share / odepack / src / dsrcom.lisp
blob2fffedb7af6d589aefb721b9b92eb402b97965e8
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))
21 (declare (type (f2cl-lib:integer4) lenrls lenils))
22 (defun dsrcom (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 (symbol-macrolet ((rls dls001-rls) (ils dls001-ils))
37 (f2cl-lib:with-multi-array-data
38 ((rsav double-float rsav-%data% rsav-%offset%)
39 (isav f2cl-lib:integer4 isav-%data% isav-%offset%))
40 (prog ((i 0))
41 (declare (type (f2cl-lib:integer4) i))
42 (if (= job 2) (go label100))
43 (f2cl-lib:fdo (i 1 (f2cl-lib:int-add i 1))
44 ((> i lenrls) nil)
45 (tagbody
46 label10
47 (setf (f2cl-lib:fref rsav-%data% (i) ((1 *)) rsav-%offset%)
48 (f2cl-lib:fref rls (i) ((1 218))))))
49 (f2cl-lib:fdo (i 1 (f2cl-lib:int-add i 1))
50 ((> i lenils) nil)
51 (tagbody
52 label20
53 (setf (f2cl-lib:fref isav-%data% (i) ((1 *)) isav-%offset%)
54 (f2cl-lib:fref ils (i) ((1 37))))))
55 (go end_label)
56 label100
57 (f2cl-lib:fdo (i 1 (f2cl-lib:int-add i 1))
58 ((> i lenrls) nil)
59 (tagbody
60 label110
61 (setf (f2cl-lib:fref rls (i) ((1 218)))
62 (f2cl-lib:fref rsav-%data%
63 (i)
64 ((1 *))
65 rsav-%offset%))))
66 (f2cl-lib:fdo (i 1 (f2cl-lib:int-add i 1))
67 ((> i lenils) nil)
68 (tagbody
69 label120
70 (setf (f2cl-lib:fref ils (i) ((1 37)))
71 (f2cl-lib:fref isav-%data%
72 (i)
73 ((1 *))
74 isav-%offset%))))
75 (go end_label)
76 end_label
77 (return (values nil nil nil))))))))
79 (in-package #:cl-user)
80 #+#.(cl:if (cl:find-package '#:f2cl) '(and) '(or))
81 (eval-when (:load-toplevel :compile-toplevel :execute)
82 (setf (gethash 'fortran-to-lisp::dsrcom
83 fortran-to-lisp::*f2cl-function-info*)
84 (fortran-to-lisp::make-f2cl-finfo
85 :arg-types '((array double-float (*))
86 (array fortran-to-lisp::integer4 (*))
87 (fortran-to-lisp::integer4))
88 :return-values '(nil nil nil)
89 :calls 'nil)))