PetscViewerSocketPutSparse_Private

Passes a sparse matrix in AIJ format to a Socket PetscViewer.

Synopsis

int PetscViewerSocketPutSparse_Private(PetscViewer vw,int m,int n,int nnz,PetscScalar *v,int *r,int *c)

Input Parameters

vw - obtained from PetscViewerSocketOpen()
m - number of rows of matrix
m - number of columns of matrix
nnz - number of nonzeros in matrix
v - the nonzero entries
r - the row pointers (m + 1 of them)
c - the column pointers (nnz of them)

Notes

Most users should not call this routine, but instead should employ
    MatView(Mat matrix,PetscViewer viewer)

Notes for Advanced Users

PetscViewerSocketPutSparse_Private() actually passes the matrix transpose, since Matlab prefers column oriented storage.

See Also

PetscViewerSocketOpen(), MatView()

Level:developer
Location:
src/sys/src/viewer/impls/socket/sendsparse.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages