OpenWalnut  1.5.0dev
Functions
math Namespace Reference

Some math ops. More...

Functions

template<typename T >
wabs (T u)
 Absolute value of the specified parameter. More...
 
int64_t wabs (int64_t u)
 Absolute value of the specified parameter. More...
 
uint8_t wabs (uint8_t u)
 Absolute value of the specified parameter. More...
 
uint16_t wabs (uint16_t u)
 Absolute value of the specified parameter. More...
 
uint32_t wabs (uint32_t u)
 Absolute value of the specified parameter. More...
 
uint64_t wabs (uint64_t u)
 Absolute value of the specified parameter. More...
 

Detailed Description

Some math ops.

Function Documentation

◆ wabs() [1/6]

int64_t math::wabs ( int64_t  u)
inline

Absolute value of the specified parameter.

This is a template specialization for std::abs as 64bit Ints are not supported everywhere.

Parameters
uthe value for which the absolute value should be returned
Returns
absolute of u

Definition at line 149 of file WMScalarOperator.cpp.

◆ wabs() [2/6]

template<typename T >
T math::wabs ( u)
inline

Absolute value of the specified parameter.

Parameters
uthe value for which the absolute value should be returned
Returns
absolute of u

Definition at line 137 of file WMScalarOperator.cpp.

◆ wabs() [3/6]

uint16_t math::wabs ( uint16_t  u)
inline

Absolute value of the specified parameter.

This is a template specialization for std::abs as it does not allow unsigned types.

Parameters
uthe value for which the absolute value should be returned
Returns
absolute of u

Definition at line 173 of file WMScalarOperator.cpp.

◆ wabs() [4/6]

uint32_t math::wabs ( uint32_t  u)
inline

Absolute value of the specified parameter.

This is a template specialization for std::abs as it does not allow unsigned types.

Parameters
uthe value for which the absolute value should be returned
Returns
absolute of u

Definition at line 185 of file WMScalarOperator.cpp.

◆ wabs() [5/6]

uint64_t math::wabs ( uint64_t  u)
inline

Absolute value of the specified parameter.

This is a template specialization for std::abs as it does not allow unsigned types.

Parameters
uthe value for which the absolute value should be returned
Returns
absolute of u

Definition at line 197 of file WMScalarOperator.cpp.

◆ wabs() [6/6]

uint8_t math::wabs ( uint8_t  u)
inline

Absolute value of the specified parameter.

This is a template specialization for std::abs as it does not allow unsigned types.

Parameters
uthe value for which the absolute value should be returned
Returns
absolute of u

Definition at line 161 of file WMScalarOperator.cpp.