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:
Jitse Niesen 2010-05-25 12:40:42 +01:00
parent e7d809d434
commit e7dc772554
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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());
}