def cell_right

bendtorch-core@0.1.0.0 · src/tensor/elementwise.bend:336

import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise
import Base

336# One output cell: `scalar(operation, left[ia], right[ib])` when the cell is
337# below `count`, else `+0.0`. Both input arrays come back with the cell.
338def cell_right(+operation: Operation, x: F32, la: Array<F32>, pair: Array<F32> & F32) ->
339  F32 & (Array<F32> & Array<F32>):
340  (ra, y) = pair
341  (scalar(operation, x, y), (la, ra))

Uses (6)

Used by (3)