• Home
  • Raw
  • Download

Lines Matching refs:VERIFY_IS_APPROX

62   VERIFY_IS_APPROX(float(half(__half(0x8001))), -5.96046e-08f);  in test_conversion()
63 VERIFY_IS_APPROX(float(half(__half(0x0001))), 5.96046e-08f); in test_conversion()
64 VERIFY_IS_APPROX(float(half(__half(0x0002))), 1.19209e-07f); in test_conversion()
123 VERIFY_IS_APPROX(float(half(0.33333f) + half(0.66667f)), 1.0f); in test_arithmetic()
125 VERIFY_IS_APPROX(float(half(1.0f) / half(3.0f)), 0.33333f); in test_arithmetic()
185 VERIFY_IS_APPROX(float(numext::sqrt(half(0.0f))), 0.0f); in test_basic_functions()
186 VERIFY_IS_APPROX(float(sqrt(half(0.0f))), 0.0f); in test_basic_functions()
187 VERIFY_IS_APPROX(float(numext::sqrt(half(4.0f))), 2.0f); in test_basic_functions()
188 VERIFY_IS_APPROX(float(sqrt(half(4.0f))), 2.0f); in test_basic_functions()
190 VERIFY_IS_APPROX(float(numext::pow(half(0.0f), half(1.0f))), 0.0f); in test_basic_functions()
191 VERIFY_IS_APPROX(float(pow(half(0.0f), half(1.0f))), 0.0f); in test_basic_functions()
192 VERIFY_IS_APPROX(float(numext::pow(half(2.0f), half(2.0f))), 4.0f); in test_basic_functions()
193 VERIFY_IS_APPROX(float(pow(half(2.0f), half(2.0f))), 4.0f); in test_basic_functions()
197 VERIFY_IS_APPROX(float(numext::exp(half(EIGEN_PI))), 20.f + float(EIGEN_PI)); in test_basic_functions()
198 VERIFY_IS_APPROX(float(exp(half(EIGEN_PI))), 20.f + float(EIGEN_PI)); in test_basic_functions()
202 VERIFY_IS_APPROX(float(numext::log(half(10.0f))), 2.30273f); in test_basic_functions()
203 VERIFY_IS_APPROX(float(log(half(10.0f))), 2.30273f); in test_basic_functions()
207 VERIFY_IS_APPROX(float(numext::log1p(half(10.0f))), 2.3978953f); in test_basic_functions()
208 VERIFY_IS_APPROX(float(log1p(half(10.0f))), 2.3978953f); in test_basic_functions()
213 VERIFY_IS_APPROX(numext::cos(half(0.0f)), half(cosf(0.0f))); in test_trigonometric_functions()
214 VERIFY_IS_APPROX(cos(half(0.0f)), half(cosf(0.0f))); in test_trigonometric_functions()
215 VERIFY_IS_APPROX(numext::cos(half(EIGEN_PI)), half(cosf(EIGEN_PI))); in test_trigonometric_functions()
218 VERIFY_IS_APPROX(numext::cos(half(3.5f)), half(cosf(3.5f))); in test_trigonometric_functions()
220 VERIFY_IS_APPROX(numext::sin(half(0.0f)), half(sinf(0.0f))); in test_trigonometric_functions()
221 VERIFY_IS_APPROX(sin(half(0.0f)), half(sinf(0.0f))); in test_trigonometric_functions()
223 VERIFY_IS_APPROX(numext::sin(half(EIGEN_PI/2)), half(sinf(EIGEN_PI/2))); in test_trigonometric_functions()
224 VERIFY_IS_APPROX(numext::sin(half(3*EIGEN_PI/2)), half(sinf(3*EIGEN_PI/2))); in test_trigonometric_functions()
225 VERIFY_IS_APPROX(numext::sin(half(3.5f)), half(sinf(3.5f))); in test_trigonometric_functions()
227 VERIFY_IS_APPROX(numext::tan(half(0.0f)), half(tanf(0.0f))); in test_trigonometric_functions()
228 VERIFY_IS_APPROX(tan(half(0.0f)), half(tanf(0.0f))); in test_trigonometric_functions()
232 VERIFY_IS_APPROX(numext::tan(half(3.5f)), half(tanf(3.5f))); in test_trigonometric_functions()
241 VERIFY_IS_APPROX( a1+a1, half(2)*a1 ); in test_array()
243 VERIFY_IS_APPROX( (a1*a1).sqrt(), a1.abs() ); in test_array()