aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2019-03-05 10:24:54 -0800
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2019-03-05 10:24:54 -0800
commit0318fc7f44a3440995494c835b859a1dabe0e4c8 (patch)
tree089f62e1e610b968c45cfa028a0f69498ff1e032
parentefb5080d313a38cd204942237689de0bda412732 (diff)
Remove EIGEN_MPL2_ONLY guards around code re-licensed from LGPL to MPL2 in https://bitbucket.org/eigen/eigen/commits/2ca1e732398ea2c506427e9031212d63e9253b96
-rw-r--r--Eigen/OrderingMethods3
-rw-r--r--Eigen/Sparse2
-rw-r--r--Eigen/SparseCholesky8
-rw-r--r--Eigen/src/IterativeLinearSolvers/IncompleteLUT.h9
-rw-r--r--Eigen/src/OrderingMethods/Ordering.h4
5 files changed, 0 insertions, 26 deletions
diff --git a/Eigen/OrderingMethods b/Eigen/OrderingMethods
index d8ea36193..29691a62b 100644
--- a/Eigen/OrderingMethods
+++ b/Eigen/OrderingMethods
@@ -63,10 +63,7 @@
* \endcode
*/
-#ifndef EIGEN_MPL2_ONLY
#include "src/OrderingMethods/Amd.h"
-#endif
-
#include "src/OrderingMethods/Ordering.h"
#include "src/Core/util/ReenableStupidWarnings.h"
diff --git a/Eigen/Sparse b/Eigen/Sparse
index 136e681a1..a2ef7a665 100644
--- a/Eigen/Sparse
+++ b/Eigen/Sparse
@@ -25,9 +25,7 @@
#include "SparseCore"
#include "OrderingMethods"
-#ifndef EIGEN_MPL2_ONLY
#include "SparseCholesky"
-#endif
#include "SparseLU"
#include "SparseQR"
#include "IterativeLinearSolvers"
diff --git a/Eigen/SparseCholesky b/Eigen/SparseCholesky
index b6a320c40..d2b1f1276 100644
--- a/Eigen/SparseCholesky
+++ b/Eigen/SparseCholesky
@@ -30,16 +30,8 @@
* \endcode
*/
-#ifdef EIGEN_MPL2_ONLY
-#error The SparseCholesky module has nothing to offer in MPL2 only mode
-#endif
-
#include "src/SparseCholesky/SimplicialCholesky.h"
-
-#ifndef EIGEN_MPL2_ONLY
#include "src/SparseCholesky/SimplicialCholesky_impl.h"
-#endif
-
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_SPARSECHOLESKY_MODULE_H
diff --git a/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h b/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h
index 43bd8e8f6..09436cb67 100644
--- a/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h
+++ b/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h
@@ -225,7 +225,6 @@ void IncompleteLUT<Scalar,StorageIndex>::analyzePattern(const _MatrixType& amat)
// Compute the Fill-reducing permutation
// Since ILUT does not perform any numerical pivoting,
// it is highly preferable to keep the diagonal through symmetric permutations.
-#ifndef EIGEN_MPL2_ONLY
// To this end, let's symmetrize the pattern and perform AMD on it.
SparseMatrix<Scalar,ColMajor, StorageIndex> mat1 = amat;
SparseMatrix<Scalar,ColMajor, StorageIndex> mat2 = amat.transpose();
@@ -235,14 +234,6 @@ void IncompleteLUT<Scalar,StorageIndex>::analyzePattern(const _MatrixType& amat)
AMDOrdering<StorageIndex> ordering;
ordering(AtA,m_P);
m_Pinv = m_P.inverse(); // cache the inverse permutation
-#else
- // If AMD is not available, (MPL2-only), then let's use the slower COLAMD routine.
- SparseMatrix<Scalar,ColMajor, StorageIndex> mat1 = amat;
- COLAMDOrdering<StorageIndex> ordering;
- ordering(mat1,m_Pinv);
- m_P = m_Pinv.inverse();
-#endif
-
m_analysisIsOk = true;
m_factorizationIsOk = false;
m_isInitialized = true;
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 34dbef487..8791158be 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -38,8 +38,6 @@ void ordering_helper_at_plus_a(const MatrixType& A, MatrixType& symmat)
}
-#ifndef EIGEN_MPL2_ONLY
-
/** \ingroup OrderingMethods_Module
* \class AMDOrdering
*
@@ -81,8 +79,6 @@ class AMDOrdering
}
};
-#endif // EIGEN_MPL2_ONLY
-
/** \ingroup OrderingMethods_Module
* \class NaturalOrdering
*