aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/class_Row.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/class_Row.cpp')
-rw-r--r--doc/examples/class_Row.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/examples/class_Row.cpp b/doc/examples/class_Row.cpp
index 4071b8c0d..5138b2e7c 100644
--- a/doc/examples/class_Row.cpp
+++ b/doc/examples/class_Row.cpp
@@ -3,17 +3,17 @@ USING_PART_OF_NAMESPACE_EIGEN
using namespace std;
template<typename Derived>
-Eigen::Row<Derived>
+Eigen::Block<Derived,1,Derived::ColsAtCompileTime>
firstRow(MatrixBase<Derived>& m)
{
- return Eigen::Row<Derived>(m.asArg(), 0);
+ return Eigen::Block<Derived,1,Derived::ColsAtCompileTime>(m.asArg(), 0);
}
template<typename Derived>
-const Eigen::Row<Derived>
+const Eigen::Block<Derived,1,Derived::ColsAtCompileTime>
firstRow(const MatrixBase<Derived>& m)
{
- return Eigen::Row<Derived>(m.asArg(), 0);
+ return Eigen::Block<Derived,1,Derived::ColsAtCompileTime>(m.asArg(), 0);
}
int main(int, char**)