def elements_exact
import bendtorch-core@0.1.0.0/src/shape/core.bend as Coreimport Base
628def elements_exact(+shape: Shape) -> {elements(shape) == numel(extents(shape)) : Nat}:
629 match shape:
630 case SShape{dims, size, exact, rank_bound, capacity_bound}:
631 exact
Uses (5)
Used by (61)
- bendtorch-core@0.1.0.0/src/tensor/read_contract:count_exact
- bendtorch-core@0.1.0.0/src/shape/coordinate_proofs:size_fits
- bendtorch-core@0.1.0.0/src/tensor/transforms:elements_equal
- bendtorch-core@0.1.0.0/src/tensor/contracts/broadcast_proof:right_walk_bound
- bendtorch-core@0.1.0.0/src/shape/flat:hollow
- …