Boost logo

Boost Users :

Subject: Re: [Boost-users] ranking of ublas vector
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-14 10:42:45


AMDG

Kraus Philipp wrote:
> I think the problem is:
>
> we discuss about the "rank" and the "rank index".
>
> I my problem I only need the rank index and the value
> to calculate a new value like: exp( -rank_index) * vec(rank_index)
>
> So the smallest element in vec will be multiply with 1 and other
> elements with values < 1

This doesn't quite add up for me.

Taking the example from before, you have
[4](0.405121, 0.943918, 0.887914, 0.338921) and
[4](3, 0, 2, 1)

You don't want exp(-3) * vec(3), right? Is
exp(-0) * vec(3), exp(-1) * vec(0), ... correct?

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net