- rework the coefficients API

- make vectors use a separate loop unroller, so that copying a
row-vector into a col-vector is now possible
- add much more documentation
- misc improvements
This commit is contained in:
Benoit Jacob
2007-12-24 11:14:25 +00:00
parent e937583655
commit 3cd2a125b2
24 changed files with 485 additions and 111 deletions

View File

@@ -0,0 +1,3 @@
Matrix4d m = Matrix4d::diagonal(Vector4d(1,2,3,4));
m.block<2, 2>(2, 0) = m.block<2, 2>(2, 2);
cout << m << endl;

View File

@@ -0,0 +1,3 @@
Matrix2d md = Matrix2d::identity() * 0.45;
Matrix2f mf = Matrix2f::identity();
cout << md + mf.cast<double>() << endl;

View File

@@ -0,0 +1,3 @@
Matrix3d m = Matrix3d::identity();
m.col(1) = Vector3d(4,5,6);
cout << m << endl;

View File

@@ -1,3 +1,3 @@
Matrix4d m = Matrix4d::identity();
m.dynBlock(2,0,2,2) = m.dynBlock(0,0,2,2);
Matrix3d m = Matrix3d::diagonal(Vector3d(1,2,3));
m.dynBlock(1, 0, 2, 1) = m.dynBlock(1, 1, 2, 1);
cout << m << endl;

View File

@@ -0,0 +1,3 @@
Matrix3d m = Matrix3d::identity();
m.row(1) = Vector3d(4,5,6);
cout << m << endl;

View File

@@ -1,5 +1,5 @@
#include <Eigen/Core.h>
USING_EIGEN_DATA_TYPES
USING_PART_OF_NAMESPACE_EIGEN
using namespace std;
int main(int, char**)
{