def Mat.scale_rows
import bend-tensors@0.0.0.2/bend_tensors.bend as BendTensorsimport Base
1527# row i times v_i. Masked, so its law needs no fact about x * 0.0.
1528def Mat.scale_rows(+rows: Nat, +cols: Nat, m: Mat<rows, cols>, v: Vec<rows>) -> Mat<rows, cols>:
1529 MatS{t} = m
1530 VecS{x} = v
1531 MatS{MatT.mask(VecT.depth(rows), VecT.depth(cols), MatT.scale_rows(VecT.depth(rows), VecT.depth(cols), t, x), 0n, 0n, rows, cols)}