MATHLIB User Guide
MATHLIB_pow

Introduction

Kernel for elementwise power of a base and an exponent vector. Supports float and double datatype.

Functions

template<typename T >
MATHLIB_STATUS MATHLIB_pow (size_t length, T *pSrc0, T *pSrc1, T *pDst)
 Performs the elementwise power of input vectors. Function can be overloaded with float and double pointers, and the appropriate precision is employed to compute elementwise power of the input vectors. More...
 
MATHLIB_STATUS MATHLIB_pow_sp (size_t length, float *pSrc0, float *pSrc1, float *pDst)
 This function is the C interface for MATHLIB_pow. Function accepts float pointers. More...
 
MATHLIB_STATUS MATHLIB_pow_dp (size_t length, double *pSrc0, double *pSrc1, double *pDst)
 This function is the C interface for MATHLIB_pow. Function accepts double pointers. More...
 

Function Documentation

◆ MATHLIB_pow()

template<typename T >
MATHLIB_STATUS MATHLIB_pow ( size_t  length,
T *  pSrc0,
T *  pSrc1,
T *  pDst 
)

Performs the elementwise power of input vectors. Function can be overloaded with float and double pointers, and the appropriate precision is employed to compute elementwise power of the input vectors.

Template Parameters
T: implementation datatype
Parameters
[in]length: length of input vector
[in]pSrc0: pointer to buffer holding input vector 0, the base
[in]pSrc1: pointer to buffer holding input vector 1, the exponent
[out]pDst: pointer to buffer holding result vector
Returns
Status of success.
Remarks
None

◆ MATHLIB_pow_sp()

MATHLIB_STATUS MATHLIB_pow_sp ( size_t  length,
float *  pSrc0,
float *  pSrc1,
float *  pDst 
)

This function is the C interface for MATHLIB_pow. Function accepts float pointers.

Template Parameters
T: implementation datatype
Parameters
[in]length: length of input vector
[in]pSrc0: pointer to buffer holding input vector 0, the base
[in]pSrc1: pointer to buffer holding input vector 1, the exponent
[out]pDst: pointer to buffer holding result vector
Returns
Status of success.
Remarks
None

◆ MATHLIB_pow_dp()

MATHLIB_STATUS MATHLIB_pow_dp ( size_t  length,
double *  pSrc0,
double *  pSrc1,
double *  pDst 
)

This function is the C interface for MATHLIB_pow. Function accepts double pointers.

Template Parameters
T: implementation datatype
Parameters
[in]length: length of input vector
[in]pSrc0: pointer to buffer holding input vector 0, the base
[in]pSrc1: pointer to buffer holding input vector 1, the exponent
[out]pDst: pointer to buffer holding result vector
Returns
Status of success.
Remarks
None