I have a function in the following form:
function[...] := With[
{...},
Table[
anotherfunction[i, j, ...],
{i, ...},
{j, ...},
...
]
]
If I'd like to replace Table
with ParallelTable
, do I need to put DistributeDefinitions["Global`"]
somewhere? If yes, where? (Before With
, before ParallelTable
, or before calling function
?)
anotherfunction
is defined globally, and uses other global variables.