16 #ifdef FLA_ENABLE_EXTERNAL_LAPACK_INTERFACES
45 min_m_n = min( m_A, n_A );
61 for (
i = 0;
i < 2; ++
i )
67 if ( datatype == FLA_FLOAT || datatype == FLA_COMPLEX )
68 lwork = ( int ) *FLA_FLOAT_PTR( work );
69 else if ( datatype == FLA_DOUBLE || datatype == FLA_DOUBLE_COMPLEX )
70 lwork = ( int ) *FLA_DOUBLE_PTR( work );
80 float* buff_A = (
float* ) FLA_FLOAT_PTR( A );
81 float* buff_s = (
float* ) FLA_FLOAT_PTR( s );
82 float* buff_U = (
float* ) FLA_FLOAT_PTR( U );
83 float* buff_V = (
float* ) FLA_FLOAT_PTR( V );
84 float* buff_work = (
float* ) FLA_FLOAT_PTR( work );
102 double* buff_A = (
double* ) FLA_DOUBLE_PTR( A );
103 double* buff_s = (
double* ) FLA_DOUBLE_PTR( s );
104 double* buff_U = (
double* ) FLA_DOUBLE_PTR( U );
105 double* buff_V = (
double* ) FLA_DOUBLE_PTR( V );
106 double* buff_work = (
double* ) FLA_DOUBLE_PTR( work );
125 float* buff_s = (
float* ) FLA_FLOAT_PTR( s );
129 float* buff_rwork = (
float* ) FLA_FLOAT_PTR( rwork );
146 case FLA_DOUBLE_COMPLEX:
149 double* buff_s = (
double* ) FLA_DOUBLE_PTR( s );
153 double* buff_rwork = (
double* ) FLA_DOUBLE_PTR( rwork );
177 FLA_Check_error_code( FLA_EXTERNAL_LAPACK_NOT_IMPLEMENTED );
FLA_Error FLA_Svd_check(FLA_Svd_type jobu, FLA_Svd_type jobv, FLA_Obj A, FLA_Obj s, FLA_Obj U, FLA_Obj V)
Definition: FLA_Svd_check.c:13
int F77_cgesvd(char *jobu, char *jobv, int *m, int *n, scomplex *a, int *lda, float *s, scomplex *u, int *ldu, scomplex *vt, int *ldvt, scomplex *work, int *lwork, float *rwork, int *info)
int F77_zgesvd(char *jobu, char *jobv, int *m, int *n, dcomplex *a, int *lda, double *s, dcomplex *u, int *ldu, dcomplex *vt, int *ldvt, dcomplex *work, int *lwork, double *rwork, int *info)
int F77_sgesvd(char *jobu, char *jobv, int *m, int *n, float *a, int *lda, float *s, float *u, int *ldu, float *vt, int *ldvt, float *work, int *lwork, int *info)
int F77_dgesvd(char *jobu, char *jobv, int *m, int *n, double *a, int *lda, double *s, double *u, int *ldu, double *vt, int *ldvt, double *work, int *lwork, 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
FLA_Datatype FLA_Obj_datatype_proj_to_real(FLA_Obj A)
Definition: FLA_Query.c:23
dim_t FLA_Obj_length(FLA_Obj obj)
Definition: FLA_Query.c:116
FLA_Bool FLA_Obj_is_complex(FLA_Obj A)
Definition: FLA_Query.c:324
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
void FLA_Param_map_flame_to_netlib_svd_type(FLA_Svd_type svd_type, void *lapack_svd_type)
Definition: FLA_Param.c:171
FLA_Datatype FLA_Obj_datatype(FLA_Obj obj)
Definition: FLA_Query.c:13
int FLA_Datatype
Definition: FLA_type_defs.h:49
int i
Definition: bl1_axmyv2.c:145
Definition: FLA_type_defs.h:159
Definition: blis_type_defs.h:138
Definition: blis_type_defs.h:133