law signed_write_dynamic_wraps
import bendtorch-core@0.1.0.0/src/tensor/signed_LAWS.bend as SignedLAWSimport 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/elementwise_totality.bend as Totality
import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signed
162law signed_write_dynamic_wraps:
163 for input: Core.Dynamic
164 for +index: Signed.Position
165 for value: F32
166 {Signed.write_dynamic(input, index, value) == Core.write_dynamic(input, Signed.wrap(Shape.count(Totality.dynamic_shape(input)), index), value) :
167 Core.Dynamic & Result<&2, &2, Core.Error, Unit>}
Uses (12)
Used by (0)
No other definition uses this definition.