Interface MatrixAccess

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double get​(int i, int j)
      Get the matrix entry at [i,j].
      void set​(int i, int j, double value)
      Set the matrix entry at [i,j] to a value.
      • Methods inherited from interface dev.nm.misc.datastructure.Table

        nCols, nRows
    • Method Detail

      • set

        void set​(int i,
                 int j,
                 double value)
          throws MatrixAccessException
        Set the matrix entry at [i,j] to a value. This is the only method that may change a matrix.
        Parameters:
        i - the row index
        j - the column index
        value - the value to set A[i,j] to
        Throws:
        MatrixAccessException - if i or j is out of range
      • get

        double get​(int i,
                   int j)
            throws MatrixAccessException
        Get the matrix entry at [i,j].
        Parameters:
        i - the row index
        j - the column index
        Returns:
        A[i,j]
        Throws:
        MatrixAccessException - if i or j is out of range