Package org.ejml.data

Class DenseD2Matrix64F

  • All Implemented Interfaces:
    java.io.Serializable, org.ejml.data.DMatrix, org.ejml.data.Matrix, org.ejml.data.ReshapeMatrix

    public class DenseD2Matrix64F
    extends java.lang.Object
    implements java.io.Serializable, org.ejml.data.ReshapeMatrix, org.ejml.data.DMatrix
    A row matrix where the array is stored as a 2D array.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double[][] data
      Where the raw data for the matrix is stored.
      int numCols
      Number of columns in the matrix.
      int numRows
      Number of rows in the matrix.
    • Constructor Summary

      Constructors 
      Constructor Description
      DenseD2Matrix64F​(int numRows, int numCols)  
    • Field Detail

      • data

        public double[][] data
        Where the raw data for the matrix is stored. The format is type dependent.
      • numRows

        public int numRows
        Number of rows in the matrix.
      • numCols

        public int numCols
        Number of columns in the matrix.
    • Constructor Detail

      • DenseD2Matrix64F

        public DenseD2Matrix64F​(int numRows,
                                int numCols)
    • Method Detail

      • reshape

        public void reshape​(int numRows,
                            int numCols)
        Specified by:
        reshape in interface org.ejml.data.ReshapeMatrix
      • zero

        public void zero()
        Specified by:
        zero in interface org.ejml.data.Matrix
      • get

        public double get​(int row,
                          int col)
        Specified by:
        get in interface org.ejml.data.DMatrix
      • set

        public void set​(int row,
                        int col,
                        double val)
        Specified by:
        set in interface org.ejml.data.DMatrix
      • unsafe_get

        public double unsafe_get​(int row,
                                 int col)
        Specified by:
        unsafe_get in interface org.ejml.data.DMatrix
      • unsafe_set

        public void unsafe_set​(int row,
                               int col,
                               double val)
        Specified by:
        unsafe_set in interface org.ejml.data.DMatrix
      • getNumElements

        public int getNumElements()
        Specified by:
        getNumElements in interface org.ejml.data.DMatrix
      • getNumRows

        public int getNumRows()
        Specified by:
        getNumRows in interface org.ejml.data.Matrix
      • getNumCols

        public int getNumCols()
        Specified by:
        getNumCols in interface org.ejml.data.Matrix
      • print

        public void print()
        Specified by:
        print in interface org.ejml.data.Matrix
      • print

        public void print​(java.lang.String format)
        Specified by:
        print in interface org.ejml.data.Matrix
      • copy

        public <T extends org.ejml.data.Matrix> T copy()
        Specified by:
        copy in interface org.ejml.data.Matrix
      • createLike

        public DenseD2Matrix64F createLike()
        Specified by:
        createLike in interface org.ejml.data.Matrix
      • create

        public DenseD2Matrix64F create​(int numRows,
                                       int numCols)
        Specified by:
        create in interface org.ejml.data.Matrix
      • set

        public void set​(org.ejml.data.Matrix original)
        Specified by:
        set in interface org.ejml.data.Matrix
      • getType

        public org.ejml.data.MatrixType getType()
        Specified by:
        getType in interface org.ejml.data.Matrix