TH: fix speed issue due to calls to THTensor_nElement()
TH: optimization for normall
TH: optimization for cadd
return the tester object if another framework wants to use it.
__index__ and __newindex__ can leak a tensor if it reports a lua error. This change only fixes leaks that occur during the tests.
Merge pull request #15 from timharley/master

Stop __index__ and __newindex__ leaking a tensor during torch.test()
Run torch tests by name, or by index.
Merge pull request #16 from timharley/master

Run torch tests by name, or by index.