Kernel for computing elementwise reciprocal square root of an input vector. Supports float datatype.
|
| template<typename T > |
| MATHLIB_STATUS | MATHLIB_rsqrt (size_t length, T *pSrc, T *pDst) |
| | Performs the elementwise reciprocal square root of an input vectors. Function can be overloaded with float pointers, and the appropriate precision is employed to compute elementwise reciprocal square root of an input vector. More...
|
| |
| MATHLIB_STATUS | MATHLIB_rsqrt_sp (size_t length, float *pSrc, float *pDst) |
| | This function is the C interface for MATHLIB_rsqrt. Function accepts float pointers. More...
|
| |
◆ MATHLIB_rsqrt()
Performs the elementwise reciprocal square root of an input vectors. Function can be overloaded with float pointers, and the appropriate precision is employed to compute elementwise reciprocal square root of an input vector.
- Template Parameters
-
| T | : implementation datatype |
- Parameters
-
| [in] | length | : length of input vector |
| [in] | pSrc | : pointer to buffer holding input vector |
| [out] | pDst | : pointer to buffer holding result vector |
- Returns
- Status of success.
Definition at line 54 of file MATHLIB_rsqrt.cpp.
◆ MATHLIB_rsqrt_sp()
| MATHLIB_STATUS MATHLIB_rsqrt_sp |
( |
size_t |
length, |
|
|
float * |
pSrc, |
|
|
float * |
pDst |
|
) |
| |
This function is the C interface for MATHLIB_rsqrt. Function accepts float pointers.
- Template Parameters
-
| T | : implementation datatype |
- Parameters
-
| [in] | length | : length of input vector |
| [in] | pSrc | : pointer to buffer holding input vector |
| [out] | pDst | : pointer to buffer holding result vector |
- Returns
- Status of success.
Definition at line 155 of file MATHLIB_rsqrt.cpp.