MaMiCo
1.2
Loading...
Searching...
No Matches
tarch
la
ScalarOperations.h
1
// Copyright (C) 2015 Technische Universitaet Muenchen
2
// This file is part of the Mamico project. For conditions of distribution
3
// and use, please see the copyright notice in Mamico's main folder, or at
4
// www5.in.tum.de/mamico
5
#ifndef _TARCH_LA_SCALAROPERATIONS_H_
6
#define _TARCH_LA_SCALAROPERATIONS_H_
7
#include <cmath>
9
namespace
tarch
{
11
namespace
la
{
12
22
23
template
<
class
T>
inline
bool
equals
(
const
T& l,
const
T& r,
const
T& tolerance) {
return
std::abs(l - r) <= tolerance; }
24
25
}
// namespace la
26
}
// namespace tarch
27
#endif
tarch::la
Definition
Matrix.h:10
tarch::la::equals
bool equals(const T &l, const T &r, const T &tolerance)
Definition
ScalarOperations.h:23
tarch
Definition
Configuration.h:11
Generated by
1.13.2