:orphan: # MatDenseCUDARestoreArrayWrite Restore write access to the CUDA buffer inside a `MATDENSECUDA` matrix previously obtained with `MatDenseCUDAGetArrayWrite()`. ## Synopsis ``` PetscErrorCode MatDenseCUDARestoreArrayWrite(Mat A, PetscScalar **a) ``` Not Collective ## Input Parameters - ***A -*** the matrix - ***a -*** the GPU array in column major order ## See Also `MATDENSECUDA`, `MatDenseCUDAGetArray()`, `MatDenseCUDARestoreArray()`, `MatDenseCUDAGetArrayWrite()`, `MatDenseCUDARestoreArrayRead()`, `MatDenseCUDAGetArrayRead()` ## Level developer ## Location src/mat/impls/dense/mpi/cupm/cuda/matmpidensecuda.cu --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/dense/mpi/cupm/cuda/matmpidensecuda.cu) [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)