mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
mx::math::fit::hasJacobian< T > Struct Template Reference

template<typename T>
struct mx::math::fit::hasJacobian< T >

Test whether a function type has a Jacobian function by testing whether it has a typedef of "hasJacobian".

Used for compile-time determination of whether the fitter has a Jacobian.

Definition at line 811 of file levmarInterface.hpp.

#include <math/fit/levmarInterface.hpp>

Static Public Attributes

static const bool value = sizeof(test<T>(0)) == sizeof(yes)
 

Member Data Documentation

◆ value

template<typename T >
const bool mx::math::fit::hasJacobian< T >::value = sizeof(test<T>(0)) == sizeof(yes)
static

If hasJacobian<fitterT>::value == true, then fitterT has a Jacobian and the appropriate levmar routines are used. If ::value == false, then the numerical derivatives are calculated.

Definition at line 828 of file levmarInterface.hpp.


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