Re: [eigen] conservative resize ...

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


There already is: MatrixBase<T>::IsVectorAtCompileTime.

2009/9/7 Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>:
> ok, i just gave it a quick shot but it seems that i need a small
> helper to distinguish between vectors and matrices in
> conservativeResizeLike(const MatrixBase<OtherDerived>& other). segment
> is only defined on vectors and when i would use block i would need to
> check for three different cases...
>
> if (matrix)
> else if (col-vector)
> else /*if (row-vector*/
>
> the question is now, where i should put such a helper struct? in xprhelper?
>
> - hauke
>
>
>



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