- 3.0.2 core module.
AutoDiff.h
Go to the documentation of this file.
1
/**********************************************************************************************************************
2
This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich.
3
Licensed under the BSD-2 license (see LICENSE file in main directory)
4
**********************************************************************************************************************/
5
6
#pragma once
7
8
#ifdef CPPADCG
9
#include <cppad/cg.hpp>
10
#endif
11
12
#ifdef CPPAD
13
#include <cppad/cppad.hpp>
14
#endif
15
16
namespace
ct
{
17
namespace
core {
18
19
#ifdef CPPAD
20
typedef
CppAD::AD<double> ADScalar;
21
#endif
22
23
#ifdef CPPADCG
24
typedef
CppAD::cg::CG<double> ADCGValueType;
25
typedef
CppAD::AD<ADCGValueType> ADCGScalar;
26
#endif
27
}
28
}
ct
include
ct
core
types
AutoDiff.h
Generated on Wed Feb 19 2020 15:14:18 by
1.8.13