comparison test/testLazyTensors.jl @ 431:1d6250fcf14c feature/lazy_identity

Remove some unneeded code from tests
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 19 Oct 2020 09:21:44 +0200
parents 46acb2560451
children f24daf573bc6
comparison
equal deleted inserted replaced
430:541c16a8c791 431:1d6250fcf14c
261 261
262 262
263 @testset "LazyIdentity" begin 263 @testset "LazyIdentity" begin
264 @test LazyIdentity{Float64}((4,5)) isa LazyIdentity{T,2} where T 264 @test LazyIdentity{Float64}((4,5)) isa LazyIdentity{T,2} where T
265 @test LazyIdentity{Float64}((4,5)) isa TensorMapping{T,2,2} where T 265 @test LazyIdentity{Float64}((4,5)) isa TensorMapping{T,2,2} where T
266 A = rand(3,4)
267 Ã = LazyLinearMap(A, (1,), (2,))
268 v = rand(4)
269 266
270 for sz ∈ [(4,5),(3,),(5,6,4)] 267 for sz ∈ [(4,5),(3,),(5,6,4)]
271 I = LazyIdentity{Float64}(sz) 268 I = LazyIdentity{Float64}(sz)
272 v = rand(sz...) 269 v = rand(sz...)
273 @test I*v == v 270 @test I*v == v