Merge pull request #127 from gcasey/master

Option to disable example building
Update README.md
Refactor any to not use any const_casts

Consider this a followup to #115. There's no need to use const_cast,
since it's very easy to make it work in a const-correct manner.
Merge pull request #137 from SpecLad/any-const

Refactor any to not use any const_casts
Fix compilation issues under MinGW
Added test
Merge branch 'master' of github.com:mariusmuja/flann
Add optional builds of tests and docs

Similar to the present BUILD_EXAMPLES this commit introduces
options for test and doc builds

Signed-off-by: Justin Lecher <jlec@gentoo.org>
Allow user supplied CUDA_NVCC_FLAGS

Respect enviromental CUDA_NVCC_FLAGS.

Signed-off-by: Justin Lecher <jlec@gentoo.org>
Fix compilation with nvcc-5.5

As reported in https://github.com/mariusmuja/flann/issues/133
we need to declare the functions for device and host.

Signed-off-by: Justin Lecher <jlec@gentoo.org>
Allow installation into lib64 instead of lib

This is needed for multilib system where /usr/lib isn't a symlink to /usr/lib64.

Signed-off-by: Justin Lecher <jlec@gentoo.org>
Support custom docdir

Allow user to specify a custom location for docs. On some Linux distributions
the docs are at /usr/share/doc/pkg-version rather then the unversioned dir.

Signed-off-by: Justin Lecher <jlec@gentoo.org>
Merge pull request #145 from jlec/test

Add optional builds of tests and docs
Merge pull request #147 from jlec/cuda

Allow user supplied CUDA_NVCC_FLAGS
Merge pull request #148 from jlec/cuda2

Fix compilation with nvcc-5.5
Merge pull request #149 from jlec/multilib

Fix compilation with nvcc-5.5
Merge pull request #150 from jlec/docdir

Support custom docdir
Pick centers in KMeans++ with a probability proportional to their distance^2, instead of simple distance, to previous centers
As some processed distances are already ^2, use template to select whether or not we have to ^2 in KMeanspp
Merge pull request #152 from pemmanuelviel/master

Better results with centers far from each other when selecting them in the chooseCentersKMeanspp stage