Class Primitive2D.Simple

    • Field Detail

      • myColDim

        private final int myColDim
      • myRowDim

        private final int myRowDim
      • myValues

        private final double[] myValues
    • Constructor Detail

      • Simple

        Simple​(int nbRows,
               int nbCols)
    • 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
      • 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)
      • size

        public int size()
        Description copied from interface: Structure2D
        size() == getRowDim() * getColDim()