From 56f414403530996683468d9f43f346136c663c69 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 adceafe18..ce36a9670 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