38{
41 double* work = NULL;
42 double work_query;
45 return -1;
46 }
47#ifndef LAPACK_DISABLE_NAN_CHECK
49
51 return -5;
52 }
54 return -7;
55 }
57 return -9;
58 }
59 }
60#endif
61
62 info =
LAPACKE_dggglm_work( matrix_layout,
n, m, p, a, lda, b, ldb, d,
x,
y,
63 &work_query, lwork );
64 if( info != 0 ) {
65 goto exit_level_0;
66 }
68
70 if( work == NULL ) {
72 goto exit_level_0;
73 }
74
75 info =
LAPACKE_dggglm_work( matrix_layout,
n, m, p, a, lda, b, ldb, d,
x,
y,
76 work, lwork );
77
79exit_level_0:
82 }
83 return info;
84}
#define LAPACK_WORK_MEMORY_ERROR
lapack_int LAPACKE_dggglm_work(int matrix_layout, lapack_int n, lapack_int m, lapack_int p, double *a, lapack_int lda, double *b, lapack_int ldb, double *d, double *x, double *y, double *work, lapack_int lwork)
int LAPACKE_get_nancheck(void)
#define LAPACKE_malloc(size)
void LAPACKE_xerbla(const char *name, lapack_int info)
lapack_logical LAPACKE_d_nancheck(lapack_int n, const double *x, lapack_int incx)
lapack_logical LAPACKE_dge_nancheck(int matrix_layout, lapack_int m, lapack_int n, const double *a, lapack_int lda)