Added protection for out-of-bounds #rank calls
Floor and ceiling, fixes #206, fixes #207.

Squashed commit of the following:

commit b985f7b52ca7b89ec50eddb3fde4f1fbee477a8e
Author: Sameer Deshmukh <sameer.deshmukh93@gmail.com>
Date:   Tue Apr 1 14:27:43 2014 +0530

    Typecasting fix

commit 9f4fa4a4470f6c51bec3d029f6c022d3704de836
Author: Sameer Deshmukh <sameer.deshmukh93@gmail.com>
Date:   Tue Apr 1 02:48:37 2014 +0530

    Amended Travis CI build error.

commit cdc55a23d42ee36cf7675f61909fac4ca9a34a20
Author: Sameer Deshmukh <sameer.deshmukh93@gmail.com>
Date:   Tue Apr 1 02:18:05 2014 +0530

    Exception handling added.

commit a257d286733096a97c658c235ca9a54513847ca2
Author: Sameer Deshmukh <sameer.deshmukh93@gmail.com>
Date:   Tue Apr 1 01:11:31 2014 +0530

    Rectified some errors in conversion to ruby object.

commit 5bfedc1801460e16a626501b15e21f7cfd7263cb
Author: Sameer Deshmukh <sameer.deshmukh93@gmail.com>
Date:   Sun Mar 30 03:37:41 2014 +0530

    Fixed bug with ruby object typecasting. Floor and ceil work great now.

commit a62f7400bd1a642a54ae97c36e3c33bdec000f88
Merge: 57f8d37 1795da3
Author: Sameer Deshmukh <sameer.deshmukh93@gmail.com>
Date:   Sun Mar 30 03:35:09 2014 +0530

    Merge branch 'master' of https://github.com/SciRuby/nmatrix

commit 57f8d37671fcd18fef019476cae5c515e2cef4b6
Author: Sameer Deshmukh <sameer.deshmukh93@gmail.com>
Date:   Mon Mar 24 23:08:40 2014 +0530

    removed newline

commit d307f763b7a07d26174d6d0f4075d651b2883981
Author: Sameer Deshmukh <sameer.deshmukh93@gmail.com>
Date:   Mon Mar 24 21:56:19 2014 +0530

    added ruby object

commit bff6b89a6df310a7c31d107c790e4c300d52e11d
Author: Sameer Deshmukh <sameer.deshmukh93@gmail.com>
Date:   Mon Mar 24 02:30:38 2014 +0530

    weird rspec error

commit 98cac0664ca606ed19f2e97de59e910eea034beb
Merge: 35d67ff 23373a2
Author: Sameer Deshmukh <sameer.deshmukh93@gmail.com>
Date:   Mon Mar 24 00:43:28 2014 +0530

    Merged new changes from parent branch

commit 35d67fff828d6275a82370ba0935f608e0bb5d50
Author: Sameer Deshmukh <sameer.deshmukh93@gmail.com>
Date:   Thu Mar 13 23:41:11 2014 +0530

    Added element wise floor functionality

    Element wise Ceil and Floor both work now.

    Rectified some mistakes in the code.

    Reworked floor and ceil.

    Removed casting from floor and ceil mappers.

    floor and ceil work properly for all but complex

    floor and ceil working well.

    removed c++ code

    optimized
Update history
Merge pull request #228 from andrewcsmith/issue-227-rank-allows-dimensions

Added protection for out-of-bounds #rank calls
Updated history for #228
Merge branch 'master' of github.com:SciRuby/nmatrix
Add BLAS i?amax function

The old one, `idamax`, wasn't using BLAS's functions when possible.
Besides, it was the wrong name! According to the specification, the
correct name is ixamax (where x \in {f,d,c,z}).
Using imax instead of idamax
Return a Ruby Fixnum

This commit also removes some compilation warnings. (yay)
Add test for NMatrix::BLAS.cblas_imax
Add documentation to NMatrix::BLAS.cblas_imax
Merge pull request #231 from agarie/blas_imax_imin

Make NMatrix::BLAS.cblas_imax call BLAS functions
Remove extra whitespace
NMatrix::BLAS.cblas_scal make use of CBLAS

First of all, `xscal` (x in {s,d,c,z}) seems to be a BLAS level 1
function instead of a LAPACK one according to the standard[1]. Thus I
reworded it to reflect reality and added calls to the cblas routines
(which also solves an old FIXME).

I still don't know how everything works in the NMatrix C/C++ world, but
it appears to work correctly.

[1]: http://www.compsci.wm.edu/sciclone/documentation/software/math/ATLAS/blas-report.pdf
Add specs to NMatrix::BLAS.cblas_scal
Fix indentation
Add documentation for NMatrix::BLAS.cblas_scal
[BLAS scal] Fix compilation problem

I introduced a small problem by *not reading* variable names and blindly
copying BLAS interfaces. Anyway, this patch should make compilation
(and, obviously, specs) work correctly.
Merge pull request #230 from agarie/blas_scal

Make NMatrix::BLAS.cblas_scal call BLAS functions
Added types to #have_func calls