def read_coordinate

bendtorch-core@0.1.0.0 · src/tensor/signed.bend:262

import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signed
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

262# A[coordinates] with signed coordinates, each wrapped among its axis's
263# extent; and the write A[coordinates] = value.
264def read_coordinate(+shape: Shape.Shape, tensor: Core.Tensor<shape>, coordinates: List<&2, Position>) ->
265  Core.Tensor<shape> & Result<&2, &2, Core.Error, F32>:
266  Core.read_coordinate(shape, tensor, wrap_each(Shape.dimensions(shape), coordinates))

Uses (11)

Used by (1)