You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 10, 2017. It is now read-only.
It would be nice if netlib-java exposed NIO interfaces to its routines.
Direct ByteBuffers (and FloatBuffer, DoubleBuffer, etc) have the following neat features:
zero-copy between Java and native code, giving 100% performance parity with C.
as fast as primitive arrays
can memory-map files (Should be possible to do calculations directly on huge matrices residing on SSDs)
compatibility with code that already uses them (I've been using jcuda and jcublas and use direct bytebuffers, and have to incure double copy overhead to use an array-based jni api)