mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-08 17:59:00 +08:00
Metis ordering backend supports only squared matrices
This commit is contained in:
parent
ba653105a2
commit
962c99d462
@ -29,7 +29,7 @@ public:
|
|||||||
void get_symmetrized_graph(const MatrixType& A)
|
void get_symmetrized_graph(const MatrixType& A)
|
||||||
{
|
{
|
||||||
Index m = A.cols();
|
Index m = A.cols();
|
||||||
|
eigen_assert((A.rows() == A.cols()) && "ONLY FOR SQUARED MATRICES");
|
||||||
// Get the transpose of the input matrix
|
// Get the transpose of the input matrix
|
||||||
MatrixType At = A.transpose();
|
MatrixType At = A.transpose();
|
||||||
// Get the number of nonzeros elements in each row/col of At+A
|
// Get the number of nonzeros elements in each row/col of At+A
|
||||||
|
Loading…
x
Reference in New Issue
Block a user