def Mat.sub_col
import bend-tensors@0.0.0.2/bend_tensors.bend as BendTensorsimport Base
1521# row i minus v_i. Masked: a padding column minus v_i is -v_i, not 0.0.
1522def Mat.sub_col(+rows: Nat, +cols: Nat, m: Mat<rows, cols>, v: Vec<rows>) -> Mat<rows, cols>:
1523 MatS{t} = m
1524 VecS{x} = v
1525 MatS{MatT.mask(VecT.depth(rows), VecT.depth(cols), MatT.sub_col(VecT.depth(rows), VecT.depth(cols), t, x), 0n, 0n, rows, cols)}