Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • can this construction with the column_stack with a tuple than be used to make an @parallel decorator? ( Commented May 21, 2013 at 7:11
  • by "@parallel decorator", I assume you refer to the IPython parallel setup, which I've never used. This looks like a case that would work for it. My answer is already parallel using multiprocessing, but you could look into the ipython solution as well. Commented May 21, 2013 at 13:52
  • No, by the @parallel, i mean just a decorator that is general in use, and that executes in parallel whatever function you use it on, (could be useful for image processing or stuff that massively uses ndarrays for simulations etc- Commented May 31, 2013 at 8:19
  • @usethedeathstar As far as I know there is no general use parallel decorator, as there are several different ways to implement parallelism in python, some of which use threads, some use processes, and therefore have different handling of the GIL. The decorator I was referring to is the one provided by IPython's parallel construct but I don't believe it can be used outside of IPython. Using numpy instead of builtins like zip will also run parallel Commented May 31, 2013 at 16:30