DSGetArray#
Returns a pointer to the internal array of one of the matrices. You MUST call DSRestoreArray() when you no longer need to access the array.
Synopsis#
#include "slepcds.h"
PetscErrorCode DSGetArray(DS ds,DSMatType m,PetscScalar *a[])
Not Collective
Input Parameters#
ds - the direct solver context
m - the requested matrix
Output Parameter#
a - pointer to the values
Note#
To get read-only access, use DSGetMat() followed by MatDenseGetArrayRead().
See Also#
DS: Direct Solver (or Dense System), DSRestoreArray(), DSGetArrayReal()
Level#
advanced
Location#
Examples#
src/sys/classes/ds/tests/test1.c
src/sys/classes/ds/tests/test12.c
src/sys/classes/ds/tests/test13.c
src/sys/classes/ds/tests/test15.c
src/sys/classes/ds/tests/test16.c
src/sys/classes/ds/tests/test17.c
src/sys/classes/ds/tests/test18.c
src/sys/classes/ds/tests/test19.c
src/sys/classes/ds/tests/test2.c
src/sys/classes/ds/tests/test20.c
Index of all DS routines Table of Contents for all manual pages Index of all manual pages