Documentation of 'org.ejml.ops.MatrixIO' Java class
MatrixIO
org.ejml.ops

Class MatrixIO



  • public class MatrixIO
    extends java.lang.Object
    Provides simple to use routines for reading and writing matrices to and from files.
    • Constructor Summary

      Constructors 
      Constructor and Description
      MatrixIO() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static <T extends RealMatrix64F>
      T
      loadBin(java.lang.String fileName)
      Loads a DeneMatrix64F which has been saved to file using Java binary serialization.
      static DenseMatrix64F loadCSV(java.lang.String fileName)
      Reads a matrix in which has been encoded using a Column Space Value (CSV) file format.
      static DenseMatrix64F loadCSV(java.lang.String fileName, int numRows, int numCols)
      Reads a matrix in which has been encoded using a Column Space Value (CSV) file format.
      static void print(java.io.PrintStream out, ComplexMatrix64F mat) 
      static void print(java.io.PrintStream out, ComplexMatrix64F mat, int numChar, int precision) 
      static void print(java.io.PrintStream out, ComplexMatrix64F mat, java.lang.String format) 
      static void print(java.io.PrintStream out, RealMatrix32F mat) 
      static void print(java.io.PrintStream out, RealMatrix32F mat, int numChar, int precision) 
      static void print(java.io.PrintStream out, RealMatrix32F mat, java.lang.String format) 
      static void print(java.io.PrintStream out, RealMatrix64F mat) 
      static void print(java.io.PrintStream out, RealMatrix64F mat, int numChar, int precision) 
      static void print(java.io.PrintStream out, RealMatrix64F mat, java.lang.String format) 
      static void print(java.io.PrintStream out, RealMatrix64F mat, java.lang.String format, int row0, int row1, int col0, int col1) 
      static void saveBin(RealMatrix64F A, java.lang.String fileName)
      Saves a matrix to disk using Java binary serialization.
      static void saveCSV(RealMatrix64F A, java.lang.String fileName)
      Saves a matrix to disk using in a Column Space Value (CSV) format.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MatrixIO

        public MatrixIO()
    • Method Detail

      • saveBin

        public static void saveBin(RealMatrix64F A,
                                   java.lang.String fileName)
                            throws java.io.IOException
        Saves a matrix to disk using Java binary serialization.
        Parameters:
        A - The matrix being saved.
        fileName - Name of the file its being saved at.
        Throws:
        java.io.IOException
      • loadBin

        public static <T extends RealMatrix64F> T loadBin(java.lang.String fileName)
                                                   throws java.io.IOException
        Loads a DeneMatrix64F which has been saved to file using Java binary serialization.
        Parameters:
        fileName - The file being loaded.
        Returns:
        DenseMatrix64F
        Throws:
        java.io.IOException
      • saveCSV

        public static void saveCSV(RealMatrix64F A,
                                   java.lang.String fileName)
                            throws java.io.IOException
        Saves a matrix to disk using in a Column Space Value (CSV) format. For a description of the format see loadCSV(String).
        Parameters:
        A - The matrix being saved.
        fileName - Name of the file its being saved at.
        Throws:
        java.io.IOException
      • loadCSV

        public static DenseMatrix64F loadCSV(java.lang.String fileName)
                                      throws java.io.IOException
        Reads a matrix in which has been encoded using a Column Space Value (CSV) file format. The number of rows and columns are read in on the first line. Then each row is read in the subsequent lines.
        Parameters:
        fileName - The file being loaded.
        Returns:
        DenseMatrix64F
        Throws:
        java.io.IOException
      • loadCSV

        public static DenseMatrix64F loadCSV(java.lang.String fileName,
                                             int numRows,
                                             int numCols)
                                      throws java.io.IOException
        Reads a matrix in which has been encoded using a Column Space Value (CSV) file format. For a description of the format see loadCSV(String).
        Parameters:
        fileName - The file being loaded.
        numRows - number of rows in the matrix.
        numCols - number of columns in the matrix.
        Returns:
        DenseMatrix64F
        Throws:
        java.io.IOException
      • print

        public static void print(java.io.PrintStream out,
                                 RealMatrix64F mat)
      • print

        public static void print(java.io.PrintStream out,
                                 RealMatrix64F mat,
                                 int numChar,
                                 int precision)
      • print

        public static void print(java.io.PrintStream out,
                                 RealMatrix64F mat,
                                 java.lang.String format)
      • print

        public static void print(java.io.PrintStream out,
                                 RealMatrix32F mat)
      • print

        public static void print(java.io.PrintStream out,
                                 RealMatrix32F mat,
                                 int numChar,
                                 int precision)
      • print

        public static void print(java.io.PrintStream out,
                                 RealMatrix32F mat,
                                 java.lang.String format)
      • print

        public static void print(java.io.PrintStream out,
                                 RealMatrix64F mat,
                                 java.lang.String format,
                                 int row0,
                                 int row1,
                                 int col0,
                                 int col1)
      • print

        public static void print(java.io.PrintStream out,
                                 ComplexMatrix64F mat)
      • print

        public static void print(java.io.PrintStream out,
                                 ComplexMatrix64F mat,
                                 int numChar,
                                 int precision)
      • print

        public static void print(java.io.PrintStream out,
                                 ComplexMatrix64F mat,
                                 java.lang.String format)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.