mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-18 14:34:17 +08:00
simplify the new USING_EIGEN_DATA_TYPES macro
This commit is contained in:
parent
61de15f361
commit
0d44c0906b
@ -123,24 +123,24 @@ EI_MAKE_TYPEDEFS_ALL_SIZES(std::complex<double>, cd)
|
|||||||
#undef EI_MAKE_TYPEDEFS_ALL_SIZES
|
#undef EI_MAKE_TYPEDEFS_ALL_SIZES
|
||||||
#undef EI_MAKE_TYPEDEFS
|
#undef EI_MAKE_TYPEDEFS
|
||||||
|
|
||||||
#define EI_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(Type, TypeSuffix, Size, SizeSuffix) \
|
#define EI_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, SizeSuffix) \
|
||||||
using Eigen::Matrix##SizeSuffix##TypeSuffix; \
|
using Eigen::Matrix##SizeSuffix##TypeSuffix; \
|
||||||
using Eigen::Vector##SizeSuffix##TypeSuffix; \
|
using Eigen::Vector##SizeSuffix##TypeSuffix; \
|
||||||
using Eigen::RowVector##SizeSuffix##TypeSuffix;
|
using Eigen::RowVector##SizeSuffix##TypeSuffix;
|
||||||
|
|
||||||
#define EI_USING_MATRIX_TYPEDEFS_FOR_TYPE(Type, TypeSuffix) \
|
#define EI_USING_MATRIX_TYPEDEFS_FOR_TYPE(TypeSuffix) \
|
||||||
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(Type, TypeSuffix, 2, 2) \
|
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 2) \
|
||||||
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(Type, TypeSuffix, 3, 3) \
|
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 3) \
|
||||||
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(Type, TypeSuffix, 4, 4) \
|
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 4) \
|
||||||
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(Type, TypeSuffix, Dynamic, X)
|
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, X)
|
||||||
|
|
||||||
#define EI_USING_MATRIX_TYPEDEFS \
|
#define EI_USING_MATRIX_TYPEDEFS \
|
||||||
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE(int, i) \
|
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE(i) \
|
||||||
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE(float, f) \
|
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE(f) \
|
||||||
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE(double, d) \
|
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE(d) \
|
||||||
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE(std::complex<int>, ci) \
|
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE(ci) \
|
||||||
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE(std::complex<float>, cf) \
|
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE(cf) \
|
||||||
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE(std::complex<double>, cd)
|
EI_USING_MATRIX_TYPEDEFS_FOR_TYPE(cd)
|
||||||
|
|
||||||
#include "Eval.h"
|
#include "Eval.h"
|
||||||
#include "MatrixOps.h"
|
#include "MatrixOps.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user