#include "petscsys.h" PetscErrorCode PetscSortSplitReal(PetscInt ncut,PetscInt n,PetscReal a[],PetscInt idx[])Not Collective
ncut | - splitig index | |
n | - number of values to sort |
a | - array of values, on output the values are permuted such that its elements satisfy: abs(a[i]) >= abs(a[ncut-1]) for i < ncut and abs(a[i]) <= abs(a[ncut-1]) for i >= ncut | |
idx | - index for array a, on output permuted accordingly |