Package org.ejml.ops
Class ReadMatrixCsv
- java.lang.Object
-
- org.ejml.ops.ReadCsv
-
- org.ejml.ops.ReadMatrixCsv
-
public class ReadMatrixCsv extends ReadCsv
Reads in a matrix that is in a column-space-value (CSV) format.
-
-
Constructor Summary
Constructors Constructor Description ReadMatrixCsv(java.io.InputStream in)Specifies where input comes from.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <M extends FMatrix>
Mread32()Reads in aMatrixfrom the IO stream.<M extends DMatrix>
Mread64()Reads in aMatrixfrom the IO stream.CMatrixRMajreadCDRM(int numRows, int numCols)Reads in aCMatrixRMajfrom the IO stream where the user specifies the matrix dimensions.DMatrixRMajreadDDRM(int numRows, int numCols)Reads in aDMatrixRMajfrom the IO stream where the user specifies the matrix dimensions.FMatrixRMajreadFDRM(int numRows, int numCols)Reads in aFMatrixRMajfrom the IO stream where the user specifies the matrix dimensions.ZMatrixRMajreadZDRM(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, parseWords, setComment
-
-
-
-
Method Detail
-
read32
public <M extends FMatrix> M read32() throws java.io.IOException
Reads in aMatrixfrom the IO stream.- Returns:
- Matrix
- Throws:
java.io.IOException- If anything goes wrong.
-
read64
public <M extends DMatrix> M read64() throws java.io.IOException
Reads in aMatrixfrom the IO stream.- Returns:
- Matrix
- Throws:
java.io.IOException- If anything goes wrong.
-
readDDRM
public DMatrixRMaj readDDRM(int numRows, int numCols) throws java.io.IOException
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:
java.io.IOException
-
readFDRM
public FMatrixRMaj readFDRM(int numRows, int numCols) throws java.io.IOException
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:
java.io.IOException
-
readZDRM
public ZMatrixRMaj readZDRM(int numRows, int numCols) throws java.io.IOException
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:
java.io.IOException
-
readCDRM
public CMatrixRMaj readCDRM(int numRows, int numCols) throws java.io.IOException
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:
java.io.IOException
-
-