mango.core.sum2

mango.core.sum2(input, dtype=None)

Returns sum of all non-masked Dds elements-squared.

Parameters:
  • input (Dds) – Input elements for which sum of squared-elements is calculated.
  • dtype (numpy.dtype or dtype str) – Type used for summation of elements.
Return type:

scalar

Returns:

Sum of the squared-elements (i.e. scipy.sum((input.asarray())**2, dtype)).

Previous topic

mango.core.sum

Next topic

mango.core.count_equal_to

This Page