aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/UmfPackSupport/UmfPackSupport.h
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2018-09-12 14:41:38 +0200
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2018-09-12 14:41:38 +0200
commit3adece4827c1a11a6e2c4ba95e6fddc682a145d2 (patch)
tree420cc883d59052af58814cd80c1d5d33387f7639 /Eigen/src/UmfPackSupport/UmfPackSupport.h
parent7e9c9fbb2d9b7e3d3467367913be078e0aaa322a (diff)
Fix misleading indentation of errorCode and make it loop-local
Diffstat (limited to 'Eigen/src/UmfPackSupport/UmfPackSupport.h')
-rw-r--r--Eigen/src/UmfPackSupport/UmfPackSupport.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Eigen/src/UmfPackSupport/UmfPackSupport.h b/Eigen/src/UmfPackSupport/UmfPackSupport.h
index ba10a9318..e3a333f80 100644
--- a/Eigen/src/UmfPackSupport/UmfPackSupport.h
+++ b/Eigen/src/UmfPackSupport/UmfPackSupport.h
@@ -613,7 +613,6 @@ bool UmfPackLU<MatrixType>::_solve_impl(const MatrixBase<BDerived> &b, MatrixBas
eigen_assert((XDerived::Flags&RowMajorBit)==0 && "UmfPackLU backend does not support non col-major result yet");
eigen_assert(b.derived().data() != x.derived().data() && " Umfpack does not support inplace solve");
- StorageIndex errorCode;
Scalar* x_ptr = 0;
Matrix<Scalar,Dynamic,1> x_tmp;
if(x.innerStride()!=1)
@@ -625,7 +624,7 @@ bool UmfPackLU<MatrixType>::_solve_impl(const MatrixBase<BDerived> &b, MatrixBas
{
if(x.innerStride()==1)
x_ptr = &x.col(j).coeffRef(0);
- errorCode = umfpack_solve(UMFPACK_A,
+ StorageIndex errorCode = umfpack_solve(UMFPACK_A,
mp_matrix.outerIndexPtr(), mp_matrix.innerIndexPtr(), mp_matrix.valuePtr(),
x_ptr, &b.const_cast_derived().col(j).coeffRef(0),
m_numeric, m_control.data(), m_umfpackInfo.data());