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

swap rows/cols for sparse matrices

Tags: None
(comma "," separated)
cn_cologne
Registered Member
Posts
3
Karma
0
OS

swap rows/cols for sparse matrices

Thu Jun 23, 2011 2:07 pm
Hi,

how do i efficiently swap rows/columns for the sparse
type Eigen::DynamicSparseMatrix< double >?

The dense approach via

A.row(0).swap(A.row(1));

does not work.

thanks for any help,
carsten
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
indeed, that's missing and could be done efficiently. Please feel free to add a feature request there: http://eigen.tuxfamily.org/bz


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar