~/bend-docscommunity

src/tensor/clone_metadata_contract_LAWS.bend source

src/tensor/clone_metadata_contract_LAWS.bend on the hub · documented module

import Baseimport ../shape/core.bend as Shapeimport ./clone_metadata_records.bend as Recordslaw clone_contract:  for +shape: Shape.Shape  for +fill: F32  Records.CloneContract<shape, fill>law clone_write:  for +shape: Shape.Shape  for +fill: F32  for +index: U32  for +value: F32  for inside: {Nat.is_lt(U32.to_nat(index), Shape.logical_numel(Shape.dimensions(shape))) == True{} : Bool}  Records.CloneWrite<shape, fill, index, value>law metadata_contract:  for +shape: Shape.Shape  for +fill: F32  Records.MetadataContract<shape, fill>