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 zhemv (uplo n 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 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) (kx 0) (ky 0)
35 (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 kx ky
)
37 (type (f2cl-lib:complex16
) 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 "ZHEMV " 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%
146 (f2cl-lib:fref a-%data%
150 (f2cl-lib:fref x-%data%
155 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
156 (+ (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
159 (f2cl-lib:fref a-%data%
168 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
173 (f2cl-lib:fref x-%data%
(jx) ((1 *)) x-%offset%
)))
177 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
179 (f2cl-lib:int-add j
(f2cl-lib:int-sub
1)))
182 (setf (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
184 (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
186 (f2cl-lib:fref a-%data%
194 (f2cl-lib:fref a-%data%
198 (f2cl-lib:fref x-%data%
202 (setf ix
(f2cl-lib:int-add ix incx
))
203 (setf iy
(f2cl-lib:int-add iy incy
))
205 (setf (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
206 (+ (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
209 (f2cl-lib:fref a-%data%
214 (setf jx
(f2cl-lib:int-add jx incx
))
215 (setf jy
(f2cl-lib:int-add jy incy
))
219 ((and (= incx
1) (= incy
1))
220 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
225 (f2cl-lib:fref x-%data%
(j) ((1 *)) x-%offset%
)))
227 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
228 (+ (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
231 (f2cl-lib:fref a-%data%
235 (f2cl-lib:fdo
(i (f2cl-lib:int-add j
1)
236 (f2cl-lib:int-add i
1))
239 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
241 (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
243 (f2cl-lib:fref a-%data%
251 (f2cl-lib:fref a-%data%
255 (f2cl-lib:fref x-%data%
260 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
261 (+ (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
267 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
272 (f2cl-lib:fref x-%data%
(jx) ((1 *)) x-%offset%
)))
274 (setf (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
275 (+ (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
278 (f2cl-lib:fref a-%data%
284 (f2cl-lib:fdo
(i (f2cl-lib:int-add j
1)
285 (f2cl-lib:int-add i
1))
288 (setf ix
(f2cl-lib:int-add ix incx
))
289 (setf iy
(f2cl-lib:int-add iy incy
))
290 (setf (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
292 (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
294 (f2cl-lib:fref a-%data%
302 (f2cl-lib:fref a-%data%
306 (f2cl-lib:fref x-%data%
311 (setf (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
312 (+ (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
314 (setf jx
(f2cl-lib:int-add jx incx
))
315 (setf jy
(f2cl-lib:int-add jy incy
))
319 (return (values nil nil nil nil nil nil nil nil nil nil
))))))
321 (in-package #-gcl
#:cl-user
#+gcl
"CL-USER")
322 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
323 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
324 (setf (gethash 'fortran-to-lisp
::zhemv fortran-to-lisp
::*f2cl-function-info
*)
325 (fortran-to-lisp::make-f2cl-finfo
326 :arg-types
'((simple-string) (fortran-to-lisp::integer4
)
327 (fortran-to-lisp::complex16
)
328 (array fortran-to-lisp
::complex16
(*))
329 (fortran-to-lisp::integer4
)
330 (array fortran-to-lisp
::complex16
(*))
331 (fortran-to-lisp::integer4
)
332 (fortran-to-lisp::complex16
)
333 (array fortran-to-lisp
::complex16
(*))
334 (fortran-to-lisp::integer4
))
335 :return-values
'(nil nil nil nil nil nil nil nil nil nil
)
336 :calls
'(fortran-to-lisp::xerbla fortran-to-lisp
::lsame
))))