KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
kjb::pt::Gradient_adapter< G > Class Template Reference

Wraps Scene_gradient to work with ergo::hmc_step. More...

#include <pt_scene_diff.h>

Public Member Functions

 Gradient_adapter (const G &grad)
 Construct a gradient adapter that wraps 'grad'. More...
 
template<class M >
vec_t operator() (const M &m) const
 Computes the gradient numerically. More...
 

Detailed Description

template<class G>
class kjb::pt::Gradient_adapter< G >

Wraps Scene_gradient to work with ergo::hmc_step.

Constructor & Destructor Documentation

template<class G >
kjb::pt::Gradient_adapter< G >::Gradient_adapter ( const G &  grad)
inline

Construct a gradient adapter that wraps 'grad'.

Member Function Documentation

template<class G >
template<class M >
vec_t kjb::pt::Gradient_adapter< G >::operator() ( const M &  m) const
inline

Computes the gradient numerically.


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