Class Matrix.MatrixIndex

  • Enclosing class:
    Matrix

    public static class Matrix.MatrixIndex
    extends java.lang.Object
    An object that stores all the information about one index of the matrix
    Author:
    Bhagat
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int i
      row index
      private int j
      column index
      private Matrix parent
      parent matrix
      private double value
      value
    • Constructor Summary

      Constructors 
      Constructor Description
      MatrixIndex​(int i, int j)
      constructs a new MatrixIndex
      MatrixIndex​(int i, int j, double value)
      constructs a new MatrixIndex
      MatrixIndex​(int i, int j, double value, Matrix parent)
      constructs a new MatrixIndex
    • Field Detail

      • i

        private int i
        row index
      • j

        private int j
        column index
      • value

        private double value
        value
      • parent

        private Matrix parent
        parent matrix
    • Constructor Detail

      • MatrixIndex

        public MatrixIndex​(int i,
                           int j)
        constructs a new MatrixIndex
        Parameters:
        i - the row index
        j - the column index
      • MatrixIndex

        public MatrixIndex​(int i,
                           int j,
                           double value)
        constructs a new MatrixIndex
        Parameters:
        i - the row index
        j - the column index
        value - the value at this index
      • MatrixIndex

        public MatrixIndex​(int i,
                           int j,
                           double value,
                           Matrix parent)
        constructs a new MatrixIndex
        Parameters:
        i - the row index
        j - the column index
        value - the value at this index
        parent - the parent matrix
    • Method Detail

      • getI

        public int getI()
        Returns:
        the i
      • setI

        public void setI​(int i)
        Parameters:
        i - the i to set
      • getJ

        public int getJ()
        Returns:
        the j
      • setJ

        public void setJ​(int j)
        Parameters:
        j - the j to set
      • getValue

        public double getValue()
        Returns:
        the value
      • setValue

        public void setValue​(double value)
        Parameters:
        value - the value to set
      • getParent

        public Matrix getParent()
        Returns:
        the parent
      • setParent

        public void setParent​(Matrix parent)
        Parameters:
        parent - the parent to set