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 strptp (n icount ideg r x
)
21 (declare (type (array double-float
(*)) x r
)
22 (type (array f2cl-lib
:integer4
(*)) ideg icount
)
23 (type (f2cl-lib:integer4
) n
))
24 (f2cl-lib:with-multi-array-data
25 ((icount f2cl-lib
:integer4 icount-%data% icount-%offset%
)
26 (ideg f2cl-lib
:integer4 ideg-%data% ideg-%offset%
)
27 (r double-float r-%data% r-%offset%
)
28 (x double-float x-%data% x-%offset%
))
29 (prog ((xxxx (make-array 2 :element-type
'double-float
)) (twopi 0.0)
31 (declare (type (f2cl-lib:integer4
) j
)
32 (type (array double-float
(2)) xxxx
)
33 (type (double-float) angle twopi
))
34 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
38 ((>= (f2cl-lib:fref icount
(j) ((1 n
)))
39 (f2cl-lib:fref ideg
(j) ((1 n
))))
40 (setf (f2cl-lib:fref icount-%data%
(j) ((1 n
)) icount-%offset%
) 1))
42 (setf (f2cl-lib:fref icount-%data%
(j) ((1 n
)) icount-%offset%
)
44 (f2cl-lib:fref icount-%data%
(j) ((1 n
)) icount-%offset%
)
49 (setf twopi
(coerce (* 8.0f0
(atan 1.0f0
)) 'double-float
))
50 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
56 (f2cl-lib:fref ideg-%data%
(j) ((1 n
)) ideg-%offset%
))
57 (f2cl-lib:fref icount-%data%
(j) ((1 n
)) icount-%offset%
)))
58 (setf (f2cl-lib:fref xxxx
(1) ((1 2))) (cos angle
))
59 (setf (f2cl-lib:fref xxxx
(2) ((1 2))) (sin angle
))
61 (f2cl-lib:array-slice r-%data%
66 (f2cl-lib:array-slice x-%data%
74 (return (values nil nil nil nil nil
)))))
76 (in-package #:cl-user
)
77 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
78 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
79 (setf (gethash 'fortran-to-lisp
::strptp
80 fortran-to-lisp
::*f2cl-function-info
*)
81 (fortran-to-lisp::make-f2cl-finfo
82 :arg-types
'((fortran-to-lisp::integer4
)
83 (array fortran-to-lisp
::integer4
(*))
84 (array fortran-to-lisp
::integer4
(*))
85 (array double-float
(*)) (array double-float
(*)))
86 :return-values
'(nil nil nil nil nil
)
87 :calls
'(fortran-to-lisp::mulp
))))