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 Details

    • ReadMatrixCsv

      public ReadMatrixCsv(InputStream in)
      Specifies where input comes from.
      Parameters:
      in - Where the input comes from.
  • Method Details

    • read32

      public <M extends Matrix> M read32() throws IOException
      Reads in a Matrix from the IO stream.
      Returns:
      Matrix
      Throws:
      IOException - If anything goes wrong.
    • read64

      public <M extends Matrix> M read64() throws IOException
      Reads in a Matrix from the IO stream.
      Returns:
      Matrix
      Throws:
      IOException - If anything goes wrong.
    • readDDRM

      public DMatrixRMaj readDDRM(int numRows, int numCols) throws IOException
      Reads in a DMatrixRMaj from the IO stream where the user specifies the matrix dimensions.
      Parameters:
      numRows - Number of rows in the matrix
      numCols - Number of columns in the matrix
      Returns:
      DMatrixRMaj
      Throws:
      IOException
    • readFDRM

      public FMatrixRMaj readFDRM(int numRows, int numCols) throws IOException
      Reads in a FMatrixRMaj from the IO stream where the user specifies the matrix dimensions.
      Parameters:
      numRows - Number of rows in the matrix
      numCols - Number of columns in the matrix
      Returns:
      FMatrixRMaj
      Throws:
      IOException
    • readZDRM

      public ZMatrixRMaj readZDRM(int numRows, int numCols) throws IOException
      Reads in a ZMatrixRMaj from the IO stream where the user specifies the matrix dimensions.
      Parameters:
      numRows - Number of rows in the matrix
      numCols - Number of columns in the matrix
      Returns:
      ZMatrixRMaj
      Throws:
      IOException
    • readCDRM

      public CMatrixRMaj readCDRM(int numRows, int numCols) throws IOException
      Reads in a CMatrixRMaj from the IO stream where the user specifies the matrix dimensions.
      Parameters:
      numRows - Number of rows in the matrix
      numCols - Number of columns in the matrix
      Returns:
      CMatrixRMaj
      Throws:
      IOException