Mercurial > repos > public > sbplib_julia
comparison test/testLazyTensors.jl @ 456:8f4c31e06689 feature/inflated_tensormapping
Add docs and tests for slice_tuple
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 21 Oct 2020 19:53:36 +0200 |
parents | b86312d14873 |
children | 8fb6a5611c7a |
comparison
equal
deleted
inserted
replaced
455:b86312d14873 | 456:8f4c31e06689 |
---|---|
349 @inferred LazyTensors.split_index(tm,1,1,1,1) | 349 @inferred LazyTensors.split_index(tm,1,1,1,1) |
350 @inferred (tm*v)[1,1,1,1] | 350 @inferred (tm*v)[1,1,1,1] |
351 | 351 |
352 end | 352 end |
353 | 353 |
354 end | 354 @testset "slice_tuple" begin |
355 @test LazyTensors.slice_tuple((1,2,3),Val(1), Val(3)) == (1,2,3) | |
356 @test LazyTensors.slice_tuple((1,2,3,4,5,6),Val(2), Val(5)) == (2,3,4,5) | |
357 @test LazyTensors.slice_tuple((1,2,3,4,5,6),Val(1), Val(3)) == (1,2,3) | |
358 @test LazyTensors.slice_tuple((1,2,3,4,5,6),Val(4), Val(6)) == (4,5,6) | |
359 end | |
360 | |
361 end |