![]() |
Header file for mathematical functions. More...
#include <cmath>
#include <blaze/system/Inline.h>
#include <blaze/util/constraints/Builtin.h>
#include <blaze/util/constraints/Integral.h>
#include <blaze/util/mpl/And.h>
#include <blaze/util/Types.h>
#include <blaze/util/typetraits/All.h>
#include <blaze/util/typetraits/CommonType.h>
#include <blaze/util/typetraits/IsBuiltin.h>
#include <blaze/util/typetraits/IsFloatingPoint.h>
#include <blaze/util/typetraits/IsNumeric.h>
#include <blaze/util/typetraits/IsSigned.h>
Go to the source code of this file.
Namespaces | |
blaze | |
Namespace of the Blaze C++ math library. | |
Functions | |
template<typename T1 , typename T2 > | |
BLAZE_ALWAYS_INLINE constexpr bool | blaze::lessThan (const T1 &a, const T2 &b) noexcept(IsBuiltin< CommonType_< T1, T2 > >::value) |
Generic less-than comparison. More... | |
Mathematical utility functions | |
template<typename T > | |
constexpr int | blaze::sign (T a) noexcept |
Sign function. More... | |
template<typename T > | |
size_t | blaze::digits (T a) noexcept |
Returns the number of valid digits of an integral value. More... | |
template<typename T1 , typename T2 > | |
BLAZE_ALWAYS_INLINE constexpr CommonType_< T1, T2 > | blaze::min (const T1 &a, const T2 &b) noexcept(All< IsNumeric, T1, T2 >::value) |
Minimum function for two data values. More... | |
template<typename T1 , typename T2 , typename... Ts> | |
BLAZE_ALWAYS_INLINE constexpr CommonType_< T1, T2, Ts... > | blaze::min (const T1 &a, const T2 &b, const Ts &...args) noexcept(All< IsNumeric, T1, T2, Ts... >::value) |
Minimum function for at least three data values. More... | |
template<typename T1 , typename T2 > | |
BLAZE_ALWAYS_INLINE constexpr CommonType_< T1, T2 > | blaze::max (const T1 &a, const T2 &b) noexcept(All< IsNumeric, T1, T2 >::value) |
Maximum function for two data values. More... | |
template<typename T1 , typename T2 , typename... Ts> | |
BLAZE_ALWAYS_INLINE constexpr CommonType_< T1, T2, Ts... > | blaze::max (const T1 &a, const T2 &b, const Ts &...args) noexcept(All< IsNumeric, T1, T2, Ts... >::value) |
Maximum function for at least three data values. More... | |
template<typename T > | |
BLAZE_ALWAYS_INLINE constexpr T | blaze::nextMultiple (T value, T factor) noexcept |
Rounds up an integral value to the next multiple of a given factor. More... | |
template<typename T1 , typename T2 > | |
BLAZE_ALWAYS_INLINE constexpr bool | blaze::lessThan (T1 a, T2 b) noexcept(IsBuiltin< CommonType_< T1, T2 > >::value) |
Header file for mathematical functions.
Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
This file is part of the Blaze library. You can redistribute it and/or modify it under the terms of the New (Revised) BSD License. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.