Skip to content

Commit e30dac8

Browse files
committed
add comparison test
1 parent 3639b9f commit e30dac8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/linearcombination.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ using Test, LinearMaps, LinearAlgebra, BenchmarkTools
2121
@test mul!(U, L, V) n*cumsum(V, dims=1)
2222
@test mul!(U, LinearMap(L), V) n*cumsum(V, dims=1)
2323

24+
A = randn(3,3)
25+
B = LinearMap(A) + LinearMap(A)'
26+
C = LinearMap(copy(A)) + LinearMap(copy(A))'
27+
@test B == C
28+
2429
A = 2 * rand(ComplexF64, (10, 10)) .- 1
2530
B = rand(ComplexF64, size(A)...)
2631
M = @inferred LinearMap(A)

0 commit comments

Comments
 (0)