diff options
author | Dmitriy Korchemkin <dmitriy.korchemkin@gmail.com> | 2018-04-18 13:52:46 +0300 |
---|---|---|
committer | Dmitriy Korchemkin <dmitriy.korchemkin@gmail.com> | 2018-04-18 13:52:46 +0300 |
commit | 02d2f1cb4ad6fdcc38d691c31a4b0de043e17654 (patch) | |
tree | 11c572b39bb3e833ba995bd8e00fca80ed617543 /Eigen | |
parent | 50633d1a83eb830803e63ae12596fad9f28db866 (diff) |
Cast zeros to Scalar in RealSchur
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Eigenvalues/RealSchur.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Eigenvalues/RealSchur.h b/Eigen/src/Eigenvalues/RealSchur.h index 9e71f3040..b72799e5b 100644 --- a/Eigen/src/Eigenvalues/RealSchur.h +++ b/Eigen/src/Eigenvalues/RealSchur.h @@ -303,7 +303,7 @@ RealSchur<MatrixType>& RealSchur<MatrixType>::computeFromHessenberg(const HessMa Scalar exshift(0); // sum of exceptional shifts Scalar norm = computeNormOfT(); - if(norm!=0) + if(norm!=Scalar(0)) { while (iu >= 0) { @@ -327,7 +327,7 @@ RealSchur<MatrixType>& RealSchur<MatrixType>::computeFromHessenberg(const HessMa else // No convergence yet { // The firstHouseholderVector vector has to be initialized to something to get rid of a silly GCC warning (-O1 -Wall -DNDEBUG ) - Vector3s firstHouseholderVector(0,0,0), shiftInfo; + Vector3s firstHouseholderVector = Vector3s::Zero(), shiftInfo; computeShift(iu, iter, exshift, shiftInfo); iter = iter + 1; totalIter = totalIter + 1; |