changeset 500:1c50b5f1b356 feature/outer_product

Add a test
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 05 Nov 2020 15:37:53 +0100
parents 7b550c714f3f
children 4b9d124fe984
files test/testLazyTensors.jl
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/testLazyTensors.jl	Thu Nov 05 15:27:33 2020 +0100
+++ b/test/testLazyTensors.jl	Thu Nov 05 15:37:53 2020 +0100
@@ -478,6 +478,10 @@
         Ã = LazyLinearMap(A,(1,),(2,))
         @test LazyOuterProduct(IdentityMapping(3,2), Ã) == InflatedTensorMapping(IdentityMapping(3,2),Ã)
         @test LazyOuterProduct(Ã, IdentityMapping(3,2)) == InflatedTensorMapping(Ã,IdentityMapping(3,2))
+
+        I1 = IdentityMapping(3,2)
+        I2 = IdentityMapping(4)
+        @test I1⊗Ã⊗I2 == InflatedTensorMapping(I1, Ã, I2)
     end
 
 end