Fix bug on [sd]lantr which don't report the result
authormfaverge <mfaverge@8a072113-8704-0410-8d35-dd094bca7971>
Wed, 25 Nov 2015 14:37:14 +0000 (14:37 +0000)
committermfaverge <mfaverge@8a072113-8704-0410-8d35-dd094bca7971>
Wed, 25 Nov 2015 14:37:14 +0000 (14:37 +0000)
LAPACKE/src/lapacke_dlantr_work.c
LAPACKE/src/lapacke_slantr_work.c

index 59eef38..7eb3709 100644 (file)
@@ -41,7 +41,7 @@ double LAPACKE_dlantr_work( int matrix_layout, char norm, char uplo,
        double res = 0.;
     if( matrix_layout == LAPACK_COL_MAJOR ) {
         /* Call LAPACK function and adjust info */
-        LAPACK_dlantr( &norm, &uplo, &diag, &m, &n, a, &lda, work );
+        res = LAPACK_dlantr( &norm, &uplo, &diag, &m, &n, a, &lda, work );
         if( info < 0 ) {
             info = info - 1;
         }
index 79c71a0..92a0e40 100644 (file)
@@ -41,7 +41,7 @@ float LAPACKE_slantr_work( int matrix_layout, char norm, char uplo,
     float res = 0.;
     if( matrix_layout == LAPACK_COL_MAJOR ) {
         /* Call LAPACK function and adjust info */
-        LAPACK_slantr( &norm, &uplo, &diag, &m, &n, a, &lda, work );
+        res = LAPACK_slantr( &norm, &uplo, &diag, &m, &n, a, &lda, work );
         if( info < 0 ) {
             info = info - 1;
         }