37{
42 double* work = NULL;
44 double work_query;
47 return -1;
48 }
49#ifndef LAPACK_DISABLE_NAN_CHECK
51
53 return -4;
54 }
56 return -5;
57 }
60 return -6;
61 }
62 }
63 }
64#endif
65
67 &work_query, lwork, &iwork_query, liwork );
68 if( info != 0 ) {
69 goto exit_level_0;
70 }
71 liwork = iwork_query;
73
75 if( iwork == NULL ) {
77 goto exit_level_0;
78 }
80 if( work == NULL ) {
82 goto exit_level_1;
83 }
84
86 lwork, iwork, liwork );
87
89exit_level_1:
91exit_level_0:
94 }
95 return info;
96}
#define LAPACK_WORK_MEMORY_ERROR
lapack_int LAPACKE_dstedc_work(int matrix_layout, char compz, lapack_int n, double *d, double *e, double *z, lapack_int ldz, double *work, lapack_int lwork, lapack_int *iwork, lapack_int liwork)
int LAPACKE_get_nancheck(void)
#define LAPACKE_malloc(size)
lapack_logical LAPACKE_lsame(char ca, char cb)
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)