Metis ordering backend supports only squared matrices

This commit is contained in:
Desire NUENTSA 2013-02-20 13:56:51 +01:00
parent ba653105a2
commit 962c99d462

View File

@ -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