![]() |
Header file for mathematical functions. More...
#include <cmath>
#include <limits>
#include <blaze/math/traits/MathTrait.h>
#include <blaze/util/constraints/FloatingPoint.h>
#include <blaze/util/constraints/Integral.h>
#include <blaze/util/StaticAssert.h>
#include <blaze/util/Types.h>
Go to the source code of this file.
Namespaces | |
namespace | blaze |
Namespace of the Blaze C++ math library. | |
Functions | |
Mathematical utility functions | |
template<typename T > | |
const T | blaze::sign (T a) |
Sign function. More... | |
template<typename T > | |
size_t | blaze::digits (T a) |
Returns the number of valid digits of an integral value. More... | |
template<typename T1 , typename T2 > | |
const MathTrait< T1, T2 >::HighType | blaze::min (const T1 &a, const T2 &b) |
Minimum function for two arguments. More... | |
template<typename T1 , typename T2 , typename T3 > | |
const MathTrait< typename MathTrait< T1, T2 >::HighType, T3 >::HighType | blaze::min (const T1 &a, const T2 &b, const T3 &c) |
Minimum function for three arguments. More... | |
template<typename T1 , typename T2 > | |
const MathTrait< T1, T2 >::HighType | blaze::max (const T1 &a, const T2 &b) |
Maximum function for two arguments. More... | |
template<typename T1 , typename T2 , typename T3 > | |
const MathTrait< typename MathTrait< T1, T2 >::HighType, T3 >::HighType | blaze::max (const T1 &a, const T2 &b, const T3 &c) |
Maximum function for three arguments. More... | |
template<typename T > | |
T | blaze::round (T a) |
Rounds the given input value. More... | |
template<typename T1 , typename T2 > | |
bool | blaze::lessThan (T1 a, T2 b) |
Generic less-than comparison. More... | |
Header file for mathematical functions.
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/.