Class Primitive2D.Wrapper

    • 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.
        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
      • doubleValue

        public double doubleValue​(long row,
                                  long col)
      • getColDim

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

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

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

        public void set​(long row,
                        long col,
                        double value)