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

product on colwise or rowwise

Tags: None
(comma "," separated)
rtrepos
Registered Member
Posts
11
Karma
0

product on colwise or rowwise

Thu Dec 03, 2009 6:15 pm
Pehraps I did not find but is there a method to do the product of all elements of a colwise just like the sum, something like :

MatrixXd tmp(3,3)
tmp.colwise().prod()
User avatar
bjacob
Registered Member
Posts
658
Karma
3

Re: product on colwise or rowwise

Thu Dec 03, 2009 6:45 pm
This works in the development branch, not in 2.0.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
Hauke
Registered Member
Posts
109
Karma
3
OS

Re: product on colwise or rowwise

Thu Dec 03, 2009 6:49 pm
Just add semi-colons and include Eigen/Array and you should be good to go.

- Hauke
rtrepos
Registered Member
Posts
11
Karma
0

Re: product on colwise or rowwise

Fri Dec 04, 2009 10:22 am
ok thank you


Bookmarks



Who is online

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