nmatrix
NMatrix, also styled as nmatrix, is a matrix and multi-dimensional array library for the Ruby programming language. It is a key component of the SciRuby project, created to provide high-performance numerical data structures and operations for scientific computing in Ruby. The library offers dense and sparse representations and aims to combine Ruby’s usability with efficient, lower-level implementations.
NMatrix provides multi-dimensional arrays with customizable data types, including common numeric types such as floating-point and
Implementation and backends are centered on a native Ruby C extension, which enables performance improvements over
In practice, NMatrix is used as a core building block for numerical computing in Ruby, providing a