def cell

bendtorch-core@0.1.0.0 · src/tensor/matmul.bend:281

import bendtorch-core@0.1.0.0/src/tensor/matmul.bend as Matmul
import Base

281# One output cell: its total when the cell is below `count`, else +0.0.
282def cell(+inner: Nat, +columns: Nat, +position: Nat, la: Array<F32>, ra: Array<F32>, inside: Bool) ->
283  F32 & (Array<F32> & Array<F32>):
284  match inside:
285    case False{}:
286      (0.0, (la, ra))
287    case True{}:
288      dot_of(inner, columns, position, la, ra)

Uses (7)

Used by (3)