torch/torch7 — pull request #14 by nicholas-leonard (2014-03-06 22:10:53+00:00)
Title: torch.multinomial

A c-implementation for sampling a multinomial with or without replacement that returns a tensor of sampled indices.