| 24 | } |
| 25 | |
| 26 | bool equal8(const std::vector<float> & a, const std::vector<float> & b) { |
| 27 | for (int i = 0; i < 8; ++i) { |
| 28 | if (std::fabs(a[i] - b[i]) > 1.0e-6F * (1.0F + std::fabs(b[i]))) { |
| 29 | return false; |
| 30 | } |
| 31 | } |
| 32 | return true; |
| 33 | } |
| 34 | |
| 35 | bool differ8(const std::vector<float> & a, const std::vector<float> & b) { |
| 36 | for (int i = 0; i < 8; ++i) { |