@docfiller<EOL>def convolve1d(input, weights, axis=-<NUM_LIT:1>, output=None, mode="<STR_LIT>",<EOL>cval=<NUM_LIT:0.0>, origin=<NUM_LIT:0>):
weights = weights[::-<NUM_LIT:1>]<EOL>origin = -origin<EOL>if not len(weights) & <NUM_LIT:1>:<EOL><INDENT>origin -= <NUM_LIT:1><EOL><DEDENT>return correlate1d(input, weights, axis, output, mode, cval, origin)<EOL>
Calculate a one-dimensional convolution along the given axis.

    The lines of the array along the given axis are convolved with the
    given weights.

    Parameters
    ----------
    %(input)s
    weights : ndarray
        One-dimensional sequence of numbers.
    %(axis)s
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s

    Returns
    -------
    convolve1d : ndarray
        Convolved array with same shape as input