Skip to content

Commit 4c770c4

Browse files
committed
Try 1.0 again
1 parent afc6b8f commit 4c770c4

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

test/left.jl

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ using LinearAlgebra: mul!
33

44
# y'*L is an exception to the left multiplication rule that makes a WrappedMap
55

6-
@static if VERSION v"1.4.0"
6+
@static if true # VERSION ≥ v"1.4.0"
77

88
function left_tester(L::LinearMap{T}) where {T}
9-
M,N = size(L)
9+
M,N = size(L)
1010
A = Matrix(L)
1111

1212
x = rand(T, N)
1313
y = rand(T, M)
1414

15-
# *
15+
# *
1616
@test y' * A y' * L
1717
@test (y' * A) * x y' * (L * x) # associative
1818
@test transpose(y) * A transpose(y) * L
@@ -32,24 +32,24 @@ function left_tester(L::LinearMap{T}) where {T}
3232
mul!(b2, transpose(y), L, true, false) # 5-arg
3333
@test b1 b2
3434

35-
true
35+
true
3636
end
3737

3838

3939
@testset "left mul vec" begin
4040
T = ComplexF32
41-
M,N = 5,5
42-
L = LinearMap{T}(cumsum, reverse cumsum reverse, N)
43-
44-
@test left_tester(L) # FunctionMap
45-
@test left_tester(L'*L) # CompositeMap
46-
@test left_tester(2L) # ScaledMap
47-
@test left_tester(kron(L,L')) # KroneckerMap
48-
@test left_tester(2L+3L') # LinearCombination
49-
@test left_tester([L L]) # BlockMap
50-
51-
W = LinearMap(randn(T,5,4))
52-
@test left_tester(W) # WrappedMap
41+
M,N = 5,5
42+
L = LinearMap{T}(cumsum, reverse cumsum reverse, N)
43+
44+
@test left_tester(L) # FunctionMap
45+
@test left_tester(L'*L) # CompositeMap
46+
@test left_tester(2L) # ScaledMap
47+
@test left_tester(kron(L,L')) # KroneckerMap
48+
@test left_tester(2L+3L') # LinearCombination
49+
@test left_tester([L L]) # BlockMap
50+
51+
W = LinearMap(randn(T,5,4))
52+
@test left_tester(W) # WrappedMap
5353
end
5454

5555
end # version

0 commit comments

Comments
 (0)