maliput
EigenSizeMinPreferDynamic< a, b > Struct Template Reference

Detailed Description

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

#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 <= b ? a : b

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