Class Access2D.SelectionView<N extends java.lang.Comparable<N>>

    • Field Detail

      • myColumns

        private final long[] myColumns
      • myFullData

        private final Access2D<N extends java.lang.Comparable<N>> myFullData
      • myRows

        private final long[] myRows
    • Constructor Detail

      • SelectionView

        SelectionView​(Access2D<N> fullData,
                      long[] rows,
                      long[] columns)
    • Method Detail

      • countColumns

        public long countColumns()
        Description copied from interface: Structure2D
        Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.
        Specified by:
        countColumns in interface Structure2D
        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.
        Specified by:
        countRows in interface Structure2D
        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.
        Specified by:
        doubleValue in interface Access2D<N extends java.lang.Comparable<N>>
        Parameters:
        row - A row index.
        col - A column index.
        Returns:
        One matrix element
      • doubleValue

        public double doubleValue​(long row,
                                  long col)
        Specified by:
        doubleValue in interface Access2D<N extends java.lang.Comparable<N>>
      • get

        public N get​(long row,
                     long col)
        Specified by:
        get in interface Access2D<N extends java.lang.Comparable<N>>
      • getColDim

        public int getColDim()
        Specified by:
        getColDim in interface Structure2D
        Returns:
        The number of columns
      • getRowDim

        public int getRowDim()
        Specified by:
        getRowDim in interface Structure2D
        Returns:
        The number of rows
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object