.. index:: pair: class; gpr::derivatives::CountedReal .. _doxid-classgpr_1_1derivatives_1_1_counted_real: class gpr::derivatives::CountedReal =================================== .. toctree:: :hidden: A double whose arithmetic increments :ref:`operationCounts() `. It carries no derivative and rounds each operation as double does; :ref:`Eigen ` does not vectorise it, so reductions can associate differently from a double evaluation of the same expression. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class CountedReal { public: // construction :target:`CountedReal`(); :target:`CountedReal`(double value); // methods double :target:`value`() const; :ref:`CountedReal`& :target:`operator+=`(const :ref:`CountedReal`& other); :ref:`CountedReal`& :target:`operator-=`(const :ref:`CountedReal`& other); :ref:`CountedReal`& :target:`operator*=`(const :ref:`CountedReal`& other); :ref:`CountedReal`& :target:`operator/=`(const :ref:`CountedReal`& other); };