<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to PnumpyReduce</title><link>https://sourceforge.net/p/pnumpy/wiki/PnumpyReduce/</link><description>Recent changes to PnumpyReduce</description><atom:link href="https://sourceforge.net/p/pnumpy/wiki/PnumpyReduce/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 05 Feb 2014 13:02:23 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pnumpy/wiki/PnumpyReduce/feed" rel="self" type="application/rss+xml"/><item><title>PnumpyReduce modified by Alexander Pletzer</title><link>https://sourceforge.net/p/pnumpy/wiki/PnumpyReduce/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="applying-reduce"&gt;Applying reduce&lt;/h2&gt;
&lt;p&gt;To apply a reduction operation across all the elements of the distributed array, simply call, for instance, &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;checkSum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;da&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;reduce&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rootPe&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;with the first argument being a function and the second (optional) argument being the rank of the process where the value is gathered. Here, checkSum will be None on all processes except &lt;code&gt;rootPe&lt;/code&gt;.&lt;br /&gt;
&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Pletzer</dc:creator><pubDate>Wed, 05 Feb 2014 13:02:23 -0000</pubDate><guid>https://sourceforge.net26d9c585943cc3ab6571a678c0c745e6cf5b718c</guid></item></channel></rss>