Mercurial > repos > public > sbplib_julia
comparison test/testLazyTensors.jl @ 455:b86312d14873 feature/inflated_tensormapping
Make split_index type stable
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 21 Oct 2020 16:29:59 +0200 |
parents | c1ae837f1a2e |
children | 8f4c31e06689 |
comparison
equal
deleted
inserted
replaced
454:eb4c34438e30 | 455:b86312d14873 |
---|---|
279 @test B̃*ones(3,2) ≈ B[1,:,1] + B[2,:,1] + B[3,:,1] + | 279 @test B̃*ones(3,2) ≈ B[1,:,1] + B[2,:,1] + B[3,:,1] + |
280 B[1,:,2] + B[2,:,2] + B[3,:,2] atol=5e-13 | 280 B[1,:,2] + B[2,:,2] + B[3,:,2] atol=5e-13 |
281 @test B̃*v ≈ B[1,:,1]*v[1,1] + B[2,:,1]*v[2,1] + B[3,:,1]*v[3,1] + | 281 @test B̃*v ≈ B[1,:,1]*v[1,1] + B[2,:,1]*v[2,1] + B[3,:,1]*v[3,1] + |
282 B[1,:,2]v[1,2] + B[2,:,2]*v[2,2] + B[3,:,2]*v[3,2] atol=5e-13 | 282 B[1,:,2]v[1,2] + B[2,:,2]*v[2,2] + B[3,:,2]*v[3,2] atol=5e-13 |
283 | 283 |
284 | |
285 @inferred (B̃*v)[2] | |
284 end | 286 end |
285 | 287 |
286 | 288 |
287 @testset "IdentityMapping" begin | 289 @testset "IdentityMapping" begin |
288 @test IdentityMapping{Float64}((4,5)) isa IdentityMapping{T,2} where T | 290 @test IdentityMapping{Float64}((4,5)) isa IdentityMapping{T,2} where T |