Mercurial > repos > public > sbplib_julia
comparison LazyTensors/test/runtests.jl @ 277:21e5c1dd6794 boundary_conditions
Add getindex-function for region indices. Update LazyArray tests. NOTE: Not sure if this is the way to go.
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Mon, 06 Jan 2020 12:08:00 +0100 |
parents | e3611c2181bc |
children | d6edd37551ea |
comparison
equal
deleted
inserted
replaced
276:e3611c2181bc | 277:21e5c1dd6794 |
---|---|
69 | 69 |
70 m = DummyMapping{Float64, 2, 2}() | 70 m = DummyMapping{Float64, 2, 2}() |
71 v = ones(3,3) | 71 v = ones(3,3) |
72 I = (Index{Lower}(1),Index{Interior}(2)); | 72 I = (Index{Lower}(1),Index{Interior}(2)); |
73 @test size(m*v) == 2 .*size(v) | 73 @test size(m*v) == 2 .*size(v) |
74 @test (m*v)[I...] == (:apply,v,I) | 74 @test (m*v)[I] == (:apply,v,I) |
75 | 75 |
76 struct ScalingOperator{T,D} <: TensorOperator{T,D} | 76 struct ScalingOperator{T,D} <: TensorOperator{T,D} |
77 λ::T | 77 λ::T |
78 end | 78 end |
79 | 79 |