In documentation for lreduce and rreduce, supply second argument as an explicit list
[maxima.git] / share / odepack / src / adjlr.lisp
blob320d23118142ce560b4f6977b1cb3f6f2a21c8af
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 adjlr (n isp ldif)
21 (declare (type (array f2cl-lib:integer4 (*)) isp)
22 (type (f2cl-lib:integer4) ldif n))
23 (f2cl-lib:with-multi-array-data
24 ((isp f2cl-lib:integer4 isp-%data% isp-%offset%))
25 (prog ((ip 0) (jlmax 0) (jumax 0) (lnfc 0) (lsfc 0) (nzlu 0))
26 (declare (type (f2cl-lib:integer4) nzlu lsfc lnfc jumax jlmax ip))
27 (setf ip (f2cl-lib:int-add (f2cl-lib:int-mul 2 n) 1))
28 (setf jlmax (f2cl-lib:fref isp-%data% (ip) ((1 *)) isp-%offset%))
29 (setf jumax
30 (f2cl-lib:fref isp-%data%
31 ((f2cl-lib:int-add ip ip))
32 ((1 *))
33 isp-%offset%))
34 (setf nzlu
35 (f2cl-lib:int-sub
36 (f2cl-lib:int-add
37 (f2cl-lib:int-sub
38 (f2cl-lib:fref isp-%data%
39 ((f2cl-lib:int-add n 1))
40 ((1 *))
41 isp-%offset%)
42 (f2cl-lib:fref isp-%data% (1) ((1 *)) isp-%offset%))
43 (f2cl-lib:fref isp-%data%
44 ((f2cl-lib:int-add ip n 1))
45 ((1 *))
46 isp-%offset%))
47 (f2cl-lib:fref isp-%data%
48 ((f2cl-lib:int-add ip 1))
49 ((1 *))
50 isp-%offset%)))
51 (setf lsfc
52 (f2cl-lib:int-add (f2cl-lib:int-mul 12 n)
54 (f2cl-lib:int-mul 2
55 (max
56 (the f2cl-lib:integer4
57 jlmax)
58 (the f2cl-lib:integer4
59 jumax)))))
60 (setf lnfc (f2cl-lib:int-add (f2cl-lib:int-mul 9 n) 2 jlmax jumax nzlu))
61 (setf ldif
62 (max (the f2cl-lib:integer4 0)
63 (the f2cl-lib:integer4 (f2cl-lib:int-sub lsfc lnfc))))
64 (go end_label)
65 end_label
66 (return (values nil nil ldif)))))
68 (in-package #:cl-user)
69 #+#.(cl:if (cl:find-package '#:f2cl) '(and) '(or))
70 (eval-when (:load-toplevel :compile-toplevel :execute)
71 (setf (gethash 'fortran-to-lisp::adjlr fortran-to-lisp::*f2cl-function-info*)
72 (fortran-to-lisp::make-f2cl-finfo
73 :arg-types '((fortran-to-lisp::integer4)
74 (array fortran-to-lisp::integer4 (*))
75 (fortran-to-lisp::integer4))
76 :return-values '(nil nil fortran-to-lisp::ldif)
77 :calls 'nil)))