aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-03-04 17:08:23 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-03-04 17:08:23 +0000
commit861c6f4c9b4ceff1ad734e22f4615b260b1d9c45 (patch)
tree3c9b2fecf2b79b23ec869fedaba573058f9baba1 /doc
parentf65cca5d1d28cff4880026d48a9e95b279bed3e3 (diff)
renaming: ref() --> asArg()
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/class_Block.cpp4
-rw-r--r--doc/examples/class_Cast.cpp2
-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
6 files changed, 10 insertions, 10 deletions
diff --git a/doc/examples/class_Block.cpp b/doc/examples/class_Block.cpp
index 6d48d235d..26f9666cb 100644
--- a/doc/examples/class_Block.cpp
+++ b/doc/examples/class_Block.cpp
@@ -6,14 +6,14 @@ template<typename Scalar, typename Derived>
Eigen::Block<Derived>
topLeftCorner(MatrixBase<Scalar, Derived>& m, int rows, int cols)
{
- return Eigen::Block<Derived>(m.ref(), 0, 0, rows, cols);
+ return Eigen::Block<Derived>(m.asArg(), 0, 0, rows, cols);
}
template<typename Scalar, typename Derived>
const Eigen::Block<Derived>
topLeftCorner(const MatrixBase<Scalar, Derived>& m, int rows, int cols)
{
- return Eigen::Block<Derived>(m.ref(), 0, 0, rows, cols);
+ return Eigen::Block<Derived>(m.asArg(), 0, 0, rows, cols);
}
int main(int, char**)
diff --git a/doc/examples/class_Cast.cpp b/doc/examples/class_Cast.cpp
index f50fd2f4f..9751b05c1 100644
--- a/doc/examples/class_Cast.cpp
+++ b/doc/examples/class_Cast.cpp
@@ -12,7 +12,7 @@ castToFloatingPoint(const MatrixBase<Scalar, Derived>& m)
return Eigen::Cast<
typename Eigen::NumTraits<Scalar>::FloatingPoint,
Derived
- >(m.ref());
+ >(m.asArg());
}
int main(int, char**)
diff --git a/doc/examples/class_Column.cpp b/doc/examples/class_Column.cpp
index bab6eaedc..3b37d835f 100644
--- a/doc/examples/class_Column.cpp
+++ b/doc/examples/class_Column.cpp
@@ -6,14 +6,14 @@ template<typename Scalar, typename Derived>
Eigen::Column<Derived>
firstColumn(MatrixBase<Scalar, Derived>& m)
{
- return Eigen::Column<Derived>(m.ref(), 0);
+ return Eigen::Column<Derived>(m.asArg(), 0);
}
template<typename Scalar, typename Derived>
const Eigen::Column<Derived>
firstColumn(const MatrixBase<Scalar, Derived>& m)
{
- return Eigen::Column<Derived>(m.ref(), 0);
+ return Eigen::Column<Derived>(m.asArg(), 0);
}
int main(int, char**)
diff --git a/doc/examples/class_CwiseBinaryOp.cpp b/doc/examples/class_CwiseBinaryOp.cpp
index 2a0f11a75..9bb10cdcb 100644
--- a/doc/examples/class_CwiseBinaryOp.cpp
+++ b/doc/examples/class_CwiseBinaryOp.cpp
@@ -13,7 +13,7 @@ template<typename Scalar, typename Derived1, typename Derived2>
const Eigen::CwiseBinaryOp<CwiseMinOp, Derived1, Derived2>
cwiseMin(const MatrixBase<Scalar, Derived1> &mat1, const MatrixBase<Scalar, Derived2> &mat2)
{
- return Eigen::CwiseBinaryOp<CwiseMinOp, Derived1, Derived2>(mat1.ref(), mat2.ref());
+ return Eigen::CwiseBinaryOp<CwiseMinOp, Derived1, Derived2>(mat1.asArg(), mat2.asArg());
// Note that the above is equivalent to:
// return mat1.template cwise<CwiseMinOp>(mat2);
}
diff --git a/doc/examples/class_FixedBlock.cpp b/doc/examples/class_FixedBlock.cpp
index a6025231e..18dda46e7 100644
--- a/doc/examples/class_FixedBlock.cpp
+++ b/doc/examples/class_FixedBlock.cpp
@@ -6,14 +6,14 @@ template<typename Scalar, typename Derived>
Eigen::Block<Derived, 2, 2>
topLeft2x2Corner(MatrixBase<Scalar, Derived>& m)
{
- return Eigen::Block<Derived, 2, 2>(m.ref(), 0, 0);
+ return Eigen::Block<Derived, 2, 2>(m.asArg(), 0, 0);
}
template<typename Scalar, typename Derived>
const Eigen::Block<Derived, 2, 2>
topLeft2x2Corner(const MatrixBase<Scalar, Derived>& m)
{
- return Eigen::Block<Derived, 2, 2>(m.ref(), 0, 0);
+ return Eigen::Block<Derived, 2, 2>(m.asArg(), 0, 0);
}
int main(int, char**)
diff --git a/doc/examples/class_Row.cpp b/doc/examples/class_Row.cpp
index 12c144c85..23358d869 100644
--- a/doc/examples/class_Row.cpp
+++ b/doc/examples/class_Row.cpp
@@ -6,14 +6,14 @@ template<typename Scalar, typename Derived>
Eigen::Row<Derived>
firstRow(MatrixBase<Scalar, Derived>& m)
{
- return Eigen::Row<Derived>(m.ref(), 0);
+ return Eigen::Row<Derived>(m.asArg(), 0);
}
template<typename Scalar, typename Derived>
const Eigen::Row<Derived>
firstRow(const MatrixBase<Scalar, Derived>& m)
{
- return Eigen::Row<Derived>(m.ref(), 0);
+ return Eigen::Row<Derived>(m.asArg(), 0);
}
int main(int, char**)