Mercurial > repos > public > sbplib_julia
comparison test/testLazyTensors.jl @ 529:dfad4c16bedb refactor/inflated_tensormapping_tests
Fix typo
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 25 Nov 2020 18:02:30 +0100 |
parents | 78090ec3074d |
children | fc0f942b8792 |
comparison
equal
deleted
inserted
replaced
528:78090ec3074d | 529:dfad4c16bedb |
---|---|
362 @inferred range_size(InflatedTensorMapping(I(3,2), A, I(4))) == (3,2,4,4) | 362 @inferred range_size(InflatedTensorMapping(I(3,2), A, I(4))) == (3,2,4,4) |
363 @inferred domain_size(InflatedTensorMapping(I(3,2), A, I(4))) == (3,2,2,4) | 363 @inferred domain_size(InflatedTensorMapping(I(3,2), A, I(4))) == (3,2,2,4) |
364 end | 364 end |
365 | 365 |
366 @testset "Application" begin | 366 @testset "Application" begin |
367 # Testing regular applpication and transposed application with inflation "before", "after" and "before and after". | 367 # Testing regular application and transposed application with inflation "before", "after" and "before and after". |
368 # The inflated tensor mappings are chosen to preserve, reduce and increase the dimension of the result compared to the input. | 368 # The inflated tensor mappings are chosen to preserve, reduce and increase the dimension of the result compared to the input. |
369 tests = [ | 369 tests = [ |
370 ( | 370 ( |
371 InflatedTensorMapping(I(3,2), A, I(4)), | 371 InflatedTensorMapping(I(3,2), A, I(4)), |
372 (v-> @tullio res[a,b,c,d] := Ã[c,i]*v[a,b,i,d]), | 372 (v-> @tullio res[a,b,c,d] := Ã[c,i]*v[a,b,i,d]), |