def Mat.sum_rows
import bend-tensors@0.0.0.2/bend_tensors.bend as BendTensorsimport Base
1503def Mat.sum_rows(+rows: Nat, +cols: Nat, m: Mat<rows, cols>) -> Vec<rows>:
1504 MatS{t} = m
1505 VecS{VecT.mask(VecT.depth(rows), MatT.sum_rows(VecT.depth(rows), VecT.depth(cols), t), 0n, rows)}