Resize is only defined in Matrix and not in MatrixBase.

I am not sure whether the better fix is to move the resize functions to MatrixBase.
This commit is contained in:
Hauke Heibel 2009-10-14 11:07:11 +02:00
parent 949582c809
commit f4661e696e

View File

@ -206,7 +206,7 @@ void HouseholderQR<MatrixType>::solve(
) const
{
ei_assert(m_isInitialized && "HouseholderQR is not initialized.");
result->resize(m_qr.cols(), b.cols());
result->derived().resize(m_qr.cols(), b.cols());
const int rows = m_qr.rows();
const int rank = std::min(m_qr.rows(), m_qr.cols());
ei_assert(b.rows() == rows);