torch/cutorch — pull request #58 by jonathantompson (2014-10-22 16:54:30+00:00)
Title: added clamp CudaTensor method

as promised...

Let me know if the tests are thorough enough. Also, I didn't know a built-in cublas for doing a clamp over float*... So I just make a functor instead. Hopefully the 2 branches aren't horribly slow.