type WriteOutside
bendtorch-core@0.1.0.0 · src/tensor/read_write_records.bend:35
import bendtorch-core@0.1.0.0/src/tensor/read_write_records.bend as ReadWriteRecords
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/tensor/observation.bend as Observation
35type WriteOutside<-shape: Shape.Shape, -fill: F32, -index: U32, -value: F32> is Type:
36 WriteOutside{
37 write: WriteContract<shape, fill, index, value, 8>,
38 retained_value: @+other: U32 -> @inside: {Nat.is_lt(U32.to_nat(other), Shape.logical_numel(Shape.dimensions(shape))) == True{} : Bool} ->
39 {Observation.written_value(shape, index, value, other, Core.new(shape, fill)) == Some{fill} : Maybe<&2, F32>}}