Mercurial > repos > public > sbplib_julia
comparison test/testLazyTensors.jl @ 440:a57b71343aeb feature/lazy_identity
Re-add test for inferred types on transposed identity.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 19 Oct 2020 21:12:15 +0200 |
parents | 00c317c9ccfb |
children | 552189707fbe |
comparison
equal
deleted
inserted
replaced
439:00c317c9ccfb | 440:a57b71343aeb |
---|---|
297 end | 297 end |
298 | 298 |
299 I = IdentityMapping{Float64}((4,5)) | 299 I = IdentityMapping{Float64}((4,5)) |
300 v = rand(4,5) | 300 v = rand(4,5) |
301 @inferred (I*v)[3,2] | 301 @inferred (I*v)[3,2] |
302 @test_broken @inferred (I'*v)[3,2] # TODO: Should fix the index typing before investigating this | 302 @inferred (I'*v)[3,2] |
303 @inferred range_size(I) | 303 @inferred range_size(I) |
304 end | 304 end |
305 | 305 |
306 end | 306 end |