Skip to content

konovod/crystal-gsl

 
 

Repository files navigation

crystal-gsl

Linux CI MacOS CI Windows CI API Documentation

GNU Scientific Library (GSL) binding for Crystal

Installation

Add this to your application's shard.yml:

dependencies:
  gsl:
    github: konovod/crystal-gsl

Run shards install

System dependencies

Ubuntu

  • libatlas-base-dev
  • libgsl-dev

Fedora

  • gsl
  • gsl-devel

MacOS

  • brew install gsl

Windows

Usage

require "gsl"

Documentation

(Incomplete) documentation can be found here. It is generated from sources, so can be messy.

You can also check original GSL docs for details of implementation and theory (https://www.gnu.org/software/gsl/doc/html/)

Examples

You can check spec directory for some simple examples

Warning:

  • Mostly tested, but some bugs are possible
  • Pre-release (API could break)
  • Perhaps not ready for production

Status

If you know GSL, you can call all GSL functions directly: LibGSL.gsl_some_function(arg, ...). This could be cumbersome, but it works.

For a high-level wrappers, see TODO.md for detailed list on what is done\missing.

Below is a categorized list of what is done (with links to docs):

Contributing

  1. Fork it ( https://github.com/konovod/crystal-gsl/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

GNU Scientific Library bindings for Crystal

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Crystal 100.0%