In documentation for lreduce and rreduce, supply second argument as an explicit list
[maxima.git] / share / odepack / src / mdm.lisp
blob3cd8e8d2e0f542fa80eced080bd4ab3228cdfb5e
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 mdm (vk tail v l last$ next mark)
21 (declare (type (array f2cl-lib:integer4 (*)) mark next last$ l v)
22 (type (f2cl-lib:integer4) tail vk))
23 (f2cl-lib:with-multi-array-data
24 ((v f2cl-lib:integer4 v-%data% v-%offset%)
25 (l f2cl-lib:integer4 l-%data% l-%offset%)
26 (last$ f2cl-lib:integer4 last$-%data% last$-%offset%)
27 (next f2cl-lib:integer4 next-%data% next-%offset%)
28 (mark f2cl-lib:integer4 mark-%data% mark-%offset%))
29 (symbol-macrolet ((vs es))
30 (prog ((tag 0) (s 0) (ls 0) (es 0) (b 0) (lb 0) (vb 0) (blp 0)
31 (blpmax 0))
32 (declare (type (f2cl-lib:integer4) blpmax blp vb lb b es vs ls s tag))
33 (setf tag (f2cl-lib:fref mark-%data% (vk) ((1 *)) mark-%offset%))
34 (setf tail vk)
35 (setf ls (f2cl-lib:fref l-%data% (vk) ((1 *)) l-%offset%))
36 label1
37 (setf s ls)
38 (if (= s 0) (go label5))
39 (setf ls (f2cl-lib:fref l-%data% (s) ((1 *)) l-%offset%))
40 (setf vs (f2cl-lib:fref v-%data% (s) ((1 *)) v-%offset%))
41 (if (< (f2cl-lib:fref next-%data% (vs) ((1 *)) next-%offset%) 0)
42 (go label2))
43 (setf (f2cl-lib:fref mark-%data% (vs) ((1 *)) mark-%offset%) tag)
44 (setf (f2cl-lib:fref l-%data% (tail) ((1 *)) l-%offset%) s)
45 (setf tail s)
46 (go label4)
47 label2
48 (setf lb (f2cl-lib:fref l-%data% (es) ((1 *)) l-%offset%))
49 (setf blpmax (f2cl-lib:fref last$-%data% (es) ((1 *)) last$-%offset%))
50 (f2cl-lib:fdo (blp 1 (f2cl-lib:int-add blp 1))
51 ((> blp blpmax) nil)
52 (tagbody
53 (setf b lb)
54 (setf lb (f2cl-lib:fref l-%data% (b) ((1 *)) l-%offset%))
55 (setf vb (f2cl-lib:fref v-%data% (b) ((1 *)) v-%offset%))
56 (if (>= (f2cl-lib:fref mark-%data% (vb) ((1 *)) mark-%offset%) tag)
57 (go label3))
58 (setf (f2cl-lib:fref mark-%data% (vb) ((1 *)) mark-%offset%) tag)
59 (setf (f2cl-lib:fref l-%data% (tail) ((1 *)) l-%offset%) b)
60 (setf tail b)
61 label3))
62 (setf (f2cl-lib:fref mark-%data% (es) ((1 *)) mark-%offset%) tag)
63 label4
64 (go label1)
65 label5
66 (setf (f2cl-lib:fref l-%data% (tail) ((1 *)) l-%offset%) 0)
67 (go end_label)
68 end_label
69 (return (values nil tail nil nil nil nil nil))))))
71 (in-package #:cl-user)
72 #+#.(cl:if (cl:find-package '#:f2cl) '(and) '(or))
73 (eval-when (:load-toplevel :compile-toplevel :execute)
74 (setf (gethash 'fortran-to-lisp::mdm fortran-to-lisp::*f2cl-function-info*)
75 (fortran-to-lisp::make-f2cl-finfo
76 :arg-types '((fortran-to-lisp::integer4) (fortran-to-lisp::integer4)
77 (array fortran-to-lisp::integer4 (*))
78 (array fortran-to-lisp::integer4 (*))
79 (array fortran-to-lisp::integer4 (*))
80 (array fortran-to-lisp::integer4 (*))
81 (array fortran-to-lisp::integer4 (*)))
82 :return-values '(nil fortran-to-lisp::tail nil nil nil nil nil)
83 :calls 'nil)))