MatGetBrowsOfAoCols
Creates a SeqAIJ matrix by taking rows of B that equal to nonzero columns of the OFF-DIAGONAL portion of local A
Synopsis
#include "petscmat.h"
PetscErrorCode MatGetBrowsOfAoCols(Mat A,Mat B,MatReuse scall,PetscInt **startsj,PetscInt **startsj_r,MatScalar **bufa_ptr,Mat *B_oth)
Collective on Mat
Input Parameters
| A,B | - the matrices in mpiaij format
|
| scall | - either MAT_INITIAL_MATRIX or MAT_REUSE_MATRIX
|
| startsj | - starting point in B's sending and receiving j-arrays, saved for MAT_REUSE (or PETSC_NULL)
|
| startsj_r | - similar to startsj for receives
|
| bufa_ptr | - array for sending matrix values, saved for MAT_REUSE (or PETSC_NULL)
|
Output Parameter