TypeTensor - v0.1.0
    Preparing search index...

    Type Alias MinOp<Input, Axes, KeepDims, OutputDType>

    MinOp: ValidateReduction<Input["__shape"], Axes> extends true
        ? StorageTransformation<
            "min",
            TensorStorage<
                OutputDType,
                ComputeReductionShape<Input["__shape"], Axes, KeepDims>,
                ComputeStrides<ComputeReductionShape<Input["__shape"], Axes, KeepDims>>,
                ReductionOpLayout<Input["__layout"]>,
            >,
            readonly [Input],
        > & { __keepDims: KeepDims; __minAxes: Axes }
        : never

    Min reduction operation Computes the minimum of tensor elements along specified axes

    Type Parameters

    • Input extends AnyTensorStorage

      Input tensor storage type

    • Axes extends readonly number[] | undefined

      Axes to reduce along (undefined means reduce all)

    • KeepDims extends boolean = false

      Whether to keep reduced dimensions as size 1

    • OutputDType extends AnyDType = Input["__dtype"]

      Output data type (defaults to same as input)

    // Min along last axis, keep dimension
    type Input = TensorStorage<Int32, [2, 3, 4], [12, 4, 1], DefaultLayoutFlags>;
    type Result = MinOp<Input, [-1], true>; // Shape: [2, 3, 1]
    // Global min (all elements)
    type GlobalMin = MinOp<Input, undefined, false>; // Shape: []