Remove the obsolete DEFMTRFUN-EXTERNAL macro
[maxima.git] / share / hompack / lisp / rhojac.lisp
blob285798ab397f768154dab3067691efc10118fc70
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-2020-04 (21D 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 double-float))
17 (in-package "HOMPACK")
20 (defun rhojac (a lambda$ x v k par ipar)
21 (declare (type (array f2cl-lib:integer4 (*)) ipar)
22 (type (f2cl-lib:integer4) k)
23 (type (double-float) lambda$)
24 (type (array double-float (*)) par v x a))
25 (f2cl-lib:with-multi-array-data
26 ((a double-float a-%data% a-%offset%)
27 (x double-float x-%data% x-%offset%)
28 (v double-float v-%data% v-%offset%)
29 (par double-float par-%data% par-%offset%)
30 (ipar f2cl-lib:integer4 ipar-%data% ipar-%offset%))
31 (prog ((j 0) (n 0) (n2 0))
32 (declare (type (f2cl-lib:integer4) n2 n j))
33 (setf n (f2cl-lib:fref ipar-%data% (1) ((1 *)) ipar-%offset%))
34 (setf n2 (f2cl-lib:int-mul 2 n))
35 (cond
36 ((= k 1)
37 (if (< lambda$ 0.0f0) (setf lambda$ (coerce 0.0f0 'double-float)))
38 (hfunp a lambda$ x par ipar)
39 (f2cl-lib:fdo (j 1 (f2cl-lib:int-add j 1))
40 ((> j n2) nil)
41 (tagbody
42 (setf (f2cl-lib:fref v-%data% (j) ((1 *)) v-%offset%)
43 (f2cl-lib:fref par-%data%
44 ((f2cl-lib:int-add
45 (f2cl-lib:fref ipar
46 ((f2cl-lib:int-add 3
47 (f2cl-lib:int-sub
49 1)))
50 ((1 *)))
51 (f2cl-lib:int-sub j 1)))
52 ((1 *))
53 par-%offset%))
54 label10))
55 (go end_label))
57 (f2cl-lib:fdo (j 1 (f2cl-lib:int-add j 1))
58 ((> j n2) nil)
59 (tagbody
60 (setf (f2cl-lib:fref v-%data% (j) ((1 *)) v-%offset%)
61 (f2cl-lib:fref par-%data%
62 ((f2cl-lib:int-add
63 (f2cl-lib:fref ipar
64 ((f2cl-lib:int-add 3
65 (f2cl-lib:int-sub
67 1)))
68 ((1 *)))
69 (f2cl-lib:int-sub j 1)
70 (f2cl-lib:int-mul n2
71 (f2cl-lib:int-sub k
72 2))))
73 ((1 *))
74 par-%offset%))
75 label20))))
76 (go end_label)
77 end_label
78 (return (values nil lambda$ nil nil nil nil nil)))))
80 (in-package #:cl-user)
81 #+#.(cl:if (cl:find-package '#:f2cl) '(and) '(or))
82 (eval-when (:load-toplevel :compile-toplevel :execute)
83 (setf (gethash 'fortran-to-lisp::rhojac
84 fortran-to-lisp::*f2cl-function-info*)
85 (fortran-to-lisp::make-f2cl-finfo
86 :arg-types '((array double-float (*)) (double-float)
87 (array double-float (*)) (array double-float (*))
88 (fortran-to-lisp::integer4) (array double-float (*))
89 (array fortran-to-lisp::integer4 (*)))
90 :return-values '(nil fortran-to-lisp::lambda$ nil nil nil nil nil)
91 :calls '(fortran-to-lisp::hfunp))))