aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--unsupported/Eigen/src/SparseExtra/MarketIO.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h
index 1618b09a8..833edd4df 100644
--- a/unsupported/Eigen/src/SparseExtra/MarketIO.h
+++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h
@@ -163,7 +163,7 @@ bool loadMarket(SparseMatrixType& mat, const std::string& filename)
{
std::stringstream line(buffer);
line >> M >> N >> NNZ;
- if(M > 0 && N > 0 && NNZ > 0)
+ if(M > 0 && N > 0)
{
readsizes = true;
mat.resize(M,N);