14{
15 int info = 0;
16#ifdef FLA_ENABLE_EXTERNAL_LAPACK_INTERFACES
18 int n_A, cs_A;
20
23
25
27
30
32
33
34 ilo += 1;
35 ihi += 1;
36
37 switch( datatype ){
38
39 case FLA_FLOAT:
40 {
41 float *buff_A = ( float * ) FLA_FLOAT_PTR( A );
42 float *buff_t = ( float * ) FLA_FLOAT_PTR( t );
43 float *buff_work = ( float * ) FLA_FLOAT_PTR( work_obj );
44
46 &ilo,
47 &ihi,
48 buff_A, &cs_A,
49 buff_t,
50 buff_work,
51 &info );
52
53 break;
54 }
55
56 case FLA_DOUBLE:
57 {
58 double *buff_A = ( double * ) FLA_DOUBLE_PTR( A );
59 double *buff_t = ( double * ) FLA_DOUBLE_PTR( t );
60 double *buff_work = ( double * ) FLA_DOUBLE_PTR( work_obj );
61
63 &ilo,
64 &ihi,
65 buff_A, &cs_A,
66 buff_t,
67 buff_work,
68 &info );
69
70 break;
71 }
72
73 case FLA_COMPLEX:
74 {
78
80 &ilo,
81 &ihi,
82 buff_A, &cs_A,
83 buff_t,
84 buff_work,
85 &info );
86
87 break;
88 }
89
90 case FLA_DOUBLE_COMPLEX:
91 {
95
97 &ilo,
98 &ihi,
99 buff_A, &cs_A,
100 buff_t,
101 buff_work,
102 &info );
103
104 break;
105 }
106
107 }
108
110#else
111 FLA_Check_error_code( FLA_EXTERNAL_LAPACK_NOT_IMPLEMENTED );
112#endif
113
114 return info;
115}
FLA_Error FLA_Hess_check(FLA_Obj A, FLA_Obj t, int ilo, int ihi)
Definition FLA_Hess_check.c:13
int F77_zgehd2(int *n, int *ilo, int *ihi, dcomplex *a, int *lda, dcomplex *tau, dcomplex *work, int *info)
int F77_sgehd2(int *n, int *ilo, int *ihi, float *a, int *lda, float *tau, float *work, int *info)
int F77_cgehd2(int *n, int *ilo, int *ihi, scomplex *a, int *lda, scomplex *tau, scomplex *work, int *info)
int F77_dgehd2(int *n, int *ilo, int *ihi, double *a, int *lda, double *tau, double *work, int *info)
dim_t FLA_Obj_width(FLA_Obj obj)
Definition FLA_Query.c:123
FLA_Error FLA_Obj_create(FLA_Datatype datatype, dim_t m, dim_t n, dim_t rs, dim_t cs, FLA_Obj *obj)
Definition FLA_Obj.c:55
FLA_Bool FLA_Obj_has_zero_dim(FLA_Obj A)
Definition FLA_Query.c:400
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
FLA_Error FLA_Obj_free(FLA_Obj *obj)
Definition FLA_Obj.c:588
FLA_Datatype FLA_Obj_datatype(FLA_Obj obj)
Definition FLA_Query.c:13
int FLA_Datatype
Definition FLA_type_defs.h:49
Definition FLA_type_defs.h:159
Definition blis_type_defs.h:138
Definition blis_type_defs.h:133