matrix: fix internal include chain

This commit is contained in:
Matthias Grob 2023-12-21 16:12:47 +01:00 committed by Daniel Agar
parent c5757e0799
commit ea4fdfd637
23 changed files with 47 additions and 96 deletions

View File

@ -6,19 +6,16 @@
#pragma once #pragma once
#include "math.hpp" #include "Vector3.hpp"
namespace matrix namespace matrix
{ {
template <typename Type>
class Dcm;
template <typename Type> template <typename Type>
class Euler; class Euler;
template <typename Type> template<typename Type>
class AxisAngle; class Quaternion;
/** /**
* AxisAngle class * AxisAngle class

View File

@ -15,19 +15,20 @@
#pragma once #pragma once
#include "math.hpp" #include "SquareMatrix.hpp"
#include "Vector3.hpp"
namespace matrix namespace matrix
{ {
template<typename Type> template<typename Type>
class Quaternion; class AxisAngle;
template<typename Type> template<typename Type>
class Euler; class Euler;
template<typename Type> template<typename Type>
class AxisAngle; class Quaternion;
/** /**
* Direction cosine matrix class * Direction cosine matrix class

View File

@ -48,7 +48,8 @@
#pragma once #pragma once
#include "math.hpp" #include "SquareMatrix.hpp"
#include "Vector2.hpp"
namespace matrix namespace matrix
{ {

View File

@ -15,14 +15,12 @@
#include <cmath> #include <cmath>
#include "math.hpp" #include "Scalar.hpp"
#include "Vector.hpp"
namespace matrix namespace matrix
{ {
template <typename Type, size_t M>
class Vector;
template <typename Scalar, size_t N> template <typename Scalar, size_t N>
struct Dual { struct Dual {
static constexpr size_t WIDTH = N; static constexpr size_t WIDTH = N;

View File

@ -15,17 +15,9 @@
#pragma once #pragma once
#include "math.hpp"
namespace matrix namespace matrix
{ {
template <typename Type>
class Dcm;
template <typename Type>
class Quaternion;
/** /**
* Euler angles class * Euler angles class
* *

View File

@ -14,7 +14,7 @@
#pragma once #pragma once
#include "math.hpp" #include "Vector.hpp"
namespace matrix namespace matrix
{ {

View File

@ -12,20 +12,12 @@
#include <cstdio> #include <cstdio>
#include <cstring> #include <cstring>
#include "math.hpp" #include "helper_functions.hpp"
#include "Slice.hpp"
namespace matrix namespace matrix
{ {
template <typename Type, size_t M>
class Vector;
template<typename Type, size_t M, size_t N>
class Matrix;
template <typename Type, size_t P, size_t Q, size_t M, size_t N>
class Slice;
template<typename Type, size_t M, size_t N> template<typename Type, size_t M, size_t N>
class Matrix class Matrix
{ {

View File

@ -9,7 +9,8 @@
#pragma once #pragma once
#include "math.hpp" #include "SquareMatrix.hpp"
#include "Vector.hpp"
namespace matrix namespace matrix
{ {

View File

@ -28,21 +28,20 @@
#pragma once #pragma once
#include "math.hpp" #include <float.h> // FLT_EPSILON
#include "Vector3.hpp"
#include "Vector4.hpp"
namespace matrix namespace matrix
{ {
template <typename Type>
class Dcm;
template <typename Type> template <typename Type>
class Euler; class Euler;
template <typename Type> template <typename Type>
class AxisAngle; class AxisAngle;
/** /**
* Quaternion class * Quaternion class
* *

View File

@ -8,7 +8,7 @@
#pragma once #pragma once
#include "math.hpp" #include "Matrix.hpp"
namespace matrix namespace matrix
{ {

View File

@ -8,8 +8,9 @@
#pragma once #pragma once
#include "math.hpp" #include <cassert>
#include <cstdio>
#include <cmath>
namespace matrix namespace matrix
{ {

View File

@ -10,7 +10,7 @@
#pragma once #pragma once
#include "math.hpp" #include "Vector.hpp"
namespace matrix namespace matrix
{ {

View File

@ -10,20 +10,11 @@
#include <float.h> // FLT_EPSILON #include <float.h> // FLT_EPSILON
#include "math.hpp" #include "Slice.hpp"
namespace matrix namespace matrix
{ {
template <typename Type, size_t M, size_t N>
class Matrix;
template <typename Type, size_t M>
class Vector;
template <typename Type, size_t P, size_t Q, size_t M, size_t N>
class Slice;
template <typename Type, size_t M> template <typename Type, size_t M>
class SquareMatrix : public Matrix<Type, M, M> class SquareMatrix : public Matrix<Type, M, M>
{ {

View File

@ -8,14 +8,11 @@
#pragma once #pragma once
#include "math.hpp" #include "Matrix.hpp"
namespace matrix namespace matrix
{ {
template <typename Type, size_t M, size_t N>
class Matrix;
template<typename Type, size_t M> template<typename Type, size_t M>
class Vector : public Matrix<Type, M, 1> class Vector : public Matrix<Type, M, 1>
{ {

View File

@ -8,14 +8,11 @@
#pragma once #pragma once
#include "math.hpp" #include "Vector.hpp"
namespace matrix namespace matrix
{ {
template <typename Type, size_t M>
class Vector;
template<typename Type> template<typename Type>
class Vector2 : public Vector<Type, 2> class Vector2 : public Vector<Type, 2>
{ {

View File

@ -8,23 +8,14 @@
#pragma once #pragma once
#include "math.hpp" #include "Vector.hpp"
namespace matrix namespace matrix
{ {
template <typename Type, size_t M, size_t N>
class Matrix;
template <typename Type, size_t M>
class Vector;
template <typename Type> template <typename Type>
class Dcm; class Dcm;
template <typename Type>
class Vector2;
template<typename Type> template<typename Type>
class Vector3 : public Vector<Type, 3> class Vector3 : public Vector<Type, 3>
{ {

View File

@ -41,17 +41,11 @@
#pragma once #pragma once
#include "math.hpp" #include "Vector.hpp"
namespace matrix namespace matrix
{ {
template <typename Type, size_t M, size_t N>
class Matrix;
template <typename Type, size_t M>
class Vector;
template<typename Type> template<typename Type>
class Vector4 : public Vector<Type, 4> class Vector4 : public Vector<Type, 4>
{ {

View File

@ -1,6 +1,7 @@
#pragma once #pragma once
#include "math.hpp" #include "Scalar.hpp"
#include "SquareMatrix.hpp"
namespace matrix namespace matrix
{ {

View File

@ -2,7 +2,7 @@
#include <cmath> #include <cmath>
#include "math.hpp" #include <px4_platform_common/defines.h>
namespace matrix namespace matrix
{ {

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "math.hpp" #include "Vector.hpp"
namespace matrix namespace matrix
{ {

View File

@ -1,24 +1,20 @@
#pragma once #pragma once
#include <assert.h> #include "AxisAngle.hpp"
#include <px4_platform_common/defines.h> #include "Dcm.hpp"
#include "Dcm2.hpp"
#include "Dual.hpp"
#include "Euler.hpp"
#include "helper_functions.hpp" #include "helper_functions.hpp"
#include "LeastSquaresSolver.hpp"
#include "Matrix.hpp" #include "Matrix.hpp"
#include "SquareMatrix.hpp" #include "PseudoInverse.hpp"
#include "Quaternion.hpp"
#include "Scalar.hpp"
#include "Slice.hpp" #include "Slice.hpp"
#include "SparseVector.hpp"
#include "SquareMatrix.hpp"
#include "Vector.hpp" #include "Vector.hpp"
#include "Vector2.hpp" #include "Vector2.hpp"
#include "Vector3.hpp" #include "Vector3.hpp"
#include "Vector4.hpp" #include "Vector4.hpp"
#include "Euler.hpp"
#include "Dcm.hpp"
#include "Dcm2.hpp"
#include "Scalar.hpp"
#include "Quaternion.hpp"
#include "AxisAngle.hpp"
#include "LeastSquaresSolver.hpp"
#include "Dual.hpp"
#include "PseudoInverse.hpp"
#include "SparseVector.hpp"

View File

@ -34,6 +34,7 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <matrix/Dcm.hpp> #include <matrix/Dcm.hpp>
#include <matrix/Dcm2.hpp> #include <matrix/Dcm2.hpp>
#include <matrix/Euler.hpp>
using namespace matrix; using namespace matrix;

View File

@ -33,6 +33,7 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <matrix/filter.hpp> #include <matrix/filter.hpp>
#include <matrix/Vector.hpp>
using namespace matrix; using namespace matrix;