PetscViewerMathematicaPutCSRMatrix#

Send a sparse matrix in CSR format to a Mathematica kernel as a LinearAlgebraCSRMatrix bound to a symbol in the kernel’s namespace.

Synopsis#

PetscErrorCode PetscViewerMathematicaPutCSRMatrix(PetscViewer viewer, int m, int n, int *i, int *j, PetscReal *a)

Not Collective

Input Parameters#

  • viewer - the PETSCVIEWERMATHEMATICA viewer

  • m - the number of rows

  • n - the number of columns

  • i - CSR row pointers of length m + 1

  • j - CSR column indices

  • a - CSR nonzero values

Note#

The Mathematica symbol name defaults to mat and can be changed with PetscViewerMathematicaSetName().

See Also#

PetscViewer, PETSCVIEWERMATHEMATICA, PetscViewerMathematicaPutMatrix(), PetscViewerMathematicaSetName()

Level#

developer

Location#

src/sys/classes/viewer/impls/mathematica/mathematica.c


Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages