Add missing const version of mat(all).

This commit is contained in:
Gael Guennebaud
2017-02-21 13:56:26 +01:00
parent 1e3aa470fa
commit f8179385bd
2 changed files with 16 additions and 1 deletions

View File

@@ -73,8 +73,15 @@ reshaped(NRowsType nRows, NColsType nCols, OrderType) const
// Views as linear vectors
EIGEN_DEVICE_FUNC
inline const Reshaped<const Derived,SizeAtCompileTime,1>
inline const Reshaped<Derived,SizeAtCompileTime,1>
operator()(const Eigen::internal::all_t&)
{
return Reshaped<Derived,SizeAtCompileTime,1>(derived(),size(),1);
}
EIGEN_DEVICE_FUNC
inline const Reshaped<const Derived,SizeAtCompileTime,1>
operator()(const Eigen::internal::all_t&) const
{
return Reshaped<const Derived,SizeAtCompileTime,1>(derived(),size(),1);
}