How to get both max value and position of max value together?

Issue #441 resolved
luis.dias created an issue

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)

  1. Log in to comment