40{
46 double* work = NULL;
47 double work_query;
49 double* rwork = NULL;
50 double rwork_query;
53 return -1;
54 }
55#ifndef LAPACK_DISABLE_NAN_CHECK
57
59 return -6;
60 }
61 }
62#endif
63
65 m, n, a, lda, s, u, ldu, v, ldv, numrank,
66 &iwork_query, liwork, &work_query, lwork,
67 &rwork_query, lrwork );
68 if( info != 0 ) {
69 goto exit_level_0;
70 }
71 liwork = iwork_query;
74
76 if( iwork == NULL ) {
78 goto exit_level_0;
79 }
81 if( work == NULL ) {
83 goto exit_level_0;
84 }
86 if( rwork == NULL ) {
88 goto exit_level_0;
89 }
90
92 m, n, a, lda, s, u, ldu, v, ldv, numrank,
93 iwork, liwork, work, lwork, rwork, lrwork );
94
95
99exit_level_0:
102 }
103 return info;
104}
#define LAPACK_WORK_MEMORY_ERROR
lapack_int LAPACKE_dgesvdq_work(int matrix_layout, char joba, char jobp, char jobr, char jobu, char jobv, lapack_int m, lapack_int n, double *a, lapack_int lda, double *s, double *u, lapack_int ldu, double *v, lapack_int ldv, lapack_int *numrank, lapack_int *iwork, lapack_int liwork, double *work, lapack_int lwork, double *rwork, lapack_int lrwork)
int LAPACKE_get_nancheck(void)
#define LAPACKE_malloc(size)
void LAPACKE_xerbla(const char *name, lapack_int info)
lapack_logical LAPACKE_dge_nancheck(int matrix_layout, lapack_int m, lapack_int n, const double *a, lapack_int lda)