Go to the documentation of this file.
11 #include <Eigen/Dense>
13 #define NUMBER_DIRECTIONS 16
14 #include <unsupported/Eigen/AdolcForward>
16 template<
typename Vector>
23 template<
typename _Scalar,
int NX=Dynamic,
int NY=Dynamic>
48 v[0] = 2 *
x[0] *
x[0] +
x[0] *
x[1];
49 v[1] = 3 *
x[1] *
x[0] + 0.5 *
x[1] *
x[1];
57 v[2] = 3 *
x[1] *
x[0] *
x[0];
71 j(0,0) = 4 *
x[0] +
x[1];
75 j(1,1) = 3 *
x[0] + 2 * 0.5 *
x[1];
84 j(2,0) = 3 *
x[1] * 2 *
x[0];
85 j(2,1) = 3 *
x[0] *
x[0];
92 j(2,2) = 3 *
x[1] *
x[0] *
x[0];
93 j(2,2) = 3 *
x[1] *
x[0] *
x[0];
101 typename Func::InputType
x = Func::InputType::Random(
f.inputs());
102 typename Func::ValueType
y(
f.values()), yref(
f.values());
103 typename Func::JacobianType
j(
f.values(),
f.inputs()), jref(
f.values(),
f.inputs());
113 AdolcForwardJacobian<Func> autoj(
f);
139 A.selfadjointView<
Lower>().eigenvalues();
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
EIGEN_DECLARE_TEST(forward_adolc)
EIGEN_DONT_INLINE Vector::Scalar foo(const Vector &p)
Matrix< Scalar, ValuesAtCompileTime, 1 > ValueType
#define NUMBER_DIRECTIONS
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
Matrix< Scalar, InputsAtCompileTime, 1 > InputType
Matrix< Scalar, ValuesAtCompileTime, InputsAtCompileTime > JacobianType
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
#define VERIFY_IS_APPROX(a, b)
void operator()(const Matrix< T, InputsAtCompileTime, 1 > &x, Matrix< T, ValuesAtCompileTime, 1 > *_v) const
Array< int, Dynamic, 1 > v
void adolc_forward_jacobian(const Func &f)
The matrix class, also used for vectors and row-vectors.
Eigen::Matrix< double, Eigen::Dynamic, 1 > Vector
TestFunc1(int inputs_, int values_)
#define CALL_SUBTEST(FUNC)
#define EIGEN_DONT_INLINE
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:18