Skip to content

Reshaping mdspans #354

@headmyshoulder

Description

@headmyshoulder

Is there a way of reshaping a mdspan?

I'm looking for the equivalent of the following numpy code:

arr = np.zeros([10, 5, 3])
arr2 = arr[2:8, :, :2]
arr3 = arr2.reshape(6 * 5, 2)

Does the proposal support that? Its one of the basic functionalities of numpy/pytorch and it would be great if that could be supported in mdspan too.

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