The following are several examples for creating your own ufuncs and generalized ufuncs for custom data types. All the examples use the custom dtype 'Rational' located in the numpy-dtypes repository on github.com
.. toctree:: :maxdepth: 2 extendingufunc newufunc newgufunc