VecPermute

Permutes a vector in place using the given ordering.

Synopsis

#include "petscvec.h" 
PetscErrorCode  VecPermute(Vec x, IS row, PetscBool inv)

Input Parameters

vec - The vector
order - The ordering
inv - The flag for inverting the permutation

Level: beginner

Note: This function does not yet support parallel Index Sets with non-local permutations

See Also

MatPermute()

Location:vinv.c