Which matrix library

Hi,

I’m writing this email in a hope to have a better understanding, which matrix library is mostly used by the ruby community. Namely:
* https://github.com/ruby-numo/numo-narray
* https://github.com/SciRuby/nmatrix
* https://github.com/masa16/narray

or something else?
or is there a way to somehow query this, which ruby packages are depending on a given package?

the reason i’m wondering about this as i’m one of the maintainers of a machine learning library (shogun.ml). We already had for a while support for ruby, and we used narray to interface it with Ruby, meaning users could create their vectors and matrices in ruby using NArray and then pass that to a shogun model.
i’m currently working on fixing some of the bugs of this interface and give a general facelift to it, and try to generate a precompiled gem for shogun’s ruby interface and i was just wondering which matrix library should we support as it seems narray (the version we support) is not maintained anymore.

here’s a simple example of how this works (using nmatrix): https://gist.github.com/vigsterkr/48a5f0523528bbab85bec04464ca2b6c

cheers,
viktor

Hi Viktor,

numo-narray is actively maintained recently. nmatrix is not. narray is
obsoleted by num-narray, which is the successor library of narray.
I strongly recommend to employ numo-narray for supporting shogun in Ruby.

Regards,
Kenta Murata

···

2020年2月4日(火) 4:09 Viktor Gal <wiking@maeth.com>:

Hi,

I’m writing this email in a hope to have a better understanding, which matrix library is mostly used by the ruby community. Namely:
* https://github.com/ruby-numo/numo-narray
* https://github.com/SciRuby/nmatrix
* https://github.com/masa16/narray

or something else?
or is there a way to somehow query this, which ruby packages are depending on a given package?

the reason i’m wondering about this as i’m one of the maintainers of a machine learning library (shogun.ml). We already had for a while support for ruby, and we used narray to interface it with Ruby, meaning users could create their vectors and matrices in ruby using NArray and then pass that to a shogun model.
i’m currently working on fixing some of the bugs of this interface and give a general facelift to it, and try to generate a precompiled gem for shogun’s ruby interface and i was just wondering which matrix library should we support as it seems narray (the version we support) is not maintained anymore.

here’s a simple example of how this works (using nmatrix): https://gist.github.com/vigsterkr/48a5f0523528bbab85bec04464ca2b6c

cheers,
viktor

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Regards,
Kenta Murata