![]() |
Numerical epsilon value for floating point data types. More...
Go to the source code of this file.
Classes | |
class | blaze::NegativeEpsilon< E > |
Negative epsilon value for floating point data types.The NegativeEpsilon class is a wrapper class around the functionality of the blaze::Limits class. It represents the negative smallest difference between two values of any floating point data type. In order to assign a negative epsilon value, the Epsilon class can be implicitly converted to the three built-in floating point data types float, double and long double. More... | |
class | blaze::Epsilon |
Numerical epsilon value for floating point data types.The Epsilon class is a wrapper class around the functionality of the blaze::Limits class. It represents the smallest difference between two values of any floating point data type. In order to assign an epsilon value, the Epsilon class can be implicitly converted to the three built-in floating point data types float, double and long double. In order to handle epsilon values conveniently, the global Epsilon instance blaze::epsilon is provided, which can be used wherever a floating point data type is required. More... | |
Namespaces | |
namespace | blaze |
Namespace of the Blaze C++ math library. | |
Functions | |
template<typename E , typename T > | |
bool | blaze::operator<= (const NegativeEpsilon< E > &, const T &rhs) |
Less-or-equal-than comparison between a NegativeEpsilon object and a floating point value. | |
template<typename E , typename T > | |
bool | blaze::operator<= (const T &lhs, const NegativeEpsilon< E > &) |
Less-or-equal-than comparison between a floating point value and a NegativeEpsilon object. | |
template<typename E , typename T > | |
bool | blaze::operator>= (const NegativeEpsilon< E > &, const T &rhs) |
Greater-or-equal-than comparison between a NegativeEpsilon object and a floating point value. | |
template<typename E , typename T > | |
bool | blaze::operator>= (const T &lhs, const NegativeEpsilon< E > &) |
Less-or-equal-than comparison between a floating point value and a NegativeEpsilon object. | |
template<typename T > | |
bool | blaze::operator<= (const Epsilon &, const T &rhs) |
Less-or-equal-than comparison between an Epsilon object and a floating point value. | |
template<typename T > | |
bool | blaze::operator<= (const T &lhs, const Epsilon &) |
Less-or-equal-than comparison between a floating point value and an Epsilon object. | |
template<typename T > | |
bool | blaze::operator>= (const Epsilon &, const T &rhs) |
Greater-or-equal-than comparison between an Epsilon object and a floating point value. | |
template<typename T > | |
bool | blaze::operator>= (const T &lhs, const Epsilon &) |
Less-or-equal-than comparison between a floating point value and an Epsilon object. | |
NegativeEpsilon operators | |
template<typename E , typename T > | |
bool | blaze::operator== (const NegativeEpsilon< E > &, const T &rhs) |
Equality comparison between a NegativeEpsilon object and a floating point value. | |
template<typename E , typename T > | |
bool | blaze::operator== (const T &lhs, const NegativeEpsilon< E > &) |
Equality comparison between a floating point value and a NegativeEpsilon object. | |
template<typename E , typename T > | |
bool | blaze::operator!= (const NegativeEpsilon< E > &, const T &rhs) |
Inequality comparison between a NegativeEpsilon object and a floating point value. | |
template<typename E , typename T > | |
bool | blaze::operator!= (const T &lhs, const NegativeEpsilon< E > &) |
Inequality comparison between a floating point value and a NegativeEpsilon object. | |
template<typename E , typename T > | |
bool | blaze::operator< (const NegativeEpsilon< E > &, const T &rhs) |
Less-than comparison between a NegativeEpsilon object and a floating point value. | |
template<typename E , typename T > | |
bool | blaze::operator< (const T &lhs, const NegativeEpsilon< E > &) |
Less-than comparison between a floating point value and a NegativeEpsilon object. | |
template<typename E , typename T > | |
bool | blaze::operator> (const NegativeEpsilon< E > &, const T &rhs) |
Greater-than comparison between a NegativeEpsilon object and a floating point value. | |
template<typename E , typename T > | |
bool | blaze::operator> (const T &lhs, const NegativeEpsilon< E > &) |
Greater-than comparison between a floating point value and a NegativeEpsilon object. | |
Epsilon operators | |
template<typename T > | |
bool | blaze::operator== (const Epsilon &, const T &rhs) |
Equality comparison between an Epsilon object and a floating point value. | |
template<typename T > | |
bool | blaze::operator== (const T &lhs, const Epsilon &) |
Equality comparison between a floating point value and an Epsilon object. | |
template<typename T > | |
bool | blaze::operator!= (const Epsilon &, const T &rhs) |
Inequality comparison between an Epsilon object and a floating point value. | |
template<typename T > | |
bool | blaze::operator!= (const T &lhs, const Epsilon &) |
Inequality comparison between a floating point value and an Epsilon object. | |
template<typename T > | |
bool | blaze::operator< (const Epsilon &, const T &rhs) |
Less-than comparison between an Epsilon object and a floating point value. | |
template<typename T > | |
bool | blaze::operator< (const T &lhs, const Epsilon &) |
Less-than comparison between a floating point value and an Epsilon object. | |
template<typename T > | |
bool | blaze::operator> (const Epsilon &, const T &rhs) |
Greater-than comparison between an Epsilon object and a floating point value. | |
template<typename T > | |
bool | blaze::operator> (const T &lhs, const Epsilon &) |
Greater-than comparison between a floating point value and an Epsilon object. | |
Variables | |
const Epsilon | blaze::epsilon |
Global Epsilon instance.The blaze::epsilon instance can be used wherever a floating point data type is expected. It is implicitly converted to the corresponding floating point data type and represents the smallest possible difference between two values of the according data type. | |
Numerical epsilon value for floating point data types.
Copyright (C) 2011 Klaus Iglberger - All Rights Reserved
This file is part of the Blaze library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with a special exception for linking and compiling against the Blaze library, the so-called "runtime exception"; see the file COPYING. If not, see http://www.gnu.org/licenses/.