[eigen] Map & TensorMap and setData() functionality |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] Map & TensorMap and setData() functionality
- From: Gabriel <gnuetzi@xxxxxxxxx>
- Date: Thu, 8 Oct 2015 11:07:03 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=czJ2jafcUmeaWprA9XZmHY3A49OrWjBvLU1FnB5H6s0=; b=Cj/nNoWRbZLnA8DziMwnVYNHUvvJ56YnGdbxph+enWpb1L9HroE4p93UcmFiXTitbn yIZiPhc38Q3jE6ntxR9epJ0E903UUZSOCVZhaaV3mihnBsi4VJEvyWj4MwQgVLd4m7pe oPyEBebdKq7mJXvCqAC5EnZJKASdfmscwujZN07gZJ7ThQnnGgiFB48IhIcYg2Un5xjw 5Of1o2pjvYKND0kd9LE1fAYbOxWGt/MIVefH5KsT0YKLvuK3ALBroUZEs+kMpZ2i5ypv k24a9YxH6nk5X3nXS71VrVyuNJ6qtTKEm4WeHU0kP0WaBPuvw6g75g7Sooflurr43HCw 8mkA==
Why is there no functionality for
Map<EigenType> a(ptr);
a->setData(otherPtr);
That would be helpful, if we want to store a mapping expression
somewhere and change the data ptr around.
Of course so far this is not possible, but we always need to do this to
somehow mimic this
a = Map<EigenType>(otherPtr);
Is there a reason for not setData() functionality?
The same would apply for TensorMap, where a setData function would even
be more efficient since the constructor always needs an DSize
(dimension) array...?
a = TensorMap(otherPtr, dimensions);
I think miss something here ? :)
BR Gabriel