diff --git a/Project.toml b/Project.toml index bb2f0dd..834f1a3 100644 --- a/Project.toml +++ b/Project.toml @@ -39,7 +39,7 @@ HypergeometricFunctions = "0.3.4" InfiniteArrays = " 0.14" InfiniteLinearAlgebra = "0.8" IntervalSets = "0.7" -LazyArrays = "2.0.3" +LazyArrays = "2.2" LazyBandedMatrices = "0.10" QuasiArrays = "0.11" SpecialFunctions = "1.0, 2" diff --git a/test/test_chebyshev.jl b/test/test_chebyshev.jl index 012800b..9929264 100644 --- a/test/test_chebyshev.jl +++ b/test/test_chebyshev.jl @@ -5,7 +5,7 @@ import ClassicalOrthogonalPolynomials: Clenshaw, recurrencecoefficients, clensha import LazyArrays: ApplyStyle import QuasiArrays: MulQuasiMatrix import Base: OneTo -import ContinuumArrays: MappedWeightedBasisLayout, Map, WeightedBasisLayout +import ContinuumArrays: MappedWeightedBasisLayout, Map, WeightedBasisLayout, ExpansionLayout import BandedMatrices: isbanded @testset "Chebyshev" begin @@ -578,6 +578,10 @@ import BandedMatrices: isbanded @test T \ exp.(im*x) ≈ transform(T, x -> exp(im*x)) @test expand(T, x -> exp(im*x))[0.1] ≈ exp(im*0.1) end + + @testset "diff of truncation" begin + MemoryLayout(diff(ChebyshevT()[:,1:5]) * randn(5)) isa ExpansionLayout + end end struct QuadraticMap{T} <: Map{T} end