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

Compatibility with stl's algorithm

Tags: None
(comma "," separated)
wingsit
Registered Member
Posts
28
Karma
0
OS

Compatibility with stl's algorithm

Tue Apr 13, 2010 2:53 pm
Hi all,

I am trying to use some of the stl's algorithm on eigen' data structure. However the stl's algorithm are iterator based, so quickly skim through the docs and I do not see much information about iterator (especially on matrices).

is eigen's data structure compatible with stl's algorithm?
User avatar
bjacob
Registered Member
Posts
658
Karma
3
We don't provide our own STL iterators interfact yet with begin()/end(), but eigen vectors/matrices are stored sequentially in memory, no padding/spacing, so they're very easy to address by pointers, and STL algorithms accept that.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]