Warning, file /include/eigen3/Eigen/src/plugins/ReshapedMethods.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002 #ifdef EIGEN_PARSED_BY_DOXYGEN
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030 template<int Order = ColMajor, typename NRowsType, typename NColsType>
0031 EIGEN_DEVICE_FUNC
0032 inline Reshaped<Derived,...>
0033 reshaped(NRowsType nRows, NColsType nCols);
0034
0035
0036 template<int Order = ColMajor, typename NRowsType, typename NColsType>
0037 EIGEN_DEVICE_FUNC
0038 inline const Reshaped<const Derived,...>
0039 reshaped(NRowsType nRows, NColsType nCols) const;
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061 template<int Order = ColMajor>
0062 EIGEN_DEVICE_FUNC
0063 inline Reshaped<Derived,...>
0064 reshaped();
0065
0066
0067 template<int Order = ColMajor>
0068 EIGEN_DEVICE_FUNC
0069 inline const Reshaped<const Derived,...>
0070 reshaped() const;
0071
0072 #else
0073
0074
0075
0076 #ifndef EIGEN_RESHAPED_METHOD_2ND_PASS
0077 #define EIGEN_RESHAPED_METHOD_CONST const
0078 #else
0079 #define EIGEN_RESHAPED_METHOD_CONST
0080 #endif
0081
0082 #ifndef EIGEN_RESHAPED_METHOD_2ND_PASS
0083
0084
0085
0086 #endif
0087
0088 template<typename NRowsType, typename NColsType>
0089 EIGEN_DEVICE_FUNC
0090 inline Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived,
0091 internal::get_compiletime_reshape_size<NRowsType,NColsType,SizeAtCompileTime>::value,
0092 internal::get_compiletime_reshape_size<NColsType,NRowsType,SizeAtCompileTime>::value>
0093 reshaped(NRowsType nRows, NColsType nCols) EIGEN_RESHAPED_METHOD_CONST
0094 {
0095 return Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived,
0096 internal::get_compiletime_reshape_size<NRowsType,NColsType,SizeAtCompileTime>::value,
0097 internal::get_compiletime_reshape_size<NColsType,NRowsType,SizeAtCompileTime>::value>
0098 (derived(),
0099 internal::get_runtime_reshape_size(nRows,internal::get_runtime_value(nCols),size()),
0100 internal::get_runtime_reshape_size(nCols,internal::get_runtime_value(nRows),size()));
0101 }
0102
0103 template<int Order, typename NRowsType, typename NColsType>
0104 EIGEN_DEVICE_FUNC
0105 inline Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived,
0106 internal::get_compiletime_reshape_size<NRowsType,NColsType,SizeAtCompileTime>::value,
0107 internal::get_compiletime_reshape_size<NColsType,NRowsType,SizeAtCompileTime>::value,
0108 internal::get_compiletime_reshape_order<Flags,Order>::value>
0109 reshaped(NRowsType nRows, NColsType nCols) EIGEN_RESHAPED_METHOD_CONST
0110 {
0111 return Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived,
0112 internal::get_compiletime_reshape_size<NRowsType,NColsType,SizeAtCompileTime>::value,
0113 internal::get_compiletime_reshape_size<NColsType,NRowsType,SizeAtCompileTime>::value,
0114 internal::get_compiletime_reshape_order<Flags,Order>::value>
0115 (derived(),
0116 internal::get_runtime_reshape_size(nRows,internal::get_runtime_value(nCols),size()),
0117 internal::get_runtime_reshape_size(nCols,internal::get_runtime_value(nRows),size()));
0118 }
0119
0120
0121
0122 EIGEN_DEVICE_FUNC
0123 inline Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived,SizeAtCompileTime,1>
0124 reshaped() EIGEN_RESHAPED_METHOD_CONST
0125 {
0126 return Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived,SizeAtCompileTime,1>(derived(),size(),1);
0127 }
0128
0129 template<int Order>
0130 EIGEN_DEVICE_FUNC
0131 inline Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived, SizeAtCompileTime, 1,
0132 internal::get_compiletime_reshape_order<Flags,Order>::value>
0133 reshaped() EIGEN_RESHAPED_METHOD_CONST
0134 {
0135 EIGEN_STATIC_ASSERT(Order==RowMajor || Order==ColMajor || Order==AutoOrder, INVALID_TEMPLATE_PARAMETER);
0136 return Reshaped<EIGEN_RESHAPED_METHOD_CONST Derived, SizeAtCompileTime, 1,
0137 internal::get_compiletime_reshape_order<Flags,Order>::value>
0138 (derived(), size(), 1);
0139 }
0140
0141 #undef EIGEN_RESHAPED_METHOD_CONST
0142
0143 #ifndef EIGEN_RESHAPED_METHOD_2ND_PASS
0144 #define EIGEN_RESHAPED_METHOD_2ND_PASS
0145 #include "ReshapedMethods.h"
0146 #undef EIGEN_RESHAPED_METHOD_2ND_PASS
0147 #endif
0148
0149 #endif