From 747d83a05a7fc47e15bc4a2d6d8429760ceb7891 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 18 Feb 2009 16:35:16 +0000 Subject: add size, rows, cols, (), (,) functions in ASCII ref --- doc/AsciiQuickReference.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/AsciiQuickReference.txt') 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. -- cgit v1.2.3