Re: [eigen] RotationBase times DiagonalMatrix

[ Thread Index | Date Index | More Archives ]

On Sat, Sep 24, 2011 at 4:47 PM, Christoph Hertzberg
<chtz@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> I guess you meant Dim*(Dim+1). Besides the memory maybe also important is
> the increased number of flops: 2n²+n for Transform, vs. n for
> Translate/Scale.

Yes, of course. That's also an issue.

> Maybe introducing a
>  template<class Derived>
>  class TransformBase;
> is the solution. This would describe all Transformations -- affine or pure
> linear.

Probably the optimal solution. It just takes some time to implement
such a change.

> If then someone does:
>  Transform a = Translation(...);
> he'll get a performance/memory penalty, but that's exactly the same for
>  Matrix<..> m = Diagonal<...>(...);

We would already have this scenario, when we removed the explicit
keywords, right?

- Hauke

Mail converted by MHonArc 2.6.19+