- Notifications
You must be signed in to change notification settings - Fork42
Ruby/Numo::NArray - New NArray class library
License
NotificationsYou must be signed in to change notification settings
ruby-numo/numo-narray
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Numo::NArray is an Numerical N-dimensional Array classfor fast processing and easy manipulation of multi-dimensional numerical data,similar to numpy.ndarray.This project is the successor toRuby/NArray.
All documents are primitive.
- Numo::Linalg - Linear Algebra library withLAPACK.
- Numo::GSL - Ruby interface forGSL (GNU Scientific Library).
- Numo::FFTW - Ruby/Numo interface toFFTW (A Discrete Fourier Transform library.
- Numo::FFTE - Ruby interface forFFTE (A Fast Fourier Transform library with radix-2,3,5).
- Numo::Gnuplot - Simple and easy-to-use Gnuplot interface.
Ruby ver 2.2 and later.
apt install -y git ruby gcc ruby-dev rake makegem install specific_installgem specific_install https://github.com/ruby-numo/numo-narray.git
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 thenarray version of 100 numpy exercises.
- Wiki version of the 100 exercises
- Reproducible version of the 100 exercises (With this, you can try narray without creating an environment locally.)
git clone https://github.com/ruby-numo/numo-narraycd numo-narraybundle installbundleexec rake compile
bundleexec raketest
Tips: You may run tests defined in a specified line as:
bundleexec ruby test/bit_test.rb --location 27
About
Ruby/Numo::NArray - New NArray class library
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published