Boost logo

Boost Users :

Subject: Re: [Boost-users] can not compile nearest neighbors in d dimensions
From: Mateusz Łoskot (mateusz_at_[hidden])
Date: 2014-04-16 09:30:38

On 16 April 2014 15:00, Georgios Samaras <georgesamarasdit_at_[hidden]> wrote:
>>Never use tree methods in high dimensional spaces
> Good observations, but I am intrigued on the topic. This is way I want to
> see what Boost library is able to do there. But, I am afraid I can not even
> use it.

Think of a tuple:

std::tuple<int, int, int, int, [repeat 9996 times]>

and now imagine how to iterate over the elements.

Idiomatic way to achieve it is to use compile-time recursion.

Best regards,

Mateusz  Łoskot,

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at