Skip to content

Constructed array using ulab.numpy.ndarray() #301

Open
@water5

Description

@water5

https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html

Refer numpy.ndarray(shape), its parameter is shape, although arrays should be constructed using array(), arange(), zeros() ... and ulab.numpy support 2D array currently, but I think compatible numpy.ndarray() will be a good idea.

Currently:
ulab.numpy.ndarray((2, 2)) -> array([2.0, 2.0], dtype=float32)

Metadata

Metadata

Assignees

No one assigned

    Labels

    numpy compatibilitya function's behaviour doesn't conform to `numpy`

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions