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 |
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.
|
inlinestatic |
Reads from a MatrixMarket formatted plain text or gzipped file.
fileName | The relative or absolute file name of the file to be read in. |
rowOriented | true if the matrix should be read into row major form |
comm | the comm object to be associated with the new CisMatrix |
IOException | Any IO errors that occur while reading from the file will be thrown. |
|
inlinestatic |
Reads a MatrixMarket formatted plain text or gzipped file from a url.
urlString | The url in for the format protocol://location. Ex: http://test.com/matrix.gz |
rowOriented | true if the matrix should be read into row major form |
comm | the comm object to be associated with the new CisMatrix |
IOException | Any IO errors that occur while reading from the url will be thrown. |