Various improvements to the docs for unsupported.

* Enable compilation of examples for unsupported.
* Fix use of std::vector in BVH example.
* Add an example for the matrix exponential.
* Bug fixes in unsupported/doc/{examples,snippets}/CMakeLists.txt .
This commit is contained in:
Jitse Niesen
2009-12-07 19:10:11 +00:00
parent 36969cc2a5
commit 39ceba409b
7 changed files with 42 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
#include <Eigen/StdVector>
#include <unsupported/Eigen/BVH>
using namespace Eigen;
@@ -20,7 +21,8 @@ struct PointPointMinimizer //how to compute squared distances between points and
int main()
{
std::vector<Vector2d> redPoints, bluePoints;
typedef std::vector<Vector2d, aligned_allocator<Vector2d> > StdVectorOfVector2d;
StdVectorOfVector2d redPoints, bluePoints;
for(int i = 0; i < 100; ++i) { //initialize random set of red points and blue points
redPoints.push_back(Vector2d::Random());
bluePoints.push_back(Vector2d::Random());