1 ;;; Compiled by f2cl version:
2 ;;; ("f2cl1.l,v 95098eb54f13 2013/04/01 00:45:16 toy $"
3 ;;; "f2cl2.l,v 95098eb54f13 2013/04/01 00:45:16 toy $"
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 95098eb54f13 2013/04/01 00:45:16 toy $"
7 ;;; "f2cl6.l,v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $"
8 ;;; "macros.l,v 1409c1352feb 2013/03/24 20:44:50 toy $")
10 ;;; Using Lisp CMU Common Lisp snapshot-2020-04 (21D 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))
17 (in-package "HOMPACK")
20 (defun initp (iflg1 n numt kdeg coef nn mmaxt par ipar ideg facv cl pdg qdg r
)
21 (declare (type (array double-float
(*)) r qdg pdg cl facv par coef
)
22 (type (array f2cl-lib
:integer4
(*)) ideg ipar kdeg numt
)
23 (type (f2cl-lib:integer4
) mmaxt nn n iflg1
))
24 (f2cl-lib:with-multi-array-data
25 ((numt f2cl-lib
:integer4 numt-%data% numt-%offset%
)
26 (kdeg f2cl-lib
:integer4 kdeg-%data% kdeg-%offset%
)
27 (ipar f2cl-lib
:integer4 ipar-%data% ipar-%offset%
)
28 (ideg f2cl-lib
:integer4 ideg-%data% ideg-%offset%
)
29 (coef double-float coef-%data% coef-%offset%
)
30 (par double-float par-%data% par-%offset%
)
31 (facv double-float facv-%data% facv-%offset%
)
32 (cl double-float cl-%data% cl-%offset%
)
33 (pdg double-float pdg-%data% pdg-%offset%
)
34 (qdg double-float qdg-%data% qdg-%offset%
)
35 (r double-float r-%data% r-%offset%
))
36 (prog ((p (make-array 20 :element-type
'double-float
))
37 (q (make-array 20 :element-type
'double-float
))
38 (ccl (make-array 22 :element-type
'double-float
)) (zero 0.0) (i 0)
39 (ierr 0) (iideg 0) (j 0) (jj 0) (k 0) (l 0) (n2 0) (np1 0))
40 (declare (type (f2cl-lib:integer4
) np1 n2 l k jj j iideg ierr i
)
41 (type (double-float) zero
)
42 (type (array double-float
(22)) ccl
)
43 (type (array double-float
(20)) q p
))
44 (setf zero
(coerce 0.0f0
'double-float
))
45 (setf n2
(f2cl-lib:int-mul
2 n
))
46 (setf np1
(f2cl-lib:int-add n
1))
47 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
50 (setf (f2cl-lib:fref ideg-%data%
(j) ((1 n
)) ideg-%offset%
) 0)
51 (f2cl-lib:fdo
(k 1 (f2cl-lib:int-add k
1))
52 ((> k
(f2cl-lib:fref numt
(j) ((1 nn
)))) nil
)
55 (f2cl-lib:fdo
(l 1 (f2cl-lib:int-add l
1))
59 (f2cl-lib:int-add iideg
60 (f2cl-lib:fref kdeg-%data%
71 (> iideg
(f2cl-lib:fref ideg-%data%
(j) ((1 n
)) ideg-%offset%
))
72 (setf (f2cl-lib:fref ideg-%data%
(j) ((1 n
)) ideg-%offset%
)
76 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
79 (f2cl-lib:fdo
(k 1 (f2cl-lib:int-add k
1))
80 ((> k
(f2cl-lib:fref numt
(j) ((1 nn
)))) nil
)
83 (f2cl-lib:fdo
(l 1 (f2cl-lib:int-add l
1))
87 (f2cl-lib:int-add iideg
88 (f2cl-lib:fref kdeg-%data%
98 (setf (f2cl-lib:fref kdeg-%data%
100 ((1 nn
) (1 (f2cl-lib:int-add nn
1))
104 (f2cl-lib:fref ideg-%data%
(j) ((1 n
)) ideg-%offset%
)
109 ((or (= iflg1
10) (= iflg1
0))
110 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
113 (setf (f2cl-lib:fref facv-%data%
(i) ((1 n
)) facv-%offset%
)
114 (coerce 0.0f0
'double-float
))
118 (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8 var-9
119 var-10 var-11 var-12 var-13 var-14 var-15 var-16 var-17 var-18
)
120 (sclgnp n nn mmaxt numt kdeg
0 zero coef
121 (f2cl-lib:array-slice ipar-%data%
126 (f2cl-lib:int-mul
2 n
)
133 (f2cl-lib:array-slice ipar-%data%
138 (f2cl-lib:int-mul
2 n
)
145 (f2cl-lib:array-slice par-%data%
150 (f2cl-lib:int-mul
28 n
)
164 (f2cl-lib:array-slice par-%data%
166 ((+ 1 (f2cl-lib:int-mul n mmaxt
)))
169 (f2cl-lib:int-mul
28 n
)
183 (f2cl-lib:array-slice par-%data%
186 (f2cl-lib:int-mul n mmaxt
)
187 (f2cl-lib:int-mul
4 (expt n
2))))
190 (f2cl-lib:int-mul
28 n
)
204 (f2cl-lib:array-slice par-%data%
207 (f2cl-lib:int-mul n mmaxt
)
208 (f2cl-lib:int-mul
4 (expt n
2))
209 (f2cl-lib:int-mul
2 n
)))
212 (f2cl-lib:int-mul
28 n
)
226 (f2cl-lib:array-slice par-%data%
229 (f2cl-lib:int-mul n mmaxt
)
230 (f2cl-lib:int-mul
4 (expt n
2))
231 (f2cl-lib:int-mul
2 n
)
239 (f2cl-lib:int-mul
28 n
)
254 (f2cl-lib:array-slice par-%data%
257 (f2cl-lib:int-mul n mmaxt
)
258 (f2cl-lib:int-mul
4 (expt n
2))
259 (f2cl-lib:int-mul
4 n
)
267 (f2cl-lib:int-mul
28 n
)
281 (f2cl-lib:array-slice par-%data%
284 (f2cl-lib:int-mul n mmaxt
)
285 (f2cl-lib:int-mul
4 (expt n
2))
286 (f2cl-lib:int-mul
5 n
)
294 (f2cl-lib:int-mul
28 n
)
309 (declare (ignore var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7
310 var-8 var-9 var-10 var-11 var-12 var-13 var-14
311 var-15 var-16 var-17
))
316 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
319 (f2cl-lib:fdo
(k 1 (f2cl-lib:int-add k
1))
320 ((> k
(f2cl-lib:fref numt
(j) ((1 nn
)))) nil
)
322 (setf (f2cl-lib:fref coef-%data%
326 (f2cl-lib:fref par-%data%
328 (f2cl-lib:int-mul n mmaxt
)
329 (f2cl-lib:int-mul
4 (expt n
2))
330 (f2cl-lib:int-mul
5 n
)
361 (setf (f2cl-lib:fref p
(1 1) ((1 2) (1 10))) 0.12324754231)
362 (setf (f2cl-lib:fref p
(2 1) ((1 2) (1 10))) 0.76253746298)
363 (setf (f2cl-lib:fref p
(1 2) ((1 2) (1 10))) 0.9385783895)
364 (setf (f2cl-lib:fref p
(2 2) ((1 2) (1 10))) -
0.9937589281)
365 (setf (f2cl-lib:fref p
(1 3) ((1 2) (1 10))) -
0.23467908356)
366 (setf (f2cl-lib:fref p
(2 3) ((1 2) (1 10))) 0.39383930009)
367 (setf (f2cl-lib:fref p
(1 4) ((1 2) (1 10))) 0.83542556622)
368 (setf (f2cl-lib:fref p
(2 4) ((1 2) (1 10))) -
0.10192888288)
369 (setf (f2cl-lib:fref p
(1 5) ((1 2) (1 10))) -
0.55763522521)
370 (setf (f2cl-lib:fref p
(2 5) ((1 2) (1 10))) -
0.83729899911)
371 (setf (f2cl-lib:fref p
(1 6) ((1 2) (1 10))) -
0.78348738738)
372 (setf (f2cl-lib:fref p
(2 6) ((1 2) (1 10))) -
0.10578234903)
373 (setf (f2cl-lib:fref p
(1 7) ((1 2) (1 10))) 0.03938347346)
374 (setf (f2cl-lib:fref p
(2 7) ((1 2) (1 10))) 0.04825184716)
375 (setf (f2cl-lib:fref p
(1 8) ((1 2) (1 10))) -
0.43428734331)
376 (setf (f2cl-lib:fref p
(2 8) ((1 2) (1 10))) 0.93836289418)
377 (setf (f2cl-lib:fref p
(1 9) ((1 2) (1 10))) -
0.99383729993)
378 (setf (f2cl-lib:fref p
(2 9) ((1 2) (1 10))) -
0.40947822291)
379 (setf (f2cl-lib:fref p
(1 10) ((1 2) (1 10))) 0.09383736736)
380 (setf (f2cl-lib:fref p
(2 10) ((1 2) (1 10))) 0.26459172298)
381 (setf (f2cl-lib:fref q
(1 1) ((1 2) (1 10))) 0.58720452864)
382 (setf (f2cl-lib:fref q
(2 1) ((1 2) (1 10))) 0.01321964722)
383 (setf (f2cl-lib:fref q
(1 2) ((1 2) (1 10))) 0.978841347)
384 (setf (f2cl-lib:fref q
(2 2) ((1 2) (1 10))) -
0.14433009712)
385 (setf (f2cl-lib:fref q
(1 3) ((1 2) (1 10))) 0.39383737289)
386 (setf (f2cl-lib:fref q
(2 3) ((1 2) (1 10))) 0.41543223411)
387 (setf (f2cl-lib:fref q
(1 4) ((1 2) (1 10))) -
0.03938376373)
388 (setf (f2cl-lib:fref q
(2 4) ((1 2) (1 10))) -
0.61253112318)
389 (setf (f2cl-lib:fref q
(1 5) ((1 2) (1 10))) 0.39383737388)
390 (setf (f2cl-lib:fref q
(2 5) ((1 2) (1 10))) -
0.26454678861)
391 (setf (f2cl-lib:fref q
(1 6) ((1 2) (1 10))) -
0.00938376766)
392 (setf (f2cl-lib:fref q
(2 6) ((1 2) (1 10))) 0.34447867861)
393 (setf (f2cl-lib:fref q
(1 7) ((1 2) (1 10))) -
0.04837366632)
394 (setf (f2cl-lib:fref q
(2 7) ((1 2) (1 10))) 0.4825273679)
395 (setf (f2cl-lib:fref q
(1 8) ((1 2) (1 10))) 0.93725237347)
396 (setf (f2cl-lib:fref q
(2 8) ((1 2) (1 10))) -
0.54356527623)
397 (setf (f2cl-lib:fref q
(1 9) ((1 2) (1 10))) 0.39373957747)
398 (setf (f2cl-lib:fref q
(2 9) ((1 2) (1 10))) 0.65573434564)
399 (setf (f2cl-lib:fref q
(1 10) ((1 2) (1 10))) -
0.39380038371)
400 (setf (f2cl-lib:fref q
(2 10) ((1 2) (1 10))) 0.98903450052)
401 (setf (f2cl-lib:fref ccl
(1 1) ((1 2) (1 11))) -
0.03485644332)
402 (setf (f2cl-lib:fref ccl
(2 1) ((1 2) (1 11))) 0.28554634336)
403 (setf (f2cl-lib:fref ccl
(1 2) ((1 2) (1 11))) 0.91453454766)
404 (setf (f2cl-lib:fref ccl
(2 2) ((1 2) (1 11))) 0.35354566613)
405 (setf (f2cl-lib:fref ccl
(1 3) ((1 2) (1 11))) -
0.36568737635)
406 (setf (f2cl-lib:fref ccl
(2 3) ((1 2) (1 11))) 0.45634642477)
407 (setf (f2cl-lib:fref ccl
(1 4) ((1 2) (1 11))) -
0.89089767544)
408 (setf (f2cl-lib:fref ccl
(2 4) ((1 2) (1 11))) 0.34524523544)
409 (setf (f2cl-lib:fref ccl
(1 5) ((1 2) (1 11))) 0.13523462465)
410 (setf (f2cl-lib:fref ccl
(2 5) ((1 2) (1 11))) 0.43534535555)
411 (setf (f2cl-lib:fref ccl
(1 6) ((1 2) (1 11))) -
0.34523544445)
412 (setf (f2cl-lib:fref ccl
(2 6) ((1 2) (1 11))) 0.00734522256)
413 (setf (f2cl-lib:fref ccl
(1 7) ((1 2) (1 11))) -
0.80004678763)
414 (setf (f2cl-lib:fref ccl
(2 7) ((1 2) (1 11))) -
0.009387123644)
415 (setf (f2cl-lib:fref ccl
(1 8) ((1 2) (1 11))) -
0.875432124245)
416 (setf (f2cl-lib:fref ccl
(2 8) ((1 2) (1 11))) 4.5687651e-4)
417 (setf (f2cl-lib:fref ccl
(1 9) ((1 2) (1 11))) 0.65256352333)
418 (setf (f2cl-lib:fref ccl
(2 9) ((1 2) (1 11))) -
0.12356777452)
419 (setf (f2cl-lib:fref ccl
(1 10) ((1 2) (1 11))) 0.09986798321548)
420 (setf (f2cl-lib:fref ccl
(2 10) ((1 2) (1 11))) -
0.56753456577)
421 (setf (f2cl-lib:fref ccl
(1 11) ((1 2) (1 11))) 0.29674947394739)
422 (setf (f2cl-lib:fref ccl
(2 11) ((1 2) (1 11))) 0.93274302173)
424 ((or (= iflg1
1) (= iflg1
0))
426 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
429 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
432 (setf (f2cl-lib:fref cl-%data%
434 ((1 2) (1 (f2cl-lib:int-add n
1)))
436 (coerce 0.0f0
'double-float
))
439 (setf (f2cl-lib:fref cl-%data%
441 ((1 2) (1 (f2cl-lib:int-add n
1)))
443 (coerce 1.0f0
'double-float
))
444 (setf (f2cl-lib:fref cl-%data%
446 ((1 2) (1 (f2cl-lib:int-add n
1)))
448 (coerce 0.0f0
'double-float
))))
451 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
454 (setf jj
(f2cl-lib:int-add
(mod (f2cl-lib:int-sub j
1) 11) 1))
455 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
458 (setf (f2cl-lib:fref cl-%data%
460 ((1 2) (1 (f2cl-lib:int-add n
1)))
462 (f2cl-lib:fref ccl
(i jj
) ((1 2) (1 11))))
465 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
468 (setf jj
(f2cl-lib:int-add
(mod (f2cl-lib:int-sub j
1) 10) 1))
469 (powp (f2cl-lib:fref ideg-%data%
(j) ((1 n
)) ideg-%offset%
)
470 (f2cl-lib:array-slice p double-float
(1 jj
) ((1 2) (1 10)))
471 (f2cl-lib:array-slice pdg-%data%
476 (powp (f2cl-lib:fref ideg-%data%
(j) ((1 n
)) ideg-%offset%
)
477 (f2cl-lib:array-slice q double-float
(1 jj
) ((1 2) (1 10)))
478 (f2cl-lib:array-slice qdg-%data%
483 (multiple-value-bind (var-0 var-1 var-2 var-3
)
484 (divp (f2cl-lib:array-slice q double-float
(1 jj
) ((1 2) (1 10)))
485 (f2cl-lib:array-slice p double-float
(1 jj
) ((1 2) (1 10)))
486 (f2cl-lib:array-slice r-%data%
492 (declare (ignore var-0 var-1 var-2
))
498 (values nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
)))))
500 (in-package #:cl-user
)
501 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
502 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
503 (setf (gethash 'fortran-to-lisp
::initp fortran-to-lisp
::*f2cl-function-info
*)
504 (fortran-to-lisp::make-f2cl-finfo
505 :arg-types
'((fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
506 (array fortran-to-lisp
::integer4
(*))
507 (array fortran-to-lisp
::integer4
(*))
508 (array double-float
(*)) (fortran-to-lisp::integer4
)
509 (fortran-to-lisp::integer4
) (array double-float
(*))
510 (array fortran-to-lisp
::integer4
(*))
511 (array fortran-to-lisp
::integer4
(*))
512 (array double-float
(*)) (array double-float
(*))
513 (array double-float
(*)) (array double-float
(*))
514 (array double-float
(*)))
515 :return-values
'(nil nil nil nil nil nil nil nil nil nil nil nil nil
517 :calls
'(fortran-to-lisp::divp fortran-to-lisp
::powp
518 fortran-to-lisp
::sclgnp
))))