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 (f2cl-lib:cmplx
1.0 0.0)) (zero (f2cl-lib:cmplx
0.0 0.0)))
21 (declare (type (f2cl-lib:complex16
) one
)
22 (type (f2cl-lib:complex16
) zero
)
24 (defun zhbmv (uplo n k alpha a lda x incx beta y incy
)
25 (declare (type (array f2cl-lib
:complex16
(*)) y x a
)
26 (type (f2cl-lib:complex16
) beta alpha
)
27 (type (f2cl-lib:integer4
) incy incx lda k n
)
28 (type (simple-string *) uplo
))
29 (f2cl-lib:with-multi-array-data
30 ((uplo character uplo-%data% uplo-%offset%
)
31 (a f2cl-lib
:complex16 a-%data% a-%offset%
)
32 (x f2cl-lib
:complex16 x-%data% x-%offset%
)
33 (y f2cl-lib
:complex16 y-%data% y-%offset%
))
34 (prog ((i 0) (info 0) (ix 0) (iy 0) (j 0) (jx 0) (jy 0) (kplus1 0) (kx 0)
35 (ky 0) (l 0) (temp1 #C
(0.0
0.0)) (temp2 #C
(0.0
0.0)))
36 (declare (type (f2cl-lib:integer4
) i info ix iy j jx jy kplus1 kx ky l
)
37 (type (f2cl-lib:complex16
) temp1 temp2
))
40 ((and (not (lsame uplo
"U")) (not (lsame uplo
"L")))
46 ((< lda
(f2cl-lib:int-add k
1))
54 (xerbla "ZHBMV " info
)
56 (if (or (= n
0) (and (= alpha zero
) (= beta one
))) (go end_label
))
63 (f2cl-lib:int-mul
(f2cl-lib:int-sub n
1)
71 (f2cl-lib:int-mul
(f2cl-lib:int-sub n
1)
79 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
82 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
86 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
89 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
91 (f2cl-lib:fref y-%data%
100 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
103 (setf (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
105 (setf iy
(f2cl-lib:int-add iy incy
))
108 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
111 (setf (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
113 (f2cl-lib:fref y-%data%
117 (setf iy
(f2cl-lib:int-add iy incy
))
119 (if (= alpha zero
) (go end_label
))
122 (setf kplus1
(f2cl-lib:int-add k
1))
124 ((and (= incx
1) (= incy
1))
125 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
130 (f2cl-lib:fref x-%data%
(j) ((1 *)) x-%offset%
)))
132 (setf l
(f2cl-lib:int-sub kplus1 j
))
134 (max (the f2cl-lib
:integer4
1)
135 (the f2cl-lib
:integer4
139 (f2cl-lib:int-add i
1))
141 (f2cl-lib:int-add j
(f2cl-lib:int-sub
1)))
144 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
146 (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
148 (f2cl-lib:fref a-%data%
149 ((f2cl-lib:int-add l i
) j
)
156 (f2cl-lib:fref a-%data%
157 ((f2cl-lib:int-add l i
) j
)
160 (f2cl-lib:fref x-%data%
165 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
166 (+ (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
169 (f2cl-lib:fref a-%data%
178 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
183 (f2cl-lib:fref x-%data%
(jx) ((1 *)) x-%offset%
)))
187 (setf l
(f2cl-lib:int-sub kplus1 j
))
189 (max (the f2cl-lib
:integer4
1)
190 (the f2cl-lib
:integer4
194 (f2cl-lib:int-add i
1))
196 (f2cl-lib:int-add j
(f2cl-lib:int-sub
1)))
199 (setf (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
201 (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
203 (f2cl-lib:fref a-%data%
204 ((f2cl-lib:int-add l i
) j
)
211 (f2cl-lib:fref a-%data%
212 ((f2cl-lib:int-add l i
) j
)
215 (f2cl-lib:fref x-%data%
219 (setf ix
(f2cl-lib:int-add ix incx
))
220 (setf iy
(f2cl-lib:int-add iy incy
))
222 (setf (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
223 (+ (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
226 (f2cl-lib:fref a-%data%
231 (setf jx
(f2cl-lib:int-add jx incx
))
232 (setf jy
(f2cl-lib:int-add jy incy
))
235 (setf kx
(f2cl-lib:int-add kx incx
))
236 (setf ky
(f2cl-lib:int-add ky incy
))))
240 ((and (= incx
1) (= incy
1))
241 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
246 (f2cl-lib:fref x-%data%
(j) ((1 *)) x-%offset%
)))
248 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
249 (+ (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
252 (f2cl-lib:fref a-%data%
256 (setf l
(f2cl-lib:int-sub
1 j
))
257 (f2cl-lib:fdo
(i (f2cl-lib:int-add j
1)
258 (f2cl-lib:int-add i
1))
260 (min (the f2cl-lib
:integer4 n
)
261 (the f2cl-lib
:integer4
262 (f2cl-lib:int-add j k
))))
265 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
267 (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
269 (f2cl-lib:fref a-%data%
270 ((f2cl-lib:int-add l i
) j
)
277 (f2cl-lib:fref a-%data%
278 ((f2cl-lib:int-add l i
) j
)
281 (f2cl-lib:fref x-%data%
286 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
287 (+ (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
293 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
298 (f2cl-lib:fref x-%data%
(jx) ((1 *)) x-%offset%
)))
300 (setf (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
301 (+ (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
304 (f2cl-lib:fref a-%data%
308 (setf l
(f2cl-lib:int-sub
1 j
))
311 (f2cl-lib:fdo
(i (f2cl-lib:int-add j
1)
312 (f2cl-lib:int-add i
1))
314 (min (the f2cl-lib
:integer4 n
)
315 (the f2cl-lib
:integer4
316 (f2cl-lib:int-add j k
))))
319 (setf ix
(f2cl-lib:int-add ix incx
))
320 (setf iy
(f2cl-lib:int-add iy incy
))
321 (setf (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
323 (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
325 (f2cl-lib:fref a-%data%
326 ((f2cl-lib:int-add l i
) j
)
333 (f2cl-lib:fref a-%data%
334 ((f2cl-lib:int-add l i
) j
)
337 (f2cl-lib:fref x-%data%
342 (setf (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
343 (+ (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
345 (setf jx
(f2cl-lib:int-add jx incx
))
346 (setf jy
(f2cl-lib:int-add jy incy
))
350 (return (values nil nil nil nil nil nil nil nil nil nil nil
))))))
352 (in-package #:cl-user
)
353 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
354 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
355 (setf (gethash 'fortran-to-lisp
::zhbmv fortran-to-lisp
::*f2cl-function-info
*)
356 (fortran-to-lisp::make-f2cl-finfo
357 :arg-types
'((simple-string) (fortran-to-lisp::integer4
)
358 (fortran-to-lisp::integer4
)
359 (fortran-to-lisp::complex16
)
360 (array fortran-to-lisp
::complex16
(*))
361 (fortran-to-lisp::integer4
)
362 (array fortran-to-lisp
::complex16
(*))
363 (fortran-to-lisp::integer4
)
364 (fortran-to-lisp::complex16
)
365 (array fortran-to-lisp
::complex16
(*))
366 (fortran-to-lisp::integer4
))
367 :return-values
'(nil nil nil nil nil nil nil nil nil nil nil
)
368 :calls
'(fortran-to-lisp::xerbla fortran-to-lisp
::lsame
))))