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));
34 res =
atan2(r*s+0, r*c+0);
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;
95 CALL_SUBTEST_1( check_atan2<float>() );
96 CALL_SUBTEST_2( check_atan2<double>() );
97 CALL_SUBTEST_3( check_hyperbolic_functions<float>() );
98 CALL_SUBTEST_4( check_hyperbolic_functions<double>() );
99 CALL_SUBTEST_5( check_limits_specialization<double>());
A scalar type replacement with automatic differentation capability.
EIGEN_DEVICE_FUNC const ExpReturnType exp() const
void check_hyperbolic_functions()
EIGEN_DEVICE_FUNC const TanhReturnType tanh() const
EIGEN_DEVICE_FUNC const CoshReturnType cosh() const
Matrix< SCALARA, Dynamic, Dynamic > A
Matrix< SCALARB, Dynamic, Dynamic > B
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
EIGEN_DEVICE_FUNC const CosReturnType cos() const
#define VERIFY_IS_APPROX(a, b)
EIGEN_DEVICE_FUNC const SinhReturnType sinh() const
void check_limits_specialization()
Jet< T, N > atan2(const Jet< T, N > &g, const Jet< T, N > &f)
void test_autodiff_scalar()
EIGEN_DEVICE_FUNC const SinReturnType sin() const
The matrix class, also used for vectors and row-vectors.
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