DSGetArrayReal#
Returns a real pointer to the internal array of \(T\) or \(D\). You MUST call DSRestoreArrayReal() when you no longer need to access the array.
Synopsis#
#include "slepcds.h"
PetscErrorCode DSGetArrayReal(DS ds,DSMatType m,PetscReal *a[])
Not Collective
Input Parameters#
ds - the direct solver context
m - the requested matrix
Output Parameter#
a - pointer to the values
Note#
This function can be used only for DS_MAT_T and DS_MAT_D. These matrices always
store real values, even in complex scalars, that is why the returned pointer is
PetscReal.
See Also#
DS: Direct Solver (or Dense System), DSRestoreArrayReal(), DSGetArray()
Level#
advanced
Location#
Examples#
src/sys/classes/ds/tests/test22.c
src/sys/classes/ds/tests/test24.c
src/sys/classes/ds/tests/test26.c
src/sys/classes/ds/tests/test27.c
src/sys/classes/ds/tests/test3.c
src/sys/classes/ds/tests/test6.c
src/sys/classes/ds/tests/test8.c
Index of all DS routines Table of Contents for all manual pages Index of all manual pages