daru
https://github.com/sciruby/daru
Ruby
Data Analysis in RUby
Daru::Vector#to_gsl
If dtype != gsl, will convert data to GSL::Vector with to_a. Otherwise returns the stored GSL::Vector object.
Edit
git clone [email protected]:sciruby/daru.git
cd daru
open lib/daru/vector.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Daru--Vector-to_gsl-for-pr
# Commit to gitgit add lib/daru/vector.rbgit commit -m "better docs for Daru::Vector#to_gsl"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Daru--Vector-to_gsl-for-pr
hub pull-request
# Celebrate!