law write_inside

bendtorch-core@0.1.0.0 · src/tensor/read_write_contract_LAWS.bend:21

import bendtorch-core@0.1.0.0/src/tensor/read_write_contract_LAWS.bend as ReadWriteContractLAWS
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/read_write_records.bend as Records

21law write_inside:
22  for +shape: Shape.Shape
23  for +fill: F32
24  for +index: U32
25  for +value: F32
26  for inside: {Nat.is_lt(U32.to_nat(index), Shape.logical_numel(Shape.dimensions(shape))) == True{} : Bool}
27  Records.WriteInside<shape, fill, index, value>

Uses (10)

Used by (0)

No other definition uses this definition.