def clone_meaning
bendtorch-core@0.1.0.0 · src/tensor/construction_PROOF.bend:146
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/storage/main.bend as Storage
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
146def clone_meaning(-shape: Shape.Shape, original: Core.Tensor<shape>) -> Laws.CloneMeaning<shape, original>:
147 Core.TTensor{storage, length_exact} = original
148 match storage:
149 case Storage.Empty{}:
150 Laws.CloneMeaning{index => {==}, index => {==}, index => {==}, index => {==}}
151 case Storage.Owned{+depth, +length, array, balanced, valid}:
152 clone_owned_meaning(shape, depth, length, array, balanced, valid, length_exact)