title: Torch: delete tensor columns by indices
body: <p>I would like to delete tensor columns by an array or tensor of indices. For example:</p>
  
  <pre><code>th&gt; X = torch.rand(2,4)
  
  th&gt; X
   0.7475  0.2512  0.6085  0.6414
   0.7143  0.8299  0.2929  0.6945
  [torch.DoubleTensor of size 2x4]
  
  th&gt; indices = torch.zeros(2)
  
  th&gt; indices[1] = 1
  
  th&gt; indices[2] = 3
  
  th&gt; indices
   1
   3
  [torch.DoubleTensor of size 2]
  
  th&gt; X:delete(indices)
   0.2512  0.6414
   0.8299  0.6945
  </code></pre>