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

How to add a new vector to a matrix?

Tags: None
(comma "," separated)
xueer
Registered Member
Posts
5
Karma
0

How to add a new vector to a matrix?

Mon May 27, 2013 10:56 am
such as if A is a 3X4 matrix and I want to add a col to A to make it 3X5, how should i do using Eigen ?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
you can call A.conservativeResize(3,5); and then A.col(4) = ...;


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]