Sha256: c90efc827ba789cebee160b7672da3d745959dd68f2569e5556ab4089ff76e66

Contents?: true

Size: 1.53 KB

Versions: 1

Compression:

Stored size: 1.53 KB

Contents

# Contributing guide

## Installing daru development dependencies

If you want to run the full rspec suite, you will need the latest unreleased nmatrix gem. They will released upstream soon but please follow this procedure for now.

Keep in mind that either nmatrix or rb-gsl are NOT NECESSARY for using daru. They are just required for an optional speed up and for running the test suite.

To install dependencies, execute the following commands:

  `export CPLUS_INCLUDE_PATH=/usr/include/atlas` 
  `export C_INCLUDE_PATH=/usr/include/atlas`
  `sudo apt-get update -qq`
  `sudo apt-get install -qq libatlas-base-dev`
  `sudo apt-get --purge remove liblapack-dev liblapack3 liblapack3gf`
  `sudo apt-get install -y libgsl0-dev r-base r-base-dev`
  `sudo Rscript -e "install.packages(c('Rserve','irr'),,'http://cran.us.r-project.org')"`

Then execute the [.build.sh script](https://github.com/v0dro/daru/blob/master/.build.sh) to clone and install the latest nmatrix system:

  `./.build.sh`

Then finally install remaining dependencies:

  `bundle install`

And run the test suite (should be all green with pending tests):

  `bundle exec rspec`

If you have problems installing nmatrix, please consult the [nmatrix installation wiki](https://github.com/SciRuby/nmatrix/wiki/Installation) or the [mailing list](https://groups.google.com/forum/#!forum/sciruby-dev).

## Daru internals

To get an overview of certain internals of daru and their implementation, go over [this blog post](http://v0dro.github.io/blog/2015/08/16/elaboration-on-certain-internals-of-daru/).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
daru-0.1.1 CONTRIBUTING.md