funclp.make_calculation module
- funclp.make_calculation(function, name, args, kwargs, out=None, ignore=False)[source]
Does the calculation for a given ufunc.
- Parameters:
function (Function) – the function object where to calculate.
name (str) – Name of the ufunc to calculate.
args (tuple) – Argument to use for calculation.
kwargs (dict) – Keyword arguments to use for calculation.
out (xp.ndarray) – Output array, if None will initialize it automatically.
ignore (xp.ndarray) – Boolean array defining for which model we ignore calculations.
- Returns:
out (xp.ndarray) – output array.
others (dict) – dictionnary containing all the other parameters calculated for this calculation. [nomodel, nopoint, nmodels, npoints, variables_shape, data_shape, parameters_shape, cuda, xp, transfer_back, blocks_per_grid, threads_per_block, variables, data, parameters, dtype, jitted]