def _square_of_sums(a, axis=0):
 (a, axis) = _chk_asarray(a, axis)
 s = np.sum(a, axis)
 if (not np.isscalar(s)):
  return (s.astype(float) * s)
 else:
  return (float(s) * s)

def _square_of_sums ( a , axis = 0 ) : ( a , axis ) = _chk_asarray ( a , axis ) s = np . sum ( a , axis ) if ( not np . isscalar ( s ) ) : return ( s . astype ( float ) * s ) else : return ( float ( s ) * s )
sums elements of the input array .