BendMlTensor.Mat.flatten: def of bend-ml-tensor@0.1.2.0 Import: import bend-ml-tensor@0.1.2.0/main.bend as BendMlTensor Lines 499-501 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=499&end_line=501 import Base # Mat -> Mat<1, r*c>: the proof comes from the law above def Mat.flatten(+r: Nat, +c: Nat, a: Mat) -> Mat<1n, Nat.mul(r, c)>: Mat.reshape(r, c, 1n, Nat.mul(r, c), reshape_flat(r, c), a) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.mul 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_flat