mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
fix #20: SVD::solve() now resize the result
This commit is contained in:
parent
7b750182f2
commit
d457ec5810
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user