uncomplicate / neanderthal

Fast Clojure Matrix Library
http://neanderthal.uncomplicate.org
Eclipse Public License 1.0
1.07k stars 56 forks source link

Support primitive array transfer #25

Closed MrEbbinghaus closed 7 years ago

MrEbbinghaus commented 7 years ago

By now, only native matrices/vectors and clojure seqs are supported.

I have a large primitive array (81m ints). If I transfer this to a clojure seq (and therefore use boxed Objects) I'll use a lot of memory. This doesn't have to be since one can easily put the array directly into the internal ByteBuffer.

blueberry commented 7 years ago

Implemented this and many more variants in the latest commit.