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