Avoid including <sstream> with EIGEN_NO_IO

This commit is contained in:
Alexander Richardson
2022-07-29 18:02:51 +00:00
committed by Rasmus Munk Larsen
parent 7dd3dda3da
commit b7668c0371
6 changed files with 12 additions and 5 deletions

View File

@@ -353,6 +353,7 @@ class SparseVector
}
#endif
#ifndef EIGEN_NO_IO
friend std::ostream & operator << (std::ostream & s, const SparseVector& m)
{
for (Index i=0; i<m.nonZeros(); ++i)
@@ -360,6 +361,7 @@ class SparseVector
s << std::endl;
return s;
}
#endif
/** Destructor */
inline ~SparseVector() {}