:orphan:
# MatDenseRestoreColumnVecWrite
Returns access to a column of a dense matrix obtained from MatDenseGetColumnVecWrite().
## Synopsis
```
#include "petscmat.h"
PetscErrorCode MatDenseRestoreColumnVecWrite(Mat A, PetscInt col, Vec *v)
```
Collective
## Input Parameters
- ***mat -*** the `Mat` object
- ***col -*** the column index
- ***v -*** the `Vec` object (may be `NULL`)
## See Also
[](ch_matrices), `Mat`, `MATDENSE`, `MATDENSECUDA`, `MATDENSEHIP`, `MatDenseGetColumnVec()`, `MatDenseGetColumnVecRead()`, `MatDenseGetColumnVecWrite()`, `MatDenseRestoreColumnVec()`, `MatDenseRestoreColumnVecRead()`
## Level
intermediate
## Location
src/mat/impls/dense/seq/dense.c
## Implementations
MatDenseRestoreColumnVecWrite_MPIDense in src/mat/impls/dense/mpi/mpidense.c
MatDenseRestoreColumnVecWrite_SeqDense in src/mat/impls/dense/seq/dense.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/dense/seq/dense.c)
[Index of all Mat routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)