Closed oyamad closed 6 years ago
I actually think this should be fixed on the BasisMatrices side.
It turns out that indexing into small (<100 elements) arrays is faster than the equivalent Range like object, so I think LinParams
is leaving some performance on the table by sticking to a range.
That would be helpful. (It will be simplest if nodes
always returns the same type.)
Fixed on BasisMatrices master
Constructor of
Interp
does not work whennodes
returnsRange
, which is the case whenbasis
is generated fromLinParams(n::Int64, a::Real, b::Real)
.Should we extend
S::TS
andScoord::NTuple{N,Vector{Float64}}
to allowRange
, or add an additional constructor which converts the outputs ofnodes
?