| 40 | |
| 41 | template<typename T> |
| 42 | bool IsVecEqualToZero(const T * v, unsigned int size) |
| 43 | { |
| 44 | static_assert(std::is_floating_point<T>::value, |
| 45 | "Only single and double precision floats are supported"); |
| 46 | |
| 47 | for(unsigned int i=0; i<size; ++i) |
| 48 | { |
| 49 | if(!IsScalarEqualToZero(v[i])) return false; |
| 50 | } |
| 51 | return true; |
| 52 | } |
| 53 | |
| 54 | template bool IsVecEqualToZero(const float * v, unsigned int size); |
| 55 | template bool IsVecEqualToZero(const double * v, unsigned int size); |
no test coverage detected