Boost logo

Boost :

Subject: Re: [boost] Boost SIMD beta release
From: Dave Abrahams (dave_at_[hidden])
Date: 2012-12-20 20:14:50

on Thu Dec 20 2012, "Peter Dimov" <> wrote:

> You can build three inputs over two (but not over one):
> d = s + s2 + s3;
> becomes
> d = s + s2;
> d = d + s3;
> It's not exactly the same, performance-wise, but the point is that two
> inputs are a necessary primitive, and three inputs are an
> optimization.

Unless you can zip, in which case only one input is needed. Most
languages only have the one-sequence version of "map"
(a.k.a. transform).

Dave Abrahams
BoostPro Computing                  Software Development        Training             Clang/LLVM/EDG Compilers  C++  Boost

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