0.0
No release in over 3 years
Numo::NArray Alternative is an experimental project forked from Numo::NArray.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

Numo::NArray Alternative

Gem Version Build Status BSD 3-Clause License

Numo::NArray Alternative is an experimental project forked from Numo::NArray. Its goal is to adopt more modern Ruby features and development practices. The project owner is also the developer of Rumale, a machine learning library, and may add new features to this project to support the needs of Rumale. In addition, since Rumale depends on Numo::NArray, namespaces, class names, and method names will be kept unchanged to allow this library to be used as a drop-in replacement.

The project owner has the utmost respect for Numo::NArray and its creator, Prof. Masahiro Tanaka. This project is in no way intended to adversely affect the development of the original Numo::NArray.

Installation

$ gem install numo-narray-alt

Usage

The same as Numo::NArray.

irb(main):001> require 'numo/narray'
=> true
irb(main):002> x = Numo::DFloat[[1, 2, 3], [4, 5, 6]]
=>
Numo::DFloat#shape=[2,3]
...
irb(main):003> x.dot(x.transpose)
=>
Numo::DFloat#shape=[2,2]
[[14, 32],
 [32, 77]]
irb(main):004>

Development

preparation:

$ git clone https://github.com/yoshoku/numo-narray-alt
$ cd numo-narray-alt
$ bundle install

build and test:

$ bundle exec rake compile
$ bundle exec rake test

linter:

$ bundle exec rubocop
$ clang-format --dry-run --Werror --style=file ext/**/*.h ext/**/*.c

Contributing

This project is in an early experimental stage. Therefore, we are not accepting any Issues or Pull Requests at this time. Thank you for your understanding.

License

This project was originally forked from Numo::NArray. It continues to be licensed under the BSD-3-Clause License.