Source code for mathops.summation

import numpy as np

[docs]def summation(a): """ Return summation of all elements from input array as floats. :param a: array a :type a: array :return: the sum :rtype: float """ return np.sum(a)