This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Is it allowed to set row vector to column vector?

Tags: None
(comma "," separated)
coolcat
Registered Member
Posts
20
Karma
0
OS
It seems that it is possible to "assign" a column vector with a row vector of the same size without actually changing the dimensions.
For example,
...
Vector3d v(1, 2,3);
RowVector3d w(4,5,6);
v = w;
...

After these codes, v is still the column vector.
Am I correct?
zoharl
Registered Member
Posts
55
Karma
0
OS
The type doesn't change.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
Yes, we allow for an implicit transposition in this case.


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]