def Mat.reshape_swap

bend-ml-tensor@0.1.2.0 · main.bend:503

import bend-ml-tensor@0.1.2.0/main.bend as BendMlTensor
import Base

503# Mat<r, c> -> Mat<c, r> over the same data (it is NOT the transpose!): it only reinterprets
504def Mat.reshape_swap(+r: Nat, +c: Nat, a: Mat<r, c>) -> Mat<c, r>:
505  Mat.reshape(r, c, c, r, reshape_swap(r, c), a)

Uses (4)

Used by (0)

No other definition uses this definition.