JuliaApproximation / CompactBases.jl

Julia library for function approximation with compact basis functions
MIT License
16 stars 2 forks source link

Fix ApplyStyle for restricted bases #3

Open jagot opened 4 years ago

jagot commented 4 years ago

R*c where R is a restricted basis will by default use LazyArrays.FlattenMulStyle, e.g.

julia> typeof(applied(*, R, cf))
Applied{LazyArrays.FlattenMulStyle,typeof(*),Tuple{QuasiArrays.SubQuasiArray{Float64,2,FEDVR{Float64,Float64,Fill{Int64,1,Tuple{Base.OneTo{Int64}}}},Tuple{Inclusion{Float64,Interval{:closed,:closed,Float64}},UnitRange{Int64}},false},Array{Float64,1}}}

which will result in dropping the restriction and padding the coefficient vector by zeroes, which we do not want.