more documentation and examples, add Doxyfile and Mainpage.dox and also

the benchmark program
This commit is contained in:
Benoit Jacob
2007-12-20 21:11:05 +00:00
parent cddeeee17d
commit 647a817b2e
10 changed files with 466 additions and 11 deletions

23
doc/benchmark.cpp Normal file
View File

@@ -0,0 +1,23 @@
// g++ -O3 -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark
#include "src/Core.h"
using namespace std;
USING_EIGEN_DATA_TYPES
int main(int argc, char *argv[])
{
Matrix3d I;
Matrix3d m;
for(int i = 0; i < 3; i++) for(int j = 0; j < 3; j++)
{
I(i,j) = (i==j);
m(i,j) = (i+3*j);
}
for(int a = 0; a < 100000000; a++)
{
m = I + 0.00005 * (m + m*m);
}
cout << m << endl;
return 0;
}