1/*!
2 * \file   tests/Math/include/function_tests.ixx
3 * \brief
4 *
5 * \author Thomas Helfer
6 * \date   28 Jun 2006
7 * \copyright Copyright (C) 2006-2018 CEA/DEN, EDF R&D. All rights
8 * reserved.
9 * This project is publicly released under either the GNU GPL Licence
10 * or the CECILL-A licence. A copy of thoses licences are delivered
11 * with the sources of TFEL. CEA or EDF may also distribute this
12 * project under specific licensing conditions.
13 */
14
15#ifndef LIB_TFEL_FUNCTIONIXX
16#define LIB_TFEL_FUNCTIONIXX
17
18#include <cmath>
19
20template<class T>
21void function(const tfel::math::VectorConcept<T>& x,
22	      typename tfel::math::VectorTraits<T>::NumType v0,
23	      typename tfel::math::VectorTraits<T>::NumType v1,
24	      typename tfel::math::VectorTraits<T>::NumType v2,
25	      typename tfel::math::VectorTraits<T>::NumType eps,
26	      unsigned int)
27{
28  assert(std::abs(x(0)-v0)<=eps);
29  assert(std::abs(x(1)-v1)<=eps);
30  assert(std::abs(x(2)-v2)<=eps);
31}
32
33#endif /* LIB_TFEL_FUNCTION_IXX */
34
35