|
MaMiCo 1.2
|
Classes | |
| class | Matrix |
| class | Vector |
Functions | |
| template<class T> | |
| KOKKOS_INLINE_FUNCTION bool | equals (const T &l, const T &r, const T &tolerance) |
namespace la
| KOKKOS_INLINE_FUNCTION bool tarch::la::equals | ( | const T & | l, |
| const T & | r, | ||
| const T & | tolerance ) |
This function template checks if the difference of two given numbers is smaller than a given tolerance i.e. if they are mathematically equal.
| T | data type |
| l | First number |
| r | Second number |
| tolerance | Tolerance |