summaryrefslogtreecommitdiff
path: root/docs/examples/userguide/numpy_ufuncs/ufunc_fused.pyx
blob: 3baf5813604d3e6e49e54adda0cc5b7277236d83 (plain)
1
2
3
4
5
6
7
# tag: numpy
cimport cython


@cython.ufunc
cdef cython.numeric generic_add_one(cython.numeric x):
    return x+1