Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Namespaces | Macros
native_pi_math.hpp File Reference
#include "native_math.hpp"
#include <uni20/core/math_constants.hpp>
Include dependency graph for native_pi_math.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  uni20
 

Macros

#define UNI20_NATIVE_PI_FORWARD(TYPE, SUFFIX)
 
#define UNI20_NATIVE_PI_INVERSE(TYPE, SUFFIX)
 

Macro Definition Documentation

◆ UNI20_NATIVE_PI_FORWARD

#define UNI20_NATIVE_PI_FORWARD (   TYPE,
  SUFFIX 
)
Value:
static TYPE sinpi(TYPE x) { return ::sinpi##SUFFIX(x); } \
static TYPE cospi(TYPE x) { return ::cospi##SUFFIX(x); } \
static TYPE tanpi(TYPE x) { return ::tanpi##SUFFIX(x); }
constexpr detail::scalar_math::tanpi_fn tanpi
Tangent of pi times x, with argument reduction before multiplication by pi.
Definition math.hpp:644

◆ UNI20_NATIVE_PI_INVERSE

#define UNI20_NATIVE_PI_INVERSE (   TYPE,
  SUFFIX 
)
Value:
static TYPE asinpi(TYPE x) { return ::asinpi##SUFFIX(x); } \
static TYPE acospi(TYPE x) { return ::acospi##SUFFIX(x); } \
static TYPE atanpi(TYPE x) { return ::atanpi##SUFFIX(x); } \
static TYPE atan2pi(TYPE y, TYPE x) { return ::atan2pi##SUFFIX(y, x); }
constexpr detail::scalar_math::atanpi_fn atanpi
Principal arctangent divided by pi.
Definition math.hpp:650
constexpr detail::scalar_math::atan2pi_fn atan2pi
Quadrant-aware arctangent divided by pi.
Definition math.hpp:664