- changed status to resolved
How to get both max value and position of max value together?
Issue #441
resolved
Hi,
I am currently getting both max value and position from a vector like so:
blaze::DynamicVector<float> abs_xcorr = blaze::abs(xcorr_fd);
float peakVal = blaze::max(abs_xcorr);
int peakPos = blaze::argmax(abs_xcorr);
Is it possible to get both together from a single method call instead of relying on both blaze::max
and blaze::argmax
?
Thanks in advance!
Comments (1)
-
reporter - Log in to comment
I was tired, I can only use the position as the index and get max value from the index.