Skip to content

Commit 4f3b9e3

Browse files
add tests from #179
1 parent 67b345e commit 4f3b9e3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/libfasttransformstests.jl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,37 @@ FastTransforms.ft_set_num_threads(ceil(Int, Base.Sys.CPU_THREADS/2))
2828
y = p1*x
2929
z = p2*y
3030
@test z x
31+
y = p1*view(x, :)
32+
z = p2*view(y, :)
33+
@test z x
3134
y = p1*x
3235
z = p1'y
3336
y = transpose(p1)*z
3437
z = transpose(p1)\y
3538
y = p1'\z
3639
z = p1\y
3740
@test z x
41+
y = p1*view(x, :)
42+
z = p1'view(y, :)
43+
y = transpose(p1)*view(z, :)
44+
z = transpose(p1)\view(y, :)
45+
y = p1'\view(z, :)
46+
z = p1\view(y, :)
47+
@test z x
3848
y = p2*x
3949
z = p2'y
4050
y = transpose(p2)*z
4151
z = transpose(p2)\y
4252
y = p2'\z
4353
z = p2\y
4454
@test z x
55+
y = p2*view(x, :)
56+
z = p2'view(y, :)
57+
y = transpose(p2)*view(z, :)
58+
z = transpose(p2)\view(y, :)
59+
y = p2'\view(z, :)
60+
z = p2\view(y, :)
61+
@test z x
4562
P = p1*I
4663
Q = p2*P
4764
@test Q I

0 commit comments

Comments
 (0)