|
1 | 1 | using ContinuumArrays, QuasiArrays, LazyArrays, IntervalSets, FillArrays, LinearAlgebra, BandedMatrices, FastTransforms, InfiniteArrays, Test, Base64, RecipesBase |
2 | 2 | import ContinuumArrays: ℵ₁, materialize, AffineQuasiVector, BasisLayout, AdjointBasisLayout, SubBasisLayout, ℵ₁, |
3 | 3 | MappedBasisLayout, AdjointMappedBasisLayout, MappedWeightedBasisLayout, TransformFactorization, Weight, WeightedBasisLayout, SubWeightedBasisLayout, WeightLayout, |
4 | | - Expansion, basis, invmap, Map, checkpoints, _plotgrid |
| 4 | + Expansion, basis, invmap, Map, checkpoints, _plotgrid, mul |
5 | 5 | import QuasiArrays: SubQuasiArray, MulQuasiMatrix, Vec, Inclusion, QuasiDiagonal, LazyQuasiArrayApplyStyle, LazyQuasiArrayStyle |
6 | 6 | import LazyArrays: MemoryLayout, ApplyStyle, Applied, colsupport, arguments, ApplyLayout, LdivStyle, MulStyle |
7 | 7 |
|
@@ -34,6 +34,7 @@ import LazyArrays: MemoryLayout, ApplyStyle, Applied, colsupport, arguments, App |
34 | 34 | @testset "Derivative" begin |
35 | 35 | x = Inclusion(-1..1) |
36 | 36 | D = Derivative(x) |
| 37 | + @test D == Derivative{Float64}(x) == Derivative{Float64}(-1..1) |
37 | 38 | @test D*x ≡ QuasiOnes(x) |
38 | 39 | @test D^2 * x ≡ QuasiZeros(x) |
39 | 40 | @test D*[x D*x] == [D*x D^2*x] |
|
137 | 138 | δ = DiracDelta(1.2,1..3) |
138 | 139 | L = LinearSpline([1,2,3]) |
139 | 140 | @test @inferred(δ'L) ≈ [0.8, 0.2, 0.0] |
| 141 | + @test δ'f == mul(δ',f) == dot(δ,f) == f[1.2] |
140 | 142 |
|
141 | 143 | @test @inferred(L'L) == SymTridiagonal([1/3,2/3,1/3], [1/6,1/6]) |
142 | 144 |
|
|
0 commit comments