MCPcopy Create free account
hub / github.com/PX4/eigen / check_in_range

Function check_in_range

test/rand.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12typedef long long int64;
13
14template<typename Scalar> Scalar check_in_range(Scalar x, Scalar y)
15{
16 Scalar r = internal::random<Scalar>(x,y);
17 VERIFY(r>=x);
18 if(y>=x)
19 {
20 VERIFY(r<=y);
21 }
22 return r;
23}
24
25template<typename Scalar> void check_all_in_range(Scalar x, Scalar y)
26{

Callers 2

check_all_in_rangeFunction · 0.85
check_histogramFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected