Eigen::internal::maybe_coherent_pad_helper< DerivativeType, OtherDerivativeType, EnableIf > Struct Template Reference

#include <AutoDiffScalar.h>

Public Types

using type = CoherentPadOp< DerivativeType, SizeAtCompileTime >
 

Static Public Member Functions

static type pad (const DerivativeType &x, const OtherDerivativeType &y)
 

Static Public Attributes

static constexpr int SizeAtCompileTime
 

Member Typedef Documentation

◆ type

template<typename DerivativeType , typename OtherDerivativeType , typename EnableIf = void>
using Eigen::internal::maybe_coherent_pad_helper< DerivativeType, OtherDerivativeType, EnableIf >::type = CoherentPadOp<DerivativeType, SizeAtCompileTime>

Member Function Documentation

◆ pad()

template<typename DerivativeType , typename OtherDerivativeType , typename EnableIf = void>
static type Eigen::internal::maybe_coherent_pad_helper< DerivativeType, OtherDerivativeType, EnableIf >::pad ( const DerivativeType &  x,
const OtherDerivativeType &  y 
)
inlinestatic
28  {
29  // CoherentPadOp uses variable_if_dynamic<SizeAtCompileTime>. In this case, `SizeAtCompileTime` might
30  // by Dynamic, so we need to take the runtime maximum of x, y.
31  return CoherentPadOp<DerivativeType, SizeAtCompileTime>(x, numext::maxi(x.size(), y.size()));
32  }
const Scalar & y
Definition: RandomImpl.h:36
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T maxi(const T &x, const T &y)
Definition: MathFunctions.h:926
list x
Definition: plotDoE.py:28

References Eigen::numext::maxi(), plotDoE::x, and Eigen::internal::y.

Referenced by Eigen::internal::MaybeCoherentPad().

Member Data Documentation

◆ SizeAtCompileTime

template<typename DerivativeType , typename OtherDerivativeType , typename EnableIf = void>
constexpr int Eigen::internal::maybe_coherent_pad_helper< DerivativeType, OtherDerivativeType, EnableIf >::SizeAtCompileTime
staticconstexpr
Initial value:
=
max_size_prefer_dynamic(DerivativeType::SizeAtCompileTime, OtherDerivativeType::SizeAtCompileTime)
constexpr int max_size_prefer_dynamic(A a, B b)
Definition: Meta.h:695

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