[eigen] Map with negative outer stride

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


Hi,

I have an Vector: {1,2,3,4,5,6}
And I need to construct a matrix of the special form it:

1 0 0 0 0 0
2 1 0 0 0 0
3 2 1 0 0 0
4 3 2 1 0 0
5 4 3 2 1 0
6 5 4 3 2 1

Is there a simple way to do that through mapings?




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