<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to PnumpyExample</title><link>https://sourceforge.net/p/pnumpy/wiki/PnumpyExample/</link><description>Recent changes to PnumpyExample</description><atom:link href="https://sourceforge.net/p/pnumpy/wiki/PnumpyExample/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 04 Feb 2014 00:54:19 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pnumpy/wiki/PnumpyExample/feed" rel="self" type="application/rss+xml"/><item><title>PnumpyExample modified by Alexander Pletzer</title><link>https://sourceforge.net/p/pnumpy/wiki/PnumpyExample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v9
+++ v10
@@ -45,16 +45,15 @@

 The following method can be used to access remote data 

-    # access window defined using the expose method
+    # use the key form the expose method to access the halo on a different process
     remoteData = da.get(remoteRank, winID='n')

 or

-    # ghosted array take a tuple as winID
+    # ghosted array takes a tuple as winID
     remoteData = da.get(remoteRank, winID=(1,0))
+
+Note that for ghosted distributed arrays, the key to the window is a tuple with elements -1, 0, or 1. The value -1 refers to the low end of the variable, +1 to the high end, and 0 indicates variation along this index. 

-
-
-
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Pletzer</dc:creator><pubDate>Tue, 04 Feb 2014 00:54:19 -0000</pubDate><guid>https://sourceforge.nete7464ccb43c78864404b75e4b79ba706e7b76a0e</guid></item><item><title>PnumpyExample modified by Alexander Pletzer</title><link>https://sourceforge.net/p/pnumpy/wiki/PnumpyExample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -35,7 +35,7 @@

 Use a ghosted distributed array if you want to expose the boundary of the array, otherwise also known as the halo. The thickness of the halo can be prescribed.

-    da = pnumpy.gaZeros( (2,3), numpy.float32, ghostWidth=1 )
+    da = pnumpy.ghZeros( (2,3), numpy.float32, ghostWidth=1 )

 This will expose one ghost along the north, south, east, and west sides of the array. The `winID` for these parts are `(1,0), (-1,0), (0,1),` and `(0,-1)` respectively.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Pletzer</dc:creator><pubDate>Mon, 03 Feb 2014 21:12:50 -0000</pubDate><guid>https://sourceforge.net0513ab91584ed12671cef62b3372b4a44600fc14</guid></item><item><title>PnumpyExample modified by Alexander Pletzer</title><link>https://sourceforge.net/p/pnumpy/wiki/PnumpyExample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -45,13 +45,13 @@

 The following method can be used to access remote data 

-     # access window defined using the expose method
-     remoteData = da.get(remoteRank, winID='n')
+    # access window defined using the expose method
+    remoteData = da.get(remoteRank, winID='n')

 or

-     # ghosted array take a tuple as winID
-     remoteData = da.get(remoteRank, winID=(1,0))
+    # ghosted array take a tuple as winID
+    remoteData = da.get(remoteRank, winID=(1,0))

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Pletzer</dc:creator><pubDate>Mon, 03 Feb 2014 12:57:16 -0000</pubDate><guid>https://sourceforge.net2f121c3ee4a4de6432612911f791f3dadfda60e5</guid></item><item><title>PnumpyExample modified by Alexander Pletzer</title><link>https://sourceforge.net/p/pnumpy/wiki/PnumpyExample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -22,8 +22,8 @@
     north = ( slice(-1, None, None), slice(0, None, None) )
     da.expose( slce=north, winID='n' )

-    # set the data 
-    da[:] = rk
+    # set the data to the rank value
+    da[:] = rk 

     # free the data
     da.free()
@@ -45,15 +45,16 @@

 The following method can be used to access remote data 

-     remoteData = da.get(remoteRank, winId='n')
+     # access window defined using the expose method
+     remoteData = da.get(remoteRank, winID='n')

 or

-     remoteData = da.get(remoteRank, winId=(1,0)) # access north side of remoteRank data
+     # ghosted array take a tuple as winID
+     remoteData = da.get(remoteRank, winID=(1,0))

-
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Pletzer</dc:creator><pubDate>Mon, 03 Feb 2014 12:56:16 -0000</pubDate><guid>https://sourceforge.netfd7e2ab158c25daf6f080c7cc9b53423159967db</guid></item><item><title>PnumpyExample modified by Alexander Pletzer</title><link>https://sourceforge.net/p/pnumpy/wiki/PnumpyExample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -35,9 +35,25 @@

 Use a ghosted distributed array if you want to expose the boundary of the array, otherwise also known as the halo. The thickness of the halo can be prescribed.

-    ga = pnumpy.gaZeros( (2,3), numpy.float32, ghostWidth=1 )
+    da = pnumpy.gaZeros( (2,3), numpy.float32, ghostWidth=1 )

-This will expose one ghost along the north, south, east, and west sides of the array. 
+This will expose one ghost along the north, south, east, and west sides of the array. The `winID` for these parts are `(1,0), (-1,0), (0,1),` and `(0,-1)` respectively.
+
+
+Accessing remote data
+---------------------
+
+The following method can be used to access remote data 
+
+     remoteData = da.get(remoteRank, winId='n')
+
+or
+
+     remoteData = da.get(remoteRank, winId=(1,0)) # access north side of remoteRank data

+
+
+
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Pletzer</dc:creator><pubDate>Mon, 03 Feb 2014 08:56:55 -0000</pubDate><guid>https://sourceforge.net1b23dccad3af5e8263e6ad18c35e997ddcd48ec1</guid></item><item><title>PnumpyExample modified by Alexander Pletzer</title><link>https://sourceforge.net/p/pnumpy/wiki/PnumpyExample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Pletzer</dc:creator><pubDate>Mon, 03 Feb 2014 08:49:26 -0000</pubDate><guid>https://sourceforge.net2438c6c018310e23a169482728f98f5c6bea6a60</guid></item><item><title>PnumpyExample modified by Alexander Pletzer</title><link>https://sourceforge.net/p/pnumpy/wiki/PnumpyExample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -3,9 +3,9 @@

 All examples require you to import 

-```
+
     import pnumpy
-```
+

 Distributed array
 -----------------
@@ -18,7 +18,7 @@
     rk = da.rk
     nprocs = da.sz

-    # expose the high end of the first index (-1)
+    # expose the high end of the first index (-1 refers to last index in python)
     north = ( slice(-1, None, None), slice(0, None, None) )
     da.expose( slce=north, winID='n' )

@@ -27,3 +27,17 @@

     # free the data
     da.free()
+
+You can expose as many parts as you want. The number of slices should match the number if indices in the array. slice(0, None, None) refers to 0:-1 with a stride of one. 
+
+Ghosted distributed array
+-------------------------
+
+Use a ghosted distributed array if you want to expose the boundary of the array, otherwise also known as the halo. The thickness of the halo can be prescribed.
+
+    ga = pnumpy.gaZeros( (2,3), numpy.float32, ghostWidth=1 )
+
+This will expose one ghost along the north, south, east, and west sides of the array. 
+
+
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Pletzer</dc:creator><pubDate>Mon, 03 Feb 2014 08:49:26 -0000</pubDate><guid>https://sourceforge.netee459891cd02391c518c711ce334790f3f2dd7e3</guid></item><item><title>PnumpyExample modified by Alexander Pletzer</title><link>https://sourceforge.net/p/pnumpy/wiki/PnumpyExample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -2,30 +2,28 @@
 ===============

 All examples require you to import 
-`
-import pnumpy
-`
+
+```
+    import pnumpy
+```

 Distributed array
 -----------------

 Use this class if you want the flexibility to expose any parts of your array to other processes. 

-`
-# create dist array and fill with zeros
-da = pnumpy.daZeros( (2,3), numpy.float32 )
+    # create dist array and fill with zeros
+    da = pnumpy.daZeros( (2,3), numpy.float32 )
+    # processor rank and number of processes
+    rk = da.rk
+    nprocs = da.sz

-# processor rank and number of processes
-rk = da.rk
-nprocs = da.sz
+    # expose the high end of the first index (-1)
+    north = ( slice(-1, None, None), slice(0, None, None) )
+    da.expose( slce=north, winID='n' )

-# expose the high end of the first index (-1), extending across the array (0...
-north = ( slice(-1, None, None), slice(0, None, None) )
-da.expose( slce=north, winID='n' )
+    # set the data 
+    da[:] = rk

-# set the data 
-da[:] = rk
-
-# free the data
-da.free()
-`
+    # free the data
+    da.free()
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Pletzer</dc:creator><pubDate>Mon, 03 Feb 2014 08:42:27 -0000</pubDate><guid>https://sourceforge.net19cf726db7887ffa939cb3708ba427208d162d8e</guid></item><item><title>PnumpyExample modified by Alexander Pletzer</title><link>https://sourceforge.net/p/pnumpy/wiki/PnumpyExample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -2,7 +2,30 @@
 ===============

 All examples require you to import 
-{{{
+`
 import pnumpy
-}}}
+`

+Distributed array
+-----------------
+
+Use this class if you want the flexibility to expose any parts of your array to other processes. 
+
+`
+# create dist array and fill with zeros
+da = pnumpy.daZeros( (2,3), numpy.float32 )
+
+# processor rank and number of processes
+rk = da.rk
+nprocs = da.sz
+
+# expose the high end of the first index (-1), extending across the array (0...
+north = ( slice(-1, None, None), slice(0, None, None) )
+da.expose( slce=north, winID='n' )
+
+# set the data 
+da[:] = rk
+
+# free the data
+da.free()
+`
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Pletzer</dc:creator><pubDate>Mon, 03 Feb 2014 08:19:54 -0000</pubDate><guid>https://sourceforge.net6b9a4cb4449165accb9878bc9b2936f291bcf282</guid></item><item><title>PnumpyExample modified by Alexander Pletzer</title><link>https://sourceforge.net/p/pnumpy/wiki/PnumpyExample/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="pnumpy-examples"&gt;pnumpy examples&lt;/h1&gt;
&lt;p&gt;All examples require you to import &lt;br /&gt;
{{{&lt;br /&gt;
import pnumpy&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>Mon, 03 Feb 2014 08:07:03 -0000</pubDate><guid>https://sourceforge.net8e79b43288c26236fb9c58731b158b296e151149</guid></item></channel></rss>