diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-03-12 18:10:52 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-03-12 18:10:52 +0000 |
commit | 35bce20954581415a9e5057cc24f6e4769ef78f5 (patch) | |
tree | 2f2b3c0eebb1001a32c035b31631d5e633edebf8 /doc/examples | |
parent | 6da4d9d25620a025f00331bfd36794b89119b739 (diff) |
Removed Column and Row in favor of Block
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/class_Column.cpp | 8 | ||||
-rw-r--r-- | doc/examples/class_Row.cpp | 8 |
2 files changed, 8 insertions, 8 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**) 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**) |