MaMiCo 1.2
Loading...
Searching...
No Matches
tarch::la Namespace Reference

Classes

class  Matrix
 
class  Vector
 

Functions

template<class T>
bool equals (const T &l, const T &r, const T &tolerance)
 

Detailed Description

namespace la

Function Documentation

◆ equals()

template<class T>
bool tarch::la::equals ( const T & l,
const T & r,
const T & tolerance )
inline

This function template checks if the difference of two given numbers is smaller than a given tolerance i.e. if they are mathematically equal.

Template Parameters
Tdata type
Parameters
lFirst number
rSecond number
toleranceTolerance
Returns
1: if they are equal. 0: if the are not equal.
Author
Philipp Neumann