aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/SparseQR/SparseQR.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-08-01 16:24:23 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-08-01 16:24:23 +0200
commit107bb308c376a5a4b7f11f2792396d2fa0d12904 (patch)
tree740774ba970ef80ea9a0e4dc877faedc1fad244a /Eigen/src/SparseQR/SparseQR.h
parentc2ff44cbf3c58045a38120d28316a992c0cc0d57 (diff)
Fix various small issues detected by gcc
Diffstat (limited to 'Eigen/src/SparseQR/SparseQR.h')
-rw-r--r--Eigen/src/SparseQR/SparseQR.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/SparseQR/SparseQR.h b/Eigen/src/SparseQR/SparseQR.h
index 4c6553bf2..e8d7b8607 100644
--- a/Eigen/src/SparseQR/SparseQR.h
+++ b/Eigen/src/SparseQR/SparseQR.h
@@ -178,7 +178,7 @@ class SparseQR
y.resize((std::max)(cols(),Index(y.rows())),y.cols());
y.topRows(rank) = this->matrixR().topLeftCorner(rank, rank).template triangularView<Upper>().solve(b.topRows(rank));
y.bottomRows(y.rows()-rank).setZero();
-
+
// Apply the column permutation
if (m_perm_c.size()) dest = colsPermutation() * y.topRows(cols());
else dest = y.topRows(cols());
@@ -447,7 +447,7 @@ void SparseQR<MatrixType,OrderingType>::factorize(const MatrixType& mat)
}
} // End update current column
- Scalar tau;
+ Scalar tau = 0;
RealScalar beta = 0;
if(nonzeroCol < diagSize)