def Mat.add_row

bend-tensors@0.0.0.2 · bend_tensors.bend:1515

import bend-tensors@0.0.0.2/bend_tensors.bend as BendTensors
import Base

1515# v added to every row. Masked: a padding row plus v is v, not 0.0.
1516def Mat.add_row(+rows: Nat, +cols: Nat, m: Mat<rows, cols>, v: Vec<cols>) -> Mat<rows, cols>:
1517  MatS{t} = m
1518  VecS{x} = v
1519  MatS{MatT.mask(VecT.depth(rows), VecT.depth(cols), MatT.add_row(VecT.depth(rows), VecT.depth(cols), t, x), 0n, 0n, rows, cols)}

Uses (6)

Used by (0)

No other definition uses this definition.