MATHLIB User Guide
MATHLIB_sin

Introduction

Kernel for computing elementwise sine of an input vector. Supports float and double datatype.

Functions

template<typename T >
MATHLIB_STATUS MATHLIB_sin (size_t length, T *pSrc, T *pDst)
 Performs the elementwise sine of an input vector. Function can be overloaded with float and double pointers, and the appropriate precision is employed to compute elementwise sine of the input vector. More...
 
MATHLIB_STATUS MATHLIB_sin_sp (size_t length, float *pSrc, float *pDst)
 This function is the C interface for MATHLIB_sin. Function accepts float pointers. More...
 
MATHLIB_STATUS MATHLIB_sin_dp (size_t length, double *pSrc, double *pDst)
 This function is the C interface for MATHLIB_sin. Function accepts double pointers. More...
 

Function Documentation

◆ MATHLIB_sin()

template<typename T >
MATHLIB_STATUS MATHLIB_sin ( size_t  length,
T *  pSrc,
T *  pDst 
)

Performs the elementwise sine of an input vector. Function can be overloaded with float and double pointers, and the appropriate precision is employed to compute elementwise sine of the 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.
Remarks
None

◆ MATHLIB_sin_sp()

MATHLIB_STATUS MATHLIB_sin_sp ( size_t  length,
float *  pSrc,
float *  pDst 
)

This function is the C interface for MATHLIB_sin. 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.
Remarks
None

Definition at line 266 of file MATHLIB_sin.cpp.

◆ MATHLIB_sin_dp()

MATHLIB_STATUS MATHLIB_sin_dp ( size_t  length,
double *  pSrc,
double *  pDst 
)

This function is the C interface for MATHLIB_sin. 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.
Remarks
None

Definition at line 274 of file MATHLIB_sin.cpp.