torch/torch7 — pull request #45 by soumith (2014-06-18 23:07:53+00:00)
Title: stricter error checking for indexCopy

This makes sure that the source tensor for indexCopy will have exactly as many elements in dimension "dim" as the indices provided.

I'll leave this as an open PR for 24 hours for any objections.