Dynamic dimensions

Willi Richert w.richert at gmx.net
Fri Mar 27 23:04:47 UTC 2009


Am Freitag, 27. März 2009 20:10:37 schrieb martin f krafft:
> also sprach Willi Richert <w.richert at gmx.net> [2009.03.27.1959 +0100]:
> > I just send the patch for a new libkdtree++ version where you don't have
> > to specify the number of dimensions at compile time. I moved the template
> > parameter __K to a normal KDTree argument dim.
>
> Why? What happens when you now search a 3D tree with a 2D or 4D
> coordinate?

It is needed so that bindings with dynamic typing (Python) don't have to 
instantiate each possible dim x type combination. The dimension is only 
specified once at the constructor. 

Regards,
wr



More information about the libkdtree-devel mailing list