Project

pretty_gsl

0.0
No commit activity in last 3 years
No release in over 3 years
prettify ruby/gsl with more idiomatic ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

PrettyGSL

This gem provides a nice interface to the GNU scientific library through the Ruby/GSL wrapper. I've simply attempted to update the interface to use more idiomatic ruby.

Installation

Add this line to your application's Gemfile:

gem 'pretty_gsl'

And then execute:

$ bundle

Or install it yourself as:

$ gem install pretty_gsl

Usage

function          = Proc.new{ |variables, constants| ...}
optional_gradient = Proc.new{ |variables, constants, gradient_components| ...}
constants = [1,2,3, ...]
guess = [1,2,3, ...]
m = Minimizer.new(function, constants, function_gradient: optional_gradient)
m.minimize(*guess)
=> {:success=>true, :minimum_x=>[1, 2], :iterations=>50, :minimum_f=>30.0, :simplex_size=>0.0008 ... }

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request