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 zhpmv (uplo n alpha ap x incx beta y incy
)
25 (declare (type (array f2cl-lib
:complex16
(*)) y x ap
)
26 (type (f2cl-lib:complex16
) beta alpha
)
27 (type (f2cl-lib:integer4
) incy incx n
)
28 (type (simple-string *) uplo
))
29 (f2cl-lib:with-multi-array-data
30 ((uplo character uplo-%data% uplo-%offset%
)
31 (ap f2cl-lib
:complex16 ap-%data% ap-%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) (k 0) (kk 0)
35 (kx 0) (ky 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 k kk kx ky
)
37 (type (f2cl-lib:complex16
) temp1 temp2
))
40 ((and (not (lsame uplo
"U")) (not (lsame uplo
"L")))
50 (xerbla "ZHPMV " info
)
52 (if (or (= n
0) (and (= alpha zero
) (= beta one
))) (go end_label
))
59 (f2cl-lib:int-mul
(f2cl-lib:int-sub n
1)
67 (f2cl-lib:int-mul
(f2cl-lib:int-sub n
1)
75 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
78 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
82 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
85 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
87 (f2cl-lib:fref y-%data%
96 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
99 (setf (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
101 (setf iy
(f2cl-lib:int-add iy incy
))
104 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
107 (setf (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
109 (f2cl-lib:fref y-%data%
113 (setf iy
(f2cl-lib:int-add iy incy
))
115 (if (= alpha zero
) (go end_label
))
120 ((and (= incx
1) (= incy
1))
121 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
126 (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 ap-%data%
146 (f2cl-lib:fref ap-%data%
150 (f2cl-lib:fref x-%data%
154 (setf k
(f2cl-lib:int-add k
1))
156 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
157 (+ (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
160 (f2cl-lib:fref ap-%data%
162 (f2cl-lib:int-add kk j
)
167 (setf kk
(f2cl-lib:int-add kk j
))
172 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
177 (f2cl-lib:fref x-%data%
(jx) ((1 *)) x-%offset%
)))
181 (f2cl-lib:fdo
(k kk
(f2cl-lib:int-add k
1))
185 (f2cl-lib:int-sub
2)))
188 (setf (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
190 (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
192 (f2cl-lib:fref ap-%data%
200 (f2cl-lib:fref ap-%data%
204 (f2cl-lib:fref x-%data%
208 (setf ix
(f2cl-lib:int-add ix incx
))
209 (setf iy
(f2cl-lib:int-add iy incy
))
211 (setf (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
212 (+ (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
215 (f2cl-lib:fref ap-%data%
217 (f2cl-lib:int-add kk j
)
222 (setf jx
(f2cl-lib:int-add jx incx
))
223 (setf jy
(f2cl-lib:int-add jy incy
))
224 (setf kk
(f2cl-lib:int-add kk j
))
228 ((and (= incx
1) (= incy
1))
229 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
234 (f2cl-lib:fref x-%data%
(j) ((1 *)) x-%offset%
)))
236 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
237 (+ (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
240 (f2cl-lib:fref ap-%data%
244 (setf k
(f2cl-lib:int-add kk
1))
245 (f2cl-lib:fdo
(i (f2cl-lib:int-add j
1)
246 (f2cl-lib:int-add i
1))
249 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
251 (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
253 (f2cl-lib:fref ap-%data%
261 (f2cl-lib:fref ap-%data%
265 (f2cl-lib:fref x-%data%
269 (setf k
(f2cl-lib:int-add k
1))
271 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
272 (+ (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
277 (f2cl-lib:int-sub n j
)
283 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
288 (f2cl-lib:fref x-%data%
(jx) ((1 *)) x-%offset%
)))
290 (setf (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
291 (+ (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
294 (f2cl-lib:fref ap-%data%
300 (f2cl-lib:fdo
(k (f2cl-lib:int-add kk
1)
301 (f2cl-lib:int-add k
1))
305 (f2cl-lib:int-sub j
)))
308 (setf ix
(f2cl-lib:int-add ix incx
))
309 (setf iy
(f2cl-lib:int-add iy incy
))
310 (setf (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
312 (f2cl-lib:fref y-%data%
(iy) ((1 *)) y-%offset%
)
314 (f2cl-lib:fref ap-%data%
322 (f2cl-lib:fref ap-%data%
326 (f2cl-lib:fref x-%data%
331 (setf (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
332 (+ (f2cl-lib:fref y-%data%
(jy) ((1 *)) y-%offset%
)
334 (setf jx
(f2cl-lib:int-add jx incx
))
335 (setf jy
(f2cl-lib:int-add jy incy
))
339 (f2cl-lib:int-sub n j
)
344 (return (values nil nil nil nil nil nil nil nil nil
))))))
346 (in-package #-gcl
#:cl-user
#+gcl
"CL-USER")
347 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
348 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
349 (setf (gethash 'fortran-to-lisp
::zhpmv fortran-to-lisp
::*f2cl-function-info
*)
350 (fortran-to-lisp::make-f2cl-finfo
351 :arg-types
'((simple-string) (fortran-to-lisp::integer4
)
352 (fortran-to-lisp::complex16
)
353 (array fortran-to-lisp
::complex16
(*))
354 (array fortran-to-lisp
::complex16
(*))
355 (fortran-to-lisp::integer4
)
356 (fortran-to-lisp::complex16
)
357 (array fortran-to-lisp
::complex16
(*))
358 (fortran-to-lisp::integer4
))
359 :return-values
'(nil nil nil nil nil nil nil nil nil
)
360 :calls
'(fortran-to-lisp::xerbla fortran-to-lisp
::lsame
))))