Built-in typedefs for ParametrizedLine and HyperPlane types
Submitted by Andy Somerville
Assigned to Nobody
Link to original bugzilla bug (#444)
Description
Built in typedefs for ParametrizedLine and HyperPlane in the way that they exist for Vectors and Matrices would improve usability by eliminating the need for internal Eigen types companion header or regular redefinition of typdefs.
E.g:
typedef ParametrizedLine<double,3> ParametrizedLine3d;
typedef Hyperplane<double,3> HyperPlane3d;
Following the example of the macros that are already in place, something like this might be useful across the library:
#define EIGEN_MAKE_GENERIC_TYPEDEF(Class, Type, TypeSuffix, Size, SizeSuffix) \
typedef Class##<Type, Size> Class##SizeSuffix##TypeSuffix;
#define EIGEN_MAKE_GENERIC_TYPEDEFS_ALL_SIZES(Class, Type, TypeSuffix) \
EIGEN_MAKE_GENERIC_TYPEDEFS(Class, Type, TypeSuffix, 2) \
EIGEN_MAKE_GENERIC_TYPEDEFS(Class, Type, TypeSuffix, 3) \
EIGEN_MAKE_GENERIC_TYPEDEFS(Class, Type, TypeSuffix, 4)
#define EIGEN_MAKE_GENERIC_TYPEDEFS_ALL_TYPES_ALL_SIZES(Class) \
EIGEN_MAKE_GENERIC_TYPEDEFS_ALL_SIZES(Class, int, i) \
EIGEN_MAKE_GENERIC_TYPEDEFS_ALL_SIZES(Class, float, f) \
EIGEN_MAKE_GENERIC_TYPEDEFS_ALL_SIZES(Class, double, d) \
EIGEN_MAKE_GENERIC_TYPEDEFS_ALL_SIZES(Class, std::complex<float>, cf)\
EIGEN_MAKE_GENERIC_TYPEDEFS_ALL_SIZES(Class, std::complex<double>, cd)