@@ -55,8 +55,9 @@ function test_fft_backend(array_constructor; test_real=true, test_inplace=true)
55
55
15.0 + 0.0im - 4.5 + 2.598076211353316im - 4.5 - 2.598076211353316im ;
56
56
18.0 + 0.0im - 4.5 + 2.598076211353316im - 4.5 - 2.598076211353316im ]),
57
57
(collect (reshape (1 : 8 , 2 , 2 , 2 )), 1 : 2 , true ,
58
- [10.0 + 0.0im - 4.0 + 0.0im ; - 2.0 + 0.0im 0.0 + 0.0im ;;;
59
- 26.0 + 0.0im - 4.0 + 0.0im ; - 2.0 + 0.0im 0.0 + 0.0im ]),
58
+ cat ([10.0 + 0.0im - 4.0 + 0.0im ; - 2.0 + 0.0im 0.0 + 0.0im ],
59
+ [26.0 + 0.0im - 4.0 + 0.0im ; - 2.0 + 0.0im 0.0 + 0.0im ],
60
+ dims= 3 )),
60
61
(collect (1 : 7 ) + im * collect (8 : 14 ), 1 , false ,
61
62
[28.0 + 77.0im ,
62
63
- 10.76782488800318 + 3.767824888003175im ,
@@ -66,8 +67,9 @@ function test_fft_backend(array_constructor; test_real=true, test_inplace=true)
66
67
- 0.7088431389115866 - 6.291156861088417im ,
67
68
3.767824888003177 - 10.76782488800318im ]),
68
69
(collect (reshape (1 : 8 , 2 , 2 , 2 )) + im * reshape (9 : 16 , 2 , 2 , 2 ), 1 : 2 , false ,
69
- [10.0 + 42.0im - 4.0 - 4.0im ; - 2.0 - 2.0im 0.0 + 0.0im ;;;
70
- 26.0 + 58.0im - 4.0 - 4.0im ; - 2.0 - 2.0im 0.0 + 0.0im ]),
70
+ cat ([10.0 + 42.0im - 4.0 - 4.0im ; - 2.0 - 2.0im 0.0 + 0.0im ],
71
+ [26.0 + 58.0im - 4.0 - 4.0im ; - 2.0 - 2.0im 0.0 + 0.0im ],
72
+ dims= 3 )),
71
73
)
72
74
x = array_constructor (_x) # dummy array that will be passed to plans
73
75
x_complex = complex .(float .(x)) # for testing complex FFTs
0 commit comments