Boost logo

Boost :

Subject: Re: [boost] Boost SIMD beta release
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-12-20 18:25:50

On 20/12/12 20:09, Peter Dimov wrote:
> Mathias Gaunard wrote:
>> On 20/12/12 19:49, Peter Dimov wrote:
>> > This is tedious boilerplate so I wondered whether you had already
>> > provided a solution. simd::transform seems the logical place to put it.
>> simd::transform only has one input and one output.
>> How would it work with multiple inputs?
> I couldn't find the documentation of simd::transform in
> boost-simd-3.0b1.tgz, but assuming it's the same as std::transform, the
> same way as std::transform works with two inputs?

Yes that's supposed to be the same as std::transform.
I had forgotten there was a variant of std::transform with two inputs too.

But then there is not one for three inputs or more. The only way you
have to use an arbitrary amount of inputs is to use a zip_iterator

Boost list run by bdawes at, gregod at, cpdaniel at, john at