aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/plugins')
-rw-r--r--Eigen/src/plugins/ReshapedMethods.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Eigen/src/plugins/ReshapedMethods.h b/Eigen/src/plugins/ReshapedMethods.h
index 7a11a4bcc..3a1b20301 100644
--- a/Eigen/src/plugins/ReshapedMethods.h
+++ b/Eigen/src/plugins/ReshapedMethods.h
@@ -70,4 +70,13 @@ reshaped(NRowsType nRows, NColsType nCols, OrderType) const
derived(), internal::get_runtime_value(nRows), internal::get_runtime_value(nCols));
}
+// Views as linear vectors
+
+EIGEN_DEVICE_FUNC
+inline const Reshaped<const Derived,SizeAtCompileTime,1>
+operator()(const Eigen::internal::all_t&)
+{
+ return Reshaped<const Derived,SizeAtCompileTime,1>(derived(),size(),1);
+}
+
#endif // EIGEN_PARSED_BY_DOXYGEN