diff test/testLazyTensors.jl @ 415:814865d40f48 feature/tensor_composition

Merge in default
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 16 Oct 2020 09:34:50 +0200
parents d94891b8dfca 4aa59af074ef
children ebc9b2383dae
line wrap: on
line diff
--- a/test/testLazyTensors.jl	Thu Oct 15 22:05:22 2020 +0200
+++ b/test/testLazyTensors.jl	Fri Oct 16 09:34:50 2020 +0200
@@ -238,6 +238,7 @@
     A = rand(3,4)
     Ã = LazyLinearMap(A, (1,), (2,))
     v = rand(4)
+    w = rand(3)
 
     @test à isa LazyLinearMap{T,1,1} where T
     @test à isa TensorMapping{T,1,1} where T
@@ -246,6 +247,7 @@
 
     @test Ã*ones(4) ≈ A*ones(4) atol=5e-13
     @test Ã*v ≈ A*v atol=5e-13
+    @test Ã'*w ≈ A'*w
 
     A = rand(2,3,4)
     @test_throws DomainError LazyLinearMap(A, (3,1), (2,))