#include "petscmat.h" PetscErrorCode MatGetColumnVector(Mat A,Vec yy,PetscInt col)Not Collective
A | - the matrix | |
yy | - the vector | |
c | - the column requested (in global numbering) |
Since PETSc matrices are usually stored in compressed row format, this routine will generally be slow.
The vector must have the same parallel row layout as the matrix.
Contributed by: Denis Vanderstraeten
Level:advanced
Location:src/mat/utils/getcolv.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages