- 3.0.2 core module.
|
Go to the source code of this file.
Typedefs | |
typedef DerivativesCppadJIT< inDim, outDim > | derivativesCppadJIT |
the Jacobian codegen class More... | |
typedef DerivativesCppadCG< inDim, outDim > | derivativesCppadCG |
typedef DerivativesCppad< inDim, outDim > | derivativesCppad |
Functions | |
template<typename SCALAR > | |
Eigen::Matrix< SCALAR, outDim, 1 > | testFunction (const Eigen::Matrix< SCALAR, inDim, 1 > &x) |
template<typename SCALAR > | |
Eigen::Matrix< SCALAR, outDim, inDim > | jacobianCheck (const Eigen::Matrix< SCALAR, inDim, 1 > &x) |
template<typename SCALAR > | |
Eigen::Matrix< SCALAR, inDim, inDim > | hessianCheck (const Eigen::Matrix< SCALAR, inDim, 1 > &x, const Eigen::Matrix< SCALAR, outDim, 1 > &w) |
void | executeForwardZeroTest (const bool useDynamicLib) |
void | executeJITCompilationTest (bool useDynamicLib) |
void | executeJitHessianTest (bool useDynamicLib) |
void | executeJITCloneTest (bool useDynamicLib) |
TEST (JacobianCGTest, ForwardZeroTest) | |
TEST (JacobianCGTest, JITCompilationTest) | |
TEST (HessianCGTest, JITHessianTest) | |
TEST (JacobianCGTest, DISABLED_LlvmCloneTest) | |
TEST (JacobianCGTest, JitCloneTest) | |
TEST (JacobianCGTest, CodegenTest) | |
Variables | |
const size_t | inDim = 3 |
dimension of x More... | |
const size_t | outDim = 2 |
dimension of y More... | |
const bool | verbose = false |
typedef DerivativesCppadJIT<inDim, outDim> derivativesCppadJIT |
the Jacobian codegen class
typedef DerivativesCppadCG<inDim, outDim> derivativesCppadCG |
typedef DerivativesCppad<inDim, outDim> derivativesCppad |
Eigen::Matrix<SCALAR, outDim, 1> testFunction | ( | const Eigen::Matrix< SCALAR, inDim, 1 > & | x | ) |
A general vector-valued function.
x | the input |
Eigen::Matrix<SCALAR, outDim, inDim> jacobianCheck | ( | const Eigen::Matrix< SCALAR, inDim, 1 > & | x | ) |
The analytically, manually derived Jacobian of testFunction() used for verification
x | the input |
Referenced by executeJITCloneTest(), and executeJITCompilationTest().
Eigen::Matrix<SCALAR, inDim, inDim> hessianCheck | ( | const Eigen::Matrix< SCALAR, inDim, 1 > & | x, |
const Eigen::Matrix< SCALAR, outDim, 1 > & | w | ||
) |
Referenced by executeJitHessianTest().
void executeForwardZeroTest | ( | const bool | useDynamicLib | ) |
void executeJITCompilationTest | ( | bool | useDynamicLib | ) |
void executeJitHessianTest | ( | bool | useDynamicLib | ) |
void executeJITCloneTest | ( | bool | useDynamicLib | ) |
TEST | ( | JacobianCGTest | , |
ForwardZeroTest | |||
) |
Test evaluation of the forward-zero function, which should be possible to evaluate in both uncompiled and compiled state
References executeForwardZeroTest().
TEST | ( | JacobianCGTest | , |
JITCompilationTest | |||
) |
Test for just-in-time compilation of the Jacobian and subsequent evaluation of it
References executeJITCompilationTest().
TEST | ( | HessianCGTest | , |
JITHessianTest | |||
) |
References executeJitHessianTest().
TEST | ( | JacobianCGTest | , |
DISABLED_LlvmCloneTest | |||
) |
Test cloning of JIT compiled libraries
References executeJITCloneTest().
TEST | ( | JacobianCGTest | , |
JitCloneTest | |||
) |
Test cloning of JIT compiled libraries
References executeJITCloneTest().
TEST | ( | JacobianCGTest | , |
CodegenTest | |||
) |
Test for writing the codegenerated Jacobian to file
const size_t inDim = 3 |
const size_t outDim = 2 |
dimension of y
const bool verbose = false |