MatSeqAIJCUSPARSEGetArrayRead#
gives read-only access to the array where the device data for a MATSEQAIJCUSPARSE matrix nonzero entries are stored
Synopsis#
#include "petscmat.h" 
PetscErrorCode MatSeqAIJCUSPARSEGetArrayRead(Mat A, const PetscScalar **a)
Not Collective
Input Parameter#
- A - a - MATSEQAIJCUSPARSEmatrix
Output Parameter#
- a - pointer to the device data 
Note#
Will trigger host-to-device copies if the most up-to-date matrix data is on the host
See Also#
Matrices, Mat, MatSeqAIJCUSPARSEGetArray(), MatSeqAIJCUSPARSEGetArrayWrite(), MatSeqAIJCUSPARSERestoreArrayRead()
Level#
developer
Location#
src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages