petsc-3.3-p7 2013-05-11

MatPermute

Creates a new matrix with rows and columns permuted from the original.

Synopsis

#include "petscmat.h" 
PetscErrorCode  MatPermute(Mat mat,IS row,IS col,Mat *B)
Collective on Mat

Input Parameters

mat - the matrix to permute
row - row permutation, each processor supplies only the permutation for its rows
col - column permutation, each processor needs the entire column permutation, that is this is the same size as the total number of columns in the matrix. It can often be obtained with ISAllGather() on the row permutation

Output Parameters

B -the permuted matrix

See Also

MatGetOrdering(), ISAllGather()

Level:advanced
Location:
src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages