14{
15 int info = 0;
16#ifdef FLA_ENABLE_EXTERNAL_LAPACK_INTERFACES
18 int m_A, n_A, cs_A;
20
23
25
27
31
33
34 switch( datatype ){
35
36 case FLA_FLOAT:
37 {
38 float *buff_A = ( float * ) FLA_FLOAT_PTR( A );
39 float *buff_t = ( float * ) FLA_FLOAT_PTR( t );
40 float *buff_work = ( float * ) FLA_FLOAT_PTR( work_obj );
41
43 &n_A,
44 buff_A, &cs_A,
45 buff_t,
46 buff_work,
47 &info );
48
49 break;
50 }
51
52 case FLA_DOUBLE:
53 {
54 double *buff_A = ( double * ) FLA_DOUBLE_PTR( A );
55 double *buff_t = ( double * ) FLA_DOUBLE_PTR( t );
56 double *buff_work = ( double * ) FLA_DOUBLE_PTR( work_obj );
57
59 &n_A,
60 buff_A, &cs_A,
61 buff_t,
62 buff_work,
63 &info );
64
65 break;
66 }
67
68 case FLA_COMPLEX:
69 {
73
75 &n_A,
76 buff_A, &cs_A,
77 buff_t,
78 buff_work,
79 &info );
80
81 break;
82 }
83
84 case FLA_DOUBLE_COMPLEX:
85 {
89
91 &n_A,
92 buff_A, &cs_A,
93 buff_t,
94 buff_work,
95 &info );
96
97 break;
98 }
99
100 }
101
103#else
104 FLA_Check_error_code( FLA_EXTERNAL_LAPACK_NOT_IMPLEMENTED );
105#endif
106
107 return info;
108}
FLA_Error FLA_LQ_check(FLA_Obj A, FLA_Obj t)
Definition FLA_LQ_check.c:13
int F77_sgelq2(int *m, int *n, float *a, int *lda, float *tau, float *work, int *info)
int F77_zgelq2(int *m, int *n, dcomplex *a, int *lda, dcomplex *tau, dcomplex *work, int *info)
int F77_dgelq2(int *m, int *n, double *a, int *lda, double *tau, double *work, int *info)
int F77_cgelq2(int *m, int *n, scomplex *a, int *lda, scomplex *tau, scomplex *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_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
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