Jpetra Development
Static Public Member Functions
Jpetra::MatrixMarketIO::CisMatrixWriter Class Reference
Inheritance diagram for Jpetra::MatrixMarketIO::CisMatrixWriter:
Inheritance graph
[legend]
Collaboration diagram for Jpetra::MatrixMarketIO::CisMatrixWriter:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static void sendToMatvis (String server, int port, CisMatrix cisMatrix, Comm comm) throws java.io.IOException
static void write (String fileName, CisMatrix cisMatrix, Comm comm) throws java.io.IOException

Detailed Description

Writes a CisMatrix to a plain text MatrixMarket formatted file or to a TCP/IP socket for display in Matvis.

Author:
Jason Cross

Member Function Documentation

static void Jpetra::MatrixMarketIO::CisMatrixWriter::sendToMatvis ( String  server,
int  port,
CisMatrix  cisMatrix,
Comm  comm 
) throws java.io.IOException [inline, static]

Opens a TCP/IP connection to Matvis and sends the CisMatrix to Matvis for dispaly.

Parameters:
serverThe server to send to. The server can be an IP address or a name. Ex: 127.0.0.1 or localhost
portThe TCP/IP port on which Matvis is listening for connections.
cisMatrixThe CisMatri to send to Matvis.
Exceptions:
IOExceptionAny errors that occur while trying to connect to or send the CisMatrix> to Matvis are thrown.
static void Jpetra::MatrixMarketIO::CisMatrixWriter::write ( String  fileName,
CisMatrix  cisMatrix,
Comm  comm 
) throws java.io.IOException [inline, static]

Writes a CisMatrix to a plan text file in MatrixMarket format.

Parameters:
fileNamethe absolute or relative path of the file to write to
cisMatrixthe CisMatrix to write to the file
Exceptions:
IOExceptionAny errors that occur while trying to open or read form the file are thrown.

The documentation for this class was generated from the following file:
 All Classes Functions Variables