aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src')
-rw-r--r--Eigen/src/CMakeLists.txt2
-rw-r--r--Eigen/src/LU/LU.h3
-rw-r--r--Eigen/src/LeastSquares/CMakeLists.txt6
-rw-r--r--Eigen/src/LeastSquares/LeastSquares.h (renamed from Eigen/src/Regression/Regression.h)14
-rw-r--r--Eigen/src/Regression/CMakeLists.txt6
5 files changed, 15 insertions, 16 deletions
diff --git a/Eigen/src/CMakeLists.txt b/Eigen/src/CMakeLists.txt
index e1a0d60c5..b244809d6 100644
--- a/Eigen/src/CMakeLists.txt
+++ b/Eigen/src/CMakeLists.txt
@@ -5,6 +5,6 @@ ADD_SUBDIRECTORY(SVD)
ADD_SUBDIRECTORY(Cholesky)
ADD_SUBDIRECTORY(Array)
ADD_SUBDIRECTORY(Geometry)
-ADD_SUBDIRECTORY(Regression)
+ADD_SUBDIRECTORY(LeastSquares)
ADD_SUBDIRECTORY(Sparse)
ADD_SUBDIRECTORY(StdVector)
diff --git a/Eigen/src/LU/LU.h b/Eigen/src/LU/LU.h
index a48ee8d1a..ff4410b6a 100644
--- a/Eigen/src/LU/LU.h
+++ b/Eigen/src/LU/LU.h
@@ -429,8 +429,7 @@ void LU<MatrixType>::computeKernel(KernelMatrixType *result) const
.template marked<UpperTriangular>()
.solveTriangularInPlace(y);
- for(int i = 0; i < m_rank; ++i)
- result->row(m_q.coeff(i)) = y.row(i);
+ for(int i = 0; i < m_rank; ++i) result->row(m_q.coeff(i)) = y.row(i);
for(int i = m_rank; i < cols; ++i) result->row(m_q.coeff(i)).setZero();
for(int k = 0; k < dimker; ++k) result->coeffRef(m_q.coeff(m_rank+k), k) = Scalar(1);
}
diff --git a/Eigen/src/LeastSquares/CMakeLists.txt b/Eigen/src/LeastSquares/CMakeLists.txt
new file mode 100644
index 000000000..805d578bc
--- /dev/null
+++ b/Eigen/src/LeastSquares/CMakeLists.txt
@@ -0,0 +1,6 @@
+FILE(GLOB Eigen_LeastSquares_SRCS "*.h")
+
+INSTALL(FILES
+ ${Eigen_LeastSquares_SRCS}
+ DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/LeastSquares
+ )
diff --git a/Eigen/src/Regression/Regression.h b/Eigen/src/LeastSquares/LeastSquares.h
index 61d4cdccb..cd6ec3cf4 100644
--- a/Eigen/src/Regression/Regression.h
+++ b/Eigen/src/LeastSquares/LeastSquares.h
@@ -22,12 +22,12 @@
// License and a copy of the GNU General Public License along with
// Eigen. If not, see <http://www.gnu.org/licenses/>.
-#ifndef EIGEN_REGRESSION_H
-#define EIGEN_REGRESSION_H
+#ifndef EIGEN_LEASTSQUARES_H
+#define EIGEN_LEASTSQUARES_H
-/** \ingroup Regression_Module
+/** \ingroup LeastSquares_Module
*
- * \regression_module
+ * \leastsquares_module
*
* For a set of points, this function tries to express
* one of the coords as a linear (affine) function of the other coords.
@@ -128,9 +128,9 @@ void linearRegression(int numPoints,
ei_assert((m.adjoint()*m).lu().solve(v, result));
}
-/** \ingroup Regression_Module
+/** \ingroup LeastSquares_Module
*
- * \regression_module
+ * \leastsquares_module
*
* This function is quite similar to linearRegression(), so we refer to the
* documentation of this function and only list here the differences.
@@ -195,4 +195,4 @@ void fitHyperplane(int numPoints,
}
-#endif // EIGEN_REGRESSION_H
+#endif // EIGEN_LEASTSQUARES_H
diff --git a/Eigen/src/Regression/CMakeLists.txt b/Eigen/src/Regression/CMakeLists.txt
deleted file mode 100644
index c691f52ac..000000000
--- a/Eigen/src/Regression/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-FILE(GLOB Eigen_Regression_SRCS "*.h")
-
-INSTALL(FILES
- ${Eigen_Regression_SRCS}
- DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Regression
- )