See here.
Use at the head of your scripts,
require("rb_gsl") include GSL
or
require("gsl")
All the classes, modules, functions and constants of Ruby/GSL
are defined under the top-level module GSL
, or its submodules.
gsl_xxx
or GSL_XXX
. In Ruby/GSL, the prefix gsl_
is replaced by the module identifier, GSL::
. For example,
gsl_vector
---> Class GSL::Vector
GSL_SUCCESS
---> Constant GSL::SUCCESS
gsl_sf_bessel_J0
--->
GSL::Sf
GSL::Sf::bessel_J0
gsl_linalg_LU_decomp
--->
GSL::Linalg::LU
GSL::Linalg::LU.decomp
See sample codes in the "samples/" directory.