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 DenseMatrix64F from the IO stream.
|
CDenseMatrix64F |
readComplex(int numRows,
int numCols)
Reads in a CDenseMatrix64F from the IO stream where the user specifies the matrix dimensions.
|
DenseMatrix64F |
readReal(int numRows,
int numCols)
Reads in a DenseMatrix64F from the IO stream where the user specifies the matrix dimensions.
|
extractWords, getLineNumber, getReader, parseWords, setCommentpublic 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 DenseMatrix64F readReal(int numRows, int numCols) throws java.io.IOException
numRows - Number of rows in the matrixnumCols - Number of columns in the matrixjava.io.IOExceptionpublic CDenseMatrix64F readComplex(int numRows, int numCols) throws java.io.IOException
numRows - Number of rows in the matrixnumCols - Number of columns in the matrixjava.io.IOException