Skip to content

Add support for setindex for extending a function  #76

@dlfivefifty

Description

@dlfivefifty

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:

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, ...)

https://github.com/JuliaArrays/LazyArrays.jl/blob/a2ad804b83d3c7aaba798e0f258f92fa65fa2621/src/lazyconcat.jl#L1249

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions