Skip to main content

top_k

Function top_k 

Source
pub fn top_k<T: Element, const N: usize>(
    x: &[T],
    shape: &[usize],
    k: usize,
    axis: usize,
) -> ([T; N], [i32; N])
Expand description

top_k along axis (ruxla_kernels::array::top_k): the values and their indices.

ยงPanics

Panics if the results do not have N elements.