Skip to content

Consider supporting slicing with symbols #328

@arcondello

Description

@arcondello

Currently you can index one array symbol with another

A = model.constant(np.arange(5))
idxs = model.constant([0, 1, 2])
A[idxs]

and you can slice array symbols

A = model.constant(np.arange(5))
A[:3]

but you cannot include other symbols in the slice

A = model.constant(np.arange(5))
stop = model.constant(3)
A[:stop]  # throws an error

We should consider supporting this.

See also #327

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions