HepMC3 event record library
Public Types | Static Public Member Functions | Static Public Attributes
EigenProps< Type_ > Struct Template Reference

Public Types

using Type = Type_
 
using Scalar = typename Type::Scalar
 
using StrideType = typename eigen_extract_stride< Type >::type
 
template<EigenIndex i, EigenIndex ifzero>
using if_zero = std::integral_constant< EigenIndex, i==0?ifzero:i >
 

Static Public Member Functions

static EigenConformable
< row_major > 
conformable (const array &a)
 

Static Public Attributes

static constexpr EigenIndex rows = Type::RowsAtCompileTime
 
static constexpr EigenIndex cols = Type::ColsAtCompileTime
 
static constexpr EigenIndex size = Type::SizeAtCompileTime
 
static constexpr bool row_major = Type::IsRowMajor
 
static constexpr bool vector = Type::IsVectorAtCompileTime
 
static constexpr bool fixed_rows = rows != Eigen::Dynamic
 
static constexpr bool fixed_cols = cols != Eigen::Dynamic
 
static constexpr bool fixed = size != Eigen::Dynamic
 
static constexpr bool dynamic = !fixed_rows && !fixed_cols
 
static constexpr EigenIndex inner_stride = if_zero<StrideType::InnerStrideAtCompileTime, 1>::value
 
static constexpr EigenIndex outer_stride
 
static constexpr bool dynamic_stride = inner_stride == Eigen::Dynamic && outer_stride == Eigen::Dynamic
 
static constexpr bool requires_row_major = !dynamic_stride && !vector && (row_major ? inner_stride : outer_stride) == 1
 
static constexpr bool requires_col_major = !dynamic_stride && !vector && (row_major ? outer_stride : inner_stride) == 1
 
static constexpr bool show_writeable = is_eigen_dense_map<Type>::value && is_eigen_mutable_map<Type>::value
 
static constexpr bool show_order = is_eigen_dense_map<Type>::value
 
static constexpr bool show_c_contiguous = show_order && requires_row_major
 
static constexpr bool show_f_contiguous = !show_c_contiguous && show_order && requires_col_major
 
static constexpr auto descriptor
 

Detailed Description

template<typename Type_>
struct EigenProps< Type_ >

Definition at line 117 of file eigen.h.

Field Documentation

constexpr auto descriptor
static
Initial value:
=
_("numpy.ndarray[") + npy_format_descriptor<Scalar>::name +
_("[") + _<fixed_rows>(_<(size_t) rows>(), _("m")) +
_(", ") + _<fixed_cols>(_<(size_t) cols>(), _("n")) +
_("]") +
_<show_writeable>(", flags.writeable", "") +
_<show_c_contiguous>(", flags.c_contiguous", "") +
_<show_f_contiguous>(", flags.f_contiguous", "") +
_("]")

Definition at line 194 of file eigen.h.

constexpr EigenIndex outer_stride
static
Initial value:
= if_zero<StrideType::OuterStrideAtCompileTime,
vector ? size : row_major ? cols : rows>::value

Definition at line 135 of file eigen.h.


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