ipython/ipython — pull request #1819 by thisch (2012-05-31 21:53:29+00:00)
Title: doc: cleanup the parallel psums example a little

I replaced the random array `a` by a range so that the result of the sum operation can be verified analytically. Furthermore, I renamed the s variable in the psum function to `locsum`, because `s` is also used in `%px s = psum(a)` which confused me because both variables contain the same number coincidentally. In addition to that a scattered version of the range `a` is sent to the psum function which IMHO makes more sense.