maliput
EigenSizeMinPreferFixed< a, b > Struct Template Reference

Detailed Description

template<int a, int b>
struct maliput::drake::EigenSizeMinPreferFixed< a, b >

EigenSizeMinPreferFixed is a variant of EigenSizeMinPreferDynamic.

The difference is that finite values now have priority over Dynamic, so that EigenSizeMinPreferFixed<3, Dynamic>::value gives 3.

Note that this is a type-trait version of EIGEN_SIZE_MIN_PREFER_FIXED macro in "Eigen/Core/util/Macros.h".

#include <src/maliput/drake/common/eigen_types.h>

Static Public Attributes

static constexpr int value
 

Member Data Documentation

◆ value

constexpr int value
staticconstexpr
Initial value:
= (a == 0 || b == 0) ? 0 :
(a == 1 || b == 1) ? 1 :
(a == Eigen::Dynamic && b == Eigen::Dynamic) ? Eigen::Dynamic :
(a == Eigen::Dynamic) ? b :
(b == Eigen::Dynamic) ? a :
a <= b ? a : b

The documentation for this struct was generated from the following file: