1 ;;; Compiled by f2cl version:
2 ;;; ("f2cl1.l,v 2edcbd958861 2012/05/30 03:34:52 toy $"
3 ;;; "f2cl2.l,v 96616d88fb7e 2008/02/22 22:19:34 rtoy $"
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 3fe93de3be82 2012/05/06 02:17:14 toy $"
7 ;;; "f2cl6.l,v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $"
8 ;;; "macros.l,v 3fe93de3be82 2012/05/06 02:17:14 toy $")
10 ;;; Using Lisp CMU Common Lisp 20d (20D 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))
20 (let* ((one 1.0) (zero 0.0))
21 (declare (type (double-float 1.0 1.0) one
)
22 (type (double-float 0.0 0.0) zero
)
24 (defun dsymv (uplo n alpha a lda x incx beta y incy
)
25 (declare (type (array double-float
(*)) y x a
)
26 (type (double-float) beta alpha
)
27 (type (f2cl-lib:integer4
) incy incx lda n
)
28 (type (simple-string *) uplo
))
29 (f2cl-lib:with-multi-array-data
30 ((uplo character uplo-%data% uplo-%offset%
)
31 (a double-float a-%data% a-%offset%
)
32 (x double-float x-%data% x-%offset%
)
33 (y double-float y-%data% y-%offset%
))
34 (prog ((i 0) (info 0) (ix 0) (iy 0) (j 0) (jx 0) (jy 0) (kx 0) (ky 0)
35 (temp1 0.0) (temp2 0.0))
36 (declare (type (f2cl-lib:integer4
) i info ix iy j jx jy kx ky
)
37 (type (double-float) temp1 temp2
))
40 ((and (not (lsame uplo
"U")) (not (lsame uplo
"L")))
44 ((< lda
(max (the f2cl-lib
:integer4
1) (the f2cl-lib
:integer4 n
)))
52 (xerbla "DSYMV " info
)
54 (if (or (= n
0) (and (= alpha zero
) (= beta one
))) (go end_label
))
61 (f2cl-lib:int-mul
(f2cl-lib:int-sub n
1)
69 (f2cl-lib:int-mul
(f2cl-lib:int-sub n
1)
77 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
80 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
84 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
87 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
89 (f2cl-lib:fref y-%data%
98 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
101 (setf (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
103 (setf iy
(f2cl-lib:int-add iy incy
))
106 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
109 (setf (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
111 (f2cl-lib:fref y-%data%
115 (setf iy
(f2cl-lib:int-add iy incy
))
117 (if (= alpha zero
) (go end_label
))
121 ((and (= incx
1) (= incy
1))
122 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
127 (f2cl-lib:fref x-%data%
(j) ((1 *)) x-%offset%
)))
129 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
131 (f2cl-lib:int-add j
(f2cl-lib:int-sub
1)))
134 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
136 (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
138 (f2cl-lib:fref a-%data%
145 (f2cl-lib:fref a-%data%
149 (f2cl-lib:fref x-%data%
154 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
155 (+ (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
157 (f2cl-lib:fref a-%data%
166 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
171 (f2cl-lib:fref x-%data%
(jx) ((1 *)) x-%offset%
)))
175 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
177 (f2cl-lib:int-add j
(f2cl-lib:int-sub
1)))
180 (setf (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
182 (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
184 (f2cl-lib:fref a-%data%
191 (f2cl-lib:fref a-%data%
195 (f2cl-lib:fref x-%data%
199 (setf ix
(f2cl-lib:int-add ix incx
))
200 (setf iy
(f2cl-lib:int-add iy incy
))
202 (setf (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
203 (+ (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
205 (f2cl-lib:fref a-%data%
210 (setf jx
(f2cl-lib:int-add jx incx
))
211 (setf jy
(f2cl-lib:int-add jy incy
))
215 ((and (= incx
1) (= incy
1))
216 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
221 (f2cl-lib:fref x-%data%
(j) ((1 *)) x-%offset%
)))
223 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
224 (+ (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
226 (f2cl-lib:fref a-%data%
230 (f2cl-lib:fdo
(i (f2cl-lib:int-add j
1)
231 (f2cl-lib:int-add i
1))
234 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
236 (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
238 (f2cl-lib:fref a-%data%
245 (f2cl-lib:fref a-%data%
249 (f2cl-lib:fref x-%data%
254 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
255 (+ (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
261 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
266 (f2cl-lib:fref x-%data%
(jx) ((1 *)) x-%offset%
)))
268 (setf (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
269 (+ (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
271 (f2cl-lib:fref a-%data%
277 (f2cl-lib:fdo
(i (f2cl-lib:int-add j
1)
278 (f2cl-lib:int-add i
1))
281 (setf ix
(f2cl-lib:int-add ix incx
))
282 (setf iy
(f2cl-lib:int-add iy incy
))
283 (setf (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
285 (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
287 (f2cl-lib:fref a-%data%
294 (f2cl-lib:fref a-%data%
298 (f2cl-lib:fref x-%data%
303 (setf (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
304 (+ (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
306 (setf jx
(f2cl-lib:int-add jx incx
))
307 (setf jy
(f2cl-lib:int-add jy incy
))
311 (return (values nil nil nil nil nil nil nil nil nil nil
))))))
313 (in-package #-gcl
#:cl-user
#+gcl
"CL-USER")
314 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
315 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
316 (setf (gethash 'fortran-to-lisp
::dsymv fortran-to-lisp
::*f2cl-function-info
*)
317 (fortran-to-lisp::make-f2cl-finfo
318 :arg-types
'((simple-string) (fortran-to-lisp::integer4
)
319 (double-float) (array double-float
(*))
320 (fortran-to-lisp::integer4
) (array double-float
(*))
321 (fortran-to-lisp::integer4
) (double-float)
322 (array double-float
(*)) (fortran-to-lisp::integer4
))
323 :return-values
'(nil nil nil nil nil nil nil nil nil nil
)
324 :calls
'(fortran-to-lisp::xerbla fortran-to-lisp
::lsame
))))