MatView

Visualizes a matrix object.

Synopsis

int MatView(Mat mat,Viewer viewer)
Collective on Mat unless Viewer is VIEWER_STDOUT_SELF

Input Parameters

mat - the matrix
ptr - visualization context

Notes

The available visualization contexts include
VIEWER_STDOUT_SELF - standard output (default)
VIEWER_STDOUT_WORLD - synchronized standard output where only the first processor opens the file. All other processors send their data to the first processor to print.
VIEWER_DRAWX_WORLD - graphical display of nonzero structure

The user can open alternative vistualization contexts with

ViewerFileOpenASCII() - Outputs matrix to a specified file
ViewerFileOpenBinary() - Outputs matrix in binary to a specified file; corresponding input uses MatLoad()
ViewerDrawOpenX() - Outputs nonzero matrix structure to an X window display
ViewerMatlabOpen() - Outputs matrix to Matlab viewer. Currently only the sequential dense and AIJ matrix types support the Matlab viewer.

The user can call ViewerSetFormat() to specify the outputformat of ASCII printed objects (when using VIEWER_STDOUT_SELF, VIEWER_STDOUT_WORLD and ViewerFileOpenASCII). Available formats include

VIEWER_FORMAT_ASCII_DEFAULT - default, prints matrix contents
VIEWER_FORMAT_ASCII_MATLAB - Matlab format
VIEWER_FORMAT_ASCII_IMPL - implementation-specific format (which is in many cases the same as the default)
VIEWER_FORMAT_ASCII_INFO - basic information about the matrix size and structure (not the matrix entries)
VIEWER_FORMAT_ASCII_INFO_LONG - more detailed information about the matrix structure

Keywords

matrix, view, visualize, output, print, write, draw

See Also

ViewerSetFormat(), ViewerFileOpenASCII(), ViewerDrawOpenX(),
ViewerMatlabOpen(), ViewerFileOpenBinary(), MatLoad()

Location: src/mat/interface/matrix.c
Matrix Index
Table of Contents