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