torch/cutorch — pull request #17 by hycis (2014-06-12 04:47:57+00:00)
Title: Index select

from soumith,

hey, thanks for this PR. Can you make three changes.

remove the dependency for "socket" in indexSelect_speedCompare.lua by using os.clock() instead
add a test to check correctness (i.e. compare the CPU indexSelect to GPU indexSelect and make sure they are the same result).
move the indexSelect_speedCompare.lua test into test.lua