fix #20: SVD::solve() now resize the result

This commit is contained in:
Gael Guennebaud 2009-07-04 09:28:11 +02:00
parent 7b750182f2
commit d457ec5810

View File

@ -554,6 +554,8 @@ bool SVD<MatrixType>::solve(const MatrixBase<OtherDerived> &b, ResultType* resul
const int rows = m_matU.rows();
ei_assert(b.rows() == rows);
result->resize(m_matV.rows(), b.cols());
Scalar maxVal = m_sigma.cwise().abs().maxCoeff();
for (int j=0; j<b.cols(); ++j)
{