Skip to content

Can classifier-reborn work with Numo::NArray / Numo::GSL ? Is that a better choice than nmatrix? #192

@0xdevalias

Description

@0xdevalias

I noticed that https://jekyll.github.io/classifier-reborn/#dependencies states we can use the rb-gsl gem to speed things up, and that in turn references using nmatrix or narray.

The linked narray GitHub page states that it is in maintenance mode, and links to Numo::NArray, which lists Numo::GSL under related projects.

Is it possible to use Numo::GSL with classifier-reborn?


Since rb-gsl can only use one of nmatrix or narray, i'm also wondering which would be the better (aka: faster) choice to use for this functionality?

In order to use rb-gsl with NMatrix you must first set the NMATRIX environment variable and then install rb-gsl: gem install nmatrix export NMATRIX=1 gem install rb-gsl

This will compile rb-gsl with NMatrix specific functions.

For using rb-gsl with NArray: gem install narray export NARRAY=1 gem install rb-gsl

Note that setting both NMATRIX and NARRAY variables will lead to undefined behaviour. Only one can be used at a time.

I also noticed that rb-gsl hasn't been updated since 2017, and so is most likely unmaintained:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions