### Install Numo::NArray on Ubuntu/Debian/Windows Source: https://www.rubydoc.info/gems/numo-narray/0.9.2.1/gems/numo-narray Installs the Numo::NArray gem using apt and specific_install. This process requires git, Ruby development headers, rake, and make. It fetches and installs the gem directly from its GitHub repository. ```bash 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 ``` -------------------------------- ### Build Numo::NArray from Source Source: https://www.rubydoc.info/gems/numo-narray/0.9.2.1/gems/numo-narray Instructions for building Numo::NArray from its GitHub repository. This involves cloning the repository, installing dependencies with Bundler, and compiling the native extensions. ```bash git clone https://github.com/ruby-numo/numo-narray cd numo-narray bundle install bundle exec rake compile ``` -------------------------------- ### Run Tests for Numo::NArray Source: https://www.rubydoc.info/gems/numo-narray/0.9.2.1/gems/numo-narray Executes the test suite for the Numo::NArray gem. This command ensures the library is functioning correctly after building or making modifications. It also shows how to run tests for a specific line in a test file. ```bash bundle exec rake test bundle exec ruby test/bit_test.rb --location 27 ``` -------------------------------- ### Basic Usage of Numo::NArray in Ruby Source: https://www.rubydoc.info/gems/numo-narray/0.9.2.1/gems/numo-narray Demonstrates the basic usage of Numo::NArray in Ruby. It shows how to require the library, create a new DFloat array, access its shape, dimensions, class, and size. ```ruby require "numo/narray" a = Numo::DFloat.new(3,5).seq a.shape a.ndim a.class a.size ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.