|
Proto : |
Subject: Re: [proto] Transform result_of nightmare and preserving terminal identity
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-11-03 14:00:07
On 31/10/12 21:28, Agustín K-ballo Bergé wrote:
> Quoting from my original mail, what I want is to replace the following
> geometric vector expression:
>
> p = q + r;
>
> by
>
> p[0] = q[0] + r[0],
> p[1] = q[1] + r[1],
> ...,
> p[N] = q[N] + r[N],
> p;
>
> It **can** be done with a transform and that's what I did. The optimized
> proto expression evaluates ~33% faster than the original proto expression.
You could also evaluate the expression directly instead of rebuilding a
new expression to evaluate.
That would probably increase compilation performance.
Proto list run by eric at boostpro.com