Mcore_handler.split_job_from_arrays_to_slaves

Mcore_handler.split_job_from_arrays_to_slaves(len_arrays)[source]

Split an array for parallel independant computing, by sharing independant sub-spaces of array index, the master gets a table of all jobs to do initialized to False

Parameters:

len_arrays (int) – length of the array containing the full job to perform in parallel

Returns:

mask – subspace of the array indexes, specific to each instantiation of the programm

Return type:

np.array