The core part of functionality to add any elementwise function is quite similar between dpnp and dpctl.
In scope of gh-1868 I proposed changes to dpnp code to add the same implementation per py_unary_ufunc and py_binary_ufunc functions from dpctl headers. And also updated exiting ufuncs from vm pybind11 extension to migrate and ti reuse these functions.
The issue is a request to expose py_unary_ufunc and py_binary_ufunc functions as part of dpctl tensor header if it's possible.
The core part of functionality to add any elementwise function is quite similar between dpnp and dpctl. In scope of gh-1868 I proposed changes to dpnp code to add the same implementation per
py_unary_ufunc
andpy_binary_ufunc
functions from dpctl headers. And also updated exiting ufuncs fromvm
pybind11 extension to migrate and ti reuse these functions.The issue is a request to expose
py_unary_ufunc
andpy_binary_ufunc
functions as part of dpctl tensor header if it's possible.