Giter Site home page Giter Site logo

thedayisntgray / numo-narray Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ruby-numo/numo-narray

0.0 0.0 0.0 3.07 MB

Ruby/Numo::NArray - New NArray class library

Home Page: http://ruby-numo.github.io/narray/

License: BSD 3-Clause "New" or "Revised" License

Ruby 17.64% C 69.73% HTML 0.07% Jupyter Notebook 12.57%

numo-narray's Introduction

Numo::NArray

Binder Build Status

GitHub | RubyGems

Numo::NArray is an Numerical N-dimensional Array class for fast processing and easy manipulation of multi-dimensional numerical data, similar to numpy.ndaray. This project is the successor to Ruby/NArray.

Documentation

All documents are primitive.

Related Projects

Installation

Requirement

Ruby ver 2.2 and later.

Ubuntu, Debian, Bash on Windows

apt install -y git ruby gcc ruby-dev rake make
gem install specific_install
gem specific_install https://github.com/ruby-numo/numo-narray.git

Quick start

An example

[1] pry(main)> require "numo/narray"
=> true
[2] pry(main)> a = Numo::DFloat.new(3,5).seq
=> Numo::DFloat#shape=[3,5]
[[0, 1, 2, 3, 4],
 [5, 6, 7, 8, 9],
 [10, 11, 12, 13, 14]]
[3] pry(main)> a.shape
=> [3, 5]
[4] pry(main)> a.ndim
=> 2
[5] pry(main)> a.class
=> Numo::DFloat
[6] pry(main)> a.size
=> 15

For more examples, check out the narray version of 100 numpy exercises.

Development

Build

git clone https://github.com/ruby-numo/numo-narray
cd numo-narray
bundle install
bundle exec rake compile

Run tests

bundle exec rake test

Tips: You may run tests defined in a specified line as:

bundle exec ruby test/bit_test.rb --location 27

numo-narray's People

Contributors

masa16 avatar kozo2 avatar ohai avatar naitoh avatar mrkn avatar sonots avatar kou avatar kojix2 avatar ankane avatar metanest avatar icm7216 avatar yoshoku avatar msp-greg avatar bjfish avatar dsisnero avatar nicolasleger avatar tamuratak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.