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, http://mateusz.loskot.net

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