11#ifndef EIGEN_RESHAPED_HELPER_H
12#define EIGEN_RESHAPED_HELPER_H
16enum AutoSize_t { AutoSize };
17const int AutoOrder = 2;
21template<
typename SizeType,
typename OtherSize,
int TotalSize>
22struct get_compiletime_reshape_size {
23 enum { value = get_fixed_value<SizeType>::value };
26template<
typename SizeType>
28 return internal::get_runtime_value(size);
31template<
typename OtherSize,
int TotalSize>
32struct get_compiletime_reshape_size<AutoSize_t,OtherSize,TotalSize> {
34 other_size = get_fixed_value<OtherSize>::value,
38inline Index get_runtime_reshape_size(AutoSize_t ,
Index other,
Index total) {
42template<
int Flags,
int Order>
43struct get_compiletime_reshape_order {
44 enum { value = Order == AutoOrder ? Flags &
RowMajorBit : Order };
const unsigned int RowMajorBit
Definition: Constants.h:66
Namespace containing all symbols from the Eigen library.
Definition: Core:141
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
const int Dynamic
Definition: Constants.h:22