Mercurial > repos > public > sbplib_julia
comparison test/LazyTensors/lazy_tensor_operations_test.jl @ 1153:f1bb1b6d85dd refactor/sbpoperators/inflation
Review: Suggest changes to test and removal of conveninece constructor
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 25 Oct 2022 10:33:27 +0200 |
parents | 2278730f9cee |
children | c94a12327737 |
comparison
equal
deleted
inserted
replaced
1151:56bc2c6a17fd | 1153:f1bb1b6d85dd |
---|---|
365 I2 = IdentityTensor(4) | 365 I2 = IdentityTensor(4) |
366 @test I1⊗Ã⊗I2 == InflatedTensor(I1, Ã, I2) | 366 @test I1⊗Ã⊗I2 == InflatedTensor(I1, Ã, I2) |
367 end | 367 end |
368 end | 368 end |
369 | 369 |
370 # Review: If we are thorough in testing multi-D tensors here we can drop tests from many of the volume operators, | |
371 # e.g. first derivative and second derivative. | |
370 @testset "inflate" begin | 372 @testset "inflate" begin |
371 I = LazyTensors.inflate(IdentityTensor(),(3,4,5,6), 2) | 373 I = LazyTensors.inflate(IdentityTensor(),(3,4,5,6), 2) |
372 @test I isa LazyTensor{Float64, 3,3} | 374 @test I isa LazyTensor{Float64, 3,3} |
373 @test range_size(I) == (3,5,6) | 375 @test range_size(I) == (3,5,6) |
374 @test domain_size(I) == (3,5,6) | 376 @test domain_size(I) == (3,5,6) |