BendMlTensor.Mat.reshape_swap: def of bend-ml-tensor@0.1.2.0 Import: import bend-ml-tensor@0.1.2.0/main.bend as BendMlTensor Lines 503-505 of bend-ml-tensor@0.1.2.0/main.bend: https://jend.leeeet.dev/read.txt?path=bend-ml-tensor@0.1.2.0/main.bend&start_line=503&end_line=505 import Base # Mat -> Mat over the same data (it is NOT the transpose!): it only reinterprets def Mat.reshape_swap(+r: Nat, +c: Nat, a: Mat) -> Mat: Mat.reshape(r, c, c, r, reshape_swap(r, c), a) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor@0.1.2.0/main.bend&name=Mat https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor@0.1.2.0/main.bend&name=Mat.reshape https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor@0.1.2.0/main.bend&name=reshape_swap