// @HEADER // ***************************************************************************** // Rapid Optimization Library (ROL) Package // // Copyright 2014 NTESS and the ROL contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef ROL_OED_TRACESAMPLER_HPP #define ROL_OED_TRACESAMPLER_HPP #include "ROL_Ptr.hpp" #include "ROL_SampledVector.hpp" #include "ROL_Vector.hpp" #include "ROL_OED_ProfiledClass.hpp" #include namespace ROL { namespace OED { template class TraceSampler : public ProfiledClass { private: Ptr> g_storage_; protected: void setInStorage(const Vector &g, const std::vector ¶m); bool getFromStorage(Vector &g, const std::vector ¶m) const; using ProfiledClass::startTimer; using ProfiledClass::stopTimer; public: virtual ~TraceSampler() {} TraceSampler(); TraceSampler(const Ptr> &theta); virtual void generate(Vector &g) const; virtual void get(Vector &F, const std::vector ¶m); }; // class TraceSampler } // End OED Namespace } // End ROL Namespace #include "ROL_OED_TraceSampler_Def.hpp" #endif