-add set...() methods and their documentation; remove Generic

-use row-major traversal when the number of columns is fixed
 and the number of rows is dynamic
-other minor changes
This commit is contained in:
Benoit Jacob
2008-01-11 15:08:04 +00:00
parent aae0667e1e
commit e092cbc75c
20 changed files with 112 additions and 26 deletions

View File

@@ -16,7 +16,7 @@ int main(int argc, char *argv[])
}
for(int a = 0; a < 400000000; a++)
{
m = I + 0.00005 * (m + m*m);
m = Matrix3d::identity() + 0.00005 * (m + m*m);
}
cout << m << endl;
return 0;

View File

@@ -0,0 +1,3 @@
Matrix4i m = Matrix4i::zero();
m.block<3,3>(1,0).setIdentity();
cout << m << endl;

View File

@@ -0,0 +1,3 @@
Matrix4i m = Matrix4i::random();
m.row(1).setOnes();
cout << m << endl;

View File

@@ -0,0 +1,3 @@
Matrix4i m = Matrix4i::zero();
m.col(1).setRandom();
cout << m << endl;

View File

@@ -0,0 +1,3 @@
Matrix4i m = Matrix4i::random();
m.row(1).setZero();
cout << m << endl;