A Rust implementation of Ruby Matrix class.
I am studying Rust and I'll try to make a drop in replacement for Matrix Ruby library.
I'm fresh new to Rust so I don't know if I would be able to acomplish this.
Done:
- Add Matrix gem repository as git submodule
- This will easy the task of keeping track with future updates
- Run Matrix gem original test suite against MatrixRs class
- Add rutie gem and boilerplate code
- Add a fake
MatrixRs.[]
and conect Ruby to Rust - Be able to run tests that talk to the Rust fake implementation
- Implemented
MatrixRs.[]
- Implemented simple
MatrixRs.to_s
over Debug trait - Implemented
MatrixRs.*
(dot product) over ndarray dot
OBS:
- Meanwhile MatrixRs is connected to its Rust counterpart.
- Some Rust code were added but it just doesn't do anything!
Add this line to your application's Gemfile:
gem 'matrix_rs'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install matrix_rs
TODO: Write usage instructions here
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
RUN_RUBY_MATRIX_TEST_SUITE=true
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/matrix_rs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the MatrixRs project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.