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 FMatrix> |
read32()
Reads in a
Matrix from the IO stream. |
<M extends DMatrix> |
read64()
Reads in a
Matrix from the IO stream. |
CMatrixRMaj |
readCDRM(int numRows,
int numCols)
Reads in a
CMatrixRMaj from the IO stream where the user specifies the matrix dimensions. |
DMatrixRMaj |
readDDRM(int numRows,
int numCols)
Reads in a
DMatrixRMaj from the IO stream where the user specifies the matrix dimensions. |
FMatrixRMaj |
readFDRM(int numRows,
int numCols)
Reads in a
FMatrixRMaj from the IO stream where the user specifies the matrix dimensions. |
ZMatrixRMaj |
readZDRM(int numRows,
int numCols)
Reads in a
ZMatrixRMaj 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 FMatrix> M read32() throws java.io.IOException
Matrix
from the IO stream.java.io.IOException
- If anything goes wrong.public <M extends DMatrix> M read64() throws java.io.IOException
Matrix
from the IO stream.java.io.IOException
- If anything goes wrong.public DMatrixRMaj readDDRM(int numRows, int numCols) throws java.io.IOException
DMatrixRMaj
from the IO stream where the user specifies the matrix dimensions.numRows
- Number of rows in the matrixnumCols
- Number of columns in the matrixjava.io.IOException
public FMatrixRMaj readFDRM(int numRows, int numCols) throws java.io.IOException
FMatrixRMaj
from the IO stream where the user specifies the matrix dimensions.numRows
- Number of rows in the matrixnumCols
- Number of columns in the matrixjava.io.IOException
public ZMatrixRMaj readZDRM(int numRows, int numCols) throws java.io.IOException
ZMatrixRMaj
from the IO stream where the user specifies the matrix dimensions.numRows
- Number of rows in the matrixnumCols
- Number of columns in the matrixjava.io.IOException
public CMatrixRMaj readCDRM(int numRows, int numCols) throws java.io.IOException
CMatrixRMaj
from the IO stream where the user specifies the matrix dimensions.numRows
- Number of rows in the matrixnumCols
- Number of columns in the matrixjava.io.IOException