code: def vdotg(v1, v2, ndim):
      
      v1 = stypes.toDoubleVector(v1)
      v2 = stypes.toDoubleVector(v2)
      ndim = ctypes.c_int(ndim)
      return libspice.vdotg_c(v1, v2, ndim)
docs: Compute the dot product of two double precision vectors of
      arbitrary dimension.
  
      http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vdotg_c.html
  
      :param v1: First vector in the dot product. 
      :type v1: list[ndim]
      :param v2: Second vector in the dot product. 
      :type v2: list[ndim]
      :param ndim: Dimension of v1 and v2. 
      :type ndim: int
      :return: dot product of v1 and v2.
      :rtype: float