This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 444 - Built-in typedefs for ParametrizedLine and HyperPlane types
Summary: Built-in typedefs for ParametrizedLine and HyperPlane types
Status: NEW
Alias: None
Product: Eigen
Classification: Unclassified
Component: Geometry (show other bugs)
Version: unspecified
Hardware: All All
: Normal enhancement
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-09 19:00 UTC by Andy Somerville
Modified: 2019-12-04 11:34 UTC (History)
3 users (show)



Attachments

Description Andy Somerville 2012-04-09 19:00:08 UTC
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)
Comment 1 Nobody 2019-12-04 11:34:58 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/444.

Note You need to log in before you can comment on or make changes to this bug.