Bugzilla – Attachment 226 Details for
Bug 370
Eigen::AlignedBox3f typedef
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
This bugzilla service is closed. All entries have been migrated to
https://gitlab.com/libeigen/eigen
[patch]
Proposed patch
geometry-alignedbox-new-typedefs.patch (text/plain), 2.72 KB, created by
Dennis Schridde
on 2011-11-08 14:38:51 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Dennis Schridde
Created:
2011-11-08 14:38:51 UTC
Size:
2.72 KB
patch
obsolete
># HG changeset patch ># User Dennis Schridde <devurandom@gmx.net> ># Date 1320411130 -3600 ># Branch 3.0 ># Node ID 64c1953bcda9ff149cc67c9a7e6ec05ac0e2a10e ># Parent 6421e00ec3d7db96ef3ca1cab001e71b8536b3fc >[Geometry/AlignedBox] New typedefs, like for Core/Matrix > >diff -r 6421e00ec3d7 -r 64c1953bcda9 Eigen/src/Geometry/AlignedBox.h >--- a/Eigen/src/Geometry/AlignedBox.h Fri Nov 04 13:51:15 2011 +0100 >+++ b/Eigen/src/Geometry/AlignedBox.h Fri Nov 04 13:52:10 2011 +0100 >@@ -349,4 +349,56 @@ > return dist2; > } > >+/** \defgroup alignedboxtypedefs Global aligned box typedefs >+ * >+ * \ingroup Geometry_Module >+ * >+ * Eigen defines several typedef shortcuts for most common aligned box types. >+ * >+ * The general patterns are the following: >+ * >+ * \c AlignedBoxSizeType where \c Size can be \c 2,\c 3,\c 4 for fixed size boxes or \c X for dynamic size, >+ * and where \c Type can be \c i for integer, \c f for float, \c d for double, \c cf for complex float, \c cd >+ * for complex double. >+ * >+ * For example, \c AlignedBox3d is a fixed-size 3x3 aligned box type of doubles, and \c AlignedBoxXf is a dynamic-size aligned box of floats. >+ * >+ * \sa class AlignedBox >+ */ >+ >+#define EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, Size, SizeSuffix) \ >+/** \ingroup alignedboxtypedefs */ \ >+typedef AlignedBox<Type, Size> AlignedBox##SizeSuffix##TypeSuffix; >+ >+#define EIGEN_MAKE_TYPEDEFS_ALL_SIZES(Type, TypeSuffix) \ >+EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, 2, 2) \ >+EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, 3, 3) \ >+EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, 4, 4) \ >+EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, Dynamic, X) >+ >+EIGEN_MAKE_TYPEDEFS_ALL_SIZES(int, i) >+EIGEN_MAKE_TYPEDEFS_ALL_SIZES(float, f) >+EIGEN_MAKE_TYPEDEFS_ALL_SIZES(double, d) >+EIGEN_MAKE_TYPEDEFS_ALL_SIZES(std::complex<float>, cf) >+EIGEN_MAKE_TYPEDEFS_ALL_SIZES(std::complex<double>, cd) >+ >+#undef EIGEN_MAKE_TYPEDEFS_ALL_SIZES >+#undef EIGEN_MAKE_TYPEDEFS >+ >+#define EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, SizeSuffix) \ >+using Eigen::AlignedBox##SizeSuffix##TypeSuffix; >+ >+#define EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE(TypeSuffix) \ >+EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 2) \ >+EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 3) \ >+EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 4) \ >+EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, X) \ >+ >+#define EIGEN_USING_ALIGNEDBOX_TYPEDEFS \ >+EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE(i) \ >+EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE(f) \ >+EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE(d) \ >+EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE(cf) \ >+EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE(cd) >+ > #endif // EIGEN_ALIGNEDBOX_H
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 370
:
226
|
227
|
228