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

Static Public Member Functions

static CisMatrix readUrl (String urlString, boolean rowOriented, Comm comm) throws java.io.IOException
 
static CisMatrix read (String fileName, boolean rowOriented, 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

CisMatrixReader can read a MatrixMarket formatted dense or sparse matrix from a plain text or gzipped (.gz) file or url. The url protocol has to be supported by Java such as HTTP and FTP. In order for the gzip decompression to work properly the file or url name must end in gz.

Member Function Documentation

static CisMatrix Jpetra.MatrixMarketIO.CisMatrixReader.read ( String  fileName,
boolean  rowOriented,
Comm  comm 
) throws java.io.IOException
inlinestatic

Reads from a MatrixMarket formatted plain text or gzipped file.

Parameters
fileNameThe relative or absolute file name of the file to be read in.
rowOrientedtrue if the matrix should be read into row major form
commthe comm object to be associated with the new CisMatrix
Returns
A CisMatrix that has had fillComplete called on it.
Exceptions
IOExceptionAny IO errors that occur while reading from the file will be thrown.
static CisMatrix Jpetra.MatrixMarketIO.CisMatrixReader.readUrl ( String  urlString,
boolean  rowOriented,
Comm  comm 
) throws java.io.IOException
inlinestatic

Reads a MatrixMarket formatted plain text or gzipped file from a url.

Parameters
urlStringThe url in for the format protocol://location. Ex: http://test.com/matrix.gz
rowOrientedtrue if the matrix should be read into row major form
commthe comm object to be associated with the new CisMatrix
Returns
A CisMatrix that has had fillComplete called on it.
Exceptions
IOExceptionAny IO errors that occur while reading from the url will be thrown.

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