aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-03-13 20:36:01 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-03-13 20:36:01 +0000
commitfe569b060c367d34c83624061fff407738609402 (patch)
tree767d3aa09bc952e7709503bd5bca2dce81fa3be0 /doc/examples
parent908a0fbab5725b182afa57b1c3fcb0b6b6912721 (diff)
get rid of MatrixRef, simplifications.
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/class_Block.cpp4
-rw-r--r--doc/examples/class_Column.cpp4
-rw-r--r--doc/examples/class_CwiseBinaryOp.cpp2
-rw-r--r--doc/examples/class_FixedBlock.cpp4
-rw-r--r--doc/examples/class_Row.cpp4
5 files changed, 9 insertions, 9 deletions
diff --git a/doc/examples/class_Block.cpp b/doc/examples/class_Block.cpp
index 7a4c60a42..fd5ae816c 100644
--- a/doc/examples/class_Block.cpp
+++ b/doc/examples/class_Block.cpp
@@ -6,14 +6,14 @@ template<typename Derived>
Eigen::Block<Derived>
topLeftCorner(MatrixBase<Derived>& m, int rows, int cols)
{
- return Eigen::Block<Derived>(m.asArg(), 0, 0, rows, cols);
+ return Eigen::Block<Derived>(m, 0, 0, rows, cols);
}
template<typename Derived>
const Eigen::Block<Derived>
topLeftCorner(const MatrixBase<Derived>& m, int rows, int cols)
{
- return Eigen::Block<Derived>(m.asArg(), 0, 0, rows, cols);
+ return Eigen::Block<Derived>(m, 0, 0, rows, cols);
}
int main(int, char**)
diff --git a/doc/examples/class_Column.cpp b/doc/examples/class_Column.cpp
index fbaaa7a87..1394324fa 100644
--- a/doc/examples/class_Column.cpp
+++ b/doc/examples/class_Column.cpp
@@ -6,14 +6,14 @@ template<typename Derived>
Eigen::Block<Derived,Derived::RowsAtCompileTime,1>
firstColumn(MatrixBase<Derived>& m)
{
- return typename Eigen::Block<Derived,Derived::RowsAtCompileTime,1>(m.asArg(), 0);
+ return typename Eigen::Block<Derived,Derived::RowsAtCompileTime,1>(m, 0);
}
template<typename Derived>
const Eigen::Block<Derived,Derived::RowsAtCompileTime,1>
firstColumn(const MatrixBase<Derived>& m)
{
- return typename Eigen::Block<Derived,Derived::RowsAtCompileTime,1>(m.asArg(), 0);
+ return typename Eigen::Block<Derived,Derived::RowsAtCompileTime,1>(m, 0);
}
int main(int, char**)
diff --git a/doc/examples/class_CwiseBinaryOp.cpp b/doc/examples/class_CwiseBinaryOp.cpp
index ae634a041..8e4c5361e 100644
--- a/doc/examples/class_CwiseBinaryOp.cpp
+++ b/doc/examples/class_CwiseBinaryOp.cpp
@@ -13,7 +13,7 @@ template<typename Derived1, typename Derived2>
const Eigen::CwiseBinaryOp<CwiseMinOp, Derived1, Derived2>
cwiseMin(const MatrixBase<Derived1> &mat1, const MatrixBase<Derived2> &mat2)
{
- return Eigen::CwiseBinaryOp<CwiseMinOp, Derived1, Derived2>(mat1.asArg(), mat2.asArg());
+ return Eigen::CwiseBinaryOp<CwiseMinOp, Derived1, Derived2>(mat1, mat2);
}
int main(int, char**)
diff --git a/doc/examples/class_FixedBlock.cpp b/doc/examples/class_FixedBlock.cpp
index b643d1148..644f420bd 100644
--- a/doc/examples/class_FixedBlock.cpp
+++ b/doc/examples/class_FixedBlock.cpp
@@ -6,14 +6,14 @@ template<typename Derived>
Eigen::Block<Derived, 2, 2>
topLeft2x2Corner(MatrixBase<Derived>& m)
{
- return Eigen::Block<Derived, 2, 2>(m.asArg(), 0, 0);
+ return Eigen::Block<Derived, 2, 2>(m, 0, 0);
}
template<typename Derived>
const Eigen::Block<Derived, 2, 2>
topLeft2x2Corner(const MatrixBase<Derived>& m)
{
- return Eigen::Block<Derived, 2, 2>(m.asArg(), 0, 0);
+ return Eigen::Block<Derived, 2, 2>(m, 0, 0);
}
int main(int, char**)
diff --git a/doc/examples/class_Row.cpp b/doc/examples/class_Row.cpp
index 5138b2e7c..eed1dbdb4 100644
--- a/doc/examples/class_Row.cpp
+++ b/doc/examples/class_Row.cpp
@@ -6,14 +6,14 @@ template<typename Derived>
Eigen::Block<Derived,1,Derived::ColsAtCompileTime>
firstRow(MatrixBase<Derived>& m)
{
- return Eigen::Block<Derived,1,Derived::ColsAtCompileTime>(m.asArg(), 0);
+ return Eigen::Block<Derived,1,Derived::ColsAtCompileTime>(m, 0);
}
template<typename Derived>
const Eigen::Block<Derived,1,Derived::ColsAtCompileTime>
firstRow(const MatrixBase<Derived>& m)
{
- return Eigen::Block<Derived,1,Derived::ColsAtCompileTime>(m.asArg(), 0);
+ return Eigen::Block<Derived,1,Derived::ColsAtCompileTime>(m, 0);
}
int main(int, char**)