diff options
author | 2013-01-29 16:21:24 +0100 | |
---|---|---|
committer | 2013-01-29 16:21:24 +0100 | |
commit | 8bc00925e511e55a6a9518b63b39994392625099 (patch) | |
tree | fad727c99641b71b2e42fd938757d73a1166a15a /Eigen/src/SparseLU/SparseLU_relax_snode.h | |
parent | 57e50789f30544daba1b8e554025af1c5352eee1 (diff) |
Change int to Index type for SparseLU
Diffstat (limited to 'Eigen/src/SparseLU/SparseLU_relax_snode.h')
-rw-r--r-- | Eigen/src/SparseLU/SparseLU_relax_snode.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/SparseLU/SparseLU_relax_snode.h b/Eigen/src/SparseLU/SparseLU_relax_snode.h index f73afdf3d..58ec32e27 100644 --- a/Eigen/src/SparseLU/SparseLU_relax_snode.h +++ b/Eigen/src/SparseLU/SparseLU_relax_snode.h @@ -44,11 +44,11 @@ namespace internal { * \param relax_end last column in a supernode */ template <typename Scalar, typename Index> -void SparseLUImpl<Scalar,Index>::relax_snode (const int n, IndexVector& et, const int relax_columns, IndexVector& descendants, IndexVector& relax_end) +void SparseLUImpl<Scalar,Index>::relax_snode (const Index n, IndexVector& et, const Index relax_columns, IndexVector& descendants, IndexVector& relax_end) { // compute the number of descendants of each node in the etree - int j, parent; + Index j, parent; relax_end.setConstant(emptyIdxLU); descendants.setZero(); for (j = 0; j < n; j++) @@ -58,7 +58,7 @@ void SparseLUImpl<Scalar,Index>::relax_snode (const int n, IndexVector& et, cons descendants(parent) += descendants(j) + 1; } // Identify the relaxed supernodes by postorder traversal of the etree - int snode_start; // beginning of a snode + Index snode_start; // beginning of a snode for (j = 0; j < n; ) { parent = et(j); |