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 zsyrk (uplo trans n k alpha a lda beta c ldc
)
25 (declare (type (array f2cl-lib
:complex16
(*)) c a
)
26 (type (f2cl-lib:complex16
) beta alpha
)
27 (type (f2cl-lib:integer4
) ldc lda k n
)
28 (type (simple-string *) trans uplo
))
29 (f2cl-lib:with-multi-array-data
30 ((uplo character uplo-%data% uplo-%offset%
)
31 (trans character trans-%data% trans-%offset%
)
32 (a f2cl-lib
:complex16 a-%data% a-%offset%
)
33 (c f2cl-lib
:complex16 c-%data% c-%offset%
))
34 (prog ((temp #C
(0.0
0.0)) (i 0) (info 0) (j 0) (l 0) (nrowa 0)
36 (declare (type (f2cl-lib:complex16
) temp
)
37 (type (f2cl-lib:integer4
) i info j l nrowa
)
38 (type f2cl-lib
:logical upper
))
44 (setf upper
(lsame uplo
"U"))
47 ((and (not upper
) (not (lsame uplo
"L")))
49 ((and (not (lsame trans
"N")) (not (lsame trans
"T")))
55 ((< lda
(max (the f2cl-lib
:integer4
1) (the f2cl-lib
:integer4 nrowa
)))
57 ((< ldc
(max (the f2cl-lib
:integer4
1) (the f2cl-lib
:integer4 n
)))
61 (xerbla "ZSYRK " info
)
63 (if (or (= n
0) (and (or (= alpha zero
) (= k
0)) (= beta one
)))
71 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
74 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
77 (setf (f2cl-lib:fref c-%data%
85 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
88 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
91 (setf (f2cl-lib:fref c-%data%
96 (f2cl-lib:fref c-%data%
105 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
108 (f2cl-lib:fdo
(i j
(f2cl-lib:int-add i
1))
111 (setf (f2cl-lib:fref c-%data%
119 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
122 (f2cl-lib:fdo
(i j
(f2cl-lib:int-add i
1))
125 (setf (f2cl-lib:fref c-%data%
130 (f2cl-lib:fref c-%data%
141 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
146 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
149 (setf (f2cl-lib:fref c-%data%
156 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
159 (setf (f2cl-lib:fref c-%data%
164 (f2cl-lib:fref c-%data%
169 (f2cl-lib:fdo
(l 1 (f2cl-lib:int-add l
1))
173 ((/= (f2cl-lib:fref a
(j l
) ((1 lda
) (1 *))) zero
)
176 (f2cl-lib:fref a-%data%
180 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
183 (setf (f2cl-lib:fref c-%data%
188 (f2cl-lib:fref c-%data%
193 (f2cl-lib:fref a-%data%
201 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
206 (f2cl-lib:fdo
(i j
(f2cl-lib:int-add i
1))
209 (setf (f2cl-lib:fref c-%data%
216 (f2cl-lib:fdo
(i j
(f2cl-lib:int-add i
1))
219 (setf (f2cl-lib:fref c-%data%
224 (f2cl-lib:fref c-%data%
229 (f2cl-lib:fdo
(l 1 (f2cl-lib:int-add l
1))
233 ((/= (f2cl-lib:fref a
(j l
) ((1 lda
) (1 *))) zero
)
236 (f2cl-lib:fref a-%data%
240 (f2cl-lib:fdo
(i j
(f2cl-lib:int-add i
1))
243 (setf (f2cl-lib:fref c-%data%
248 (f2cl-lib:fref c-%data%
253 (f2cl-lib:fref a-%data%
263 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
266 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
270 (f2cl-lib:fdo
(l 1 (f2cl-lib:int-add l
1))
276 (f2cl-lib:fref a-%data%
280 (f2cl-lib:fref a-%data%
287 (setf (f2cl-lib:fref c-%data%
293 (setf (f2cl-lib:fref c-%data%
299 (f2cl-lib:fref c-%data%
306 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
309 (f2cl-lib:fdo
(i j
(f2cl-lib:int-add i
1))
313 (f2cl-lib:fdo
(l 1 (f2cl-lib:int-add l
1))
319 (f2cl-lib:fref a-%data%
323 (f2cl-lib:fref a-%data%
330 (setf (f2cl-lib:fref c-%data%
336 (setf (f2cl-lib:fref c-%data%
342 (f2cl-lib:fref c-%data%
350 (return (values nil nil nil nil nil nil nil nil nil nil
))))))
352 (in-package #-gcl
#:cl-user
#+gcl
"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
::zsyrk fortran-to-lisp
::*f2cl-function-info
*)
356 (fortran-to-lisp::make-f2cl-finfo
357 :arg-types
'((simple-string) (simple-string)
358 (fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
359 (fortran-to-lisp::complex16
)
360 (array fortran-to-lisp
::complex16
(*))
361 (fortran-to-lisp::integer4
)
362 (fortran-to-lisp::complex16
)
363 (array fortran-to-lisp
::complex16
(*))
364 (fortran-to-lisp::integer4
))
365 :return-values
'(nil nil nil nil nil nil nil nil nil nil
)
366 :calls
'(fortran-to-lisp::xerbla fortran-to-lisp
::lsame
))))