kotlin-numpy / org.jetbrains.numkt / argMax

argMax

fun <T : Number> argMax(a: KtNDArray<T>): Long (source)

Returns the index of the maximum value along the flattened array.

Parameters

a - input array.

Return
index of type Long.

See Also

argMin

fun <T : Number> argMax(a: KtNDArray<T>, axis: Int): KtNDArray<Long> (source)

Returns the indices of the maximum values along an axis.

Parameters

a - input array.

axis - indices along the specified axis.

Return
KtNDArray of indices into the array. It has the same shape as a with the dimension along axis removed.

See Also

argMin