Added GTestSuite helper functions

- Functions to convert to cblas enums from char.
- Functions to print matrix and vector elements.
- Functions to set matrix and vector elements with
  the given value.

AMD-Internal: [CPUPL-2732]
Change-Id: I1046b9578c8456e89eddba4a4e8577016b9361ca
This commit is contained in:
jagar
2023-04-11 16:30:37 +05:30
committed by Eleni Vlachopoulou
parent 6b8f4744a4
commit f164c7fe70
60 changed files with 450 additions and 751 deletions

View File

@@ -86,4 +86,10 @@ std::vector<T> get_random_matrix(int from, int to, char storage, char uplo, gtin
template<typename T>
std::vector<T> get_random_vector(int from, int to, gtint_t n, gtint_t incx, char datatype);
template<typename T>
std::vector<T> get_vector( gtint_t n, gtint_t incx, T value );
template<typename T>
std::vector<T> get_matrix( char storage, char trans, gtint_t m, gtint_t n, gtint_t lda, T value );
} //end of namespace testinghelpers