Indeed. Also on second thought, I think that reduction on complex types is not a very good idea. I suspect that with memory allocation at each step and data copied across processes, it will make for a pretty slow parallel code.
On Mon, May 25, 2015 at 8:15 PM, Toivo Henningsson <[email protected]> wrote: > Though you shouldn't really redefine + for types that you haven't created > yourself. But you could make your own container type where you define it, > or maybe it's enough to put the two return values in an array.
