Class Subregion2D.LimitRegion<N extends java.lang.Comparable<N>>

    • Field Detail

      • myRowLimit

        private final int myRowLimit
      • myColumnLimit

        private final int myColumnLimit
    • Method Detail

      • add

        public void add​(long row,
                        long col,
                        java.lang.Comparable<?> addend)
      • add

        public void add​(long row,
                        long col,
                        double addend)
      • countColumns

        public long countColumns()
        Description copied from interface: Structure2D
        Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.
        Returns:
        The number of columns
      • countRows

        public long countRows()
        Description copied from interface: Structure2D
        Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.
        Returns:
        The number of rows
      • doubleValue

        public double doubleValue​(int row,
                                  int col)
        Description copied from interface: Access2D
        Extracts one element of this matrix as a double.
        Parameters:
        row - A row index.
        col - A column index.
        Returns:
        One matrix element
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • get

        public N get​(long row,
                     long col)
      • getColDim

        public int getColDim()
        Returns:
        The number of columns
      • getRowDim

        public int getRowDim()
        Returns:
        The number of rows
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • modifyOne

        public void modifyOne​(long row,
                              long col,
                              UnaryFunction<N> modifier)
      • set

        public void set​(int row,
                        int col,
                        double value)
      • set

        public void set​(long row,
                        long col,
                        java.lang.Comparable<?> value)