Graph Framework
Loading...
Searching...
No Matches
backend Namespace Reference

Name space for backend buffers. More...

Classes

class  buffer
 Class representing a generic buffer. More...
 

Functions

template<jit::float_scalar T>
bool operator== (const buffer< T > &a, const buffer< T > &b)
 Equal operation.
 
template<jit::float_scalar T>
buffer< T > max (buffer< T > &a, buffer< T > &b)
 Max operation.
 
template<jit::float_scalar T>
buffer< T > min (buffer< T > &a, buffer< T > &b)
 Min operation.
 
template<jit::float_scalar T>
buffer< T > operator+ (buffer< T > &a, buffer< T > &b)
 Add operation.
 
template<jit::float_scalar T>
buffer< T > operator- (buffer< T > &a, buffer< T > &b)
 Subtract operation.
 
template<jit::float_scalar T>
buffer< T > operator* (buffer< T > &a, buffer< T > &b)
 Multiply operation.
 
template<jit::float_scalar T>
buffer< T > operator/ (buffer< T > &a, buffer< T > &b)
 Divide operation.
 
template<std::floating_point T>
buffer< T > hypot (buffer< T > &a, buffer< T > &b)
 hypot operation.
 
template<jit::float_scalar T>
buffer< T > fma (buffer< T > &a, buffer< T > &b, buffer< T > &c)
 Fused multiply add operation.
 
template<std::floating_point T>
buffer< T > operator% (buffer< T > &a, buffer< T > &b)
 Modulo operation.
 
template<jit::float_scalar T>
buffer< T > operator== (buffer< T > &a, buffer< T > &b)
 Equal operation.
 
template<jit::float_scalar T>
buffer< T > operator!= (buffer< T > &a, buffer< T > &b)
 Not equal operation.
 
template<std::floating_point T>
buffer< T > operator> (buffer< T > &a, buffer< T > &b)
 Greater than operation.
 
template<std::floating_point T>
buffer< T > operator< (buffer< T > &a, buffer< T > &b)
 Less than operation.
 
template<std::floating_point T>
buffer< T > operator>= (buffer< T > &a, buffer< T > &b)
 Greater than equal operation.
 
template<std::floating_point T>
buffer< T > operator<= (buffer< T > &a, buffer< T > &b)
 Less than equal operation.
 
template<std::floating_point T>
buffer< T > operator&& (buffer< T > &a, buffer< T > &b)
 And operation.
 
template<std::floating_point T>
buffer< T > operator|| (buffer< T > &a, buffer< T > &b)
 Or operation.
 
template<jit::float_scalar T>
buffer< T > pow (buffer< T > &base, buffer< T > &exponent)
 Take the power.
 
template<jit::float_scalar T>
buffer< T > atan (buffer< T > &x, buffer< T > &y)
 Take the inverse tangent.
 
template<std::floating_point T>
buffer< T > copysign (buffer< T > &x, buffer< T > &y)
 Copy the sign of x and apply it to y.
 

Detailed Description

Name space for backend buffers.

Function Documentation

◆ atan()

template<jit::float_scalar T>
buffer< T > backend::atan ( buffer< T > &  x,
buffer< T > &  y 
)
inline

Take the inverse tangent.

Template Parameters
TBase type of the calculation.
Parameters
[in]xX argument.
[in]yY argument.
Returns
atan2(y, x)

◆ copysign()

template<std::floating_point T>
buffer< T > backend::copysign ( buffer< T > &  x,
buffer< T > &  y 
)
inline

Copy the sign of x and apply it to y.

Template Parameters
TBase type of the calculation.
Parameters
[in]xX argument.
[in]yY argument.
Returns
copysign(x, y)

◆ fma()

template<jit::float_scalar T>
buffer< T > backend::fma ( buffer< T > &  a,
buffer< T > &  b,
buffer< T > &  c 
)
inline

Fused multiply add operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aLeft operand.
[in]bMiddle operand.
[in]cRight operand.
Returns
a*b + c.

◆ hypot()

template<std::floating_point T>
buffer< T > backend::hypot ( buffer< T > &  a,
buffer< T > &  b 
)
inline

hypot operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aLeft operand.
[in]bRight operand.
Returns
hypot(a,b)

◆ max()

template<jit::float_scalar T>
buffer< T > backend::max ( buffer< T > &  a,
buffer< T > &  b 
)
inline

Max operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aLeft operand.
[in]bRight operand.
Returns
max(a, b).

◆ min()

template<jit::float_scalar T>
buffer< T > backend::min ( buffer< T > &  a,
buffer< T > &  b 
)
inline

Min operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aLeft operand.
[in]bRight operand.
Returns
min(a, b).
Template Parameters
TBase type of the calculation.
Parameters
[in]aNumerator.
[in]bDenominator.
Returns
min(a, b).

◆ operator!=()

template<jit::float_scalar T>
buffer< T > backend::operator!= ( buffer< T > &  a,
buffer< T > &  b 
)
inline

Not equal operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aNumerator.
[in]bDenominator.
Returns
a == b.

◆ operator%()

template<std::floating_point T>
buffer< T > backend::operator% ( buffer< T > &  a,
buffer< T > &  b 
)
inline

Modulo operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aNumerator.
[in]bDenominator.
Returns
a % b.

◆ operator&&()

template<std::floating_point T>
buffer< T > backend::operator&& ( buffer< T > &  a,
buffer< T > &  b 
)
inline

And operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aNumerator.
[in]bDenominator.
Returns
a && b.

◆ operator*()

template<jit::float_scalar T>
buffer< T > backend::operator* ( buffer< T > &  a,
buffer< T > &  b 
)
inline

Multiply operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aLeft operand.
[in]bRight operand.
Returns
a * b.

◆ operator+()

template<jit::float_scalar T>
buffer< T > backend::operator+ ( buffer< T > &  a,
buffer< T > &  b 
)
inline

Add operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aLeft operand.
[in]bRight operand.
Returns
a + b.

◆ operator-()

template<jit::float_scalar T>
buffer< T > backend::operator- ( buffer< T > &  a,
buffer< T > &  b 
)
inline

Subtract operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aLeft operand.
[in]bRight operand.
Returns
a - b.

◆ operator/()

template<jit::float_scalar T>
buffer< T > backend::operator/ ( buffer< T > &  a,
buffer< T > &  b 
)
inline

Divide operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aNumerator.
[in]bDenominator.
Returns
a / b.

◆ operator<()

template<std::floating_point T>
buffer< T > backend::operator< ( buffer< T > &  a,
buffer< T > &  b 
)
inline

Less than operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aNumerator.
[in]bDenominator.
Returns
a < b.

◆ operator<=()

template<std::floating_point T>
buffer< T > backend::operator<= ( buffer< T > &  a,
buffer< T > &  b 
)
inline

Less than equal operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aNumerator.
[in]bDenominator.
Returns
a <= b.

◆ operator==() [1/2]

template<jit::float_scalar T>
buffer< T > backend::operator== ( buffer< T > &  a,
buffer< T > &  b 
)
inline

Equal operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aNumerator.
[in]bDenominator.
Returns
a == b.

◆ operator==() [2/2]

template<jit::float_scalar T>
bool backend::operator== ( const buffer< T > &  a,
const buffer< T > &  b 
)
inline

Equal operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aLeft operand.
[in]bRight operand.
Returns
a == b.

◆ operator>()

template<std::floating_point T>
buffer< T > backend::operator> ( buffer< T > &  a,
buffer< T > &  b 
)
inline

Greater than operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aNumerator.
[in]bDenominator.
Returns
a > b.

◆ operator>=()

template<std::floating_point T>
buffer< T > backend::operator>= ( buffer< T > &  a,
buffer< T > &  b 
)
inline

Greater than equal operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aNumerator.
[in]bDenominator.
Returns
a >= b.

◆ operator||()

template<std::floating_point T>
buffer< T > backend::operator|| ( buffer< T > &  a,
buffer< T > &  b 
)
inline

Or operation.

Template Parameters
TBase type of the calculation.
Parameters
[in]aNumerator.
[in]bDenominator.
Returns
a || b.

◆ pow()

template<jit::float_scalar T>
buffer< T > backend::pow ( buffer< T > &  base,
buffer< T > &  exponent 
)
inline

Take the power.

Template Parameters
TBase type of the calculation.
Parameters
[in]baseBase to raise to the power of.
[in]exponentPower to apply to the base.
Returns
base^exponent.