Class MatrixCoordinate


  • public final class MatrixCoordinate
    extends Object
    The location of a matrix entry is specified by a 2D coordinates (i, j), where i and j are the row-index and column-index of the entry respectively.
    • Field Detail

      • i

        public final int i
        the row index
      • j

        public final int j
        the column index
    • Constructor Detail

      • MatrixCoordinate

        public MatrixCoordinate​(int i,
                                int j)
        Construct a matrix coordinate specifying an entry location.
        Parameters:
        i - the row index
        j - the column index