aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Core/FromArray.h
Commit message (Collapse)AuthorAge
* rename Object -> MatrixBaseGravatar Benoit Jacob2007-11-27
|
* - improve and comment the "BasicStuff" test.Gravatar Benoit Jacob2007-11-26
| | | | | - adjust behavior of Matrix(int,int) constructor - s/EI_/EIGEN_/
* make shameless use of const_cast to reduce code redundancy. This means Eigen2Gravatar Benoit Jacob2007-10-15
| | | | | | gives up enforcing constness. I really tried to enforce it, but it really was much hassle because our expression templates can be lvalues (not only rvalues) and so much code had to be written twice.
* Merge WrapArray into FromArray. Less code. The downside is that we're using ↵Gravatar Benoit Jacob2007-10-14
| | | | | | | | | | | one more const_cast. But I think that anyway trying to maintain const strictness in Eigen2 is not worth the hassle. Konstantin: so the code snippet I sent you won't work anymore, replace wrapArray with fromArray. CCMAIL:konst.heil@stud.uni-heidelberg.de
* add fromArray() and wrapArray().Gravatar Benoit Jacob2007-10-14
For example, the following now works: double a1[3] = {1.0, 3.0, 2.0}, a2[3]; Vector3d::wrapArray(a2) = 2 * Vector3d::fromArray(a1); cout << Vector3d::fromArray(a2) << endl; // output: 2,6,4