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-2013-11 (20E 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 single-float))
17 (in-package "ODEPACK")
20 (defun datp (neq y savf p wght hl0 wk f w
)
21 (declare (type (double-float) hl0
)
22 (type (array double-float
(*)) w wk wght p savf y
)
23 (type (array f2cl-lib
:integer4
(*)) neq
))
25 (symbol-macrolet ((tn (aref (dls001-part-0 *dls001-common-block
*) 216))
26 (n (aref (dls001-part-1 *dls001-common-block
*) 31))
27 (nfe (aref (dls001-part-1 *dls001-common-block
*) 34)))
28 (f2cl-lib:with-multi-array-data
29 ((neq f2cl-lib
:integer4 neq-%data% neq-%offset%
)
30 (y double-float y-%data% y-%offset%
)
31 (savf double-float savf-%data% savf-%offset%
)
32 (p double-float p-%data% p-%offset%
)
33 (wght double-float wght-%data% wght-%offset%
)
34 (wk double-float wk-%data% wk-%offset%
)
35 (w double-float w-%data% w-%offset%
))
36 (prog ((i 0) (rpnrm 0.0d0
) (pnrm 0.0d0
) (fac 0.0d0
))
37 (declare (type (double-float) fac pnrm rpnrm
)
38 (type (f2cl-lib:integer4
) i
))
39 (setf pnrm
(dvnorm n p wght
))
40 (setf rpnrm
(/ 1.0d0 pnrm
))
42 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
46 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
47 (+ (f2cl-lib:fref w-%data%
(i) ((1 *)) w-%offset%
)
48 (* (f2cl-lib:fref p-%data%
(i) ((1 *)) p-%offset%
)
50 (multiple-value-bind (var-0 var-1 var-2 var-3
)
51 (funcall f neq tn y wk
)
52 (declare (ignore var-0 var-2 var-3
))
55 (setf nfe
(f2cl-lib:int-add nfe
1))
57 (setf fac
(* hl0 pnrm
))
58 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
62 (setf (f2cl-lib:fref w-%data%
(i) ((1 *)) w-%offset%
)
63 (- (f2cl-lib:fref p-%data%
(i) ((1 *)) p-%offset%
)
66 (f2cl-lib:fref wk-%data%
(i) ((1 *)) wk-%offset%
)
67 (f2cl-lib:fref savf-%data%
73 (return (values nil nil nil nil nil nil nil nil nil
)))))))
75 (in-package #-gcl
#:cl-user
#+gcl
"CL-USER")
76 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
77 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
78 (setf (gethash 'fortran-to-lisp
::datp fortran-to-lisp
::*f2cl-function-info
*)
79 (fortran-to-lisp::make-f2cl-finfo
80 :arg-types
'((array fortran-to-lisp
::integer4
(*))
81 (array double-float
(*)) (array double-float
(*))
82 (array double-float
(*)) (array double-float
(*))
83 (double-float) (array double-float
(*)) t
84 (array double-float
(*)))
85 :return-values
'(nil nil nil nil nil nil nil nil nil
)
86 :calls
'(fortran-to-lisp::dcopy fortran-to-lisp
::dvnorm
))))