DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
cblas_defvar.h
Go to the documentation of this file.
1 #ifndef CBLAS_DEFVAR_H
2 #define CBLAS_DEFVAR_H
3 #include <stddef.h>
4 
5 /*
6  * Enumerated and derived types
7  */
8 #if !defined(CBLAS_H) && !defined(__GSL_CBLAS_H__) && !defined(CBLAS_ENUM_DEFINED_H) && !defined(__MKL_CBLAS_H__) // this part conflicts with gsl_cblas.h
9 #define CBLAS_INDEX size_t /* this may vary between platforms */
10 #define CBLAS_ENUM_DEFINED_H
11 
17 
18 #endif
19 
20 
21 static char CBLAS_TRANSPOSE_CHAR[] = {'N', 'T', 'C', 'N'};
22 inline char *cblas_transpose(CBLAS_TRANSPOSE TransA)
23 {
24  switch(TransA)
25  {
26  case 111: return &CBLAS_TRANSPOSE_CHAR[0];
27  case 112: return &CBLAS_TRANSPOSE_CHAR[1];
28  case 113: return &CBLAS_TRANSPOSE_CHAR[2];
29 #if !defined(__MKL_CBLAS_H__)
30  case 114: return &CBLAS_TRANSPOSE_CHAR[3];
31 #endif
32  }
33  return NULL;
34 }
35 
36 static char CBLAS_UPLO_CHAR[] = {'U', 'L'};
37 inline char *cblas_uplo(CBLAS_UPLO Uplo)
38 {
39  switch(Uplo)
40  {
41  case 121: return &CBLAS_UPLO_CHAR[0];
42  case 122: return &CBLAS_UPLO_CHAR[1];
43  }
44  return NULL;
45 }
46 
47 static char CBLAS_DIAG_CHAR[] = {'N', 'U'};
48 inline char *cblas_diag(CBLAS_DIAG Diag)
49 {
50  switch(Diag)
51  {
52  case 131: return &CBLAS_DIAG_CHAR[0];
53  case 132: return &CBLAS_DIAG_CHAR[1];
54  }
55  return NULL;
56 }
57 
58 static char CBLAS_SIDE_CHAR[] = {'L', 'R'};
59 inline char *cblas_side(CBLAS_SIDE Side)
60 {
61  switch(Side)
62  {
63  case 141: return &CBLAS_SIDE_CHAR[0];
64  case 142: return &CBLAS_SIDE_CHAR[1];
65  }
66  return NULL;
67 }
68 
69 #endif
static char CBLAS_SIDE_CHAR[]
Definition: cblas_defvar.h:58
CBLAS_TRANSPOSE
Definition: utl_cblas.h:6
char * cblas_side(CBLAS_SIDE Side)
Definition: cblas_defvar.h:59
CBLAS_ORDER
Definition: utl_cblas.h:5
static char CBLAS_UPLO_CHAR[]
Definition: cblas_defvar.h:36
CBLAS_SIDE
Definition: utl_cblas.h:10
char * cblas_transpose(CBLAS_TRANSPOSE TransA)
Definition: cblas_defvar.h:22
char * cblas_uplo(CBLAS_UPLO Uplo)
Definition: cblas_defvar.h:37
CBLAS_UPLO
Definition: utl_cblas.h:8
CBLAS_DIAG
Definition: utl_cblas.h:9
char * cblas_diag(CBLAS_DIAG Diag)
Definition: cblas_defvar.h:48
static char CBLAS_DIAG_CHAR[]
Definition: cblas_defvar.h:47
static char CBLAS_TRANSPOSE_CHAR[]
Definition: cblas_defvar.h:21