Skip to content

Commit 0ce2aa3

Browse files
authored
Fix data type of rwork array
1 parent 9d1ea75 commit 0ce2aa3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lapack-netlib/LAPACKE/src/lapacke_cgesvdq.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ lapack_int LAPACKE_cgesvdq( int matrix_layout, char joba, char jobp,
4747
lapack_complex_float* cwork = NULL;
4848
lapack_complex_float cwork_query;
4949
lapack_int lrwork = -1;
50-
double* rwork = NULL;
51-
double rwork_query;
50+
float* rwork = NULL;
51+
float rwork_query;
5252
lapack_int i;
5353
if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) {
5454
LAPACKE_xerbla( "LAPACKE_cgesvdq", -1 );
@@ -84,7 +84,7 @@ lapack_int LAPACKE_cgesvdq( int matrix_layout, char joba, char jobp,
8484
info = LAPACK_WORK_MEMORY_ERROR;
8585
goto exit_level_0;
8686
}
87-
rwork = (double*)LAPACKE_malloc( sizeof(double) * lrwork );
87+
rwork = (float*)LAPACKE_malloc( sizeof(float) * lrwork );
8888
if( rwork == NULL ) {
8989
info = LAPACK_WORK_MEMORY_ERROR;
9090
goto exit_level_0;

0 commit comments

Comments
 (0)