<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def vtmvg(v1, matrix, v2, nrow, ncol):
 """ Multiply the transpose of a n-dimensional column vector a nxm matrix, and a m-dimensional column vector. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vtmvg_c.html :param v1: n-dimensional double precision column vector. :type v1: Array of floats :param matrix: nxm double precision matrix. :type matrix: NxM-Element Array of floats :param v2: m-dimensional double porecision column vector. :type v2: Array of floats :param nrow: Number of rows in matrix (number of rows in v1.) :type nrow: int :param ncol: Number of columns in matrix (number of rows in v2.) :type ncol: int :return: the result of (v1**t * matrix * v2 ) :rtype: float """

    v1 = stypes.toDoubleVector(v1)
    matrix = stypes.toDoubleMatrix(matrix)
    v2 = stypes.toDoubleVector(v2)
    nrow = ctypes.c_int(nrow)
    ncol = ctypes.c_int(ncol)
    return libspice.vtmvg_c(v1, matrix, v2, nrow, ncol)