Mercurial > repos > public > sbplib_julia
diff test/testLazyTensors.jl @ 399:3b4b1758a8ad feature/lazy_linear_map
Add a check for permuted indecies.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sun, 04 Oct 2020 21:37:00 +0200 |
parents | 7ad644d112de |
children | 4aa59af074ef d94891b8dfca |
line wrap: on
line diff
--- a/test/testLazyTensors.jl Fri Oct 02 15:57:53 2020 +0200 +++ b/test/testLazyTensors.jl Sun Oct 04 21:37:00 2020 +0200 @@ -228,6 +228,9 @@ @test Ã*ones(4) ≈ A*ones(4) atol=5e-13 @test Ã*v ≈ A*v atol=5e-13 + A = rand(2,3,4) + @test_throws DomainError LazyLinearMap(A, (3,1), (2,)) + # Test more exotic mappings B = rand(3,4,2) # Map vectors of size 2 to matrices of size (3,4)