Kernel for computing elementwise square root of an input vector. Supports float and double datatype.
◆ MATHLIB_sqrt()
Performs the elementwise square root of an input vectors. Function can be overloaded with float and double pointers, and the appropriate precision is employed to compute elementwise 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 204 of file MATHLIB_sqrt.cpp.
◆ MATHLIB_sqrt_sp()
| MATHLIB_STATUS MATHLIB_sqrt_sp |
( |
size_t |
length, |
|
|
float * |
pSrc, |
|
|
float * |
pDst |
|
) |
| |
This function is the C interface for MATHLIB_sqrt. 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 237 of file MATHLIB_sqrt.cpp.
◆ MATHLIB_sqrt_dp()
| MATHLIB_STATUS MATHLIB_sqrt_dp |
( |
size_t |
length, |
|
|
double * |
pSrc, |
|
|
double * |
pDst |
|
) |
| |
This function is the C interface for MATHLIB_sqrt. Function accepts double 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 244 of file MATHLIB_sqrt.cpp.