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_ufuncandpy_binary_ufuncfunctions from dpctl headers. And also updated exiting ufuncs fromvmpybind11 extension to migrate and ti reuse these functions.The issue is a request to expose
py_unary_ufuncandpy_binary_ufuncfunctions as part of dpctl tensor header if it's possible.