comparison test/testLazyTensors.jl @ 432:f24daf573bc6 feature/lazy_identity

Add test to make sure transpose application is inferred
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 19 Oct 2020 09:37:23 +0200
parents 1d6250fcf14c
children 7327a3e41df0
comparison
equal deleted inserted replaced
431:1d6250fcf14c 432:f24daf573bc6
275 end 275 end
276 276
277 I = LazyIdentity{Float64}((4,5)) 277 I = LazyIdentity{Float64}((4,5))
278 v = rand(4,5) 278 v = rand(4,5)
279 @inferred (I*v)[3,2] 279 @inferred (I*v)[3,2]
280 @test_broken @inferred (I'*v)[3,2] # TODO: Should fix the index typing before investigating this
280 @inferred range_size(I) 281 @inferred range_size(I)
281 end 282 end
282 283
283 end 284 end