Ask Your Question

nil's profile - activity

2019-08-31 10:02:12 -0600 received badge  Famous Question (source)
2018-12-05 17:09:44 -0600 received badge  Notable Question (source)
2018-06-27 07:08:30 -0600 received badge  Popular Question (source)
2016-05-20 03:32:54 -0600 asked a question mat transpose .t() a Nx2 mat gives me a 1x2N output.

Hi a Nx2 mat variable temp that has form

[a,b;
c,d;
e,f;
...,...]

in cout<<temp when i type temp.rows it gives me N, when i type temp.cols it gives me 1!!!!!! hence when I used temp.t() the cout output is a 1x2N row vector.

What happened ? Thx