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()
60
60
61
61
import FastTransforms: normalizecolumns!, maxcolnorm
62
62
63
- n = 511
63
+ n = VERSION < v " 0.6.0- " ? 255 : 511
64
64
A = sphrandn (Float64, n+ 1 , n+ 1 );
65
65
normalizecolumns! (A);
66
66
@@ -74,16 +74,18 @@ C = P\B
74
74
75
75
println (" The backward difference between slow plan and original: " , maxcolnorm (A- C))
76
76
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);
80
81
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))
84
85
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
88
89
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 1
1
import FastTransforms: allranks, normalizecolumns!, maxcolnorm
2
2
3
- n = 511
3
+ n = VERSION < v " 0.6.0- " ? 255 : 511
4
4
5
5
A = sphrandn (Float64, n+ 1 , n+ 1 );
6
6
normalizecolumns! (A);
You can’t perform that action at this time.
0 commit comments