10 #ifndef EIGEN_RESHAPED_HELPER_H 11 #define EIGEN_RESHAPED_HELPER_H 14 #include "../InternalHeaderCheck.h" 18 enum AutoSize_t { AutoSize };
19 const int AutoOrder = 2;
23 template <
typename SizeType,
typename OtherSize,
int TotalSize>
24 struct get_compiletime_reshape_size {
25 enum { value = get_fixed_value<SizeType>::value };
28 template <
typename SizeType>
30 return internal::get_runtime_value(size);
33 template <
typename OtherSize,
int TotalSize>
34 struct get_compiletime_reshape_size<AutoSize_t, OtherSize, TotalSize> {
36 other_size = get_fixed_value<OtherSize>::value,
41 inline Index get_runtime_reshape_size(AutoSize_t ,
Index other,
Index total) {
return total / other; }
43 constexpr
int get_compiletime_reshape_order(
int flags,
int order) {
44 return order == AutoOrder ? flags &
RowMajorBit : order;
51 #endif // EIGEN_RESHAPED_HELPER_H Namespace containing all symbols from the Eigen library.
Definition: B01_Experimental.dox:1
const unsigned int RowMajorBit
Definition: Constants.h:70
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:82
const int Dynamic
Definition: Constants.h:25