Package org.ejml.ops
Class ReadMatrixCsv
java.lang.Object
org.ejml.ops.ReadCsv
org.ejml.ops.ReadMatrixCsv
Reads in a matrix that is in a column-space-value (CSV) format.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<M extends Matrix>
Mread32()
Reads in aMatrix
from the IO stream.<M extends Matrix>
Mread64()
Reads in aMatrix
from the IO stream.readCDRM
(int numRows, int numCols) Reads in aCMatrixRMaj
from the IO stream where the user specifies the matrix dimensions.readDDRM
(int numRows, int numCols) Reads in aDMatrixRMaj
from the IO stream where the user specifies the matrix dimensions.readFDRM
(int numRows, int numCols) Reads in aFMatrixRMaj
from the IO stream where the user specifies the matrix dimensions.readZDRM
(int numRows, int numCols) Reads in aZMatrixRMaj
from the IO stream where the user specifies the matrix dimensions.Methods inherited from class org.ejml.ops.ReadCsv
extractWords, getLineNumber, getReader, isSpace, parseWords, setComment
-
Constructor Details
-
ReadMatrixCsv
Specifies where input comes from.- Parameters:
in
- Where the input comes from.
-
-
Method Details
-
read32
Reads in aMatrix
from the IO stream.- Returns:
- Matrix
- Throws:
IOException
- If anything goes wrong.
-
read64
Reads in aMatrix
from the IO stream.- Returns:
- Matrix
- Throws:
IOException
- If anything goes wrong.
-
readDDRM
Reads in aDMatrixRMaj
from the IO stream where the user specifies the matrix dimensions.- Parameters:
numRows
- Number of rows in the matrixnumCols
- Number of columns in the matrix- Returns:
- DMatrixRMaj
- Throws:
IOException
-
readFDRM
Reads in aFMatrixRMaj
from the IO stream where the user specifies the matrix dimensions.- Parameters:
numRows
- Number of rows in the matrixnumCols
- Number of columns in the matrix- Returns:
- FMatrixRMaj
- Throws:
IOException
-
readZDRM
Reads in aZMatrixRMaj
from the IO stream where the user specifies the matrix dimensions.- Parameters:
numRows
- Number of rows in the matrixnumCols
- Number of columns in the matrix- Returns:
- ZMatrixRMaj
- Throws:
IOException
-
readCDRM
Reads in aCMatrixRMaj
from the IO stream where the user specifies the matrix dimensions.- Parameters:
numRows
- Number of rows in the matrixnumCols
- Number of columns in the matrix- Returns:
- CMatrixRMaj
- Throws:
IOException
-