TypeTensor - v0.1.0
    Preparing search index...

    Type Alias ValidateAxes<Axes, S>

    ValidateAxes: ValidateAxesHelper<Axes, S, readonly []>

    Validate that all axes in an array are valid for the given shape Returns the normalized axes or a DimensionError

    Type Parameters

    • Axes extends readonly number[]
    • S extends Shape
    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)