In documentation for lreduce and rreduce, supply second argument as an explicit list
[maxima.git] / share / odepack / src / jgroup.lisp
blobd6cd07d69d9183a3fdf4ec00eb2a13c9a1e4a94a
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 jgroup (n ia ja maxg ngrp igp jgp incl jdone ier)
21 (declare (type (array f2cl-lib:integer4 (*)) jdone incl jgp igp ja ia)
22 (type (f2cl-lib:integer4) ier ngrp maxg n))
23 (f2cl-lib:with-multi-array-data
24 ((ia f2cl-lib:integer4 ia-%data% ia-%offset%)
25 (ja f2cl-lib:integer4 ja-%data% ja-%offset%)
26 (igp f2cl-lib:integer4 igp-%data% igp-%offset%)
27 (jgp f2cl-lib:integer4 jgp-%data% jgp-%offset%)
28 (incl f2cl-lib:integer4 incl-%data% incl-%offset%)
29 (jdone f2cl-lib:integer4 jdone-%data% jdone-%offset%))
30 (prog ((i 0) (j 0) (k 0) (kmin 0) (kmax 0) (ncol 0) (ng 0))
31 (declare (type (f2cl-lib:integer4) ng ncol kmax kmin k j i))
32 (setf ier 0)
33 (f2cl-lib:fdo (j 1 (f2cl-lib:int-add j 1))
34 ((> j n) nil)
35 (tagbody
36 label10
37 (setf (f2cl-lib:fref jdone-%data% (j) ((1 *)) jdone-%offset%) 0)))
38 (setf ncol 1)
39 (f2cl-lib:fdo (ng 1 (f2cl-lib:int-add ng 1))
40 ((> ng maxg) nil)
41 (tagbody
42 (setf (f2cl-lib:fref igp-%data% (ng) ((1 *)) igp-%offset%) ncol)
43 (f2cl-lib:fdo (i 1 (f2cl-lib:int-add i 1))
44 ((> i n) nil)
45 (tagbody
46 label20
47 (setf (f2cl-lib:fref incl-%data% (i) ((1 *)) incl-%offset%) 0)))
48 (f2cl-lib:fdo (j 1 (f2cl-lib:int-add j 1))
49 ((> j n) nil)
50 (tagbody
51 (if (= (f2cl-lib:fref jdone-%data% (j) ((1 *)) jdone-%offset%) 1)
52 (go label50))
53 (setf kmin (f2cl-lib:fref ia-%data% (j) ((1 *)) ia-%offset%))
54 (setf kmax
55 (f2cl-lib:int-sub
56 (f2cl-lib:fref ia-%data%
57 ((f2cl-lib:int-add j 1))
58 ((1 *))
59 ia-%offset%)
60 1))
61 (f2cl-lib:fdo (k kmin (f2cl-lib:int-add k 1))
62 ((> k kmax) nil)
63 (tagbody
64 (setf i (f2cl-lib:fref ja-%data% (k) ((1 *)) ja-%offset%))
65 (if
66 (= (f2cl-lib:fref incl-%data% (i) ((1 *)) incl-%offset%) 1)
67 (go label50))
68 label30))
69 (setf (f2cl-lib:fref jgp-%data% (ncol) ((1 *)) jgp-%offset%) j)
70 (setf ncol (f2cl-lib:int-add ncol 1))
71 (setf (f2cl-lib:fref jdone-%data% (j) ((1 *)) jdone-%offset%) 1)
72 (f2cl-lib:fdo (k kmin (f2cl-lib:int-add k 1))
73 ((> k kmax) nil)
74 (tagbody
75 (setf i (f2cl-lib:fref ja-%data% (k) ((1 *)) ja-%offset%))
76 label40
77 (setf (f2cl-lib:fref incl-%data% (i) ((1 *)) incl-%offset%)
78 1)))
79 label50))
80 (if (= ncol (f2cl-lib:fref igp-%data% (ng) ((1 *)) igp-%offset%))
81 (go label70))
82 label60))
83 (if (<= ncol n) (go label80))
84 (setf ng maxg)
85 label70
86 (setf ngrp (f2cl-lib:int-sub ng 1))
87 (go end_label)
88 label80
89 (setf ier 1)
90 (go end_label)
91 end_label
92 (return (values nil nil nil nil ngrp nil nil nil nil ier)))))
94 (in-package #:cl-user)
95 #+#.(cl:if (cl:find-package '#:f2cl) '(and) '(or))
96 (eval-when (:load-toplevel :compile-toplevel :execute)
97 (setf (gethash 'fortran-to-lisp::jgroup
98 fortran-to-lisp::*f2cl-function-info*)
99 (fortran-to-lisp::make-f2cl-finfo
100 :arg-types '((fortran-to-lisp::integer4)
101 (array fortran-to-lisp::integer4 (*))
102 (array fortran-to-lisp::integer4 (*))
103 (fortran-to-lisp::integer4) (fortran-to-lisp::integer4)
104 (array fortran-to-lisp::integer4 (*))
105 (array fortran-to-lisp::integer4 (*))
106 (array fortran-to-lisp::integer4 (*))
107 (array fortran-to-lisp::integer4 (*))
108 (fortran-to-lisp::integer4))
109 :return-values '(nil nil nil nil fortran-to-lisp::ngrp nil nil nil
110 nil fortran-to-lisp::ier)
111 :calls 'nil)))