BendMlTensor.Mat.matmul: def of bend-ml-tensor@0.1.2.0 Import: import bend-ml-tensor@0.1.2.0/main.bend as BendMlTensor Lines 270-274 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=270&end_line=274 import Base # (n x k) ยท (k x m) = (n x m): the inner dimensions must be the same k def Mat.matmul(-n: Nat, +k: Nat, +m: Nat, a: Mat, b: Mat) -> Mat: match a b: case Mat{x} Mat{y}: Mat{matmul.rows(x, transpose.go(m, y))} 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=matmul.rows https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor@0.1.2.0/main.bend&name=transpose.go