Skip to main content
Ctrl+K
SLEPc Home SLEPc Home
  • About
  • Installation
  • Documentation
  • C/Fortran API
  • slepc4py API
  • Material
  • Contact
  • GitLab
  • UPV
  • Feed
  • About
  • Installation
  • Documentation
  • C/Fortran API
  • slepc4py API
  • Material
  • Contact
  • GitLab
  • UPV
  • Feed
  • DSGetArray

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#

src/sys/classes/ds/interface/dsops.c

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

On this page
  • Synopsis
  • Input Parameters
  • Output Parameter
  • Note
  • See Also
  • Level
  • Location
  • Examples
Edit on GitLab

This Page

  • Show Source

© Copyright 2002-2026, Universitat Politecnica de Valencia, Spain.

Created using Sphinx 8.2.3.

Built with the PyData Sphinx Theme 0.16.1.