public class ReadMatrixCsv extends ReadCsv
Constructor and Description |
---|
ReadMatrixCsv(java.io.InputStream in)
Specifies where input comes from.
|
Modifier and Type | Method and Description |
---|---|
<M extends Matrix> |
read()
Reads in a DMatrixRMaj from the IO stream.
|
ZMatrixRMaj |
readComplex(int numRows,
int numCols)
Reads in a ZMatrixRMaj from the IO stream where the user specifies the matrix dimensions.
|
DMatrixRMaj |
readReal(int numRows,
int numCols)
Reads in a DMatrixRMaj from the IO stream where the user specifies the matrix dimensions.
|
extractWords, getLineNumber, getReader, parseWords, setComment
public ReadMatrixCsv(java.io.InputStream in)
in
- Where the input comes from.public <M extends Matrix> M read() throws java.io.IOException
java.io.IOException
- If anything goes wrong.public DMatrixRMaj readReal(int numRows, int numCols) throws java.io.IOException
numRows
- Number of rows in the matrixnumCols
- Number of columns in the matrixjava.io.IOException
public ZMatrixRMaj readComplex(int numRows, int numCols) throws java.io.IOException
numRows
- Number of rows in the matrixnumCols
- Number of columns in the matrixjava.io.IOException