Linear:updateGradInput avoids NaN and inf

The resize in Linear:updateGradInput can introduce NaN and inf into the
gradients. The resize itself leaves garbage in the gradInput tensor.
For normal numbers the subsequent addmm/addmv will clear the garbage.
However, if gradInput contains either nan or inf after the resize, the
multiply will result in nan instead of the desired result.
Added reference to Alex's code.
Correct implementation of SpatialMaxPoolingCUDA (Sixin's port)
Sped up getParameters() in simple situations.
fine tune printing a bit more
Merge branch 'master' of github.com:andresy/torch
Merge pull request #117 from akfidjeland/linear_nan

Linear:updateGradInput avoids NaN and inf
Experimental feature: creating Storages from raw pointers, in Lua.
Fixed a missing </file>.
Clarified that elements in a row are contiguous in memory.
Mentioned that torch.cat() uses the last dimension by default.
LuaJIT is now on by default.
Merge pull request #121 from fidlej/topic_cat_dok

Mentioned that torch.cat() uses the last dimension by default.
Merge pull request #120 from fidlej/topic_stride_dok

Clarified that elements in a row are contiguous in memory.
Merge pull request #119 from fidlej/topic_CSubTable_dok

Fixed a missing </file>.
fix target detection in luajit cmakelists
Stupid bug in previous commit
make use tostring for printing the key.
Merge branch 'master' of github.com:andresy/torch
add indexing operators