16 Scalar r = internal::random<Scalar>(
x,
y);
30 for(
long k=0; k<
n; ++k)
36 std::cout <<
"WARNING: value " << x+
i <<
" not reached." << std::endl;
47 int divisor =
int((range+1)/bins);
48 assert(((range+1)%bins)==0);
49 for(
int k=0; k<
n; ++k)
54 VERIFY( (((hist.cast<
double>()/
double(f))-1.0).
abs()<0.03).
all() );
65 CALL_SUBTEST(check_in_range<float>(1.24234523,1.24234523));
67 CALL_SUBTEST(check_in_range<float>(-1432.2352,-1432.2352));
70 CALL_SUBTEST(check_in_range<double>(1.24234523,1.24234523));
72 CALL_SUBTEST(check_in_range<double>(-1432.2352,-1432.2352));
78 CALL_SUBTEST(check_in_range<int>(-RAND_MAX+10,RAND_MAX-10));
84 CALL_SUBTEST(check_all_in_range<signed char>(11,11+char_offset));
86 CALL_SUBTEST(check_all_in_range<signed char>(-11-char_offset,-11));
87 CALL_SUBTEST(check_all_in_range<signed char>(-126,-126+char_offset));
88 CALL_SUBTEST(check_all_in_range<signed char>(126-char_offset,126));
92 CALL_SUBTEST(check_all_in_range<short>(11,11+short_offset));
94 CALL_SUBTEST(check_all_in_range<short>(-11-short_offset,-11));
95 CALL_SUBTEST(check_all_in_range<short>(-24345,-24345+short_offset));
96 CALL_SUBTEST(check_all_in_range<short>(24345,24345+short_offset));
101 CALL_SUBTEST(check_all_in_range<int>(-11-g_repeat,-11));
102 CALL_SUBTEST(check_all_in_range<int>(-673456,-673456+g_repeat));
103 CALL_SUBTEST(check_all_in_range<int>(673456,673456+g_repeat));
108 CALL_SUBTEST(check_all_in_range<long>(-11-g_repeat,-11));
109 CALL_SUBTEST(check_all_in_range<long>(-long_ref,-long_ref+g_repeat));
110 CALL_SUBTEST(check_all_in_range<long>( long_ref, long_ref+g_repeat));
114 CALL_SUBTEST(check_histogram<int>(-3333,-3333+bins*(3333/bins)-1,bins));
116 CALL_SUBTEST(check_histogram<int>(-RAND_MAX+10,-RAND_MAX+10+bins*(RAND_MAX/bins)-1,bins));
117 CALL_SUBTEST(check_histogram<int>(-RAND_MAX+10,-
int64(RAND_MAX)+10+bins*(2*
int64(RAND_MAX)/bins)-1,bins));
static const Eigen::internal::all_t all
Scalar check_in_range(Scalar x, Scalar y)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
void check_all_in_range(Scalar x, Scalar y)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
#define CALL_SUBTEST(FUNC)
Double_ range(const Point2_ &p, const Point2_ &q)
General-purpose arrays with easy API for coefficient-wise operations.
void check_histogram(Scalar x, Scalar y, int bins)
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