2 #ifdef EIGEN_PARSED_BY_DOXYGEN
30 template<
int Order = ColMajor,
typename NRowsType,
typename NColsType>
32 inline Reshaped<Derived,...>
36 template<
int Order = ColMajor,
typename NRowsType,
typename NColsType>
38 inline const Reshaped<
const Derived,...>
39 reshaped(NRowsType nRows, NColsType nCols)
const;
61 template<
int Order = ColMajor>
63 inline Reshaped<Derived,...>
67 template<
int Order = ColMajor>
69 inline const Reshaped<
const Derived,...>
76 #ifndef EIGEN_RESHAPED_METHOD_2ND_PASS
77 #define EIGEN_RESHAPED_METHOD_CONST const
79 #define EIGEN_RESHAPED_METHOD_CONST
82 #ifndef EIGEN_RESHAPED_METHOD_2ND_PASS
88 template<
typename NRowsType,
typename NColsType>
90 inline Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived,
91 internal::get_compiletime_reshape_size<NRowsType,NColsType,SizeAtCompileTime>::value,
92 internal::get_compiletime_reshape_size<NColsType,NRowsType,SizeAtCompileTime>::value>
93 reshaped(NRowsType nRows, NColsType nCols) EIGEN_RESHAPED_METHOD_CONST
95 return Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived,
96 internal::get_compiletime_reshape_size<NRowsType,NColsType,SizeAtCompileTime>::value,
97 internal::get_compiletime_reshape_size<NColsType,NRowsType,SizeAtCompileTime>::value>
103 template<
int Order,
typename NRowsType,
typename NColsType>
105 inline Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived,
106 internal::get_compiletime_reshape_size<NRowsType,NColsType,SizeAtCompileTime>::value,
107 internal::get_compiletime_reshape_size<NColsType,NRowsType,SizeAtCompileTime>::value,
109 reshaped(NRowsType nRows, NColsType nCols) EIGEN_RESHAPED_METHOD_CONST
111 return Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived,
112 internal::get_compiletime_reshape_size<NRowsType,NColsType,SizeAtCompileTime>::value,
113 internal::get_compiletime_reshape_size<NColsType,NRowsType,SizeAtCompileTime>::value,
123 inline Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived,SizeAtCompileTime,1>
124 reshaped() EIGEN_RESHAPED_METHOD_CONST
126 return Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived,SizeAtCompileTime,1>(derived(),
size(),1);
131 inline Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived, SizeAtCompileTime, 1,
133 reshaped() EIGEN_RESHAPED_METHOD_CONST
136 return Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived, SizeAtCompileTime, 1,
138 (derived(),
size(), 1);
141 #undef EIGEN_RESHAPED_METHOD_CONST
143 #ifndef EIGEN_RESHAPED_METHOD_2ND_PASS
144 #define EIGEN_RESHAPED_METHOD_2ND_PASS
146 #undef EIGEN_RESHAPED_METHOD_2ND_PASS
#define EIGEN_DEVICE_FUNC
Reshaped< Derived,... > reshaped(NRowsType nRows, NColsType nCols)
#define EIGEN_STATIC_ASSERT(X, MSG)
Index get_runtime_reshape_size(SizeType size, Index, Index)
Index get_runtime_value(const T &x)
constexpr int get_compiletime_reshape_order(int flags, int order)