Transpose a column vector in torch
<p>I have a colum vector which I want to tranpose into row vector, I get the following error while doing it. Is there a way to tranpose 1 dimensional vectors in torch</p>

<pre><code>th&gt; bb
 1
 2
[torch.DoubleTensor of size 2]

                                                                      [0.0005s]
th&gt; bb:t()
[string "_RESULT={bb:t()}"]:1: calling 't' on bad self (Tensor must have 2 dimensions at /tmp/luarocks_torch-scm-1-5379/torch7/generic/Tensor.c:590)
stack traceback:
    [C]: in function 't'
    [string "_RESULT={bb:t()}"]:1: in main chunk
    [C]: in function 'xpcall'
</code></pre>