Validate that all axes in an array are valid for the given shape Returns the normalized axes or a DimensionError
type Valid = ValidateAxes<[0, -1], [2, 3, 4]> // [0, 2] (normalized)type Invalid = ValidateAxes<[0, 5], [2, 3, 4]> // DimensionError (axis 5 out of bounds) Copy
type Valid = ValidateAxes<[0, -1], [2, 3, 4]> // [0, 2] (normalized)type Invalid = ValidateAxes<[0, 5], [2, 3, 4]> // DimensionError (axis 5 out of bounds)
Validate that all axes in an array are valid for the given shape Returns the normalized axes or a DimensionError