def bijective
import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layoutimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
34def bijective(+shape: Shape.Shape, +axes: List<&2, U32>) -> Bool:
35 Bool.and(Nat.is_eq(Shape.rank_dimensions(axes), Shape.rank_dimensions(Shape.dimensions(shape))),
36 Bool.and(bounded(axes, Shape.rank(shape)), unique(axes)))