MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Apply function breaks Parallelize?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100090] Apply function breaks Parallelize?
  • From: elscimar at gmail.com
  • Date: Fri, 22 May 2009 23:41:25 -0400 (EDT)

Hello, all.

I'm trying to evaluate matrix multiplication in parallel, but I'm
running into a small snag.

I have a large vector of large matrices, and I want them multiplied.
However, I'm having difficulty getting it to parallelize, so I did a
little experiment.

This:

Parallelize[Dot[{{a,c},{b,d}},{{e,f},{g,h}},{{i,j},{k,l}},{{m,n},
{o,p}}]]

Evaluates without any problems.

However, if I try:

Parallelize[Dot@@{{{a,c},{b,d}},{{e,f},{g,h}},{{i,j},{k,l}},{{m,n},
{o,p}}}]

I get this error:
Parallelize::nopar1: Dot@@{{{a,c},{b,d}},{{e,f},{g,h}},{{i,j},{k,l}},
{{m,n},{o,p}}} cannot be parallelized; proceeding with sequential
evaluation. >>

Why would using the Apply[] function break Parallelize? If I type in
just the Dot@@{} bit, I get the exact same thing I'm putting into the
first one which works!


  • Prev by Date: Re: pde and bc
  • Next by Date: Re: NIntegrate & Integrate
  • Previous by thread: Re: MOVE/EXPORT FILES AT ONCE
  • Next by thread: Copy error message from messages window to clipboard?