File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ println()
6060
6161import FastTransforms: normalizecolumns!, maxcolnorm
6262
63- n = 511
63+ n = VERSION < v " 0.6.0- " ? 255 : 511
6464A = sphrandn (Float64, n+ 1 , n+ 1 );
6565normalizecolumns! (A);
6666
@@ -74,16 +74,18 @@ C = P\B
7474
7575println (" The backward difference between slow plan and original: " , maxcolnorm (A- C))
7676
77- n = 1023
78- A = sphrandn (Float64, n+ 1 , n+ 1 );
79- normalizecolumns! (A);
77+ if VERSION ≥ v " 0.6.0-"
78+ n = 1023
79+ A = sphrandn (Float64, n+ 1 , n+ 1 );
80+ normalizecolumns! (A);
8081
81- B = sph2fourier (A; sketch = :none )
82- C = fourier2sph (B; sketch = :none )
83- println (" The backward difference between thin plan and original: " , maxcolnorm (A- C))
82+ B = sph2fourier (A; sketch = :none )
83+ C = fourier2sph (B; sketch = :none )
84+ println (" The backward difference between thin plan and original: " , maxcolnorm (A- C))
8485
85- P = plan_sph2fourier (A; sketch = :none )
86- B = P* A
87- C = P\ B
86+ P = plan_sph2fourier (A; sketch = :none )
87+ B = P* A
88+ C = P\ B
8889
89- println (" The backward difference between thin plan and original: " , maxcolnorm (A- C))
90+ println (" The backward difference between thin plan and original: " , maxcolnorm (A- C))
91+ end
Original file line number Diff line number Diff line change 11import FastTransforms: allranks, normalizecolumns!, maxcolnorm
22
3- n = 511
3+ n = VERSION < v " 0.6.0- " ? 255 : 511
44
55A = sphrandn (Float64, n+ 1 , n+ 1 );
66normalizecolumns! (A);
You can’t perform that action at this time.
0 commit comments