Merge pull request #1969 from AlassaneNdiaye/fix__test_cross_validation.py

Modifications in order to pass the tests in pylearn2/cross_validation/tests/test_cross_validation.py
Do a copy when NumPy didn't allocate new memory.

An opt will remove this case if the repeat pattern is a constant 1.
Merge pull request #1971 from nouiz/tile

[BUG] Do a copy when NumPy didn't allocate new memory.
check return value for failure
Apply the previous fix elsewhere.
decref on t as this is clearner.
fix compilation crash
some pep8
fix comment. I ran the tests this time!
Add warning if the cuda lib dir is in the -L path.
Merge pull request #1976 from abergeron/fix_fatbin

Add warning if the cuda lib dir is in the -L path.
Merge pull request #1972 from nouiz/cumfct

Add check on the output of NumPy.
Fixed issue with test_svd
Modified the lstsq Op
The 3rd output is now an ndarray instead of an int.
We now check if the 1st ouput contains elements of type float instead of type int.
Some refactoring