Skip to main content

A Cython-based interface to the FLANN nearest neighbors library.

Project description

This is a Cython-based interface to the FLANN library.

If you’re just looking for any Python interface to FLANN, the ctypes interface that it ships with may be better for you. I wrote this interface for an application that needs to run lots of independent searches without the GIL.

The interface is currently incomplete; right now only float32 is supported, it also has some known issues, and is probably less friendly in general than it could be. If you want to use it, bug reports and/or pull requests are welcome.

Installation

If you use the Anaconda Python distribution, the easiest way to get both cyflann and FLANN is:

conda install -c http://conda.binstar.org/dougal cyflann

Otherwise, you need to install FLANN yourself, and can then run:

pip install cyflann

If you’re using FLANN 1.8.4 or earlier (the most recent release), a problem with its pkg-config files means that cyflann won’t link properly. This has been fixed in the development branch since April 2013, but there hasn’t been an official release since then. To work around this problem, set the environment variable FLANN_DIR to the root of the installation before running pip or setup.py, e.g. /usr/local if the libraries are in /usr/local/lib/libflann.so.

cyflann supports FLANN’s OpenMP wrappers, but has not been tested with its MPI or CUDA interfaces.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cyflann-0.1.21.tar.gz (149.0 kB view details)

Uploaded Source

File details

Details for the file cyflann-0.1.21.tar.gz.

File metadata

  • Download URL: cyflann-0.1.21.tar.gz
  • Upload date:
  • Size: 149.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cyflann-0.1.21.tar.gz
Algorithm Hash digest
SHA256 11e9bee1846746ef2c33256d4dba15272bab6f867b982b1d2d9eea2a9b57b901
MD5 d57042f9536b8e0acbce14dec124fb25
BLAKE2b-256 054be7459433caec7831443998d9078321c5948f2ea4f5936db5f8f8ad305ebe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page