Drake
EigenSizeMinPreferFixed< a, b > Struct Template Reference

EigenSizeMinPreferFixed is a variant of EigenSizeMinPreferDynamic. More...

#include <drake/common/eigen_types.h>

Collaboration diagram for EigenSizeMinPreferFixed< a, b >:
[legend]

Static Public Attributes

static constexpr int value
 

Detailed Description

template<int a, int b>
struct 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".

Member Data Documentation

constexpr int value
static
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: