avoid move assignment in ColPivHouseholderQR

This commit is contained in:
Charles Schlosser 2023-01-15 01:34:10 +00:00 committed by Rasmus Munk Larsen
parent 68082b8226
commit 4aca06f63a
2 changed files with 8 additions and 8 deletions

View File

@ -76,12 +76,12 @@ template<typename MatrixType_, typename PermutationIndex_> class ColPivHousehold
private:
void init(Index rows, Index cols) {
Index diag = numext::mini(rows, cols);
m_hCoeffs = HCoeffsType(diag);
m_colsPermutation = PermutationType(cols);
m_colsTranspositions = IntRowVectorType(cols);
m_temp = RealRowVectorType(cols);
m_colNormsUpdated = RealRowVectorType(cols);
m_colNormsDirect = RealRowVectorType(cols);
m_hCoeffs.resize(diag);
m_colsPermutation.resize(cols);
m_colsTranspositions.resize(cols);
m_temp.resize(cols);
m_colNormsUpdated.resize(cols);
m_colNormsDirect.resize(cols);
m_isInitialized = false;
m_usePrescribedThreshold = false;
}

View File

@ -101,8 +101,8 @@ namespace Eigen {
bool& usePrescribedThreshold, bool& isInitialized) {
Index diag = numext::mini(rows, cols);
hCoeffs = HCoeffsType(diag);
colsPermutation = PermutationType(cols);
hCoeffs.resize(diag);
colsPermutation.resize(cols);
usePrescribedThreshold = false;
isInitialized = false;
}