From b61facb08b1e6c49724f27e15d72b490c6c07d8f Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Wed, 16 Oct 2013 13:10:15 +0200 Subject: [PATCH] Use != instead of < to check for emptiness of iterator range (fixes bug #664) --- Eigen/src/SparseCore/SparseMatrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 4dad50562..f2e234eee 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -941,7 +941,7 @@ void set_from_triplets(const InputIterator& begin, const InputIterator& end, Spa typedef typename SparseMatrixType::Scalar Scalar; SparseMatrix trMat(mat.rows(),mat.cols()); - if(begin