This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
View | Details | Raw Unified | Return to bug 370 | Differences between
and this patch

Collapse All | Expand All

(-)a/Eigen/src/Geometry/AlignedBox.h (+52 lines)
Lines 349-352 Link Here
349
  return dist2;
349
  return dist2;
350
}
350
}
351
351
352
/** \defgroup alignedboxtypedefs Global aligned box typedefs
353
  *
354
  * \ingroup Geometry_Module
355
  *
356
  * Eigen defines several typedef shortcuts for most common aligned box types.
357
  *
358
  * The general patterns are the following:
359
  *
360
  * \c AlignedBoxSizeType where \c Size can be \c 2,\c 3,\c 4 for fixed size boxes or \c X for dynamic size,
361
  * 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
362
  * for complex double.
363
  *
364
  * 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.
365
  *
366
  * \sa class AlignedBox
367
  */
368
369
#define EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, Size, SizeSuffix)    \
370
/** \ingroup alignedboxtypedefs */                                 \
371
typedef AlignedBox<Type, Size>   AlignedBox##SizeSuffix##TypeSuffix;
372
373
#define EIGEN_MAKE_TYPEDEFS_ALL_SIZES(Type, TypeSuffix) \
374
EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, 2, 2) \
375
EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, 3, 3) \
376
EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, 4, 4) \
377
EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, Dynamic, X)
378
379
EIGEN_MAKE_TYPEDEFS_ALL_SIZES(int,                  i)
380
EIGEN_MAKE_TYPEDEFS_ALL_SIZES(float,                f)
381
EIGEN_MAKE_TYPEDEFS_ALL_SIZES(double,               d)
382
EIGEN_MAKE_TYPEDEFS_ALL_SIZES(std::complex<float>,  cf)
383
EIGEN_MAKE_TYPEDEFS_ALL_SIZES(std::complex<double>, cd)
384
385
#undef EIGEN_MAKE_TYPEDEFS_ALL_SIZES
386
#undef EIGEN_MAKE_TYPEDEFS
387
388
#define EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, SizeSuffix) \
389
using Eigen::AlignedBox##SizeSuffix##TypeSuffix;
390
391
#define EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE(TypeSuffix) \
392
EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 2) \
393
EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 3) \
394
EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 4) \
395
EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, X) \
396
397
#define EIGEN_USING_ALIGNEDBOX_TYPEDEFS \
398
EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE(i) \
399
EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE(f) \
400
EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE(d) \
401
EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE(cf) \
402
EIGEN_USING_ALIGNEDBOX_TYPEDEFS_FOR_TYPE(cd)
403
352
#endif // EIGEN_ALIGNEDBOX_H
404
#endif // EIGEN_ALIGNEDBOX_H

Return to bug 370