aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/MetisSupport/MetisSupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/MetisSupport/MetisSupport.h')
-rw-r--r--Eigen/src/MetisSupport/MetisSupport.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Eigen/src/MetisSupport/MetisSupport.h b/Eigen/src/MetisSupport/MetisSupport.h
index a762d96f6..3a723b384 100644
--- a/Eigen/src/MetisSupport/MetisSupport.h
+++ b/Eigen/src/MetisSupport/MetisSupport.h
@@ -122,10 +122,9 @@ public:
//NOTE: If Ap is the permuted matrix then perm and iperm vectors are defined as follows
// Row (column) i of Ap is the perm(i) row(column) of A, and row (column) i of A is the iperm(i) row(column) of Ap
- // To be consistent with the use of the permutation in SparseLU module, we thus keep the iperm vector
matperm.resize(m);
for (int j = 0; j < m; j++)
- matperm.indices()(j) = iperm(j);
+ matperm.indices()(iperm(j)) = j;
}