Go to the documentation of this file.
11 #include <unsupported/Eigen/AutoDiff>
23 AD x(internal::random<Scalar>(-3.0, 3.0), Deriv1::UnitX());
26 Scalar r =
exp(internal::random<Scalar>(-10, 10));
46 Deriv1
p = Deriv1::Random();
47 AD val(
p.x(),Deriv1::UnitX());
64 val =
AD(sample_point,Deriv1::UnitX());
75 template <
typename Scalar>
81 typedef std::numeric_limits<AD>
A;
82 typedef std::numeric_limits<Scalar>
B;
void check_limits_specialization()
Matrix< SCALARB, Dynamic, Dynamic, opt_B > B
A scalar type replacement with automatic differentiation capability.
Jet< T, N > sin(const Jet< T, N > &f)
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
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
const EIGEN_DEVICE_FUNC ExpReturnType exp() const
Jet< T, N > cos(const Jet< T, N > &f)
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
const EIGEN_DEVICE_FUNC CoshReturnType cosh() const
#define CALL_SUBTEST_4(FUNC)
#define CALL_SUBTEST_3(FUNC)
#define CALL_SUBTEST_1(FUNC)
#define CALL_SUBTEST_5(FUNC)
#define CALL_SUBTEST_2(FUNC)
void check_hyperbolic_functions()
AnnoyingScalar atan2(const AnnoyingScalar &y, const AnnoyingScalar &x)
#define VERIFY_IS_APPROX(a, b)
const EIGEN_DEVICE_FUNC TanhReturnType tanh() const
The matrix class, also used for vectors and row-vectors.
const EIGEN_DEVICE_FUNC SinhReturnType sinh() const
EIGEN_DECLARE_TEST(autodiff_scalar)
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:01:52