Boost logo

Ublas :

Subject: Re: [ublas] request for sparse vector example
From: Jose (jmalv04_at_[hidden])
Date: 2008-12-18 14:00:34


On Wed, Dec 17, 2008 at 10:27 PM, Gunter Winkler <guwi17_at_[hidden]> wrote:
> Have you been successful with this cosine similarity?

Yes

I define these two vectors:

compressed_vector<double> doc(10000000, 100000);
compressed_vector<double> q(10000000, 100000);

If I want to find the similarity between q vector and e.g. 1000
different doc vectors, is there any possible optimization to speed up
the results ?

Many thanks and regards
jose