comparison test/LazyTensors/lazy_tensor_operations_test.jl @ 1158:c94a12327737 refactor/sbpoperators/inflation

Disregard review comments about multi-d tests. After discussion on Discord we concluded that removing multi-d tests for volume operators would make them too implementation dependent.
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 29 Nov 2022 21:46:54 +0100
parents f1bb1b6d85dd
children 4c0bc52e170f
comparison
equal deleted inserted replaced
1157:03c217c50d7c 1158:c94a12327737
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.
372 @testset "inflate" begin 370 @testset "inflate" begin
373 I = LazyTensors.inflate(IdentityTensor(),(3,4,5,6), 2) 371 I = LazyTensors.inflate(IdentityTensor(),(3,4,5,6), 2)
374 @test I isa LazyTensor{Float64, 3,3} 372 @test I isa LazyTensor{Float64, 3,3}
375 @test range_size(I) == (3,5,6) 373 @test range_size(I) == (3,5,6)
376 @test domain_size(I) == (3,5,6) 374 @test domain_size(I) == (3,5,6)