def Mat.mul
import bend-tensors@0.0.0.2/bend_tensors.bend as BendTensorsimport Base
1464# elementwise (Hadamard) product; the matrix product is Mat.matmul
1465def Mat.mul(+rows: Nat, +cols: Nat, m: Mat<rows, cols>, n: Mat<rows, cols>) -> Mat<rows, cols>:
1466 MatS{x} = m
1467 MatS{y} = n
1468 MatS{MatT.mul(VecT.depth(rows), VecT.depth(cols), x, y)}
Uses (4)
Used by (0)
No other definition uses this definition.