Package org.ejml.data

Class DenseD2Matrix64F

java.lang.Object
org.ejml.data.DenseD2Matrix64F
All Implemented Interfaces:
Serializable, org.ejml.data.DMatrix, org.ejml.data.Matrix, org.ejml.data.ReshapeMatrix

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

    • 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 Details

    • DenseD2Matrix64F

      public DenseD2Matrix64F(int numRows, int numCols)
  • Method Details

    • 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
    • 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(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
    • setTo

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

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