comparison test/testLazyTensors.jl @ 416:ebc9b2383dae feature/tensor_composition

Update working tests
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 16 Oct 2020 09:37:35 +0200
parents 814865d40f48
children 4c6604b7d990
comparison
equal deleted inserted replaced
415:814865d40f48 416:ebc9b2383dae
227 227
228 v = rand(4) 228 v = rand(4)
229 @test Ã∘B̃*v ≈ A*B*v 229 @test Ã∘B̃*v ≈ A*B*v
230 230
231 v = rand(2) 231 v = rand(2)
232 @test_broken (Ã∘B̃)'*v ≈ B'*A'*v 232 @test (Ã∘B̃)'*v ≈ B'*A'*v
233 end 233 end
234 234
235 @testset "LazyLinearMap" begin 235 @testset "LazyLinearMap" begin
236 # Test a standard matrix-vector product 236 # Test a standard matrix-vector product
237 # mapping vectors of size 4 to vectors of size 3. 237 # mapping vectors of size 4 to vectors of size 3.