template_for_python_projects.numpy_example.sum_over_array module
- template_for_python_projects.numpy_example.sum_over_array.sum_over_array(arr: array | List) int | float [source]
This function returns the sum of all elements in an array.
very similar to
np.sum()
but written myself.- Parameters:
arr – an array or a list
- Returns:
the sum of all elements in the array