MATHLIB User Guide
MATHLIB_div

Introduction

Kernel for computing elementwise divide of dividend and divisor vectors. Supports float datatype.

Functions

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

Function Documentation

◆ MATHLIB_div()

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

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

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

Definition at line 54 of file MATHLIB_div.cpp.

◆ MATHLIB_div_sp()

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

This function is the C interface for MATHLIB_div. 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 dividend
[in]pSrc1: pointer to buffer holding input vector1, the divisor
[out]pDst: pointer to buffer holding result vector
Returns
Status of success.
Remarks
None

Definition at line 146 of file MATHLIB_div.cpp.