aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/SparseLU/SparseLU_Utils.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-01-12 11:55:16 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-01-12 11:55:16 +0100
commit38fa432e075c31b0dff17ed98dd27cad01046ea8 (patch)
treefb504db5d98fab45ab6f2ba6fc9d3c8a04b7f590 /Eigen/src/SparseLU/SparseLU_Utils.h
parent50625834e64616d798e8a28a66f0eef638dc2801 (diff)
Clean inclusion, namespace definition, and documentation of SparseLU
Diffstat (limited to 'Eigen/src/SparseLU/SparseLU_Utils.h')
-rw-r--r--Eigen/src/SparseLU/SparseLU_Utils.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Eigen/src/SparseLU/SparseLU_Utils.h b/Eigen/src/SparseLU/SparseLU_Utils.h
index b13930dbb..e764823ae 100644
--- a/Eigen/src/SparseLU/SparseLU_Utils.h
+++ b/Eigen/src/SparseLU/SparseLU_Utils.h
@@ -11,6 +11,7 @@
#ifndef EIGEN_SPARSELU_UTILS_H
#define EIGEN_SPARSELU_UTILS_H
+namespace Eigen {
/**
* \brief Count Nonzero elements in the factors
@@ -37,8 +38,8 @@ void SparseLUBase<Scalar,Index>::LU_countnz(const int n, int& nnzL, int& nnzU, G
jlen--;
}
}
-
}
+
/**
* \brief Fix up the data storage lsub for L-subscripts.
*
@@ -72,4 +73,6 @@ void SparseLUBase<Scalar,Index>::LU_fixupL(const int n, const IndexVector& perm_
glu.xlsub(n) = nextl;
}
-#endif
+} // end namespace Eigen
+
+#endif // EIGEN_SPARSELU_UTILS_H