Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::profile< T > Class Template Reference

Detailed Description

template<typename T>
class stan::math::profile< T >

Profiles C++ lines where the object is in scope.

When T is var, the constructor starts the profile for the forward pass and places a var with a callback to stop the reverse pass on the AD tape. The destructor stops the profile for the forward pass and places a var with a callback to start the profile for the reverse pass. When T is not var, the constructor and destructor only profile the

Template Parameters
Ttype of profile class. If var, the created object is used to profile reverse mode AD. Only profiles the forward pass otherwise.

Definition at line 151 of file profiling.hpp.

#include <profiling.hpp>

Public Member Functions

 profile (std::string name, profile_map &profiles)
 
 ~profile ()
 

Private Attributes

profile_key key_
 
profile_infoprofile_
 

The documentation for this class was generated from the following file: