|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Reader
java.io.BufferedReader
no.uib.cipr.matrix.io.MatrixVectorReader
public class MatrixVectorReader
Reads matrices and vectors
Field Summary |
---|
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
MatrixVectorReader(Reader in)
Constructor for MatrixVectorReader |
|
MatrixVectorReader(Reader in,
int sz)
Constructor for MatrixVectorReader |
Method Summary | |
---|---|
void |
add(int num,
int[] indices)
Shifts the indices. |
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. |
Methods inherited from class java.io.BufferedReader |
---|
close, mark, markSupported, read, read, readLine, ready, reset, skip |
Methods inherited from class java.io.Reader |
---|
read, read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatrixVectorReader(Reader in)
in
- A Readerpublic MatrixVectorReader(Reader in, int sz)
in
- A Readersz
- Input buffer sizeMethod Detail |
---|
public void add(int num, int[] indices)
num
- Added to every indexindices
- Indices 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |