aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Desire NUENTSA <desire.nuentsa_wakam@inria.fr>2013-02-20 13:56:51 +0100
committerGravatar Desire NUENTSA <desire.nuentsa_wakam@inria.fr>2013-02-20 13:56:51 +0100
commit962c99d462dc779b98d00f90616bbbbf6f7f9dd5 (patch)
tree5ebbd7c0535154c7f5e92afcc733e03553e2b284
parentba653105a2efdb107004bd0e3fcf1883384c57b3 (diff)
Metis ordering backend supports only squared matrices
-rw-r--r--Eigen/src/MetisSupport/MetisSupport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/MetisSupport/MetisSupport.h b/Eigen/src/MetisSupport/MetisSupport.h
index 3a723b384..818355e79 100644
--- a/Eigen/src/MetisSupport/MetisSupport.h
+++ b/Eigen/src/MetisSupport/MetisSupport.h
@@ -29,7 +29,7 @@ public:
void get_symmetrized_graph(const MatrixType& A)
{
Index m = A.cols();
-
+ eigen_assert((A.rows() == A.cols()) && "ONLY FOR SQUARED MATRICES");
// Get the transpose of the input matrix
MatrixType At = A.transpose();
// Get the number of nonzeros elements in each row/col of At+A