aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/SparseLU/SparseLU_Utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/SparseLU/SparseLU_Utils.h')
-rw-r--r--Eigen/src/SparseLU/SparseLU_Utils.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/Eigen/src/SparseLU/SparseLU_Utils.h b/Eigen/src/SparseLU/SparseLU_Utils.h
index 33cc9c7ac..15352ac33 100644
--- a/Eigen/src/SparseLU/SparseLU_Utils.h
+++ b/Eigen/src/SparseLU/SparseLU_Utils.h
@@ -18,13 +18,13 @@ namespace internal {
* \brief Count Nonzero elements in the factors
*/
template <typename Scalar, typename Index>
-void SparseLUImpl<Scalar,Index>::countnz(const int n, int& nnzL, int& nnzU, GlobalLU_t& glu)
+void SparseLUImpl<Scalar,Index>::countnz(const Index n, Index& nnzL, Index& nnzU, GlobalLU_t& glu)
{
nnzL = 0;
nnzU = (glu.xusub)(n);
- int nsuper = (glu.supno)(n);
- int jlen;
- int i, j, fsupc;
+ Index nsuper = (glu.supno)(n);
+ Index jlen;
+ Index i, j, fsupc;
if (n <= 0 ) return;
// For each supernode
for (i = 0; i <= nsuper; i++)
@@ -49,12 +49,12 @@ void SparseLUImpl<Scalar,Index>::countnz(const int n, int& nnzL, int& nnzU, Glob
*
*/
template <typename Scalar, typename Index>
-void SparseLUImpl<Scalar,Index>::fixupL(const int n, const IndexVector& perm_r, GlobalLU_t& glu)
+void SparseLUImpl<Scalar,Index>::fixupL(const Index n, const IndexVector& perm_r, GlobalLU_t& glu)
{
- int fsupc, i, j, k, jstart;
+ Index fsupc, i, j, k, jstart;
- int nextl = 0;
- int nsuper = (glu.supno)(n);
+ Index nextl = 0;
+ Index nsuper = (glu.supno)(n);
// For each supernode
for (i = 0; i <= nsuper; i++)