PETSc version 3.16.6
MatDenseGetSubMatrix
Gives access to a block of columns of a dense matrix, represented as a Mat.
Synopsis
#include "petscmat.h"
PetscErrorCode MatDenseGetSubMatrix(Mat A,PetscInt cbegin,PetscInt cend,Mat *v)
Collective
Input Parameters
| mat | - the Mat object
|
| cbegin | - the first index in the block
|
| cend | - the last index in the block
|
Output Parameter
Notes
The matrix is owned by PETSc. Users need to call MatDenseRestoreSubMatrix() when the matrix is no longer needed.
See Also
MATDENSE, MATDENSECUDA, MatDenseGetColumnVec(), MatDenseRestoreColumnVec(), MatDenseRestoreSubMatrix()
Level
intermediate
Location
src/mat/impls/dense/seq/dense.c
Implementations
MatDenseGetSubMatrix_MPIDense in src/mat/impls/dense/mpi/mpidense.c
MatDenseGetSubMatrix_SeqDenseCUDA in src/mat/impls/dense/seq/cuda/densecuda.cu
MatDenseGetSubMatrix_SeqDense in src/mat/impls/dense/seq/dense.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages