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>
buffer< T > operator+ (buffer< T > &a, buffer< T > &b)
 Add operation.
 
template<jit::float_scalar T>
bool operator== (const buffer< T > &a, const buffer< T > &b)
 Equal 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<jit::float_scalar T>
buffer< T > fma (buffer< T > &a, buffer< T > &b, buffer< T > &c)
 Fused multiply add 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.
 

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)

◆ 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.

◆ 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<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.

◆ 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.