Package org.ejml.ops

Class ReadMatrixCsv


  • public class ReadMatrixCsv
    extends ReadCsv
    Reads in a matrix that is in a column-space-value (CSV) format.
    • Constructor Detail

      • ReadMatrixCsv

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

      • read32

        public <M extends FMatrix> 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 DMatrix> 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