14{
16#ifdef FLA_ENABLE_EXTERNAL_LAPACK_INTERFACES
17 int itype;
18 int info;
20 int m_A, cs_A;
21 int cs_B;
22 char blas_uplo;
23
26
27
28
29 if ( inv == FLA_INVERSE )
30 itype = 1;
31 else
32 itype = 2;
33
35
39
41
42
43 switch( datatype ){
44
45 case FLA_FLOAT:
46 {
47 float *buff_A = ( float * ) FLA_FLOAT_PTR( A );
48 float *buff_B = ( float * ) FLA_FLOAT_PTR( B );
49
51 &blas_uplo,
52 &m_A,
53 buff_A, &cs_A,
54 buff_B, &cs_B,
55 &info );
56
57 break;
58 }
59
60 case FLA_DOUBLE:
61 {
62 double *buff_A = ( double * ) FLA_DOUBLE_PTR( A );
63 double *buff_B = ( double * ) FLA_DOUBLE_PTR( B );
64
66 &blas_uplo,
67 &m_A,
68 buff_A, &cs_A,
69 buff_B, &cs_B,
70 &info );
71
72 break;
73 }
74
75 case FLA_COMPLEX:
76 {
79
81 &blas_uplo,
82 &m_A,
83 buff_A, &cs_A,
84 buff_B, &cs_B,
85 &info );
86
87 break;
88 }
89
90 case FLA_DOUBLE_COMPLEX:
91 {
94
96 &blas_uplo,
97 &m_A,
98 buff_A, &cs_A,
99 buff_B, &cs_B,
100 &info );
101
102 break;
103 }
104
105 }
106
107#else
108 FLA_Check_error_code( FLA_EXTERNAL_LAPACK_NOT_IMPLEMENTED );
109#endif
110
111 return r_val;
112}
FLA_Error FLA_Eig_gest_check(FLA_Inv inv, FLA_Uplo uplo, FLA_Obj A, FLA_Obj B)
Definition FLA_Eig_gest_check.c:13
int F77_ssygst(int *itype, char *uplo, int *n, float *a, int *lda, float *b, int *ldb, int *info)
int F77_zhegst(int *itype, char *uplo, int *n, dcomplex *a, int *lda, dcomplex *b, int *ldb, int *info)
int F77_chegst(int *itype, char *uplo, int *n, scomplex *a, int *lda, scomplex *b, int *ldb, int *info)
int F77_dsygst(int *itype, char *uplo, int *n, double *a, int *lda, double *b, int *ldb, int *info)
dim_t FLA_Obj_length(FLA_Obj obj)
Definition FLA_Query.c:116
dim_t FLA_Obj_col_stride(FLA_Obj obj)
Definition FLA_Query.c:174
unsigned int FLA_Check_error_level(void)
Definition FLA_Check.c:18
void FLA_Param_map_flame_to_netlib_uplo(FLA_Uplo uplo, void *blas_uplo)
Definition FLA_Param.c:47
FLA_Datatype FLA_Obj_datatype(FLA_Obj obj)
Definition FLA_Query.c:13
int FLA_Error
Definition FLA_type_defs.h:47
int FLA_Datatype
Definition FLA_type_defs.h:49
Definition blis_type_defs.h:138
Definition blis_type_defs.h:133