Merge pull request #2817 from martin-frbg/lapack436
LAPACKE: fix declaration of work arrays in [cz]gesvdq
This commit is contained in:
commit
c7ef7174e4
|
@ -2513,7 +2513,7 @@ void LAPACK_zgesvdq(
|
|||
lapack_complex_double* U, lapack_int const* ldu,
|
||||
lapack_complex_double* V, lapack_int const* ldv, lapack_int* numrank,
|
||||
lapack_int* iwork, lapack_int const* liwork,
|
||||
lapack_complex_float* cwork, lapack_int* lcwork,
|
||||
lapack_complex_double* cwork, lapack_int* lcwork,
|
||||
double* rwork, lapack_int const* lrwork,
|
||||
lapack_int* info );
|
||||
|
||||
|
|
|
@ -47,8 +47,8 @@ lapack_int LAPACKE_cgesvdq( int matrix_layout, char joba, char jobp,
|
|||
lapack_complex_float* cwork = NULL;
|
||||
lapack_complex_float cwork_query;
|
||||
lapack_int lrwork = -1;
|
||||
double* rwork = NULL;
|
||||
double rwork_query;
|
||||
float* rwork = NULL;
|
||||
float rwork_query;
|
||||
lapack_int i;
|
||||
if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) {
|
||||
LAPACKE_xerbla( "LAPACKE_cgesvdq", -1 );
|
||||
|
@ -84,7 +84,7 @@ lapack_int LAPACKE_cgesvdq( int matrix_layout, char joba, char jobp,
|
|||
info = LAPACK_WORK_MEMORY_ERROR;
|
||||
goto exit_level_0;
|
||||
}
|
||||
rwork = (double*)LAPACKE_malloc( sizeof(double) * lrwork );
|
||||
rwork = (float*)LAPACKE_malloc( sizeof(float) * lrwork );
|
||||
if( rwork == NULL ) {
|
||||
info = LAPACK_WORK_MEMORY_ERROR;
|
||||
goto exit_level_0;
|
||||
|
|
Loading…
Reference in New Issue