[eigen] Map questions

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hi,

I would like to do something like

  Vector3d v;
  // v = something;
  double a[3];
  Map<Vector3d>(a) = v;

, which currently does not works.
How should I do that?


Another thing that could be a little bug:
it is currently possible to do

  const double a[3]={1,2,3};
  Map<Vector3d>(a).setZero();

, which discards the const qualifier of a.


Thanks,
Cristovao Sousa

---


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/