Skip to main content

iPsort

Function iPsort 

Source
pub unsafe fn iPsort(x: *mut c_int, n: c_int, k: c_int)
Expand description

Partial sort integers (moves k-th smallest to position k).

§Parameters

  • x: Pointer to integer array
  • n: Number of elements
  • k: Target position (0-indexed) Checked wrapper for iPsort. Calls iPsort_unchecked inside with_r_thread, which panics off R’s main thread. Generated from source location line 2253, column 12. Generated from source file miniextendr-api/src/sys.rs.