PETSc version 3.15.5
MatDenseGetColumnVecWrite
Gives write-only access to a column of a dense matrix, represented as a Vec.
Synopsis
#include "petscmat.h"
PetscErrorCode MatDenseGetColumnVecWrite(Mat A,PetscInt col,Vec *v)
Collective
Input Parameters
| mat | - the Mat object
|
| col | - the column index
|
Output Parameter
Notes
The vector is owned by PETSc. Users need to call MatDenseRestoreColumnVecWrite() when the vector is no longer needed.
Use MatDenseGetColumnVec() to obtain read-write access or MatDenseGetColumnVecRead() for read-only access.
See Also
MATDENSE, MATDENSECUDA, MatDenseGetColumnVec(), MatDenseGetColumnVecRead(), MatDenseRestoreColumnVec(), MatDenseRestoreColumnVecRead(), MatDenseRestoreColumnVecWrite()
Level
intermediate
Location
src/mat/impls/dense/seq/dense.c
Implementations
MatDenseGetColumnVecWrite_MPIDenseCUDA in src/mat/impls/dense/mpi/mpidense.c
MatDenseGetColumnVecWrite_MPIDense in src/mat/impls/dense/mpi/mpidense.c
MatDenseGetColumnVecWrite_SeqDenseCUDA in src/mat/impls/dense/seq/cuda/densecuda.cu
MatDenseGetColumnVecWrite_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