law mapped_mathematical_bounded
bendtorch-core@0.1.0.0 · src/tensor/transform_LAWS.bend:276
import bendtorch-core@0.1.0.0/src/tensor/transform_LAWS.bend as TransformLAWS
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout
276law mapped_mathematical_bounded:
277 for +input: Shape.Shape
278 for +axes: List<&2, U32>
279 for +plan: Layout.Plan<input, axes>
280 for +index: U32
281 for mapping: Layout.Mapping<input, axes, plan, index>
282 {Nat.is_lt(U32.to_nat(Layout.source_index(input, axes, plan, index, mapping)),
283 Shape.logical_numel(Shape.dimensions(input))) == True{} : Bool}