NMatrix is the most powerful numeric linear algebra library for Ruby.
NMatrix is a library for numeric linear algebra built on top of ATLAS and LAPACK, providing various other features (e.g. sparse matrices) implemented in C++. It is part of the SciRuby project.