|
Boost Users : |
Subject: Re: [Boost-users] [Proto] Reducing domain check in operator
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2009-02-26 13:33:37
Eric Niebler a écrit :
> Oh, you're using make_expr. If the result of exponent(x) is always in
> the domain of simd_domain<uint_t>, then you should use that as the
> domain parameter to make_expr instead of domain_of<T>::type.
Ha, right ! Forgot about domain_of. It fixes this indeed.
Concerning the other approach, I guess it boils down to have terminal of
the given function object laying around?
terminal< exponent_ > exponent ={{}};
How does it scale with a large number of function object (say > 300) in
term of compile time ?
Is there any advantage over make_expr ?
-- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net