aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Desire NUENTSA <desire.nuentsa_wakam@inria.fr>2013-03-11 19:21:18 +0100
committerGravatar Desire NUENTSA <desire.nuentsa_wakam@inria.fr>2013-03-11 19:21:18 +0100
commit6c68f1d7876e5e709bebf5441fbb9606efea4640 (patch)
treec1a6275220f6f81d36b5972ead962f37441d7e8c
parent79f93247c5258c1dc1ddba326232a55e04cefe68 (diff)
bug #563 : Sparse block assignments should be called on compressed matrices. Uncompressed matrices will be supported later
-rw-r--r--Eigen/src/SparseCore/SparseBlock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Eigen/src/SparseCore/SparseBlock.h b/Eigen/src/SparseCore/SparseBlock.h
index f50fb66ea..36c281210 100644
--- a/Eigen/src/SparseCore/SparseBlock.h
+++ b/Eigen/src/SparseCore/SparseBlock.h
@@ -119,6 +119,7 @@ public:
template<typename OtherDerived>
inline BlockType& operator=(const SparseMatrixBase<OtherDerived>& other)
{
+ eigen_assert(m_matrix.isCompressed() && " THE MATRIX SHOULD BE IN COMPRESSED MODE. PLEASE CALL makeCompressed()");
typedef typename internal::remove_all<typename SparseMatrixType::Nested>::type _NestedMatrixType;
_NestedMatrixType& matrix = const_cast<_NestedMatrixType&>(m_matrix);;
// This assignement is slow if this vector set is not empty