Install ruby-narray by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-narray
Description:
Numerical N-dimensional Array library for Ruby
NArray is an extension library for Ruby that provides fast calculation and easy manipulation of large numerical arrays with the Ruby language. It has numerical n-dimensional array class as well as vector and matrix subclasses, which can contain 1/2/4-byte Integer, single/double-precision Real/Complex and Ruby Object.
Homepage: http://masa16.github.io/narray/
Version: 0.6.1.2-2build1
Section: universe/ruby