[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Help on argmax block
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] Help on argmax block |
Date: |
Mon, 16 Apr 2007 07:41:54 -0700 |
User-agent: |
Mutt/1.5.9i |
On Mon, Apr 16, 2007 at 10:20:59AM +0200, Trond Danielsen wrote:
> Hi,
>
> 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.
You could either implement two separate outputs, or declare a
structure containing the two values and use that as the output type.
I suspect that interleaving is going to be confusing and bug prone.
> Trond Danielsen
Eric