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.
Make reduction on the columns of a matrix in c order faster on the GPU.
fix compilation crash
some pep8
fix comment. I ran the tests this time!
fix crash of profiling atexit when clashes with pycuda atexit handler
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.
Add function_dump() to help user give us reproducable example.
Handle race condition for directory creation.
Add doc
In the memory profiler, use the shortly cut for the strides.
Used python traceback module to set name of theano.function to file_name:line_number.
Moved linalg function using numpy to nlinalg.py in theano.tensor.
Isolated Scipy dependent function in slinalg.py.