Class LimitStore<N extends java.lang.Comparable<N>>

    • Constructor Detail

      • LimitStore

        LimitStore​(int rowsCount,
                   int columnsCount,
                   MatrixStore<N> base)
      • LimitStore

        LimitStore​(long rowsCount,
                   long columnsCount,
                   MatrixStore<N> base)
    • Method Detail

      • 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
      • get

        public N get​(int row,
                     int col)
      • limitOfColumn

        public int limitOfColumn​(int col)
        Description copied from interface: Structure2D
        The default value is simply this.countRows(), and if all elements are zeros then 0.
        Specified by:
        limitOfColumn in interface Structure2D
        Overrides:
        limitOfColumn in class AbstractStore<N extends java.lang.Comparable<N>>
        Returns:
        The row index of the first zero element, after all non-zeros, in the specified column (index of the last non-zero + 1)
      • limitOfRow

        public int limitOfRow​(int row)
        Description copied from interface: Structure2D
        The default value is simply this.countColumns(), and if all elements are zeros then 0.
        Specified by:
        limitOfRow in interface Structure2D
        Overrides:
        limitOfRow in class AbstractStore<N extends java.lang.Comparable<N>>
        Returns:
        The column index of the first zero element, after all non-zeros, in the specified row (index of the last non-zero + 1)