From 628b1a8f6d2635bc7dadfd16f3af56b4a664e233 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 27 Sep 2007 07:42:12 +0000 Subject: implement scalar operators separately for each type using a macro. This is required e.g. to allow "2 * m" with m a matrix of doubles. --- doc/tutorial.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'doc/tutorial.cpp') diff --git a/doc/tutorial.cpp b/doc/tutorial.cpp index efadc9bfa..18a1ced55 100644 --- a/doc/tutorial.cpp +++ b/doc/tutorial.cpp @@ -5,16 +5,12 @@ using namespace Eigen; int main(int, char **) { - Matrix m, n; // 2x2 fixed-size matrix with uninitialized entries + Matrix m; // 2x2 fixed-size matrix with uninitialized entries m(0,0) = 1; m(0,1) = 2; m(1,0) = 3; m(1,1) = 4; - n = m; - n = eval(n*n+n); - cout << n << endl; - cout << "Here is a 2x2 matrix m:" << endl << m << endl; cout << "Let us now build a 4x4 matrix m2 by assembling together four 2x2 blocks." << endl; MatrixXd m2(4,4); // dynamic matrix with initial size 4x4 and uninitialized entries -- cgit v1.2.3