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))
21 (declare (type (double-float 0.0 0.0) zero
) (ignorable zero
))
22 (defun dspr (uplo n alpha x incx ap
)
23 (declare (type (array double-float
(*)) ap x
)
24 (type (double-float) alpha
)
25 (type (f2cl-lib:integer4
) incx n
)
26 (type (simple-string *) uplo
))
27 (f2cl-lib:with-multi-array-data
28 ((uplo character uplo-%data% uplo-%offset%
)
29 (x double-float x-%data% x-%offset%
)
30 (ap double-float ap-%data% ap-%offset%
))
31 (prog ((i 0) (info 0) (ix 0) (j 0) (jx 0) (k 0) (kk 0) (kx 0) (temp 0.0))
32 (declare (type (f2cl-lib:integer4
) i info ix j jx k kk kx
)
33 (type (double-float) temp
))
36 ((and (not (lsame uplo
"U")) (not (lsame uplo
"L")))
46 (if (or (= n
0) (= alpha zero
)) (go end_label
))
51 (f2cl-lib:int-mul
(f2cl-lib:int-sub n
1)
60 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
64 ((/= (f2cl-lib:fref x
(j) ((1 *))) zero
)
67 (f2cl-lib:fref x-%data%
72 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
75 (setf (f2cl-lib:fref ap-%data%
80 (f2cl-lib:fref ap-%data%
85 (f2cl-lib:fref x-%data%
90 (setf k
(f2cl-lib:int-add k
1))
92 (setf kk
(f2cl-lib:int-add kk j
))
96 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
100 ((/= (f2cl-lib:fref x
(jx) ((1 *))) zero
)
103 (f2cl-lib:fref x-%data%
108 (f2cl-lib:fdo
(k kk
(f2cl-lib:int-add k
1))
112 (f2cl-lib:int-sub
1)))
115 (setf (f2cl-lib:fref ap-%data%
120 (f2cl-lib:fref ap-%data%
125 (f2cl-lib:fref x-%data%
130 (setf ix
(f2cl-lib:int-add ix incx
))
132 (setf jx
(f2cl-lib:int-add jx incx
))
133 (setf kk
(f2cl-lib:int-add kk j
))
138 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
142 ((/= (f2cl-lib:fref x
(j) ((1 *))) zero
)
145 (f2cl-lib:fref x-%data%
150 (f2cl-lib:fdo
(i j
(f2cl-lib:int-add i
1))
153 (setf (f2cl-lib:fref ap-%data%
158 (f2cl-lib:fref ap-%data%
163 (f2cl-lib:fref x-%data%
168 (setf k
(f2cl-lib:int-add k
1))
172 (f2cl-lib:int-sub
(f2cl-lib:int-add kk n
) j
)
177 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
181 ((/= (f2cl-lib:fref x
(jx) ((1 *))) zero
)
184 (f2cl-lib:fref x-%data%
189 (f2cl-lib:fdo
(k kk
(f2cl-lib:int-add k
1))
193 (f2cl-lib:int-sub j
)))
196 (setf (f2cl-lib:fref ap-%data%
201 (f2cl-lib:fref ap-%data%
206 (f2cl-lib:fref x-%data%
211 (setf ix
(f2cl-lib:int-add ix incx
))
213 (setf jx
(f2cl-lib:int-add jx incx
))
216 (f2cl-lib:int-sub
(f2cl-lib:int-add kk n
) j
)
221 (return (values nil nil nil nil nil nil
))))))
223 (in-package #-gcl
#:cl-user
#+gcl
"CL-USER")
224 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
225 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
226 (setf (gethash 'fortran-to-lisp
::dspr fortran-to-lisp
::*f2cl-function-info
*)
227 (fortran-to-lisp::make-f2cl-finfo
228 :arg-types
'((simple-string) (fortran-to-lisp::integer4
)
229 (double-float) (array double-float
(*))
230 (fortran-to-lisp::integer4
) (array double-float
(*)))
231 :return-values
'(nil nil nil nil nil nil
)
232 :calls
'(fortran-to-lisp::xerbla fortran-to-lisp
::lsame
))))