Jpetra  Development
 All Classes Functions Variables
Static Public Member Functions | List of all members
Jpetra.MatrixMarketIO.CisMatrixWriter Class Reference
Inheritance diagram for Jpetra.MatrixMarketIO.CisMatrixWriter:
Inheritance graph
[legend]
Collaboration diagram for Jpetra.MatrixMarketIO.CisMatrixWriter:
Collaboration graph
[legend]

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
 
- Static Public Member Functions inherited from Jpetra.JpetraObject
static void setRootPrint (String key, boolean rootPrint)
 
static void setRootStream (String key, PrintStream rootStream)
 
static void setVnodesPrint (String key, boolean vnodesPrint)
 
static void setVnodesStream (String key, PrintStream vnodesStream)
 
static void print (String key, String message)
 
static void println (String key, String message)
 
static void setAmIroot (Comm comm)
 

Additional Inherited Members

- Public Member Functions inherited from Jpetra.JpetraObject
 JpetraObject ()
 
void initializeOutput ()
 
- Static Public Attributes inherited from Jpetra.JpetraObject
static HashMap outputStreams = new HashMap(4)
 
static boolean amIroot
 

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
inlinestatic

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.

References Jpetra.MatrixMarketIO.CisMatrixWriter.write().

static void Jpetra.MatrixMarketIO.CisMatrixWriter.write ( String  fileName,
CisMatrix  cisMatrix,
Comm  comm 
) throws java.io.IOException
inlinestatic

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.

Referenced by Jpetra.MatrixMarketIO.CisMatrixWriter.sendToMatvis().


The documentation for this class was generated from the following file: