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

find and min functions in eigen

Tags: None
(comma "," separated)
maxleoc
Registered Member
Posts
2
Karma
0

find and min functions in eigen

Mon Aug 31, 2015 8:49 pm
Hello, I am a beginner in eigen and want to implement a matlab code. My original code uses the find() function to give the indexes of a vector according to some criteria and the evaluate the this with a min function, like this

idx=find(ds<0);
alpha=min(alpha,min(-s(idx)./ds(idx)));

is there any similar function like this or any tip?? Thanks in advance for the help.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]