# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.1
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.





from sys import version_info
if version_info >= (2,6,0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_swigfaiss', [dirname(__file__)])
        except ImportError:
            import _swigfaiss
            return _swigfaiss
        if fp is not None:
            try:
                _mod = imp.load_module('_swigfaiss', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _swigfaiss = swig_import_helper()
    del swig_import_helper
else:
    import _swigfaiss
del version_info
try:
    _swig_property = property
except NameError:
    pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "thisown"): return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
    return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
    if (name == "thisown"): return self.this.own()
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError(name)

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

try:
    _object = object
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0


class FloatVector(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, FloatVector, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, FloatVector, name)
    __repr__ = _swig_repr
    def __init__(self): 
        this = _swigfaiss.new_FloatVector()
        try: self.this.append(this)
        except: self.this = this
    def push_back(self, *args): return _swigfaiss.FloatVector_push_back(self, *args)
    def data(self): return _swigfaiss.FloatVector_data(self)
    def size(self): return _swigfaiss.FloatVector_size(self)
    def at(self, *args): return _swigfaiss.FloatVector_at(self, *args)
    def resize(self, *args): return _swigfaiss.FloatVector_resize(self, *args)
    __swig_destroy__ = _swigfaiss.delete_FloatVector
    __del__ = lambda self : None;
FloatVector_swigregister = _swigfaiss.FloatVector_swigregister
FloatVector_swigregister(FloatVector)

class ByteVector(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ByteVector, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ByteVector, name)
    __repr__ = _swig_repr
    def __init__(self): 
        this = _swigfaiss.new_ByteVector()
        try: self.this.append(this)
        except: self.this = this
    def push_back(self, *args): return _swigfaiss.ByteVector_push_back(self, *args)
    def data(self): return _swigfaiss.ByteVector_data(self)
    def size(self): return _swigfaiss.ByteVector_size(self)
    def at(self, *args): return _swigfaiss.ByteVector_at(self, *args)
    def resize(self, *args): return _swigfaiss.ByteVector_resize(self, *args)
    __swig_destroy__ = _swigfaiss.delete_ByteVector
    __del__ = lambda self : None;
ByteVector_swigregister = _swigfaiss.ByteVector_swigregister
ByteVector_swigregister(ByteVector)

class Uint64Vector(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Uint64Vector, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Uint64Vector, name)
    __repr__ = _swig_repr
    def __init__(self): 
        this = _swigfaiss.new_Uint64Vector()
        try: self.this.append(this)
        except: self.this = this
    def push_back(self, *args): return _swigfaiss.Uint64Vector_push_back(self, *args)
    def data(self): return _swigfaiss.Uint64Vector_data(self)
    def size(self): return _swigfaiss.Uint64Vector_size(self)
    def at(self, *args): return _swigfaiss.Uint64Vector_at(self, *args)
    def resize(self, *args): return _swigfaiss.Uint64Vector_resize(self, *args)
    __swig_destroy__ = _swigfaiss.delete_Uint64Vector
    __del__ = lambda self : None;
Uint64Vector_swigregister = _swigfaiss.Uint64Vector_swigregister
Uint64Vector_swigregister(Uint64Vector)

class LongVector(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, LongVector, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, LongVector, name)
    __repr__ = _swig_repr
    def __init__(self): 
        this = _swigfaiss.new_LongVector()
        try: self.this.append(this)
        except: self.this = this
    def push_back(self, *args): return _swigfaiss.LongVector_push_back(self, *args)
    def data(self): return _swigfaiss.LongVector_data(self)
    def size(self): return _swigfaiss.LongVector_size(self)
    def at(self, *args): return _swigfaiss.LongVector_at(self, *args)
    def resize(self, *args): return _swigfaiss.LongVector_resize(self, *args)
    __swig_destroy__ = _swigfaiss.delete_LongVector
    __del__ = lambda self : None;
LongVector_swigregister = _swigfaiss.LongVector_swigregister
LongVector_swigregister(LongVector)

class IntVector(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, IntVector, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, IntVector, name)
    __repr__ = _swig_repr
    def __init__(self): 
        this = _swigfaiss.new_IntVector()
        try: self.this.append(this)
        except: self.this = this
    def push_back(self, *args): return _swigfaiss.IntVector_push_back(self, *args)
    def data(self): return _swigfaiss.IntVector_data(self)
    def size(self): return _swigfaiss.IntVector_size(self)
    def at(self, *args): return _swigfaiss.IntVector_at(self, *args)
    def resize(self, *args): return _swigfaiss.IntVector_resize(self, *args)
    __swig_destroy__ = _swigfaiss.delete_IntVector
    __del__ = lambda self : None;
IntVector_swigregister = _swigfaiss.IntVector_swigregister
IntVector_swigregister(IntVector)

class VectorTransformVector(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, VectorTransformVector, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, VectorTransformVector, name)
    __repr__ = _swig_repr
    def __init__(self): 
        this = _swigfaiss.new_VectorTransformVector()
        try: self.this.append(this)
        except: self.this = this
    def push_back(self, *args): return _swigfaiss.VectorTransformVector_push_back(self, *args)
    def data(self): return _swigfaiss.VectorTransformVector_data(self)
    def size(self): return _swigfaiss.VectorTransformVector_size(self)
    def at(self, *args): return _swigfaiss.VectorTransformVector_at(self, *args)
    def resize(self, *args): return _swigfaiss.VectorTransformVector_resize(self, *args)
    __swig_destroy__ = _swigfaiss.delete_VectorTransformVector
    __del__ = lambda self : None;
VectorTransformVector_swigregister = _swigfaiss.VectorTransformVector_swigregister
VectorTransformVector_swigregister(VectorTransformVector)

class OperatingPointVector(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, OperatingPointVector, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, OperatingPointVector, name)
    __repr__ = _swig_repr
    def __init__(self): 
        this = _swigfaiss.new_OperatingPointVector()
        try: self.this.append(this)
        except: self.this = this
    def push_back(self, *args): return _swigfaiss.OperatingPointVector_push_back(self, *args)
    def data(self): return _swigfaiss.OperatingPointVector_data(self)
    def size(self): return _swigfaiss.OperatingPointVector_size(self)
    def at(self, *args): return _swigfaiss.OperatingPointVector_at(self, *args)
    def resize(self, *args): return _swigfaiss.OperatingPointVector_resize(self, *args)
    __swig_destroy__ = _swigfaiss.delete_OperatingPointVector
    __del__ = lambda self : None;
OperatingPointVector_swigregister = _swigfaiss.OperatingPointVector_swigregister
OperatingPointVector_swigregister(OperatingPointVector)


def popcount64(*args):
  return _swigfaiss.popcount64(*args)
popcount64 = _swigfaiss.popcount64

def hammings(*args):
  return _swigfaiss.hammings(*args)
hammings = _swigfaiss.hammings

def bitvec_print(*args):
  return _swigfaiss.bitvec_print(*args)
bitvec_print = _swigfaiss.bitvec_print

def fvecs2bitvecs(*args):
  return _swigfaiss.fvecs2bitvecs(*args)
fvecs2bitvecs = _swigfaiss.fvecs2bitvecs

def fvec2bitvec(*args):
  return _swigfaiss.fvec2bitvec(*args)
fvec2bitvec = _swigfaiss.fvec2bitvec

def hammings_knn(*args):
  return _swigfaiss.hammings_knn(*args)
hammings_knn = _swigfaiss.hammings_knn

def hammings_knn_core(*args):
  return _swigfaiss.hammings_knn_core(*args)
hammings_knn_core = _swigfaiss.hammings_knn_core

def hamming_count_thres(*args):
  return _swigfaiss.hamming_count_thres(*args)
hamming_count_thres = _swigfaiss.hamming_count_thres

def match_hamming_thres(*args):
  return _swigfaiss.match_hamming_thres(*args)
match_hamming_thres = _swigfaiss.match_hamming_thres

def crosshamming_count_thres(*args):
  return _swigfaiss.crosshamming_count_thres(*args)
crosshamming_count_thres = _swigfaiss.crosshamming_count_thres
class HammingComputer4(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, HammingComputer4, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, HammingComputer4, name)
    __repr__ = _swig_repr
    __swig_setmethods__["a0"] = _swigfaiss.HammingComputer4_a0_set
    __swig_getmethods__["a0"] = _swigfaiss.HammingComputer4_a0_get
    if _newclass:a0 = _swig_property(_swigfaiss.HammingComputer4_a0_get, _swigfaiss.HammingComputer4_a0_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_HammingComputer4(*args)
        try: self.this.append(this)
        except: self.this = this
    def hamming(self, *args): return _swigfaiss.HammingComputer4_hamming(self, *args)
    __swig_destroy__ = _swigfaiss.delete_HammingComputer4
    __del__ = lambda self : None;
HammingComputer4_swigregister = _swigfaiss.HammingComputer4_swigregister
HammingComputer4_swigregister(HammingComputer4)

class HammingComputer8(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, HammingComputer8, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, HammingComputer8, name)
    __repr__ = _swig_repr
    __swig_setmethods__["a0"] = _swigfaiss.HammingComputer8_a0_set
    __swig_getmethods__["a0"] = _swigfaiss.HammingComputer8_a0_get
    if _newclass:a0 = _swig_property(_swigfaiss.HammingComputer8_a0_get, _swigfaiss.HammingComputer8_a0_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_HammingComputer8(*args)
        try: self.this.append(this)
        except: self.this = this
    def hamming(self, *args): return _swigfaiss.HammingComputer8_hamming(self, *args)
    __swig_destroy__ = _swigfaiss.delete_HammingComputer8
    __del__ = lambda self : None;
HammingComputer8_swigregister = _swigfaiss.HammingComputer8_swigregister
HammingComputer8_swigregister(HammingComputer8)

class HammingComputer16(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, HammingComputer16, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, HammingComputer16, name)
    __repr__ = _swig_repr
    __swig_setmethods__["a0"] = _swigfaiss.HammingComputer16_a0_set
    __swig_getmethods__["a0"] = _swigfaiss.HammingComputer16_a0_get
    if _newclass:a0 = _swig_property(_swigfaiss.HammingComputer16_a0_get, _swigfaiss.HammingComputer16_a0_set)
    __swig_setmethods__["a1"] = _swigfaiss.HammingComputer16_a1_set
    __swig_getmethods__["a1"] = _swigfaiss.HammingComputer16_a1_get
    if _newclass:a1 = _swig_property(_swigfaiss.HammingComputer16_a1_get, _swigfaiss.HammingComputer16_a1_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_HammingComputer16(*args)
        try: self.this.append(this)
        except: self.this = this
    def hamming(self, *args): return _swigfaiss.HammingComputer16_hamming(self, *args)
    __swig_destroy__ = _swigfaiss.delete_HammingComputer16
    __del__ = lambda self : None;
HammingComputer16_swigregister = _swigfaiss.HammingComputer16_swigregister
HammingComputer16_swigregister(HammingComputer16)

class HammingComputer20(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, HammingComputer20, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, HammingComputer20, name)
    __repr__ = _swig_repr
    __swig_setmethods__["a0"] = _swigfaiss.HammingComputer20_a0_set
    __swig_getmethods__["a0"] = _swigfaiss.HammingComputer20_a0_get
    if _newclass:a0 = _swig_property(_swigfaiss.HammingComputer20_a0_get, _swigfaiss.HammingComputer20_a0_set)
    __swig_setmethods__["a1"] = _swigfaiss.HammingComputer20_a1_set
    __swig_getmethods__["a1"] = _swigfaiss.HammingComputer20_a1_get
    if _newclass:a1 = _swig_property(_swigfaiss.HammingComputer20_a1_get, _swigfaiss.HammingComputer20_a1_set)
    __swig_setmethods__["a2"] = _swigfaiss.HammingComputer20_a2_set
    __swig_getmethods__["a2"] = _swigfaiss.HammingComputer20_a2_get
    if _newclass:a2 = _swig_property(_swigfaiss.HammingComputer20_a2_get, _swigfaiss.HammingComputer20_a2_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_HammingComputer20(*args)
        try: self.this.append(this)
        except: self.this = this
    def hamming(self, *args): return _swigfaiss.HammingComputer20_hamming(self, *args)
    __swig_destroy__ = _swigfaiss.delete_HammingComputer20
    __del__ = lambda self : None;
HammingComputer20_swigregister = _swigfaiss.HammingComputer20_swigregister
HammingComputer20_swigregister(HammingComputer20)

class HammingComputer32(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, HammingComputer32, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, HammingComputer32, name)
    __repr__ = _swig_repr
    __swig_setmethods__["a0"] = _swigfaiss.HammingComputer32_a0_set
    __swig_getmethods__["a0"] = _swigfaiss.HammingComputer32_a0_get
    if _newclass:a0 = _swig_property(_swigfaiss.HammingComputer32_a0_get, _swigfaiss.HammingComputer32_a0_set)
    __swig_setmethods__["a1"] = _swigfaiss.HammingComputer32_a1_set
    __swig_getmethods__["a1"] = _swigfaiss.HammingComputer32_a1_get
    if _newclass:a1 = _swig_property(_swigfaiss.HammingComputer32_a1_get, _swigfaiss.HammingComputer32_a1_set)
    __swig_setmethods__["a2"] = _swigfaiss.HammingComputer32_a2_set
    __swig_getmethods__["a2"] = _swigfaiss.HammingComputer32_a2_get
    if _newclass:a2 = _swig_property(_swigfaiss.HammingComputer32_a2_get, _swigfaiss.HammingComputer32_a2_set)
    __swig_setmethods__["a3"] = _swigfaiss.HammingComputer32_a3_set
    __swig_getmethods__["a3"] = _swigfaiss.HammingComputer32_a3_get
    if _newclass:a3 = _swig_property(_swigfaiss.HammingComputer32_a3_get, _swigfaiss.HammingComputer32_a3_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_HammingComputer32(*args)
        try: self.this.append(this)
        except: self.this = this
    def hamming(self, *args): return _swigfaiss.HammingComputer32_hamming(self, *args)
    __swig_destroy__ = _swigfaiss.delete_HammingComputer32
    __del__ = lambda self : None;
HammingComputer32_swigregister = _swigfaiss.HammingComputer32_swigregister
HammingComputer32_swigregister(HammingComputer32)

class HammingComputer64(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, HammingComputer64, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, HammingComputer64, name)
    __repr__ = _swig_repr
    __swig_setmethods__["a0"] = _swigfaiss.HammingComputer64_a0_set
    __swig_getmethods__["a0"] = _swigfaiss.HammingComputer64_a0_get
    if _newclass:a0 = _swig_property(_swigfaiss.HammingComputer64_a0_get, _swigfaiss.HammingComputer64_a0_set)
    __swig_setmethods__["a1"] = _swigfaiss.HammingComputer64_a1_set
    __swig_getmethods__["a1"] = _swigfaiss.HammingComputer64_a1_get
    if _newclass:a1 = _swig_property(_swigfaiss.HammingComputer64_a1_get, _swigfaiss.HammingComputer64_a1_set)
    __swig_setmethods__["a2"] = _swigfaiss.HammingComputer64_a2_set
    __swig_getmethods__["a2"] = _swigfaiss.HammingComputer64_a2_get
    if _newclass:a2 = _swig_property(_swigfaiss.HammingComputer64_a2_get, _swigfaiss.HammingComputer64_a2_set)
    __swig_setmethods__["a3"] = _swigfaiss.HammingComputer64_a3_set
    __swig_getmethods__["a3"] = _swigfaiss.HammingComputer64_a3_get
    if _newclass:a3 = _swig_property(_swigfaiss.HammingComputer64_a3_get, _swigfaiss.HammingComputer64_a3_set)
    __swig_setmethods__["a4"] = _swigfaiss.HammingComputer64_a4_set
    __swig_getmethods__["a4"] = _swigfaiss.HammingComputer64_a4_get
    if _newclass:a4 = _swig_property(_swigfaiss.HammingComputer64_a4_get, _swigfaiss.HammingComputer64_a4_set)
    __swig_setmethods__["a5"] = _swigfaiss.HammingComputer64_a5_set
    __swig_getmethods__["a5"] = _swigfaiss.HammingComputer64_a5_get
    if _newclass:a5 = _swig_property(_swigfaiss.HammingComputer64_a5_get, _swigfaiss.HammingComputer64_a5_set)
    __swig_setmethods__["a6"] = _swigfaiss.HammingComputer64_a6_set
    __swig_getmethods__["a6"] = _swigfaiss.HammingComputer64_a6_get
    if _newclass:a6 = _swig_property(_swigfaiss.HammingComputer64_a6_get, _swigfaiss.HammingComputer64_a6_set)
    __swig_setmethods__["a7"] = _swigfaiss.HammingComputer64_a7_set
    __swig_getmethods__["a7"] = _swigfaiss.HammingComputer64_a7_get
    if _newclass:a7 = _swig_property(_swigfaiss.HammingComputer64_a7_get, _swigfaiss.HammingComputer64_a7_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_HammingComputer64(*args)
        try: self.this.append(this)
        except: self.this = this
    def hamming(self, *args): return _swigfaiss.HammingComputer64_hamming(self, *args)
    __swig_destroy__ = _swigfaiss.delete_HammingComputer64
    __del__ = lambda self : None;
HammingComputer64_swigregister = _swigfaiss.HammingComputer64_swigregister
HammingComputer64_swigregister(HammingComputer64)

class HammingComputerM8(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, HammingComputerM8, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, HammingComputerM8, name)
    __repr__ = _swig_repr
    __swig_setmethods__["a"] = _swigfaiss.HammingComputerM8_a_set
    __swig_getmethods__["a"] = _swigfaiss.HammingComputerM8_a_get
    if _newclass:a = _swig_property(_swigfaiss.HammingComputerM8_a_get, _swigfaiss.HammingComputerM8_a_set)
    __swig_setmethods__["n"] = _swigfaiss.HammingComputerM8_n_set
    __swig_getmethods__["n"] = _swigfaiss.HammingComputerM8_n_get
    if _newclass:n = _swig_property(_swigfaiss.HammingComputerM8_n_get, _swigfaiss.HammingComputerM8_n_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_HammingComputerM8(*args)
        try: self.this.append(this)
        except: self.this = this
    def hamming(self, *args): return _swigfaiss.HammingComputerM8_hamming(self, *args)
    __swig_destroy__ = _swigfaiss.delete_HammingComputerM8
    __del__ = lambda self : None;
HammingComputerM8_swigregister = _swigfaiss.HammingComputerM8_swigregister
HammingComputerM8_swigregister(HammingComputerM8)

class HammingComputerM4(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, HammingComputerM4, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, HammingComputerM4, name)
    __repr__ = _swig_repr
    __swig_setmethods__["a"] = _swigfaiss.HammingComputerM4_a_set
    __swig_getmethods__["a"] = _swigfaiss.HammingComputerM4_a_get
    if _newclass:a = _swig_property(_swigfaiss.HammingComputerM4_a_get, _swigfaiss.HammingComputerM4_a_set)
    __swig_setmethods__["n"] = _swigfaiss.HammingComputerM4_n_set
    __swig_getmethods__["n"] = _swigfaiss.HammingComputerM4_n_get
    if _newclass:n = _swig_property(_swigfaiss.HammingComputerM4_n_get, _swigfaiss.HammingComputerM4_n_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_HammingComputerM4(*args)
        try: self.this.append(this)
        except: self.this = this
    def hamming(self, *args): return _swigfaiss.HammingComputerM4_hamming(self, *args)
    __swig_destroy__ = _swigfaiss.delete_HammingComputerM4
    __del__ = lambda self : None;
HammingComputerM4_swigregister = _swigfaiss.HammingComputerM4_swigregister
HammingComputerM4_swigregister(HammingComputerM4)


def generalized_hamming_64(*args):
  return _swigfaiss.generalized_hamming_64(*args)
generalized_hamming_64 = _swigfaiss.generalized_hamming_64
class GenHammingComputer8(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, GenHammingComputer8, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, GenHammingComputer8, name)
    __repr__ = _swig_repr
    __swig_setmethods__["a0"] = _swigfaiss.GenHammingComputer8_a0_set
    __swig_getmethods__["a0"] = _swigfaiss.GenHammingComputer8_a0_get
    if _newclass:a0 = _swig_property(_swigfaiss.GenHammingComputer8_a0_get, _swigfaiss.GenHammingComputer8_a0_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_GenHammingComputer8(*args)
        try: self.this.append(this)
        except: self.this = this
    def hamming(self, *args): return _swigfaiss.GenHammingComputer8_hamming(self, *args)
    __swig_destroy__ = _swigfaiss.delete_GenHammingComputer8
    __del__ = lambda self : None;
GenHammingComputer8_swigregister = _swigfaiss.GenHammingComputer8_swigregister
GenHammingComputer8_swigregister(GenHammingComputer8)

class GenHammingComputer16(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, GenHammingComputer16, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, GenHammingComputer16, name)
    __repr__ = _swig_repr
    __swig_setmethods__["a0"] = _swigfaiss.GenHammingComputer16_a0_set
    __swig_getmethods__["a0"] = _swigfaiss.GenHammingComputer16_a0_get
    if _newclass:a0 = _swig_property(_swigfaiss.GenHammingComputer16_a0_get, _swigfaiss.GenHammingComputer16_a0_set)
    __swig_setmethods__["a1"] = _swigfaiss.GenHammingComputer16_a1_set
    __swig_getmethods__["a1"] = _swigfaiss.GenHammingComputer16_a1_get
    if _newclass:a1 = _swig_property(_swigfaiss.GenHammingComputer16_a1_get, _swigfaiss.GenHammingComputer16_a1_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_GenHammingComputer16(*args)
        try: self.this.append(this)
        except: self.this = this
    def hamming(self, *args): return _swigfaiss.GenHammingComputer16_hamming(self, *args)
    __swig_destroy__ = _swigfaiss.delete_GenHammingComputer16
    __del__ = lambda self : None;
GenHammingComputer16_swigregister = _swigfaiss.GenHammingComputer16_swigregister
GenHammingComputer16_swigregister(GenHammingComputer16)

class GenHammingComputer32(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, GenHammingComputer32, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, GenHammingComputer32, name)
    __repr__ = _swig_repr
    __swig_setmethods__["a0"] = _swigfaiss.GenHammingComputer32_a0_set
    __swig_getmethods__["a0"] = _swigfaiss.GenHammingComputer32_a0_get
    if _newclass:a0 = _swig_property(_swigfaiss.GenHammingComputer32_a0_get, _swigfaiss.GenHammingComputer32_a0_set)
    __swig_setmethods__["a1"] = _swigfaiss.GenHammingComputer32_a1_set
    __swig_getmethods__["a1"] = _swigfaiss.GenHammingComputer32_a1_get
    if _newclass:a1 = _swig_property(_swigfaiss.GenHammingComputer32_a1_get, _swigfaiss.GenHammingComputer32_a1_set)
    __swig_setmethods__["a2"] = _swigfaiss.GenHammingComputer32_a2_set
    __swig_getmethods__["a2"] = _swigfaiss.GenHammingComputer32_a2_get
    if _newclass:a2 = _swig_property(_swigfaiss.GenHammingComputer32_a2_get, _swigfaiss.GenHammingComputer32_a2_set)
    __swig_setmethods__["a3"] = _swigfaiss.GenHammingComputer32_a3_set
    __swig_getmethods__["a3"] = _swigfaiss.GenHammingComputer32_a3_get
    if _newclass:a3 = _swig_property(_swigfaiss.GenHammingComputer32_a3_get, _swigfaiss.GenHammingComputer32_a3_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_GenHammingComputer32(*args)
        try: self.this.append(this)
        except: self.this = this
    def hamming(self, *args): return _swigfaiss.GenHammingComputer32_hamming(self, *args)
    __swig_destroy__ = _swigfaiss.delete_GenHammingComputer32
    __del__ = lambda self : None;
GenHammingComputer32_swigregister = _swigfaiss.GenHammingComputer32_swigregister
GenHammingComputer32_swigregister(GenHammingComputer32)

class GenHammingComputerM8(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, GenHammingComputerM8, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, GenHammingComputerM8, name)
    __repr__ = _swig_repr
    __swig_setmethods__["a"] = _swigfaiss.GenHammingComputerM8_a_set
    __swig_getmethods__["a"] = _swigfaiss.GenHammingComputerM8_a_get
    if _newclass:a = _swig_property(_swigfaiss.GenHammingComputerM8_a_get, _swigfaiss.GenHammingComputerM8_a_set)
    __swig_setmethods__["n"] = _swigfaiss.GenHammingComputerM8_n_set
    __swig_getmethods__["n"] = _swigfaiss.GenHammingComputerM8_n_get
    if _newclass:n = _swig_property(_swigfaiss.GenHammingComputerM8_n_get, _swigfaiss.GenHammingComputerM8_n_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_GenHammingComputerM8(*args)
        try: self.this.append(this)
        except: self.this = this
    def hamming(self, *args): return _swigfaiss.GenHammingComputerM8_hamming(self, *args)
    __swig_destroy__ = _swigfaiss.delete_GenHammingComputerM8
    __del__ = lambda self : None;
GenHammingComputerM8_swigregister = _swigfaiss.GenHammingComputerM8_swigregister
GenHammingComputerM8_swigregister(GenHammingComputerM8)


def generalized_hammings_knn(*args):
  return _swigfaiss.generalized_hammings_knn(*args)
generalized_hammings_knn = _swigfaiss.generalized_hammings_knn

def get_num_gpus():
  return _swigfaiss.get_num_gpus()
get_num_gpus = _swigfaiss.get_num_gpus

def getmillisecs():
  return _swigfaiss.getmillisecs()
getmillisecs = _swigfaiss.getmillisecs

def get_mem_usage_kb():
  return _swigfaiss.get_mem_usage_kb()
get_mem_usage_kb = _swigfaiss.get_mem_usage_kb
class RandomGenerator(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, RandomGenerator, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, RandomGenerator, name)
    __repr__ = _swig_repr
    def rand_long(self): return _swigfaiss.RandomGenerator_rand_long(self)
    def rand_int(self, *args): return _swigfaiss.RandomGenerator_rand_int(self, *args)
    def rand_float(self): return _swigfaiss.RandomGenerator_rand_float(self)
    def rand_double(self): return _swigfaiss.RandomGenerator_rand_double(self)
    def __init__(self, *args): 
        this = _swigfaiss.new_RandomGenerator(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_RandomGenerator
    __del__ = lambda self : None;
RandomGenerator_swigregister = _swigfaiss.RandomGenerator_swigregister
RandomGenerator_swigregister(RandomGenerator)


def float_rand(*args):
  return _swigfaiss.float_rand(*args)
float_rand = _swigfaiss.float_rand

def float_randn(*args):
  return _swigfaiss.float_randn(*args)
float_randn = _swigfaiss.float_randn

def long_rand(*args):
  return _swigfaiss.long_rand(*args)
long_rand = _swigfaiss.long_rand

def byte_rand(*args):
  return _swigfaiss.byte_rand(*args)
byte_rand = _swigfaiss.byte_rand

def rand_perm(*args):
  return _swigfaiss.rand_perm(*args)
rand_perm = _swigfaiss.rand_perm

def fvec_L2sqr(*args):
  return _swigfaiss.fvec_L2sqr(*args)
fvec_L2sqr = _swigfaiss.fvec_L2sqr

def fvec_inner_product(*args):
  return _swigfaiss.fvec_inner_product(*args)
fvec_inner_product = _swigfaiss.fvec_inner_product

def imbalance_factor(*args):
  return _swigfaiss.imbalance_factor(*args)
imbalance_factor = _swigfaiss.imbalance_factor

def pairwise_L2sqr(*args):
  return _swigfaiss.pairwise_L2sqr(*args)
pairwise_L2sqr = _swigfaiss.pairwise_L2sqr

def fvec_inner_products_ny(*args):
  return _swigfaiss.fvec_inner_products_ny(*args)
fvec_inner_products_ny = _swigfaiss.fvec_inner_products_ny

def fvec_L2sqr_ny(*args):
  return _swigfaiss.fvec_L2sqr_ny(*args)
fvec_L2sqr_ny = _swigfaiss.fvec_L2sqr_ny

def fvec_norm_L2sqr(*args):
  return _swigfaiss.fvec_norm_L2sqr(*args)
fvec_norm_L2sqr = _swigfaiss.fvec_norm_L2sqr

def fvec_norms_L2(*args):
  return _swigfaiss.fvec_norms_L2(*args)
fvec_norms_L2 = _swigfaiss.fvec_norms_L2

def fvec_norms_L2sqr(*args):
  return _swigfaiss.fvec_norms_L2sqr(*args)
fvec_norms_L2sqr = _swigfaiss.fvec_norms_L2sqr

def fvec_renorm_L2(*args):
  return _swigfaiss.fvec_renorm_L2(*args)
fvec_renorm_L2 = _swigfaiss.fvec_renorm_L2

def inner_product_to_L2sqr(*args):
  return _swigfaiss.inner_product_to_L2sqr(*args)
inner_product_to_L2sqr = _swigfaiss.inner_product_to_L2sqr

def fvec_inner_products_by_idx(*args):
  return _swigfaiss.fvec_inner_products_by_idx(*args)
fvec_inner_products_by_idx = _swigfaiss.fvec_inner_products_by_idx

def fvec_L2sqr_by_idx(*args):
  return _swigfaiss.fvec_L2sqr_by_idx(*args)
fvec_L2sqr_by_idx = _swigfaiss.fvec_L2sqr_by_idx

def knn_inner_product(*args):
  return _swigfaiss.knn_inner_product(*args)
knn_inner_product = _swigfaiss.knn_inner_product

def knn_L2sqr(*args):
  return _swigfaiss.knn_L2sqr(*args)
knn_L2sqr = _swigfaiss.knn_L2sqr

def knn_L2sqr_base_shift(*args):
  return _swigfaiss.knn_L2sqr_base_shift(*args)
knn_L2sqr_base_shift = _swigfaiss.knn_L2sqr_base_shift

def knn_inner_products_by_idx(*args):
  return _swigfaiss.knn_inner_products_by_idx(*args)
knn_inner_products_by_idx = _swigfaiss.knn_inner_products_by_idx

def knn_L2sqr_by_idx(*args):
  return _swigfaiss.knn_L2sqr_by_idx(*args)
knn_L2sqr_by_idx = _swigfaiss.knn_L2sqr_by_idx

def range_search_L2sqr(*args):
  return _swigfaiss.range_search_L2sqr(*args)
range_search_L2sqr = _swigfaiss.range_search_L2sqr

def range_search_inner_product(*args):
  return _swigfaiss.range_search_inner_product(*args)
range_search_inner_product = _swigfaiss.range_search_inner_product

def fvec_madd(*args):
  return _swigfaiss.fvec_madd(*args)
fvec_madd = _swigfaiss.fvec_madd

def fvec_madd_and_argmin(*args):
  return _swigfaiss.fvec_madd_and_argmin(*args)
fvec_madd_and_argmin = _swigfaiss.fvec_madd_and_argmin

def reflection(*args):
  return _swigfaiss.reflection(*args)
reflection = _swigfaiss.reflection

def km_update_centroids(*args):
  return _swigfaiss.km_update_centroids(*args)
km_update_centroids = _swigfaiss.km_update_centroids

def matrix_qr(*args):
  return _swigfaiss.matrix_qr(*args)
matrix_qr = _swigfaiss.matrix_qr

def ranklist_handle_ties(*args):
  return _swigfaiss.ranklist_handle_ties(*args)
ranklist_handle_ties = _swigfaiss.ranklist_handle_ties

def ranklist_intersection_size(*args):
  return _swigfaiss.ranklist_intersection_size(*args)
ranklist_intersection_size = _swigfaiss.ranklist_intersection_size

def fvec_argsort(*args):
  return _swigfaiss.fvec_argsort(*args)
fvec_argsort = _swigfaiss.fvec_argsort

def fvec_argsort_parallel(*args):
  return _swigfaiss.fvec_argsort_parallel(*args)
fvec_argsort_parallel = _swigfaiss.fvec_argsort_parallel

def ivec_hist(*args):
  return _swigfaiss.ivec_hist(*args)
ivec_hist = _swigfaiss.ivec_hist

def bincode_hist(*args):
  return _swigfaiss.bincode_hist(*args)
bincode_hist = _swigfaiss.bincode_hist

def ivec_checksum(*args):
  return _swigfaiss.ivec_checksum(*args)
ivec_checksum = _swigfaiss.ivec_checksum
METRIC_INNER_PRODUCT = _swigfaiss.METRIC_INNER_PRODUCT
METRIC_L2 = _swigfaiss.METRIC_L2
class Index(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Index, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Index, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_setmethods__["index_typename"] = _swigfaiss.Index_index_typename_set
    __swig_getmethods__["index_typename"] = _swigfaiss.Index_index_typename_get
    if _newclass:index_typename = _swig_property(_swigfaiss.Index_index_typename_get, _swigfaiss.Index_index_typename_set)
    __swig_setmethods__["d"] = _swigfaiss.Index_d_set
    __swig_getmethods__["d"] = _swigfaiss.Index_d_get
    if _newclass:d = _swig_property(_swigfaiss.Index_d_get, _swigfaiss.Index_d_set)
    __swig_setmethods__["ntotal"] = _swigfaiss.Index_ntotal_set
    __swig_getmethods__["ntotal"] = _swigfaiss.Index_ntotal_get
    if _newclass:ntotal = _swig_property(_swigfaiss.Index_ntotal_get, _swigfaiss.Index_ntotal_set)
    __swig_setmethods__["verbose"] = _swigfaiss.Index_verbose_set
    __swig_getmethods__["verbose"] = _swigfaiss.Index_verbose_get
    if _newclass:verbose = _swig_property(_swigfaiss.Index_verbose_get, _swigfaiss.Index_verbose_set)
    __swig_setmethods__["is_trained"] = _swigfaiss.Index_is_trained_set
    __swig_getmethods__["is_trained"] = _swigfaiss.Index_is_trained_get
    if _newclass:is_trained = _swig_property(_swigfaiss.Index_is_trained_get, _swigfaiss.Index_is_trained_set)
    __swig_setmethods__["metric_type"] = _swigfaiss.Index_metric_type_set
    __swig_getmethods__["metric_type"] = _swigfaiss.Index_metric_type_get
    if _newclass:metric_type = _swig_property(_swigfaiss.Index_metric_type_get, _swigfaiss.Index_metric_type_set)
    __swig_destroy__ = _swigfaiss.delete_Index
    __del__ = lambda self : None;
    def train(self, *args): return _swigfaiss.Index_train(self, *args)
    def add(self, *args): return _swigfaiss.Index_add(self, *args)
    def add_with_ids(self, *args): return _swigfaiss.Index_add_with_ids(self, *args)
    def search(self, *args): return _swigfaiss.Index_search(self, *args)
    def range_search(self, *args): return _swigfaiss.Index_range_search(self, *args)
    def assign(self, *args): return _swigfaiss.Index_assign(self, *args)
    def reset(self): return _swigfaiss.Index_reset(self)
    def remove_ids(self, *args): return _swigfaiss.Index_remove_ids(self, *args)
    def reconstruct(self, *args): return _swigfaiss.Index_reconstruct(self, *args)
    def reconstruct_n(self, *args): return _swigfaiss.Index_reconstruct_n(self, *args)
    def compute_residual(self, *args): return _swigfaiss.Index_compute_residual(self, *args)
    def display(self): return _swigfaiss.Index_display(self)
    def get_typename(self): return _swigfaiss.Index_get_typename(self)
    def set_typename(self): return _swigfaiss.Index_set_typename(self)
Index_swigregister = _swigfaiss.Index_swigregister
Index_swigregister(Index)

class ClusteringParameters(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ClusteringParameters, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ClusteringParameters, name)
    __repr__ = _swig_repr
    __swig_setmethods__["niter"] = _swigfaiss.ClusteringParameters_niter_set
    __swig_getmethods__["niter"] = _swigfaiss.ClusteringParameters_niter_get
    if _newclass:niter = _swig_property(_swigfaiss.ClusteringParameters_niter_get, _swigfaiss.ClusteringParameters_niter_set)
    __swig_setmethods__["nredo"] = _swigfaiss.ClusteringParameters_nredo_set
    __swig_getmethods__["nredo"] = _swigfaiss.ClusteringParameters_nredo_get
    if _newclass:nredo = _swig_property(_swigfaiss.ClusteringParameters_nredo_get, _swigfaiss.ClusteringParameters_nredo_set)
    __swig_setmethods__["verbose"] = _swigfaiss.ClusteringParameters_verbose_set
    __swig_getmethods__["verbose"] = _swigfaiss.ClusteringParameters_verbose_get
    if _newclass:verbose = _swig_property(_swigfaiss.ClusteringParameters_verbose_get, _swigfaiss.ClusteringParameters_verbose_set)
    __swig_setmethods__["spherical"] = _swigfaiss.ClusteringParameters_spherical_set
    __swig_getmethods__["spherical"] = _swigfaiss.ClusteringParameters_spherical_get
    if _newclass:spherical = _swig_property(_swigfaiss.ClusteringParameters_spherical_get, _swigfaiss.ClusteringParameters_spherical_set)
    __swig_setmethods__["update_index"] = _swigfaiss.ClusteringParameters_update_index_set
    __swig_getmethods__["update_index"] = _swigfaiss.ClusteringParameters_update_index_get
    if _newclass:update_index = _swig_property(_swigfaiss.ClusteringParameters_update_index_get, _swigfaiss.ClusteringParameters_update_index_set)
    __swig_setmethods__["min_points_per_centroid"] = _swigfaiss.ClusteringParameters_min_points_per_centroid_set
    __swig_getmethods__["min_points_per_centroid"] = _swigfaiss.ClusteringParameters_min_points_per_centroid_get
    if _newclass:min_points_per_centroid = _swig_property(_swigfaiss.ClusteringParameters_min_points_per_centroid_get, _swigfaiss.ClusteringParameters_min_points_per_centroid_set)
    __swig_setmethods__["max_points_per_centroid"] = _swigfaiss.ClusteringParameters_max_points_per_centroid_set
    __swig_getmethods__["max_points_per_centroid"] = _swigfaiss.ClusteringParameters_max_points_per_centroid_get
    if _newclass:max_points_per_centroid = _swig_property(_swigfaiss.ClusteringParameters_max_points_per_centroid_get, _swigfaiss.ClusteringParameters_max_points_per_centroid_set)
    __swig_setmethods__["seed"] = _swigfaiss.ClusteringParameters_seed_set
    __swig_getmethods__["seed"] = _swigfaiss.ClusteringParameters_seed_get
    if _newclass:seed = _swig_property(_swigfaiss.ClusteringParameters_seed_get, _swigfaiss.ClusteringParameters_seed_set)
    def __init__(self): 
        this = _swigfaiss.new_ClusteringParameters()
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_ClusteringParameters
    __del__ = lambda self : None;
ClusteringParameters_swigregister = _swigfaiss.ClusteringParameters_swigregister
ClusteringParameters_swigregister(ClusteringParameters)

class Clustering(ClusteringParameters):
    __swig_setmethods__ = {}
    for _s in [ClusteringParameters]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, Clustering, name, value)
    __swig_getmethods__ = {}
    for _s in [ClusteringParameters]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, Clustering, name)
    __repr__ = _swig_repr
    __swig_setmethods__["d"] = _swigfaiss.Clustering_d_set
    __swig_getmethods__["d"] = _swigfaiss.Clustering_d_get
    if _newclass:d = _swig_property(_swigfaiss.Clustering_d_get, _swigfaiss.Clustering_d_set)
    __swig_setmethods__["k"] = _swigfaiss.Clustering_k_set
    __swig_getmethods__["k"] = _swigfaiss.Clustering_k_get
    if _newclass:k = _swig_property(_swigfaiss.Clustering_k_get, _swigfaiss.Clustering_k_set)
    __swig_setmethods__["centroids"] = _swigfaiss.Clustering_centroids_set
    __swig_getmethods__["centroids"] = _swigfaiss.Clustering_centroids_get
    if _newclass:centroids = _swig_property(_swigfaiss.Clustering_centroids_get, _swigfaiss.Clustering_centroids_set)
    __swig_setmethods__["obj"] = _swigfaiss.Clustering_obj_set
    __swig_getmethods__["obj"] = _swigfaiss.Clustering_obj_get
    if _newclass:obj = _swig_property(_swigfaiss.Clustering_obj_get, _swigfaiss.Clustering_obj_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_Clustering(*args)
        try: self.this.append(this)
        except: self.this = this
    def train(self, *args): return _swigfaiss.Clustering_train(self, *args)
    __swig_destroy__ = _swigfaiss.delete_Clustering
    __del__ = lambda self : None;
Clustering_swigregister = _swigfaiss.Clustering_swigregister
Clustering_swigregister(Clustering)


def kmeans_clustering(*args):
  return _swigfaiss.kmeans_clustering(*args)
kmeans_clustering = _swigfaiss.kmeans_clustering
class ProductQuantizer(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ProductQuantizer, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ProductQuantizer, name)
    __repr__ = _swig_repr
    __swig_setmethods__["d"] = _swigfaiss.ProductQuantizer_d_set
    __swig_getmethods__["d"] = _swigfaiss.ProductQuantizer_d_get
    if _newclass:d = _swig_property(_swigfaiss.ProductQuantizer_d_get, _swigfaiss.ProductQuantizer_d_set)
    __swig_setmethods__["M"] = _swigfaiss.ProductQuantizer_M_set
    __swig_getmethods__["M"] = _swigfaiss.ProductQuantizer_M_get
    if _newclass:M = _swig_property(_swigfaiss.ProductQuantizer_M_get, _swigfaiss.ProductQuantizer_M_set)
    __swig_setmethods__["nbits"] = _swigfaiss.ProductQuantizer_nbits_set
    __swig_getmethods__["nbits"] = _swigfaiss.ProductQuantizer_nbits_get
    if _newclass:nbits = _swig_property(_swigfaiss.ProductQuantizer_nbits_get, _swigfaiss.ProductQuantizer_nbits_set)
    __swig_setmethods__["dsub"] = _swigfaiss.ProductQuantizer_dsub_set
    __swig_getmethods__["dsub"] = _swigfaiss.ProductQuantizer_dsub_get
    if _newclass:dsub = _swig_property(_swigfaiss.ProductQuantizer_dsub_get, _swigfaiss.ProductQuantizer_dsub_set)
    __swig_setmethods__["byte_per_idx"] = _swigfaiss.ProductQuantizer_byte_per_idx_set
    __swig_getmethods__["byte_per_idx"] = _swigfaiss.ProductQuantizer_byte_per_idx_get
    if _newclass:byte_per_idx = _swig_property(_swigfaiss.ProductQuantizer_byte_per_idx_get, _swigfaiss.ProductQuantizer_byte_per_idx_set)
    __swig_setmethods__["code_size"] = _swigfaiss.ProductQuantizer_code_size_set
    __swig_getmethods__["code_size"] = _swigfaiss.ProductQuantizer_code_size_get
    if _newclass:code_size = _swig_property(_swigfaiss.ProductQuantizer_code_size_get, _swigfaiss.ProductQuantizer_code_size_set)
    __swig_setmethods__["ksub"] = _swigfaiss.ProductQuantizer_ksub_set
    __swig_getmethods__["ksub"] = _swigfaiss.ProductQuantizer_ksub_get
    if _newclass:ksub = _swig_property(_swigfaiss.ProductQuantizer_ksub_get, _swigfaiss.ProductQuantizer_ksub_set)
    __swig_setmethods__["verbose"] = _swigfaiss.ProductQuantizer_verbose_set
    __swig_getmethods__["verbose"] = _swigfaiss.ProductQuantizer_verbose_get
    if _newclass:verbose = _swig_property(_swigfaiss.ProductQuantizer_verbose_get, _swigfaiss.ProductQuantizer_verbose_set)
    Train_default = _swigfaiss.ProductQuantizer_Train_default
    Train_hot_start = _swigfaiss.ProductQuantizer_Train_hot_start
    Train_shared = _swigfaiss.ProductQuantizer_Train_shared
    Train_hypercube = _swigfaiss.ProductQuantizer_Train_hypercube
    Train_hypercube_pca = _swigfaiss.ProductQuantizer_Train_hypercube_pca
    __swig_setmethods__["train_type"] = _swigfaiss.ProductQuantizer_train_type_set
    __swig_getmethods__["train_type"] = _swigfaiss.ProductQuantizer_train_type_get
    if _newclass:train_type = _swig_property(_swigfaiss.ProductQuantizer_train_type_get, _swigfaiss.ProductQuantizer_train_type_set)
    __swig_setmethods__["cp"] = _swigfaiss.ProductQuantizer_cp_set
    __swig_getmethods__["cp"] = _swigfaiss.ProductQuantizer_cp_get
    if _newclass:cp = _swig_property(_swigfaiss.ProductQuantizer_cp_get, _swigfaiss.ProductQuantizer_cp_set)
    __swig_setmethods__["centroids"] = _swigfaiss.ProductQuantizer_centroids_set
    __swig_getmethods__["centroids"] = _swigfaiss.ProductQuantizer_centroids_get
    if _newclass:centroids = _swig_property(_swigfaiss.ProductQuantizer_centroids_get, _swigfaiss.ProductQuantizer_centroids_set)
    def get_centroids(self, *args): return _swigfaiss.ProductQuantizer_get_centroids(self, *args)
    def train(self, *args): return _swigfaiss.ProductQuantizer_train(self, *args)
    def __init__(self, *args): 
        this = _swigfaiss.new_ProductQuantizer(*args)
        try: self.this.append(this)
        except: self.this = this
    def set_derived_values(self): return _swigfaiss.ProductQuantizer_set_derived_values(self)
    def set_params(self, *args): return _swigfaiss.ProductQuantizer_set_params(self, *args)
    def compute_code(self, *args): return _swigfaiss.ProductQuantizer_compute_code(self, *args)
    def compute_codes(self, *args): return _swigfaiss.ProductQuantizer_compute_codes(self, *args)
    def decode(self, *args): return _swigfaiss.ProductQuantizer_decode(self, *args)
    def compute_code_from_distance_table(self, *args): return _swigfaiss.ProductQuantizer_compute_code_from_distance_table(self, *args)
    def compute_distance_table(self, *args): return _swigfaiss.ProductQuantizer_compute_distance_table(self, *args)
    def compute_inner_prod_table(self, *args): return _swigfaiss.ProductQuantizer_compute_inner_prod_table(self, *args)
    def compute_distance_tables(self, *args): return _swigfaiss.ProductQuantizer_compute_distance_tables(self, *args)
    def compute_inner_prod_tables(self, *args): return _swigfaiss.ProductQuantizer_compute_inner_prod_tables(self, *args)
    def search(self, *args): return _swigfaiss.ProductQuantizer_search(self, *args)
    def search_ip(self, *args): return _swigfaiss.ProductQuantizer_search_ip(self, *args)
    __swig_setmethods__["sdc_table"] = _swigfaiss.ProductQuantizer_sdc_table_set
    __swig_getmethods__["sdc_table"] = _swigfaiss.ProductQuantizer_sdc_table_get
    if _newclass:sdc_table = _swig_property(_swigfaiss.ProductQuantizer_sdc_table_get, _swigfaiss.ProductQuantizer_sdc_table_set)
    def compute_sdc_table(self): return _swigfaiss.ProductQuantizer_compute_sdc_table(self)
    def search_sdc(self, *args): return _swigfaiss.ProductQuantizer_search_sdc(self, *args)
    __swig_destroy__ = _swigfaiss.delete_ProductQuantizer
    __del__ = lambda self : None;
ProductQuantizer_swigregister = _swigfaiss.ProductQuantizer_swigregister
ProductQuantizer_swigregister(ProductQuantizer)

class VectorTransform(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, VectorTransform, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, VectorTransform, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_setmethods__["d_in"] = _swigfaiss.VectorTransform_d_in_set
    __swig_getmethods__["d_in"] = _swigfaiss.VectorTransform_d_in_get
    if _newclass:d_in = _swig_property(_swigfaiss.VectorTransform_d_in_get, _swigfaiss.VectorTransform_d_in_set)
    __swig_setmethods__["d_out"] = _swigfaiss.VectorTransform_d_out_set
    __swig_getmethods__["d_out"] = _swigfaiss.VectorTransform_d_out_get
    if _newclass:d_out = _swig_property(_swigfaiss.VectorTransform_d_out_get, _swigfaiss.VectorTransform_d_out_set)
    __swig_setmethods__["is_trained"] = _swigfaiss.VectorTransform_is_trained_set
    __swig_getmethods__["is_trained"] = _swigfaiss.VectorTransform_is_trained_get
    if _newclass:is_trained = _swig_property(_swigfaiss.VectorTransform_is_trained_get, _swigfaiss.VectorTransform_is_trained_set)
    def train(self, *args): return _swigfaiss.VectorTransform_train(self, *args)
    def apply(self, *args): return _swigfaiss.VectorTransform_apply(self, *args)
    def apply_noalloc(self, *args): return _swigfaiss.VectorTransform_apply_noalloc(self, *args)
    def reverse_transform(self, *args): return _swigfaiss.VectorTransform_reverse_transform(self, *args)
    __swig_destroy__ = _swigfaiss.delete_VectorTransform
    __del__ = lambda self : None;
VectorTransform_swigregister = _swigfaiss.VectorTransform_swigregister
VectorTransform_swigregister(VectorTransform)

class LinearTransform(VectorTransform):
    __swig_setmethods__ = {}
    for _s in [VectorTransform]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, LinearTransform, name, value)
    __swig_getmethods__ = {}
    for _s in [VectorTransform]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, LinearTransform, name)
    __repr__ = _swig_repr
    __swig_setmethods__["have_bias"] = _swigfaiss.LinearTransform_have_bias_set
    __swig_getmethods__["have_bias"] = _swigfaiss.LinearTransform_have_bias_get
    if _newclass:have_bias = _swig_property(_swigfaiss.LinearTransform_have_bias_get, _swigfaiss.LinearTransform_have_bias_set)
    __swig_setmethods__["A"] = _swigfaiss.LinearTransform_A_set
    __swig_getmethods__["A"] = _swigfaiss.LinearTransform_A_get
    if _newclass:A = _swig_property(_swigfaiss.LinearTransform_A_get, _swigfaiss.LinearTransform_A_set)
    __swig_setmethods__["b"] = _swigfaiss.LinearTransform_b_set
    __swig_getmethods__["b"] = _swigfaiss.LinearTransform_b_get
    if _newclass:b = _swig_property(_swigfaiss.LinearTransform_b_get, _swigfaiss.LinearTransform_b_set)
    def __init__(self, d_in=0, d_out=0, have_bias=False): 
        this = _swigfaiss.new_LinearTransform(d_in, d_out, have_bias)
        try: self.this.append(this)
        except: self.this = this
    def apply_noalloc(self, *args): return _swigfaiss.LinearTransform_apply_noalloc(self, *args)
    def transform_transpose(self, *args): return _swigfaiss.LinearTransform_transform_transpose(self, *args)
    __swig_setmethods__["max_points_per_d"] = _swigfaiss.LinearTransform_max_points_per_d_set
    __swig_getmethods__["max_points_per_d"] = _swigfaiss.LinearTransform_max_points_per_d_get
    if _newclass:max_points_per_d = _swig_property(_swigfaiss.LinearTransform_max_points_per_d_get, _swigfaiss.LinearTransform_max_points_per_d_set)
    __swig_setmethods__["verbose"] = _swigfaiss.LinearTransform_verbose_set
    __swig_getmethods__["verbose"] = _swigfaiss.LinearTransform_verbose_get
    if _newclass:verbose = _swig_property(_swigfaiss.LinearTransform_verbose_get, _swigfaiss.LinearTransform_verbose_set)
    def maybe_subsample_train_set(self, *args): return _swigfaiss.LinearTransform_maybe_subsample_train_set(self, *args)
    __swig_destroy__ = _swigfaiss.delete_LinearTransform
    __del__ = lambda self : None;
LinearTransform_swigregister = _swigfaiss.LinearTransform_swigregister
LinearTransform_swigregister(LinearTransform)

class RandomRotationMatrix(LinearTransform):
    __swig_setmethods__ = {}
    for _s in [LinearTransform]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, RandomRotationMatrix, name, value)
    __swig_getmethods__ = {}
    for _s in [LinearTransform]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, RandomRotationMatrix, name)
    __repr__ = _swig_repr
    def init(self, *args): return _swigfaiss.RandomRotationMatrix_init(self, *args)
    def reverse_transform(self, *args): return _swigfaiss.RandomRotationMatrix_reverse_transform(self, *args)
    def __init__(self, *args): 
        this = _swigfaiss.new_RandomRotationMatrix(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_RandomRotationMatrix
    __del__ = lambda self : None;
RandomRotationMatrix_swigregister = _swigfaiss.RandomRotationMatrix_swigregister
RandomRotationMatrix_swigregister(RandomRotationMatrix)

class PCAMatrix(LinearTransform):
    __swig_setmethods__ = {}
    for _s in [LinearTransform]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, PCAMatrix, name, value)
    __swig_getmethods__ = {}
    for _s in [LinearTransform]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, PCAMatrix, name)
    __repr__ = _swig_repr
    __swig_setmethods__["eigen_power"] = _swigfaiss.PCAMatrix_eigen_power_set
    __swig_getmethods__["eigen_power"] = _swigfaiss.PCAMatrix_eigen_power_get
    if _newclass:eigen_power = _swig_property(_swigfaiss.PCAMatrix_eigen_power_get, _swigfaiss.PCAMatrix_eigen_power_set)
    __swig_setmethods__["random_rotation"] = _swigfaiss.PCAMatrix_random_rotation_set
    __swig_getmethods__["random_rotation"] = _swigfaiss.PCAMatrix_random_rotation_get
    if _newclass:random_rotation = _swig_property(_swigfaiss.PCAMatrix_random_rotation_get, _swigfaiss.PCAMatrix_random_rotation_set)
    __swig_setmethods__["balanced_bins"] = _swigfaiss.PCAMatrix_balanced_bins_set
    __swig_getmethods__["balanced_bins"] = _swigfaiss.PCAMatrix_balanced_bins_get
    if _newclass:balanced_bins = _swig_property(_swigfaiss.PCAMatrix_balanced_bins_get, _swigfaiss.PCAMatrix_balanced_bins_set)
    __swig_setmethods__["mean"] = _swigfaiss.PCAMatrix_mean_set
    __swig_getmethods__["mean"] = _swigfaiss.PCAMatrix_mean_get
    if _newclass:mean = _swig_property(_swigfaiss.PCAMatrix_mean_get, _swigfaiss.PCAMatrix_mean_set)
    __swig_setmethods__["eigenvalues"] = _swigfaiss.PCAMatrix_eigenvalues_set
    __swig_getmethods__["eigenvalues"] = _swigfaiss.PCAMatrix_eigenvalues_get
    if _newclass:eigenvalues = _swig_property(_swigfaiss.PCAMatrix_eigenvalues_get, _swigfaiss.PCAMatrix_eigenvalues_set)
    __swig_setmethods__["PCAMat"] = _swigfaiss.PCAMatrix_PCAMat_set
    __swig_getmethods__["PCAMat"] = _swigfaiss.PCAMatrix_PCAMat_get
    if _newclass:PCAMat = _swig_property(_swigfaiss.PCAMatrix_PCAMat_get, _swigfaiss.PCAMatrix_PCAMat_set)
    def __init__(self, d_in=0, d_out=0, eigen_power=0, random_rotation=False): 
        this = _swigfaiss.new_PCAMatrix(d_in, d_out, eigen_power, random_rotation)
        try: self.this.append(this)
        except: self.this = this
    def train(self, *args): return _swigfaiss.PCAMatrix_train(self, *args)
    def reverse_transform(self, *args): return _swigfaiss.PCAMatrix_reverse_transform(self, *args)
    def copy_from(self, *args): return _swigfaiss.PCAMatrix_copy_from(self, *args)
    def prepare_Ab(self): return _swigfaiss.PCAMatrix_prepare_Ab(self)
    __swig_destroy__ = _swigfaiss.delete_PCAMatrix
    __del__ = lambda self : None;
PCAMatrix_swigregister = _swigfaiss.PCAMatrix_swigregister
PCAMatrix_swigregister(PCAMatrix)

class OPQMatrix(LinearTransform):
    __swig_setmethods__ = {}
    for _s in [LinearTransform]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, OPQMatrix, name, value)
    __swig_getmethods__ = {}
    for _s in [LinearTransform]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, OPQMatrix, name)
    __repr__ = _swig_repr
    __swig_setmethods__["M"] = _swigfaiss.OPQMatrix_M_set
    __swig_getmethods__["M"] = _swigfaiss.OPQMatrix_M_get
    if _newclass:M = _swig_property(_swigfaiss.OPQMatrix_M_get, _swigfaiss.OPQMatrix_M_set)
    __swig_setmethods__["niter"] = _swigfaiss.OPQMatrix_niter_set
    __swig_getmethods__["niter"] = _swigfaiss.OPQMatrix_niter_get
    if _newclass:niter = _swig_property(_swigfaiss.OPQMatrix_niter_get, _swigfaiss.OPQMatrix_niter_set)
    __swig_setmethods__["niter_pq"] = _swigfaiss.OPQMatrix_niter_pq_set
    __swig_getmethods__["niter_pq"] = _swigfaiss.OPQMatrix_niter_pq_get
    if _newclass:niter_pq = _swig_property(_swigfaiss.OPQMatrix_niter_pq_get, _swigfaiss.OPQMatrix_niter_pq_set)
    __swig_setmethods__["niter_pq_0"] = _swigfaiss.OPQMatrix_niter_pq_0_set
    __swig_getmethods__["niter_pq_0"] = _swigfaiss.OPQMatrix_niter_pq_0_get
    if _newclass:niter_pq_0 = _swig_property(_swigfaiss.OPQMatrix_niter_pq_0_get, _swigfaiss.OPQMatrix_niter_pq_0_set)
    __swig_setmethods__["max_points_per_d"] = _swigfaiss.OPQMatrix_max_points_per_d_set
    __swig_getmethods__["max_points_per_d"] = _swigfaiss.OPQMatrix_max_points_per_d_get
    if _newclass:max_points_per_d = _swig_property(_swigfaiss.OPQMatrix_max_points_per_d_get, _swigfaiss.OPQMatrix_max_points_per_d_set)
    __swig_setmethods__["verbose"] = _swigfaiss.OPQMatrix_verbose_set
    __swig_getmethods__["verbose"] = _swigfaiss.OPQMatrix_verbose_get
    if _newclass:verbose = _swig_property(_swigfaiss.OPQMatrix_verbose_get, _swigfaiss.OPQMatrix_verbose_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_OPQMatrix(*args)
        try: self.this.append(this)
        except: self.this = this
    def train(self, *args): return _swigfaiss.OPQMatrix_train(self, *args)
    def reverse_transform(self, *args): return _swigfaiss.OPQMatrix_reverse_transform(self, *args)
    __swig_destroy__ = _swigfaiss.delete_OPQMatrix
    __del__ = lambda self : None;
OPQMatrix_swigregister = _swigfaiss.OPQMatrix_swigregister
OPQMatrix_swigregister(OPQMatrix)

class RemapDimensionsTransform(VectorTransform):
    __swig_setmethods__ = {}
    for _s in [VectorTransform]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, RemapDimensionsTransform, name, value)
    __swig_getmethods__ = {}
    for _s in [VectorTransform]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, RemapDimensionsTransform, name)
    __repr__ = _swig_repr
    __swig_setmethods__["map"] = _swigfaiss.RemapDimensionsTransform_map_set
    __swig_getmethods__["map"] = _swigfaiss.RemapDimensionsTransform_map_get
    if _newclass:map = _swig_property(_swigfaiss.RemapDimensionsTransform_map_get, _swigfaiss.RemapDimensionsTransform_map_set)
    def apply_noalloc(self, *args): return _swigfaiss.RemapDimensionsTransform_apply_noalloc(self, *args)
    def reverse_transform(self, *args): return _swigfaiss.RemapDimensionsTransform_reverse_transform(self, *args)
    def __init__(self, *args): 
        this = _swigfaiss.new_RemapDimensionsTransform(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_RemapDimensionsTransform
    __del__ = lambda self : None;
RemapDimensionsTransform_swigregister = _swigfaiss.RemapDimensionsTransform_swigregister
RemapDimensionsTransform_swigregister(RemapDimensionsTransform)

class IndexPreTransform(Index):
    __swig_setmethods__ = {}
    for _s in [Index]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexPreTransform, name, value)
    __swig_getmethods__ = {}
    for _s in [Index]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexPreTransform, name)
    __repr__ = _swig_repr
    __swig_setmethods__["chain"] = _swigfaiss.IndexPreTransform_chain_set
    __swig_getmethods__["chain"] = _swigfaiss.IndexPreTransform_chain_get
    if _newclass:chain = _swig_property(_swigfaiss.IndexPreTransform_chain_get, _swigfaiss.IndexPreTransform_chain_set)
    __swig_setmethods__["index"] = _swigfaiss.IndexPreTransform_index_set
    __swig_getmethods__["index"] = _swigfaiss.IndexPreTransform_index_get
    if _newclass:index = _swig_property(_swigfaiss.IndexPreTransform_index_get, _swigfaiss.IndexPreTransform_index_set)
    __swig_setmethods__["own_fields"] = _swigfaiss.IndexPreTransform_own_fields_set
    __swig_getmethods__["own_fields"] = _swigfaiss.IndexPreTransform_own_fields_get
    if _newclass:own_fields = _swig_property(_swigfaiss.IndexPreTransform_own_fields_get, _swigfaiss.IndexPreTransform_own_fields_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexPreTransform(*args)
        try: self.this.append(this)
        except: self.this = this
    def prepend_transform(self, *args): return _swigfaiss.IndexPreTransform_prepend_transform(self, *args)
    def set_typename(self): return _swigfaiss.IndexPreTransform_set_typename(self)
    def train(self, *args): return _swigfaiss.IndexPreTransform_train(self, *args)
    def add(self, *args): return _swigfaiss.IndexPreTransform_add(self, *args)
    def add_with_ids(self, *args): return _swigfaiss.IndexPreTransform_add_with_ids(self, *args)
    def reset(self): return _swigfaiss.IndexPreTransform_reset(self)
    def remove_ids(self, *args): return _swigfaiss.IndexPreTransform_remove_ids(self, *args)
    def search(self, *args): return _swigfaiss.IndexPreTransform_search(self, *args)
    def reconstruct_n(self, *args): return _swigfaiss.IndexPreTransform_reconstruct_n(self, *args)
    def apply_chain(self, *args): return _swigfaiss.IndexPreTransform_apply_chain(self, *args)
    __swig_destroy__ = _swigfaiss.delete_IndexPreTransform
    __del__ = lambda self : None;
IndexPreTransform_swigregister = _swigfaiss.IndexPreTransform_swigregister
IndexPreTransform_swigregister(IndexPreTransform)

class IndexFlat(Index):
    __swig_setmethods__ = {}
    for _s in [Index]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexFlat, name, value)
    __swig_getmethods__ = {}
    for _s in [Index]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexFlat, name)
    __repr__ = _swig_repr
    __swig_setmethods__["xb"] = _swigfaiss.IndexFlat_xb_set
    __swig_getmethods__["xb"] = _swigfaiss.IndexFlat_xb_get
    if _newclass:xb = _swig_property(_swigfaiss.IndexFlat_xb_get, _swigfaiss.IndexFlat_xb_set)
    def set_typename(self): return _swigfaiss.IndexFlat_set_typename(self)
    def add(self, *args): return _swigfaiss.IndexFlat_add(self, *args)
    def reset(self): return _swigfaiss.IndexFlat_reset(self)
    def search(self, *args): return _swigfaiss.IndexFlat_search(self, *args)
    def range_search(self, *args): return _swigfaiss.IndexFlat_range_search(self, *args)
    def reconstruct(self, *args): return _swigfaiss.IndexFlat_reconstruct(self, *args)
    def compute_distance_subset(self, *args): return _swigfaiss.IndexFlat_compute_distance_subset(self, *args)
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexFlat(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_IndexFlat
    __del__ = lambda self : None;
IndexFlat_swigregister = _swigfaiss.IndexFlat_swigregister
IndexFlat_swigregister(IndexFlat)

class IndexFlatIP(IndexFlat):
    __swig_setmethods__ = {}
    for _s in [IndexFlat]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexFlatIP, name, value)
    __swig_getmethods__ = {}
    for _s in [IndexFlat]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexFlatIP, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexFlatIP(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_IndexFlatIP
    __del__ = lambda self : None;
IndexFlatIP_swigregister = _swigfaiss.IndexFlatIP_swigregister
IndexFlatIP_swigregister(IndexFlatIP)

class IndexFlatL2(IndexFlat):
    __swig_setmethods__ = {}
    for _s in [IndexFlat]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexFlatL2, name, value)
    __swig_getmethods__ = {}
    for _s in [IndexFlat]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexFlatL2, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexFlatL2(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_IndexFlatL2
    __del__ = lambda self : None;
IndexFlatL2_swigregister = _swigfaiss.IndexFlatL2_swigregister
IndexFlatL2_swigregister(IndexFlatL2)

class IndexFlatL2BaseShift(IndexFlatL2):
    __swig_setmethods__ = {}
    for _s in [IndexFlatL2]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexFlatL2BaseShift, name, value)
    __swig_getmethods__ = {}
    for _s in [IndexFlatL2]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexFlatL2BaseShift, name)
    __repr__ = _swig_repr
    __swig_setmethods__["shift"] = _swigfaiss.IndexFlatL2BaseShift_shift_set
    __swig_getmethods__["shift"] = _swigfaiss.IndexFlatL2BaseShift_shift_get
    if _newclass:shift = _swig_property(_swigfaiss.IndexFlatL2BaseShift_shift_get, _swigfaiss.IndexFlatL2BaseShift_shift_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexFlatL2BaseShift(*args)
        try: self.this.append(this)
        except: self.this = this
    def search(self, *args): return _swigfaiss.IndexFlatL2BaseShift_search(self, *args)
    __swig_destroy__ = _swigfaiss.delete_IndexFlatL2BaseShift
    __del__ = lambda self : None;
IndexFlatL2BaseShift_swigregister = _swigfaiss.IndexFlatL2BaseShift_swigregister
IndexFlatL2BaseShift_swigregister(IndexFlatL2BaseShift)

class IndexRefineFlat(Index):
    __swig_setmethods__ = {}
    for _s in [Index]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexRefineFlat, name, value)
    __swig_getmethods__ = {}
    for _s in [Index]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexRefineFlat, name)
    __repr__ = _swig_repr
    __swig_setmethods__["refine_index"] = _swigfaiss.IndexRefineFlat_refine_index_set
    __swig_getmethods__["refine_index"] = _swigfaiss.IndexRefineFlat_refine_index_get
    if _newclass:refine_index = _swig_property(_swigfaiss.IndexRefineFlat_refine_index_get, _swigfaiss.IndexRefineFlat_refine_index_set)
    __swig_setmethods__["base_index"] = _swigfaiss.IndexRefineFlat_base_index_set
    __swig_getmethods__["base_index"] = _swigfaiss.IndexRefineFlat_base_index_get
    if _newclass:base_index = _swig_property(_swigfaiss.IndexRefineFlat_base_index_get, _swigfaiss.IndexRefineFlat_base_index_set)
    __swig_setmethods__["own_fields"] = _swigfaiss.IndexRefineFlat_own_fields_set
    __swig_getmethods__["own_fields"] = _swigfaiss.IndexRefineFlat_own_fields_get
    if _newclass:own_fields = _swig_property(_swigfaiss.IndexRefineFlat_own_fields_get, _swigfaiss.IndexRefineFlat_own_fields_set)
    __swig_setmethods__["k_factor"] = _swigfaiss.IndexRefineFlat_k_factor_set
    __swig_getmethods__["k_factor"] = _swigfaiss.IndexRefineFlat_k_factor_get
    if _newclass:k_factor = _swig_property(_swigfaiss.IndexRefineFlat_k_factor_get, _swigfaiss.IndexRefineFlat_k_factor_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexRefineFlat(*args)
        try: self.this.append(this)
        except: self.this = this
    def train(self, *args): return _swigfaiss.IndexRefineFlat_train(self, *args)
    def add(self, *args): return _swigfaiss.IndexRefineFlat_add(self, *args)
    def reset(self): return _swigfaiss.IndexRefineFlat_reset(self)
    def search(self, *args): return _swigfaiss.IndexRefineFlat_search(self, *args)
    def set_typename(self): return _swigfaiss.IndexRefineFlat_set_typename(self)
    __swig_destroy__ = _swigfaiss.delete_IndexRefineFlat
    __del__ = lambda self : None;
IndexRefineFlat_swigregister = _swigfaiss.IndexRefineFlat_swigregister
IndexRefineFlat_swigregister(IndexRefineFlat)

class IndexFlat1D(IndexFlatL2):
    __swig_setmethods__ = {}
    for _s in [IndexFlatL2]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexFlat1D, name, value)
    __swig_getmethods__ = {}
    for _s in [IndexFlatL2]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexFlat1D, name)
    __repr__ = _swig_repr
    __swig_setmethods__["continuous_update"] = _swigfaiss.IndexFlat1D_continuous_update_set
    __swig_getmethods__["continuous_update"] = _swigfaiss.IndexFlat1D_continuous_update_get
    if _newclass:continuous_update = _swig_property(_swigfaiss.IndexFlat1D_continuous_update_get, _swigfaiss.IndexFlat1D_continuous_update_set)
    __swig_setmethods__["perm"] = _swigfaiss.IndexFlat1D_perm_set
    __swig_getmethods__["perm"] = _swigfaiss.IndexFlat1D_perm_get
    if _newclass:perm = _swig_property(_swigfaiss.IndexFlat1D_perm_get, _swigfaiss.IndexFlat1D_perm_set)
    def __init__(self, continuous_update=True): 
        this = _swigfaiss.new_IndexFlat1D(continuous_update)
        try: self.this.append(this)
        except: self.this = this
    def update_permutation(self): return _swigfaiss.IndexFlat1D_update_permutation(self)
    def add(self, *args): return _swigfaiss.IndexFlat1D_add(self, *args)
    def reset(self): return _swigfaiss.IndexFlat1D_reset(self)
    def search(self, *args): return _swigfaiss.IndexFlat1D_search(self, *args)
    __swig_destroy__ = _swigfaiss.delete_IndexFlat1D
    __del__ = lambda self : None;
IndexFlat1D_swigregister = _swigfaiss.IndexFlat1D_swigregister
IndexFlat1D_swigregister(IndexFlat1D)

class IndexLSH(Index):
    __swig_setmethods__ = {}
    for _s in [Index]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexLSH, name, value)
    __swig_getmethods__ = {}
    for _s in [Index]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexLSH, name)
    __repr__ = _swig_repr
    __swig_setmethods__["nbits"] = _swigfaiss.IndexLSH_nbits_set
    __swig_getmethods__["nbits"] = _swigfaiss.IndexLSH_nbits_get
    if _newclass:nbits = _swig_property(_swigfaiss.IndexLSH_nbits_get, _swigfaiss.IndexLSH_nbits_set)
    __swig_setmethods__["bytes_per_vec"] = _swigfaiss.IndexLSH_bytes_per_vec_set
    __swig_getmethods__["bytes_per_vec"] = _swigfaiss.IndexLSH_bytes_per_vec_get
    if _newclass:bytes_per_vec = _swig_property(_swigfaiss.IndexLSH_bytes_per_vec_get, _swigfaiss.IndexLSH_bytes_per_vec_set)
    __swig_setmethods__["rotate_data"] = _swigfaiss.IndexLSH_rotate_data_set
    __swig_getmethods__["rotate_data"] = _swigfaiss.IndexLSH_rotate_data_get
    if _newclass:rotate_data = _swig_property(_swigfaiss.IndexLSH_rotate_data_get, _swigfaiss.IndexLSH_rotate_data_set)
    __swig_setmethods__["train_thresholds"] = _swigfaiss.IndexLSH_train_thresholds_set
    __swig_getmethods__["train_thresholds"] = _swigfaiss.IndexLSH_train_thresholds_get
    if _newclass:train_thresholds = _swig_property(_swigfaiss.IndexLSH_train_thresholds_get, _swigfaiss.IndexLSH_train_thresholds_set)
    __swig_setmethods__["rrot"] = _swigfaiss.IndexLSH_rrot_set
    __swig_getmethods__["rrot"] = _swigfaiss.IndexLSH_rrot_get
    if _newclass:rrot = _swig_property(_swigfaiss.IndexLSH_rrot_get, _swigfaiss.IndexLSH_rrot_set)
    __swig_setmethods__["thresholds"] = _swigfaiss.IndexLSH_thresholds_set
    __swig_getmethods__["thresholds"] = _swigfaiss.IndexLSH_thresholds_get
    if _newclass:thresholds = _swig_property(_swigfaiss.IndexLSH_thresholds_get, _swigfaiss.IndexLSH_thresholds_set)
    __swig_setmethods__["codes"] = _swigfaiss.IndexLSH_codes_set
    __swig_getmethods__["codes"] = _swigfaiss.IndexLSH_codes_get
    if _newclass:codes = _swig_property(_swigfaiss.IndexLSH_codes_get, _swigfaiss.IndexLSH_codes_set)
    def apply_preprocess(self, *args): return _swigfaiss.IndexLSH_apply_preprocess(self, *args)
    def set_typename(self): return _swigfaiss.IndexLSH_set_typename(self)
    def train(self, *args): return _swigfaiss.IndexLSH_train(self, *args)
    def add(self, *args): return _swigfaiss.IndexLSH_add(self, *args)
    def search(self, *args): return _swigfaiss.IndexLSH_search(self, *args)
    def reset(self): return _swigfaiss.IndexLSH_reset(self)
    def transfer_thresholds(self, *args): return _swigfaiss.IndexLSH_transfer_thresholds(self, *args)
    __swig_destroy__ = _swigfaiss.delete_IndexLSH
    __del__ = lambda self : None;
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexLSH(*args)
        try: self.this.append(this)
        except: self.this = this
IndexLSH_swigregister = _swigfaiss.IndexLSH_swigregister
IndexLSH_swigregister(IndexLSH)

class SimulatedAnnealingParameters(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, SimulatedAnnealingParameters, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, SimulatedAnnealingParameters, name)
    __repr__ = _swig_repr
    __swig_setmethods__["init_temperature"] = _swigfaiss.SimulatedAnnealingParameters_init_temperature_set
    __swig_getmethods__["init_temperature"] = _swigfaiss.SimulatedAnnealingParameters_init_temperature_get
    if _newclass:init_temperature = _swig_property(_swigfaiss.SimulatedAnnealingParameters_init_temperature_get, _swigfaiss.SimulatedAnnealingParameters_init_temperature_set)
    __swig_setmethods__["temperature_decay"] = _swigfaiss.SimulatedAnnealingParameters_temperature_decay_set
    __swig_getmethods__["temperature_decay"] = _swigfaiss.SimulatedAnnealingParameters_temperature_decay_get
    if _newclass:temperature_decay = _swig_property(_swigfaiss.SimulatedAnnealingParameters_temperature_decay_get, _swigfaiss.SimulatedAnnealingParameters_temperature_decay_set)
    __swig_setmethods__["n_iter"] = _swigfaiss.SimulatedAnnealingParameters_n_iter_set
    __swig_getmethods__["n_iter"] = _swigfaiss.SimulatedAnnealingParameters_n_iter_get
    if _newclass:n_iter = _swig_property(_swigfaiss.SimulatedAnnealingParameters_n_iter_get, _swigfaiss.SimulatedAnnealingParameters_n_iter_set)
    __swig_setmethods__["n_redo"] = _swigfaiss.SimulatedAnnealingParameters_n_redo_set
    __swig_getmethods__["n_redo"] = _swigfaiss.SimulatedAnnealingParameters_n_redo_get
    if _newclass:n_redo = _swig_property(_swigfaiss.SimulatedAnnealingParameters_n_redo_get, _swigfaiss.SimulatedAnnealingParameters_n_redo_set)
    __swig_setmethods__["seed"] = _swigfaiss.SimulatedAnnealingParameters_seed_set
    __swig_getmethods__["seed"] = _swigfaiss.SimulatedAnnealingParameters_seed_get
    if _newclass:seed = _swig_property(_swigfaiss.SimulatedAnnealingParameters_seed_get, _swigfaiss.SimulatedAnnealingParameters_seed_set)
    __swig_setmethods__["verbose"] = _swigfaiss.SimulatedAnnealingParameters_verbose_set
    __swig_getmethods__["verbose"] = _swigfaiss.SimulatedAnnealingParameters_verbose_get
    if _newclass:verbose = _swig_property(_swigfaiss.SimulatedAnnealingParameters_verbose_get, _swigfaiss.SimulatedAnnealingParameters_verbose_set)
    __swig_setmethods__["only_bit_flips"] = _swigfaiss.SimulatedAnnealingParameters_only_bit_flips_set
    __swig_getmethods__["only_bit_flips"] = _swigfaiss.SimulatedAnnealingParameters_only_bit_flips_get
    if _newclass:only_bit_flips = _swig_property(_swigfaiss.SimulatedAnnealingParameters_only_bit_flips_get, _swigfaiss.SimulatedAnnealingParameters_only_bit_flips_set)
    __swig_setmethods__["init_random"] = _swigfaiss.SimulatedAnnealingParameters_init_random_set
    __swig_getmethods__["init_random"] = _swigfaiss.SimulatedAnnealingParameters_init_random_get
    if _newclass:init_random = _swig_property(_swigfaiss.SimulatedAnnealingParameters_init_random_get, _swigfaiss.SimulatedAnnealingParameters_init_random_set)
    def __init__(self): 
        this = _swigfaiss.new_SimulatedAnnealingParameters()
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_SimulatedAnnealingParameters
    __del__ = lambda self : None;
SimulatedAnnealingParameters_swigregister = _swigfaiss.SimulatedAnnealingParameters_swigregister
SimulatedAnnealingParameters_swigregister(SimulatedAnnealingParameters)

class PermutationObjective(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, PermutationObjective, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, PermutationObjective, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_setmethods__["n"] = _swigfaiss.PermutationObjective_n_set
    __swig_getmethods__["n"] = _swigfaiss.PermutationObjective_n_get
    if _newclass:n = _swig_property(_swigfaiss.PermutationObjective_n_get, _swigfaiss.PermutationObjective_n_set)
    def compute_cost(self, *args): return _swigfaiss.PermutationObjective_compute_cost(self, *args)
    def cost_update(self, *args): return _swigfaiss.PermutationObjective_cost_update(self, *args)
    __swig_destroy__ = _swigfaiss.delete_PermutationObjective
    __del__ = lambda self : None;
PermutationObjective_swigregister = _swigfaiss.PermutationObjective_swigregister
PermutationObjective_swigregister(PermutationObjective)

class ReproduceDistancesObjective(PermutationObjective):
    __swig_setmethods__ = {}
    for _s in [PermutationObjective]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, ReproduceDistancesObjective, name, value)
    __swig_getmethods__ = {}
    for _s in [PermutationObjective]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, ReproduceDistancesObjective, name)
    __repr__ = _swig_repr
    __swig_setmethods__["dis_weight_factor"] = _swigfaiss.ReproduceDistancesObjective_dis_weight_factor_set
    __swig_getmethods__["dis_weight_factor"] = _swigfaiss.ReproduceDistancesObjective_dis_weight_factor_get
    if _newclass:dis_weight_factor = _swig_property(_swigfaiss.ReproduceDistancesObjective_dis_weight_factor_get, _swigfaiss.ReproduceDistancesObjective_dis_weight_factor_set)
    __swig_getmethods__["sqr"] = lambda x: _swigfaiss.ReproduceDistancesObjective_sqr
    if _newclass:sqr = staticmethod(_swigfaiss.ReproduceDistancesObjective_sqr)
    def dis_weight(self, *args): return _swigfaiss.ReproduceDistancesObjective_dis_weight(self, *args)
    __swig_setmethods__["source_dis"] = _swigfaiss.ReproduceDistancesObjective_source_dis_set
    __swig_getmethods__["source_dis"] = _swigfaiss.ReproduceDistancesObjective_source_dis_get
    if _newclass:source_dis = _swig_property(_swigfaiss.ReproduceDistancesObjective_source_dis_get, _swigfaiss.ReproduceDistancesObjective_source_dis_set)
    __swig_setmethods__["target_dis"] = _swigfaiss.ReproduceDistancesObjective_target_dis_set
    __swig_getmethods__["target_dis"] = _swigfaiss.ReproduceDistancesObjective_target_dis_get
    if _newclass:target_dis = _swig_property(_swigfaiss.ReproduceDistancesObjective_target_dis_get, _swigfaiss.ReproduceDistancesObjective_target_dis_set)
    __swig_setmethods__["weights"] = _swigfaiss.ReproduceDistancesObjective_weights_set
    __swig_getmethods__["weights"] = _swigfaiss.ReproduceDistancesObjective_weights_get
    if _newclass:weights = _swig_property(_swigfaiss.ReproduceDistancesObjective_weights_get, _swigfaiss.ReproduceDistancesObjective_weights_set)
    def get_source_dis(self, *args): return _swigfaiss.ReproduceDistancesObjective_get_source_dis(self, *args)
    def compute_cost(self, *args): return _swigfaiss.ReproduceDistancesObjective_compute_cost(self, *args)
    def cost_update(self, *args): return _swigfaiss.ReproduceDistancesObjective_cost_update(self, *args)
    def __init__(self, *args): 
        this = _swigfaiss.new_ReproduceDistancesObjective(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_getmethods__["compute_mean_stdev"] = lambda x: _swigfaiss.ReproduceDistancesObjective_compute_mean_stdev
    if _newclass:compute_mean_stdev = staticmethod(_swigfaiss.ReproduceDistancesObjective_compute_mean_stdev)
    def set_affine_target_dis(self, *args): return _swigfaiss.ReproduceDistancesObjective_set_affine_target_dis(self, *args)
    __swig_destroy__ = _swigfaiss.delete_ReproduceDistancesObjective
    __del__ = lambda self : None;
ReproduceDistancesObjective_swigregister = _swigfaiss.ReproduceDistancesObjective_swigregister
ReproduceDistancesObjective_swigregister(ReproduceDistancesObjective)

def ReproduceDistancesObjective_sqr(*args):
  return _swigfaiss.ReproduceDistancesObjective_sqr(*args)
ReproduceDistancesObjective_sqr = _swigfaiss.ReproduceDistancesObjective_sqr

def ReproduceDistancesObjective_compute_mean_stdev(*args):
  return _swigfaiss.ReproduceDistancesObjective_compute_mean_stdev(*args)
ReproduceDistancesObjective_compute_mean_stdev = _swigfaiss.ReproduceDistancesObjective_compute_mean_stdev

class SimulatedAnnealingOptimizer(SimulatedAnnealingParameters):
    __swig_setmethods__ = {}
    for _s in [SimulatedAnnealingParameters]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, SimulatedAnnealingOptimizer, name, value)
    __swig_getmethods__ = {}
    for _s in [SimulatedAnnealingParameters]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, SimulatedAnnealingOptimizer, name)
    __repr__ = _swig_repr
    __swig_setmethods__["obj"] = _swigfaiss.SimulatedAnnealingOptimizer_obj_set
    __swig_getmethods__["obj"] = _swigfaiss.SimulatedAnnealingOptimizer_obj_get
    if _newclass:obj = _swig_property(_swigfaiss.SimulatedAnnealingOptimizer_obj_get, _swigfaiss.SimulatedAnnealingOptimizer_obj_set)
    __swig_setmethods__["n"] = _swigfaiss.SimulatedAnnealingOptimizer_n_set
    __swig_getmethods__["n"] = _swigfaiss.SimulatedAnnealingOptimizer_n_get
    if _newclass:n = _swig_property(_swigfaiss.SimulatedAnnealingOptimizer_n_get, _swigfaiss.SimulatedAnnealingOptimizer_n_set)
    __swig_setmethods__["logfile"] = _swigfaiss.SimulatedAnnealingOptimizer_logfile_set
    __swig_getmethods__["logfile"] = _swigfaiss.SimulatedAnnealingOptimizer_logfile_get
    if _newclass:logfile = _swig_property(_swigfaiss.SimulatedAnnealingOptimizer_logfile_get, _swigfaiss.SimulatedAnnealingOptimizer_logfile_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_SimulatedAnnealingOptimizer(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_setmethods__["rnd"] = _swigfaiss.SimulatedAnnealingOptimizer_rnd_set
    __swig_getmethods__["rnd"] = _swigfaiss.SimulatedAnnealingOptimizer_rnd_get
    if _newclass:rnd = _swig_property(_swigfaiss.SimulatedAnnealingOptimizer_rnd_get, _swigfaiss.SimulatedAnnealingOptimizer_rnd_set)
    __swig_setmethods__["init_cost"] = _swigfaiss.SimulatedAnnealingOptimizer_init_cost_set
    __swig_getmethods__["init_cost"] = _swigfaiss.SimulatedAnnealingOptimizer_init_cost_get
    if _newclass:init_cost = _swig_property(_swigfaiss.SimulatedAnnealingOptimizer_init_cost_get, _swigfaiss.SimulatedAnnealingOptimizer_init_cost_set)
    def optimize(self, *args): return _swigfaiss.SimulatedAnnealingOptimizer_optimize(self, *args)
    def run_optimization(self, *args): return _swigfaiss.SimulatedAnnealingOptimizer_run_optimization(self, *args)
    __swig_destroy__ = _swigfaiss.delete_SimulatedAnnealingOptimizer
    __del__ = lambda self : None;
SimulatedAnnealingOptimizer_swigregister = _swigfaiss.SimulatedAnnealingOptimizer_swigregister
SimulatedAnnealingOptimizer_swigregister(SimulatedAnnealingOptimizer)

class PolysemousTraining(SimulatedAnnealingParameters):
    __swig_setmethods__ = {}
    for _s in [SimulatedAnnealingParameters]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, PolysemousTraining, name, value)
    __swig_getmethods__ = {}
    for _s in [SimulatedAnnealingParameters]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, PolysemousTraining, name)
    __repr__ = _swig_repr
    OT_None = _swigfaiss.PolysemousTraining_OT_None
    OT_ReproduceDistances_affine = _swigfaiss.PolysemousTraining_OT_ReproduceDistances_affine
    OT_Ranking_weighted_diff = _swigfaiss.PolysemousTraining_OT_Ranking_weighted_diff
    __swig_setmethods__["optimization_type"] = _swigfaiss.PolysemousTraining_optimization_type_set
    __swig_getmethods__["optimization_type"] = _swigfaiss.PolysemousTraining_optimization_type_get
    if _newclass:optimization_type = _swig_property(_swigfaiss.PolysemousTraining_optimization_type_get, _swigfaiss.PolysemousTraining_optimization_type_set)
    __swig_setmethods__["ntrain_permutation"] = _swigfaiss.PolysemousTraining_ntrain_permutation_set
    __swig_getmethods__["ntrain_permutation"] = _swigfaiss.PolysemousTraining_ntrain_permutation_get
    if _newclass:ntrain_permutation = _swig_property(_swigfaiss.PolysemousTraining_ntrain_permutation_get, _swigfaiss.PolysemousTraining_ntrain_permutation_set)
    __swig_setmethods__["dis_weight_factor"] = _swigfaiss.PolysemousTraining_dis_weight_factor_set
    __swig_getmethods__["dis_weight_factor"] = _swigfaiss.PolysemousTraining_dis_weight_factor_get
    if _newclass:dis_weight_factor = _swig_property(_swigfaiss.PolysemousTraining_dis_weight_factor_get, _swigfaiss.PolysemousTraining_dis_weight_factor_set)
    __swig_setmethods__["log_pattern"] = _swigfaiss.PolysemousTraining_log_pattern_set
    __swig_getmethods__["log_pattern"] = _swigfaiss.PolysemousTraining_log_pattern_get
    if _newclass:log_pattern = _swig_property(_swigfaiss.PolysemousTraining_log_pattern_get, _swigfaiss.PolysemousTraining_log_pattern_set)
    def __init__(self): 
        this = _swigfaiss.new_PolysemousTraining()
        try: self.this.append(this)
        except: self.this = this
    def optimize_pq_for_hamming(self, *args): return _swigfaiss.PolysemousTraining_optimize_pq_for_hamming(self, *args)
    def optimize_ranking(self, *args): return _swigfaiss.PolysemousTraining_optimize_ranking(self, *args)
    def optimize_reproduce_distances(self, *args): return _swigfaiss.PolysemousTraining_optimize_reproduce_distances(self, *args)
    __swig_destroy__ = _swigfaiss.delete_PolysemousTraining
    __del__ = lambda self : None;
PolysemousTraining_swigregister = _swigfaiss.PolysemousTraining_swigregister
PolysemousTraining_swigregister(PolysemousTraining)

class IndexPQ(Index):
    __swig_setmethods__ = {}
    for _s in [Index]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexPQ, name, value)
    __swig_getmethods__ = {}
    for _s in [Index]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexPQ, name)
    __repr__ = _swig_repr
    __swig_setmethods__["pq"] = _swigfaiss.IndexPQ_pq_set
    __swig_getmethods__["pq"] = _swigfaiss.IndexPQ_pq_get
    if _newclass:pq = _swig_property(_swigfaiss.IndexPQ_pq_get, _swigfaiss.IndexPQ_pq_set)
    __swig_setmethods__["codes"] = _swigfaiss.IndexPQ_codes_set
    __swig_getmethods__["codes"] = _swigfaiss.IndexPQ_codes_get
    if _newclass:codes = _swig_property(_swigfaiss.IndexPQ_codes_get, _swigfaiss.IndexPQ_codes_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexPQ(*args)
        try: self.this.append(this)
        except: self.this = this
    def set_typename(self): return _swigfaiss.IndexPQ_set_typename(self)
    def train(self, *args): return _swigfaiss.IndexPQ_train(self, *args)
    def add(self, *args): return _swigfaiss.IndexPQ_add(self, *args)
    def search(self, *args): return _swigfaiss.IndexPQ_search(self, *args)
    def reset(self): return _swigfaiss.IndexPQ_reset(self)
    def reconstruct_n(self, *args): return _swigfaiss.IndexPQ_reconstruct_n(self, *args)
    def reconstruct(self, *args): return _swigfaiss.IndexPQ_reconstruct(self, *args)
    __swig_setmethods__["do_polysemous_training"] = _swigfaiss.IndexPQ_do_polysemous_training_set
    __swig_getmethods__["do_polysemous_training"] = _swigfaiss.IndexPQ_do_polysemous_training_get
    if _newclass:do_polysemous_training = _swig_property(_swigfaiss.IndexPQ_do_polysemous_training_get, _swigfaiss.IndexPQ_do_polysemous_training_set)
    __swig_setmethods__["polysemous_training"] = _swigfaiss.IndexPQ_polysemous_training_set
    __swig_getmethods__["polysemous_training"] = _swigfaiss.IndexPQ_polysemous_training_get
    if _newclass:polysemous_training = _swig_property(_swigfaiss.IndexPQ_polysemous_training_get, _swigfaiss.IndexPQ_polysemous_training_set)
    ST_PQ = _swigfaiss.IndexPQ_ST_PQ
    ST_HE = _swigfaiss.IndexPQ_ST_HE
    ST_generalized_HE = _swigfaiss.IndexPQ_ST_generalized_HE
    ST_SDC = _swigfaiss.IndexPQ_ST_SDC
    ST_polysemous = _swigfaiss.IndexPQ_ST_polysemous
    ST_polysemous_generalize = _swigfaiss.IndexPQ_ST_polysemous_generalize
    __swig_setmethods__["search_type"] = _swigfaiss.IndexPQ_search_type_set
    __swig_getmethods__["search_type"] = _swigfaiss.IndexPQ_search_type_get
    if _newclass:search_type = _swig_property(_swigfaiss.IndexPQ_search_type_get, _swigfaiss.IndexPQ_search_type_set)
    __swig_setmethods__["encode_signs"] = _swigfaiss.IndexPQ_encode_signs_set
    __swig_getmethods__["encode_signs"] = _swigfaiss.IndexPQ_encode_signs_get
    if _newclass:encode_signs = _swig_property(_swigfaiss.IndexPQ_encode_signs_get, _swigfaiss.IndexPQ_encode_signs_set)
    __swig_setmethods__["polysemous_ht"] = _swigfaiss.IndexPQ_polysemous_ht_set
    __swig_getmethods__["polysemous_ht"] = _swigfaiss.IndexPQ_polysemous_ht_get
    if _newclass:polysemous_ht = _swig_property(_swigfaiss.IndexPQ_polysemous_ht_get, _swigfaiss.IndexPQ_polysemous_ht_set)
    def search_core_polysemous(self, *args): return _swigfaiss.IndexPQ_search_core_polysemous(self, *args)
    def hamming_distance_histogram(self, *args): return _swigfaiss.IndexPQ_hamming_distance_histogram(self, *args)
    def hamming_distance_table(self, *args): return _swigfaiss.IndexPQ_hamming_distance_table(self, *args)
    __swig_destroy__ = _swigfaiss.delete_IndexPQ
    __del__ = lambda self : None;
IndexPQ_swigregister = _swigfaiss.IndexPQ_swigregister
IndexPQ_swigregister(IndexPQ)

class IndexPQStats(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexPQStats, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, IndexPQStats, name)
    __repr__ = _swig_repr
    __swig_setmethods__["nq"] = _swigfaiss.IndexPQStats_nq_set
    __swig_getmethods__["nq"] = _swigfaiss.IndexPQStats_nq_get
    if _newclass:nq = _swig_property(_swigfaiss.IndexPQStats_nq_get, _swigfaiss.IndexPQStats_nq_set)
    __swig_setmethods__["ncode"] = _swigfaiss.IndexPQStats_ncode_set
    __swig_getmethods__["ncode"] = _swigfaiss.IndexPQStats_ncode_get
    if _newclass:ncode = _swig_property(_swigfaiss.IndexPQStats_ncode_get, _swigfaiss.IndexPQStats_ncode_set)
    __swig_setmethods__["n_hamming_pass"] = _swigfaiss.IndexPQStats_n_hamming_pass_set
    __swig_getmethods__["n_hamming_pass"] = _swigfaiss.IndexPQStats_n_hamming_pass_get
    if _newclass:n_hamming_pass = _swig_property(_swigfaiss.IndexPQStats_n_hamming_pass_get, _swigfaiss.IndexPQStats_n_hamming_pass_set)
    def __init__(self): 
        this = _swigfaiss.new_IndexPQStats()
        try: self.this.append(this)
        except: self.this = this
    def reset(self): return _swigfaiss.IndexPQStats_reset(self)
    __swig_destroy__ = _swigfaiss.delete_IndexPQStats
    __del__ = lambda self : None;
IndexPQStats_swigregister = _swigfaiss.IndexPQStats_swigregister
IndexPQStats_swigregister(IndexPQStats)

class MultiIndexQuantizer(Index):
    __swig_setmethods__ = {}
    for _s in [Index]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, MultiIndexQuantizer, name, value)
    __swig_getmethods__ = {}
    for _s in [Index]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, MultiIndexQuantizer, name)
    __repr__ = _swig_repr
    __swig_setmethods__["pq"] = _swigfaiss.MultiIndexQuantizer_pq_set
    __swig_getmethods__["pq"] = _swigfaiss.MultiIndexQuantizer_pq_get
    if _newclass:pq = _swig_property(_swigfaiss.MultiIndexQuantizer_pq_get, _swigfaiss.MultiIndexQuantizer_pq_set)
    def set_typename(self): return _swigfaiss.MultiIndexQuantizer_set_typename(self)
    def train(self, *args): return _swigfaiss.MultiIndexQuantizer_train(self, *args)
    def search(self, *args): return _swigfaiss.MultiIndexQuantizer_search(self, *args)
    def add(self, *args): return _swigfaiss.MultiIndexQuantizer_add(self, *args)
    def reset(self): return _swigfaiss.MultiIndexQuantizer_reset(self)
    def __init__(self, *args): 
        this = _swigfaiss.new_MultiIndexQuantizer(*args)
        try: self.this.append(this)
        except: self.this = this
    def reconstruct(self, *args): return _swigfaiss.MultiIndexQuantizer_reconstruct(self, *args)
    __swig_destroy__ = _swigfaiss.delete_MultiIndexQuantizer
    __del__ = lambda self : None;
MultiIndexQuantizer_swigregister = _swigfaiss.MultiIndexQuantizer_swigregister
MultiIndexQuantizer_swigregister(MultiIndexQuantizer)
cvar = _swigfaiss.cvar

class IndexIVF(Index):
    __swig_setmethods__ = {}
    for _s in [Index]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexIVF, name, value)
    __swig_getmethods__ = {}
    for _s in [Index]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexIVF, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_setmethods__["nlist"] = _swigfaiss.IndexIVF_nlist_set
    __swig_getmethods__["nlist"] = _swigfaiss.IndexIVF_nlist_get
    if _newclass:nlist = _swig_property(_swigfaiss.IndexIVF_nlist_get, _swigfaiss.IndexIVF_nlist_set)
    __swig_setmethods__["nprobe"] = _swigfaiss.IndexIVF_nprobe_set
    __swig_getmethods__["nprobe"] = _swigfaiss.IndexIVF_nprobe_get
    if _newclass:nprobe = _swig_property(_swigfaiss.IndexIVF_nprobe_get, _swigfaiss.IndexIVF_nprobe_set)
    __swig_setmethods__["quantizer"] = _swigfaiss.IndexIVF_quantizer_set
    __swig_getmethods__["quantizer"] = _swigfaiss.IndexIVF_quantizer_get
    if _newclass:quantizer = _swig_property(_swigfaiss.IndexIVF_quantizer_get, _swigfaiss.IndexIVF_quantizer_set)
    __swig_setmethods__["quantizer_trains_alone"] = _swigfaiss.IndexIVF_quantizer_trains_alone_set
    __swig_getmethods__["quantizer_trains_alone"] = _swigfaiss.IndexIVF_quantizer_trains_alone_get
    if _newclass:quantizer_trains_alone = _swig_property(_swigfaiss.IndexIVF_quantizer_trains_alone_get, _swigfaiss.IndexIVF_quantizer_trains_alone_set)
    __swig_setmethods__["own_fields"] = _swigfaiss.IndexIVF_own_fields_set
    __swig_getmethods__["own_fields"] = _swigfaiss.IndexIVF_own_fields_get
    if _newclass:own_fields = _swig_property(_swigfaiss.IndexIVF_own_fields_get, _swigfaiss.IndexIVF_own_fields_set)
    __swig_setmethods__["cp"] = _swigfaiss.IndexIVF_cp_set
    __swig_getmethods__["cp"] = _swigfaiss.IndexIVF_cp_get
    if _newclass:cp = _swig_property(_swigfaiss.IndexIVF_cp_get, _swigfaiss.IndexIVF_cp_set)
    __swig_setmethods__["ids"] = _swigfaiss.IndexIVF_ids_set
    __swig_getmethods__["ids"] = _swigfaiss.IndexIVF_ids_get
    if _newclass:ids = _swig_property(_swigfaiss.IndexIVF_ids_get, _swigfaiss.IndexIVF_ids_set)
    __swig_setmethods__["maintain_direct_map"] = _swigfaiss.IndexIVF_maintain_direct_map_set
    __swig_getmethods__["maintain_direct_map"] = _swigfaiss.IndexIVF_maintain_direct_map_get
    if _newclass:maintain_direct_map = _swig_property(_swigfaiss.IndexIVF_maintain_direct_map_get, _swigfaiss.IndexIVF_maintain_direct_map_set)
    __swig_setmethods__["direct_map"] = _swigfaiss.IndexIVF_direct_map_set
    __swig_getmethods__["direct_map"] = _swigfaiss.IndexIVF_direct_map_get
    if _newclass:direct_map = _swig_property(_swigfaiss.IndexIVF_direct_map_get, _swigfaiss.IndexIVF_direct_map_set)
    def reset(self): return _swigfaiss.IndexIVF_reset(self)
    def train(self, *args): return _swigfaiss.IndexIVF_train(self, *args)
    def add(self, *args): return _swigfaiss.IndexIVF_add(self, *args)
    def train_residual(self, *args): return _swigfaiss.IndexIVF_train_residual(self, *args)
    def merge_from(self, *args): return _swigfaiss.IndexIVF_merge_from(self, *args)
    def merge_from_residuals(self, *args): return _swigfaiss.IndexIVF_merge_from_residuals(self, *args)
    __swig_destroy__ = _swigfaiss.delete_IndexIVF
    __del__ = lambda self : None;
    def make_direct_map(self): return _swigfaiss.IndexIVF_make_direct_map(self)
    def imbalance_factor(self): return _swigfaiss.IndexIVF_imbalance_factor(self)
    def print_stats(self): return _swigfaiss.IndexIVF_print_stats(self)
IndexIVF_swigregister = _swigfaiss.IndexIVF_swigregister
IndexIVF_swigregister(IndexIVF)

class IndexIVFFlat(IndexIVF):
    __swig_setmethods__ = {}
    for _s in [IndexIVF]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexIVFFlat, name, value)
    __swig_getmethods__ = {}
    for _s in [IndexIVF]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexIVFFlat, name)
    __repr__ = _swig_repr
    __swig_setmethods__["vecs"] = _swigfaiss.IndexIVFFlat_vecs_set
    __swig_getmethods__["vecs"] = _swigfaiss.IndexIVFFlat_vecs_get
    if _newclass:vecs = _swig_property(_swigfaiss.IndexIVFFlat_vecs_get, _swigfaiss.IndexIVFFlat_vecs_set)
    def set_typename(self): return _swigfaiss.IndexIVFFlat_set_typename(self)
    def add_core(self, *args): return _swigfaiss.IndexIVFFlat_add_core(self, *args)
    def add_with_ids(self, *args): return _swigfaiss.IndexIVFFlat_add_with_ids(self, *args)
    def search(self, *args): return _swigfaiss.IndexIVFFlat_search(self, *args)
    def range_search(self, *args): return _swigfaiss.IndexIVFFlat_range_search(self, *args)
    def copy_subset_to(self, *args): return _swigfaiss.IndexIVFFlat_copy_subset_to(self, *args)
    def reset(self): return _swigfaiss.IndexIVFFlat_reset(self)
    def remove_ids(self, *args): return _swigfaiss.IndexIVFFlat_remove_ids(self, *args)
    def search_knn_inner_product(self, *args): return _swigfaiss.IndexIVFFlat_search_knn_inner_product(self, *args)
    def search_knn_L2sqr(self, *args): return _swigfaiss.IndexIVFFlat_search_knn_L2sqr(self, *args)
    def reconstruct(self, *args): return _swigfaiss.IndexIVFFlat_reconstruct(self, *args)
    def merge_from_residuals(self, *args): return _swigfaiss.IndexIVFFlat_merge_from_residuals(self, *args)
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexIVFFlat(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_IndexIVFFlat
    __del__ = lambda self : None;
IndexIVFFlat_swigregister = _swigfaiss.IndexIVFFlat_swigregister
IndexIVFFlat_swigregister(IndexIVFFlat)

class IndexIVFPQ(IndexIVF):
    __swig_setmethods__ = {}
    for _s in [IndexIVF]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexIVFPQ, name, value)
    __swig_getmethods__ = {}
    for _s in [IndexIVF]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexIVFPQ, name)
    __repr__ = _swig_repr
    __swig_setmethods__["by_residual"] = _swigfaiss.IndexIVFPQ_by_residual_set
    __swig_getmethods__["by_residual"] = _swigfaiss.IndexIVFPQ_by_residual_get
    if _newclass:by_residual = _swig_property(_swigfaiss.IndexIVFPQ_by_residual_get, _swigfaiss.IndexIVFPQ_by_residual_set)
    __swig_setmethods__["use_precomputed_table"] = _swigfaiss.IndexIVFPQ_use_precomputed_table_set
    __swig_getmethods__["use_precomputed_table"] = _swigfaiss.IndexIVFPQ_use_precomputed_table_get
    if _newclass:use_precomputed_table = _swig_property(_swigfaiss.IndexIVFPQ_use_precomputed_table_get, _swigfaiss.IndexIVFPQ_use_precomputed_table_set)
    __swig_setmethods__["code_size"] = _swigfaiss.IndexIVFPQ_code_size_set
    __swig_getmethods__["code_size"] = _swigfaiss.IndexIVFPQ_code_size_get
    if _newclass:code_size = _swig_property(_swigfaiss.IndexIVFPQ_code_size_get, _swigfaiss.IndexIVFPQ_code_size_set)
    __swig_setmethods__["pq"] = _swigfaiss.IndexIVFPQ_pq_set
    __swig_getmethods__["pq"] = _swigfaiss.IndexIVFPQ_pq_get
    if _newclass:pq = _swig_property(_swigfaiss.IndexIVFPQ_pq_get, _swigfaiss.IndexIVFPQ_pq_set)
    __swig_setmethods__["do_polysemous_training"] = _swigfaiss.IndexIVFPQ_do_polysemous_training_set
    __swig_getmethods__["do_polysemous_training"] = _swigfaiss.IndexIVFPQ_do_polysemous_training_get
    if _newclass:do_polysemous_training = _swig_property(_swigfaiss.IndexIVFPQ_do_polysemous_training_get, _swigfaiss.IndexIVFPQ_do_polysemous_training_set)
    __swig_setmethods__["polysemous_training"] = _swigfaiss.IndexIVFPQ_polysemous_training_set
    __swig_getmethods__["polysemous_training"] = _swigfaiss.IndexIVFPQ_polysemous_training_get
    if _newclass:polysemous_training = _swig_property(_swigfaiss.IndexIVFPQ_polysemous_training_get, _swigfaiss.IndexIVFPQ_polysemous_training_set)
    __swig_setmethods__["scan_table_threshold"] = _swigfaiss.IndexIVFPQ_scan_table_threshold_set
    __swig_getmethods__["scan_table_threshold"] = _swigfaiss.IndexIVFPQ_scan_table_threshold_get
    if _newclass:scan_table_threshold = _swig_property(_swigfaiss.IndexIVFPQ_scan_table_threshold_get, _swigfaiss.IndexIVFPQ_scan_table_threshold_set)
    __swig_setmethods__["max_codes"] = _swigfaiss.IndexIVFPQ_max_codes_set
    __swig_getmethods__["max_codes"] = _swigfaiss.IndexIVFPQ_max_codes_get
    if _newclass:max_codes = _swig_property(_swigfaiss.IndexIVFPQ_max_codes_get, _swigfaiss.IndexIVFPQ_max_codes_set)
    __swig_setmethods__["polysemous_ht"] = _swigfaiss.IndexIVFPQ_polysemous_ht_set
    __swig_getmethods__["polysemous_ht"] = _swigfaiss.IndexIVFPQ_polysemous_ht_get
    if _newclass:polysemous_ht = _swig_property(_swigfaiss.IndexIVFPQ_polysemous_ht_get, _swigfaiss.IndexIVFPQ_polysemous_ht_set)
    __swig_setmethods__["codes"] = _swigfaiss.IndexIVFPQ_codes_set
    __swig_getmethods__["codes"] = _swigfaiss.IndexIVFPQ_codes_get
    if _newclass:codes = _swig_property(_swigfaiss.IndexIVFPQ_codes_get, _swigfaiss.IndexIVFPQ_codes_set)
    __swig_setmethods__["precomputed_table"] = _swigfaiss.IndexIVFPQ_precomputed_table_set
    __swig_getmethods__["precomputed_table"] = _swigfaiss.IndexIVFPQ_precomputed_table_get
    if _newclass:precomputed_table = _swig_property(_swigfaiss.IndexIVFPQ_precomputed_table_get, _swigfaiss.IndexIVFPQ_precomputed_table_set)
    def set_typename(self): return _swigfaiss.IndexIVFPQ_set_typename(self)
    def add_with_ids(self, *args): return _swigfaiss.IndexIVFPQ_add_with_ids(self, *args)
    def add_core_o(self, *args): return _swigfaiss.IndexIVFPQ_add_core_o(self, *args)
    def search(self, *args): return _swigfaiss.IndexIVFPQ_search(self, *args)
    def reset(self): return _swigfaiss.IndexIVFPQ_reset(self)
    def remove_ids(self, *args): return _swigfaiss.IndexIVFPQ_remove_ids(self, *args)
    def train_residual(self, *args): return _swigfaiss.IndexIVFPQ_train_residual(self, *args)
    def train_residual_o(self, *args): return _swigfaiss.IndexIVFPQ_train_residual_o(self, *args)
    def reconstruct_n(self, *args): return _swigfaiss.IndexIVFPQ_reconstruct_n(self, *args)
    def reconstruct(self, *args): return _swigfaiss.IndexIVFPQ_reconstruct(self, *args)
    def find_duplicates(self, *args): return _swigfaiss.IndexIVFPQ_find_duplicates(self, *args)
    def encode(self, *args): return _swigfaiss.IndexIVFPQ_encode(self, *args)
    def encode_multiple(self, *args): return _swigfaiss.IndexIVFPQ_encode_multiple(self, *args)
    def search_knn_with_key(self, *args): return _swigfaiss.IndexIVFPQ_search_knn_with_key(self, *args)
    def precompute_table(self): return _swigfaiss.IndexIVFPQ_precompute_table(self)
    def merge_from_residuals(self, *args): return _swigfaiss.IndexIVFPQ_merge_from_residuals(self, *args)
    def copy_subset_to(self, *args): return _swigfaiss.IndexIVFPQ_copy_subset_to(self, *args)
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexIVFPQ(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_IndexIVFPQ
    __del__ = lambda self : None;
IndexIVFPQ_swigregister = _swigfaiss.IndexIVFPQ_swigregister
IndexIVFPQ_swigregister(IndexIVFPQ)

class IndexIVFPQStats(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexIVFPQStats, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, IndexIVFPQStats, name)
    __repr__ = _swig_repr
    __swig_setmethods__["nq"] = _swigfaiss.IndexIVFPQStats_nq_set
    __swig_getmethods__["nq"] = _swigfaiss.IndexIVFPQStats_nq_get
    if _newclass:nq = _swig_property(_swigfaiss.IndexIVFPQStats_nq_get, _swigfaiss.IndexIVFPQStats_nq_set)
    __swig_setmethods__["nlist"] = _swigfaiss.IndexIVFPQStats_nlist_set
    __swig_getmethods__["nlist"] = _swigfaiss.IndexIVFPQStats_nlist_get
    if _newclass:nlist = _swig_property(_swigfaiss.IndexIVFPQStats_nlist_get, _swigfaiss.IndexIVFPQStats_nlist_set)
    __swig_setmethods__["ncode"] = _swigfaiss.IndexIVFPQStats_ncode_set
    __swig_getmethods__["ncode"] = _swigfaiss.IndexIVFPQStats_ncode_get
    if _newclass:ncode = _swig_property(_swigfaiss.IndexIVFPQStats_ncode_get, _swigfaiss.IndexIVFPQStats_ncode_set)
    __swig_setmethods__["nrefine"] = _swigfaiss.IndexIVFPQStats_nrefine_set
    __swig_getmethods__["nrefine"] = _swigfaiss.IndexIVFPQStats_nrefine_get
    if _newclass:nrefine = _swig_property(_swigfaiss.IndexIVFPQStats_nrefine_get, _swigfaiss.IndexIVFPQStats_nrefine_set)
    __swig_setmethods__["n_hamming_pass"] = _swigfaiss.IndexIVFPQStats_n_hamming_pass_set
    __swig_getmethods__["n_hamming_pass"] = _swigfaiss.IndexIVFPQStats_n_hamming_pass_get
    if _newclass:n_hamming_pass = _swig_property(_swigfaiss.IndexIVFPQStats_n_hamming_pass_get, _swigfaiss.IndexIVFPQStats_n_hamming_pass_set)
    __swig_setmethods__["assign_cycles"] = _swigfaiss.IndexIVFPQStats_assign_cycles_set
    __swig_getmethods__["assign_cycles"] = _swigfaiss.IndexIVFPQStats_assign_cycles_get
    if _newclass:assign_cycles = _swig_property(_swigfaiss.IndexIVFPQStats_assign_cycles_get, _swigfaiss.IndexIVFPQStats_assign_cycles_set)
    __swig_setmethods__["search_cycles"] = _swigfaiss.IndexIVFPQStats_search_cycles_set
    __swig_getmethods__["search_cycles"] = _swigfaiss.IndexIVFPQStats_search_cycles_get
    if _newclass:search_cycles = _swig_property(_swigfaiss.IndexIVFPQStats_search_cycles_get, _swigfaiss.IndexIVFPQStats_search_cycles_set)
    __swig_setmethods__["refine_cycles"] = _swigfaiss.IndexIVFPQStats_refine_cycles_set
    __swig_getmethods__["refine_cycles"] = _swigfaiss.IndexIVFPQStats_refine_cycles_get
    if _newclass:refine_cycles = _swig_property(_swigfaiss.IndexIVFPQStats_refine_cycles_get, _swigfaiss.IndexIVFPQStats_refine_cycles_set)
    __swig_setmethods__["init_query_cycles"] = _swigfaiss.IndexIVFPQStats_init_query_cycles_set
    __swig_getmethods__["init_query_cycles"] = _swigfaiss.IndexIVFPQStats_init_query_cycles_get
    if _newclass:init_query_cycles = _swig_property(_swigfaiss.IndexIVFPQStats_init_query_cycles_get, _swigfaiss.IndexIVFPQStats_init_query_cycles_set)
    __swig_setmethods__["init_list_cycles"] = _swigfaiss.IndexIVFPQStats_init_list_cycles_set
    __swig_getmethods__["init_list_cycles"] = _swigfaiss.IndexIVFPQStats_init_list_cycles_get
    if _newclass:init_list_cycles = _swig_property(_swigfaiss.IndexIVFPQStats_init_list_cycles_get, _swigfaiss.IndexIVFPQStats_init_list_cycles_set)
    __swig_setmethods__["scan_cycles"] = _swigfaiss.IndexIVFPQStats_scan_cycles_set
    __swig_getmethods__["scan_cycles"] = _swigfaiss.IndexIVFPQStats_scan_cycles_get
    if _newclass:scan_cycles = _swig_property(_swigfaiss.IndexIVFPQStats_scan_cycles_get, _swigfaiss.IndexIVFPQStats_scan_cycles_set)
    __swig_setmethods__["heap_cycles"] = _swigfaiss.IndexIVFPQStats_heap_cycles_set
    __swig_getmethods__["heap_cycles"] = _swigfaiss.IndexIVFPQStats_heap_cycles_get
    if _newclass:heap_cycles = _swig_property(_swigfaiss.IndexIVFPQStats_heap_cycles_get, _swigfaiss.IndexIVFPQStats_heap_cycles_set)
    def __init__(self): 
        this = _swigfaiss.new_IndexIVFPQStats()
        try: self.this.append(this)
        except: self.this = this
    def reset(self): return _swigfaiss.IndexIVFPQStats_reset(self)
    __swig_destroy__ = _swigfaiss.delete_IndexIVFPQStats
    __del__ = lambda self : None;
IndexIVFPQStats_swigregister = _swigfaiss.IndexIVFPQStats_swigregister
IndexIVFPQStats_swigregister(IndexIVFPQStats)

class IndexIVFPQR(IndexIVFPQ):
    __swig_setmethods__ = {}
    for _s in [IndexIVFPQ]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexIVFPQR, name, value)
    __swig_getmethods__ = {}
    for _s in [IndexIVFPQ]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexIVFPQR, name)
    __repr__ = _swig_repr
    __swig_setmethods__["refine_pq"] = _swigfaiss.IndexIVFPQR_refine_pq_set
    __swig_getmethods__["refine_pq"] = _swigfaiss.IndexIVFPQR_refine_pq_get
    if _newclass:refine_pq = _swig_property(_swigfaiss.IndexIVFPQR_refine_pq_get, _swigfaiss.IndexIVFPQR_refine_pq_set)
    __swig_setmethods__["refine_codes"] = _swigfaiss.IndexIVFPQR_refine_codes_set
    __swig_getmethods__["refine_codes"] = _swigfaiss.IndexIVFPQR_refine_codes_get
    if _newclass:refine_codes = _swig_property(_swigfaiss.IndexIVFPQR_refine_codes_get, _swigfaiss.IndexIVFPQR_refine_codes_set)
    __swig_setmethods__["k_factor"] = _swigfaiss.IndexIVFPQR_k_factor_set
    __swig_getmethods__["k_factor"] = _swigfaiss.IndexIVFPQR_k_factor_get
    if _newclass:k_factor = _swig_property(_swigfaiss.IndexIVFPQR_k_factor_get, _swigfaiss.IndexIVFPQR_k_factor_set)
    def set_typename(self): return _swigfaiss.IndexIVFPQR_set_typename(self)
    def reset(self): return _swigfaiss.IndexIVFPQR_reset(self)
    def remove_ids(self, *args): return _swigfaiss.IndexIVFPQR_remove_ids(self, *args)
    def train_residual(self, *args): return _swigfaiss.IndexIVFPQR_train_residual(self, *args)
    def add_with_ids(self, *args): return _swigfaiss.IndexIVFPQR_add_with_ids(self, *args)
    def add_core(self, *args): return _swigfaiss.IndexIVFPQR_add_core(self, *args)
    def reconstruct_n(self, *args): return _swigfaiss.IndexIVFPQR_reconstruct_n(self, *args)
    def search(self, *args): return _swigfaiss.IndexIVFPQR_search(self, *args)
    def merge_from_residuals(self, *args): return _swigfaiss.IndexIVFPQR_merge_from_residuals(self, *args)
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexIVFPQR(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_IndexIVFPQR
    __del__ = lambda self : None;
IndexIVFPQR_swigregister = _swigfaiss.IndexIVFPQR_swigregister
IndexIVFPQR_swigregister(IndexIVFPQR)

class IndexIVFPQCompact(IndexIVFPQ):
    __swig_setmethods__ = {}
    for _s in [IndexIVFPQ]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexIVFPQCompact, name, value)
    __swig_getmethods__ = {}
    for _s in [IndexIVFPQ]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexIVFPQCompact, name)
    __repr__ = _swig_repr
    Alloc_type_none = _swigfaiss.IndexIVFPQCompact_Alloc_type_none
    Alloc_type_new = _swigfaiss.IndexIVFPQCompact_Alloc_type_new
    Alloc_type_mmap = _swigfaiss.IndexIVFPQCompact_Alloc_type_mmap
    __swig_setmethods__["limits"] = _swigfaiss.IndexIVFPQCompact_limits_set
    __swig_getmethods__["limits"] = _swigfaiss.IndexIVFPQCompact_limits_get
    if _newclass:limits = _swig_property(_swigfaiss.IndexIVFPQCompact_limits_get, _swigfaiss.IndexIVFPQCompact_limits_set)
    __swig_setmethods__["compact_ids"] = _swigfaiss.IndexIVFPQCompact_compact_ids_set
    __swig_getmethods__["compact_ids"] = _swigfaiss.IndexIVFPQCompact_compact_ids_get
    if _newclass:compact_ids = _swig_property(_swigfaiss.IndexIVFPQCompact_compact_ids_get, _swigfaiss.IndexIVFPQCompact_compact_ids_set)
    __swig_setmethods__["compact_codes"] = _swigfaiss.IndexIVFPQCompact_compact_codes_set
    __swig_getmethods__["compact_codes"] = _swigfaiss.IndexIVFPQCompact_compact_codes_get
    if _newclass:compact_codes = _swig_property(_swigfaiss.IndexIVFPQCompact_compact_codes_get, _swigfaiss.IndexIVFPQCompact_compact_codes_set)
    __swig_setmethods__["mmap_buffer"] = _swigfaiss.IndexIVFPQCompact_mmap_buffer_set
    __swig_getmethods__["mmap_buffer"] = _swigfaiss.IndexIVFPQCompact_mmap_buffer_get
    if _newclass:mmap_buffer = _swig_property(_swigfaiss.IndexIVFPQCompact_mmap_buffer_get, _swigfaiss.IndexIVFPQCompact_mmap_buffer_set)
    __swig_setmethods__["mmap_length"] = _swigfaiss.IndexIVFPQCompact_mmap_length_set
    __swig_getmethods__["mmap_length"] = _swigfaiss.IndexIVFPQCompact_mmap_length_get
    if _newclass:mmap_length = _swig_property(_swigfaiss.IndexIVFPQCompact_mmap_length_get, _swigfaiss.IndexIVFPQCompact_mmap_length_set)
    def search_knn_with_key(self, *args): return _swigfaiss.IndexIVFPQCompact_search_knn_with_key(self, *args)
    def add(self, *args): return _swigfaiss.IndexIVFPQCompact_add(self, *args)
    def reset(self): return _swigfaiss.IndexIVFPQCompact_reset(self)
    def train(self, *args): return _swigfaiss.IndexIVFPQCompact_train(self, *args)
    __swig_destroy__ = _swigfaiss.delete_IndexIVFPQCompact
    __del__ = lambda self : None;
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexIVFPQCompact(*args)
        try: self.this.append(this)
        except: self.this = this
IndexIVFPQCompact_swigregister = _swigfaiss.IndexIVFPQCompact_swigregister
IndexIVFPQCompact_swigregister(IndexIVFPQCompact)

class IndexIDMap(Index):
    __swig_setmethods__ = {}
    for _s in [Index]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexIDMap, name, value)
    __swig_getmethods__ = {}
    for _s in [Index]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexIDMap, name)
    __repr__ = _swig_repr
    __swig_setmethods__["index"] = _swigfaiss.IndexIDMap_index_set
    __swig_getmethods__["index"] = _swigfaiss.IndexIDMap_index_get
    if _newclass:index = _swig_property(_swigfaiss.IndexIDMap_index_get, _swigfaiss.IndexIDMap_index_set)
    __swig_setmethods__["own_fields"] = _swigfaiss.IndexIDMap_own_fields_set
    __swig_getmethods__["own_fields"] = _swigfaiss.IndexIDMap_own_fields_get
    if _newclass:own_fields = _swig_property(_swigfaiss.IndexIDMap_own_fields_get, _swigfaiss.IndexIDMap_own_fields_set)
    __swig_setmethods__["id_map"] = _swigfaiss.IndexIDMap_id_map_set
    __swig_getmethods__["id_map"] = _swigfaiss.IndexIDMap_id_map_get
    if _newclass:id_map = _swig_property(_swigfaiss.IndexIDMap_id_map_get, _swigfaiss.IndexIDMap_id_map_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexIDMap(*args)
        try: self.this.append(this)
        except: self.this = this
    def add_with_ids(self, *args): return _swigfaiss.IndexIDMap_add_with_ids(self, *args)
    def add(self, *args): return _swigfaiss.IndexIDMap_add(self, *args)
    def search(self, *args): return _swigfaiss.IndexIDMap_search(self, *args)
    def train(self, *args): return _swigfaiss.IndexIDMap_train(self, *args)
    def reset(self): return _swigfaiss.IndexIDMap_reset(self)
    def set_typename(self): return _swigfaiss.IndexIDMap_set_typename(self)
    __swig_destroy__ = _swigfaiss.delete_IndexIDMap
    __del__ = lambda self : None;
IndexIDMap_swigregister = _swigfaiss.IndexIDMap_swigregister
IndexIDMap_swigregister(IndexIDMap)

class IndexShards(Index):
    __swig_setmethods__ = {}
    for _s in [Index]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexShards, name, value)
    __swig_getmethods__ = {}
    for _s in [Index]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexShards, name)
    __repr__ = _swig_repr
    __swig_setmethods__["shard_indexes"] = _swigfaiss.IndexShards_shard_indexes_set
    __swig_getmethods__["shard_indexes"] = _swigfaiss.IndexShards_shard_indexes_get
    if _newclass:shard_indexes = _swig_property(_swigfaiss.IndexShards_shard_indexes_get, _swigfaiss.IndexShards_shard_indexes_set)
    __swig_setmethods__["own_fields"] = _swigfaiss.IndexShards_own_fields_set
    __swig_getmethods__["own_fields"] = _swigfaiss.IndexShards_own_fields_get
    if _newclass:own_fields = _swig_property(_swigfaiss.IndexShards_own_fields_get, _swigfaiss.IndexShards_own_fields_set)
    __swig_setmethods__["threaded"] = _swigfaiss.IndexShards_threaded_set
    __swig_getmethods__["threaded"] = _swigfaiss.IndexShards_threaded_get
    if _newclass:threaded = _swig_property(_swigfaiss.IndexShards_threaded_get, _swigfaiss.IndexShards_threaded_set)
    __swig_setmethods__["successive_ids"] = _swigfaiss.IndexShards_successive_ids_set
    __swig_getmethods__["successive_ids"] = _swigfaiss.IndexShards_successive_ids_get
    if _newclass:successive_ids = _swig_property(_swigfaiss.IndexShards_successive_ids_get, _swigfaiss.IndexShards_successive_ids_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexShards(*args)
        try: self.this.append(this)
        except: self.this = this
    def add_shard(self, *args): return _swigfaiss.IndexShards_add_shard(self, *args)
    def sync_with_shard_indexes(self): return _swigfaiss.IndexShards_sync_with_shard_indexes(self)
    def at(self, *args): return _swigfaiss.IndexShards_at(self, *args)
    def add(self, *args): return _swigfaiss.IndexShards_add(self, *args)
    def add_with_ids(self, *args): return _swigfaiss.IndexShards_add_with_ids(self, *args)
    def search(self, *args): return _swigfaiss.IndexShards_search(self, *args)
    def train(self, *args): return _swigfaiss.IndexShards_train(self, *args)
    def reset(self): return _swigfaiss.IndexShards_reset(self)
    def set_typename(self): return _swigfaiss.IndexShards_set_typename(self)
    __swig_destroy__ = _swigfaiss.delete_IndexShards
    __del__ = lambda self : None;
IndexShards_swigregister = _swigfaiss.IndexShards_swigregister
IndexShards_swigregister(IndexShards)

class IndexSplitVectors(Index):
    __swig_setmethods__ = {}
    for _s in [Index]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IndexSplitVectors, name, value)
    __swig_getmethods__ = {}
    for _s in [Index]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IndexSplitVectors, name)
    __repr__ = _swig_repr
    __swig_setmethods__["own_fields"] = _swigfaiss.IndexSplitVectors_own_fields_set
    __swig_getmethods__["own_fields"] = _swigfaiss.IndexSplitVectors_own_fields_get
    if _newclass:own_fields = _swig_property(_swigfaiss.IndexSplitVectors_own_fields_get, _swigfaiss.IndexSplitVectors_own_fields_set)
    __swig_setmethods__["threaded"] = _swigfaiss.IndexSplitVectors_threaded_set
    __swig_getmethods__["threaded"] = _swigfaiss.IndexSplitVectors_threaded_get
    if _newclass:threaded = _swig_property(_swigfaiss.IndexSplitVectors_threaded_get, _swigfaiss.IndexSplitVectors_threaded_set)
    __swig_setmethods__["sub_indexes"] = _swigfaiss.IndexSplitVectors_sub_indexes_set
    __swig_getmethods__["sub_indexes"] = _swigfaiss.IndexSplitVectors_sub_indexes_get
    if _newclass:sub_indexes = _swig_property(_swigfaiss.IndexSplitVectors_sub_indexes_get, _swigfaiss.IndexSplitVectors_sub_indexes_set)
    __swig_setmethods__["sum_d"] = _swigfaiss.IndexSplitVectors_sum_d_set
    __swig_getmethods__["sum_d"] = _swigfaiss.IndexSplitVectors_sum_d_get
    if _newclass:sum_d = _swig_property(_swigfaiss.IndexSplitVectors_sum_d_get, _swigfaiss.IndexSplitVectors_sum_d_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_IndexSplitVectors(*args)
        try: self.this.append(this)
        except: self.this = this
    def add_sub_index(self, *args): return _swigfaiss.IndexSplitVectors_add_sub_index(self, *args)
    def sync_with_sub_indexes(self): return _swigfaiss.IndexSplitVectors_sync_with_sub_indexes(self)
    def add(self, *args): return _swigfaiss.IndexSplitVectors_add(self, *args)
    def search(self, *args): return _swigfaiss.IndexSplitVectors_search(self, *args)
    def train(self, *args): return _swigfaiss.IndexSplitVectors_train(self, *args)
    def reset(self): return _swigfaiss.IndexSplitVectors_reset(self)
    def set_typename(self): return _swigfaiss.IndexSplitVectors_set_typename(self)
    __swig_destroy__ = _swigfaiss.delete_IndexSplitVectors
    __del__ = lambda self : None;
IndexSplitVectors_swigregister = _swigfaiss.IndexSplitVectors_swigregister
IndexSplitVectors_swigregister(IndexSplitVectors)


def downcast_index(*args):
  return _swigfaiss.downcast_index(*args)
downcast_index = _swigfaiss.downcast_index

def downcast_VectorTransform(*args):
  return _swigfaiss.downcast_VectorTransform(*args)
downcast_VectorTransform = _swigfaiss.downcast_VectorTransform

def write_index(*args):
  return _swigfaiss.write_index(*args)
write_index = _swigfaiss.write_index

def read_index(*args):
  return _swigfaiss.read_index(*args)
read_index = _swigfaiss.read_index

def write_VectorTransform(*args):
  return _swigfaiss.write_VectorTransform(*args)
write_VectorTransform = _swigfaiss.write_VectorTransform

def read_VectorTransform(*args):
  return _swigfaiss.read_VectorTransform(*args)
read_VectorTransform = _swigfaiss.read_VectorTransform

def read_ProductQuantizer(*args):
  return _swigfaiss.read_ProductQuantizer(*args)
read_ProductQuantizer = _swigfaiss.read_ProductQuantizer

def write_ProductQuantizer(*args):
  return _swigfaiss.write_ProductQuantizer(*args)
write_ProductQuantizer = _swigfaiss.write_ProductQuantizer

def clone_index(*args):
  return _swigfaiss.clone_index(*args)
clone_index = _swigfaiss.clone_index
class Cloner(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Cloner, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Cloner, name)
    __repr__ = _swig_repr
    def clone_VectorTransform(self, *args): return _swigfaiss.Cloner_clone_VectorTransform(self, *args)
    def clone_Index(self, *args): return _swigfaiss.Cloner_clone_Index(self, *args)
    def clone_IndexIVF(self, *args): return _swigfaiss.Cloner_clone_IndexIVF(self, *args)
    __swig_destroy__ = _swigfaiss.delete_Cloner
    __del__ = lambda self : None;
    def __init__(self): 
        this = _swigfaiss.new_Cloner()
        try: self.this.append(this)
        except: self.this = this
Cloner_swigregister = _swigfaiss.Cloner_swigregister
Cloner_swigregister(Cloner)

class AutoTuneCriterion(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, AutoTuneCriterion, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, AutoTuneCriterion, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_setmethods__["nq"] = _swigfaiss.AutoTuneCriterion_nq_set
    __swig_getmethods__["nq"] = _swigfaiss.AutoTuneCriterion_nq_get
    if _newclass:nq = _swig_property(_swigfaiss.AutoTuneCriterion_nq_get, _swigfaiss.AutoTuneCriterion_nq_set)
    __swig_setmethods__["nnn"] = _swigfaiss.AutoTuneCriterion_nnn_set
    __swig_getmethods__["nnn"] = _swigfaiss.AutoTuneCriterion_nnn_get
    if _newclass:nnn = _swig_property(_swigfaiss.AutoTuneCriterion_nnn_get, _swigfaiss.AutoTuneCriterion_nnn_set)
    __swig_setmethods__["gt_nnn"] = _swigfaiss.AutoTuneCriterion_gt_nnn_set
    __swig_getmethods__["gt_nnn"] = _swigfaiss.AutoTuneCriterion_gt_nnn_get
    if _newclass:gt_nnn = _swig_property(_swigfaiss.AutoTuneCriterion_gt_nnn_get, _swigfaiss.AutoTuneCriterion_gt_nnn_set)
    __swig_setmethods__["gt_D"] = _swigfaiss.AutoTuneCriterion_gt_D_set
    __swig_getmethods__["gt_D"] = _swigfaiss.AutoTuneCriterion_gt_D_get
    if _newclass:gt_D = _swig_property(_swigfaiss.AutoTuneCriterion_gt_D_get, _swigfaiss.AutoTuneCriterion_gt_D_set)
    __swig_setmethods__["gt_I"] = _swigfaiss.AutoTuneCriterion_gt_I_set
    __swig_getmethods__["gt_I"] = _swigfaiss.AutoTuneCriterion_gt_I_get
    if _newclass:gt_I = _swig_property(_swigfaiss.AutoTuneCriterion_gt_I_get, _swigfaiss.AutoTuneCriterion_gt_I_set)
    def set_groundtruth(self, *args): return _swigfaiss.AutoTuneCriterion_set_groundtruth(self, *args)
    def evaluate(self, *args): return _swigfaiss.AutoTuneCriterion_evaluate(self, *args)
    __swig_destroy__ = _swigfaiss.delete_AutoTuneCriterion
    __del__ = lambda self : None;
AutoTuneCriterion_swigregister = _swigfaiss.AutoTuneCriterion_swigregister
AutoTuneCriterion_swigregister(AutoTuneCriterion)

class OneRecallAtRCriterion(AutoTuneCriterion):
    __swig_setmethods__ = {}
    for _s in [AutoTuneCriterion]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, OneRecallAtRCriterion, name, value)
    __swig_getmethods__ = {}
    for _s in [AutoTuneCriterion]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, OneRecallAtRCriterion, name)
    __repr__ = _swig_repr
    __swig_setmethods__["R"] = _swigfaiss.OneRecallAtRCriterion_R_set
    __swig_getmethods__["R"] = _swigfaiss.OneRecallAtRCriterion_R_get
    if _newclass:R = _swig_property(_swigfaiss.OneRecallAtRCriterion_R_get, _swigfaiss.OneRecallAtRCriterion_R_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_OneRecallAtRCriterion(*args)
        try: self.this.append(this)
        except: self.this = this
    def evaluate(self, *args): return _swigfaiss.OneRecallAtRCriterion_evaluate(self, *args)
    __swig_destroy__ = _swigfaiss.delete_OneRecallAtRCriterion
    __del__ = lambda self : None;
OneRecallAtRCriterion_swigregister = _swigfaiss.OneRecallAtRCriterion_swigregister
OneRecallAtRCriterion_swigregister(OneRecallAtRCriterion)

class IntersectionCriterion(AutoTuneCriterion):
    __swig_setmethods__ = {}
    for _s in [AutoTuneCriterion]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IntersectionCriterion, name, value)
    __swig_getmethods__ = {}
    for _s in [AutoTuneCriterion]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IntersectionCriterion, name)
    __repr__ = _swig_repr
    __swig_setmethods__["R"] = _swigfaiss.IntersectionCriterion_R_set
    __swig_getmethods__["R"] = _swigfaiss.IntersectionCriterion_R_get
    if _newclass:R = _swig_property(_swigfaiss.IntersectionCriterion_R_get, _swigfaiss.IntersectionCriterion_R_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_IntersectionCriterion(*args)
        try: self.this.append(this)
        except: self.this = this
    def evaluate(self, *args): return _swigfaiss.IntersectionCriterion_evaluate(self, *args)
    __swig_destroy__ = _swigfaiss.delete_IntersectionCriterion
    __del__ = lambda self : None;
IntersectionCriterion_swigregister = _swigfaiss.IntersectionCriterion_swigregister
IntersectionCriterion_swigregister(IntersectionCriterion)

class OperatingPoint(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, OperatingPoint, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, OperatingPoint, name)
    __repr__ = _swig_repr
    __swig_setmethods__["perf"] = _swigfaiss.OperatingPoint_perf_set
    __swig_getmethods__["perf"] = _swigfaiss.OperatingPoint_perf_get
    if _newclass:perf = _swig_property(_swigfaiss.OperatingPoint_perf_get, _swigfaiss.OperatingPoint_perf_set)
    __swig_setmethods__["t"] = _swigfaiss.OperatingPoint_t_set
    __swig_getmethods__["t"] = _swigfaiss.OperatingPoint_t_get
    if _newclass:t = _swig_property(_swigfaiss.OperatingPoint_t_get, _swigfaiss.OperatingPoint_t_set)
    __swig_setmethods__["key"] = _swigfaiss.OperatingPoint_key_set
    __swig_getmethods__["key"] = _swigfaiss.OperatingPoint_key_get
    if _newclass:key = _swig_property(_swigfaiss.OperatingPoint_key_get, _swigfaiss.OperatingPoint_key_set)
    __swig_setmethods__["cno"] = _swigfaiss.OperatingPoint_cno_set
    __swig_getmethods__["cno"] = _swigfaiss.OperatingPoint_cno_get
    if _newclass:cno = _swig_property(_swigfaiss.OperatingPoint_cno_get, _swigfaiss.OperatingPoint_cno_set)
    def __init__(self): 
        this = _swigfaiss.new_OperatingPoint()
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_OperatingPoint
    __del__ = lambda self : None;
OperatingPoint_swigregister = _swigfaiss.OperatingPoint_swigregister
OperatingPoint_swigregister(OperatingPoint)

class OperatingPoints(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, OperatingPoints, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, OperatingPoints, name)
    __repr__ = _swig_repr
    __swig_setmethods__["all_pts"] = _swigfaiss.OperatingPoints_all_pts_set
    __swig_getmethods__["all_pts"] = _swigfaiss.OperatingPoints_all_pts_get
    if _newclass:all_pts = _swig_property(_swigfaiss.OperatingPoints_all_pts_get, _swigfaiss.OperatingPoints_all_pts_set)
    __swig_setmethods__["optimal_pts"] = _swigfaiss.OperatingPoints_optimal_pts_set
    __swig_getmethods__["optimal_pts"] = _swigfaiss.OperatingPoints_optimal_pts_get
    if _newclass:optimal_pts = _swig_property(_swigfaiss.OperatingPoints_optimal_pts_get, _swigfaiss.OperatingPoints_optimal_pts_set)
    def __init__(self): 
        this = _swigfaiss.new_OperatingPoints()
        try: self.this.append(this)
        except: self.this = this
    def merge_with(self, *args): return _swigfaiss.OperatingPoints_merge_with(self, *args)
    def clear(self): return _swigfaiss.OperatingPoints_clear(self)
    def add(self, *args): return _swigfaiss.OperatingPoints_add(self, *args)
    def t_for_perf(self, *args): return _swigfaiss.OperatingPoints_t_for_perf(self, *args)
    def display(self, only_optimal=True): return _swigfaiss.OperatingPoints_display(self, only_optimal)
    def all_to_gnuplot(self, *args): return _swigfaiss.OperatingPoints_all_to_gnuplot(self, *args)
    def optimal_to_gnuplot(self, *args): return _swigfaiss.OperatingPoints_optimal_to_gnuplot(self, *args)
    __swig_destroy__ = _swigfaiss.delete_OperatingPoints
    __del__ = lambda self : None;
OperatingPoints_swigregister = _swigfaiss.OperatingPoints_swigregister
OperatingPoints_swigregister(OperatingPoints)

class ParameterRange(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ParameterRange, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ParameterRange, name)
    __repr__ = _swig_repr
    __swig_setmethods__["name"] = _swigfaiss.ParameterRange_name_set
    __swig_getmethods__["name"] = _swigfaiss.ParameterRange_name_get
    if _newclass:name = _swig_property(_swigfaiss.ParameterRange_name_get, _swigfaiss.ParameterRange_name_set)
    __swig_setmethods__["values"] = _swigfaiss.ParameterRange_values_set
    __swig_getmethods__["values"] = _swigfaiss.ParameterRange_values_get
    if _newclass:values = _swig_property(_swigfaiss.ParameterRange_values_get, _swigfaiss.ParameterRange_values_set)
    def __init__(self): 
        this = _swigfaiss.new_ParameterRange()
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_ParameterRange
    __del__ = lambda self : None;
ParameterRange_swigregister = _swigfaiss.ParameterRange_swigregister
ParameterRange_swigregister(ParameterRange)

class ParameterSpace(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ParameterSpace, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ParameterSpace, name)
    __repr__ = _swig_repr
    __swig_setmethods__["parameter_ranges"] = _swigfaiss.ParameterSpace_parameter_ranges_set
    __swig_getmethods__["parameter_ranges"] = _swigfaiss.ParameterSpace_parameter_ranges_get
    if _newclass:parameter_ranges = _swig_property(_swigfaiss.ParameterSpace_parameter_ranges_get, _swigfaiss.ParameterSpace_parameter_ranges_set)
    __swig_setmethods__["verbose"] = _swigfaiss.ParameterSpace_verbose_set
    __swig_getmethods__["verbose"] = _swigfaiss.ParameterSpace_verbose_get
    if _newclass:verbose = _swig_property(_swigfaiss.ParameterSpace_verbose_get, _swigfaiss.ParameterSpace_verbose_set)
    __swig_setmethods__["n_experiments"] = _swigfaiss.ParameterSpace_n_experiments_set
    __swig_getmethods__["n_experiments"] = _swigfaiss.ParameterSpace_n_experiments_get
    if _newclass:n_experiments = _swig_property(_swigfaiss.ParameterSpace_n_experiments_get, _swigfaiss.ParameterSpace_n_experiments_set)
    __swig_setmethods__["batchsize"] = _swigfaiss.ParameterSpace_batchsize_set
    __swig_getmethods__["batchsize"] = _swigfaiss.ParameterSpace_batchsize_get
    if _newclass:batchsize = _swig_property(_swigfaiss.ParameterSpace_batchsize_get, _swigfaiss.ParameterSpace_batchsize_set)
    __swig_setmethods__["thread_over_batches"] = _swigfaiss.ParameterSpace_thread_over_batches_set
    __swig_getmethods__["thread_over_batches"] = _swigfaiss.ParameterSpace_thread_over_batches_get
    if _newclass:thread_over_batches = _swig_property(_swigfaiss.ParameterSpace_thread_over_batches_get, _swigfaiss.ParameterSpace_thread_over_batches_set)
    def __init__(self): 
        this = _swigfaiss.new_ParameterSpace()
        try: self.this.append(this)
        except: self.this = this
    def n_combinations(self): return _swigfaiss.ParameterSpace_n_combinations(self)
    def combination_ge(self, *args): return _swigfaiss.ParameterSpace_combination_ge(self, *args)
    def combination_name(self, *args): return _swigfaiss.ParameterSpace_combination_name(self, *args)
    def display(self): return _swigfaiss.ParameterSpace_display(self)
    def add_range(self, *args): return _swigfaiss.ParameterSpace_add_range(self, *args)
    def initialize(self, *args): return _swigfaiss.ParameterSpace_initialize(self, *args)
    def set_index_parameters(self, *args): return _swigfaiss.ParameterSpace_set_index_parameters(self, *args)
    def set_index_parameter(self, *args): return _swigfaiss.ParameterSpace_set_index_parameter(self, *args)
    def update_bounds(self, *args): return _swigfaiss.ParameterSpace_update_bounds(self, *args)
    def explore(self, *args): return _swigfaiss.ParameterSpace_explore(self, *args)
    __swig_destroy__ = _swigfaiss.delete_ParameterSpace
    __del__ = lambda self : None;
ParameterSpace_swigregister = _swigfaiss.ParameterSpace_swigregister
ParameterSpace_swigregister(ParameterSpace)


def index_factory(*args):
  return _swigfaiss.index_factory(*args)
index_factory = _swigfaiss.index_factory

def swig_ptr(*args):
  return _swigfaiss.swig_ptr(*args)
swig_ptr = _swigfaiss.swig_ptr
class float_minheap_array_t(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, float_minheap_array_t, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, float_minheap_array_t, name)
    __repr__ = _swig_repr
    __swig_setmethods__["nh"] = _swigfaiss.float_minheap_array_t_nh_set
    __swig_getmethods__["nh"] = _swigfaiss.float_minheap_array_t_nh_get
    if _newclass:nh = _swig_property(_swigfaiss.float_minheap_array_t_nh_get, _swigfaiss.float_minheap_array_t_nh_set)
    __swig_setmethods__["k"] = _swigfaiss.float_minheap_array_t_k_set
    __swig_getmethods__["k"] = _swigfaiss.float_minheap_array_t_k_get
    if _newclass:k = _swig_property(_swigfaiss.float_minheap_array_t_k_get, _swigfaiss.float_minheap_array_t_k_set)
    __swig_setmethods__["ids"] = _swigfaiss.float_minheap_array_t_ids_set
    __swig_getmethods__["ids"] = _swigfaiss.float_minheap_array_t_ids_get
    if _newclass:ids = _swig_property(_swigfaiss.float_minheap_array_t_ids_get, _swigfaiss.float_minheap_array_t_ids_set)
    __swig_setmethods__["val"] = _swigfaiss.float_minheap_array_t_val_set
    __swig_getmethods__["val"] = _swigfaiss.float_minheap_array_t_val_get
    if _newclass:val = _swig_property(_swigfaiss.float_minheap_array_t_val_get, _swigfaiss.float_minheap_array_t_val_set)
    def get_val(self, *args): return _swigfaiss.float_minheap_array_t_get_val(self, *args)
    def get_ids(self, *args): return _swigfaiss.float_minheap_array_t_get_ids(self, *args)
    def heapify(self): return _swigfaiss.float_minheap_array_t_heapify(self)
    def addn(self, *args): return _swigfaiss.float_minheap_array_t_addn(self, *args)
    def addn_with_ids(self, *args): return _swigfaiss.float_minheap_array_t_addn_with_ids(self, *args)
    def reorder(self): return _swigfaiss.float_minheap_array_t_reorder(self)
    def per_line_extrema(self, *args): return _swigfaiss.float_minheap_array_t_per_line_extrema(self, *args)
    def __init__(self): 
        this = _swigfaiss.new_float_minheap_array_t()
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_float_minheap_array_t
    __del__ = lambda self : None;
float_minheap_array_t_swigregister = _swigfaiss.float_minheap_array_t_swigregister
float_minheap_array_t_swigregister(float_minheap_array_t)

class int_minheap_array_t(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, int_minheap_array_t, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, int_minheap_array_t, name)
    __repr__ = _swig_repr
    __swig_setmethods__["nh"] = _swigfaiss.int_minheap_array_t_nh_set
    __swig_getmethods__["nh"] = _swigfaiss.int_minheap_array_t_nh_get
    if _newclass:nh = _swig_property(_swigfaiss.int_minheap_array_t_nh_get, _swigfaiss.int_minheap_array_t_nh_set)
    __swig_setmethods__["k"] = _swigfaiss.int_minheap_array_t_k_set
    __swig_getmethods__["k"] = _swigfaiss.int_minheap_array_t_k_get
    if _newclass:k = _swig_property(_swigfaiss.int_minheap_array_t_k_get, _swigfaiss.int_minheap_array_t_k_set)
    __swig_setmethods__["ids"] = _swigfaiss.int_minheap_array_t_ids_set
    __swig_getmethods__["ids"] = _swigfaiss.int_minheap_array_t_ids_get
    if _newclass:ids = _swig_property(_swigfaiss.int_minheap_array_t_ids_get, _swigfaiss.int_minheap_array_t_ids_set)
    __swig_setmethods__["val"] = _swigfaiss.int_minheap_array_t_val_set
    __swig_getmethods__["val"] = _swigfaiss.int_minheap_array_t_val_get
    if _newclass:val = _swig_property(_swigfaiss.int_minheap_array_t_val_get, _swigfaiss.int_minheap_array_t_val_set)
    def get_val(self, *args): return _swigfaiss.int_minheap_array_t_get_val(self, *args)
    def get_ids(self, *args): return _swigfaiss.int_minheap_array_t_get_ids(self, *args)
    def heapify(self): return _swigfaiss.int_minheap_array_t_heapify(self)
    def addn(self, *args): return _swigfaiss.int_minheap_array_t_addn(self, *args)
    def addn_with_ids(self, *args): return _swigfaiss.int_minheap_array_t_addn_with_ids(self, *args)
    def reorder(self): return _swigfaiss.int_minheap_array_t_reorder(self)
    def per_line_extrema(self, *args): return _swigfaiss.int_minheap_array_t_per_line_extrema(self, *args)
    def __init__(self): 
        this = _swigfaiss.new_int_minheap_array_t()
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_int_minheap_array_t
    __del__ = lambda self : None;
int_minheap_array_t_swigregister = _swigfaiss.int_minheap_array_t_swigregister
int_minheap_array_t_swigregister(int_minheap_array_t)

class float_maxheap_array_t(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, float_maxheap_array_t, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, float_maxheap_array_t, name)
    __repr__ = _swig_repr
    __swig_setmethods__["nh"] = _swigfaiss.float_maxheap_array_t_nh_set
    __swig_getmethods__["nh"] = _swigfaiss.float_maxheap_array_t_nh_get
    if _newclass:nh = _swig_property(_swigfaiss.float_maxheap_array_t_nh_get, _swigfaiss.float_maxheap_array_t_nh_set)
    __swig_setmethods__["k"] = _swigfaiss.float_maxheap_array_t_k_set
    __swig_getmethods__["k"] = _swigfaiss.float_maxheap_array_t_k_get
    if _newclass:k = _swig_property(_swigfaiss.float_maxheap_array_t_k_get, _swigfaiss.float_maxheap_array_t_k_set)
    __swig_setmethods__["ids"] = _swigfaiss.float_maxheap_array_t_ids_set
    __swig_getmethods__["ids"] = _swigfaiss.float_maxheap_array_t_ids_get
    if _newclass:ids = _swig_property(_swigfaiss.float_maxheap_array_t_ids_get, _swigfaiss.float_maxheap_array_t_ids_set)
    __swig_setmethods__["val"] = _swigfaiss.float_maxheap_array_t_val_set
    __swig_getmethods__["val"] = _swigfaiss.float_maxheap_array_t_val_get
    if _newclass:val = _swig_property(_swigfaiss.float_maxheap_array_t_val_get, _swigfaiss.float_maxheap_array_t_val_set)
    def get_val(self, *args): return _swigfaiss.float_maxheap_array_t_get_val(self, *args)
    def get_ids(self, *args): return _swigfaiss.float_maxheap_array_t_get_ids(self, *args)
    def heapify(self): return _swigfaiss.float_maxheap_array_t_heapify(self)
    def addn(self, *args): return _swigfaiss.float_maxheap_array_t_addn(self, *args)
    def addn_with_ids(self, *args): return _swigfaiss.float_maxheap_array_t_addn_with_ids(self, *args)
    def reorder(self): return _swigfaiss.float_maxheap_array_t_reorder(self)
    def per_line_extrema(self, *args): return _swigfaiss.float_maxheap_array_t_per_line_extrema(self, *args)
    def __init__(self): 
        this = _swigfaiss.new_float_maxheap_array_t()
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_float_maxheap_array_t
    __del__ = lambda self : None;
float_maxheap_array_t_swigregister = _swigfaiss.float_maxheap_array_t_swigregister
float_maxheap_array_t_swigregister(float_maxheap_array_t)

class int_maxheap_array_t(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, int_maxheap_array_t, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, int_maxheap_array_t, name)
    __repr__ = _swig_repr
    __swig_setmethods__["nh"] = _swigfaiss.int_maxheap_array_t_nh_set
    __swig_getmethods__["nh"] = _swigfaiss.int_maxheap_array_t_nh_get
    if _newclass:nh = _swig_property(_swigfaiss.int_maxheap_array_t_nh_get, _swigfaiss.int_maxheap_array_t_nh_set)
    __swig_setmethods__["k"] = _swigfaiss.int_maxheap_array_t_k_set
    __swig_getmethods__["k"] = _swigfaiss.int_maxheap_array_t_k_get
    if _newclass:k = _swig_property(_swigfaiss.int_maxheap_array_t_k_get, _swigfaiss.int_maxheap_array_t_k_set)
    __swig_setmethods__["ids"] = _swigfaiss.int_maxheap_array_t_ids_set
    __swig_getmethods__["ids"] = _swigfaiss.int_maxheap_array_t_ids_get
    if _newclass:ids = _swig_property(_swigfaiss.int_maxheap_array_t_ids_get, _swigfaiss.int_maxheap_array_t_ids_set)
    __swig_setmethods__["val"] = _swigfaiss.int_maxheap_array_t_val_set
    __swig_getmethods__["val"] = _swigfaiss.int_maxheap_array_t_val_get
    if _newclass:val = _swig_property(_swigfaiss.int_maxheap_array_t_val_get, _swigfaiss.int_maxheap_array_t_val_set)
    def get_val(self, *args): return _swigfaiss.int_maxheap_array_t_get_val(self, *args)
    def get_ids(self, *args): return _swigfaiss.int_maxheap_array_t_get_ids(self, *args)
    def heapify(self): return _swigfaiss.int_maxheap_array_t_heapify(self)
    def addn(self, *args): return _swigfaiss.int_maxheap_array_t_addn(self, *args)
    def addn_with_ids(self, *args): return _swigfaiss.int_maxheap_array_t_addn_with_ids(self, *args)
    def reorder(self): return _swigfaiss.int_maxheap_array_t_reorder(self)
    def per_line_extrema(self, *args): return _swigfaiss.int_maxheap_array_t_per_line_extrema(self, *args)
    def __init__(self): 
        this = _swigfaiss.new_int_maxheap_array_t()
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_int_maxheap_array_t
    __del__ = lambda self : None;
int_maxheap_array_t_swigregister = _swigfaiss.int_maxheap_array_t_swigregister
int_maxheap_array_t_swigregister(int_maxheap_array_t)


def omp_set_num_threads(*args):
  return _swigfaiss.omp_set_num_threads(*args)
omp_set_num_threads = _swigfaiss.omp_set_num_threads

def omp_get_max_threads():
  return _swigfaiss.omp_get_max_threads()
omp_get_max_threads = _swigfaiss.omp_get_max_threads

def memcpy(*args):
  return _swigfaiss.memcpy(*args)
memcpy = _swigfaiss.memcpy
class RangeSearchResult(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, RangeSearchResult, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, RangeSearchResult, name)
    __repr__ = _swig_repr
    __swig_setmethods__["nq"] = _swigfaiss.RangeSearchResult_nq_set
    __swig_getmethods__["nq"] = _swigfaiss.RangeSearchResult_nq_get
    if _newclass:nq = _swig_property(_swigfaiss.RangeSearchResult_nq_get, _swigfaiss.RangeSearchResult_nq_set)
    __swig_setmethods__["lims"] = _swigfaiss.RangeSearchResult_lims_set
    __swig_getmethods__["lims"] = _swigfaiss.RangeSearchResult_lims_get
    if _newclass:lims = _swig_property(_swigfaiss.RangeSearchResult_lims_get, _swigfaiss.RangeSearchResult_lims_set)
    __swig_setmethods__["labels"] = _swigfaiss.RangeSearchResult_labels_set
    __swig_getmethods__["labels"] = _swigfaiss.RangeSearchResult_labels_get
    if _newclass:labels = _swig_property(_swigfaiss.RangeSearchResult_labels_get, _swigfaiss.RangeSearchResult_labels_set)
    __swig_setmethods__["distances"] = _swigfaiss.RangeSearchResult_distances_set
    __swig_getmethods__["distances"] = _swigfaiss.RangeSearchResult_distances_get
    if _newclass:distances = _swig_property(_swigfaiss.RangeSearchResult_distances_get, _swigfaiss.RangeSearchResult_distances_set)
    __swig_setmethods__["buffer_size"] = _swigfaiss.RangeSearchResult_buffer_size_set
    __swig_getmethods__["buffer_size"] = _swigfaiss.RangeSearchResult_buffer_size_get
    if _newclass:buffer_size = _swig_property(_swigfaiss.RangeSearchResult_buffer_size_get, _swigfaiss.RangeSearchResult_buffer_size_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_RangeSearchResult(*args)
        try: self.this.append(this)
        except: self.this = this
    def do_allocation(self): return _swigfaiss.RangeSearchResult_do_allocation(self)
    __swig_destroy__ = _swigfaiss.delete_RangeSearchResult
    __del__ = lambda self : None;
RangeSearchResult_swigregister = _swigfaiss.RangeSearchResult_swigregister
RangeSearchResult_swigregister(RangeSearchResult)

class IDSelector(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, IDSelector, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, IDSelector, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    def is_member(self, *args): return _swigfaiss.IDSelector_is_member(self, *args)
    __swig_destroy__ = _swigfaiss.delete_IDSelector
    __del__ = lambda self : None;
IDSelector_swigregister = _swigfaiss.IDSelector_swigregister
IDSelector_swigregister(IDSelector)

class IDSelectorRange(IDSelector):
    __swig_setmethods__ = {}
    for _s in [IDSelector]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IDSelectorRange, name, value)
    __swig_getmethods__ = {}
    for _s in [IDSelector]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IDSelectorRange, name)
    __repr__ = _swig_repr
    __swig_setmethods__["imin"] = _swigfaiss.IDSelectorRange_imin_set
    __swig_getmethods__["imin"] = _swigfaiss.IDSelectorRange_imin_get
    if _newclass:imin = _swig_property(_swigfaiss.IDSelectorRange_imin_get, _swigfaiss.IDSelectorRange_imin_set)
    __swig_setmethods__["imax"] = _swigfaiss.IDSelectorRange_imax_set
    __swig_getmethods__["imax"] = _swigfaiss.IDSelectorRange_imax_get
    if _newclass:imax = _swig_property(_swigfaiss.IDSelectorRange_imax_get, _swigfaiss.IDSelectorRange_imax_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_IDSelectorRange(*args)
        try: self.this.append(this)
        except: self.this = this
    def is_member(self, *args): return _swigfaiss.IDSelectorRange_is_member(self, *args)
    __swig_destroy__ = _swigfaiss.delete_IDSelectorRange
    __del__ = lambda self : None;
IDSelectorRange_swigregister = _swigfaiss.IDSelectorRange_swigregister
IDSelectorRange_swigregister(IDSelectorRange)

class IDSelectorBatch(IDSelector):
    __swig_setmethods__ = {}
    for _s in [IDSelector]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IDSelectorBatch, name, value)
    __swig_getmethods__ = {}
    for _s in [IDSelector]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IDSelectorBatch, name)
    __repr__ = _swig_repr
    __swig_setmethods__["nbits"] = _swigfaiss.IDSelectorBatch_nbits_set
    __swig_getmethods__["nbits"] = _swigfaiss.IDSelectorBatch_nbits_get
    if _newclass:nbits = _swig_property(_swigfaiss.IDSelectorBatch_nbits_get, _swigfaiss.IDSelectorBatch_nbits_set)
    __swig_setmethods__["mask"] = _swigfaiss.IDSelectorBatch_mask_set
    __swig_getmethods__["mask"] = _swigfaiss.IDSelectorBatch_mask_get
    if _newclass:mask = _swig_property(_swigfaiss.IDSelectorBatch_mask_get, _swigfaiss.IDSelectorBatch_mask_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_IDSelectorBatch(*args)
        try: self.this.append(this)
        except: self.this = this
    def is_member(self, *args): return _swigfaiss.IDSelectorBatch_is_member(self, *args)
    __swig_destroy__ = _swigfaiss.delete_IDSelectorBatch
    __del__ = lambda self : None;
IDSelectorBatch_swigregister = _swigfaiss.IDSelectorBatch_swigregister
IDSelectorBatch_swigregister(IDSelectorBatch)

class BufferList(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, BufferList, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, BufferList, name)
    __repr__ = _swig_repr
    __swig_setmethods__["buffer_size"] = _swigfaiss.BufferList_buffer_size_set
    __swig_getmethods__["buffer_size"] = _swigfaiss.BufferList_buffer_size_get
    if _newclass:buffer_size = _swig_property(_swigfaiss.BufferList_buffer_size_get, _swigfaiss.BufferList_buffer_size_set)
    __swig_setmethods__["buffers"] = _swigfaiss.BufferList_buffers_set
    __swig_getmethods__["buffers"] = _swigfaiss.BufferList_buffers_get
    if _newclass:buffers = _swig_property(_swigfaiss.BufferList_buffers_get, _swigfaiss.BufferList_buffers_set)
    __swig_setmethods__["wp"] = _swigfaiss.BufferList_wp_set
    __swig_getmethods__["wp"] = _swigfaiss.BufferList_wp_get
    if _newclass:wp = _swig_property(_swigfaiss.BufferList_wp_get, _swigfaiss.BufferList_wp_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_BufferList(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _swigfaiss.delete_BufferList
    __del__ = lambda self : None;
    def append_buffer(self): return _swigfaiss.BufferList_append_buffer(self)
    def add(self, *args): return _swigfaiss.BufferList_add(self, *args)
    def copy_range(self, *args): return _swigfaiss.BufferList_copy_range(self, *args)
BufferList_swigregister = _swigfaiss.BufferList_swigregister
BufferList_swigregister(BufferList)

class RangeSearchPartialResult(BufferList):
    __swig_setmethods__ = {}
    for _s in [BufferList]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, RangeSearchPartialResult, name, value)
    __swig_getmethods__ = {}
    for _s in [BufferList]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, RangeSearchPartialResult, name)
    __repr__ = _swig_repr
    __swig_setmethods__["res"] = _swigfaiss.RangeSearchPartialResult_res_set
    __swig_getmethods__["res"] = _swigfaiss.RangeSearchPartialResult_res_get
    if _newclass:res = _swig_property(_swigfaiss.RangeSearchPartialResult_res_get, _swigfaiss.RangeSearchPartialResult_res_set)
    def __init__(self, *args): 
        this = _swigfaiss.new_RangeSearchPartialResult(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_setmethods__["queries"] = _swigfaiss.RangeSearchPartialResult_queries_set
    __swig_getmethods__["queries"] = _swigfaiss.RangeSearchPartialResult_queries_get
    if _newclass:queries = _swig_property(_swigfaiss.RangeSearchPartialResult_queries_get, _swigfaiss.RangeSearchPartialResult_queries_set)
    def new_result(self, *args): return _swigfaiss.RangeSearchPartialResult_new_result(self, *args)
    def finalize(self): return _swigfaiss.RangeSearchPartialResult_finalize(self)
    def set_lims(self): return _swigfaiss.RangeSearchPartialResult_set_lims(self)
    def set_result(self, incremental=False): return _swigfaiss.RangeSearchPartialResult_set_result(self, incremental)
    __swig_destroy__ = _swigfaiss.delete_RangeSearchPartialResult
    __del__ = lambda self : None;
RangeSearchPartialResult_swigregister = _swigfaiss.RangeSearchPartialResult_swigregister
RangeSearchPartialResult_swigregister(RangeSearchPartialResult)


def ignore_SIGTTIN():
  return _swigfaiss.ignore_SIGTTIN()
ignore_SIGTTIN = _swigfaiss.ignore_SIGTTIN
# This file is compatible with both classic and new-style classes.


