Skip to content

Implement matrix_transpose and mT method for TensorVariables #677

Closed
@ricardoV94

Description

@ricardoV94

Description

Numpy 2.0 is introducing these, we should also. We already have the function implemented internally in a bunch of places when doing rewrites with Blockwise Ops.

https://numpy.org/devdocs/release/2.0.0-notes.html#matrix-transpose-support-for-ndarrays

Under the hood it would be a simple swapaxes(self, -1, -2)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions