82 #ifndef LAPACK_DISABLE_NAN_CHECK
96 lwork =
MAX3( lwork, 7, 2*m+n );
101 if( !want_u && !want_v && !want_sce ) lwork =
MAX( lwork, 4*n+1 );
102 if( !want_u && !want_v && want_sce ) lwork =
MAX( lwork, n*n+4*n );
103 if( !want_u && want_v ) lwork =
MAX( lwork, 4*n+1 );
104 if( want_u && !want_v ) lwork =
MAX( lwork, 4*n+1 );
106 if( want_u &&
LAPACKE_lsame( jobv,
'j' ) ) lwork =
MAX3( lwork, 4*n+n*n, 2*n+n*n+6 );
115 jobp, m, n, a, lda, sva, u, ldu, v, ldv, work,
118 for( i=0; i<7; i++ ) {
121 for( i=0; i<3; i++ ) {
#define LAPACK_WORK_MEMORY_ERROR
lapack_logical LAPACKE_dge_nancheck(int matrix_layout, lapack_int m, lapack_int n, const double *a, lapack_int lda)
#define LAPACKE_malloc(size)
lapack_int LAPACKE_dgejsv(int matrix_layout, char joba, char jobu, char jobv, char jobr, char jobt, char jobp, lapack_int m, lapack_int n, double *a, lapack_int lda, double *sva, double *u, lapack_int ldu, double *v, lapack_int ldv, double *stat, lapack_int *istat)
lapack_logical LAPACKE_lsame(char ca, char cb)
void LAPACKE_xerbla(const char *name, lapack_int info)
lapack_int LAPACKE_dgejsv_work(int matrix_layout, char joba, char jobu, char jobv, char jobr, char jobt, char jobp, lapack_int m, lapack_int n, double *a, lapack_int lda, double *sva, double *u, lapack_int ldu, double *v, lapack_int ldv, double *work, lapack_int lwork, lapack_int *iwork)