Re: [eigen] Serious conflict between Dynamic and -1 in Diagonal<>

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


Hi,

it has to be of the same type as integral constants (1, 2, 10, etc.)
when used as a template parameter. Otherwise, we would had to do
something like:

Eigen::Matrix<double, Eigen::Size<3>, Eigen::Size<4> >

to declare a 3x4 matrix.

So there is no way we can detect users don't write Diagonal<MatrixXd,
Dynamic>, but well, according to the (future) documentation, it's like
someone write:

Diagonal<MatrixXd, Eigen::Success>

That's ok wrt the compiler, and we cannot detect such mistake, but it
just does not make sens.

gael

On Tue, Jul 10, 2012 at 3:05 PM, Rhys Ulerich <rhys.ulerich@xxxxxxxxx> wrote:
>> Not sure how you'd
>> accomplish that cleanly since DynamicSize is signed and DynamicIndex
>> has to be signed.
>
> I take that back if you'd intended to use a tag type and not an enum
> for DynamicIndex.  Curiosity, why was Dynamic made an integer instead
> of a tag type?
>
> - Rhys
>
>



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