mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-11-27 06:30:28 +08:00
Respect MaxRowsAtCompileTime in HouseholderSequence::evalTo().
This fixes the failing test nomalloc_4. Also remove a print inserted for debugging in schur_real test.
This commit is contained in:
parent
e7d809d434
commit
e7dc772554
@ -156,7 +156,8 @@ template<typename VectorsType, typename CoeffsType, int Side> class HouseholderS
|
||||
{
|
||||
int vecs = m_actualVectors;
|
||||
dst.setIdentity(rows(), rows());
|
||||
Matrix<Scalar,1,DestType::RowsAtCompileTime> temp(rows());
|
||||
Matrix<Scalar, DestType::RowsAtCompileTime, 1,
|
||||
AutoAlign|ColMajor, DestType::MaxRowsAtCompileTime, 1> temp(rows());
|
||||
for(int k = vecs-1; k >= 0; --k)
|
||||
{
|
||||
int cornerSize = rows() - k - m_shift;
|
||||
|
@ -57,7 +57,6 @@ template<typename MatrixType> void schur(int size = MatrixType::ColsAtCompileTim
|
||||
RealSchur<MatrixType> schurOfA(A);
|
||||
MatrixType U = schurOfA.matrixU();
|
||||
MatrixType T = schurOfA.matrixT();
|
||||
std::cout << "T = \n" << T << "\n\n";
|
||||
verifyIsQuasiTriangular(T);
|
||||
VERIFY_IS_APPROX(A, U * T * U.transpose());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user