public class MatrixVectorReader extends BufferedReader
Constructor and Description |
---|
MatrixVectorReader(Reader in)
Constructor for MatrixVectorReader
|
MatrixVectorReader(Reader in,
int sz)
Constructor for MatrixVectorReader
|
Modifier and Type | Method and Description |
---|---|
void |
add(int num,
int[] indexes)
Shifts the indexes.
|
boolean |
hasInfo()
Checks if a Matrix Market header is present ("%%MatrixMarket")
|
void |
readArray(double[] data)
Reads the array data
|
void |
readArray(double[] dataR,
double[] dataI)
Reads the array data.
|
void |
readArray(float[] data)
Reads the array data
|
void |
readArray(float[] dataR,
float[] dataI)
Reads the array data.
|
void |
readArray(int[] data)
Reads the array data
|
void |
readArray(long[] data)
Reads the array data
|
MatrixSize |
readArraySize()
Reads in the size of an array matrix.
|
String[] |
readComments()
Reads all the comments (lines starting with '%').
|
void |
readCoordinate(int[] index,
double[] data)
Reads a coordinate vector
|
void |
readCoordinate(int[] index,
double[] dataR,
double[] dataI)
Reads a coordinate vector.
|
void |
readCoordinate(int[] index,
float[] data)
Reads a coordinate vector
|
void |
readCoordinate(int[] index,
float[] dataR,
float[] dataI)
Reads a coordinate vector.
|
void |
readCoordinate(int[] index,
int[] data)
Reads a coordinate vector
|
void |
readCoordinate(int[] row,
int[] column,
double[] data)
Reads a coordinate matrix
|
void |
readCoordinate(int[] row,
int[] column,
double[] dataR,
double[] dataI)
Reads a coordinate matrix.
|
void |
readCoordinate(int[] row,
int[] column,
float[] data)
Reads a coordinate matrix
|
void |
readCoordinate(int[] row,
int[] column,
float[] dataR,
float[] dataI)
Reads a coordinate matrix.
|
void |
readCoordinate(int[] row,
int[] column,
int[] data)
Reads a coordinate matrix
|
void |
readCoordinate(int[] row,
int[] column,
long[] data)
Reads a coordinate matrix
|
void |
readCoordinate(int[] index,
long[] data)
Reads a coordinate vector
|
MatrixSize |
readCoordinateSize()
Reads in the size of a coordinate matrix.
|
MatrixInfo |
readMatrixInfo()
Reads the matrix info for the Matrix Market exchange format.
|
MatrixSize |
readMatrixSize(MatrixInfo info)
Reads in the size of a matrix.
|
void |
readPattern(int[] index)
Reads a pattern vector
|
void |
readPattern(int[] row,
int[] column)
Reads a pattern matrix
|
VectorSize |
readVectorArraySize()
Reads in the size of a dense vector.
|
VectorSize |
readVectorCoordinateSize()
Reads in the size of a coordinate vector.
|
VectorInfo |
readVectorInfo()
Reads the vector info for the Matrix Market exchange format.
|
VectorSize |
readVectorSize(VectorInfo info)
Reads in the size of a vector.
|
close, mark, markSupported, read, read, readLine, ready, reset, skip
public MatrixVectorReader(Reader in)
in
- A Readerpublic MatrixVectorReader(Reader in, int sz)
in
- A Readersz
- Input buffer sizepublic void add(int num, int[] indexes)
num
- Added to every indexindexes
- indexes to shiftpublic MatrixInfo readMatrixInfo() throws IOException
IOException
public VectorInfo readVectorInfo() throws IOException
IOException
public boolean hasInfo() throws IOException
IOException
public String[] readComments() throws IOException
IOException
public MatrixSize readMatrixSize(MatrixInfo info) throws IOException
IOException
public MatrixSize readArraySize() throws IOException
IOException
public MatrixSize readCoordinateSize() throws IOException
IOException
public VectorSize readVectorSize(VectorInfo info) throws IOException
IOException
public VectorSize readVectorArraySize() throws IOException
IOException
public VectorSize readVectorCoordinateSize() throws IOException
IOException
public void readArray(double[] data) throws IOException
IOException
public void readArray(float[] data) throws IOException
IOException
public void readArray(int[] data) throws IOException
IOException
public void readArray(long[] data) throws IOException
IOException
public void readArray(double[] dataR, double[] dataI) throws IOException
IOException
public void readArray(float[] dataR, float[] dataI) throws IOException
IOException
public void readCoordinate(int[] index, double[] data) throws IOException
IOException
public void readCoordinate(int[] index, float[] data) throws IOException
IOException
public void readCoordinate(int[] index, int[] data) throws IOException
IOException
public void readCoordinate(int[] index, long[] data) throws IOException
IOException
public void readCoordinate(int[] index, float[] dataR, float[] dataI) throws IOException
IOException
public void readCoordinate(int[] index, double[] dataR, double[] dataI) throws IOException
IOException
public void readPattern(int[] index) throws IOException
IOException
public void readCoordinate(int[] row, int[] column, double[] data) throws IOException
IOException
public void readCoordinate(int[] row, int[] column, float[] data) throws IOException
IOException
public void readCoordinate(int[] row, int[] column, int[] data) throws IOException
IOException
public void readCoordinate(int[] row, int[] column, long[] data) throws IOException
IOException
public void readPattern(int[] row, int[] column) throws IOException
IOException
public void readCoordinate(int[] row, int[] column, double[] dataR, double[] dataI) throws IOException
IOException
public void readCoordinate(int[] row, int[] column, float[] dataR, float[] dataI) throws IOException
IOException
Jump to the Parallel Colt Homepage