def vsubg(v1, v2, ndim):
    """
    Compute the difference between two double precision
    vectors of arbitrary dimension.

    http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vsubg_c.html

    :param v1: First vector (minuend). 
    :type v1: Array of floats
    :param v2: Second vector (subtrahend). 
    :type v2: Array of floats
    :param ndim: Dimension of v1, v2, and vout. 
    :type ndim: int
    :return: Difference vector, v1 - v2.
    :rtype: Array of floats
    """
    v1 = stypes.toDoubleVector(v1)
    v2 = stypes.toDoubleVector(v2)
    vout = stypes.emptyDoubleVector(ndim)
    ndim = ctypes.c_int(ndim)
    libspice.vsubg_c(v1, v2, ndim, vout)
    return stypes.cVectorToPython(vout)
Compute the difference between two double precision
    vectors of arbitrary dimension.

    http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vsubg_c.html

    :param v1: First vector (minuend). 
    :type v1: Array of floats
    :param v2: Second vector (subtrahend). 
    :type v2: Array of floats
    :param ndim: Dimension of v1, v2, and vout. 
    :type ndim: int
    :return: Difference vector, v1 - v2.
    :rtype: Array of floats