Skip to content

Boolean indexing #81

@v0dro

Description

@v0dro

Would be great to have a boolean indexing scheme similar to matlab instead of having to specify indexes each time.

Something like:

n = NArray.random(8) n[n.eye(8).bool] = 3

Above code will set all the diagonals of array n to 3.

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