From 39ac57fa6ddf9a74d9a6cc213293914d2e05ec31 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 4 Jan 2010 21:24:43 -0500 Subject: Big renaming: start ---> head end ---> tail Much frustration with sed syntax. Need to learn perl some day. --- doc/AsciiQuickReference.txt | 4 ++-- doc/C01_QuickStartGuide.dox | 2 +- doc/echelon.cpp | 6 +++--- doc/snippets/MatrixBase_end_int.cpp | 4 ++-- doc/snippets/MatrixBase_start_int.cpp | 4 ++-- doc/snippets/MatrixBase_template_int_end.cpp | 4 ++-- doc/snippets/MatrixBase_template_int_start.cpp | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) (limited to 'doc') diff --git a/doc/AsciiQuickReference.txt b/doc/AsciiQuickReference.txt index 6c1c4fbd8..86f77a66b 100644 --- a/doc/AsciiQuickReference.txt +++ b/doc/AsciiQuickReference.txt @@ -41,8 +41,8 @@ A.setIdentity(); // Fill A with the identity. // Eigen // Matlab x.start(n) // x(1:n) x.start() // x(1:n) -x.end(n) // N = rows(x); x(N - n: N) -x.end() // N = rows(x); x(N - n: N) +x.tail(n) // N = rows(x); x(N - n: N) +x.tail() // N = rows(x); x(N - n: N) x.segment(i, n) // x(i+1 : i+n) x.segment(i) // x(i+1 : i+n) P.block(i, j, rows, cols) // P(i+1 : i+rows, j+1 : j+cols) diff --git a/doc/C01_QuickStartGuide.dox b/doc/C01_QuickStartGuide.dox index 7c4aa8f76..2240ed8b1 100644 --- a/doc/C01_QuickStartGuide.dox +++ b/doc/C01_QuickStartGuide.dox @@ -493,7 +493,7 @@ Read-write access to sub-vectors: \code vec1.start(n)\endcode\code vec1.start()\endcodethe first \c n coeffs -\code vec1.end(n)\endcode\code vec1.end()\endcodethe last \c n coeffs +\code vec1.tail(n)\endcode\code vec1.tail()\endcodethe last \c n coeffs \code vec1.segment(pos,n)\endcode\code vec1.segment(pos)\endcode the \c size coeffs in \n the range [\c pos : \c pos + \c n [ diff --git a/doc/echelon.cpp b/doc/echelon.cpp index 49b719ff2..c95be6f3b 100644 --- a/doc/echelon.cpp +++ b/doc/echelon.cpp @@ -27,8 +27,8 @@ struct unroll_echelon m.row(k).swap(m.row(k+rowOfBiggest)); m.col(k).swap(m.col(k+colOfBiggest)); m.template corner(BottomRight) - -= m.col(k).template end() - * (m.row(k).template end() / m(k,k)); + -= m.col(k).template tail() + * (m.row(k).template tail() / m(k,k)); } }; @@ -59,7 +59,7 @@ struct unroll_echelon m.row(k).swap(m.row(k+rowOfBiggest)); m.col(k).swap(m.col(k+colOfBiggest)); m.corner(BottomRight, cornerRows-1, cornerCols) - -= m.col(k).end(cornerRows-1) * (m.row(k).end(cornerCols) / m(k,k)); + -= m.col(k).tail(cornerRows-1) * (m.row(k).tail(cornerCols) / m(k,k)); } } }; diff --git a/doc/snippets/MatrixBase_end_int.cpp b/doc/snippets/MatrixBase_end_int.cpp index aaa54b668..03c54a931 100644 --- a/doc/snippets/MatrixBase_end_int.cpp +++ b/doc/snippets/MatrixBase_end_int.cpp @@ -1,5 +1,5 @@ RowVector4i v = RowVector4i::Random(); cout << "Here is the vector v:" << endl << v << endl; -cout << "Here is v.end(2):" << endl << v.end(2) << endl; -v.end(2).setZero(); +cout << "Here is v.tail(2):" << endl << v.tail(2) << endl; +v.tail(2).setZero(); cout << "Now the vector v is:" << endl << v << endl; diff --git a/doc/snippets/MatrixBase_start_int.cpp b/doc/snippets/MatrixBase_start_int.cpp index eb43a5dc7..c261d2b4e 100644 --- a/doc/snippets/MatrixBase_start_int.cpp +++ b/doc/snippets/MatrixBase_start_int.cpp @@ -1,5 +1,5 @@ RowVector4i v = RowVector4i::Random(); cout << "Here is the vector v:" << endl << v << endl; -cout << "Here is v.start(2):" << endl << v.start(2) << endl; -v.start(2).setZero(); +cout << "Here is v.head(2):" << endl << v.head(2) << endl; +v.head(2).setZero(); cout << "Now the vector v is:" << endl << v << endl; diff --git a/doc/snippets/MatrixBase_template_int_end.cpp b/doc/snippets/MatrixBase_template_int_end.cpp index 0908c0305..f5ccb00f6 100644 --- a/doc/snippets/MatrixBase_template_int_end.cpp +++ b/doc/snippets/MatrixBase_template_int_end.cpp @@ -1,5 +1,5 @@ RowVector4i v = RowVector4i::Random(); cout << "Here is the vector v:" << endl << v << endl; -cout << "Here is v.end(2):" << endl << v.end<2>() << endl; -v.end<2>().setZero(); +cout << "Here is v.tail(2):" << endl << v.tail<2>() << endl; +v.tail<2>().setZero(); cout << "Now the vector v is:" << endl << v << endl; diff --git a/doc/snippets/MatrixBase_template_int_start.cpp b/doc/snippets/MatrixBase_template_int_start.cpp index 231fc3299..d336b3716 100644 --- a/doc/snippets/MatrixBase_template_int_start.cpp +++ b/doc/snippets/MatrixBase_template_int_start.cpp @@ -1,5 +1,5 @@ RowVector4i v = RowVector4i::Random(); cout << "Here is the vector v:" << endl << v << endl; -cout << "Here is v.start(2):" << endl << v.start<2>() << endl; -v.start<2>().setZero(); +cout << "Here is v.head(2):" << endl << v.head<2>() << endl; +v.head<2>().setZero(); cout << "Now the vector v is:" << endl << v << endl; -- cgit v1.2.3