Open dlfivefifty opened 3 years ago
Sometimes we want to embed say a Chebyshev expansion in R so that it is defined to be zero outside. I was thinking the "right" notation would be:
Chebyshev
R
T = ChebyshevT() T_ex = setindex(Zeros(Inclusion(ℝ), axes(T,2)), T, axes(T,1), :)
Here this would return a
ApplyQuasiArray(setindex, Zeros(Inclusion(ℝ), axes(T,2)), T, axes(T,1), :)
Cf. the recently added PaddedArray which is equivalent to ApplyArray(setindex, ...)
PaddedArray
ApplyArray(setindex, ...)
https://github.com/JuliaArrays/LazyArrays.jl/blob/a2ad804b83d3c7aaba798e0f258f92fa65fa2621/src/lazyconcat.jl#L1249
Sometimes we want to embed say a
Chebyshev
expansion inR
so that it is defined to be zero outside. I was thinking the "right" notation would be:Here this would return a
Cf. the recently added
PaddedArray
which is equivalent toApplyArray(setindex, ...)
https://github.com/JuliaArrays/LazyArrays.jl/blob/a2ad804b83d3c7aaba798e0f258f92fa65fa2621/src/lazyconcat.jl#L1249