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)
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 gfunp (n ideg pdg qdg x xdgm1 xdg pxdgm1 pxdg g dg
)
21 (declare (type (array double-float
(*)) dg g pxdg pxdgm1 xdg xdgm1 x qdg pdg
)
22 (type (array f2cl-lib
:integer4
(*)) ideg
)
23 (type (f2cl-lib:integer4
) n
))
24 (f2cl-lib:with-multi-array-data
25 ((ideg f2cl-lib
:integer4 ideg-%data% ideg-%offset%
)
26 (pdg double-float pdg-%data% pdg-%offset%
)
27 (qdg double-float qdg-%data% qdg-%offset%
)
28 (x double-float x-%data% x-%offset%
)
29 (xdgm1 double-float xdgm1-%data% xdgm1-%offset%
)
30 (xdg double-float xdg-%data% xdg-%offset%
)
31 (pxdgm1 double-float pxdgm1-%data% pxdgm1-%offset%
)
32 (pxdg double-float pxdg-%data% pxdg-%offset%
)
33 (g double-float g-%data% g-%offset%
)
34 (dg double-float dg-%data% dg-%offset%
))
36 (declare (type (f2cl-lib:integer4
) j i
))
37 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
42 (f2cl-lib:fref ideg-%data%
(j) ((1 n
)) ideg-%offset%
)
44 (f2cl-lib:array-slice x-%data%
49 (f2cl-lib:array-slice xdgm1-%data%
55 (f2cl-lib:array-slice x-%data%
60 (f2cl-lib:array-slice xdgm1-%data%
65 (f2cl-lib:array-slice xdg-%data%
71 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
75 (f2cl-lib:array-slice pdg-%data%
80 (f2cl-lib:array-slice xdgm1-%data%
85 (f2cl-lib:array-slice pxdgm1-%data%
91 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
95 (f2cl-lib:array-slice pdg-%data%
100 (f2cl-lib:array-slice xdg-%data%
105 (f2cl-lib:array-slice pxdg-%data%
111 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
114 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
117 (setf (f2cl-lib:fref g-%data%
(i j
) ((1 2) (1 n
)) g-%offset%
)
119 (f2cl-lib:fref pxdg-%data%
123 (f2cl-lib:fref qdg-%data%
127 (setf (f2cl-lib:fref dg-%data%
(i j
) ((1 2) (1 n
)) dg-%offset%
)
128 (* (f2cl-lib:fref ideg-%data%
(j) ((1 n
)) ideg-%offset%
)
129 (f2cl-lib:fref pxdgm1-%data%
137 (return (values nil nil nil nil nil nil nil nil nil nil nil
)))))
139 (in-package #:cl-user
)
140 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
141 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
142 (setf (gethash 'fortran-to-lisp
::gfunp fortran-to-lisp
::*f2cl-function-info
*)
143 (fortran-to-lisp::make-f2cl-finfo
144 :arg-types
'((fortran-to-lisp::integer4
)
145 (array fortran-to-lisp
::integer4
(*))
146 (array double-float
(*)) (array double-float
(*))
147 (array double-float
(*)) (array double-float
(*))
148 (array double-float
(*)) (array double-float
(*))
149 (array double-float
(*)) (array double-float
(*))
150 (array double-float
(*)))
151 :return-values
'(nil nil nil nil nil nil nil nil nil nil nil
)
152 :calls
'(fortran-to-lisp::mulp fortran-to-lisp
::powp
))))