andresy/torch — pull request #71 by akfidjeland (2012-10-03 14:04:50+00:00)
Title: Added missing form of CudaTensor:add

This adds the form that performs x:add(y,s,z), which was previously missing.

For the C/CUDA code I had to add a second version of cadd. I named this cadd_tst to reflect the order of the operands (tensor, scalar, tensor).