mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Avoid including <sstream> with EIGEN_NO_IO
(cherry picked from commit b7668c0371)
This commit is contained in:
committed by
Antonio Sanchez
parent
6aaa45db5f
commit
a5469a6f0f
@@ -752,10 +752,13 @@ void SparseLU<MatrixType, OrderingType>::factorize(const MatrixType& matrix)
|
||||
info = Base::pivotL(jj, m_diagpivotthresh, m_perm_r.indices(), iperm_c.indices(), pivrow, m_glu);
|
||||
if ( info )
|
||||
{
|
||||
m_lastError = "THE MATRIX IS STRUCTURALLY SINGULAR ... ZERO COLUMN AT ";
|
||||
m_lastError = "THE MATRIX IS STRUCTURALLY SINGULAR";
|
||||
#ifndef EIGEN_NO_IO
|
||||
std::ostringstream returnInfo;
|
||||
returnInfo << info;
|
||||
returnInfo << " ... ZERO COLUMN AT ";
|
||||
returnInfo << info;
|
||||
m_lastError += returnInfo.str();
|
||||
#endif
|
||||
m_info = NumericalIssue;
|
||||
m_factorizationIsOk = false;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user