Sparse-matrix is a project mainly written in Ruby, it's free.
Sparse matrix and vector classes for Ruby