Message Boards Message Boards

0
|
1049 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Table vs ParallelTable with AppendTo Query

Posted 4 months ago

Just a short query regarding a basic implementation of the ParallelTable built-in function vs the Table function for the purpose of appending an empty list defined outside the Table.

Please see the attached code, why does Table append list a = {} but ParallelTable does not append list b = {}? How do you remedy this? Thanks.

Attachments:
POSTED BY: Byron Alexander
3 Replies
Posted 4 months ago

I found the answer.

SetSharedVariable[b];
POSTED BY: Byron Alexander
Posted 4 months ago

Hi,
ParallelTable is not compatible with AppendTo.

Why you don't write simply:

b=PäralleTable[1,{i,1,10}];b

Reda.

POSTED BY: Reda Kebbaj
Posted 4 months ago

SetSharedVariable oh! good!

POSTED BY: Reda Kebbaj
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract