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
Constructors -
Method Summary
Modifier and TypeMethodDescription<M extends Matrix>
Mread32()Reads in aMatrixfrom the IO stream.<M extends Matrix>
Mread64()Reads in aMatrixfrom the IO stream.readCDRM(int numRows, int numCols) Reads in aCMatrixRMajfrom the IO stream where the user specifies the matrix dimensions.readDDRM(int numRows, int numCols) Reads in aDMatrixRMajfrom the IO stream where the user specifies the matrix dimensions.readFDRM(int numRows, int numCols) Reads in aFMatrixRMajfrom the IO stream where the user specifies the matrix dimensions.readZDRM(int numRows, int numCols) Reads in aZMatrixRMajfrom 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 aMatrixfrom the IO stream.- Returns:
- Matrix
- Throws:
IOException- If anything goes wrong.
-
read64
Reads in aMatrixfrom the IO stream.- Returns:
- Matrix
- Throws:
IOException- If anything goes wrong.
-
readDDRM
Reads in aDMatrixRMajfrom 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 aFMatrixRMajfrom 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 aZMatrixRMajfrom 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 aCMatrixRMajfrom 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
-