0.0
No release in over 3 years
Numo::NArray Alternative is a project forked from Numo::NArray. The project aims to support the latest Ruby features, release bug fixes as quickly as possible, and adopt modern development practices.
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 Documentation

Numo::NArray Alternative (numo-narray-alt) is a project forked from Numo::NArray. The project aims to support the latest Ruby features, release bug fixes as quickly as possible, and adopt modern development practices. In addition, module names, class names, and method names remain unchanged for compatibility, making it a drop-in replacement. The project owner is also the developer of Rumale, a machine learning library, and may add new features to numo-narray-alt to support the needs of Rumale.

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 usage is exactly 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>

Documentation

Since it is compatible with Numo::NArray, the following Numo::NArray documentation is also useful.

Related Projects

Numo::NArray Alternative is used in the following projects:

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

This project follows Conventional Commits. Please run npm install to set up husky and commitlint for commit message validation:

$ npm install

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/yoshoku/numo-narray-alt. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

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