discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Help on argmax block


From: Trond Danielsen
Subject: Re: [Discuss-gnuradio] Help on argmax block
Date: Mon, 16 Apr 2007 16:25:14 +0200

2007/4/16, Johnathan Corgan <address@hidden>:
Trond Danielsen wrote:

> I've written a block that return the index of the largest element in a
> vector; in other words, it implements the argmax function. Now I have
> a small issue, I would relay like to get both the value and the index
> of the largest element in the vector. What would be the easiest way to
> do this? I am thinking of just sequencially outputing the index and
> the value after each other and de-interleaving them to get each result
> in a separate stream.

Since you are generating exactly one of each (value, index) per input
vector, why not just assign your block two output streams and stuff the
value into one and the index into the other?

Of cause... Silly me!

--
Trond Danielsen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]