def Bands.matvec_l

bend-ml-tensor-array@0.1.19.0 · main.bend:1710

import bend-ml-tensor-array@0.1.19.0/main.bend as BendMlTensorArray
import Base

1710# the same product with x and y as lists (x: c numbers, y: r numbers in row order), without the
1711# Mat conversions of Bands.matvec: for callers that already hold the vector as a list
1712def Bands.matvec_l(+r: Nat, +c: Nat, b: Bands<r, c>, +x: List<&2, F32>) -> BL<r, c>:
1713  bmv(c, r, b, r, {==}, Array.clone(F32, fill_list(x, 0, Array.new(F32, cap_depth(c), 0.0))))

Uses (10)

Used by (1)