Hi Rowan, I would not use RATIONAL_NUMBERS_WANTED=yes in the context of linear algebra even though I don't think it makes a difference. Its probably just slower. I am getting this: 68.64208074 ¯28.28427125 ¯4.478949969E¯15 ¯9.827502707E¯15 2.737380805E¯15 0 ¯3.642080737 ¯5.573380404E¯16 ¯1.508040844E¯15 3.558371050E¯16 0 0 ¯9.190591996E¯16 ¯1.708771971E¯17 3.594337453E¯16 0 0 0.000000000E0 4.132084299E¯16 2.453537944E¯16 0 0 0.000000000E0 0.000000000E0 ¯3.088077991E¯17 ⌹[⎕CT]yy 1 0 0 0 0 68.642080737002189 ¯28.284271247461849 ¯4.4789499693386752E¯15 ¯9.8275027072133962E¯15 2.7373808045404955E¯15 0.014568322948009649 0.11313708498984769 ¯0.0023885168387308391 0.066518309540373144 ¯0.56858532876428267 0 ¯1 0 0 0 0 3.6420807370024026 5.5733804042156851E¯16 1.5080408441474691E¯15 ¯3.5583710502840566E¯16 0 0.2745683229480095 0.16650436787857926 0.99517588642565933 ¯9.1326867152187798 0 0 1 0 0 0 0 ¯9.1905919960774138E¯16 ¯1.7087719706038831E¯17 3.5943374532205272E¯16 0 0 ¯1088069191219460.7 44995745519819.392 ¯13021972329283451 0 0 0 ¯1 0 0 0 0.0000000000000000E0 ¯4.1320842994244806E¯16 ¯2.4535379437658151E¯16 0 0 0 ¯2420086153952088.8 19228054549359863 0 0 0 0 1 0 0 0.0000000000000000E0 0.0000000000000000E0 ¯3.0880779907613713E¯17 0 0 0 0 ¯32382601831680033 Maybe your GNU APL is a little too old, I did some changes lately. To serialize qq put it in quotes (2 ⎕TF wants a variable name, not a value): 2 ⎕TF 'yy' yy←(5 5⍴6.8642080737002189E1 ¯2.8284271247461849E1 ¯4.4789499693386752E¯15 ¯9.8275027072133962E¯15 2.7373808045404955E¯15 0 ¯3.6420807370024026 ¯5.5733804042156851E¯16 ¯1.5080408441474691E¯15 3.5583710502840566E¯16 0 0 ¯9.1905919960774138E¯16 ¯1.7087719706038831E¯17 3.5943374532205272E¯16 0 0 0 4.1320842994244806E¯16 2.4535379437658151E¯16 0 0 0 0 ¯3.0880779907613713E¯17) Dito for 10 ⎕CR: 10 ⎕CR 'yy' yy←5 5⍴0 ⍝ prolog ≡1 (,yy)[⍳3]←68.642080737002189 ¯28.284271247461849 ¯4.4789499693386752E¯15 (,yy)[3+⍳3]←¯9.8275027072133962E¯15 2.7373808045404955E¯15 0 (,yy)[6+⍳2]←¯3.6420807370024026 ¯5.5733804042156851E¯16 (,yy)[8+⍳4]←¯1.5080408441474691E¯15 3.5583710502840566E¯16 0 0 (,yy)[12+⍳2]←¯9.1905919960774138E¯16 ¯1.7087719706038831E¯17 (,yy)[14+⍳5]←3.5943374532205272E¯16 0 0 0 4.1320842994244806E¯16 (,yy)[19+⍳6]←2.4535379437658151E¯16 0 0 0 0 ¯3.0880779907613713E¯17 Not sure what;s wrong with your qt (character ?) since I don't have it. The Internal precision of floats is 64 bit, == standard C/C++ double. Best Regards, Jürgen n 4/19/20 8:12 PM, Rowan Cannaday wrote:
|
- linear algebra & LAPACK - questions and thought... Rowan Cannaday
- Re: linear algebra & LAPACK - questions an... Dr . Jürgen Sauermann
- Re: linear algebra & LAPACK - question... Dr . Jürgen Sauermann
- Re: linear algebra & LAPACK - ques... Rowan Cannaday
- Re: linear algebra & LAPACK - ... Dr . Jürgen Sauermann
- Re: linear algebra & LAPA... Rowan Cannaday
- Re: linear algebra & LAPA... Peter Teeson
- Re: linear algebra & ... Rowan Cannaday
- Re: linear algebra &a... Rowan Cannaday
- Re: linear algebra &a... Rowan Cannaday
- Re: linear algebra &a... Dr . Jürgen Sauermann
- Re: linear algebra &a... Kacper Gutowski
- Re: linear algebra &a... Dr . Jürgen Sauermann
- Re: linear algebra &a... Dr . Jürgen Sauermann