nmslib/2.1.1

Non-Metric Space Library (NMSLIB): An efficient similarity search library and a toolkit for evaluation of k-NN methods for generic non-metric spaces.
Recipe info
2023-11-07

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
nmslib/2.1.1

Using nmslib

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
nmslib/2.1.1
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("nmslib/2.1.1")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): nmslib
  • CMake target name(s): nmslib::nmslib
  • pkg-config file name(s): nmslib.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(nmslib REQUIRED)
# ...
target_link_libraries(YOUR_TARGET nmslib::nmslib)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the nmslib homepage listed above:

#include "cmd_options.h"
#include "distcomp.h"
#include "distcomp_edist.h"
#include "eval_metrics.h"
#include "eval_results.h"
#include "experimentconf.h"
#include "experiments.h"
#include "factory/init_methods.h"
#include "factory/init_spaces.h"
#include "falconn_heap_mod.h"
#include "flexbuff.h"
#include "floatdiff.h"
#include "global.h"
#include "gold_standard.h"
#include "idtype.h"
#include "incremental_quick_select.h"
#include "index.h"
#include "init.h"
#include "inmem_inv_index.h"
#include "knnquery.h"
#include "knnqueue.h"
#include "logging.h"
#include "memory.h"
#include "meta_analysis.h"
#include "method/dummy.h"
#include "method/hnsw.h"
#include "method/hnsw_distfunc_opt_impl_inline.h"
#include "method/permutation_prefix_index.h"
#include "method/pivot_neighb_common.h"
#include "method/pivot_neighb_invindx.h"
#include "method/seqsearch.h"
#include "method/simple_inverted_index.h"
#include "method/small_world_rand.h"
#include "method/vptree.h"
#include "method/vptree_utils.h"
#include "methodfactory.h"
#include "my_isnan_isinf.h"
#include "object.h"
#include "params.h"
#include "params_cmdline.h"
#include "params_def.h"
#include "permutation_type.h"
#include "permutation_utils.h"
#include "portable_align.h"
#include "portable_intrinsics.h"
#include "portable_popcount.h"
#include "portable_prefetch.h"
#include "portable_simd.h"
#include "ported_boost_progress.h"
#include "pow.h"
#include "query.h"
#include "query_creator.h"
#include "rangequery.h"
#include "read_data.h"
#include "report.h"
#include "report_intr_dim.h"
#include "searchoracle.h"
#include "simddebug.h"
#include "sort_arr_bi.h"
#include "space.h"
#include "space/space_ab_diverg.h"
#include "space/space_bit_hamming.h"
#include "space/space_bit_jaccard.h"
#include "space/space_bit_vector.h"
#include "space/space_bregman.h"
#include "space/space_dummy.h"
#include "space/space_js.h"
#include "space/space_l2sqr_sift.h"
#include "space/space_leven.h"
#include "space/space_lp.h"
#include "space/space_rank_correl.h"
#include "space/space_renyi_diverg.h"
#include "space/space_scalar.h"
#include "space/space_sparse_bin_common.h"
#include "space/space_sparse_dense_fusion.h"
#include "space/space_sparse_jaccard.h"
#include "space/space_sparse_lp.h"
#include "space/space_sparse_scalar.h"
#include "space/space_sparse_scalar_bin_fast.h"
#include "space/space_sparse_scalar_fast.h"
#include "space/space_sparse_vector.h"
#include "space/space_sparse_vector_inter.h"
#include "space/space_sqfd.h"
#include "space/space_string.h"
#include "space/space_vector.h"
#include "space/space_vector_gen.h"
#include "space/space_word_embed.h"
#include "spacefactory.h"
#include "thread_pool.h"
#include "tune.h"
#include "utils.h"
#include "ztimer.h"