Skip to content

Commit 0ef3569

Browse files
committed
Update ⎕NA calls for Linux.
1 parent 5697e87 commit 0ef3569

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

Math.dyalog

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@
133133
J2V9 11¨ convert new 1J2 notation to old vector notation (matrix of real-cmpx pairs)
134134
Call{(⍺⍺ Assoc ⍵⍵)} Call external fn ⍺⍺ with arg ⍺, associate with types ⍵⍵ if necessary
135135
Assoc{3=⎕NC :
136-
call'lapack',(¯2'32',⎕D# ⎕WG'APLVersion'),'|',,' ',
136+
plat# ⎕WG'APLVersion'
137+
bits¯2'32',⎕Dplat
138+
ext'.so'/'Linux'5plat
139+
call'lapack',bits,ext,'|',,' ',
137140
0::'*** ERROR ',(⎕EN),': ⎕NA''',call,''''
138141
⎕NA call}
139142

@@ -202,11 +205,14 @@
202205
203206

204207
Fourier{1 RunFn 'idft' 'dft'1+0}
205-
datadata RunFn func;rank;shape;count ⍝ n-D Discrete Fourier Transformation
208+
datadata RunFn func;rank;shape;count;plat;bits;ext ⍝ n-D Discrete Fourier Transformation
206209
(rank count)(,×/)shapedata
207210
:If 1<count non-scalar
208211
:If 3⎕NC func associate external function if it does not exist
209-
⎕NA'fftw',(¯2'32',⎕D# ⎕WG'APLVersion'),'|',func,'<I4 <I4[] =J16[]'
212+
plat# ⎕WG'APLVersion'
213+
bits¯2'32',⎕Dplat
214+
ext'.so'/'Linux'5plat
215+
⎕NA'fftw',bits,ext,'|',func,'<I4 <I4[] =J16[]'
210216
:EndIf
211217
data(count*0.5)÷shape(func)rank shape,data Normalized Fourier/Inverse Fourier transform
212218
:EndIf

0 commit comments

Comments
 (0)