Build a sparce matrix from dense matrix
https://rubygems.org/gems/sparse_matrix
. ├── Gemfile ├── Gemfile.lock ├── Guardfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── lib │ ├── sparse_matrix │ │ └── version.rb │ └── sparse_matrix.rb ├── pkg │ └── sparse_matrix-0.0.1.gem ├── sparse_matrix.gemspec └── spec ├── spec_helper.rb └── sparsematrix_spec.rb
Add this line to your application's Gemfile:
gem 'sparse_matrix'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sparse_matrix
Kevin Robayna Jose Antonio Rodriguez Leandro