type ElementPoint

bendtorch-core@0.1.0.0 · src/tensor/construction_PROOF.bend:307

import bendtorch-core@0.1.0.0/src/tensor/construction_PROOF.bend as ConstructionPROOF
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/construction_LAWS.bend as Laws

307type ElementPoint<-shape: Shape.Shape, -values: List<&2, F32>, -tensor: Core.Tensor<shape>, -index: U32> is Data:
308  ElementPoint{-meaning: Core.ObservationChecked(Core.Packed{shape, tensor}, index) &
309    ({Core.checked_observe(shape, tensor, index) == Laws.list_element(values, U32.to_nat(index)) : Maybe<&2, F32>} &
310      {Core.observe(shape, tensor, index) == Laws.list_element(values, U32.to_nat(index)) : Maybe<&2, F32>})}

Uses (13)

Used by (2)