PetscSortDoubleWithPermutation

Computes the permutation of values that gives a sorted sequence.

Synopsis

int PetscSortDoubleWithPermutation(int n, double *i, int *idx )
Not Collective

Input Parameters

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

Notes

i is unchanged on output.

Keywords

sort, double, permutation

See Also

PetscSortDouble(), PetscSortIntWithPermutation()

Location: src/sys/src/utilssortip.c
System Index
Table of Contents