<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sumad(array):
 """ Return the sum of the elements of a double precision array. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sumad_c.html :param array: Input Array. :type array: Array of floats :return: The sum of the array. :rtype: float """

    n = ctypes.c_int(len(array))
    array = stypes.toDoubleVector(array)
    return libspice.sumad_c(array, n)