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 and Description ReadMatrixCsv(java.io.InputStream in)Specifies where input comes from.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description <M extends Matrix>
Mread()Reads in a DenseMatrix64F from the IO stream.CDenseMatrix64FreadComplex(int numRows, int numCols)Reads in a CDenseMatrix64F from the IO stream where the user specifies the matrix dimensions.DenseMatrix64FreadReal(int numRows, int numCols)Reads in a DenseMatrix64F from the IO stream where the user specifies the matrix dimensions.-
Methods inherited from class org.ejml.ops.ReadCsv
getLineNumber, getReader, setComment
-
-
-
-
Constructor Detail
-
ReadMatrixCsv
public ReadMatrixCsv(java.io.InputStream in)
Specifies where input comes from.- Parameters:
in- Where the input comes from.
-
-
Method Detail
-
read
public <M extends Matrix> M read() throws java.io.IOException
Reads in a DenseMatrix64F from the IO stream.- Returns:
- DenseMatrix64F
- Throws:
java.io.IOException- If anything goes wrong.
-
readReal
public DenseMatrix64F readReal(int numRows, int numCols) throws java.io.IOException
Reads in a DenseMatrix64F 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:
- DenseMatrix64F
- Throws:
java.io.IOException
-
readComplex
public CDenseMatrix64F readComplex(int numRows, int numCols) throws java.io.IOException
Reads in a CDenseMatrix64F 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:
- DenseMatrix64F
- Throws:
java.io.IOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG