| 23 | } |
| 24 | |
| 25 | template<typename Scalar> void check_all_in_range(Scalar x, Scalar y) |
| 26 | { |
| 27 | Array<int,1,Dynamic> mask(y-x+1); |
| 28 | mask.fill(0); |
| 29 | long n = (y-x+1)*32; |
| 30 | for(long k=0; k<n; ++k) |
| 31 | { |
| 32 | mask( check_in_range(x,y)-x )++; |
| 33 | } |
| 34 | for(Index i=0; i<mask.size(); ++i) |
| 35 | if(mask(i)==0) |
| 36 | std::cout << "WARNING: value " << x+i << " not reached." << std::endl; |
| 37 | VERIFY( (mask>0).all() ); |
| 38 | } |
| 39 | |
| 40 | template<typename Scalar> void check_histogram(Scalar x, Scalar y, int bins) |
| 41 | { |
nothing calls this directly
no test coverage detected