multik icon indicating copy to clipboard operation
multik copied to clipboard

support vector api like jdk21

Open shouriken opened this issue 2 years ago • 3 comments

I'd like to have a sqrt, cbrt , ceil, floor, abs function and so on unary operator for NDArray. ceil function Behaviors:

array [1.2, 2.3] ceil return a new array [1.0, 2.0] for double or [1, 2] for int

I know, this can be resolved by map; but it can be more efficient if use native function with openblas. These functions more like jdk21 vector api. Do you have any plan for this? Thanks.

shouriken avatar May 11 '23 09:05 shouriken

I have been thinking about it for a long time, even since the days when Vector API was in the incubator. And I really want to do it. Especially in the context of matrix multiplication, it would provide a significant performance boost. Unfortunately, due to the support for two different JDKs, it is necessary to maintain two codebases, which complicates the already complex artifact dependency.

I will leave this issue, but its priority is currently lower than that of other tasks.

devcrocod avatar May 13 '23 17:05 devcrocod