Skip to content

Numpy compatibility for the type of single ndarray members  #400

Open
@arnonsen

Description

@arnonsen

On formal Numpy, the output for print(type((np.array([1],dtype=np.int32)[0]))) is <class 'numpy.int32'>, the array items keeps their types when used as scalars.
On ulab the items out of the array becomes 'int' or 'float'.
Is it worthwhile supporting this feature on Ulab, is there any added value for this feature ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnumpy 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