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

how to find a few maximal elements in the array?

Tags: None
(comma "," separated)
skuksenko
Registered Member
Posts
1
Karma
0
Hi

there is a vector of indices J ={j1,j2,...jr}
int index;
mat - N*N
need to find
max = mat.col(i).maxCoeff( &index );
such that index did not belong J, i.e. index!=j1, j2,....Jr
how to do it?


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]