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

    • Field Detail

      • myRowOffset

        private final int myRowOffset
      • myColumnOffset

        private final int myColumnOffset
    • 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
      • fillAll

        public void fillAll​(N value)
      • fillColumn

        public void fillColumn​(long row,
                               long col,
                               N value)
      • fillColumn

        public void fillColumn​(long row,
                               long col,
                               NullaryFunction<?> supplier)
      • fillDiagonal

        public void fillDiagonal​(long row,
                                 long col,
                                 N value)
      • fillDiagonal

        public void fillDiagonal​(long row,
                                 long col,
                                 NullaryFunction<?> supplier)
      • fillRow

        public void fillRow​(long row,
                            long col,
                            N value)
      • fillRow

        public void fillRow​(long row,
                            long col,
                            NullaryFunction<?> supplier)
      • 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
      • modifyColumn

        public void modifyColumn​(long row,
                                 long col,
                                 UnaryFunction<N> modifier)
      • modifyDiagonal

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

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

        public void modifyRow​(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)