andresy/torch — pull request #8 by pflaquerre (2012-01-24 23:04:48+00:00)
Title: Make tensor accessors const correct

Make tensor/storage access methods take a const THTensor\* as input instead of a THTensor\*. This allows code that deals with const THTensor\* to use THTensor_(get2d) etc. without compilation errors.