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 powp (nnnn xxxx yyyy
)
21 (declare (type (array double-float
(*)) yyyy xxxx
)
22 (type (f2cl-lib:integer4
) nnnn
))
23 (f2cl-lib:with-multi-array-data
24 ((xxxx double-float xxxx-%data% xxxx-%offset%
)
25 (yyyy double-float yyyy-%data% yyyy-%offset%
))
26 (prog ((r 0.0) (rr 0.0) (t$
0.0) (tt 0.0))
27 (declare (type (double-float) tt t$ rr r
))
30 (setf (f2cl-lib:fref yyyy-%data%
(1) ((1 2)) yyyy-%offset%
)
31 (coerce 1.0f0
'double-float
))
32 (setf (f2cl-lib:fref yyyy-%data%
(2) ((1 2)) yyyy-%offset%
)
33 (coerce 0.0f0
'double-float
))
37 (setf (f2cl-lib:fref yyyy-%data%
(1) ((1 2)) yyyy-%offset%
)
38 (f2cl-lib:fref xxxx-%data%
(1) ((1 2)) xxxx-%offset%
))
39 (setf (f2cl-lib:fref yyyy-%data%
(2) ((1 2)) yyyy-%offset%
)
40 (f2cl-lib:fref xxxx-%data%
(2) ((1 2)) xxxx-%offset%
))
42 (setf r
(dnrm2 2 xxxx
1))
45 (setf (f2cl-lib:fref yyyy-%data%
(1) ((1 2)) yyyy-%offset%
)
46 (coerce 0.0f0
'double-float
))
47 (setf (f2cl-lib:fref yyyy-%data%
(2) ((1 2)) yyyy-%offset%
)
48 (coerce 0.0f0
'double-float
))
50 (setf rr
(expt r nnnn
))
53 (f2cl-lib:fref xxxx-%data%
(2) ((1 2)) xxxx-%offset%
)
54 (f2cl-lib:fref xxxx-%data%
(1) ((1 2)) xxxx-%offset%
)))
56 (setf (f2cl-lib:fref yyyy-%data%
(1) ((1 2)) yyyy-%offset%
)
58 (setf (f2cl-lib:fref yyyy-%data%
(2) ((1 2)) yyyy-%offset%
)
62 (return (values nil nil nil
)))))
64 (in-package #:cl-user
)
65 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
66 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
67 (setf (gethash 'fortran-to-lisp
::powp fortran-to-lisp
::*f2cl-function-info
*)
68 (fortran-to-lisp::make-f2cl-finfo
69 :arg-types
'((fortran-to-lisp::integer4
) (array double-float
(*))
70 (array double-float
(*)))
71 :return-values
'(nil nil nil
)
72 :calls
'(fortran-to-lisp::dnrm2
))))