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

    Modifier and Type Method Description
    <M extends Matrix>
    M
    read32()
    Reads in a Matrix from the IO stream.
    <M extends Matrix>
    M
    read64()
    Reads in a Matrix from the IO stream.
    CMatrixRMaj readCDRM​(int numRows, int numCols)
    Reads in a CMatrixRMaj from the IO stream where the user specifies the matrix dimensions.
    DMatrixRMaj readDDRM​(int numRows, int numCols)
    Reads in a DMatrixRMaj from the IO stream where the user specifies the matrix dimensions.
    FMatrixRMaj readFDRM​(int numRows, int numCols)
    Reads in a FMatrixRMaj from the IO stream where the user specifies the matrix dimensions.
    ZMatrixRMaj readZDRM​(int numRows, int numCols)
    Reads in a ZMatrixRMaj from the IO stream where the user specifies the matrix dimensions.

    Methods inherited from class org.ejml.ops.ReadCsv

    extractWords, getLineNumber, getReader, parseWords, setComment

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ReadMatrixCsv

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

    • read32

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

      public <M extends Matrix> M read64() throws java.io.IOException
      Reads in a Matrix from 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 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:
      java.io.IOException
    • readFDRM

      public FMatrixRMaj readFDRM​(int numRows, int numCols) throws java.io.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:
      java.io.IOException
    • readZDRM

      public ZMatrixRMaj readZDRM​(int numRows, int numCols) throws java.io.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:
      java.io.IOException
    • readCDRM

      public CMatrixRMaj readCDRM​(int numRows, int numCols) throws java.io.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:
      java.io.IOException