summaryrefslogtreecommitdiff
path: root/LAPACKE
diff options
context:
space:
mode:
authoreugene.chereshnev <eugenechereshnev@gmail.com>2017-01-31 18:42:25 -0800
committereugene.chereshnev <eugenechereshnev@gmail.com>2017-02-03 18:47:01 -0800
commit4c12b6377c9432f4e6626e50e57319d96c574e53 (patch)
tree7dd05280e88967f0b1c7c986cf9ff2e15a9dc5b3 /LAPACKE
parent9da5c0b890bfa58da8dffec251fcd5361e0f73ab (diff)
downloadlapack-4c12b6377c9432f4e6626e50e57319d96c574e53.tar.gz
lapack-4c12b6377c9432f4e6626e50e57319d96c574e53.tar.bz2
lapack-4c12b6377c9432f4e6626e50e57319d96c574e53.zip
lapacke_*ormlq_work: move declarations under if
Diffstat (limited to 'LAPACKE')
-rw-r--r--LAPACKE/src/lapacke_cunmlq_work.c9
-rw-r--r--LAPACKE/src/lapacke_dormlq_work.c8
-rw-r--r--LAPACKE/src/lapacke_sormlq_work.c8
-rw-r--r--LAPACKE/src/lapacke_zunmlq_work.c9
4 files changed, 16 insertions, 18 deletions
diff --git a/LAPACKE/src/lapacke_cunmlq_work.c b/LAPACKE/src/lapacke_cunmlq_work.c
index b0bac9d4..a7cc3ede 100644
--- a/LAPACKE/src/lapacke_cunmlq_work.c
+++ b/LAPACKE/src/lapacke_cunmlq_work.c
@@ -42,9 +42,6 @@ lapack_int LAPACKE_cunmlq_work( int matrix_layout, char side, char trans,
{
lapack_int info = 0;
lapack_int r;
- lapack_int lda_t, ldc_t;
- lapack_complex_float* a_t = NULL;
- lapack_complex_float* c_t = NULL;
if( matrix_layout == LAPACK_COL_MAJOR ) {
/* Call LAPACK function and adjust info */
LAPACK_cunmlq( &side, &trans, &m, &n, &k, a, &lda, tau, c, &ldc, work,
@@ -54,8 +51,10 @@ lapack_int LAPACKE_cunmlq_work( int matrix_layout, char side, char trans,
}
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
r = LAPACKE_lsame( side, 'l' ) ? m : n;
- lda_t = MAX(1,k);
- ldc_t = MAX(1,m);
+ lapack_int lda_t = MAX(1,k);
+ lapack_int ldc_t = MAX(1,m);
+ lapack_complex_float* a_t = NULL;
+ lapack_complex_float* c_t = NULL;
/* Check leading dimension(s) */
if( lda < r ) {
info = -8;
diff --git a/LAPACKE/src/lapacke_dormlq_work.c b/LAPACKE/src/lapacke_dormlq_work.c
index 599a8032..7f11cabe 100644
--- a/LAPACKE/src/lapacke_dormlq_work.c
+++ b/LAPACKE/src/lapacke_dormlq_work.c
@@ -41,8 +41,6 @@ lapack_int LAPACKE_dormlq_work( int matrix_layout, char side, char trans,
{
lapack_int info = 0;
lapack_int r;
- lapack_int lda_t, ldc_t;
- double *a_t = NULL, *c_t = NULL;
if( matrix_layout == LAPACK_COL_MAJOR ) {
/* Call LAPACK function and adjust info */
LAPACK_dormlq( &side, &trans, &m, &n, &k, a, &lda, tau, c, &ldc, work,
@@ -52,8 +50,10 @@ lapack_int LAPACKE_dormlq_work( int matrix_layout, char side, char trans,
}
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
r = LAPACKE_lsame( side, 'l' ) ? m : n;
- lda_t = MAX(1,k);
- ldc_t = MAX(1,m);
+ lapack_int lda_t = MAX(1,k);
+ lapack_int ldc_t = MAX(1,m);
+ double *a_t = NULL;
+ double *c_t = NULL;
/* Check leading dimension(s) */
if( lda < r ) {
info = -8;
diff --git a/LAPACKE/src/lapacke_sormlq_work.c b/LAPACKE/src/lapacke_sormlq_work.c
index fb143359..4e488e2a 100644
--- a/LAPACKE/src/lapacke_sormlq_work.c
+++ b/LAPACKE/src/lapacke_sormlq_work.c
@@ -41,8 +41,6 @@ lapack_int LAPACKE_sormlq_work( int matrix_layout, char side, char trans,
{
lapack_int info = 0;
lapack_int r;
- lapack_int lda_t, ldc_t;
- float *a_t = NULL, *c_t = NULL;
if( matrix_layout == LAPACK_COL_MAJOR ) {
/* Call LAPACK function and adjust info */
LAPACK_sormlq( &side, &trans, &m, &n, &k, a, &lda, tau, c, &ldc, work,
@@ -52,8 +50,10 @@ lapack_int LAPACKE_sormlq_work( int matrix_layout, char side, char trans,
}
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
r = LAPACKE_lsame( side, 'l' ) ? m : n;
- lda_t = MAX(1,k);
- ldc_t = MAX(1,m);
+ lapack_int lda_t = MAX(1,k);
+ lapack_int ldc_t = MAX(1,m);
+ float *a_t = NULL;
+ float *c_t = NULL;
/* Check leading dimension(s) */
if( lda < r ) {
info = -8;
diff --git a/LAPACKE/src/lapacke_zunmlq_work.c b/LAPACKE/src/lapacke_zunmlq_work.c
index 95a99705..f51fbc84 100644
--- a/LAPACKE/src/lapacke_zunmlq_work.c
+++ b/LAPACKE/src/lapacke_zunmlq_work.c
@@ -42,9 +42,6 @@ lapack_int LAPACKE_zunmlq_work( int matrix_layout, char side, char trans,
{
lapack_int info = 0;
lapack_int r;
- lapack_int lda_t, ldc_t;
- lapack_complex_double* a_t = NULL;
- lapack_complex_double* c_t = NULL;
if( matrix_layout == LAPACK_COL_MAJOR ) {
/* Call LAPACK function and adjust info */
LAPACK_zunmlq( &side, &trans, &m, &n, &k, a, &lda, tau, c, &ldc, work,
@@ -54,8 +51,10 @@ lapack_int LAPACKE_zunmlq_work( int matrix_layout, char side, char trans,
}
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
r = LAPACKE_lsame( side, 'l' ) ? m : n;
- lda_t = MAX(1,k);
- ldc_t = MAX(1,m);
+ lapack_int lda_t = MAX(1,k);
+ lapack_int ldc_t = MAX(1,m);
+ lapack_complex_double* a_t = NULL;
+ lapack_complex_double* c_t = NULL;
/* Check leading dimension(s) */
if( lda < r ) {
info = -8;