Remove the obsolete DEFMTRFUN-EXTERNAL macro
[maxima.git] / share / hompack / lisp / rho.lisp
blobefe9bcb48740c9b3942da35ebf961a7fd5dcbad6
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 rho (a lambda$ x v par ipar)
21 (declare (type (array f2cl-lib:integer4 (*)) ipar)
22 (type (double-float) lambda$)
23 (type (array double-float (*)) par v x a))
24 (f2cl-lib:with-multi-array-data
25 ((a double-float a-%data% a-%offset%)
26 (x double-float x-%data% x-%offset%)
27 (v double-float v-%data% v-%offset%)
28 (par double-float par-%data% par-%offset%)
29 (ipar f2cl-lib:integer4 ipar-%data% ipar-%offset%))
30 (prog ((j 0) (n 0))
31 (declare (type (f2cl-lib:integer4) n j))
32 (if (< lambda$ 0.0f0) (setf lambda$ (coerce 0.0f0 'double-float)))
33 (hfunp a lambda$ x par ipar)
34 (setf n (f2cl-lib:fref ipar-%data% (1) ((1 *)) ipar-%offset%))
35 (f2cl-lib:fdo (j 1 (f2cl-lib:int-add j 1))
36 ((> j (f2cl-lib:int-mul 2 n)) nil)
37 (tagbody
38 (setf (f2cl-lib:fref v-%data% (j) ((1 *)) v-%offset%)
39 (f2cl-lib:fref par-%data%
40 ((f2cl-lib:int-add
41 (f2cl-lib:fref ipar
42 ((f2cl-lib:int-add 3
43 (f2cl-lib:int-sub
45 1)))
46 ((1 *)))
47 (f2cl-lib:int-sub j 1)))
48 ((1 *))
49 par-%offset%))
50 label10))
51 (go end_label)
52 end_label
53 (return (values nil lambda$ nil nil nil nil)))))
55 (in-package #:cl-user)
56 #+#.(cl:if (cl:find-package '#:f2cl) '(and) '(or))
57 (eval-when (:load-toplevel :compile-toplevel :execute)
58 (setf (gethash 'fortran-to-lisp::rho fortran-to-lisp::*f2cl-function-info*)
59 (fortran-to-lisp::make-f2cl-finfo
60 :arg-types '((array double-float (*)) (double-float)
61 (array double-float (*)) (array double-float (*))
62 (array double-float (*))
63 (array fortran-to-lisp::integer4 (*)))
64 :return-values '(nil fortran-to-lisp::lambda$ nil nil nil nil)
65 :calls '(fortran-to-lisp::hfunp))))