8000 Support initialization/assignment from initializer lists · Issue #55 · ndarray/ndarray · GitHub
[go: up one dir, main page]

Skip to content

Support initialization/assignment from initializer lists #55

@kfindeisen

Description

@kfindeisen

Would it be possible to do bulk assignments to ndarrays, e.g.,

array[view(3)(0:2)] = { 1.0, 2.0 };

Naturally, the dimensions would need to match, which would probably restrict initializer list support to 1-dimensional arrays or slices.

Similarly, would it be possible to initialize 1-dimensional arrays from an initializer list?

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

      0