Skip to content

Implement getindex and view for AbstractZero #269

Open
@sethaxen

Description

@sethaxen

It would be handy to add something like the following overloads:

getindex(x::AbstractZero, i..) = x
view(x::AbstractZero, i...) = x

since a Zero if interpreted as an array can only have Zero subarrays or elements. This would make it so rules that depend only on certain elements of a differential don't necessarily have to special-case to work around possible Zero arrays but can instead just index them as normal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LinearOperatorsFor issues relating to defining linear operators on AbstractDifferentialsgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions