alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
math.hpp File Reference
#include "alpaka/api/api.hpp"
#include "alpaka/api/math.hpp"
#include "alpaka/math/internal/math.hpp"
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  alpaka
 main alpaka namespace.
namespace  alpaka::math

Functions

constexpr auto alpaka::math::abs (auto const &arg)
constexpr auto alpaka::math::acos (auto const &arg)
constexpr auto alpaka::math::acosh (auto const &arg)
constexpr auto alpaka::math::arg (auto const &arg)
constexpr auto alpaka::math::asin (auto const &arg)
constexpr auto alpaka::math::asinh (auto const &arg)
constexpr auto alpaka::math::atan (auto const &arg)
constexpr auto alpaka::math::atan2 (auto const &y, auto const &x)
constexpr auto alpaka::math::atanh (auto const &arg)
constexpr auto alpaka::math::cbrt (auto const &arg)
constexpr auto alpaka::math::ceil (auto const &arg)
constexpr auto alpaka::math::conj (auto const &arg)
 Computes the complex conjugate of arg.
constexpr auto alpaka::math::copysign (auto const &mag, auto const &sgn)
 Creates a value with the magnitude of mag and the sign of sgn.
constexpr auto alpaka::math::cos (auto const &arg)
constexpr auto alpaka::math::cosh (auto const &arg)
constexpr auto alpaka::math::erf (auto const &arg)
constexpr auto alpaka::math::exp (auto const &arg)
constexpr auto alpaka::math::floor (auto const &arg)
constexpr auto alpaka::math::fma (auto const &x, auto const &y, auto const &z)
constexpr auto alpaka::math::fmod (auto const &x, auto const &y)
constexpr auto alpaka::math::isfinite (auto const &arg)
constexpr auto alpaka::math::isinf (auto const &arg)
constexpr auto alpaka::math::isnan (auto const &arg)
constexpr auto alpaka::math::llround (auto const &arg)
 Computes the nearest integer value to arg (in in integer format), rounding halfway cases away from zero, regardless of the current rounding mode.
constexpr auto alpaka::math::log (auto const &arg)
 Computes the natural (base e) logarithm of arg.
constexpr auto alpaka::math::log10 (auto const &arg)
constexpr auto alpaka::math::log2 (auto const &arg)
 Computes the natural (base 2) logarithm of arg.
constexpr auto alpaka::math::lround (auto const &arg)
 Computes the nearest integer value to arg (in in integer format), rounding halfway cases away from zero, regardless of the current rounding mode.
constexpr auto alpaka::math::max (auto const &a, auto const &b)
constexpr auto alpaka::math::min (auto const &a, auto const &b)
constexpr auto alpaka::math::pow (auto const &base, auto const &exp)
constexpr auto alpaka::math::remainder (auto const &x, auto const &y)
constexpr auto alpaka::math::round (auto const &arg)
 Computes the nearest integer value to arg (in floating-point format), rounding halfway cases away from zero, regardless of the current rounding mode.
constexpr auto alpaka::math::rsqrt (auto const &arg)
constexpr auto alpaka::math::sin (auto const &arg)
constexpr auto alpaka::math::sincos (auto const &arg, auto &result_sin, auto &result_cos)
constexpr auto alpaka::math::sinh (auto const &arg)
constexpr auto alpaka::math::sqrt (auto const &arg)
constexpr auto alpaka::math::tan (auto const &arg)
constexpr auto alpaka::math::tanh (auto const &arg)
constexpr auto alpaka::math::trunc (auto const &arg)