andresy/torch — pull request #86 by fidlej (2012-11-30 13:30:43+00:00)
Title: Updated flatten() in hessian.lua

I now updated flatten() in hessian.lua.
The updated version is synchronized with flatten() from Module.lua.
The torch.pointer(storage) is used as the hash key for the storage.

Would it make more sense to make the flatten() visible outside of Module.lua?
The exactly same flatten() can be reused inside of hessian.lua.