Skip to content

Passing multidimensional C# array to np.array results in a flat numpy array #27

@lostmsu

Description

@lostmsu
var shape = np.array(new float[,] { { 0, 0 }, { 0, 1 }, { 1, 0 }, { 1, 1 } }).shape;

Expected

(4,2)

Actual

8

Workaround

Use jagged array or reshape.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions