DSPLIB User Guide
DSPLIB_svd_singular_sorting_ci.cpp File Reference

Introduction

Init function for funtions implemented in.

Version
0.1 - Aug 2023 : Initial Version

Definition in file DSPLIB_svd_singular_sorting_ci.cpp.

Go to the source code of this file.

Functions

template<typename dataType >
void DSPLIB_singularSort_swap_init_ci (DSPLIB_kernelHandle handle)
 
template void DSPLIB_singularSort_swap_init_ci< float > (DSPLIB_kernelHandle handle)
 
template void DSPLIB_singularSort_swap_init_ci< double > (DSPLIB_kernelHandle handle)
 
template<typename dataType >
void DSPLIB_singularSort_index_ci (dataType *singular_values, dataType *singularBuffer, int32_t *maxIndArr, int32_t Ncols, uint8_t *pBlock)
 This function sorts the singular values in descending order and also records the max index values for shuffling of U and V matrix columns. More...
 
template void DSPLIB_singularSort_index_ci< float > (float *singular_values, float *singularBuffer, int32_t *maxIndArr, int32_t Ncols, uint8_t *pBlock)
 
template void DSPLIB_singularSort_index_ci< double > (double *singular_values, double *singularBuffer, int32_t *maxIndArr, int32_t Ncols, uint8_t *pBlock)
 
template<typename dataType >
void DSPLIB_singularSort_swap_ci (dataType *V, int32_t Nrows, int32_t Ncols, int32_t rowVStride, int32_t *sortIndex, dataType *vBuff, uint8_t *pBlock)
 This function uses the max index values calculated from DSPLIB_singularSort_index_ci to shuffle the rows of U' and V' matrix (i.e. colums of U and V matrix). More...
 
template void DSPLIB_singularSort_swap_ci< float > (float *V, int32_t Nrows, int32_t Ncols, int32_t rowVStride, int32_t *sortIndex, float *vBuff, uint8_t *pBlock)
 
template void DSPLIB_singularSort_swap_ci< double > (double *V, int32_t Nrows, int32_t Ncols, int32_t rowVStride, int32_t *sortIndex, double *vBuff, uint8_t *pBlock)
 

Function Documentation

◆ DSPLIB_singularSort_swap_init_ci()

template<typename dataType >
void DSPLIB_singularSort_swap_init_ci ( DSPLIB_kernelHandle  handle)

Definition at line 40 of file DSPLIB_svd_singular_sorting_ci.cpp.

◆ DSPLIB_singularSort_swap_init_ci< float >()

template void DSPLIB_singularSort_swap_init_ci< float > ( DSPLIB_kernelHandle  handle)

◆ DSPLIB_singularSort_swap_init_ci< double >()

template void DSPLIB_singularSort_swap_init_ci< double > ( DSPLIB_kernelHandle  handle)

◆ DSPLIB_singularSort_index_ci()

template<typename dataType >
void DSPLIB_singularSort_index_ci ( dataType *  singular_values,
dataType *  singularBuffer,
int32_t *  maxIndArr,
int32_t  Ncols,
uint8_t *  pBlock 
)

This function sorts the singular values in descending order and also records the max index values for shuffling of U and V matrix columns.

Definition at line 89 of file DSPLIB_svd_singular_sorting_ci.cpp.

◆ DSPLIB_singularSort_index_ci< float >()

template void DSPLIB_singularSort_index_ci< float > ( float *  singular_values,
float *  singularBuffer,
int32_t *  maxIndArr,
int32_t  Ncols,
uint8_t *  pBlock 
)

◆ DSPLIB_singularSort_index_ci< double >()

template void DSPLIB_singularSort_index_ci< double > ( double *  singular_values,
double *  singularBuffer,
int32_t *  maxIndArr,
int32_t  Ncols,
uint8_t *  pBlock 
)

◆ DSPLIB_singularSort_swap_ci()

template<typename dataType >
void DSPLIB_singularSort_swap_ci ( dataType *  V,
int32_t  Nrows,
int32_t  Ncols,
int32_t  rowVStride,
int32_t *  sortIndex,
dataType *  vBuff,
uint8_t *  pBlock 
)

This function uses the max index values calculated from DSPLIB_singularSort_index_ci to shuffle the rows of U' and V' matrix (i.e. colums of U and V matrix).

Definition at line 164 of file DSPLIB_svd_singular_sorting_ci.cpp.

◆ DSPLIB_singularSort_swap_ci< float >()

template void DSPLIB_singularSort_swap_ci< float > ( float *  V,
int32_t  Nrows,
int32_t  Ncols,
int32_t  rowVStride,
int32_t *  sortIndex,
float *  vBuff,
uint8_t *  pBlock 
)

◆ DSPLIB_singularSort_swap_ci< double >()

template void DSPLIB_singularSort_swap_ci< double > ( double *  V,
int32_t  Nrows,
int32_t  Ncols,
int32_t  rowVStride,
int32_t *  sortIndex,
double *  vBuff,
uint8_t *  pBlock 
)