mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
[wpimath] Use external Eigen headers only (#3564)
Internal headers are no longer allowed as of https://gitlab.com/libeigen/eigen/-/merge_requests/631. Based on benchmarking I conducted in that thread, there doesn't seem to be a performance penalty for including the full headers anymore.
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
#include <type_traits>
|
||||
|
||||
#include "Eigen/Core"
|
||||
#include "Eigen/Eigenvalues"
|
||||
#include "Eigen/QR"
|
||||
#include "Eigen/src/Eigenvalues/EigenSolver.h"
|
||||
#include "frc/geometry/Pose2d.h"
|
||||
|
||||
namespace frc {
|
||||
|
||||
@@ -6,18 +6,15 @@
|
||||
|
||||
#include <wpi/array.h>
|
||||
|
||||
#include "Eigen/Cholesky"
|
||||
#include "Eigen/Core"
|
||||
#include "Eigen/src/Cholesky/LLT.h"
|
||||
#include "Eigen/src/Eigenvalues/ComplexSchur.h"
|
||||
#include "Eigen/src/LU/Determinant.h"
|
||||
#include "Eigen/src/LU/InverseImpl.h"
|
||||
#include "Eigen/Eigenvalues"
|
||||
#include "drake/math/discrete_algebraic_riccati_equation.h"
|
||||
#include "frc/StateSpaceUtil.h"
|
||||
#include "frc/system/Discretization.h"
|
||||
#include "frc/system/LinearSystem.h"
|
||||
#include "units/time.h"
|
||||
#include "unsupported/Eigen/src/MatrixFunctions/MatrixPower.h"
|
||||
#include "unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h"
|
||||
#include "unsupported/Eigen/MatrixFunctions"
|
||||
|
||||
namespace frc {
|
||||
namespace detail {
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
|
||||
#include <wpi/array.h>
|
||||
|
||||
#include "Eigen/Cholesky"
|
||||
#include "Eigen/Core"
|
||||
#include "Eigen/src/Cholesky/LDLT.h"
|
||||
#include "drake/math/discrete_algebraic_riccati_equation.h"
|
||||
#include "frc/StateSpaceUtil.h"
|
||||
#include "frc/system/Discretization.h"
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
|
||||
#include <wpi/array.h>
|
||||
|
||||
#include "Eigen/Cholesky"
|
||||
#include "Eigen/Core"
|
||||
#include "Eigen/src/Cholesky/LDLT.h"
|
||||
#include "drake/math/discrete_algebraic_riccati_equation.h"
|
||||
#include "frc/StateSpaceUtil.h"
|
||||
#include "frc/system/Discretization.h"
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "Eigen/Cholesky"
|
||||
#include "Eigen/Core"
|
||||
#include "Eigen/src/Cholesky/LLT.h"
|
||||
|
||||
namespace frc {
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
|
||||
#include <wpi/array.h>
|
||||
|
||||
#include "Eigen/Cholesky"
|
||||
#include "Eigen/Core"
|
||||
#include "Eigen/src/Cholesky/LDLT.h"
|
||||
#include "frc/StateSpaceUtil.h"
|
||||
#include "frc/estimator/MerweScaledSigmaPoints.h"
|
||||
#include "frc/estimator/UnscentedTransform.h"
|
||||
|
||||
@@ -5,9 +5,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "Eigen/Core"
|
||||
#include "Eigen/src/LU/PartialPivLU.h"
|
||||
#include "units/time.h"
|
||||
#include "unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h"
|
||||
#include "unsupported/Eigen/MatrixFunctions"
|
||||
|
||||
namespace frc {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user