petsc-3.7.1 2016-05-15
Report Typos and Errors

PetscSortStrWithPermutation

Computes the permutation of values that gives a sorted sequence.

Synopsis

#include "petscsys.h"  
PetscErrorCode  PetscSortStrWithPermutation(PetscInt n,const char* i[],PetscInt idx[])
Not Collective Many br

Input Parameters

n - number of values to sort Many br
i - values to sort Many br
idx - permutation array. Must be initialized to 0:n-1 on input. Many br

Many br

Notes

i is unchanged on output. Many br

See Also

PetscSortInt(), PetscSortRealWithPermutation()

Level:intermediate
Location:
src/sys/utils/sortip.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages