kmath icon indicating copy to clipboard operation
kmath copied to clipboard

JDK Vector API based linear algebra implementation

Open CommanderTvis opened this issue 3 years ago • 4 comments

CommanderTvis avatar Mar 16 '21 16:03 CommanderTvis

Really looking forward to this one.

altavir avatar Mar 16 '21 17:03 altavir

By the way, according to the Viktor developers' data, automatic vectorization is OK in JVM, so manual Vector arithmetic doesn't give any benefits. https://github.com/JetBrains-Research/viktor/issues/47

CommanderTvis avatar Jun 20 '21 12:06 CommanderTvis

The difference is that Vector API guarantees vectorization while regular loop will depend on JVM implementation. This issue priority is not very high, but it is good for external contributors.

altavir avatar Jun 20 '21 12:06 altavir

Another difference is that the loop vectorization is available since at least JDK 1.8, while Vector API starts with JDK 16. (This might or might not be a problem.)

dievsky avatar Jun 21 '21 18:06 dievsky