mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix AMD ordering when a column has only one off-diagonal non-zero (also fix bug #1045)
This commit is contained in:
@@ -150,7 +150,7 @@ void minimum_degree_ordering(SparseMatrix<Scalar,ColMajor,StorageIndex>& C, Perm
|
||||
}
|
||||
|
||||
d = degree[i];
|
||||
if(d == 1) /* node i is empty */
|
||||
if(d == 1 && has_diag) /* node i is empty */
|
||||
{
|
||||
elen[i] = -2; /* element i is dead */
|
||||
nel++;
|
||||
|
||||
Reference in New Issue
Block a user