Drake
EigenSizeMinPreferDynamic< a, b > Struct Template Reference

EigenSizeMinPreferDynamic<a, b>::value gives the min between compile-time sizes a and b. More...

#include <drake/common/eigen_types.h>

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

Static Public Attributes

static constexpr int value
 

Detailed Description

template<int a, int b>
struct drake::EigenSizeMinPreferDynamic< a, b >

EigenSizeMinPreferDynamic<a, b>::value gives the min between compile-time sizes a and b.

0 has absolute priority, followed by 1, followed by Dynamic, followed by other finite values.

Note that this is a type-trait version of EIGEN_SIZE_MIN_PREFER_DYNAMIC 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 <= b ? a : b

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