def scatter_cell
import bendtorch-core@0.1.0.0/src/tensor/slice.bend as Sliceimport Base
279def scatter_cell(+plan: Plan, +position: Nat, state: Array<F32> & Array<F32>, inside: Bool) -> F32 & (Array<F32> & Array<F32>):
280 match inside:
281 case False{}:
282 (0.0, state)
283 case True{}:
284 scattered(state, target(plan, position))