def Blk.sub_row

bend-tensors@0.0.0.2 · bend_tensors.bend:257

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

257# v subtracted from every row
258def Blk.sub_row(m: Blk, v: Vec4) -> Blk:
259  Blk{a00, a01, a02, a03, a10, a11, a12, a13, a20, a21, a22, a23, a30, a31, a32, a33} = m
260  Vec4{+y0, +y1, +y2, +y3} = v
261  Blk{(a00 - y0 : F32), (a01 - y1 : F32), (a02 - y2 : F32), (a03 - y3 : F32),
262      (a10 - y0 : F32), (a11 - y1 : F32), (a12 - y2 : F32), (a13 - y3 : F32),
263      (a20 - y0 : F32), (a21 - y1 : F32), (a22 - y2 : F32), (a23 - y3 : F32),
264      (a30 - y0 : F32), (a31 - y1 : F32), (a32 - y2 : F32), (a33 - y3 : F32)}

Uses (4)

Used by (0)

No other definition uses this definition.