PetscViewerMatlabPutArray#

Puts an array into the PETSCVIEWERMATLAB viewer.

Synopsis#

PetscErrorCode PetscViewerMatlabPutArray(PetscViewer mfile, int m, int n, const PetscScalar *array, const char *name)

Not Collective: only processor zero saves array

Input Parameters#

  • mfile - the viewer

  • m - the first dimensions of array

  • n - the second dimensions of array

  • array - the array (represented in one dimension)

  • name - the MATLAB name of array

Note#

Only writes array values on processor 0.

See Also#

PETSCVIEWERMATLAB, PetscViewerMatlabGetArray()

Level#

advanced

Location#

src/sys/classes/viewer/impls/matlab/vmatlab.c


Edit on GitLab

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