aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/AsciiQuickReference.txt
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-02-18 16:35:16 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-02-18 16:35:16 +0000
commit747d83a05a7fc47e15bc4a2d6d8429760ceb7891 (patch)
tree8c44368cd9b65e655f317699d4131baa3b671f73 /doc/AsciiQuickReference.txt
parenteb2cc8f5023230149c031e2b266a620c2f8aafe3 (diff)
add size, rows, cols, (), (,) functions in ASCII ref
Diffstat (limited to 'doc/AsciiQuickReference.txt')
-rw-r--r--doc/AsciiQuickReference.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/AsciiQuickReference.txt b/doc/AsciiQuickReference.txt
index d3d4f72c6..bcf402186 100644
--- a/doc/AsciiQuickReference.txt
+++ b/doc/AsciiQuickReference.txt
@@ -7,6 +7,14 @@
RowVector3f a, b, c; // 1x3 float matrix.
double s;
+// Basic usage
+// Eigen // Matlab // comments
+x.size() // length(x) // vector size
+C.rows() // size(C)(1) // number of rows
+C.cols() // size(C)(2) // number of columns
+x(i) // x(i+1) // Matlab is 1-based
+C(i,j) // C(i+1,j+1) //
+
A.resize(4, 4); // Runtime error if assertions are on.
B.resize(4, 9); // Runtime error if assertions are on.
A.resize(3, 3); // Ok; size didn't change.