aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-01-04 21:24:43 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-01-04 21:24:43 -0500
commit39ac57fa6ddf9a74d9a6cc213293914d2e05ec31 (patch)
tree6c5c83c68ca023799bc09ebcbe150f894cb33b3b /doc
parent78ba523d3038b854c5beca7a94cbe9b7e955a9f3 (diff)
Big renaming:
start ---> head end ---> tail Much frustration with sed syntax. Need to learn perl some day.
Diffstat (limited to 'doc')
-rw-r--r--doc/AsciiQuickReference.txt4
-rw-r--r--doc/C01_QuickStartGuide.dox2
-rw-r--r--doc/echelon.cpp6
-rw-r--r--doc/snippets/MatrixBase_end_int.cpp4
-rw-r--r--doc/snippets/MatrixBase_start_int.cpp4
-rw-r--r--doc/snippets/MatrixBase_template_int_end.cpp4
-rw-r--r--doc/snippets/MatrixBase_template_int_start.cpp4
7 files changed, 14 insertions, 14 deletions
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<n>() // x(1:n)
-x.end(n) // N = rows(x); x(N - n: N)
-x.end<n>() // N = rows(x); x(N - n: N)
+x.tail(n) // N = rows(x); x(N - n: N)
+x.tail<n>() // N = rows(x); x(N - n: N)
x.segment(i, n) // x(i+1 : i+n)
x.segment<n>(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:
<td></td>
<tr><td>\code vec1.start(n)\endcode</td><td>\code vec1.start<n>()\endcode</td><td>the first \c n coeffs </td></tr>
-<tr><td>\code vec1.end(n)\endcode</td><td>\code vec1.end<n>()\endcode</td><td>the last \c n coeffs </td></tr>
+<tr><td>\code vec1.tail(n)\endcode</td><td>\code vec1.tail<n>()\endcode</td><td>the last \c n coeffs </td></tr>
<tr><td>\code vec1.segment(pos,n)\endcode</td><td>\code vec1.segment<n>(pos)\endcode</td>
<td>the \c size coeffs in \n the range [\c pos : \c pos + \c n [</td></tr>
<tr style="border-style: dashed none dashed none;"><td>
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<CornerRows-1, CornerCols>(BottomRight)
- -= m.col(k).template end<CornerRows-1>()
- * (m.row(k).template end<CornerCols>() / m(k,k));
+ -= m.col(k).template tail<CornerRows-1>()
+ * (m.row(k).template tail<CornerCols>() / m(k,k));
}
};
@@ -59,7 +59,7 @@ struct unroll_echelon<Derived, Dynamic>
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;