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 dsolbt (m n a b c y ip
)
21 (declare (type (array f2cl-lib
:integer4
(*)) ip
)
22 (type (array double-float
(*)) y c b a
)
23 (type (f2cl-lib:integer4
) n m
))
24 (f2cl-lib:with-multi-array-data
25 ((a double-float a-%data% a-%offset%
)
26 (b double-float b-%data% b-%offset%
)
27 (c double-float c-%data% c-%offset%
)
28 (y double-float y-%data% y-%offset%
)
29 (ip f2cl-lib
:integer4 ip-%data% ip-%offset%
))
30 (prog ((dp 0.0d0
) (nm1 0) (nm2 0) (i 0) (k 0) (kb 0) (km1 0) (kp1 0))
31 (declare (type (f2cl-lib:integer4
) kp1 km1 kb k i nm2 nm1
)
32 (type (double-float) dp
))
33 (setf nm1
(f2cl-lib:int-sub n
1))
34 (setf nm2
(f2cl-lib:int-sub n
2))
36 (f2cl-lib:fdo
(k 2 (f2cl-lib:int-add k
1))
39 (setf km1
(f2cl-lib:int-sub k
1))
40 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
45 (f2cl-lib:array-slice c-%data%
51 (f2cl-lib:array-slice y-%data%
57 (setf (f2cl-lib:fref y-%data%
(i k
) ((1 m
) (1 n
)) y-%offset%
)
59 (f2cl-lib:fref y-%data%
(i k
) ((1 m
) (1 n
)) y-%offset%
)
63 (f2cl-lib:array-slice a-%data%
69 (f2cl-lib:array-slice ip-%data%
74 (f2cl-lib:array-slice y-%data%
81 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
87 (f2cl-lib:array-slice c-%data%
93 (f2cl-lib:array-slice y-%data%
100 (f2cl-lib:array-slice b-%data%
106 (f2cl-lib:array-slice y-%data%
112 (setf (f2cl-lib:fref y-%data%
(i n
) ((1 m
) (1 n
)) y-%offset%
)
113 (- (f2cl-lib:fref y-%data%
(i n
) ((1 m
) (1 n
)) y-%offset%
)
117 (f2cl-lib:array-slice a-%data%
123 (f2cl-lib:array-slice ip-%data%
128 (f2cl-lib:array-slice y-%data%
134 (f2cl-lib:fdo
(kb 1 (f2cl-lib:int-add kb
1))
137 (setf k
(f2cl-lib:int-sub n kb
))
138 (setf kp1
(f2cl-lib:int-add k
1))
139 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
144 (f2cl-lib:array-slice b-%data%
150 (f2cl-lib:array-slice y-%data%
156 (setf (f2cl-lib:fref y-%data%
(i k
) ((1 m
) (1 n
)) y-%offset%
)
158 (f2cl-lib:fref y-%data%
(i k
) ((1 m
) (1 n
)) y-%offset%
)
162 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
167 (f2cl-lib:array-slice c-%data%
173 (f2cl-lib:array-slice y-%data%
179 (setf (f2cl-lib:fref y-%data%
(i 1) ((1 m
) (1 n
)) y-%offset%
)
180 (- (f2cl-lib:fref y-%data%
(i 1) ((1 m
) (1 n
)) y-%offset%
)
185 (return (values nil nil nil nil nil nil nil
)))))
187 (in-package #:cl-user
)
188 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
189 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
190 (setf (gethash 'fortran-to-lisp
::dsolbt
191 fortran-to-lisp
::*f2cl-function-info
*)
192 (fortran-to-lisp::make-f2cl-finfo
193 :arg-types
'((fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
194 (array double-float
(*)) (array double-float
(*))
195 (array double-float
(*)) (array double-float
(*))
196 (array fortran-to-lisp
::integer4
(*)))
197 :return-values
'(nil nil nil nil nil nil nil
)
198 :calls
'(fortran-to-lisp::ddot fortran-to-lisp
::dgesl
))))