1 ;;; Compiled by f2cl version:
2 ;;; ("f2cl1.l,v 46c1f6a93b0d 2012/05/03 04:40:28 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 46c1f6a93b0d 2012/05/03 04:40:28 toy $"
7 ;;; "f2cl6.l,v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $"
8 ;;; "macros.l,v fceac530ef0c 2011/11/26 04:02:26 toy $")
10 ;;; Using Lisp CMU Common Lisp snapshot-2012-04 (20C Unicode)
12 ;;; Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
13 ;;; (:coerce-assigns :as-needed) (:array-type ':simple-array)
14 ;;; (:array-slicing nil) (:declare-common nil)
15 ;;; (:float-format double-float))
20 (defun initds (os nos eta
)
21 (declare (type (single-float) eta
)
22 (type (f2cl-lib:integer4
) nos
)
23 (type (simple-array double-float
(*)) os
))
24 (prog ((initds 0) (i 0) (ii 0) (err 0.0f0
))
25 (declare (type (single-float) err
) (type (f2cl-lib:integer4
) ii i initds
))
27 (xermsg "SLATEC" "INITDS" "Number of coefficients is less than 1" 2 1))
29 (f2cl-lib:fdo
(ii 1 (f2cl-lib:int-add ii
1))
32 (setf i
(f2cl-lib:int-sub
(f2cl-lib:int-add nos
1) ii
))
34 (+ err
(abs (f2cl-lib:freal
(f2cl-lib:fref os
(i) ((1 *)))))))
35 (if (> err eta
) (go label20
))
39 (xermsg "SLATEC" "INITDS"
40 "Chebyshev series too short for specified accuracy" 1 1))
44 (return (values initds nil nil nil
))))
46 (in-package #:cl-user
)
47 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
48 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
49 (setf (gethash 'fortran-to-lisp
::initds
50 fortran-to-lisp
::*f2cl-function-info
*)
51 (fortran-to-lisp::make-f2cl-finfo
52 :arg-types
'((simple-array double-float
(*))
53 (fortran-to-lisp::integer4
) (single-float))
54 :return-values
'(nil nil nil
)
55 :calls
'(fortran-to-lisp::xermsg
))))