law axis_permutation_complete

bendtorch-core@0.1.0.0 · src/tensor/axis_LAWS.bend:44

import bendtorch-core@0.1.0.0/src/tensor/axis_LAWS.bend as AxisLAWS
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout
import bendtorch-core@0.1.0.0/src/tensor/axis_spec.bend as Axis

44law axis_permutation_complete:
45  for +shape: Shape.Shape
46  for +axes: List<&2, U32>
47  for accepted: {True{} == Layout.bijective(shape, axes) : Bool}
48  {Layout.reorder(Shape.dimensions(shape), axes) == Some{Axis.order(U32, Shape.dimensions(shape), Shape.naturals(axes))} : Maybe<&2, List<&2, U32>>}

Uses (11)

Used by (0)

No other definition uses this definition.