@docfiller<EOL>def prewitt(input, axis=-<NUM_LIT:1>, output=None, mode="<STR_LIT>", cval=<NUM_LIT:0.0>):
input = numpy.asarray(input)<EOL>axis = _ni_support._check_axis(axis, input.ndim)<EOL>output, return_value = _ni_support._get_output(output, input)<EOL>correlate1d(input, [-<NUM_LIT:1>, <NUM_LIT:0>, <NUM_LIT:1>], axis, output, mode, cval, <NUM_LIT:0>)<EOL>axes = [ii for ii in range(input.ndim) if ii != axis]<EOL>for ii in axes:<EOL><INDENT>correlate1d(output, [<NUM_LIT:1>, <NUM_LIT:1>, <NUM_LIT:1>], ii, output, mode, cval, <NUM_LIT:0>,)<EOL><DEDENT>return return_value<EOL>
Calculate a Prewitt filter.

    Parameters
    ----------
    %(input)s
    %(axis)s
    %(output)s
    %(mode)s
    %(cval)s