mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 11:19:02 +08:00
avoid move assignment in ColPivHouseholderQR
This commit is contained in:
parent
68082b8226
commit
4aca06f63a
@ -76,12 +76,12 @@ template<typename MatrixType_, typename PermutationIndex_> class ColPivHousehold
|
|||||||
private:
|
private:
|
||||||
void init(Index rows, Index cols) {
|
void init(Index rows, Index cols) {
|
||||||
Index diag = numext::mini(rows, cols);
|
Index diag = numext::mini(rows, cols);
|
||||||
m_hCoeffs = HCoeffsType(diag);
|
m_hCoeffs.resize(diag);
|
||||||
m_colsPermutation = PermutationType(cols);
|
m_colsPermutation.resize(cols);
|
||||||
m_colsTranspositions = IntRowVectorType(cols);
|
m_colsTranspositions.resize(cols);
|
||||||
m_temp = RealRowVectorType(cols);
|
m_temp.resize(cols);
|
||||||
m_colNormsUpdated = RealRowVectorType(cols);
|
m_colNormsUpdated.resize(cols);
|
||||||
m_colNormsDirect = RealRowVectorType(cols);
|
m_colNormsDirect.resize(cols);
|
||||||
m_isInitialized = false;
|
m_isInitialized = false;
|
||||||
m_usePrescribedThreshold = false;
|
m_usePrescribedThreshold = false;
|
||||||
}
|
}
|
||||||
|
@ -101,8 +101,8 @@ namespace Eigen {
|
|||||||
bool& usePrescribedThreshold, bool& isInitialized) {
|
bool& usePrescribedThreshold, bool& isInitialized) {
|
||||||
|
|
||||||
Index diag = numext::mini(rows, cols);
|
Index diag = numext::mini(rows, cols);
|
||||||
hCoeffs = HCoeffsType(diag);
|
hCoeffs.resize(diag);
|
||||||
colsPermutation = PermutationType(cols);
|
colsPermutation.resize(cols);
|
||||||
usePrescribedThreshold = false;
|
usePrescribedThreshold = false;
|
||||||
isInitialized = false;
|
isInitialized = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user