6 #include "cblas_test.h" 8 void get_transpose_type(
char *type, CBLAS_TRANSPOSE *trans) {
9 if( (strncmp( type,
"n",1 )==0)||(strncmp( type,
"N",1 )==0) )
10 *trans = CblasNoTrans;
11 else if( (strncmp( type,
"t",1 )==0)||(strncmp( type,
"T",1 )==0) )
13 else if( (strncmp( type,
"c",1 )==0)||(strncmp( type,
"C",1 )==0) )
14 *trans = CblasConjTrans;
15 else *trans = UNDEFINED;
18 void get_uplo_type(
char *type, CBLAS_UPLO *uplo) {
19 if( (strncmp( type,
"u",1 )==0)||(strncmp( type,
"U",1 )==0) )
21 else if( (strncmp( type,
"l",1 )==0)||(strncmp( type,
"L",1 )==0) )
23 else *uplo = UNDEFINED;
25 void get_diag_type(
char *type, CBLAS_DIAG *diag) {
26 if( (strncmp( type,
"u",1 )==0)||(strncmp( type,
"U",1 )==0) )
28 else if( (strncmp( type,
"n",1 )==0)||(strncmp( type,
"N",1 )==0) )
30 else *diag = UNDEFINED;
32 void get_side_type(
char *type, CBLAS_SIDE *side) {
33 if( (strncmp( type,
"l",1 )==0)||(strncmp( type,
"L",1 )==0) )
35 else if( (strncmp( type,
"r",1 )==0)||(strncmp( type,
"R",1 )==0) )
37 else *side = UNDEFINED;