diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-04-03 14:17:56 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-04-03 14:17:56 +0000 |
commit | b8900d0b80734c6cca25595e8613d47f1d48909f (patch) | |
tree | 85d6ab8286d07708aa0d7ca790ff321d42d9b389 /Eigen/src/Core/CommaInitializer.h | |
parent | 4448f2620d732c999f9ca36cccf91814eed6cf09 (diff) |
More clever evaluation of arguments: now it occurs in earlier, in operator*,
before the Product<> type is constructed. This resets template depth on each
intermediate evaluation, and gives simpler code. Introducing
ei_eval_if_expensive<Derived, n> which evaluates Derived if it's worth it
given that each of its coeffs will be accessed n times. Operator*
uses this with adequate values of n to evaluate args exactly when needed.
Diffstat (limited to 'Eigen/src/Core/CommaInitializer.h')
0 files changed, 0 insertions, 0 deletions