Skip to content

Commit

Permalink
add #define EIGEN_MPL2_ONLY everywhere, fix #3979
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Nov 9, 2023
1 parent 0557eae commit 38dff7f
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions ortools/linear_solver/python/model_builder_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <utility>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "absl/log/check.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/iteration_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <utility>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "absl/log/check.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/iteration_stats_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <optional>
#include <utility>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/primal_dual_hybrid_gradient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <utility>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "absl/algorithm/container.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/primal_dual_hybrid_gradient.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <functional>
#include <optional>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "ortools/lp_data/lp_data.h"
#include "ortools/pdlp/quadratic_program.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/primal_dual_hybrid_gradient_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <utility>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "absl/container/flat_hash_map.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/quadratic_program.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <tuple>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "absl/log/check.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/quadratic_program.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <utility>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "absl/status/status.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/quadratic_program_io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <utility>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "absl/base/casts.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/quadratic_program_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <utility>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "absl/status/status.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/sharded_optimization_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <utility>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "absl/log/check.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/sharded_optimization_utils_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <utility>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "gmock/gmock.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/sharded_quadratic_program.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <optional>
#include <utility>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "absl/log/check.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/sharded_quadratic_program_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <limits>
#include <optional>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/sharder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <functional>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "absl/log/check.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/sharder_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <random>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "absl/random/distributions.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/test_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <string>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "gmock/gmock.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/test_util_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <list>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "absl/log/check.h"
#include "absl/types/span.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/trust_region.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <utility>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "absl/log/check.h"
#include "ortools/base/logging.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/trust_region.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <limits>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "absl/algorithm/container.h"
#include "absl/log/check.h"
Expand Down
1 change: 1 addition & 0 deletions ortools/pdlp/trust_region_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <tuple>
#include <vector>

#define EIGEN_MPL2_ONLY
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "absl/strings/str_cat.h"
Expand Down

0 comments on commit 38dff7f

Please sign in to comment.