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* ((zero (f2cl-lib:cmplx
0.0 0.0)))
21 (declare (type (f2cl-lib:complex16
) zero
) (ignorable zero
))
22 (defun zher (uplo n alpha x incx a lda
)
23 (declare (type (array f2cl-lib
:complex16
(*)) a x
)
24 (type (double-float) alpha
)
25 (type (f2cl-lib:integer4
) lda incx n
)
26 (type (simple-string *) uplo
))
27 (f2cl-lib:with-multi-array-data
28 ((uplo character uplo-%data% uplo-%offset%
)
29 (x f2cl-lib
:complex16 x-%data% x-%offset%
)
30 (a f2cl-lib
:complex16 a-%data% a-%offset%
))
31 (prog ((i 0) (info 0) (ix 0) (j 0) (jx 0) (kx 0) (temp #C
(0.0
0.0)))
32 (declare (type (f2cl-lib:integer4
) i info ix j jx kx
)
33 (type (f2cl-lib:complex16
) temp
))
36 ((and (not (lsame uplo
"U")) (not (lsame uplo
"L")))
42 ((< lda
(max (the f2cl-lib
:integer4
1) (the f2cl-lib
:integer4 n
)))
48 (if (or (= n
0) (= alpha
(f2cl-lib:dble zero
))) (go end_label
))
53 (f2cl-lib:int-mul
(f2cl-lib:int-sub n
1)
61 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
65 ((/= (f2cl-lib:fref x
(j) ((1 *))) zero
)
70 (f2cl-lib:fref x-%data%
75 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
78 (f2cl-lib:int-sub
1)))
81 (setf (f2cl-lib:fref a-%data%
86 (f2cl-lib:fref a-%data%
91 (f2cl-lib:fref x-%data%
97 (setf (f2cl-lib:fref a-%data%
104 (f2cl-lib:fref a-%data%
110 (f2cl-lib:fref x-%data%
115 'f2cl-lib
:complex16
)))
117 (setf (f2cl-lib:fref a-%data%
123 (f2cl-lib:fref a-%data%
127 'f2cl-lib
:complex16
))))
131 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
135 ((/= (f2cl-lib:fref x
(jx) ((1 *))) zero
)
140 (f2cl-lib:fref x-%data%
144 'f2cl-lib
:complex16
))
146 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
149 (f2cl-lib:int-sub
1)))
152 (setf (f2cl-lib:fref a-%data%
157 (f2cl-lib:fref a-%data%
162 (f2cl-lib:fref x-%data%
167 (setf ix
(f2cl-lib:int-add ix incx
))
169 (setf (f2cl-lib:fref a-%data%
176 (f2cl-lib:fref a-%data%
182 (f2cl-lib:fref x-%data%
187 'f2cl-lib
:complex16
)))
189 (setf (f2cl-lib:fref a-%data%
195 (f2cl-lib:fref a-%data%
199 'f2cl-lib
:complex16
))))
200 (setf jx
(f2cl-lib:int-add jx incx
))
205 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
209 ((/= (f2cl-lib:fref x
(j) ((1 *))) zero
)
214 (f2cl-lib:fref x-%data%
218 'f2cl-lib
:complex16
))
219 (setf (f2cl-lib:fref a-%data%
226 (f2cl-lib:fref a-%data%
232 (f2cl-lib:fref x-%data%
236 'f2cl-lib
:complex16
))
237 (f2cl-lib:fdo
(i (f2cl-lib:int-add j
1)
238 (f2cl-lib:int-add i
1))
241 (setf (f2cl-lib:fref a-%data%
246 (f2cl-lib:fref a-%data%
251 (f2cl-lib:fref x-%data%
258 (setf (f2cl-lib:fref a-%data%
264 (f2cl-lib:fref a-%data%
268 'f2cl-lib
:complex16
))))
272 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
276 ((/= (f2cl-lib:fref x
(jx) ((1 *))) zero
)
281 (f2cl-lib:fref x-%data%
285 'f2cl-lib
:complex16
))
286 (setf (f2cl-lib:fref a-%data%
293 (f2cl-lib:fref a-%data%
299 (f2cl-lib:fref x-%data%
303 'f2cl-lib
:complex16
))
305 (f2cl-lib:fdo
(i (f2cl-lib:int-add j
1)
306 (f2cl-lib:int-add i
1))
309 (setf ix
(f2cl-lib:int-add ix incx
))
310 (setf (f2cl-lib:fref a-%data%
315 (f2cl-lib:fref a-%data%
320 (f2cl-lib:fref x-%data%
327 (setf (f2cl-lib:fref a-%data%
333 (f2cl-lib:fref a-%data%
337 'f2cl-lib
:complex16
))))
338 (setf jx
(f2cl-lib:int-add jx incx
))
342 (return (values nil nil nil nil nil nil nil
))))))
344 (in-package #-gcl
#:cl-user
#+gcl
"CL-USER")
345 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
346 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
347 (setf (gethash 'fortran-to-lisp
::zher fortran-to-lisp
::*f2cl-function-info
*)
348 (fortran-to-lisp::make-f2cl-finfo
349 :arg-types
'((simple-string) (fortran-to-lisp::integer4
)
350 (double-float) (array fortran-to-lisp
::complex16
(*))
351 (fortran-to-lisp::integer4
)
352 (array fortran-to-lisp
::complex16
(*))
353 (fortran-to-lisp::integer4
))
354 :return-values
'(nil nil nil nil nil nil nil
)
355 :calls
'(fortran-to-lisp::xerbla fortran-to-lisp
::lsame
))))