From 3de96caeaad3eb892681cff2287087db2b57670a Mon Sep 17 00:00:00 2001 From: Rohit Santhanam Date: Sun, 17 Apr 2022 02:46:56 +0000 Subject: [PATCH] Fix HouseholderSequence.h --- Eigen/src/Householder/HouseholderSequence.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Eigen/src/Householder/HouseholderSequence.h b/Eigen/src/Householder/HouseholderSequence.h index dee7ae70b..41fef641d 100644 --- a/Eigen/src/Householder/HouseholderSequence.h +++ b/Eigen/src/Householder/HouseholderSequence.h @@ -393,14 +393,14 @@ template class HouseholderS Index dstRows = rows()-m_shift-k; - if (inputIsIdentity) + if (inputIsIdentity) { Block sub_dst = dst.bottomRightCorner(dstRows, dstRows); apply_block_householder_on_the_left(sub_dst, sub_vecs, m_coeffs.segment(k, bs), !m_reverse); - } + } else { - Block sub_dst = dst.bottomRows(dstRows); + auto sub_dst = dst.bottomRows(dstRows); apply_block_householder_on_the_left(sub_dst, sub_vecs, m_coeffs.segment(k, bs), !m_reverse); } } @@ -413,14 +413,14 @@ template class HouseholderS Index actual_k = m_reverse ? k : m_length-k-1; Index dstRows = rows()-m_shift-actual_k; - if (inputIsIdentity) + if (inputIsIdentity) { Block sub_dst = dst.bottomRightCorner(dstRows, dstRows); sub_dst.applyHouseholderOnTheLeft(essentialVector(actual_k), m_coeffs.coeff(actual_k), workspace.data()); - } + } else { - Block sub_dst = dst.bottomRows(dstRows); + auto sub_dst = dst.bottomRows(dstRows); sub_dst.applyHouseholderOnTheLeft(essentialVector(actual_k), m_coeffs.coeff(actual_k), workspace.data()); } }