@docfiller
def convolve1d(input, weights, axis=(-1), output=None, mode='reflect', cval=0.0, origin=0):
 weights = weights[::(-1)]
 origin = (- origin)
 if (not (len(weights) & 1)):
  origin -= 1
 return correlate1d(input, weights, axis, output, mode, cval, origin)

@ docfiller def convolve1d ( input , weights , axis = ( - 1 ) , output = None , mode = 'reflect' , cval = 0.0 , origin = 0 ) : weights = weights [ : : ( - 1 ) ] origin = ( - origin ) if ( not ( len ( weights ) & 1 ) ) : origin -= 1 return correlate1d ( input , weights , axis , output , mode , cval , origin )
calculate a one-dimensional convolution along the given axis .