/usr/include/trilinos/MLAPI_CompObject.h is in libtrilinos-ml-dev 12.4.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | #ifndef MLAPI_COMPOBJECT_H
#define MLAPI_COMPOBJECT_H
/*!
\file MLAPI_CompObject.h
\brief Class to count flops.
\author Marzio Sala, D-INFK/ETHZ.
\date Last updated on Mar-06.
*/
/* ******************************************************************** */
/* See the file COPYRIGHT for a complete copyright notice, contact */
/* person and disclaimer. */
/* ******************************************************************** */
namespace MLAPI {
/*!
\class CompObject
\brief Class to count flops.
\author Marzio Sala, SNL 9214
\date Last updated on Feb-05.
*/
class CompObject {
public:
//! Constructor, set counter to 0.0.
CompObject()
{
Flops_ = 0.0;
}
//! Destructor.
~CompObject() {};
//! Returns the internal counter of flops.
inline double GetFlops() const
{
return(Flops_);
}
//! Sets internal counter to \c Flops.
inline void SetFlops(double Flops) const
{
Flops_ = Flops;
}
//! Updates internal counter by summing \c Flops.
inline void UpdateFlops(double Flops) const
{
Flops_ += Flops;
}
private:
mutable double Flops_;
}; // class CompObject
} // namespace MLPI
#endif // MLAPI_COMPOBJECT_H
|