16 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
21 template<
typename T>
class SwigValueWrapper {
22 struct SwigMovePointer {
24 SwigMovePointer(T *p) : ptr(p) { }
25 ~SwigMovePointer() {
delete ptr; }
26 SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0;
delete oldptr; ptr = rhs.ptr; rhs.ptr = 0;
return *
this; }
28 SwigValueWrapper& operator=(
const SwigValueWrapper<T>& rhs);
29 SwigValueWrapper(
const SwigValueWrapper<T>& rhs);
31 SwigValueWrapper() : pointer(0) { }
32 SwigValueWrapper& operator=(
const T& t) { SwigMovePointer tmp(
new T(t)); pointer = tmp;
return *
this; }
33 operator T&()
const {
return *pointer.ptr; }
34 T *operator&() {
return pointer.ptr; }
37 template <
typename T> T SwigValueInit() {
48 #ifndef SWIGTEMPLATEDISAMBIGUATOR
49 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
50 # define SWIGTEMPLATEDISAMBIGUATOR template
51 # elif defined(__HP_aCC)
54 # define SWIGTEMPLATEDISAMBIGUATOR template
56 # define SWIGTEMPLATEDISAMBIGUATOR
62 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
63 # define SWIGINLINE inline
71 # if defined(__GNUC__)
72 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
73 # define SWIGUNUSED __attribute__ ((__unused__))
78 # define SWIGUNUSED __attribute__ ((__unused__))
84 #ifndef SWIG_MSC_UNSUPPRESS_4505
85 # if defined(_MSC_VER)
86 # pragma warning(disable : 4505)
90 #ifndef SWIGUNUSEDPARM
92 # define SWIGUNUSEDPARM(p)
94 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
100 # define SWIGINTERN static SWIGUNUSED
104 #ifndef SWIGINTERNINLINE
105 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
109 #if defined(__GNUC__)
110 # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
111 # ifndef GCC_HASCLASSVISIBILITY
112 # define GCC_HASCLASSVISIBILITY
118 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
119 # if defined(STATIC_LINKED)
122 # define SWIGEXPORT __declspec(dllexport)
125 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
126 # define SWIGEXPORT __attribute__ ((visibility("default")))
135 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
136 # define SWIGSTDCALL __stdcall
143 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
144 # define _CRT_SECURE_NO_DEPRECATE
148 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
149 # define _SCL_SECURE_NO_DEPRECATE
153 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
154 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
162 #ifdef __INTEL_COMPILER
163 # pragma warning disable 592
167 #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
185 #define SWIG_RUNTIME_VERSION "4"
188 #ifdef SWIG_TYPE_TABLE
189 # define SWIG_QUOTE_STRING(x) #x
190 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
191 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
193 # define SWIG_TYPE_TABLE_NAME
206 # define SWIGRUNTIME SWIGINTERN
209 #ifndef SWIGRUNTIMEINLINE
210 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
214 #ifndef SWIG_BUFFER_SIZE
215 # define SWIG_BUFFER_SIZE 1024
219 #define SWIG_POINTER_DISOWN 0x1
220 #define SWIG_CAST_NEW_MEMORY 0x2
223 #define SWIG_POINTER_OWN 0x1
306 #define SWIG_ERROR (-1)
307 #define SWIG_IsOK(r) (r >= 0)
308 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
311 #define SWIG_CASTRANKLIMIT (1 << 8)
313 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
315 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
317 #define SWIG_BADOBJ (SWIG_ERROR)
318 #define SWIG_OLDOBJ (SWIG_OK)
319 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
320 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
322 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
323 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
324 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
325 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
326 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
327 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
330 #if defined(SWIG_CASTRANK_MODE)
331 # ifndef SWIG_TypeRank
332 # define SWIG_TypeRank unsigned long
334 # ifndef SWIG_MAXCASTRANK
335 # define SWIG_MAXCASTRANK (2)
337 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
338 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
339 SWIGINTERNINLINE
int SWIG_AddCast(
int r) {
340 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
342 SWIGINTERNINLINE
int SWIG_CheckState(
int r) {
343 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
346 # define SWIG_AddCast(r) (r)
347 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
357 typedef void *(*swig_converter_func)(
void *,
int *);
364 swig_dycast_func dcast;
373 swig_converter_func converter;
398 SWIG_TypeNameComp(
const char *f1,
const char *l1,
399 const char *f2,
const char *l2) {
400 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
401 while ((*f1 ==
' ') && (f1 != l1)) ++f1;
402 while ((*f2 ==
' ') && (f2 != l2)) ++f2;
403 if (*f1 != *f2)
return (*f1 > *f2) ? 1 : -1;
405 return (
int)((l1 - f1) - (l2 - f2));
413 SWIG_TypeCmp(
const char *nb,
const char *tb) {
415 const char* te = tb + strlen(tb);
417 while (equiv != 0 && *ne) {
418 for (nb = ne; *ne; ++ne) {
419 if (*ne ==
'|')
break;
421 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
432 SWIG_TypeEquiv(
const char *nb,
const char *tb) {
433 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
444 if (strcmp(iter->type->name, c) == 0) {
445 if (iter == ty->cast)
448 iter->prev->next = iter->next;
450 iter->next->prev = iter->prev;
451 iter->next = ty->cast;
453 if (ty->cast) ty->cast->prev = iter;
471 if (iter->type == from) {
472 if (iter == ty->cast)
475 iter->prev->next = iter->next;
477 iter->next->prev = iter->prev;
478 iter->next = ty->cast;
480 if (ty->cast) ty->cast->prev = iter;
493 SWIGRUNTIMEINLINE
void *
495 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
504 if (!ty || !ty->dcast)
return ty;
505 while (ty && (ty->dcast)) {
506 ty = (*ty->dcast)(ptr);
515 SWIGRUNTIMEINLINE
const char *
524 SWIGRUNTIME
const char *
530 if (!type)
return NULL;
531 if (type->str != NULL) {
532 const char *last_name = type->str;
534 for (s = type->str; *s; s++)
535 if (*s ==
'|') last_name = s+1;
549 ti->clientdata = clientdata;
552 if (!cast->converter) {
554 if (!tc->clientdata) {
555 SWIG_TypeClientData(tc, clientdata);
563 SWIG_TypeClientData(ti, clientdata);
583 size_t r = iter->size - 1;
586 size_t i = (l + r) >> 1;
587 const char *iname = iter->types[i]->name;
589 int compare = strcmp(name, iname);
591 return iter->types[i];
592 }
else if (compare < 0) {
598 }
else if (compare > 0) {
607 }
while (iter != end);
625 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
634 for (; i < iter->size; ++i) {
635 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
636 return iter->types[i];
639 }
while (iter != end);
650 SWIG_PackData(
char *c,
void *ptr,
size_t sz) {
651 static const char hex[17] =
"0123456789abcdef";
652 const unsigned char *u = (
unsigned char *) ptr;
653 const unsigned char *eu = u + sz;
654 for (; u != eu; ++u) {
655 unsigned char uu = *u;
656 *(c++) = hex[(uu & 0xf0) >> 4];
657 *(c++) = hex[uu & 0xf];
665 SWIGRUNTIME
const char *
666 SWIG_UnpackData(
const char *c,
void *ptr,
size_t sz) {
667 unsigned char *u = (
unsigned char *) ptr;
668 const unsigned char *eu = u + sz;
669 for (; u != eu; ++u) {
672 if ((d >=
'0') && (d <=
'9'))
673 uu = (
unsigned char)((d -
'0') << 4);
674 else if ((d >=
'a') && (d <=
'f'))
675 uu = (
unsigned char)((d - (
'a'-10)) << 4);
679 if ((d >=
'0') && (d <=
'9'))
680 uu |= (
unsigned char)(d -
'0');
681 else if ((d >=
'a') && (d <=
'f'))
682 uu |= (
unsigned char)(d - (
'a'-10));
694 SWIG_PackVoidPtr(
char *buff,
void *ptr,
const char *name,
size_t bsz) {
696 if ((2*
sizeof(
void *) + 2) > bsz)
return 0;
698 r = SWIG_PackData(r,&ptr,
sizeof(
void *));
699 if (strlen(name) + 1 > (bsz - (r - buff)))
return 0;
704 SWIGRUNTIME
const char *
705 SWIG_UnpackVoidPtr(
const char *c,
void **ptr,
const char *name) {
707 if (strcmp(c,
"NULL") == 0) {
714 return SWIG_UnpackData(++c,ptr,
sizeof(
void *));
718 SWIG_PackDataName(
char *buff,
void *ptr,
size_t sz,
const char *name,
size_t bsz) {
720 size_t lname = (name ? strlen(name) : 0);
721 if ((2*sz + 2 + lname) > bsz)
return 0;
723 r = SWIG_PackData(r,ptr,sz);
725 strncpy(r,name,lname+1);
732 SWIGRUNTIME
const char *
733 SWIG_UnpackDataName(
const char *c,
void *ptr,
size_t sz,
const char *name) {
735 if (strcmp(c,
"NULL") == 0) {
742 return SWIG_UnpackData(++c,ptr,sz);
750 #define SWIG_UnknownError -1
751 #define SWIG_IOError -2
752 #define SWIG_RuntimeError -3
753 #define SWIG_IndexError -4
754 #define SWIG_TypeError -5
755 #define SWIG_DivisionByZero -6
756 #define SWIG_OverflowError -7
757 #define SWIG_SyntaxError -8
758 #define SWIG_ValueError -9
759 #define SWIG_SystemError -10
760 #define SWIG_AttributeError -11
761 #define SWIG_MemoryError -12
762 #define SWIG_NullReferenceError -13
767 #if PY_VERSION_HEX >= 0x03000000
769 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
770 #define PyInt_Check(x) PyLong_Check(x)
771 #define PyInt_AsLong(x) PyLong_AsLong(x)
772 #define PyInt_FromLong(x) PyLong_FromLong(x)
773 #define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
774 #define PyString_Check(name) PyBytes_Check(name)
775 #define PyString_FromString(x) PyUnicode_FromString(x)
776 #define PyString_Format(fmt, args) PyUnicode_Format(fmt, args)
777 #define PyString_AsString(str) PyBytes_AsString(str)
778 #define PyString_Size(str) PyBytes_Size(str)
779 #define PyString_InternFromString(key) PyUnicode_InternFromString(key)
780 #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
781 #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
782 #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
787 # define Py_TYPE(op) ((op)->ob_type)
792 #if PY_VERSION_HEX >= 0x03000000
793 # define SWIG_Python_str_FromFormat PyUnicode_FromFormat
795 # define SWIG_Python_str_FromFormat PyString_FromFormat
803 SWIG_Python_str_AsChar(PyObject *str)
805 #if PY_VERSION_HEX >= 0x03000000
809 str = PyUnicode_AsUTF8String(str);
810 PyBytes_AsStringAndSize(str, &cstr, &len);
811 newstr = (
char *) malloc(len+1);
812 memcpy(newstr, cstr, len+1);
816 return PyString_AsString(str);
820 #if PY_VERSION_HEX >= 0x03000000
821 # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
823 # define SWIG_Python_str_DelForPy3(x)
828 SWIG_Python_str_FromChar(
const char *c)
830 #if PY_VERSION_HEX >= 0x03000000
831 return PyUnicode_FromString(c);
833 return PyString_FromString(c);
838 #if PY_VERSION_HEX < 0x02020000
839 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
840 # define PyOS_snprintf _snprintf
842 # define PyOS_snprintf snprintf
847 #if PY_VERSION_HEX < 0x02020000
849 #ifndef SWIG_PYBUFFER_SIZE
850 # define SWIG_PYBUFFER_SIZE 1024
854 PyString_FromFormat(
const char *fmt, ...) {
856 char buf[SWIG_PYBUFFER_SIZE * 2];
859 res = vsnprintf(buf,
sizeof(buf), fmt, ap);
861 return (res < 0 || res >= (
int)
sizeof(buf)) ? 0 : PyString_FromString(buf);
866 # define PyObject_DEL PyObject_Del
870 #if PY_VERSION_HEX < 0x02020000
871 # ifndef PyExc_StopIteration
872 # define PyExc_StopIteration PyExc_RuntimeError
874 # ifndef PyObject_GenericGetAttr
875 # define PyObject_GenericGetAttr 0
880 #if PY_VERSION_HEX < 0x02010000
881 # ifndef Py_NotImplemented
882 # define Py_NotImplemented PyExc_RuntimeError
887 #if PY_VERSION_HEX < 0x02010000
888 # ifndef PyString_AsStringAndSize
889 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
894 #if PY_VERSION_HEX < 0x02000000
895 # ifndef PySequence_Size
896 # define PySequence_Size PySequence_Length
901 #if PY_VERSION_HEX < 0x02030000
903 PyObject *PyBool_FromLong(
long ok)
905 PyObject *result = ok ? Py_True : Py_False;
914 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
915 typedef int Py_ssize_t;
916 # define PY_SSIZE_T_MAX INT_MAX
917 # define PY_SSIZE_T_MIN INT_MIN
918 typedef inquiry lenfunc;
919 typedef intargfunc ssizeargfunc;
920 typedef intintargfunc ssizessizeargfunc;
921 typedef intobjargproc ssizeobjargproc;
922 typedef intintobjargproc ssizessizeobjargproc;
923 typedef getreadbufferproc readbufferproc;
924 typedef getwritebufferproc writebufferproc;
925 typedef getsegcountproc segcountproc;
926 typedef getcharbufferproc charbufferproc;
927 static long PyNumber_AsSsize_t (PyObject *x,
void *SWIGUNUSEDPARM(exc))
930 PyObject *i = PyNumber_Int(x);
932 result = PyInt_AsLong(i);
939 #if PY_VERSION_HEX < 0x02050000
940 #define PyInt_FromSize_t(x) PyInt_FromLong((long)x)
943 #if PY_VERSION_HEX < 0x02040000
944 #define Py_VISIT(op) \
947 int vret = visit((op), arg); \
954 #if PY_VERSION_HEX < 0x02030000
957 PyNumberMethods as_number;
958 PyMappingMethods as_mapping;
959 PySequenceMethods as_sequence;
960 PyBufferProcs as_buffer;
961 PyObject *name, *slots;
965 #if PY_VERSION_HEX < 0x02030000
966 typedef destructor freefunc;
969 #if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \
970 (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \
971 (PY_MAJOR_VERSION > 3))
972 # define SWIGPY_USE_CAPSULE
973 # define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
976 #if PY_VERSION_HEX < 0x03020000
977 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
978 #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
979 #define Py_hash_t long
986 SWIGRUNTIME PyObject*
987 SWIG_Python_ErrorType(
int code) {
990 case SWIG_MemoryError:
991 type = PyExc_MemoryError;
994 type = PyExc_IOError;
996 case SWIG_RuntimeError:
997 type = PyExc_RuntimeError;
999 case SWIG_IndexError:
1000 type = PyExc_IndexError;
1002 case SWIG_TypeError:
1003 type = PyExc_TypeError;
1005 case SWIG_DivisionByZero:
1006 type = PyExc_ZeroDivisionError;
1008 case SWIG_OverflowError:
1009 type = PyExc_OverflowError;
1011 case SWIG_SyntaxError:
1012 type = PyExc_SyntaxError;
1014 case SWIG_ValueError:
1015 type = PyExc_ValueError;
1017 case SWIG_SystemError:
1018 type = PyExc_SystemError;
1020 case SWIG_AttributeError:
1021 type = PyExc_AttributeError;
1024 type = PyExc_RuntimeError;
1031 SWIG_Python_AddErrorMsg(
const char* mesg)
1034 PyObject *value = 0;
1035 PyObject *traceback = 0;
1037 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1040 PyObject *old_str = PyObject_Str(value);
1044 PyErr_Format(type,
"%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1045 SWIG_Python_str_DelForPy3(tmp);
1049 PyErr_SetString(PyExc_RuntimeError, mesg);
1053 #if defined(SWIG_PYTHON_NO_THREADS)
1054 # if defined(SWIG_PYTHON_THREADS)
1055 # undef SWIG_PYTHON_THREADS
1058 #if defined(SWIG_PYTHON_THREADS)
1059 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1060 # if (PY_VERSION_HEX >= 0x02030000)
1061 # define SWIG_PYTHON_USE_GIL
1064 # if defined(SWIG_PYTHON_USE_GIL)
1065 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
1066 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
1069 class SWIG_Python_Thread_Block {
1071 PyGILState_STATE state;
1073 void end() {
if (status) { PyGILState_Release(state); status =
false;} }
1074 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
1075 ~SWIG_Python_Thread_Block() { end(); }
1077 class SWIG_Python_Thread_Allow {
1079 PyThreadState *save;
1081 void end() {
if (status) { PyEval_RestoreThread(save); status =
false; }}
1082 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
1083 ~SWIG_Python_Thread_Allow() { end(); }
1085 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
1086 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
1087 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
1088 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
1090 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1091 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
1092 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1093 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
1096 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1097 # define SWIG_PYTHON_INITIALIZE_THREADS
1099 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1100 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1102 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1103 # define SWIG_PYTHON_THREAD_END_BLOCK
1105 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1106 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1108 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1109 # define SWIG_PYTHON_THREAD_END_ALLOW
1113 # define SWIG_PYTHON_INITIALIZE_THREADS
1114 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1115 # define SWIG_PYTHON_THREAD_END_BLOCK
1116 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1117 # define SWIG_PYTHON_THREAD_END_ALLOW
1133 #define SWIG_PY_POINTER 4
1134 #define SWIG_PY_BINARY 5
1151 #if PY_VERSION_HEX >= 0x03000000
1152 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(
self), PyObject *func)
1154 return PyInstanceMethod_New(func);
1157 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(
self), PyObject *SWIGUNUSEDPARM(func))
1180 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1181 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
1182 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1184 #ifdef SWIGPYTHON_BUILTIN
1185 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1187 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1190 #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1192 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
1193 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
1194 #define swig_owntype int
1197 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1198 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1201 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1202 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1205 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1206 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
1209 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1210 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1215 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
1216 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1217 #define SWIG_NewClientData(obj) SwigPyClientData_New(obj)
1219 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1220 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1221 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1222 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1223 #define SWIG_fail goto fail
1231 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1232 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1233 PyErr_SetObject(errtype, obj);
1235 SWIG_PYTHON_THREAD_END_BLOCK;
1239 SWIG_Python_SetErrorMsg(PyObject *errtype,
const char *msg) {
1240 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1241 PyErr_SetString(errtype, msg);
1242 SWIG_PYTHON_THREAD_END_BLOCK;
1245 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1249 #if defined(SWIGPYTHON_BUILTIN)
1252 SwigPyBuiltin_AddPublicSymbol(PyObject *seq,
const char *key) {
1253 PyObject *s = PyString_InternFromString(key);
1254 PyList_Append(seq, s);
1259 SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface,
const char *name, PyObject *obj) {
1260 #if PY_VERSION_HEX < 0x02030000
1261 PyDict_SetItemString(d, (
char *)name, obj);
1263 PyDict_SetItemString(d, name, obj);
1266 if (public_interface)
1267 SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1273 SWIG_Python_SetConstant(PyObject *d,
const char *name, PyObject *obj) {
1274 #if PY_VERSION_HEX < 0x02030000
1275 PyDict_SetItemString(d, (
char *)name, obj);
1277 PyDict_SetItemString(d, name, obj);
1286 SWIGINTERN PyObject*
1287 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1288 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1291 }
else if (result == Py_None) {
1295 if (!PyList_Check(result)) {
1296 PyObject *o2 = result;
1297 result = PyList_New(1);
1298 PyList_SetItem(result, 0, o2);
1300 PyList_Append(result,obj);
1309 }
else if (result == Py_None) {
1313 if (!PyTuple_Check(result)) {
1315 result = PyTuple_New(1);
1316 PyTuple_SET_ITEM(result, 0, o2);
1318 o3 = PyTuple_New(1);
1319 PyTuple_SET_ITEM(o3, 0, obj);
1321 result = PySequence_Concat(o2, o3);
1331 SWIGINTERN Py_ssize_t
1332 SWIG_Python_UnpackTuple(PyObject *args,
const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1338 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got none",
1339 name, (min == max ?
"" :
"at least "), (
int)min);
1343 if (!PyTuple_Check(args)) {
1344 if (min <= 1 && max >= 1) {
1347 for (i = 1; i < max; ++i) {
1352 PyErr_SetString(PyExc_SystemError,
"UnpackTuple() argument list is not a tuple");
1355 Py_ssize_t l = PyTuple_GET_SIZE(args);
1357 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got %d",
1358 name, (min == max ?
"" :
"at least "), (
int)min, (
int)l);
1360 }
else if (l > max) {
1361 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got %d",
1362 name, (min == max ?
"" :
"at most "), (
int)max, (
int)l);
1366 for (i = 0; i < l; ++i) {
1367 objs[i] = PyTuple_GET_ITEM(args, i);
1369 for (; l < max; ++l) {
1378 #if PY_VERSION_HEX >= 0x02020000
1379 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1381 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1389 #define SWIG_STATIC_POINTER(var) var
1391 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1399 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1400 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1402 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1404 #define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2)
1405 #define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
1412 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1413 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1414 # ifndef SWIG_PYTHON_BUILD_NONE
1415 # define SWIG_PYTHON_BUILD_NONE
1420 #ifdef SWIG_PYTHON_BUILD_NONE
1423 # define Py_None SWIG_Py_None()
1425 SWIGRUNTIMEINLINE PyObject *
1428 PyObject *none = Py_BuildValue((
char*)
"");
1432 SWIGRUNTIME PyObject *
1435 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1442 SWIGRUNTIMEINLINE PyObject *
1445 PyObject *none = Py_None;
1459 PyTypeObject *pytype;
1462 SWIGRUNTIMEINLINE
int
1466 return data ? data->implicitconv : 0;
1469 SWIGRUNTIMEINLINE PyObject *
1472 PyObject *klass = data ? data->klass : 0;
1473 return (klass ? klass : PyExc_RuntimeError);
1478 SwigPyClientData_New(PyObject* obj)
1486 Py_INCREF(data->klass);
1488 if (PyClass_Check(obj)) {
1490 data->newargs = obj;
1493 #if (PY_VERSION_HEX < 0x02020000)
1496 data->newraw = PyObject_GetAttrString(data->klass, (
char *)
"__new__");
1499 Py_INCREF(data->newraw);
1500 data->newargs = PyTuple_New(1);
1501 PyTuple_SetItem(data->newargs, 0, obj);
1503 data->newargs = obj;
1505 Py_INCREF(data->newargs);
1508 data->destroy = PyObject_GetAttrString(data->klass, (
char *)
"__swig_destroy__");
1509 if (PyErr_Occurred()) {
1513 if (data->destroy) {
1515 Py_INCREF(data->destroy);
1516 flags = PyCFunction_GET_FLAGS(data->destroy);
1518 data->delargs = !(flags & (METH_O));
1525 data->implicitconv = 0;
1533 Py_XDECREF(data->newraw);
1534 Py_XDECREF(data->newargs);
1535 Py_XDECREF(data->destroy);
1546 #ifdef SWIGPYTHON_BUILTIN
1552 #ifdef SWIGPYTHON_BUILTIN
1554 SWIGRUNTIME PyObject *
1555 SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1560 sobj->dict = PyDict_New();
1562 Py_INCREF(sobj->dict);
1568 SWIGRUNTIME PyObject *
1571 return PyLong_FromVoidPtr(v->ptr);
1574 SWIGRUNTIME PyObject *
1577 PyObject *res = NULL;
1578 PyObject *args = PyTuple_New(1);
1580 if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1581 PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1583 #if PY_VERSION_HEX >= 0x03000000
1584 res = PyUnicode_Format(ofmt,args);
1586 res = PyString_Format(ofmt,args);
1596 SWIGRUNTIME PyObject *
1599 return SwigPyObject_format(
"%o",v);
1602 SWIGRUNTIME PyObject *
1605 return SwigPyObject_format(
"%x",v);
1608 SWIGRUNTIME PyObject *
1615 const char *name = SWIG_TypePrettyName(v->ty);
1616 PyObject *repr = SWIG_Python_str_FromFormat(
"<Swig Object of type '%s' at %p>", (name ? name :
"unknown"), (
void *)v);
1619 PyObject *nrep = SwigPyObject_repr((
SwigPyObject *)v->next);
1621 PyObject *nrep = SwigPyObject_repr((
SwigPyObject *)v->next, args);
1623 # if PY_VERSION_HEX >= 0x03000000
1624 PyObject *joined = PyUnicode_Concat(repr, nrep);
1629 PyString_ConcatAndDel(&repr,nrep);
1640 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1644 SWIGRUNTIME PyObject*
1648 if( op != Py_EQ && op != Py_NE ) {
1649 Py_INCREF(Py_NotImplemented);
1650 return Py_NotImplemented;
1652 res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1657 SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(
void);
1659 #ifdef SWIGPYTHON_BUILTIN
1661 SWIGRUNTIME PyTypeObject*
1662 SwigPyObject_type(
void) {
1664 assert(SwigPyObject_stype);
1671 SWIGRUNTIME PyTypeObject*
1672 SwigPyObject_type(
void) {
1673 static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1678 SWIGRUNTIMEINLINE
int
1679 SwigPyObject_Check(PyObject *op) {
1680 #ifdef SWIGPYTHON_BUILTIN
1681 PyTypeObject *target_tp = SwigPyObject_type();
1682 if (PyType_IsSubtype(op->ob_type, target_tp))
1684 return (strcmp(op->ob_type->tp_name,
"SwigPyObject") == 0);
1686 return (Py_TYPE(op) == SwigPyObject_type())
1687 || (strcmp(Py_TYPE(op)->tp_name,
"SwigPyObject") == 0);
1691 SWIGRUNTIME PyObject *
1695 SwigPyObject_dealloc(PyObject *v)
1698 PyObject *next = sobj->next;
1699 if (sobj->own == SWIG_POINTER_OWN) {
1702 PyObject *destroy = data ? data->destroy : 0;
1714 PyObject *val = NULL, *type = NULL, *tb = NULL;
1715 PyErr_Fetch(&val, &type, &tb);
1717 if (data->delargs) {
1719 PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1720 res = SWIG_Python_CallFunctor(destroy, tmp);
1723 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1724 PyObject *mself = PyCFunction_GET_SELF(destroy);
1725 res = ((*meth)(mself, v));
1728 PyErr_WriteUnraisable(destroy);
1730 PyErr_Restore(val, type, tb);
1734 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1736 const char *name = SWIG_TypePrettyName(ty);
1737 printf(
"swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name :
"unknown"));
1745 SWIGRUNTIME PyObject*
1746 SwigPyObject_append(PyObject* v, PyObject* next)
1751 if (!PyArg_ParseTuple(next,(
char *)
"O:append", &tmp))
return NULL;
1754 if (!SwigPyObject_Check(next)) {
1755 PyErr_SetString(PyExc_TypeError,
"Attempt to append a non SwigPyObject");
1760 return SWIG_Py_Void();
1763 SWIGRUNTIME PyObject*
1765 SwigPyObject_next(PyObject* v)
1767 SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1772 Py_INCREF(sobj->next);
1775 return SWIG_Py_Void();
1779 SWIGINTERN PyObject*
1781 SwigPyObject_disown(PyObject *v)
1783 SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1788 return SWIG_Py_Void();
1791 SWIGINTERN PyObject*
1793 SwigPyObject_acquire(PyObject *v)
1795 SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1799 sobj->own = SWIG_POINTER_OWN;
1800 return SWIG_Py_Void();
1803 SWIGINTERN PyObject*
1804 SwigPyObject_own(PyObject *v, PyObject *args)
1807 #if (PY_VERSION_HEX < 0x02020000)
1808 if (!PyArg_ParseTuple(args,(
char *)
"|O:own",&val))
1809 #elif (PY_VERSION_HEX < 0x02050000)
1810 if (!PyArg_UnpackTuple(args, (
char *)
"own", 0, 1, &val))
1812 if (!PyArg_UnpackTuple(args,
"own", 0, 1, &val))
1820 PyObject *obj = PyBool_FromLong(sobj->own);
1823 if (PyObject_IsTrue(val)) {
1824 SwigPyObject_acquire(v);
1826 SwigPyObject_disown(v);
1829 if (PyObject_IsTrue(val)) {
1830 SwigPyObject_acquire(v,args);
1832 SwigPyObject_disown(v,args);
1842 swigobject_methods[] = {
1843 {(
char *)
"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (
char *)
"releases ownership of the pointer"},
1844 {(
char *)
"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (
char *)
"acquires ownership of the pointer"},
1845 {(
char *)
"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (
char *)
"returns/sets ownership of the pointer"},
1846 {(
char *)
"append", (PyCFunction)SwigPyObject_append, METH_O, (
char *)
"appends another 'this' object"},
1847 {(
char *)
"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (
char *)
"returns the next 'this' object"},
1848 {(
char *)
"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (
char *)
"returns object representation"},
1853 swigobject_methods[] = {
1854 {(
char *)
"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (
char *)
"releases ownership of the pointer"},
1855 {(
char *)
"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (
char *)
"acquires ownership of the pointer"},
1856 {(
char *)
"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (
char *)
"returns/sets ownership of the pointer"},
1857 {(
char *)
"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (
char *)
"appends another 'this' object"},
1858 {(
char *)
"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (
char *)
"returns the next 'this' object"},
1859 {(
char *)
"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (
char *)
"returns object representation"},
1864 #if PY_VERSION_HEX < 0x02020000
1865 SWIGINTERN PyObject *
1868 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1872 SWIGRUNTIME PyTypeObject*
1873 SwigPyObject_TypeOnce(
void) {
1874 static char swigobject_doc[] =
"Swig object carries a C/C++ instance pointer";
1876 static PyNumberMethods SwigPyObject_as_number = {
1881 #
if PY_VERSION_HEX < 0x03000000
1897 #
if PY_VERSION_HEX < 0x03000000
1900 (unaryfunc)SwigPyObject_long,
1901 #if PY_VERSION_HEX < 0x03000000
1902 (unaryfunc)SwigPyObject_long,
1907 #if PY_VERSION_HEX < 0x03000000
1908 (unaryfunc)SwigPyObject_oct,
1909 (unaryfunc)SwigPyObject_hex,
1911 #if PY_VERSION_HEX >= 0x03050000
1912 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1913 #elif PY_VERSION_HEX >= 0x03000000
1914 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1915 #elif PY_VERSION_HEX >= 0x02050000
1916 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1917 #elif PY_VERSION_HEX >= 0x02020000
1918 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1919 #elif PY_VERSION_HEX >= 0x02000000
1920 0,0,0,0,0,0,0,0,0,0,0
1924 static PyTypeObject swigpyobject_type;
1925 static int type_init = 0;
1927 const PyTypeObject tmp = {
1928 #if PY_VERSION_HEX >= 0x03000000
1929 PyVarObject_HEAD_INIT(NULL, 0)
1931 PyObject_HEAD_INIT(NULL)
1934 (
char *)
"SwigPyObject",
1937 (destructor)SwigPyObject_dealloc,
1939 #
if PY_VERSION_HEX < 0x02020000
1940 (getattrfunc)SwigPyObject_getattr,
1945 #if PY_VERSION_HEX >= 0x03000000
1948 (cmpfunc)SwigPyObject_compare,
1950 (reprfunc)SwigPyObject_repr,
1951 &SwigPyObject_as_number,
1957 PyObject_GenericGetAttr,
1964 (richcmpfunc)SwigPyObject_richcompare,
1966 #
if PY_VERSION_HEX >= 0x02020000
1988 #
if PY_VERSION_HEX >= 0x02030000
1991 #
if PY_VERSION_HEX >= 0x02060000
1994 #
if PY_VERSION_HEX >= 0x03040000
2001 #
if PY_VERSION_HEX >= 0x02050000
2007 swigpyobject_type = tmp;
2009 #if PY_VERSION_HEX < 0x02020000
2010 swigpyobject_type.ob_type = &PyType_Type;
2012 if (PyType_Ready(&swigpyobject_type) < 0)
2016 return &swigpyobject_type;
2019 SWIGRUNTIME PyObject *
2029 return (PyObject *)sobj;
2044 SwigPyPacked_print(
SwigPyPacked *v, FILE *fp,
int SWIGUNUSEDPARM(flags))
2046 char result[SWIG_BUFFER_SIZE];
2047 fputs(
"<Swig Packed ", fp);
2048 if (SWIG_PackDataName(result, v->pack, v->size, 0,
sizeof(result))) {
2052 fputs(v->ty->name,fp);
2057 SWIGRUNTIME PyObject *
2060 char result[SWIG_BUFFER_SIZE];
2061 if (SWIG_PackDataName(result, v->pack, v->size, 0,
sizeof(result))) {
2062 return SWIG_Python_str_FromFormat(
"<Swig Packed at %s%s>", result, v->ty->name);
2064 return SWIG_Python_str_FromFormat(
"<Swig Packed %s>", v->ty->name);
2068 SWIGRUNTIME PyObject *
2071 char result[SWIG_BUFFER_SIZE];
2072 if (SWIG_PackDataName(result, v->pack, v->size, 0,
sizeof(result))){
2073 return SWIG_Python_str_FromFormat(
"%s%s", result, v->ty->name);
2075 return SWIG_Python_str_FromChar(v->ty->name);
2084 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2085 return s ? s : strncmp((
char *)v->pack, (
char *)w->pack, 2*v->size);
2088 SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(
void);
2090 SWIGRUNTIME PyTypeObject*
2091 SwigPyPacked_type(
void) {
2092 static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
2096 SWIGRUNTIMEINLINE
int
2097 SwigPyPacked_Check(PyObject *op) {
2098 return ((op)->ob_type == SwigPyPacked_TypeOnce())
2099 || (strcmp((op)->ob_type->tp_name,
"SwigPyPacked") == 0);
2103 SwigPyPacked_dealloc(PyObject *v)
2105 if (SwigPyPacked_Check(v)) {
2112 SWIGRUNTIME PyTypeObject*
2113 SwigPyPacked_TypeOnce(
void) {
2114 static char swigpacked_doc[] =
"Swig object carries a C/C++ instance pointer";
2115 static PyTypeObject swigpypacked_type;
2116 static int type_init = 0;
2118 const PyTypeObject tmp = {
2119 #if PY_VERSION_HEX>=0x03000000
2120 PyVarObject_HEAD_INIT(NULL, 0)
2122 PyObject_HEAD_INIT(NULL)
2125 (
char *)
"SwigPyPacked",
2128 (destructor)SwigPyPacked_dealloc,
2129 (printfunc)SwigPyPacked_print,
2132 #if PY_VERSION_HEX>=0x03000000
2135 (cmpfunc)SwigPyPacked_compare,
2137 (reprfunc)SwigPyPacked_repr,
2143 (reprfunc)SwigPyPacked_str,
2144 PyObject_GenericGetAttr,
2153 #
if PY_VERSION_HEX >= 0x02020000
2175 #
if PY_VERSION_HEX >= 0x02030000
2178 #
if PY_VERSION_HEX >= 0x02060000
2181 #
if PY_VERSION_HEX >= 0x03040000
2188 #
if PY_VERSION_HEX >= 0x02050000
2194 swigpypacked_type = tmp;
2196 #if PY_VERSION_HEX < 0x02020000
2197 swigpypacked_type.ob_type = &PyType_Type;
2199 if (PyType_Ready(&swigpypacked_type) < 0)
2203 return &swigpypacked_type;
2206 SWIGRUNTIME PyObject *
2211 void *pack = malloc(size);
2213 memcpy(pack, ptr, size);
2218 PyObject_DEL((PyObject *) sobj);
2222 return (PyObject *) sobj;
2226 SwigPyPacked_UnpackData(PyObject *obj,
void *ptr,
size_t size)
2228 if (SwigPyPacked_Check(obj)) {
2230 if (sobj->size != size)
return 0;
2231 memcpy(ptr, sobj->pack, size);
2242 SWIGRUNTIMEINLINE PyObject *
2245 return SWIG_Python_str_FromChar(
"this");
2248 static PyObject *swig_this = NULL;
2250 SWIGRUNTIME PyObject *
2253 if (swig_this == NULL)
2254 swig_this = _SWIG_This();
2261 #if PY_VERSION_HEX>=0x03000000
2262 #define SWIG_PYTHON_SLOW_GETSET_THIS
2266 SWIG_Python_GetSwigThis(PyObject *pyobj)
2270 if (SwigPyObject_Check(pyobj))
2273 #ifdef SWIGPYTHON_BUILTIN
2275 # ifdef PyWeakref_CheckProxy
2276 if (PyWeakref_CheckProxy(pyobj)) {
2277 pyobj = PyWeakref_GET_OBJECT(pyobj);
2278 if (pyobj && SwigPyObject_Check(pyobj))
2287 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
2288 if (PyInstance_Check(pyobj)) {
2289 obj = _PyInstance_Lookup(pyobj, SWIG_This());
2291 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2292 if (dictptr != NULL) {
2293 PyObject *dict = *dictptr;
2294 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2296 #ifdef PyWeakref_CheckProxy
2297 if (PyWeakref_CheckProxy(pyobj)) {
2298 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2299 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2302 obj = PyObject_GetAttr(pyobj,SWIG_This());
2306 if (PyErr_Occurred()) PyErr_Clear();
2312 obj = PyObject_GetAttr(pyobj,SWIG_This());
2316 if (PyErr_Occurred()) PyErr_Clear();
2320 if (obj && !SwigPyObject_Check(obj)) {
2323 return SWIG_Python_GetSwigThis(obj);
2332 SWIG_Python_AcquirePtr(PyObject *obj,
int own) {
2333 if (own == SWIG_POINTER_OWN) {
2336 int oldown = sobj->own;
2347 SWIG_Python_ConvertPtrAndOwn(PyObject *obj,
void **ptr,
swig_type_info *ty,
int flags,
int *own) {
2350 int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
2354 if (obj == Py_None && !implicit_conv) {
2362 sobj = SWIG_Python_GetSwigThis(obj);
2366 void *vptr = sobj->ptr;
2371 if (ptr) *ptr = vptr;
2380 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2381 if (newmemory == SWIG_CAST_NEW_MEMORY) {
2384 *own = *own | SWIG_CAST_NEW_MEMORY;
2391 if (ptr) *ptr = vptr;
2397 *own = *own | sobj->own;
2398 if (flags & SWIG_POINTER_DISOWN) {
2403 if (implicit_conv) {
2405 if (data && !data->implicitconv) {
2406 PyObject *klass = data->klass;
2409 data->implicitconv = 1;
2410 impconv = SWIG_Python_CallFunctor(klass, obj);
2411 data->implicitconv = 0;
2412 if (PyErr_Occurred()) {
2420 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2421 if (SWIG_IsOK(res)) {
2426 res = SWIG_AddCast(res);
2427 res = SWIG_AddNewMask(res);
2429 res = SWIG_AddCast(res);
2438 if (!SWIG_IsOK(res) && obj == Py_None) {
2441 if (PyErr_Occurred())
2452 SWIG_Python_ConvertFunctionPtr(PyObject *obj,
void **ptr,
swig_type_info *ty) {
2453 if (!PyCFunction_Check(obj)) {
2454 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2459 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2460 const char *desc = doc ? strstr(doc,
"swig_ptr: ") : 0;
2462 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2469 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2484 SWIG_Python_ConvertPacked(PyObject *obj,
void *ptr,
size_t sz,
swig_type_info *ty) {
2486 if (!to)
return SWIG_ERROR;
2491 if (!tc)
return SWIG_ERROR;
2506 SWIGRUNTIME PyObject*
2509 #if (PY_VERSION_HEX >= 0x02020000)
2511 PyObject *newraw = data->newraw;
2513 inst = PyObject_Call(newraw, data->newargs, NULL);
2515 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2516 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2517 if (dictptr != NULL) {
2518 PyObject *dict = *dictptr;
2520 dict = PyDict_New();
2522 PyDict_SetItem(dict, SWIG_This(), swig_this);
2526 PyObject *key = SWIG_This();
2527 PyObject_SetAttr(inst, key, swig_this);
2531 #if PY_VERSION_HEX >= 0x03000000
2532 inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
2534 PyObject_SetAttr(inst, SWIG_This(), swig_this);
2535 Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2538 PyObject *dict = PyDict_New();
2540 PyDict_SetItem(dict, SWIG_This(), swig_this);
2541 inst = PyInstance_NewRaw(data->newargs, dict);
2548 #if (PY_VERSION_HEX >= 0x02010000)
2550 PyObject *dict = PyDict_New();
2552 PyDict_SetItem(dict, SWIG_This(), swig_this);
2553 inst = PyInstance_NewRaw(data->newargs, dict);
2556 return (PyObject *) inst;
2558 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2562 inst->in_class = (PyClassObject *)data->newargs;
2563 Py_INCREF(inst->in_class);
2564 inst->in_dict = PyDict_New();
2565 if (inst->in_dict == NULL) {
2569 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2570 inst->in_weakreflist = NULL;
2572 #ifdef Py_TPFLAGS_GC
2573 PyObject_GC_Init(inst);
2575 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2576 return (PyObject *) inst;
2582 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2585 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2586 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2587 if (dictptr != NULL) {
2590 dict = PyDict_New();
2593 PyDict_SetItem(dict, SWIG_This(), swig_this);
2597 dict = PyObject_GetAttrString(inst, (
char*)
"__dict__");
2598 PyDict_SetItem(dict, SWIG_This(), swig_this);
2603 SWIGINTERN PyObject *
2604 SWIG_Python_InitShadowInstance(PyObject *args) {
2606 if (!SWIG_Python_UnpackTuple(args,
"swiginit", 2, 2, obj)) {
2611 SwigPyObject_append((PyObject*) sthis, obj[1]);
2613 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2615 return SWIG_Py_Void();
2621 SWIGRUNTIME PyObject *
2622 SWIG_Python_NewPointerObj(PyObject *
self,
void *ptr,
swig_type_info *type,
int flags) {
2628 return SWIG_Py_Void();
2631 own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2632 if (clientdata && clientdata->pytype) {
2634 if (flags & SWIG_BUILTIN_TP_INIT) {
2637 PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2638 while (newobj->next)
2640 newobj->next = next_self;
2642 #ifdef SWIGPYTHON_BUILTIN
2647 newobj = PyObject_New(
SwigPyObject, clientdata->pytype);
2648 #ifdef SWIGPYTHON_BUILTIN
2657 return (PyObject*) newobj;
2659 return SWIG_Py_Void();
2662 assert(!(flags & SWIG_BUILTIN_TP_INIT));
2664 robj = SwigPyObject_New(ptr, type, own);
2665 if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2666 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2675 SWIGRUNTIMEINLINE PyObject *
2676 SWIG_Python_NewPackedObj(
void *ptr,
size_t sz,
swig_type_info *type) {
2677 return ptr ? SwigPyPacked_New((
void *) ptr, sz, type) : SWIG_Py_Void();
2684 #ifdef SWIG_LINK_RUNTIME
2685 void *SWIG_ReturnGlobalTypeList(
void *);
2689 SWIG_Python_GetModule(
void *SWIGUNUSEDPARM(clientdata)) {
2690 static void *type_pointer = (
void *)0;
2692 if (!type_pointer) {
2693 #ifdef SWIG_LINK_RUNTIME
2694 type_pointer = SWIG_ReturnGlobalTypeList((
void *)0);
2696 # ifdef SWIGPY_USE_CAPSULE
2697 type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
2699 type_pointer = PyCObject_Import((
char*)
"swig_runtime_data" SWIG_RUNTIME_VERSION,
2700 (
char*)
"type_pointer" SWIG_TYPE_TABLE_NAME);
2702 if (PyErr_Occurred()) {
2704 type_pointer = (
void *)0;
2711 #if PY_MAJOR_VERSION < 2
2715 PyModule_AddObject(PyObject *m,
char *name, PyObject *o)
2718 if (!PyModule_Check(m)) {
2719 PyErr_SetString(PyExc_TypeError,
"PyModule_AddObject() needs module as first arg");
2723 PyErr_SetString(PyExc_TypeError,
"PyModule_AddObject() needs non-NULL value");
2727 dict = PyModule_GetDict(m);
2730 PyErr_Format(PyExc_SystemError,
"module '%s' has no __dict__",
2731 PyModule_GetName(m));
2734 if (PyDict_SetItemString(dict, name, o))
2742 #ifdef SWIGPY_USE_CAPSULE
2743 SWIG_Python_DestroyModule(PyObject *obj)
2745 SWIG_Python_DestroyModule(
void *vptr)
2748 #ifdef SWIGPY_USE_CAPSULE
2755 for (i =0; i < swig_module->size; ++i) {
2759 if (data) SwigPyClientData_Del(data);
2762 Py_DECREF(SWIG_This());
2768 #if PY_VERSION_HEX >= 0x03000000
2770 PyObject *module = PyImport_AddModule((
char*)
"swig_runtime_data" SWIG_RUNTIME_VERSION);
2772 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };
2773 PyObject *module = Py_InitModule((
char*)
"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2775 #ifdef SWIGPY_USE_CAPSULE
2776 PyObject *pointer = PyCapsule_New((
void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
2777 if (pointer && module) {
2778 PyModule_AddObject(module, (
char*)
"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2780 Py_XDECREF(pointer);
2783 PyObject *pointer = PyCObject_FromVoidPtr((
void *) swig_module, SWIG_Python_DestroyModule);
2784 if (pointer && module) {
2785 PyModule_AddObject(module, (
char*)
"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2787 Py_XDECREF(pointer);
2793 SWIGRUNTIME PyObject *
2794 SWIG_Python_TypeCache(
void) {
2795 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2800 SWIG_Python_TypeQuery(
const char *type)
2802 PyObject *cache = SWIG_Python_TypeCache();
2803 PyObject *key = SWIG_Python_str_FromChar(type);
2804 PyObject *obj = PyDict_GetItem(cache, key);
2807 #ifdef SWIGPY_USE_CAPSULE
2814 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2816 #ifdef SWIGPY_USE_CAPSULE
2817 obj = PyCapsule_New((
void*) descriptor, NULL, NULL);
2819 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2821 PyDict_SetItem(cache, key, obj);
2832 #define SWIG_POINTER_EXCEPTION 0
2833 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2834 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2837 SWIG_Python_AddErrMesg(
const char* mesg,
int infront)
2839 if (PyErr_Occurred()) {
2841 PyObject *value = 0;
2842 PyObject *traceback = 0;
2843 PyErr_Fetch(&type, &value, &traceback);
2846 PyObject *old_str = PyObject_Str(value);
2850 PyErr_Format(type,
"%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2852 PyErr_Format(type,
"%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2854 SWIG_Python_str_DelForPy3(tmp);
2864 SWIG_Python_ArgFail(
int argnum)
2866 if (PyErr_Occurred()) {
2869 PyOS_snprintf(mesg,
sizeof(mesg),
"argument number %d:", argnum);
2870 return SWIG_Python_AddErrMesg(mesg, 1);
2876 SWIGRUNTIMEINLINE
const char *
2877 SwigPyObject_GetDesc(PyObject *
self)
2881 return ty ? ty->str :
"";
2885 SWIG_Python_TypeError(
const char *type, PyObject *obj)
2888 #if defined(SWIG_COBJECT_TYPES)
2889 if (obj && SwigPyObject_Check(obj)) {
2890 const char *otype = (
const char *) SwigPyObject_GetDesc(obj);
2892 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, 'SwigPyObject(%s)' is received",
2899 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2901 PyObject *str = PyObject_Str(obj);
2902 const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2904 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, '%s(%s)' is received",
2906 SWIG_Python_str_DelForPy3(cstr);
2908 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, '%s' is received",
2915 PyErr_Format(PyExc_TypeError,
"a '%s' is expected", type);
2917 PyErr_Format(PyExc_TypeError,
"unexpected type is received");
2924 SWIG_Python_MustGetPtr(PyObject *obj,
swig_type_info *ty,
int SWIGUNUSEDPARM(argnum),
int flags) {
2926 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2928 #if SWIG_POINTER_EXCEPTION
2930 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2931 SWIG_Python_ArgFail(argnum);
2938 #ifdef SWIGPYTHON_BUILTIN
2940 SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2941 PyTypeObject *tp = obj->ob_type;
2943 PyObject *encoded_name;
2947 # ifdef Py_USING_UNICODE
2948 if (PyString_Check(name)) {
2949 name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
2952 }
else if (!PyUnicode_Check(name))
2954 if (!PyString_Check(name))
2957 PyErr_Format(PyExc_TypeError,
"attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2964 if (PyType_Ready(tp) < 0)
2968 descr = _PyType_Lookup(tp, name);
2971 f = descr->ob_type->tp_descr_set;
2973 if (PyString_Check(name)) {
2974 encoded_name = name;
2977 encoded_name = PyUnicode_AsUTF8String(name);
2979 PyErr_Format(PyExc_AttributeError,
"'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2980 Py_DECREF(encoded_name);
2982 res = f(descr, obj, value);
2998 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
3000 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
3006 #define SWIGTYPE_p_Crev swig_types[0]
3007 #define SWIGTYPE_p_FILE swig_types[1]
3008 #define SWIGTYPE_p_MapLong2Long swig_types[2]
3009 #define SWIGTYPE_p_Node swig_types[3]
3010 #define SWIGTYPE_p_T swig_types[4]
3011 #define SWIGTYPE_p_TI swig_types[5]
3012 #define SWIGTYPE_p_char swig_types[6]
3013 #define SWIGTYPE_p_double swig_types[7]
3014 #define SWIGTYPE_p_faiss__ArrayInvertedLists swig_types[8]
3015 #define SWIGTYPE_p_faiss__AutoTuneCriterion swig_types[9]
3016 #define SWIGTYPE_p_faiss__BinaryInvertedListScanner swig_types[10]
3017 #define SWIGTYPE_p_faiss__BufferList swig_types[11]
3018 #define SWIGTYPE_p_faiss__Cloner swig_types[12]
3019 #define SWIGTYPE_p_faiss__Clustering swig_types[13]
3020 #define SWIGTYPE_p_faiss__ClusteringParameters swig_types[14]
3021 #define SWIGTYPE_p_faiss__ConcatenatedInvertedLists swig_types[15]
3022 #define SWIGTYPE_p_faiss__GenHammingComputer16 swig_types[16]
3023 #define SWIGTYPE_p_faiss__GenHammingComputer32 swig_types[17]
3024 #define SWIGTYPE_p_faiss__GenHammingComputer8 swig_types[18]
3025 #define SWIGTYPE_p_faiss__GenHammingComputerM8 swig_types[19]
3026 #define SWIGTYPE_p_faiss__HNSW swig_types[20]
3027 #define SWIGTYPE_p_faiss__HNSWStats swig_types[21]
3028 #define SWIGTYPE_p_faiss__HNSW__DistanceComputer swig_types[22]
3029 #define SWIGTYPE_p_faiss__HNSW__MinimaxHeap swig_types[23]
3030 #define SWIGTYPE_p_faiss__HammingComputer16 swig_types[24]
3031 #define SWIGTYPE_p_faiss__HammingComputer20 swig_types[25]
3032 #define SWIGTYPE_p_faiss__HammingComputer32 swig_types[26]
3033 #define SWIGTYPE_p_faiss__HammingComputer4 swig_types[27]
3034 #define SWIGTYPE_p_faiss__HammingComputer64 swig_types[28]
3035 #define SWIGTYPE_p_faiss__HammingComputer8 swig_types[29]
3036 #define SWIGTYPE_p_faiss__HammingComputerDefault swig_types[30]
3037 #define SWIGTYPE_p_faiss__HammingComputerM4 swig_types[31]
3038 #define SWIGTYPE_p_faiss__HammingComputerM8 swig_types[32]
3039 #define SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t swig_types[33]
3040 #define SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t swig_types[34]
3041 #define SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t swig_types[35]
3042 #define SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t swig_types[36]
3043 #define SWIGTYPE_p_faiss__IDSelector swig_types[37]
3044 #define SWIGTYPE_p_faiss__IDSelectorBatch swig_types[38]
3045 #define SWIGTYPE_p_faiss__IDSelectorRange swig_types[39]
3046 #define SWIGTYPE_p_faiss__IOReader swig_types[40]
3047 #define SWIGTYPE_p_faiss__IOWriter swig_types[41]
3048 #define SWIGTYPE_p_faiss__IVFPQSearchParameters swig_types[42]
3049 #define SWIGTYPE_p_faiss__IVFSearchParameters swig_types[43]
3050 #define SWIGTYPE_p_faiss__Index swig_types[44]
3051 #define SWIGTYPE_p_faiss__Index2Layer swig_types[45]
3052 #define SWIGTYPE_p_faiss__IndexBinary swig_types[46]
3053 #define SWIGTYPE_p_faiss__IndexBinaryFlat swig_types[47]
3054 #define SWIGTYPE_p_faiss__IndexBinaryFromFloat swig_types[48]
3055 #define SWIGTYPE_p_faiss__IndexBinaryHNSW swig_types[49]
3056 #define SWIGTYPE_p_faiss__IndexBinaryIVF swig_types[50]
3057 #define SWIGTYPE_p_faiss__IndexFlat swig_types[51]
3058 #define SWIGTYPE_p_faiss__IndexFlat1D swig_types[52]
3059 #define SWIGTYPE_p_faiss__IndexFlatIP swig_types[53]
3060 #define SWIGTYPE_p_faiss__IndexFlatL2 swig_types[54]
3061 #define SWIGTYPE_p_faiss__IndexFlatL2BaseShift swig_types[55]
3062 #define SWIGTYPE_p_faiss__IndexHNSW swig_types[56]
3063 #define SWIGTYPE_p_faiss__IndexHNSW2Level swig_types[57]
3064 #define SWIGTYPE_p_faiss__IndexHNSWFlat swig_types[58]
3065 #define SWIGTYPE_p_faiss__IndexHNSWPQ swig_types[59]
3066 #define SWIGTYPE_p_faiss__IndexHNSWSQ swig_types[60]
3067 #define SWIGTYPE_p_faiss__IndexIDMap swig_types[61]
3068 #define SWIGTYPE_p_faiss__IndexIDMap2 swig_types[62]
3069 #define SWIGTYPE_p_faiss__IndexIVF swig_types[63]
3070 #define SWIGTYPE_p_faiss__IndexIVFFlat swig_types[64]
3071 #define SWIGTYPE_p_faiss__IndexIVFFlatDedup swig_types[65]
3072 #define SWIGTYPE_p_faiss__IndexIVFPQ swig_types[66]
3073 #define SWIGTYPE_p_faiss__IndexIVFPQR swig_types[67]
3074 #define SWIGTYPE_p_faiss__IndexIVFPQStats swig_types[68]
3075 #define SWIGTYPE_p_faiss__IndexIVFScalarQuantizer swig_types[69]
3076 #define SWIGTYPE_p_faiss__IndexIVFStats swig_types[70]
3077 #define SWIGTYPE_p_faiss__IndexLSH swig_types[71]
3078 #define SWIGTYPE_p_faiss__IndexPQ swig_types[72]
3079 #define SWIGTYPE_p_faiss__IndexPQStats swig_types[73]
3080 #define SWIGTYPE_p_faiss__IndexPreTransform swig_types[74]
3081 #define SWIGTYPE_p_faiss__IndexRefineFlat swig_types[75]
3082 #define SWIGTYPE_p_faiss__IndexScalarQuantizer swig_types[76]
3083 #define SWIGTYPE_p_faiss__IndexShards swig_types[77]
3084 #define SWIGTYPE_p_faiss__IndexSplitVectors swig_types[78]
3085 #define SWIGTYPE_p_faiss__IntersectionCriterion swig_types[79]
3086 #define SWIGTYPE_p_faiss__InvertedListScanner swig_types[80]
3087 #define SWIGTYPE_p_faiss__InvertedLists swig_types[81]
3088 #define SWIGTYPE_p_faiss__Level1Quantizer swig_types[82]
3089 #define SWIGTYPE_p_faiss__LinearTransform swig_types[83]
3090 #define SWIGTYPE_p_faiss__LockLevels swig_types[84]
3091 #define SWIGTYPE_p_faiss__MultiIndexQuantizer swig_types[85]
3092 #define SWIGTYPE_p_faiss__MultiIndexQuantizer2 swig_types[86]
3093 #define SWIGTYPE_p_faiss__NormalizationTransform swig_types[87]
3094 #define SWIGTYPE_p_faiss__OPQMatrix swig_types[88]
3095 #define SWIGTYPE_p_faiss__OnDiskInvertedLists swig_types[89]
3096 #define SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch swig_types[90]
3097 #define SWIGTYPE_p_faiss__OneRecallAtRCriterion swig_types[91]
3098 #define SWIGTYPE_p_faiss__OperatingPoint swig_types[92]
3099 #define SWIGTYPE_p_faiss__OperatingPoints swig_types[93]
3100 #define SWIGTYPE_p_faiss__PCAMatrix swig_types[94]
3101 #define SWIGTYPE_p_faiss__ParameterRange swig_types[95]
3102 #define SWIGTYPE_p_faiss__ParameterSpace swig_types[96]
3103 #define SWIGTYPE_p_faiss__PermutationObjective swig_types[97]
3104 #define SWIGTYPE_p_faiss__PolysemousTraining swig_types[98]
3105 #define SWIGTYPE_p_faiss__ProductQuantizer swig_types[99]
3106 #define SWIGTYPE_p_faiss__RandomGenerator swig_types[100]
3107 #define SWIGTYPE_p_faiss__RandomRotationMatrix swig_types[101]
3108 #define SWIGTYPE_p_faiss__RangeSearchPartialResult swig_types[102]
3109 #define SWIGTYPE_p_faiss__RangeSearchPartialResult__QueryResult swig_types[103]
3110 #define SWIGTYPE_p_faiss__RangeSearchResult swig_types[104]
3111 #define SWIGTYPE_p_faiss__ReconstructFromNeighbors swig_types[105]
3112 #define SWIGTYPE_p_faiss__RemapDimensionsTransform swig_types[106]
3113 #define SWIGTYPE_p_faiss__ReproduceDistancesObjective swig_types[107]
3114 #define SWIGTYPE_p_faiss__ScalarQuantizer swig_types[108]
3115 #define SWIGTYPE_p_faiss__ScalarQuantizer__DistanceComputer swig_types[109]
3116 #define SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer swig_types[110]
3117 #define SWIGTYPE_p_faiss__SimulatedAnnealingParameters swig_types[111]
3118 #define SWIGTYPE_p_faiss__VectorIOReader swig_types[112]
3119 #define SWIGTYPE_p_faiss__VectorIOWriter swig_types[113]
3120 #define SWIGTYPE_p_faiss__VectorTransform swig_types[114]
3121 #define SWIGTYPE_p_faiss__VisitedTable swig_types[115]
3122 #define SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow swig_types[116]
3123 #define SWIGTYPE_p_float swig_types[117]
3124 #define SWIGTYPE_p_idx_t swig_types[118]
3125 #define SWIGTYPE_p_int swig_types[119]
3126 #define SWIGTYPE_p_long swig_types[120]
3127 #define SWIGTYPE_p_omp_lock_t swig_types[121]
3128 #define SWIGTYPE_p_p_faiss__ArrayInvertedLists swig_types[122]
3129 #define SWIGTYPE_p_p_faiss__ConcatenatedInvertedLists swig_types[123]
3130 #define SWIGTYPE_p_p_faiss__Index swig_types[124]
3131 #define SWIGTYPE_p_p_faiss__Index2Layer swig_types[125]
3132 #define SWIGTYPE_p_p_faiss__IndexFlat swig_types[126]
3133 #define SWIGTYPE_p_p_faiss__IndexFlat1D swig_types[127]
3134 #define SWIGTYPE_p_p_faiss__IndexFlatIP swig_types[128]
3135 #define SWIGTYPE_p_p_faiss__IndexFlatL2 swig_types[129]
3136 #define SWIGTYPE_p_p_faiss__IndexFlatL2BaseShift swig_types[130]
3137 #define SWIGTYPE_p_p_faiss__IndexHNSW swig_types[131]
3138 #define SWIGTYPE_p_p_faiss__IndexHNSW2Level swig_types[132]
3139 #define SWIGTYPE_p_p_faiss__IndexHNSWFlat swig_types[133]
3140 #define SWIGTYPE_p_p_faiss__IndexHNSWPQ swig_types[134]
3141 #define SWIGTYPE_p_p_faiss__IndexHNSWSQ swig_types[135]
3142 #define SWIGTYPE_p_p_faiss__IndexIDMap swig_types[136]
3143 #define SWIGTYPE_p_p_faiss__IndexIDMap2 swig_types[137]
3144 #define SWIGTYPE_p_p_faiss__IndexIVF swig_types[138]
3145 #define SWIGTYPE_p_p_faiss__IndexIVFFlat swig_types[139]
3146 #define SWIGTYPE_p_p_faiss__IndexIVFFlatDedup swig_types[140]
3147 #define SWIGTYPE_p_p_faiss__IndexIVFPQ swig_types[141]
3148 #define SWIGTYPE_p_p_faiss__IndexIVFPQR swig_types[142]
3149 #define SWIGTYPE_p_p_faiss__IndexIVFScalarQuantizer swig_types[143]
3150 #define SWIGTYPE_p_p_faiss__IndexLSH swig_types[144]
3151 #define SWIGTYPE_p_p_faiss__IndexPQ swig_types[145]
3152 #define SWIGTYPE_p_p_faiss__IndexPreTransform swig_types[146]
3153 #define SWIGTYPE_p_p_faiss__IndexRefineFlat swig_types[147]
3154 #define SWIGTYPE_p_p_faiss__IndexScalarQuantizer swig_types[148]
3155 #define SWIGTYPE_p_p_faiss__IndexShards swig_types[149]
3156 #define SWIGTYPE_p_p_faiss__IndexSplitVectors swig_types[150]
3157 #define SWIGTYPE_p_p_faiss__InvertedLists swig_types[151]
3158 #define SWIGTYPE_p_p_faiss__LinearTransform swig_types[152]
3159 #define SWIGTYPE_p_p_faiss__MultiIndexQuantizer swig_types[153]
3160 #define SWIGTYPE_p_p_faiss__MultiIndexQuantizer2 swig_types[154]
3161 #define SWIGTYPE_p_p_faiss__NormalizationTransform swig_types[155]
3162 #define SWIGTYPE_p_p_faiss__OPQMatrix swig_types[156]
3163 #define SWIGTYPE_p_p_faiss__OnDiskInvertedLists swig_types[157]
3164 #define SWIGTYPE_p_p_faiss__PCAMatrix swig_types[158]
3165 #define SWIGTYPE_p_p_faiss__RandomRotationMatrix swig_types[159]
3166 #define SWIGTYPE_p_p_faiss__RemapDimensionsTransform swig_types[160]
3167 #define SWIGTYPE_p_p_faiss__VectorTransform swig_types[161]
3168 #define SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t swig_types[162]
3169 #define SWIGTYPE_p_std__mt19937 swig_types[163]
3170 #define SWIGTYPE_p_std__pairT_float_int_t swig_types[164]
3171 #define SWIGTYPE_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t swig_types[165]
3172 #define SWIGTYPE_p_std__priority_queueT_std__pairT_float_int_t_t swig_types[166]
3173 #define SWIGTYPE_p_std__unordered_mapT_long_long_t swig_types[167]
3174 #define SWIGTYPE_p_std__unordered_multimapT_long_long_t swig_types[168]
3175 #define SWIGTYPE_p_std__vectorT_char_t swig_types[169]
3176 #define SWIGTYPE_p_std__vectorT_double_t swig_types[170]
3177 #define SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t swig_types[171]
3178 #define SWIGTYPE_p_std__vectorT_faiss__HNSW__NodeDistFarther_t swig_types[172]
3179 #define SWIGTYPE_p_std__vectorT_faiss__Index_p_t swig_types[173]
3180 #define SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t swig_types[174]
3181 #define SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t swig_types[175]
3182 #define SWIGTYPE_p_std__vectorT_faiss__OnDiskInvertedLists__List_t swig_types[176]
3183 #define SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t swig_types[177]
3184 #define SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t swig_types[178]
3185 #define SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult__QueryResult_t swig_types[179]
3186 #define SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t swig_types[180]
3187 #define SWIGTYPE_p_std__vectorT_float_t swig_types[181]
3188 #define SWIGTYPE_p_std__vectorT_int_t swig_types[182]
3189 #define SWIGTYPE_p_std__vectorT_long_t swig_types[183]
3190 #define SWIGTYPE_p_std__vectorT_omp_lock_t_t swig_types[184]
3191 #define SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t swig_types[185]
3192 #define SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t swig_types[186]
3193 #define SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t swig_types[187]
3194 #define SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t swig_types[188]
3195 #define SWIGTYPE_p_std__vectorT_unsigned_char_t swig_types[189]
3196 #define SWIGTYPE_p_std__vectorT_unsigned_long_t swig_types[190]
3197 #define SWIGTYPE_p_storage_idx_t swig_types[191]
3198 #define SWIGTYPE_p_uint32_t swig_types[192]
3199 #define SWIGTYPE_p_unsigned_char swig_types[193]
3200 #define SWIGTYPE_p_unsigned_long swig_types[194]
3201 #define SWIGTYPE_p_void swig_types[195]
3204 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3205 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3209 #if (PY_VERSION_HEX <= 0x02000000)
3210 # if !defined(SWIG_PYTHON_CLASSIC)
3211 # error "This python version requires swig to be run with the '-classic' option"
3218 #if PY_VERSION_HEX >= 0x03000000
3219 # define SWIG_init PyInit__swigfaiss
3222 # define SWIG_init init_swigfaiss
3225 #define SWIG_name "_swigfaiss"
3227 #define SWIGVERSION 0x030012
3228 #define SWIG_VERSION SWIGVERSION
3231 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
3232 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
3235 #include <stdexcept>
3239 class SwigPtr_PyObject {
3244 SwigPtr_PyObject() :_obj(0)
3248 SwigPtr_PyObject(
const SwigPtr_PyObject& item) : _obj(item._obj)
3250 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3252 SWIG_PYTHON_THREAD_END_BLOCK;
3255 SwigPtr_PyObject(PyObject *obj,
bool initial_ref =
true) :_obj(obj)
3258 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3260 SWIG_PYTHON_THREAD_END_BLOCK;
3264 SwigPtr_PyObject & operator=(
const SwigPtr_PyObject& item)
3266 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3267 Py_XINCREF(item._obj);
3270 SWIG_PYTHON_THREAD_END_BLOCK;
3276 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3278 SWIG_PYTHON_THREAD_END_BLOCK;
3281 operator PyObject *()
const
3286 PyObject *operator->()
const
3295 struct SwigVar_PyObject : SwigPtr_PyObject {
3296 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3298 SwigVar_PyObject & operator = (PyObject* obj)
3316 #include <pthread.h>
3333 #define SWIG_FILE_WITH_INIT
3334 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
3335 #include <numpy/arrayobject.h>
3340 #include "IndexFlat.h"
3341 #include "VectorTransform.h"
3342 #include "IndexLSH.h"
3343 #include "IndexPQ.h"
3344 #include "IndexIVF.h"
3345 #include "IndexIVFPQ.h"
3346 #include "IndexIVFFlat.h"
3347 #include "IndexScalarQuantizer.h"
3349 #include "IndexHNSW.h"
3350 #include "MetaIndexes.h"
3351 #include "FaissAssert.h"
3353 #include "IndexBinaryFlat.h"
3354 #include "IndexBinaryIVF.h"
3355 #include "IndexBinaryFromFloat.h"
3356 #include "IndexBinaryHNSW.h"
3358 #include "index_io.h"
3363 #include "AuxIndexStructures.h"
3364 #include "OnDiskInvertedLists.h"
3366 #include "Clustering.h"
3368 #include "hamming.h"
3370 #include "AutoTune.h"
3383 #ifndef SWIG_isfinite
3385 # if defined(isfinite)
3386 # define SWIG_isfinite(X) (isfinite(X))
3387 # elif defined __cplusplus && __cplusplus >= 201103L
3397 extern "C++" template<
typename T>
3398 inline int SWIG_isfinite_func(T x) {
3399 using namespace std;
3402 # define SWIG_isfinite(X) (SWIG_isfinite_func(X))
3403 # elif defined(_MSC_VER)
3404 # define SWIG_isfinite(X) (_finite(X))
3405 # elif defined(__sun) && defined(__SVR4)
3406 # include <ieeefp.h>
3407 # define SWIG_isfinite(X) (finite(X))
3413 #ifdef SWIG_isfinite
3414 # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
3416 # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
3421 SWIG_AsVal_double (PyObject *obj,
double *val)
3423 int res = SWIG_TypeError;
3424 if (PyFloat_Check(obj)) {
3425 if (val) *val = PyFloat_AsDouble(obj);
3427 #if PY_VERSION_HEX < 0x03000000
3428 }
else if (PyInt_Check(obj)) {
3429 if (val) *val = (double) PyInt_AsLong(obj);
3432 }
else if (PyLong_Check(obj)) {
3433 double v = PyLong_AsDouble(obj);
3434 if (!PyErr_Occurred()) {
3441 #ifdef SWIG_PYTHON_CAST_MODE
3444 double d = PyFloat_AsDouble(obj);
3445 if (!PyErr_Occurred()) {
3447 return SWIG_AddCast(SWIG_OK);
3452 long v = PyLong_AsLong(obj);
3453 if (!PyErr_Occurred()) {
3455 return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
3467 SWIG_AsVal_float (PyObject * obj,
float *val)
3470 int res = SWIG_AsVal_double (obj, &v);
3471 if (SWIG_IsOK(res)) {
3472 if (SWIG_Float_Overflow_Check(v)) {
3473 return SWIG_OverflowError;
3475 if (val) *val =
static_cast< float >(v);
3482 #define SWIG_From_long PyInt_FromLong
3485 SWIGINTERNINLINE PyObject*
3486 SWIG_From_unsigned_SS_long (
unsigned long value)
3488 return (value > LONG_MAX) ?
3489 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
3494 #if !defined(SWIG_NO_LLONG_MAX)
3495 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
3496 # define LLONG_MAX __LONG_LONG_MAX__
3497 # define LLONG_MIN (-LLONG_MAX - 1LL)
3498 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
3503 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
3504 # define SWIG_LONG_LONG_AVAILABLE
3508 #ifdef SWIG_LONG_LONG_AVAILABLE
3509 SWIGINTERNINLINE PyObject*
3510 SWIG_From_unsigned_SS_long_SS_long (
unsigned long long value)
3512 return (value > LONG_MAX) ?
3513 PyLong_FromUnsignedLongLong(value) : PyInt_FromLong(static_cast< long >(value));
3518 SWIGINTERNINLINE PyObject *
3519 SWIG_From_size_t (
size_t value)
3521 #ifdef SWIG_LONG_LONG_AVAILABLE
3522 if (
sizeof(
size_t) <=
sizeof(
unsigned long)) {
3524 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3525 #ifdef SWIG_LONG_LONG_AVAILABLE
3528 return SWIG_From_unsigned_SS_long_SS_long (static_cast< unsigned long long >(value));
3534 SWIGINTERNINLINE
int
3535 SWIG_CanCastAsInteger(
double *d,
double min,
double max) {
3537 if ((min <= x && x <= max)) {
3538 double fx = floor(x);
3539 double cx = ceil(x);
3540 double rd = ((x - fx) < 0.5) ? fx : cx;
3541 if ((errno == EDOM) || (errno == ERANGE)) {
3544 double summ, reps, diff;
3547 }
else if (rd > x) {
3554 if (reps < 8*DBL_EPSILON) {
3565 SWIG_AsVal_unsigned_SS_long (PyObject *obj,
unsigned long *val)
3567 #if PY_VERSION_HEX < 0x03000000
3568 if (PyInt_Check(obj)) {
3569 long v = PyInt_AsLong(obj);
3574 return SWIG_OverflowError;
3578 if (PyLong_Check(obj)) {
3579 unsigned long v = PyLong_AsUnsignedLong(obj);
3580 if (!PyErr_Occurred()) {
3585 return SWIG_OverflowError;
3588 #ifdef SWIG_PYTHON_CAST_MODE
3591 unsigned long v = PyLong_AsUnsignedLong(obj);
3592 if (!PyErr_Occurred()) {
3594 return SWIG_AddCast(SWIG_OK);
3600 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3601 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
3602 if (val) *val = (
unsigned long)(d);
3608 return SWIG_TypeError;
3612 #ifdef SWIG_LONG_LONG_AVAILABLE
3614 SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj,
unsigned long long *val)
3616 int res = SWIG_TypeError;
3617 if (PyLong_Check(obj)) {
3618 unsigned long long v = PyLong_AsUnsignedLongLong(obj);
3619 if (!PyErr_Occurred()) {
3624 res = SWIG_OverflowError;
3628 res = SWIG_AsVal_unsigned_SS_long (obj,&v);
3629 if (SWIG_IsOK(res)) {
3634 #ifdef SWIG_PYTHON_CAST_MODE
3636 const double mant_max = 1LL << DBL_MANT_DIG;
3638 res = SWIG_AsVal_double (obj,&d);
3639 if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, 0, mant_max))
3640 return SWIG_OverflowError;
3641 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
3642 if (val) *val = (
unsigned long long)(d);
3643 return SWIG_AddCast(res);
3645 res = SWIG_TypeError;
3653 SWIGINTERNINLINE
int
3654 SWIG_AsVal_size_t (PyObject * obj,
size_t *val)
3656 int res = SWIG_TypeError;
3657 #ifdef SWIG_LONG_LONG_AVAILABLE
3658 if (
sizeof(
size_t) <=
sizeof(
unsigned long)) {
3661 res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3662 if (SWIG_IsOK(res) && val) *val =
static_cast< size_t >(v);
3663 #ifdef SWIG_LONG_LONG_AVAILABLE
3664 }
else if (
sizeof(
size_t) <=
sizeof(
unsigned long long)) {
3665 unsigned long long v;
3666 res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
3667 if (SWIG_IsOK(res) && val) *val =
static_cast< size_t >(v);
3674 #define SWIG_From_double PyFloat_FromDouble
3677 SWIGINTERNINLINE PyObject *
3678 SWIG_From_float (
float value)
3680 return SWIG_From_double (value);
3685 SWIG_AsVal_unsigned_SS_char (PyObject * obj,
unsigned char *val)
3688 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3689 if (SWIG_IsOK(res)) {
3690 if ((v > UCHAR_MAX)) {
3691 return SWIG_OverflowError;
3693 if (val) *val =
static_cast< unsigned char >(v);
3700 SWIGINTERNINLINE PyObject *
3701 SWIG_From_unsigned_SS_char (
unsigned char value)
3703 return SWIG_From_unsigned_SS_long (value);
3708 SWIG_pchar_descriptor(
void)
3710 static int init = 0;
3713 info = SWIG_TypeQuery(
"_p_char");
3721 SWIG_AsCharPtrAndSize(PyObject *obj,
char** cptr,
size_t* psize,
int *alloc)
3723 #if PY_VERSION_HEX>=0x03000000
3724 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3725 if (PyBytes_Check(obj))
3727 if (PyUnicode_Check(obj))
3730 if (PyString_Check(obj))
3733 char *cstr; Py_ssize_t len;
3734 #if PY_VERSION_HEX>=0x03000000
3735 #if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3736 if (!alloc && cptr) {
3741 return SWIG_RuntimeError;
3743 obj = PyUnicode_AsUTF8String(obj);
3744 if(alloc) *alloc = SWIG_NEWOBJ;
3746 PyBytes_AsStringAndSize(obj, &cstr, &len);
3748 PyString_AsStringAndSize(obj, &cstr, &len);
3761 #if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3762 if (*alloc != SWIG_OLDOBJ)
3764 if (*alloc == SWIG_NEWOBJ)
3767 *cptr =
reinterpret_cast< char*
>(memcpy(
new char[len + 1], cstr,
sizeof(
char)*(len + 1)));
3768 *alloc = SWIG_NEWOBJ;
3771 *alloc = SWIG_OLDOBJ;
3774 #if PY_VERSION_HEX>=0x03000000
3775 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3776 *cptr = PyBytes_AsString(obj);
3781 *cptr = SWIG_Python_str_AsChar(obj);
3785 if (psize) *psize = len + 1;
3786 #if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3791 #if defined(SWIG_PYTHON_2_UNICODE)
3792 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3793 #error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
3795 #if PY_VERSION_HEX<0x03000000
3796 if (PyUnicode_Check(obj)) {
3797 char *cstr; Py_ssize_t len;
3798 if (!alloc && cptr) {
3799 return SWIG_RuntimeError;
3801 obj = PyUnicode_AsUTF8String(obj);
3802 if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3804 if (alloc) *alloc = SWIG_NEWOBJ;
3805 *cptr =
reinterpret_cast< char*
>(memcpy(
new char[len + 1], cstr,
sizeof(
char)*(len + 1)));
3807 if (psize) *psize = len + 1;
3819 if (pchar_descriptor) {
3821 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
3822 if (cptr) *cptr = (
char *) vptr;
3823 if (psize) *psize = vptr ? (strlen((
char *)vptr) + 1) : 0;
3824 if (alloc) *alloc = SWIG_OLDOBJ;
3829 return SWIG_TypeError;
3834 SWIG_AsCharArray(PyObject * obj,
char *val,
size_t size)
3836 char* cptr = 0;
size_t csize = 0;
int alloc = SWIG_OLDOBJ;
3837 int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
3838 if (SWIG_IsOK(res)) {
3840 if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize;
3841 if (csize <= size) {
3843 if (csize) memcpy(val, cptr, csize*
sizeof(
char));
3844 if (csize < size) memset(val + csize, 0, (size - csize)*
sizeof(
char));
3846 if (alloc == SWIG_NEWOBJ) {
3848 res = SWIG_DelNewMask(res);
3852 if (alloc == SWIG_NEWOBJ)
delete[] cptr;
3854 return SWIG_TypeError;
3859 SWIG_AsVal_long (PyObject *obj,
long* val)
3861 #if PY_VERSION_HEX < 0x03000000
3862 if (PyInt_Check(obj)) {
3863 if (val) *val = PyInt_AsLong(obj);
3867 if (PyLong_Check(obj)) {
3868 long v = PyLong_AsLong(obj);
3869 if (!PyErr_Occurred()) {
3874 return SWIG_OverflowError;
3877 #ifdef SWIG_PYTHON_CAST_MODE
3880 long v = PyInt_AsLong(obj);
3881 if (!PyErr_Occurred()) {
3883 return SWIG_AddCast(SWIG_OK);
3889 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3890 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
3891 if (val) *val = (long)(d);
3897 return SWIG_TypeError;
3902 SWIG_AsVal_char (PyObject * obj,
char *val)
3904 int res = SWIG_AsCharArray(obj, val, 1);
3905 if (!SWIG_IsOK(res)) {
3907 res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
3908 if (SWIG_IsOK(res)) {
3909 if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
3910 if (val) *val =
static_cast< char >(v);
3912 res = SWIG_OverflowError;
3920 SWIGINTERNINLINE PyObject *
3921 SWIG_FromCharPtrAndSize(
const char* carray,
size_t size)
3924 if (size > INT_MAX) {
3926 return pchar_descriptor ?
3927 SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
3929 #if PY_VERSION_HEX >= 0x03000000
3930 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3931 return PyBytes_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3933 #if PY_VERSION_HEX >= 0x03010000
3934 return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size),
"surrogateescape");
3936 return PyUnicode_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3940 return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3944 return SWIG_Py_Void();
3949 SWIGINTERNINLINE PyObject *
3950 SWIG_FromCharPtr(
const char *cptr)
3952 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3956 SWIGINTERNINLINE PyObject *
3957 SWIG_From_char (
char c)
3959 return SWIG_FromCharPtrAndSize(&c,1);
3964 SWIG_AsVal_int (PyObject * obj,
int *val)
3967 int res = SWIG_AsVal_long (obj, &v);
3968 if (SWIG_IsOK(res)) {
3969 if ((v < INT_MIN || v > INT_MAX)) {
3970 return SWIG_OverflowError;
3972 if (val) *val =
static_cast< int >(v);
3979 SWIGINTERNINLINE PyObject*
3980 SWIG_From_int (
int value)
3982 return PyInt_FromLong((
long) value);
3996 SWIG_AsVal_bool (PyObject *obj,
bool *val)
3999 if (!PyBool_Check(obj))
4001 r = PyObject_IsTrue(obj);
4004 if (val) *val = r ?
true :
false;
4009 SWIGINTERNINLINE PyObject*
4010 SWIG_From_bool (
bool value)
4012 return PyBool_FromLong(value ? 1 : 0);
4017 SWIG_AsPtr_std_string (PyObject * obj, std::string **val)
4019 char* buf = 0 ;
size_t size = 0;
int alloc = SWIG_OLDOBJ;
4020 if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) {
4022 if (val) *val =
new std::string(buf, size - 1);
4023 if (alloc == SWIG_NEWOBJ)
delete[] buf;
4030 static int init = 0;
4033 descriptor = SWIG_TypeQuery(
"std::string" " *");
4038 int res = SWIG_ConvertPtr(obj, (
void**)&vptr, descriptor, 0);
4039 if (SWIG_IsOK(res) && val) *val = vptr;
4047 SWIGINTERNINLINE PyObject *
4048 SWIG_From_std_string (
const std::string& s)
4050 return SWIG_FromCharPtrAndSize(s.data(), s.size());
4071 PyObject *swig_ptr (PyObject *a)
4073 if(!PyArray_Check(a)) {
4074 PyErr_SetString(PyExc_ValueError,
"input not a numpy array");
4077 PyArrayObject *ao = (PyArrayObject *)a;
4079 if(!PyArray_ISCONTIGUOUS(ao)) {
4080 PyErr_SetString(PyExc_ValueError,
"array is not C-contiguous");
4083 void * data = PyArray_DATA(ao);
4084 if(PyArray_TYPE(ao) == NPY_FLOAT32) {
4085 return SWIG_NewPointerObj(data, SWIGTYPE_p_float, 0);
4087 if(PyArray_TYPE(ao) == NPY_FLOAT64) {
4088 return SWIG_NewPointerObj(data, SWIGTYPE_p_double, 0);
4090 if(PyArray_TYPE(ao) == NPY_INT32) {
4091 return SWIG_NewPointerObj(data, SWIGTYPE_p_int, 0);
4093 if(PyArray_TYPE(ao) == NPY_UINT8) {
4094 return SWIG_NewPointerObj(data, SWIGTYPE_p_unsigned_char, 0);
4096 if(PyArray_TYPE(ao) == NPY_INT8) {
4097 return SWIG_NewPointerObj(data, SWIGTYPE_p_char, 0);
4099 if(PyArray_TYPE(ao) == NPY_UINT64) {
4100 return SWIG_NewPointerObj(data, SWIGTYPE_p_unsigned_long, 0);
4102 if(PyArray_TYPE(ao) == NPY_INT64) {
4103 return SWIG_NewPointerObj(data, SWIGTYPE_p_long, 0);
4105 PyErr_SetString(PyExc_ValueError,
"did not recognize array type");
4112 PyObject * rev_swig_ptr(
float *src, npy_intp size) {
4113 return PyArray_SimpleNewFromData(1, &size, NPY_FLOAT32, src);
4117 PyObject * rev_swig_ptr(
int *src, npy_intp size) {
4118 return PyArray_SimpleNewFromData(1, &size, NPY_INT32, src);
4122 PyObject * rev_swig_ptr(
unsigned char *src, npy_intp size) {
4123 return PyArray_SimpleNewFromData(1, &size, NPY_UINT8, src);
4127 PyObject * rev_swig_ptr(
unsigned long *src, npy_intp size) {
4128 return PyArray_SimpleNewFromData(1, &size, NPY_UINT64, src);
4132 PyObject * rev_swig_ptr(
long *src, npy_intp size) {
4133 return PyArray_SimpleNewFromData(1, &size, NPY_INT64, src);
4137 float * cast_integer_to_float_ptr (
long x) {
4141 long * cast_integer_to_long_ptr (
long x) {
4145 int * cast_integer_to_int_ptr (
long x) {
4154 void ignore_SIGTTIN() {
4155 signal(SIGTTIN, SIG_IGN);
4164 std::unordered_map<long, long> map;
4166 void add(
size_t n,
const long *keys,
const long *vals) {
4167 map.reserve(map.size() + n);
4168 for (
size_t i = 0; i < n; i++) {
4169 map[keys[i]] = vals[i];
4173 long search(
long key) {
4174 if (map.count(key) == 0) {
4181 void search_multiple(
size_t n,
const long *keys,
long * vals) {
4182 for (
size_t i = 0; i < n; i++) {
4183 vals[i] = search(keys[i]);
4192 SWIGINTERN PyObject *_wrap_new_FloatVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4193 PyObject *resultobj = 0;
4194 std::vector< float > *result = 0 ;
4196 if (!PyArg_ParseTuple(args,(
char *)
":new_FloatVector")) SWIG_fail;
4197 result = (std::vector< float > *)
new std::vector< float >();
4198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, SWIG_POINTER_NEW | 0 );
4205 SWIGINTERN PyObject *_wrap_FloatVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4206 PyObject *resultobj = 0;
4207 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4213 PyObject * obj0 = 0 ;
4214 PyObject * obj1 = 0 ;
4216 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVector_push_back",&obj0,&obj1)) SWIG_fail;
4217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
4218 if (!SWIG_IsOK(res1)) {
4219 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVector_push_back" "', argument " "1"" of type '" "std::vector< float > *""'");
4221 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4222 ecode2 = SWIG_AsVal_float(obj1, &val2);
4223 if (!SWIG_IsOK(ecode2)) {
4224 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "FloatVector_push_back" "', argument " "2"" of type '" "float""'");
4226 arg2 =
static_cast< float >(val2);
4227 (arg1)->push_back(arg2);
4228 resultobj = SWIG_Py_Void();
4235 SWIGINTERN PyObject *_wrap_FloatVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4236 PyObject *resultobj = 0;
4237 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4240 PyObject * obj0 = 0 ;
4242 if (!PyArg_ParseTuple(args,(
char *)
"O:FloatVector_clear",&obj0)) SWIG_fail;
4243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
4244 if (!SWIG_IsOK(res1)) {
4245 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVector_clear" "', argument " "1"" of type '" "std::vector< float > *""'");
4247 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4249 resultobj = SWIG_Py_Void();
4256 SWIGINTERN PyObject *_wrap_FloatVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4257 PyObject *resultobj = 0;
4258 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4261 PyObject * obj0 = 0 ;
4264 if (!PyArg_ParseTuple(args,(
char *)
"O:FloatVector_data",&obj0)) SWIG_fail;
4265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
4266 if (!SWIG_IsOK(res1)) {
4267 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVector_data" "', argument " "1"" of type '" "std::vector< float > *""'");
4269 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4270 result = (
float *)(arg1)->data();
4271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
4278 SWIGINTERN PyObject *_wrap_FloatVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4279 PyObject *resultobj = 0;
4280 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4283 PyObject * obj0 = 0 ;
4286 if (!PyArg_ParseTuple(args,(
char *)
"O:FloatVector_size",&obj0)) SWIG_fail;
4287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
4288 if (!SWIG_IsOK(res1)) {
4289 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVector_size" "', argument " "1"" of type '" "std::vector< float > *""'");
4291 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4292 result = (size_t)(arg1)->size();
4293 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
4300 SWIGINTERN PyObject *_wrap_FloatVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4301 PyObject *resultobj = 0;
4302 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4308 PyObject * obj0 = 0 ;
4309 PyObject * obj1 = 0 ;
4312 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVector_at",&obj0,&obj1)) SWIG_fail;
4313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
4314 if (!SWIG_IsOK(res1)) {
4315 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVector_at" "', argument " "1"" of type '" "std::vector< float > const *""'");
4317 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4318 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4319 if (!SWIG_IsOK(ecode2)) {
4320 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "FloatVector_at" "', argument " "2"" of type '" "size_t""'");
4322 arg2 =
static_cast< size_t >(val2);
4323 result = (float)((std::vector< float >
const *)arg1)->at(arg2);
4324 resultobj = SWIG_From_float(static_cast< float >(result));
4331 SWIGINTERN PyObject *_wrap_FloatVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4332 PyObject *resultobj = 0;
4333 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4339 PyObject * obj0 = 0 ;
4340 PyObject * obj1 = 0 ;
4342 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVector_resize",&obj0,&obj1)) SWIG_fail;
4343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
4344 if (!SWIG_IsOK(res1)) {
4345 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVector_resize" "', argument " "1"" of type '" "std::vector< float > *""'");
4347 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4348 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4349 if (!SWIG_IsOK(ecode2)) {
4350 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "FloatVector_resize" "', argument " "2"" of type '" "size_t""'");
4352 arg2 =
static_cast< size_t >(val2);
4353 (arg1)->resize(arg2);
4354 resultobj = SWIG_Py_Void();
4361 SWIGINTERN PyObject *_wrap_FloatVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4362 PyObject *resultobj = 0;
4363 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4364 std::vector< float > *arg2 = 0 ;
4369 PyObject * obj0 = 0 ;
4370 PyObject * obj1 = 0 ;
4372 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVector_swap",&obj0,&obj1)) SWIG_fail;
4373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
4374 if (!SWIG_IsOK(res1)) {
4375 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVector_swap" "', argument " "1"" of type '" "std::vector< float > *""'");
4377 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_float_t, 0 );
4379 if (!SWIG_IsOK(res2)) {
4380 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "FloatVector_swap" "', argument " "2"" of type '" "std::vector< float > &""'");
4383 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "FloatVector_swap" "', argument " "2"" of type '" "std::vector< float > &""'");
4385 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
4386 (arg1)->swap(*arg2);
4387 resultobj = SWIG_Py_Void();
4394 SWIGINTERN PyObject *_wrap_delete_FloatVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4395 PyObject *resultobj = 0;
4396 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4399 PyObject * obj0 = 0 ;
4401 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_FloatVector",&obj0)) SWIG_fail;
4402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, SWIG_POINTER_DISOWN | 0 );
4403 if (!SWIG_IsOK(res1)) {
4404 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_FloatVector" "', argument " "1"" of type '" "std::vector< float > *""'");
4406 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4408 resultobj = SWIG_Py_Void();
4415 SWIGINTERN PyObject *FloatVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4417 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
4418 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_float_t, SWIG_NewClientData(obj));
4419 return SWIG_Py_Void();
4422 SWIGINTERN PyObject *_wrap_new_DoubleVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4423 PyObject *resultobj = 0;
4424 std::vector< double > *result = 0 ;
4426 if (!PyArg_ParseTuple(args,(
char *)
":new_DoubleVector")) SWIG_fail;
4427 result = (std::vector< double > *)
new std::vector< double >();
4428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_t, SWIG_POINTER_NEW | 0 );
4435 SWIGINTERN PyObject *_wrap_DoubleVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4436 PyObject *resultobj = 0;
4437 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4443 PyObject * obj0 = 0 ;
4444 PyObject * obj1 = 0 ;
4446 if (!PyArg_ParseTuple(args,(
char *)
"OO:DoubleVector_push_back",&obj0,&obj1)) SWIG_fail;
4447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
4448 if (!SWIG_IsOK(res1)) {
4449 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "DoubleVector_push_back" "', argument " "1"" of type '" "std::vector< double > *""'");
4451 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4452 ecode2 = SWIG_AsVal_double(obj1, &val2);
4453 if (!SWIG_IsOK(ecode2)) {
4454 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "DoubleVector_push_back" "', argument " "2"" of type '" "double""'");
4456 arg2 =
static_cast< double >(val2);
4457 (arg1)->push_back(arg2);
4458 resultobj = SWIG_Py_Void();
4465 SWIGINTERN PyObject *_wrap_DoubleVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4466 PyObject *resultobj = 0;
4467 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4470 PyObject * obj0 = 0 ;
4472 if (!PyArg_ParseTuple(args,(
char *)
"O:DoubleVector_clear",&obj0)) SWIG_fail;
4473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
4474 if (!SWIG_IsOK(res1)) {
4475 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "DoubleVector_clear" "', argument " "1"" of type '" "std::vector< double > *""'");
4477 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4479 resultobj = SWIG_Py_Void();
4486 SWIGINTERN PyObject *_wrap_DoubleVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4487 PyObject *resultobj = 0;
4488 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4491 PyObject * obj0 = 0 ;
4492 double *result = 0 ;
4494 if (!PyArg_ParseTuple(args,(
char *)
"O:DoubleVector_data",&obj0)) SWIG_fail;
4495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
4496 if (!SWIG_IsOK(res1)) {
4497 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "DoubleVector_data" "', argument " "1"" of type '" "std::vector< double > *""'");
4499 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4500 result = (
double *)(arg1)->data();
4501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 );
4508 SWIGINTERN PyObject *_wrap_DoubleVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4509 PyObject *resultobj = 0;
4510 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4513 PyObject * obj0 = 0 ;
4516 if (!PyArg_ParseTuple(args,(
char *)
"O:DoubleVector_size",&obj0)) SWIG_fail;
4517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
4518 if (!SWIG_IsOK(res1)) {
4519 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "DoubleVector_size" "', argument " "1"" of type '" "std::vector< double > *""'");
4521 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4522 result = (size_t)(arg1)->size();
4523 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
4530 SWIGINTERN PyObject *_wrap_DoubleVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4531 PyObject *resultobj = 0;
4532 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4538 PyObject * obj0 = 0 ;
4539 PyObject * obj1 = 0 ;
4542 if (!PyArg_ParseTuple(args,(
char *)
"OO:DoubleVector_at",&obj0,&obj1)) SWIG_fail;
4543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
4544 if (!SWIG_IsOK(res1)) {
4545 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "DoubleVector_at" "', argument " "1"" of type '" "std::vector< double > const *""'");
4547 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4548 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4549 if (!SWIG_IsOK(ecode2)) {
4550 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "DoubleVector_at" "', argument " "2"" of type '" "size_t""'");
4552 arg2 =
static_cast< size_t >(val2);
4553 result = (double)((std::vector< double >
const *)arg1)->at(arg2);
4554 resultobj = SWIG_From_double(static_cast< double >(result));
4561 SWIGINTERN PyObject *_wrap_DoubleVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4562 PyObject *resultobj = 0;
4563 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4569 PyObject * obj0 = 0 ;
4570 PyObject * obj1 = 0 ;
4572 if (!PyArg_ParseTuple(args,(
char *)
"OO:DoubleVector_resize",&obj0,&obj1)) SWIG_fail;
4573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
4574 if (!SWIG_IsOK(res1)) {
4575 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "DoubleVector_resize" "', argument " "1"" of type '" "std::vector< double > *""'");
4577 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4578 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4579 if (!SWIG_IsOK(ecode2)) {
4580 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "DoubleVector_resize" "', argument " "2"" of type '" "size_t""'");
4582 arg2 =
static_cast< size_t >(val2);
4583 (arg1)->resize(arg2);
4584 resultobj = SWIG_Py_Void();
4591 SWIGINTERN PyObject *_wrap_DoubleVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4592 PyObject *resultobj = 0;
4593 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4594 std::vector< double > *arg2 = 0 ;
4599 PyObject * obj0 = 0 ;
4600 PyObject * obj1 = 0 ;
4602 if (!PyArg_ParseTuple(args,(
char *)
"OO:DoubleVector_swap",&obj0,&obj1)) SWIG_fail;
4603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
4604 if (!SWIG_IsOK(res1)) {
4605 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "DoubleVector_swap" "', argument " "1"" of type '" "std::vector< double > *""'");
4607 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4608 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_double_t, 0 );
4609 if (!SWIG_IsOK(res2)) {
4610 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "DoubleVector_swap" "', argument " "2"" of type '" "std::vector< double > &""'");
4613 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "DoubleVector_swap" "', argument " "2"" of type '" "std::vector< double > &""'");
4615 arg2 =
reinterpret_cast< std::vector< double > *
>(argp2);
4616 (arg1)->swap(*arg2);
4617 resultobj = SWIG_Py_Void();
4624 SWIGINTERN PyObject *_wrap_delete_DoubleVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4625 PyObject *resultobj = 0;
4626 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4629 PyObject * obj0 = 0 ;
4631 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_DoubleVector",&obj0)) SWIG_fail;
4632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, SWIG_POINTER_DISOWN | 0 );
4633 if (!SWIG_IsOK(res1)) {
4634 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_DoubleVector" "', argument " "1"" of type '" "std::vector< double > *""'");
4636 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4638 resultobj = SWIG_Py_Void();
4645 SWIGINTERN PyObject *DoubleVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4647 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
4648 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_double_t, SWIG_NewClientData(obj));
4649 return SWIG_Py_Void();
4652 SWIGINTERN PyObject *_wrap_new_ByteVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4653 PyObject *resultobj = 0;
4654 std::vector< uint8_t > *result = 0 ;
4656 if (!PyArg_ParseTuple(args,(
char *)
":new_ByteVector")) SWIG_fail;
4657 result = (std::vector< uint8_t > *)
new std::vector< uint8_t >();
4658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, SWIG_POINTER_NEW | 0 );
4665 SWIGINTERN PyObject *_wrap_ByteVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4666 PyObject *resultobj = 0;
4667 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4668 unsigned char arg2 ;
4671 unsigned char val2 ;
4673 PyObject * obj0 = 0 ;
4674 PyObject * obj1 = 0 ;
4676 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVector_push_back",&obj0,&obj1)) SWIG_fail;
4677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
4678 if (!SWIG_IsOK(res1)) {
4679 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVector_push_back" "', argument " "1"" of type '" "std::vector< uint8_t > *""'");
4681 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4682 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4683 if (!SWIG_IsOK(ecode2)) {
4684 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ByteVector_push_back" "', argument " "2"" of type '" "unsigned char""'");
4686 arg2 =
static_cast< unsigned char >(val2);
4687 (arg1)->push_back(arg2);
4688 resultobj = SWIG_Py_Void();
4695 SWIGINTERN PyObject *_wrap_ByteVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4696 PyObject *resultobj = 0;
4697 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4700 PyObject * obj0 = 0 ;
4702 if (!PyArg_ParseTuple(args,(
char *)
"O:ByteVector_clear",&obj0)) SWIG_fail;
4703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
4704 if (!SWIG_IsOK(res1)) {
4705 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVector_clear" "', argument " "1"" of type '" "std::vector< uint8_t > *""'");
4707 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4709 resultobj = SWIG_Py_Void();
4716 SWIGINTERN PyObject *_wrap_ByteVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4717 PyObject *resultobj = 0;
4718 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4721 PyObject * obj0 = 0 ;
4722 unsigned char *result = 0 ;
4724 if (!PyArg_ParseTuple(args,(
char *)
"O:ByteVector_data",&obj0)) SWIG_fail;
4725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
4726 if (!SWIG_IsOK(res1)) {
4727 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVector_data" "', argument " "1"" of type '" "std::vector< uint8_t > *""'");
4729 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4730 result = (
unsigned char *)(arg1)->data();
4731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
4738 SWIGINTERN PyObject *_wrap_ByteVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4739 PyObject *resultobj = 0;
4740 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4743 PyObject * obj0 = 0 ;
4746 if (!PyArg_ParseTuple(args,(
char *)
"O:ByteVector_size",&obj0)) SWIG_fail;
4747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
4748 if (!SWIG_IsOK(res1)) {
4749 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVector_size" "', argument " "1"" of type '" "std::vector< uint8_t > *""'");
4751 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4752 result = (size_t)(arg1)->size();
4753 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
4760 SWIGINTERN PyObject *_wrap_ByteVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4761 PyObject *resultobj = 0;
4762 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4768 PyObject * obj0 = 0 ;
4769 PyObject * obj1 = 0 ;
4770 unsigned char result;
4772 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVector_at",&obj0,&obj1)) SWIG_fail;
4773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
4774 if (!SWIG_IsOK(res1)) {
4775 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVector_at" "', argument " "1"" of type '" "std::vector< uint8_t > const *""'");
4777 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4778 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4779 if (!SWIG_IsOK(ecode2)) {
4780 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ByteVector_at" "', argument " "2"" of type '" "size_t""'");
4782 arg2 =
static_cast< size_t >(val2);
4783 result = (
unsigned char)((std::vector< uint8_t >
const *)arg1)->at(arg2);
4784 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4791 SWIGINTERN PyObject *_wrap_ByteVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4792 PyObject *resultobj = 0;
4793 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4799 PyObject * obj0 = 0 ;
4800 PyObject * obj1 = 0 ;
4802 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVector_resize",&obj0,&obj1)) SWIG_fail;
4803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
4804 if (!SWIG_IsOK(res1)) {
4805 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVector_resize" "', argument " "1"" of type '" "std::vector< uint8_t > *""'");
4807 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4808 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4809 if (!SWIG_IsOK(ecode2)) {
4810 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ByteVector_resize" "', argument " "2"" of type '" "size_t""'");
4812 arg2 =
static_cast< size_t >(val2);
4813 (arg1)->resize(arg2);
4814 resultobj = SWIG_Py_Void();
4821 SWIGINTERN PyObject *_wrap_ByteVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4822 PyObject *resultobj = 0;
4823 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4824 std::vector< unsigned char > *arg2 = 0 ;
4829 PyObject * obj0 = 0 ;
4830 PyObject * obj1 = 0 ;
4832 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVector_swap",&obj0,&obj1)) SWIG_fail;
4833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
4834 if (!SWIG_IsOK(res1)) {
4835 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVector_swap" "', argument " "1"" of type '" "std::vector< uint8_t > *""'");
4837 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4838 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 );
4839 if (!SWIG_IsOK(res2)) {
4840 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ByteVector_swap" "', argument " "2"" of type '" "std::vector< unsigned char > &""'");
4843 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "ByteVector_swap" "', argument " "2"" of type '" "std::vector< unsigned char > &""'");
4845 arg2 =
reinterpret_cast< std::vector< unsigned char > *
>(argp2);
4846 (arg1)->swap(*arg2);
4847 resultobj = SWIG_Py_Void();
4854 SWIGINTERN PyObject *_wrap_delete_ByteVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4855 PyObject *resultobj = 0;
4856 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4859 PyObject * obj0 = 0 ;
4861 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ByteVector",&obj0)) SWIG_fail;
4862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, SWIG_POINTER_DISOWN | 0 );
4863 if (!SWIG_IsOK(res1)) {
4864 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ByteVector" "', argument " "1"" of type '" "std::vector< uint8_t > *""'");
4866 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4868 resultobj = SWIG_Py_Void();
4875 SWIGINTERN PyObject *ByteVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4877 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
4878 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_unsigned_char_t, SWIG_NewClientData(obj));
4879 return SWIG_Py_Void();
4882 SWIGINTERN PyObject *_wrap_new_CharVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4883 PyObject *resultobj = 0;
4884 std::vector< char > *result = 0 ;
4886 if (!PyArg_ParseTuple(args,(
char *)
":new_CharVector")) SWIG_fail;
4887 result = (std::vector< char > *)
new std::vector< char >();
4888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_char_t, SWIG_POINTER_NEW | 0 );
4895 SWIGINTERN PyObject *_wrap_CharVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4896 PyObject *resultobj = 0;
4897 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
4903 PyObject * obj0 = 0 ;
4904 PyObject * obj1 = 0 ;
4906 if (!PyArg_ParseTuple(args,(
char *)
"OO:CharVector_push_back",&obj0,&obj1)) SWIG_fail;
4907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
4908 if (!SWIG_IsOK(res1)) {
4909 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "CharVector_push_back" "', argument " "1"" of type '" "std::vector< char > *""'");
4911 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
4912 ecode2 = SWIG_AsVal_char(obj1, &val2);
4913 if (!SWIG_IsOK(ecode2)) {
4914 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "CharVector_push_back" "', argument " "2"" of type '" "char""'");
4916 arg2 =
static_cast< char >(val2);
4917 (arg1)->push_back(arg2);
4918 resultobj = SWIG_Py_Void();
4925 SWIGINTERN PyObject *_wrap_CharVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4926 PyObject *resultobj = 0;
4927 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
4930 PyObject * obj0 = 0 ;
4932 if (!PyArg_ParseTuple(args,(
char *)
"O:CharVector_clear",&obj0)) SWIG_fail;
4933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
4934 if (!SWIG_IsOK(res1)) {
4935 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "CharVector_clear" "', argument " "1"" of type '" "std::vector< char > *""'");
4937 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
4939 resultobj = SWIG_Py_Void();
4946 SWIGINTERN PyObject *_wrap_CharVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4947 PyObject *resultobj = 0;
4948 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
4951 PyObject * obj0 = 0 ;
4954 if (!PyArg_ParseTuple(args,(
char *)
"O:CharVector_data",&obj0)) SWIG_fail;
4955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
4956 if (!SWIG_IsOK(res1)) {
4957 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "CharVector_data" "', argument " "1"" of type '" "std::vector< char > *""'");
4959 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
4960 result = (
char *)(arg1)->data();
4961 resultobj = SWIG_FromCharPtr((
const char *)result);
4968 SWIGINTERN PyObject *_wrap_CharVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4969 PyObject *resultobj = 0;
4970 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
4973 PyObject * obj0 = 0 ;
4976 if (!PyArg_ParseTuple(args,(
char *)
"O:CharVector_size",&obj0)) SWIG_fail;
4977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
4978 if (!SWIG_IsOK(res1)) {
4979 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "CharVector_size" "', argument " "1"" of type '" "std::vector< char > *""'");
4981 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
4982 result = (size_t)(arg1)->size();
4983 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
4990 SWIGINTERN PyObject *_wrap_CharVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4991 PyObject *resultobj = 0;
4992 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
4998 PyObject * obj0 = 0 ;
4999 PyObject * obj1 = 0 ;
5002 if (!PyArg_ParseTuple(args,(
char *)
"OO:CharVector_at",&obj0,&obj1)) SWIG_fail;
5003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
5004 if (!SWIG_IsOK(res1)) {
5005 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "CharVector_at" "', argument " "1"" of type '" "std::vector< char > const *""'");
5007 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
5008 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5009 if (!SWIG_IsOK(ecode2)) {
5010 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "CharVector_at" "', argument " "2"" of type '" "size_t""'");
5012 arg2 =
static_cast< size_t >(val2);
5013 result = (char)((std::vector< char >
const *)arg1)->at(arg2);
5014 resultobj = SWIG_From_char(static_cast< char >(result));
5021 SWIGINTERN PyObject *_wrap_CharVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5022 PyObject *resultobj = 0;
5023 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
5029 PyObject * obj0 = 0 ;
5030 PyObject * obj1 = 0 ;
5032 if (!PyArg_ParseTuple(args,(
char *)
"OO:CharVector_resize",&obj0,&obj1)) SWIG_fail;
5033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
5034 if (!SWIG_IsOK(res1)) {
5035 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "CharVector_resize" "', argument " "1"" of type '" "std::vector< char > *""'");
5037 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
5038 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5039 if (!SWIG_IsOK(ecode2)) {
5040 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "CharVector_resize" "', argument " "2"" of type '" "size_t""'");
5042 arg2 =
static_cast< size_t >(val2);
5043 (arg1)->resize(arg2);
5044 resultobj = SWIG_Py_Void();
5051 SWIGINTERN PyObject *_wrap_CharVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5052 PyObject *resultobj = 0;
5053 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
5054 std::vector< char > *arg2 = 0 ;
5059 PyObject * obj0 = 0 ;
5060 PyObject * obj1 = 0 ;
5062 if (!PyArg_ParseTuple(args,(
char *)
"OO:CharVector_swap",&obj0,&obj1)) SWIG_fail;
5063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
5064 if (!SWIG_IsOK(res1)) {
5065 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "CharVector_swap" "', argument " "1"" of type '" "std::vector< char > *""'");
5067 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
5068 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_char_t, 0 );
5069 if (!SWIG_IsOK(res2)) {
5070 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "CharVector_swap" "', argument " "2"" of type '" "std::vector< char > &""'");
5073 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "CharVector_swap" "', argument " "2"" of type '" "std::vector< char > &""'");
5075 arg2 =
reinterpret_cast< std::vector< char > *
>(argp2);
5076 (arg1)->swap(*arg2);
5077 resultobj = SWIG_Py_Void();
5084 SWIGINTERN PyObject *_wrap_delete_CharVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5085 PyObject *resultobj = 0;
5086 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
5089 PyObject * obj0 = 0 ;
5091 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_CharVector",&obj0)) SWIG_fail;
5092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, SWIG_POINTER_DISOWN | 0 );
5093 if (!SWIG_IsOK(res1)) {
5094 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_CharVector" "', argument " "1"" of type '" "std::vector< char > *""'");
5096 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
5098 resultobj = SWIG_Py_Void();
5105 SWIGINTERN PyObject *CharVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5107 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
5108 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_char_t, SWIG_NewClientData(obj));
5109 return SWIG_Py_Void();
5112 SWIGINTERN PyObject *_wrap_new_Uint64Vector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5113 PyObject *resultobj = 0;
5114 std::vector< unsigned long > *result = 0 ;
5116 if (!PyArg_ParseTuple(args,(
char *)
":new_Uint64Vector")) SWIG_fail;
5117 result = (std::vector< unsigned long > *)
new std::vector< unsigned long >();
5118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_long_t, SWIG_POINTER_NEW | 0 );
5125 SWIGINTERN PyObject *_wrap_Uint64Vector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5126 PyObject *resultobj = 0;
5127 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5128 unsigned long arg2 ;
5131 unsigned long val2 ;
5133 PyObject * obj0 = 0 ;
5134 PyObject * obj1 = 0 ;
5136 if (!PyArg_ParseTuple(args,(
char *)
"OO:Uint64Vector_push_back",&obj0,&obj1)) SWIG_fail;
5137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
5138 if (!SWIG_IsOK(res1)) {
5139 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Uint64Vector_push_back" "', argument " "1"" of type '" "std::vector< unsigned long > *""'");
5141 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5142 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
5143 if (!SWIG_IsOK(ecode2)) {
5144 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Uint64Vector_push_back" "', argument " "2"" of type '" "unsigned long""'");
5146 arg2 =
static_cast< unsigned long >(val2);
5147 (arg1)->push_back(arg2);
5148 resultobj = SWIG_Py_Void();
5155 SWIGINTERN PyObject *_wrap_Uint64Vector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5156 PyObject *resultobj = 0;
5157 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5160 PyObject * obj0 = 0 ;
5162 if (!PyArg_ParseTuple(args,(
char *)
"O:Uint64Vector_clear",&obj0)) SWIG_fail;
5163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
5164 if (!SWIG_IsOK(res1)) {
5165 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Uint64Vector_clear" "', argument " "1"" of type '" "std::vector< unsigned long > *""'");
5167 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5169 resultobj = SWIG_Py_Void();
5176 SWIGINTERN PyObject *_wrap_Uint64Vector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5177 PyObject *resultobj = 0;
5178 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5181 PyObject * obj0 = 0 ;
5182 unsigned long *result = 0 ;
5184 if (!PyArg_ParseTuple(args,(
char *)
"O:Uint64Vector_data",&obj0)) SWIG_fail;
5185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
5186 if (!SWIG_IsOK(res1)) {
5187 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Uint64Vector_data" "', argument " "1"" of type '" "std::vector< unsigned long > *""'");
5189 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5190 result = (
unsigned long *)(arg1)->data();
5191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long, 0 | 0 );
5198 SWIGINTERN PyObject *_wrap_Uint64Vector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5199 PyObject *resultobj = 0;
5200 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5203 PyObject * obj0 = 0 ;
5206 if (!PyArg_ParseTuple(args,(
char *)
"O:Uint64Vector_size",&obj0)) SWIG_fail;
5207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
5208 if (!SWIG_IsOK(res1)) {
5209 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Uint64Vector_size" "', argument " "1"" of type '" "std::vector< unsigned long > *""'");
5211 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5212 result = (size_t)(arg1)->size();
5213 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
5220 SWIGINTERN PyObject *_wrap_Uint64Vector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5221 PyObject *resultobj = 0;
5222 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5228 PyObject * obj0 = 0 ;
5229 PyObject * obj1 = 0 ;
5230 unsigned long result;
5232 if (!PyArg_ParseTuple(args,(
char *)
"OO:Uint64Vector_at",&obj0,&obj1)) SWIG_fail;
5233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
5234 if (!SWIG_IsOK(res1)) {
5235 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Uint64Vector_at" "', argument " "1"" of type '" "std::vector< unsigned long > const *""'");
5237 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5238 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5239 if (!SWIG_IsOK(ecode2)) {
5240 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Uint64Vector_at" "', argument " "2"" of type '" "size_t""'");
5242 arg2 =
static_cast< size_t >(val2);
5243 result = (
unsigned long)((std::vector< unsigned long >
const *)arg1)->at(arg2);
5244 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
5251 SWIGINTERN PyObject *_wrap_Uint64Vector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5252 PyObject *resultobj = 0;
5253 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5259 PyObject * obj0 = 0 ;
5260 PyObject * obj1 = 0 ;
5262 if (!PyArg_ParseTuple(args,(
char *)
"OO:Uint64Vector_resize",&obj0,&obj1)) SWIG_fail;
5263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
5264 if (!SWIG_IsOK(res1)) {
5265 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Uint64Vector_resize" "', argument " "1"" of type '" "std::vector< unsigned long > *""'");
5267 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5268 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5269 if (!SWIG_IsOK(ecode2)) {
5270 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Uint64Vector_resize" "', argument " "2"" of type '" "size_t""'");
5272 arg2 =
static_cast< size_t >(val2);
5273 (arg1)->resize(arg2);
5274 resultobj = SWIG_Py_Void();
5281 SWIGINTERN PyObject *_wrap_Uint64Vector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5282 PyObject *resultobj = 0;
5283 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5284 std::vector< unsigned long > *arg2 = 0 ;
5289 PyObject * obj0 = 0 ;
5290 PyObject * obj1 = 0 ;
5292 if (!PyArg_ParseTuple(args,(
char *)
"OO:Uint64Vector_swap",&obj0,&obj1)) SWIG_fail;
5293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
5294 if (!SWIG_IsOK(res1)) {
5295 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Uint64Vector_swap" "', argument " "1"" of type '" "std::vector< unsigned long > *""'");
5297 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 );
5299 if (!SWIG_IsOK(res2)) {
5300 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Uint64Vector_swap" "', argument " "2"" of type '" "std::vector< unsigned long > &""'");
5303 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Uint64Vector_swap" "', argument " "2"" of type '" "std::vector< unsigned long > &""'");
5305 arg2 =
reinterpret_cast< std::vector< unsigned long > *
>(argp2);
5306 (arg1)->swap(*arg2);
5307 resultobj = SWIG_Py_Void();
5314 SWIGINTERN PyObject *_wrap_delete_Uint64Vector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5315 PyObject *resultobj = 0;
5316 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5319 PyObject * obj0 = 0 ;
5321 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Uint64Vector",&obj0)) SWIG_fail;
5322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, SWIG_POINTER_DISOWN | 0 );
5323 if (!SWIG_IsOK(res1)) {
5324 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Uint64Vector" "', argument " "1"" of type '" "std::vector< unsigned long > *""'");
5326 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5328 resultobj = SWIG_Py_Void();
5335 SWIGINTERN PyObject *Uint64Vector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5337 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
5338 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_unsigned_long_t, SWIG_NewClientData(obj));
5339 return SWIG_Py_Void();
5342 SWIGINTERN PyObject *_wrap_new_LongVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5343 PyObject *resultobj = 0;
5344 std::vector< long > *result = 0 ;
5346 if (!PyArg_ParseTuple(args,(
char *)
":new_LongVector")) SWIG_fail;
5347 result = (std::vector< long > *)
new std::vector< long >();
5348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_long_t, SWIG_POINTER_NEW | 0 );
5355 SWIGINTERN PyObject *_wrap_LongVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5356 PyObject *resultobj = 0;
5357 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5363 PyObject * obj0 = 0 ;
5364 PyObject * obj1 = 0 ;
5366 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVector_push_back",&obj0,&obj1)) SWIG_fail;
5367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
5368 if (!SWIG_IsOK(res1)) {
5369 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVector_push_back" "', argument " "1"" of type '" "std::vector< long > *""'");
5371 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5372 ecode2 = SWIG_AsVal_long(obj1, &val2);
5373 if (!SWIG_IsOK(ecode2)) {
5374 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LongVector_push_back" "', argument " "2"" of type '" "long""'");
5376 arg2 =
static_cast< long >(val2);
5377 (arg1)->push_back(arg2);
5378 resultobj = SWIG_Py_Void();
5385 SWIGINTERN PyObject *_wrap_LongVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5386 PyObject *resultobj = 0;
5387 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5390 PyObject * obj0 = 0 ;
5392 if (!PyArg_ParseTuple(args,(
char *)
"O:LongVector_clear",&obj0)) SWIG_fail;
5393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
5394 if (!SWIG_IsOK(res1)) {
5395 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVector_clear" "', argument " "1"" of type '" "std::vector< long > *""'");
5397 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5399 resultobj = SWIG_Py_Void();
5406 SWIGINTERN PyObject *_wrap_LongVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5407 PyObject *resultobj = 0;
5408 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5411 PyObject * obj0 = 0 ;
5414 if (!PyArg_ParseTuple(args,(
char *)
"O:LongVector_data",&obj0)) SWIG_fail;
5415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
5416 if (!SWIG_IsOK(res1)) {
5417 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVector_data" "', argument " "1"" of type '" "std::vector< long > *""'");
5419 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5420 result = (
long *)(arg1)->data();
5421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
5428 SWIGINTERN PyObject *_wrap_LongVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5429 PyObject *resultobj = 0;
5430 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5433 PyObject * obj0 = 0 ;
5436 if (!PyArg_ParseTuple(args,(
char *)
"O:LongVector_size",&obj0)) SWIG_fail;
5437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
5438 if (!SWIG_IsOK(res1)) {
5439 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVector_size" "', argument " "1"" of type '" "std::vector< long > *""'");
5441 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5442 result = (size_t)(arg1)->size();
5443 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
5450 SWIGINTERN PyObject *_wrap_LongVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5451 PyObject *resultobj = 0;
5452 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5458 PyObject * obj0 = 0 ;
5459 PyObject * obj1 = 0 ;
5462 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVector_at",&obj0,&obj1)) SWIG_fail;
5463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
5464 if (!SWIG_IsOK(res1)) {
5465 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVector_at" "', argument " "1"" of type '" "std::vector< long > const *""'");
5467 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5468 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5469 if (!SWIG_IsOK(ecode2)) {
5470 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LongVector_at" "', argument " "2"" of type '" "size_t""'");
5472 arg2 =
static_cast< size_t >(val2);
5473 result = (long)((std::vector< long >
const *)arg1)->at(arg2);
5474 resultobj = SWIG_From_long(static_cast< long >(result));
5481 SWIGINTERN PyObject *_wrap_LongVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5482 PyObject *resultobj = 0;
5483 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5489 PyObject * obj0 = 0 ;
5490 PyObject * obj1 = 0 ;
5492 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVector_resize",&obj0,&obj1)) SWIG_fail;
5493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
5494 if (!SWIG_IsOK(res1)) {
5495 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVector_resize" "', argument " "1"" of type '" "std::vector< long > *""'");
5497 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5498 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5499 if (!SWIG_IsOK(ecode2)) {
5500 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LongVector_resize" "', argument " "2"" of type '" "size_t""'");
5502 arg2 =
static_cast< size_t >(val2);
5503 (arg1)->resize(arg2);
5504 resultobj = SWIG_Py_Void();
5511 SWIGINTERN PyObject *_wrap_LongVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5512 PyObject *resultobj = 0;
5513 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5514 std::vector< long > *arg2 = 0 ;
5519 PyObject * obj0 = 0 ;
5520 PyObject * obj1 = 0 ;
5522 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVector_swap",&obj0,&obj1)) SWIG_fail;
5523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
5524 if (!SWIG_IsOK(res1)) {
5525 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVector_swap" "', argument " "1"" of type '" "std::vector< long > *""'");
5527 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5528 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_long_t, 0 );
5529 if (!SWIG_IsOK(res2)) {
5530 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "LongVector_swap" "', argument " "2"" of type '" "std::vector< long > &""'");
5533 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "LongVector_swap" "', argument " "2"" of type '" "std::vector< long > &""'");
5535 arg2 =
reinterpret_cast< std::vector< long > *
>(argp2);
5536 (arg1)->swap(*arg2);
5537 resultobj = SWIG_Py_Void();
5544 SWIGINTERN PyObject *_wrap_delete_LongVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5545 PyObject *resultobj = 0;
5546 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5549 PyObject * obj0 = 0 ;
5551 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_LongVector",&obj0)) SWIG_fail;
5552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, SWIG_POINTER_DISOWN | 0 );
5553 if (!SWIG_IsOK(res1)) {
5554 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_LongVector" "', argument " "1"" of type '" "std::vector< long > *""'");
5556 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5558 resultobj = SWIG_Py_Void();
5565 SWIGINTERN PyObject *LongVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5567 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
5568 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_long_t, SWIG_NewClientData(obj));
5569 return SWIG_Py_Void();
5572 SWIGINTERN PyObject *_wrap_new_IntVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5573 PyObject *resultobj = 0;
5574 std::vector< int > *result = 0 ;
5576 if (!PyArg_ParseTuple(args,(
char *)
":new_IntVector")) SWIG_fail;
5577 result = (std::vector< int > *)
new std::vector< int >();
5578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_t, SWIG_POINTER_NEW | 0 );
5585 SWIGINTERN PyObject *_wrap_IntVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5586 PyObject *resultobj = 0;
5587 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5593 PyObject * obj0 = 0 ;
5594 PyObject * obj1 = 0 ;
5596 if (!PyArg_ParseTuple(args,(
char *)
"OO:IntVector_push_back",&obj0,&obj1)) SWIG_fail;
5597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
5598 if (!SWIG_IsOK(res1)) {
5599 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntVector_push_back" "', argument " "1"" of type '" "std::vector< int > *""'");
5601 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5602 ecode2 = SWIG_AsVal_int(obj1, &val2);
5603 if (!SWIG_IsOK(ecode2)) {
5604 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IntVector_push_back" "', argument " "2"" of type '" "int""'");
5606 arg2 =
static_cast< int >(val2);
5607 (arg1)->push_back(arg2);
5608 resultobj = SWIG_Py_Void();
5615 SWIGINTERN PyObject *_wrap_IntVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5616 PyObject *resultobj = 0;
5617 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5620 PyObject * obj0 = 0 ;
5622 if (!PyArg_ParseTuple(args,(
char *)
"O:IntVector_clear",&obj0)) SWIG_fail;
5623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
5624 if (!SWIG_IsOK(res1)) {
5625 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntVector_clear" "', argument " "1"" of type '" "std::vector< int > *""'");
5627 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5629 resultobj = SWIG_Py_Void();
5636 SWIGINTERN PyObject *_wrap_IntVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5637 PyObject *resultobj = 0;
5638 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5641 PyObject * obj0 = 0 ;
5644 if (!PyArg_ParseTuple(args,(
char *)
"O:IntVector_data",&obj0)) SWIG_fail;
5645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
5646 if (!SWIG_IsOK(res1)) {
5647 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntVector_data" "', argument " "1"" of type '" "std::vector< int > *""'");
5649 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5650 result = (
int *)(arg1)->data();
5651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
5658 SWIGINTERN PyObject *_wrap_IntVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5659 PyObject *resultobj = 0;
5660 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5663 PyObject * obj0 = 0 ;
5666 if (!PyArg_ParseTuple(args,(
char *)
"O:IntVector_size",&obj0)) SWIG_fail;
5667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
5668 if (!SWIG_IsOK(res1)) {
5669 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntVector_size" "', argument " "1"" of type '" "std::vector< int > *""'");
5671 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5672 result = (size_t)(arg1)->size();
5673 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
5680 SWIGINTERN PyObject *_wrap_IntVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5681 PyObject *resultobj = 0;
5682 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5688 PyObject * obj0 = 0 ;
5689 PyObject * obj1 = 0 ;
5692 if (!PyArg_ParseTuple(args,(
char *)
"OO:IntVector_at",&obj0,&obj1)) SWIG_fail;
5693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
5694 if (!SWIG_IsOK(res1)) {
5695 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntVector_at" "', argument " "1"" of type '" "std::vector< int > const *""'");
5697 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5698 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5699 if (!SWIG_IsOK(ecode2)) {
5700 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IntVector_at" "', argument " "2"" of type '" "size_t""'");
5702 arg2 =
static_cast< size_t >(val2);
5703 result = (int)((std::vector< int >
const *)arg1)->at(arg2);
5704 resultobj = SWIG_From_int(static_cast< int >(result));
5711 SWIGINTERN PyObject *_wrap_IntVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5712 PyObject *resultobj = 0;
5713 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5719 PyObject * obj0 = 0 ;
5720 PyObject * obj1 = 0 ;
5722 if (!PyArg_ParseTuple(args,(
char *)
"OO:IntVector_resize",&obj0,&obj1)) SWIG_fail;
5723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
5724 if (!SWIG_IsOK(res1)) {
5725 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntVector_resize" "', argument " "1"" of type '" "std::vector< int > *""'");
5727 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5728 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5729 if (!SWIG_IsOK(ecode2)) {
5730 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IntVector_resize" "', argument " "2"" of type '" "size_t""'");
5732 arg2 =
static_cast< size_t >(val2);
5733 (arg1)->resize(arg2);
5734 resultobj = SWIG_Py_Void();
5741 SWIGINTERN PyObject *_wrap_IntVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5742 PyObject *resultobj = 0;
5743 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5744 std::vector< int > *arg2 = 0 ;
5749 PyObject * obj0 = 0 ;
5750 PyObject * obj1 = 0 ;
5752 if (!PyArg_ParseTuple(args,(
char *)
"OO:IntVector_swap",&obj0,&obj1)) SWIG_fail;
5753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
5754 if (!SWIG_IsOK(res1)) {
5755 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntVector_swap" "', argument " "1"" of type '" "std::vector< int > *""'");
5757 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5758 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_int_t, 0 );
5759 if (!SWIG_IsOK(res2)) {
5760 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'");
5763 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'");
5765 arg2 =
reinterpret_cast< std::vector< int > *
>(argp2);
5766 (arg1)->swap(*arg2);
5767 resultobj = SWIG_Py_Void();
5774 SWIGINTERN PyObject *_wrap_delete_IntVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5775 PyObject *resultobj = 0;
5776 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5779 PyObject * obj0 = 0 ;
5781 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IntVector",&obj0)) SWIG_fail;
5782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, SWIG_POINTER_DISOWN | 0 );
5783 if (!SWIG_IsOK(res1)) {
5784 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IntVector" "', argument " "1"" of type '" "std::vector< int > *""'");
5786 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5788 resultobj = SWIG_Py_Void();
5795 SWIGINTERN PyObject *IntVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5797 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
5798 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_int_t, SWIG_NewClientData(obj));
5799 return SWIG_Py_Void();
5802 SWIGINTERN PyObject *_wrap_new_VectorTransformVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5803 PyObject *resultobj = 0;
5804 std::vector< faiss::VectorTransform * > *result = 0 ;
5806 if (!PyArg_ParseTuple(args,(
char *)
":new_VectorTransformVector")) SWIG_fail;
5807 result = (std::vector< faiss::VectorTransform * > *)
new std::vector< faiss::VectorTransform * >();
5808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, SWIG_POINTER_NEW | 0 );
5815 SWIGINTERN PyObject *_wrap_VectorTransformVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5816 PyObject *resultobj = 0;
5817 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
5823 PyObject * obj0 = 0 ;
5824 PyObject * obj1 = 0 ;
5826 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorTransformVector_push_back",&obj0,&obj1)) SWIG_fail;
5827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
5828 if (!SWIG_IsOK(res1)) {
5829 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransformVector_push_back" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > *""'");
5831 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
5832 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
5833 if (!SWIG_IsOK(res2)) {
5834 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "VectorTransformVector_push_back" "', argument " "2"" of type '" "faiss::VectorTransform *""'");
5837 (arg1)->push_back(arg2);
5838 resultobj = SWIG_Py_Void();
5845 SWIGINTERN PyObject *_wrap_VectorTransformVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5846 PyObject *resultobj = 0;
5847 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
5850 PyObject * obj0 = 0 ;
5852 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorTransformVector_clear",&obj0)) SWIG_fail;
5853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
5854 if (!SWIG_IsOK(res1)) {
5855 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransformVector_clear" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > *""'");
5857 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
5859 resultobj = SWIG_Py_Void();
5866 SWIGINTERN PyObject *_wrap_VectorTransformVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5867 PyObject *resultobj = 0;
5868 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
5871 PyObject * obj0 = 0 ;
5874 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorTransformVector_data",&obj0)) SWIG_fail;
5875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
5876 if (!SWIG_IsOK(res1)) {
5877 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransformVector_data" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > *""'");
5879 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
5881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_faiss__VectorTransform, 0 | 0 );
5888 SWIGINTERN PyObject *_wrap_VectorTransformVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5889 PyObject *resultobj = 0;
5890 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
5893 PyObject * obj0 = 0 ;
5896 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorTransformVector_size",&obj0)) SWIG_fail;
5897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
5898 if (!SWIG_IsOK(res1)) {
5899 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransformVector_size" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > *""'");
5901 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
5902 result = (size_t)(arg1)->size();
5903 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
5910 SWIGINTERN PyObject *_wrap_VectorTransformVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5911 PyObject *resultobj = 0;
5912 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
5918 PyObject * obj0 = 0 ;
5919 PyObject * obj1 = 0 ;
5922 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorTransformVector_at",&obj0,&obj1)) SWIG_fail;
5923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
5924 if (!SWIG_IsOK(res1)) {
5925 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransformVector_at" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > const *""'");
5927 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
5928 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5929 if (!SWIG_IsOK(ecode2)) {
5930 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransformVector_at" "', argument " "2"" of type '" "size_t""'");
5932 arg2 =
static_cast< size_t >(val2);
5934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
5941 SWIGINTERN PyObject *_wrap_VectorTransformVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5942 PyObject *resultobj = 0;
5943 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
5949 PyObject * obj0 = 0 ;
5950 PyObject * obj1 = 0 ;
5952 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorTransformVector_resize",&obj0,&obj1)) SWIG_fail;
5953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
5954 if (!SWIG_IsOK(res1)) {
5955 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransformVector_resize" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > *""'");
5957 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
5958 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5959 if (!SWIG_IsOK(ecode2)) {
5960 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransformVector_resize" "', argument " "2"" of type '" "size_t""'");
5962 arg2 =
static_cast< size_t >(val2);
5963 (arg1)->resize(arg2);
5964 resultobj = SWIG_Py_Void();
5971 SWIGINTERN PyObject *_wrap_VectorTransformVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5972 PyObject *resultobj = 0;
5973 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
5974 std::vector< faiss::VectorTransform * > *arg2 = 0 ;
5979 PyObject * obj0 = 0 ;
5980 PyObject * obj1 = 0 ;
5982 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorTransformVector_swap",&obj0,&obj1)) SWIG_fail;
5983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
5984 if (!SWIG_IsOK(res1)) {
5985 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransformVector_swap" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > *""'");
5987 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
5988 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 );
5989 if (!SWIG_IsOK(res2)) {
5990 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "VectorTransformVector_swap" "', argument " "2"" of type '" "std::vector< faiss::VectorTransform * > &""'");
5993 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "VectorTransformVector_swap" "', argument " "2"" of type '" "std::vector< faiss::VectorTransform * > &""'");
5995 arg2 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp2);
5996 (arg1)->swap(*arg2);
5997 resultobj = SWIG_Py_Void();
6004 SWIGINTERN PyObject *_wrap_delete_VectorTransformVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6005 PyObject *resultobj = 0;
6006 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
6009 PyObject * obj0 = 0 ;
6011 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_VectorTransformVector",&obj0)) SWIG_fail;
6012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, SWIG_POINTER_DISOWN | 0 );
6013 if (!SWIG_IsOK(res1)) {
6014 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_VectorTransformVector" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > *""'");
6016 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
6018 resultobj = SWIG_Py_Void();
6025 SWIGINTERN PyObject *VectorTransformVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6027 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
6028 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, SWIG_NewClientData(obj));
6029 return SWIG_Py_Void();
6032 SWIGINTERN PyObject *_wrap_new_OperatingPointVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6033 PyObject *resultobj = 0;
6034 std::vector< faiss::OperatingPoint > *result = 0 ;
6036 if (!PyArg_ParseTuple(args,(
char *)
":new_OperatingPointVector")) SWIG_fail;
6037 result = (std::vector< faiss::OperatingPoint > *)
new std::vector< faiss::OperatingPoint >();
6038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, SWIG_POINTER_NEW | 0 );
6045 SWIGINTERN PyObject *_wrap_OperatingPointVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6046 PyObject *resultobj = 0;
6047 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6053 PyObject * obj0 = 0 ;
6054 PyObject * obj1 = 0 ;
6056 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPointVector_push_back",&obj0,&obj1)) SWIG_fail;
6057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
6058 if (!SWIG_IsOK(res1)) {
6059 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPointVector_push_back" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > *""'");
6061 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6063 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__OperatingPoint, 0 | 0);
6064 if (!SWIG_IsOK(res2)) {
6065 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPointVector_push_back" "', argument " "2"" of type '" "faiss::OperatingPoint""'");
6068 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPointVector_push_back" "', argument " "2"" of type '" "faiss::OperatingPoint""'");
6072 if (SWIG_IsNewObj(res2))
delete temp;
6075 (arg1)->push_back(arg2);
6076 resultobj = SWIG_Py_Void();
6083 SWIGINTERN PyObject *_wrap_OperatingPointVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6084 PyObject *resultobj = 0;
6085 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6088 PyObject * obj0 = 0 ;
6090 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPointVector_clear",&obj0)) SWIG_fail;
6091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
6092 if (!SWIG_IsOK(res1)) {
6093 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPointVector_clear" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > *""'");
6095 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6097 resultobj = SWIG_Py_Void();
6104 SWIGINTERN PyObject *_wrap_OperatingPointVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6105 PyObject *resultobj = 0;
6106 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6109 PyObject * obj0 = 0 ;
6112 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPointVector_data",&obj0)) SWIG_fail;
6113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
6114 if (!SWIG_IsOK(res1)) {
6115 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPointVector_data" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > *""'");
6117 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
6126 SWIGINTERN PyObject *_wrap_OperatingPointVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6127 PyObject *resultobj = 0;
6128 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6131 PyObject * obj0 = 0 ;
6134 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPointVector_size",&obj0)) SWIG_fail;
6135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
6136 if (!SWIG_IsOK(res1)) {
6137 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPointVector_size" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > *""'");
6139 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6140 result = (size_t)(arg1)->size();
6141 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
6148 SWIGINTERN PyObject *_wrap_OperatingPointVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6149 PyObject *resultobj = 0;
6150 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6156 PyObject * obj0 = 0 ;
6157 PyObject * obj1 = 0 ;
6160 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPointVector_at",&obj0,&obj1)) SWIG_fail;
6161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
6162 if (!SWIG_IsOK(res1)) {
6163 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPointVector_at" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > const *""'");
6165 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6166 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6167 if (!SWIG_IsOK(ecode2)) {
6168 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPointVector_at" "', argument " "2"" of type '" "size_t""'");
6170 arg2 =
static_cast< size_t >(val2);
6171 result = ((std::vector< faiss::OperatingPoint >
const *)arg1)->at(arg2);
6172 resultobj = SWIG_NewPointerObj((
new faiss::OperatingPoint(static_cast< const faiss::OperatingPoint& >(result))), SWIGTYPE_p_faiss__OperatingPoint, SWIG_POINTER_OWN | 0 );
6179 SWIGINTERN PyObject *_wrap_OperatingPointVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6180 PyObject *resultobj = 0;
6181 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6187 PyObject * obj0 = 0 ;
6188 PyObject * obj1 = 0 ;
6190 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPointVector_resize",&obj0,&obj1)) SWIG_fail;
6191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
6192 if (!SWIG_IsOK(res1)) {
6193 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPointVector_resize" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > *""'");
6195 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6196 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6197 if (!SWIG_IsOK(ecode2)) {
6198 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPointVector_resize" "', argument " "2"" of type '" "size_t""'");
6200 arg2 =
static_cast< size_t >(val2);
6201 (arg1)->resize(arg2);
6202 resultobj = SWIG_Py_Void();
6209 SWIGINTERN PyObject *_wrap_OperatingPointVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6210 PyObject *resultobj = 0;
6211 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6212 std::vector< faiss::OperatingPoint > *arg2 = 0 ;
6217 PyObject * obj0 = 0 ;
6218 PyObject * obj1 = 0 ;
6220 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPointVector_swap",&obj0,&obj1)) SWIG_fail;
6221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
6222 if (!SWIG_IsOK(res1)) {
6223 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPointVector_swap" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > *""'");
6225 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6226 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 );
6227 if (!SWIG_IsOK(res2)) {
6228 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPointVector_swap" "', argument " "2"" of type '" "std::vector< faiss::OperatingPoint > &""'");
6231 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPointVector_swap" "', argument " "2"" of type '" "std::vector< faiss::OperatingPoint > &""'");
6233 arg2 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp2);
6234 (arg1)->swap(*arg2);
6235 resultobj = SWIG_Py_Void();
6242 SWIGINTERN PyObject *_wrap_delete_OperatingPointVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6243 PyObject *resultobj = 0;
6244 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6247 PyObject * obj0 = 0 ;
6249 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_OperatingPointVector",&obj0)) SWIG_fail;
6250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, SWIG_POINTER_DISOWN | 0 );
6251 if (!SWIG_IsOK(res1)) {
6252 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_OperatingPointVector" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > *""'");
6254 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6256 resultobj = SWIG_Py_Void();
6263 SWIGINTERN PyObject *OperatingPointVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6265 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
6266 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, SWIG_NewClientData(obj));
6267 return SWIG_Py_Void();
6270 SWIGINTERN PyObject *_wrap_new_InvertedListsPtrVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6271 PyObject *resultobj = 0;
6272 std::vector< faiss::InvertedLists * > *result = 0 ;
6274 if (!PyArg_ParseTuple(args,(
char *)
":new_InvertedListsPtrVector")) SWIG_fail;
6275 result = (std::vector< faiss::InvertedLists * > *)
new std::vector< faiss::InvertedLists * >();
6276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, SWIG_POINTER_NEW | 0 );
6283 SWIGINTERN PyObject *_wrap_InvertedListsPtrVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6284 PyObject *resultobj = 0;
6285 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6291 PyObject * obj0 = 0 ;
6292 PyObject * obj1 = 0 ;
6294 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedListsPtrVector_push_back",&obj0,&obj1)) SWIG_fail;
6295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 | 0 );
6296 if (!SWIG_IsOK(res1)) {
6297 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedListsPtrVector_push_back" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > *""'");
6299 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6300 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
6301 if (!SWIG_IsOK(res2)) {
6302 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "InvertedListsPtrVector_push_back" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
6305 (arg1)->push_back(arg2);
6306 resultobj = SWIG_Py_Void();
6313 SWIGINTERN PyObject *_wrap_InvertedListsPtrVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6314 PyObject *resultobj = 0;
6315 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6318 PyObject * obj0 = 0 ;
6320 if (!PyArg_ParseTuple(args,(
char *)
"O:InvertedListsPtrVector_clear",&obj0)) SWIG_fail;
6321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 | 0 );
6322 if (!SWIG_IsOK(res1)) {
6323 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedListsPtrVector_clear" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > *""'");
6325 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6327 resultobj = SWIG_Py_Void();
6334 SWIGINTERN PyObject *_wrap_InvertedListsPtrVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6335 PyObject *resultobj = 0;
6336 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6339 PyObject * obj0 = 0 ;
6342 if (!PyArg_ParseTuple(args,(
char *)
"O:InvertedListsPtrVector_data",&obj0)) SWIG_fail;
6343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 | 0 );
6344 if (!SWIG_IsOK(res1)) {
6345 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedListsPtrVector_data" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > *""'");
6347 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_faiss__InvertedLists, 0 | 0 );
6356 SWIGINTERN PyObject *_wrap_InvertedListsPtrVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6357 PyObject *resultobj = 0;
6358 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6361 PyObject * obj0 = 0 ;
6364 if (!PyArg_ParseTuple(args,(
char *)
"O:InvertedListsPtrVector_size",&obj0)) SWIG_fail;
6365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 | 0 );
6366 if (!SWIG_IsOK(res1)) {
6367 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedListsPtrVector_size" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > *""'");
6369 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6370 result = (size_t)(arg1)->size();
6371 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
6378 SWIGINTERN PyObject *_wrap_InvertedListsPtrVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6379 PyObject *resultobj = 0;
6380 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6386 PyObject * obj0 = 0 ;
6387 PyObject * obj1 = 0 ;
6390 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedListsPtrVector_at",&obj0,&obj1)) SWIG_fail;
6391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 | 0 );
6392 if (!SWIG_IsOK(res1)) {
6393 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedListsPtrVector_at" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > const *""'");
6395 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6396 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6397 if (!SWIG_IsOK(ecode2)) {
6398 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedListsPtrVector_at" "', argument " "2"" of type '" "size_t""'");
6400 arg2 =
static_cast< size_t >(val2);
6401 result = (
faiss::InvertedLists *)((std::vector< faiss::InvertedLists * >
const *)arg1)->at(arg2);
6402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
6409 SWIGINTERN PyObject *_wrap_InvertedListsPtrVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6410 PyObject *resultobj = 0;
6411 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6417 PyObject * obj0 = 0 ;
6418 PyObject * obj1 = 0 ;
6420 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedListsPtrVector_resize",&obj0,&obj1)) SWIG_fail;
6421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 | 0 );
6422 if (!SWIG_IsOK(res1)) {
6423 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedListsPtrVector_resize" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > *""'");
6425 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6426 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6427 if (!SWIG_IsOK(ecode2)) {
6428 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedListsPtrVector_resize" "', argument " "2"" of type '" "size_t""'");
6430 arg2 =
static_cast< size_t >(val2);
6431 (arg1)->resize(arg2);
6432 resultobj = SWIG_Py_Void();
6439 SWIGINTERN PyObject *_wrap_InvertedListsPtrVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6440 PyObject *resultobj = 0;
6441 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6442 std::vector< faiss::InvertedLists * > *arg2 = 0 ;
6447 PyObject * obj0 = 0 ;
6448 PyObject * obj1 = 0 ;
6450 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedListsPtrVector_swap",&obj0,&obj1)) SWIG_fail;
6451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 | 0 );
6452 if (!SWIG_IsOK(res1)) {
6453 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedListsPtrVector_swap" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > *""'");
6455 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6456 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 );
6457 if (!SWIG_IsOK(res2)) {
6458 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "InvertedListsPtrVector_swap" "', argument " "2"" of type '" "std::vector< faiss::InvertedLists * > &""'");
6461 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "InvertedListsPtrVector_swap" "', argument " "2"" of type '" "std::vector< faiss::InvertedLists * > &""'");
6463 arg2 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp2);
6464 (arg1)->swap(*arg2);
6465 resultobj = SWIG_Py_Void();
6472 SWIGINTERN PyObject *_wrap_delete_InvertedListsPtrVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6473 PyObject *resultobj = 0;
6474 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6477 PyObject * obj0 = 0 ;
6479 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_InvertedListsPtrVector",&obj0)) SWIG_fail;
6480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, SWIG_POINTER_DISOWN | 0 );
6481 if (!SWIG_IsOK(res1)) {
6482 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_InvertedListsPtrVector" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > *""'");
6484 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6486 resultobj = SWIG_Py_Void();
6493 SWIGINTERN PyObject *InvertedListsPtrVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6495 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
6496 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, SWIG_NewClientData(obj));
6497 return SWIG_Py_Void();
6500 SWIGINTERN PyObject *_wrap_new_FloatVectorVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6501 PyObject *resultobj = 0;
6502 std::vector< std::vector< float > > *result = 0 ;
6504 if (!PyArg_ParseTuple(args,(
char *)
":new_FloatVectorVector")) SWIG_fail;
6505 result = (std::vector< std::vector< float > > *)
new std::vector< std::vector< float > >();
6506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, SWIG_POINTER_NEW | 0 );
6513 SWIGINTERN PyObject *_wrap_FloatVectorVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6514 PyObject *resultobj = 0;
6515 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6516 std::vector< float > arg2 ;
6521 PyObject * obj0 = 0 ;
6522 PyObject * obj1 = 0 ;
6524 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVectorVector_push_back",&obj0,&obj1)) SWIG_fail;
6525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 | 0 );
6526 if (!SWIG_IsOK(res1)) {
6527 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVectorVector_push_back" "', argument " "1"" of type '" "std::vector< std::vector< float > > *""'");
6529 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6531 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_float_t, 0 | 0);
6532 if (!SWIG_IsOK(res2)) {
6533 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "FloatVectorVector_push_back" "', argument " "2"" of type '" "std::vector< float >""'");
6536 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "FloatVectorVector_push_back" "', argument " "2"" of type '" "std::vector< float >""'");
6538 std::vector< float > * temp =
reinterpret_cast< std::vector< float > *
>(argp2);
6540 if (SWIG_IsNewObj(res2))
delete temp;
6543 (arg1)->push_back(arg2);
6544 resultobj = SWIG_Py_Void();
6551 SWIGINTERN PyObject *_wrap_FloatVectorVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6552 PyObject *resultobj = 0;
6553 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6556 PyObject * obj0 = 0 ;
6558 if (!PyArg_ParseTuple(args,(
char *)
"O:FloatVectorVector_clear",&obj0)) SWIG_fail;
6559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 | 0 );
6560 if (!SWIG_IsOK(res1)) {
6561 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVectorVector_clear" "', argument " "1"" of type '" "std::vector< std::vector< float > > *""'");
6563 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6565 resultobj = SWIG_Py_Void();
6572 SWIGINTERN PyObject *_wrap_FloatVectorVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6573 PyObject *resultobj = 0;
6574 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6577 PyObject * obj0 = 0 ;
6578 std::vector< float > *result = 0 ;
6580 if (!PyArg_ParseTuple(args,(
char *)
"O:FloatVectorVector_data",&obj0)) SWIG_fail;
6581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 | 0 );
6582 if (!SWIG_IsOK(res1)) {
6583 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVectorVector_data" "', argument " "1"" of type '" "std::vector< std::vector< float > > *""'");
6585 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6586 result = (std::vector< float > *)(arg1)->data();
6587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
6594 SWIGINTERN PyObject *_wrap_FloatVectorVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6595 PyObject *resultobj = 0;
6596 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6599 PyObject * obj0 = 0 ;
6602 if (!PyArg_ParseTuple(args,(
char *)
"O:FloatVectorVector_size",&obj0)) SWIG_fail;
6603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 | 0 );
6604 if (!SWIG_IsOK(res1)) {
6605 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVectorVector_size" "', argument " "1"" of type '" "std::vector< std::vector< float > > *""'");
6607 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6608 result = (size_t)(arg1)->size();
6609 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
6616 SWIGINTERN PyObject *_wrap_FloatVectorVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6617 PyObject *resultobj = 0;
6618 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6624 PyObject * obj0 = 0 ;
6625 PyObject * obj1 = 0 ;
6626 std::vector< float > result;
6628 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVectorVector_at",&obj0,&obj1)) SWIG_fail;
6629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 | 0 );
6630 if (!SWIG_IsOK(res1)) {
6631 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVectorVector_at" "', argument " "1"" of type '" "std::vector< std::vector< float > > const *""'");
6633 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6634 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6635 if (!SWIG_IsOK(ecode2)) {
6636 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "FloatVectorVector_at" "', argument " "2"" of type '" "size_t""'");
6638 arg2 =
static_cast< size_t >(val2);
6639 result = ((std::vector< std::vector< float > >
const *)arg1)->at(arg2);
6640 resultobj = SWIG_NewPointerObj((
new std::vector< float >(
static_cast< const std::vector< float >&
>(result))), SWIGTYPE_p_std__vectorT_float_t, SWIG_POINTER_OWN | 0 );
6647 SWIGINTERN PyObject *_wrap_FloatVectorVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6648 PyObject *resultobj = 0;
6649 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6655 PyObject * obj0 = 0 ;
6656 PyObject * obj1 = 0 ;
6658 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVectorVector_resize",&obj0,&obj1)) SWIG_fail;
6659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 | 0 );
6660 if (!SWIG_IsOK(res1)) {
6661 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVectorVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< float > > *""'");
6663 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6664 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6665 if (!SWIG_IsOK(ecode2)) {
6666 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "FloatVectorVector_resize" "', argument " "2"" of type '" "size_t""'");
6668 arg2 =
static_cast< size_t >(val2);
6669 (arg1)->resize(arg2);
6670 resultobj = SWIG_Py_Void();
6677 SWIGINTERN PyObject *_wrap_FloatVectorVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6678 PyObject *resultobj = 0;
6679 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6680 std::vector< std::vector< float > > *arg2 = 0 ;
6685 PyObject * obj0 = 0 ;
6686 PyObject * obj1 = 0 ;
6688 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVectorVector_swap",&obj0,&obj1)) SWIG_fail;
6689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 | 0 );
6690 if (!SWIG_IsOK(res1)) {
6691 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVectorVector_swap" "', argument " "1"" of type '" "std::vector< std::vector< float > > *""'");
6693 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 );
6695 if (!SWIG_IsOK(res2)) {
6696 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "FloatVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< float > > &""'");
6699 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "FloatVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< float > > &""'");
6701 arg2 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp2);
6702 (arg1)->swap(*arg2);
6703 resultobj = SWIG_Py_Void();
6710 SWIGINTERN PyObject *_wrap_delete_FloatVectorVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6711 PyObject *resultobj = 0;
6712 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6715 PyObject * obj0 = 0 ;
6717 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_FloatVectorVector",&obj0)) SWIG_fail;
6718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, SWIG_POINTER_DISOWN | 0 );
6719 if (!SWIG_IsOK(res1)) {
6720 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_FloatVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< float > > *""'");
6722 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6724 resultobj = SWIG_Py_Void();
6731 SWIGINTERN PyObject *FloatVectorVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6733 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
6734 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, SWIG_NewClientData(obj));
6735 return SWIG_Py_Void();
6738 SWIGINTERN PyObject *_wrap_new_ByteVectorVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6739 PyObject *resultobj = 0;
6740 std::vector< std::vector< unsigned char > > *result = 0 ;
6742 if (!PyArg_ParseTuple(args,(
char *)
":new_ByteVectorVector")) SWIG_fail;
6743 result = (std::vector< std::vector< unsigned char > > *)
new std::vector< std::vector< unsigned char > >();
6744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, SWIG_POINTER_NEW | 0 );
6751 SWIGINTERN PyObject *_wrap_ByteVectorVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6752 PyObject *resultobj = 0;
6753 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6754 std::vector< unsigned char > arg2 ;
6759 PyObject * obj0 = 0 ;
6760 PyObject * obj1 = 0 ;
6762 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVectorVector_push_back",&obj0,&obj1)) SWIG_fail;
6763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
6764 if (!SWIG_IsOK(res1)) {
6765 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVectorVector_push_back" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > *""'");
6767 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6769 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0);
6770 if (!SWIG_IsOK(res2)) {
6771 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ByteVectorVector_push_back" "', argument " "2"" of type '" "std::vector< unsigned char >""'");
6774 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "ByteVectorVector_push_back" "', argument " "2"" of type '" "std::vector< unsigned char >""'");
6776 std::vector< unsigned char > * temp =
reinterpret_cast< std::vector< unsigned char > *
>(argp2);
6778 if (SWIG_IsNewObj(res2))
delete temp;
6781 (arg1)->push_back(arg2);
6782 resultobj = SWIG_Py_Void();
6789 SWIGINTERN PyObject *_wrap_ByteVectorVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6790 PyObject *resultobj = 0;
6791 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6794 PyObject * obj0 = 0 ;
6796 if (!PyArg_ParseTuple(args,(
char *)
"O:ByteVectorVector_clear",&obj0)) SWIG_fail;
6797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
6798 if (!SWIG_IsOK(res1)) {
6799 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVectorVector_clear" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > *""'");
6801 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6803 resultobj = SWIG_Py_Void();
6810 SWIGINTERN PyObject *_wrap_ByteVectorVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6811 PyObject *resultobj = 0;
6812 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6815 PyObject * obj0 = 0 ;
6816 std::vector< unsigned char > *result = 0 ;
6818 if (!PyArg_ParseTuple(args,(
char *)
"O:ByteVectorVector_data",&obj0)) SWIG_fail;
6819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
6820 if (!SWIG_IsOK(res1)) {
6821 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVectorVector_data" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > *""'");
6823 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6824 result = (std::vector< unsigned char > *)(arg1)->data();
6825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
6832 SWIGINTERN PyObject *_wrap_ByteVectorVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6833 PyObject *resultobj = 0;
6834 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6837 PyObject * obj0 = 0 ;
6840 if (!PyArg_ParseTuple(args,(
char *)
"O:ByteVectorVector_size",&obj0)) SWIG_fail;
6841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
6842 if (!SWIG_IsOK(res1)) {
6843 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVectorVector_size" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > *""'");
6845 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6846 result = (size_t)(arg1)->size();
6847 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
6854 SWIGINTERN PyObject *_wrap_ByteVectorVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6855 PyObject *resultobj = 0;
6856 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6862 PyObject * obj0 = 0 ;
6863 PyObject * obj1 = 0 ;
6864 std::vector< unsigned char > result;
6866 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVectorVector_at",&obj0,&obj1)) SWIG_fail;
6867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
6868 if (!SWIG_IsOK(res1)) {
6869 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVectorVector_at" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > const *""'");
6871 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6872 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6873 if (!SWIG_IsOK(ecode2)) {
6874 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ByteVectorVector_at" "', argument " "2"" of type '" "size_t""'");
6876 arg2 =
static_cast< size_t >(val2);
6877 result = ((std::vector< std::vector< unsigned char > >
const *)arg1)->at(arg2);
6878 resultobj = SWIG_NewPointerObj((
new std::vector< unsigned char >(
static_cast< const std::vector< unsigned char >&
>(result))), SWIGTYPE_p_std__vectorT_unsigned_char_t, SWIG_POINTER_OWN | 0 );
6885 SWIGINTERN PyObject *_wrap_ByteVectorVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6886 PyObject *resultobj = 0;
6887 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6893 PyObject * obj0 = 0 ;
6894 PyObject * obj1 = 0 ;
6896 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVectorVector_resize",&obj0,&obj1)) SWIG_fail;
6897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
6898 if (!SWIG_IsOK(res1)) {
6899 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVectorVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > *""'");
6901 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6902 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6903 if (!SWIG_IsOK(ecode2)) {
6904 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ByteVectorVector_resize" "', argument " "2"" of type '" "size_t""'");
6906 arg2 =
static_cast< size_t >(val2);
6907 (arg1)->resize(arg2);
6908 resultobj = SWIG_Py_Void();
6915 SWIGINTERN PyObject *_wrap_ByteVectorVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6916 PyObject *resultobj = 0;
6917 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6918 std::vector< std::vector< unsigned char > > *arg2 = 0 ;
6923 PyObject * obj0 = 0 ;
6924 PyObject * obj1 = 0 ;
6926 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVectorVector_swap",&obj0,&obj1)) SWIG_fail;
6927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
6928 if (!SWIG_IsOK(res1)) {
6929 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVectorVector_swap" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > *""'");
6931 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6932 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 );
6933 if (!SWIG_IsOK(res2)) {
6934 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ByteVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< unsigned char > > &""'");
6937 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "ByteVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< unsigned char > > &""'");
6939 arg2 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp2);
6940 (arg1)->swap(*arg2);
6941 resultobj = SWIG_Py_Void();
6948 SWIGINTERN PyObject *_wrap_delete_ByteVectorVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6949 PyObject *resultobj = 0;
6950 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6953 PyObject * obj0 = 0 ;
6955 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ByteVectorVector",&obj0)) SWIG_fail;
6956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, SWIG_POINTER_DISOWN | 0 );
6957 if (!SWIG_IsOK(res1)) {
6958 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ByteVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > *""'");
6960 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6962 resultobj = SWIG_Py_Void();
6969 SWIGINTERN PyObject *ByteVectorVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6971 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
6972 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, SWIG_NewClientData(obj));
6973 return SWIG_Py_Void();
6976 SWIGINTERN PyObject *_wrap_new_LongVectorVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6977 PyObject *resultobj = 0;
6978 std::vector< std::vector< long > > *result = 0 ;
6980 if (!PyArg_ParseTuple(args,(
char *)
":new_LongVectorVector")) SWIG_fail;
6981 result = (std::vector< std::vector< long > > *)
new std::vector< std::vector< long > >();
6982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, SWIG_POINTER_NEW | 0 );
6989 SWIGINTERN PyObject *_wrap_LongVectorVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6990 PyObject *resultobj = 0;
6991 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
6992 std::vector< long > arg2 ;
6997 PyObject * obj0 = 0 ;
6998 PyObject * obj1 = 0 ;
7000 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVectorVector_push_back",&obj0,&obj1)) SWIG_fail;
7001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
7002 if (!SWIG_IsOK(res1)) {
7003 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVectorVector_push_back" "', argument " "1"" of type '" "std::vector< std::vector< long > > *""'");
7005 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7007 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_long_t, 0 | 0);
7008 if (!SWIG_IsOK(res2)) {
7009 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "LongVectorVector_push_back" "', argument " "2"" of type '" "std::vector< long >""'");
7012 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "LongVectorVector_push_back" "', argument " "2"" of type '" "std::vector< long >""'");
7014 std::vector< long > * temp =
reinterpret_cast< std::vector< long > *
>(argp2);
7016 if (SWIG_IsNewObj(res2))
delete temp;
7019 (arg1)->push_back(arg2);
7020 resultobj = SWIG_Py_Void();
7027 SWIGINTERN PyObject *_wrap_LongVectorVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7028 PyObject *resultobj = 0;
7029 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7032 PyObject * obj0 = 0 ;
7034 if (!PyArg_ParseTuple(args,(
char *)
"O:LongVectorVector_clear",&obj0)) SWIG_fail;
7035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
7036 if (!SWIG_IsOK(res1)) {
7037 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVectorVector_clear" "', argument " "1"" of type '" "std::vector< std::vector< long > > *""'");
7039 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7041 resultobj = SWIG_Py_Void();
7048 SWIGINTERN PyObject *_wrap_LongVectorVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7049 PyObject *resultobj = 0;
7050 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7053 PyObject * obj0 = 0 ;
7054 std::vector< long > *result = 0 ;
7056 if (!PyArg_ParseTuple(args,(
char *)
"O:LongVectorVector_data",&obj0)) SWIG_fail;
7057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
7058 if (!SWIG_IsOK(res1)) {
7059 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVectorVector_data" "', argument " "1"" of type '" "std::vector< std::vector< long > > *""'");
7061 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7062 result = (std::vector< long > *)(arg1)->data();
7063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
7070 SWIGINTERN PyObject *_wrap_LongVectorVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7071 PyObject *resultobj = 0;
7072 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7075 PyObject * obj0 = 0 ;
7078 if (!PyArg_ParseTuple(args,(
char *)
"O:LongVectorVector_size",&obj0)) SWIG_fail;
7079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
7080 if (!SWIG_IsOK(res1)) {
7081 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVectorVector_size" "', argument " "1"" of type '" "std::vector< std::vector< long > > *""'");
7083 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7084 result = (size_t)(arg1)->size();
7085 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
7092 SWIGINTERN PyObject *_wrap_LongVectorVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7093 PyObject *resultobj = 0;
7094 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7100 PyObject * obj0 = 0 ;
7101 PyObject * obj1 = 0 ;
7102 std::vector< long > result;
7104 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVectorVector_at",&obj0,&obj1)) SWIG_fail;
7105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
7106 if (!SWIG_IsOK(res1)) {
7107 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVectorVector_at" "', argument " "1"" of type '" "std::vector< std::vector< long > > const *""'");
7109 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7110 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
7111 if (!SWIG_IsOK(ecode2)) {
7112 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LongVectorVector_at" "', argument " "2"" of type '" "size_t""'");
7114 arg2 =
static_cast< size_t >(val2);
7115 result = ((std::vector< std::vector< long > >
const *)arg1)->at(arg2);
7116 resultobj = SWIG_NewPointerObj((
new std::vector< long >(
static_cast< const std::vector< long >&
>(result))), SWIGTYPE_p_std__vectorT_long_t, SWIG_POINTER_OWN | 0 );
7123 SWIGINTERN PyObject *_wrap_LongVectorVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7124 PyObject *resultobj = 0;
7125 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7131 PyObject * obj0 = 0 ;
7132 PyObject * obj1 = 0 ;
7134 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVectorVector_resize",&obj0,&obj1)) SWIG_fail;
7135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
7136 if (!SWIG_IsOK(res1)) {
7137 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVectorVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< long > > *""'");
7139 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7140 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
7141 if (!SWIG_IsOK(ecode2)) {
7142 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LongVectorVector_resize" "', argument " "2"" of type '" "size_t""'");
7144 arg2 =
static_cast< size_t >(val2);
7145 (arg1)->resize(arg2);
7146 resultobj = SWIG_Py_Void();
7153 SWIGINTERN PyObject *_wrap_LongVectorVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7154 PyObject *resultobj = 0;
7155 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7156 std::vector< std::vector< long > > *arg2 = 0 ;
7161 PyObject * obj0 = 0 ;
7162 PyObject * obj1 = 0 ;
7164 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVectorVector_swap",&obj0,&obj1)) SWIG_fail;
7165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
7166 if (!SWIG_IsOK(res1)) {
7167 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVectorVector_swap" "', argument " "1"" of type '" "std::vector< std::vector< long > > *""'");
7169 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7170 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 );
7171 if (!SWIG_IsOK(res2)) {
7172 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "LongVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< long > > &""'");
7175 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "LongVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< long > > &""'");
7177 arg2 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp2);
7178 (arg1)->swap(*arg2);
7179 resultobj = SWIG_Py_Void();
7186 SWIGINTERN PyObject *_wrap_delete_LongVectorVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7187 PyObject *resultobj = 0;
7188 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7191 PyObject * obj0 = 0 ;
7193 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_LongVectorVector",&obj0)) SWIG_fail;
7194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, SWIG_POINTER_DISOWN | 0 );
7195 if (!SWIG_IsOK(res1)) {
7196 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_LongVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< long > > *""'");
7198 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7200 resultobj = SWIG_Py_Void();
7207 SWIGINTERN PyObject *LongVectorVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7209 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
7210 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, SWIG_NewClientData(obj));
7211 return SWIG_Py_Void();
7214 SWIGINTERN
int Swig_var_hamming_batch_size_set(PyObject *_val) {
7217 int res = SWIG_AsVal_size_t(_val, &val);
7218 if (!SWIG_IsOK(res)) {
7219 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""faiss::hamming_batch_size""' of type '""size_t""'");
7221 faiss::hamming_batch_size =
static_cast< size_t >(val);
7229 SWIGINTERN PyObject *Swig_var_hamming_batch_size_get(
void) {
7230 PyObject *pyobj = 0;
7232 pyobj = SWIG_From_size_t(static_cast< size_t >(faiss::hamming_batch_size));
7237 SWIGINTERN PyObject *_wrap_popcount64(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7238 PyObject *resultobj = 0;
7240 unsigned long val1 ;
7242 PyObject * obj0 = 0 ;
7245 if (!PyArg_ParseTuple(args,(
char *)
"O:popcount64",&obj0)) SWIG_fail;
7246 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
7247 if (!SWIG_IsOK(ecode1)) {
7248 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "popcount64" "', argument " "1"" of type '" "uint64_t""'");
7250 arg1 =
static_cast< uint64_t
>(val1);
7252 Py_BEGIN_ALLOW_THREADS
7254 result = (int)faiss::popcount64(arg1);
7256 PyEval_RestoreThread(_save);
7257 PyErr_SetString(PyExc_RuntimeError, e.
what());
7260 Py_END_ALLOW_THREADS
7262 resultobj = SWIG_From_int(static_cast< int >(result));
7269 SWIGINTERN PyObject *_wrap_hammings(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7270 PyObject *resultobj = 0;
7271 uint8_t *arg1 = (uint8_t *) 0 ;
7272 uint8_t *arg2 = (uint8_t *) 0 ;
7276 hamdis_t *arg6 = (hamdis_t *) 0 ;
7289 PyObject * obj0 = 0 ;
7290 PyObject * obj1 = 0 ;
7291 PyObject * obj2 = 0 ;
7292 PyObject * obj3 = 0 ;
7293 PyObject * obj4 = 0 ;
7294 PyObject * obj5 = 0 ;
7296 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:hammings",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
7298 if (!SWIG_IsOK(res1)) {
7299 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "hammings" "', argument " "1"" of type '" "uint8_t const *""'");
7301 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
7302 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7303 if (!SWIG_IsOK(res2)) {
7304 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "hammings" "', argument " "2"" of type '" "uint8_t const *""'");
7306 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7307 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
7308 if (!SWIG_IsOK(ecode3)) {
7309 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "hammings" "', argument " "3"" of type '" "size_t""'");
7311 arg3 =
static_cast< size_t >(val3);
7312 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
7313 if (!SWIG_IsOK(ecode4)) {
7314 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "hammings" "', argument " "4"" of type '" "size_t""'");
7316 arg4 =
static_cast< size_t >(val4);
7317 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
7318 if (!SWIG_IsOK(ecode5)) {
7319 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "hammings" "', argument " "5"" of type '" "size_t""'");
7321 arg5 =
static_cast< size_t >(val5);
7322 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 | 0 );
7323 if (!SWIG_IsOK(res6)) {
7324 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "hammings" "', argument " "6"" of type '" "hamdis_t *""'");
7326 arg6 =
reinterpret_cast< hamdis_t *
>(argp6);
7328 Py_BEGIN_ALLOW_THREADS
7330 faiss::hammings((
unsigned char const *)arg1,(
unsigned char const *)arg2,arg3,arg4,arg5,arg6);
7332 PyEval_RestoreThread(_save);
7333 PyErr_SetString(PyExc_RuntimeError, e.
what());
7336 Py_END_ALLOW_THREADS
7338 resultobj = SWIG_Py_Void();
7345 SWIGINTERN PyObject *_wrap_bitvec_print(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7346 PyObject *resultobj = 0;
7347 uint8_t *arg1 = (uint8_t *) 0 ;
7353 PyObject * obj0 = 0 ;
7354 PyObject * obj1 = 0 ;
7356 if (!PyArg_ParseTuple(args,(
char *)
"OO:bitvec_print",&obj0,&obj1)) SWIG_fail;
7357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
7358 if (!SWIG_IsOK(res1)) {
7359 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "bitvec_print" "', argument " "1"" of type '" "uint8_t const *""'");
7361 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
7362 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
7363 if (!SWIG_IsOK(ecode2)) {
7364 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "bitvec_print" "', argument " "2"" of type '" "size_t""'");
7366 arg2 =
static_cast< size_t >(val2);
7368 Py_BEGIN_ALLOW_THREADS
7370 faiss::bitvec_print((
unsigned char const *)arg1,arg2);
7372 PyEval_RestoreThread(_save);
7373 PyErr_SetString(PyExc_RuntimeError, e.
what());
7376 Py_END_ALLOW_THREADS
7378 resultobj = SWIG_Py_Void();
7385 SWIGINTERN PyObject *_wrap_fvecs2bitvecs(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7386 PyObject *resultobj = 0;
7387 float *arg1 = (
float *) 0 ;
7388 uint8_t *arg2 = (uint8_t *) 0 ;
7399 PyObject * obj0 = 0 ;
7400 PyObject * obj1 = 0 ;
7401 PyObject * obj2 = 0 ;
7402 PyObject * obj3 = 0 ;
7404 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:fvecs2bitvecs",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
7406 if (!SWIG_IsOK(res1)) {
7407 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvecs2bitvecs" "', argument " "1"" of type '" "float const *""'");
7409 arg1 =
reinterpret_cast< float *
>(argp1);
7410 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7411 if (!SWIG_IsOK(res2)) {
7412 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvecs2bitvecs" "', argument " "2"" of type '" "uint8_t *""'");
7414 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7415 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
7416 if (!SWIG_IsOK(ecode3)) {
7417 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvecs2bitvecs" "', argument " "3"" of type '" "size_t""'");
7419 arg3 =
static_cast< size_t >(val3);
7420 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
7421 if (!SWIG_IsOK(ecode4)) {
7422 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "fvecs2bitvecs" "', argument " "4"" of type '" "size_t""'");
7424 arg4 =
static_cast< size_t >(val4);
7426 Py_BEGIN_ALLOW_THREADS
7428 faiss::fvecs2bitvecs((
float const *)arg1,arg2,arg3,arg4);
7430 PyEval_RestoreThread(_save);
7431 PyErr_SetString(PyExc_RuntimeError, e.
what());
7434 Py_END_ALLOW_THREADS
7436 resultobj = SWIG_Py_Void();
7443 SWIGINTERN PyObject *_wrap_fvec2bitvec(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7444 PyObject *resultobj = 0;
7445 float *arg1 = (
float *) 0 ;
7446 uint8_t *arg2 = (uint8_t *) 0 ;
7454 PyObject * obj0 = 0 ;
7455 PyObject * obj1 = 0 ;
7456 PyObject * obj2 = 0 ;
7458 if (!PyArg_ParseTuple(args,(
char *)
"OOO:fvec2bitvec",&obj0,&obj1,&obj2)) SWIG_fail;
7459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
7460 if (!SWIG_IsOK(res1)) {
7461 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec2bitvec" "', argument " "1"" of type '" "float const *""'");
7463 arg1 =
reinterpret_cast< float *
>(argp1);
7464 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7465 if (!SWIG_IsOK(res2)) {
7466 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec2bitvec" "', argument " "2"" of type '" "uint8_t *""'");
7468 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7469 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
7470 if (!SWIG_IsOK(ecode3)) {
7471 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvec2bitvec" "', argument " "3"" of type '" "size_t""'");
7473 arg3 =
static_cast< size_t >(val3);
7475 Py_BEGIN_ALLOW_THREADS
7477 faiss::fvec2bitvec((
float const *)arg1,arg2,arg3);
7479 PyEval_RestoreThread(_save);
7480 PyErr_SetString(PyExc_RuntimeError, e.
what());
7483 Py_END_ALLOW_THREADS
7485 resultobj = SWIG_Py_Void();
7492 SWIGINTERN PyObject *_wrap_hammings_knn_hc(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7493 PyObject *resultobj = 0;
7495 uint8_t *arg2 = (uint8_t *) 0 ;
7496 uint8_t *arg3 = (uint8_t *) 0 ;
7512 PyObject * obj0 = 0 ;
7513 PyObject * obj1 = 0 ;
7514 PyObject * obj2 = 0 ;
7515 PyObject * obj3 = 0 ;
7516 PyObject * obj4 = 0 ;
7517 PyObject * obj5 = 0 ;
7519 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:hammings_knn_hc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
7521 if (!SWIG_IsOK(res1)) {
7522 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "hammings_knn_hc" "', argument " "1"" of type '" "faiss::int_maxheap_array_t *""'");
7525 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7526 if (!SWIG_IsOK(res2)) {
7527 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "hammings_knn_hc" "', argument " "2"" of type '" "uint8_t const *""'");
7529 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7530 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
7531 if (!SWIG_IsOK(res3)) {
7532 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "hammings_knn_hc" "', argument " "3"" of type '" "uint8_t const *""'");
7534 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
7535 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
7536 if (!SWIG_IsOK(ecode4)) {
7537 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "hammings_knn_hc" "', argument " "4"" of type '" "size_t""'");
7539 arg4 =
static_cast< size_t >(val4);
7540 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
7541 if (!SWIG_IsOK(ecode5)) {
7542 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "hammings_knn_hc" "', argument " "5"" of type '" "size_t""'");
7544 arg5 =
static_cast< size_t >(val5);
7545 ecode6 = SWIG_AsVal_int(obj5, &val6);
7546 if (!SWIG_IsOK(ecode6)) {
7547 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "hammings_knn_hc" "', argument " "6"" of type '" "int""'");
7549 arg6 =
static_cast< int >(val6);
7551 Py_BEGIN_ALLOW_THREADS
7555 PyEval_RestoreThread(_save);
7556 PyErr_SetString(PyExc_RuntimeError, e.
what());
7559 Py_END_ALLOW_THREADS
7561 resultobj = SWIG_Py_Void();
7568 SWIGINTERN PyObject *_wrap_hammings_knn(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7569 PyObject *resultobj = 0;
7571 uint8_t *arg2 = (uint8_t *) 0 ;
7572 uint8_t *arg3 = (uint8_t *) 0 ;
7588 PyObject * obj0 = 0 ;
7589 PyObject * obj1 = 0 ;
7590 PyObject * obj2 = 0 ;
7591 PyObject * obj3 = 0 ;
7592 PyObject * obj4 = 0 ;
7593 PyObject * obj5 = 0 ;
7595 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:hammings_knn",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
7597 if (!SWIG_IsOK(res1)) {
7598 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "hammings_knn" "', argument " "1"" of type '" "faiss::int_maxheap_array_t *""'");
7601 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7602 if (!SWIG_IsOK(res2)) {
7603 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "hammings_knn" "', argument " "2"" of type '" "uint8_t const *""'");
7605 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7606 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
7607 if (!SWIG_IsOK(res3)) {
7608 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "hammings_knn" "', argument " "3"" of type '" "uint8_t const *""'");
7610 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
7611 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
7612 if (!SWIG_IsOK(ecode4)) {
7613 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "hammings_knn" "', argument " "4"" of type '" "size_t""'");
7615 arg4 =
static_cast< size_t >(val4);
7616 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
7617 if (!SWIG_IsOK(ecode5)) {
7618 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "hammings_knn" "', argument " "5"" of type '" "size_t""'");
7620 arg5 =
static_cast< size_t >(val5);
7621 ecode6 = SWIG_AsVal_int(obj5, &val6);
7622 if (!SWIG_IsOK(ecode6)) {
7623 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "hammings_knn" "', argument " "6"" of type '" "int""'");
7625 arg6 =
static_cast< int >(val6);
7627 Py_BEGIN_ALLOW_THREADS
7629 faiss::hammings_knn(arg1,(
unsigned char const *)arg2,(
unsigned char const *)arg3,arg4,arg5,arg6);
7631 PyEval_RestoreThread(_save);
7632 PyErr_SetString(PyExc_RuntimeError, e.
what());
7635 Py_END_ALLOW_THREADS
7637 resultobj = SWIG_Py_Void();
7644 SWIGINTERN PyObject *_wrap_hammings_knn_mc(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7645 PyObject *resultobj = 0;
7646 uint8_t *arg1 = (uint8_t *) 0 ;
7647 uint8_t *arg2 = (uint8_t *) 0 ;
7652 int32_t *arg7 = (int32_t *) 0 ;
7653 long *arg8 = (
long *) 0 ;
7670 PyObject * obj0 = 0 ;
7671 PyObject * obj1 = 0 ;
7672 PyObject * obj2 = 0 ;
7673 PyObject * obj3 = 0 ;
7674 PyObject * obj4 = 0 ;
7675 PyObject * obj5 = 0 ;
7676 PyObject * obj6 = 0 ;
7677 PyObject * obj7 = 0 ;
7679 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:hammings_knn_mc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
7681 if (!SWIG_IsOK(res1)) {
7682 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "hammings_knn_mc" "', argument " "1"" of type '" "uint8_t const *""'");
7684 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
7685 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7686 if (!SWIG_IsOK(res2)) {
7687 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "hammings_knn_mc" "', argument " "2"" of type '" "uint8_t const *""'");
7689 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7690 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
7691 if (!SWIG_IsOK(ecode3)) {
7692 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "hammings_knn_mc" "', argument " "3"" of type '" "size_t""'");
7694 arg3 =
static_cast< size_t >(val3);
7695 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
7696 if (!SWIG_IsOK(ecode4)) {
7697 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "hammings_knn_mc" "', argument " "4"" of type '" "size_t""'");
7699 arg4 =
static_cast< size_t >(val4);
7700 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
7701 if (!SWIG_IsOK(ecode5)) {
7702 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "hammings_knn_mc" "', argument " "5"" of type '" "size_t""'");
7704 arg5 =
static_cast< size_t >(val5);
7705 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
7706 if (!SWIG_IsOK(ecode6)) {
7707 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "hammings_knn_mc" "', argument " "6"" of type '" "size_t""'");
7709 arg6 =
static_cast< size_t >(val6);
7710 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_int, 0 | 0 );
7711 if (!SWIG_IsOK(res7)) {
7712 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "hammings_knn_mc" "', argument " "7"" of type '" "int32_t *""'");
7714 arg7 =
reinterpret_cast< int32_t *
>(argp7);
7715 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
7716 if (!SWIG_IsOK(res8)) {
7717 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "hammings_knn_mc" "', argument " "8"" of type '" "long *""'");
7719 arg8 =
reinterpret_cast< long *
>(argp8);
7721 Py_BEGIN_ALLOW_THREADS
7723 faiss::hammings_knn_mc((
unsigned char const *)arg1,(
unsigned char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8);
7725 PyEval_RestoreThread(_save);
7726 PyErr_SetString(PyExc_RuntimeError, e.
what());
7729 Py_END_ALLOW_THREADS
7731 resultobj = SWIG_Py_Void();
7738 SWIGINTERN PyObject *_wrap_hamming_count_thres(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7739 PyObject *resultobj = 0;
7740 uint8_t *arg1 = (uint8_t *) 0 ;
7741 uint8_t *arg2 = (uint8_t *) 0 ;
7746 size_t *arg7 = (
size_t *) 0 ;
7761 PyObject * obj0 = 0 ;
7762 PyObject * obj1 = 0 ;
7763 PyObject * obj2 = 0 ;
7764 PyObject * obj3 = 0 ;
7765 PyObject * obj4 = 0 ;
7766 PyObject * obj5 = 0 ;
7767 PyObject * obj6 = 0 ;
7769 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:hamming_count_thres",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
7771 if (!SWIG_IsOK(res1)) {
7772 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "hamming_count_thres" "', argument " "1"" of type '" "uint8_t const *""'");
7774 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
7775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7776 if (!SWIG_IsOK(res2)) {
7777 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "hamming_count_thres" "', argument " "2"" of type '" "uint8_t const *""'");
7779 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7780 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
7781 if (!SWIG_IsOK(ecode3)) {
7782 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "hamming_count_thres" "', argument " "3"" of type '" "size_t""'");
7784 arg3 =
static_cast< size_t >(val3);
7785 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
7786 if (!SWIG_IsOK(ecode4)) {
7787 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "hamming_count_thres" "', argument " "4"" of type '" "size_t""'");
7789 arg4 =
static_cast< size_t >(val4);
7790 ecode5 = SWIG_AsVal_int(obj4, &val5);
7791 if (!SWIG_IsOK(ecode5)) {
7792 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "hamming_count_thres" "', argument " "5"" of type '" "hamdis_t""'");
7794 arg5 =
static_cast< hamdis_t
>(val5);
7795 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
7796 if (!SWIG_IsOK(ecode6)) {
7797 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "hamming_count_thres" "', argument " "6"" of type '" "size_t""'");
7799 arg6 =
static_cast< size_t >(val6);
7800 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_long, 0 | 0 );
7801 if (!SWIG_IsOK(res7)) {
7802 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "hamming_count_thres" "', argument " "7"" of type '" "size_t *""'");
7804 arg7 =
reinterpret_cast< size_t *
>(argp7);
7806 Py_BEGIN_ALLOW_THREADS
7808 faiss::hamming_count_thres((
unsigned char const *)arg1,(
unsigned char const *)arg2,arg3,arg4,arg5,arg6,arg7);
7810 PyEval_RestoreThread(_save);
7811 PyErr_SetString(PyExc_RuntimeError, e.
what());
7814 Py_END_ALLOW_THREADS
7816 resultobj = SWIG_Py_Void();
7823 SWIGINTERN PyObject *_wrap_match_hamming_thres(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7824 PyObject *resultobj = 0;
7825 uint8_t *arg1 = (uint8_t *) 0 ;
7826 uint8_t *arg2 = (uint8_t *) 0 ;
7831 long *arg7 = (
long *) 0 ;
7832 hamdis_t *arg8 = (hamdis_t *) 0 ;
7849 PyObject * obj0 = 0 ;
7850 PyObject * obj1 = 0 ;
7851 PyObject * obj2 = 0 ;
7852 PyObject * obj3 = 0 ;
7853 PyObject * obj4 = 0 ;
7854 PyObject * obj5 = 0 ;
7855 PyObject * obj6 = 0 ;
7856 PyObject * obj7 = 0 ;
7859 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:match_hamming_thres",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
7861 if (!SWIG_IsOK(res1)) {
7862 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "match_hamming_thres" "', argument " "1"" of type '" "uint8_t const *""'");
7864 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
7865 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7866 if (!SWIG_IsOK(res2)) {
7867 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "match_hamming_thres" "', argument " "2"" of type '" "uint8_t const *""'");
7869 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7870 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
7871 if (!SWIG_IsOK(ecode3)) {
7872 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "match_hamming_thres" "', argument " "3"" of type '" "size_t""'");
7874 arg3 =
static_cast< size_t >(val3);
7875 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
7876 if (!SWIG_IsOK(ecode4)) {
7877 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "match_hamming_thres" "', argument " "4"" of type '" "size_t""'");
7879 arg4 =
static_cast< size_t >(val4);
7880 ecode5 = SWIG_AsVal_int(obj4, &val5);
7881 if (!SWIG_IsOK(ecode5)) {
7882 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "match_hamming_thres" "', argument " "5"" of type '" "hamdis_t""'");
7884 arg5 =
static_cast< hamdis_t
>(val5);
7885 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
7886 if (!SWIG_IsOK(ecode6)) {
7887 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "match_hamming_thres" "', argument " "6"" of type '" "size_t""'");
7889 arg6 =
static_cast< size_t >(val6);
7890 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_long, 0 | 0 );
7891 if (!SWIG_IsOK(res7)) {
7892 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "match_hamming_thres" "', argument " "7"" of type '" "long *""'");
7894 arg7 =
reinterpret_cast< long *
>(argp7);
7895 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_int, 0 | 0 );
7896 if (!SWIG_IsOK(res8)) {
7897 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "match_hamming_thres" "', argument " "8"" of type '" "hamdis_t *""'");
7899 arg8 =
reinterpret_cast< hamdis_t *
>(argp8);
7901 Py_BEGIN_ALLOW_THREADS
7903 result = (size_t)faiss::match_hamming_thres((
unsigned char const *)arg1,(
unsigned char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8);
7905 PyEval_RestoreThread(_save);
7906 PyErr_SetString(PyExc_RuntimeError, e.
what());
7909 Py_END_ALLOW_THREADS
7911 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
7918 SWIGINTERN PyObject *_wrap_crosshamming_count_thres(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7919 PyObject *resultobj = 0;
7920 uint8_t *arg1 = (uint8_t *) 0 ;
7924 size_t *arg5 = (
size_t *) 0 ;
7935 PyObject * obj0 = 0 ;
7936 PyObject * obj1 = 0 ;
7937 PyObject * obj2 = 0 ;
7938 PyObject * obj3 = 0 ;
7939 PyObject * obj4 = 0 ;
7941 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:crosshamming_count_thres",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
7942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
7943 if (!SWIG_IsOK(res1)) {
7944 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "crosshamming_count_thres" "', argument " "1"" of type '" "uint8_t const *""'");
7946 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
7947 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
7948 if (!SWIG_IsOK(ecode2)) {
7949 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "crosshamming_count_thres" "', argument " "2"" of type '" "size_t""'");
7951 arg2 =
static_cast< size_t >(val2);
7952 ecode3 = SWIG_AsVal_int(obj2, &val3);
7953 if (!SWIG_IsOK(ecode3)) {
7954 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "crosshamming_count_thres" "', argument " "3"" of type '" "hamdis_t""'");
7956 arg3 =
static_cast< hamdis_t
>(val3);
7957 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
7958 if (!SWIG_IsOK(ecode4)) {
7959 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "crosshamming_count_thres" "', argument " "4"" of type '" "size_t""'");
7961 arg4 =
static_cast< size_t >(val4);
7962 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_long, 0 | 0 );
7963 if (!SWIG_IsOK(res5)) {
7964 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "crosshamming_count_thres" "', argument " "5"" of type '" "size_t *""'");
7966 arg5 =
reinterpret_cast< size_t *
>(argp5);
7968 Py_BEGIN_ALLOW_THREADS
7970 faiss::crosshamming_count_thres((
unsigned char const *)arg1,arg2,arg3,arg4,arg5);
7972 PyEval_RestoreThread(_save);
7973 PyErr_SetString(PyExc_RuntimeError, e.
what());
7976 Py_END_ALLOW_THREADS
7978 resultobj = SWIG_Py_Void();
7985 SWIGINTERN PyObject *_wrap_HammingComputer4_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7986 PyObject *resultobj = 0;
7993 PyObject * obj0 = 0 ;
7994 PyObject * obj1 = 0 ;
7996 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer4_a0_set",&obj0,&obj1)) SWIG_fail;
7997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer4, 0 | 0 );
7998 if (!SWIG_IsOK(res1)) {
7999 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer4_a0_set" "', argument " "1"" of type '" "faiss::HammingComputer4 *""'");
8003 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint32_t, 0 | 0);
8004 if (!SWIG_IsOK(res2)) {
8005 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer4_a0_set" "', argument " "2"" of type '" "uint32_t""'");
8008 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HammingComputer4_a0_set" "', argument " "2"" of type '" "uint32_t""'");
8010 uint32_t * temp =
reinterpret_cast< uint32_t *
>(argp2);
8012 if (SWIG_IsNewObj(res2))
delete temp;
8015 if (arg1) (arg1)->a0 = arg2;
8016 resultobj = SWIG_Py_Void();
8023 SWIGINTERN PyObject *_wrap_HammingComputer4_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8024 PyObject *resultobj = 0;
8028 PyObject * obj0 = 0 ;
8031 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer4_a0_get",&obj0)) SWIG_fail;
8032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer4, 0 | 0 );
8033 if (!SWIG_IsOK(res1)) {
8034 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer4_a0_get" "', argument " "1"" of type '" "faiss::HammingComputer4 *""'");
8037 result = ((arg1)->a0);
8038 resultobj = SWIG_NewPointerObj((
new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0 );
8045 SWIGINTERN PyObject *_wrap_new_HammingComputer4__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8046 PyObject *resultobj = 0;
8049 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputer4")) SWIG_fail;
8051 Py_BEGIN_ALLOW_THREADS
8055 PyEval_RestoreThread(_save);
8056 PyErr_SetString(PyExc_RuntimeError, e.
what());
8059 Py_END_ALLOW_THREADS
8061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer4, SWIG_POINTER_NEW | 0 );
8068 SWIGINTERN PyObject *_wrap_new_HammingComputer4__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8069 PyObject *resultobj = 0;
8070 uint8_t *arg1 = (uint8_t *) 0 ;
8076 PyObject * obj0 = 0 ;
8077 PyObject * obj1 = 0 ;
8080 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputer4",&obj0,&obj1)) SWIG_fail;
8081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
8082 if (!SWIG_IsOK(res1)) {
8083 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputer4" "', argument " "1"" of type '" "uint8_t const *""'");
8085 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
8086 ecode2 = SWIG_AsVal_int(obj1, &val2);
8087 if (!SWIG_IsOK(ecode2)) {
8088 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputer4" "', argument " "2"" of type '" "int""'");
8090 arg2 =
static_cast< int >(val2);
8092 Py_BEGIN_ALLOW_THREADS
8096 PyEval_RestoreThread(_save);
8097 PyErr_SetString(PyExc_RuntimeError, e.
what());
8100 Py_END_ALLOW_THREADS
8102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer4, SWIG_POINTER_NEW | 0 );
8109 SWIGINTERN PyObject *_wrap_new_HammingComputer4(PyObject *
self, PyObject *args) {
8111 PyObject *argv[3] = {
8116 if (!PyTuple_Check(args)) SWIG_fail;
8117 argc = args ? PyObject_Length(args) : 0;
8118 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8119 argv[ii] = PyTuple_GET_ITEM(args,ii);
8122 return _wrap_new_HammingComputer4__SWIG_0(
self, args);
8127 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
8128 _v = SWIG_CheckState(res);
8131 int res = SWIG_AsVal_int(argv[1], NULL);
8132 _v = SWIG_CheckState(res);
8135 return _wrap_new_HammingComputer4__SWIG_1(
self, args);
8141 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputer4'.\n"
8142 " Possible C/C++ prototypes are:\n"
8143 " faiss::HammingComputer4::HammingComputer4()\n"
8144 " faiss::HammingComputer4::HammingComputer4(uint8_t const *,int)\n");
8149 SWIGINTERN PyObject *_wrap_HammingComputer4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8150 PyObject *resultobj = 0;
8152 uint8_t *arg2 = (uint8_t *) 0 ;
8160 PyObject * obj0 = 0 ;
8161 PyObject * obj1 = 0 ;
8162 PyObject * obj2 = 0 ;
8164 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputer4_set",&obj0,&obj1,&obj2)) SWIG_fail;
8165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer4, 0 | 0 );
8166 if (!SWIG_IsOK(res1)) {
8167 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer4_set" "', argument " "1"" of type '" "faiss::HammingComputer4 *""'");
8170 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8171 if (!SWIG_IsOK(res2)) {
8172 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer4_set" "', argument " "2"" of type '" "uint8_t const *""'");
8174 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8175 ecode3 = SWIG_AsVal_int(obj2, &val3);
8176 if (!SWIG_IsOK(ecode3)) {
8177 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputer4_set" "', argument " "3"" of type '" "int""'");
8179 arg3 =
static_cast< int >(val3);
8181 Py_BEGIN_ALLOW_THREADS
8183 (arg1)->set((uint8_t
const *)arg2,arg3);
8185 PyEval_RestoreThread(_save);
8186 PyErr_SetString(PyExc_RuntimeError, e.
what());
8189 Py_END_ALLOW_THREADS
8191 resultobj = SWIG_Py_Void();
8198 SWIGINTERN PyObject *_wrap_HammingComputer4_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8199 PyObject *resultobj = 0;
8201 uint8_t *arg2 = (uint8_t *) 0 ;
8206 PyObject * obj0 = 0 ;
8207 PyObject * obj1 = 0 ;
8210 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer4_hamming",&obj0,&obj1)) SWIG_fail;
8211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer4, 0 | 0 );
8212 if (!SWIG_IsOK(res1)) {
8213 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer4_hamming" "', argument " "1"" of type '" "faiss::HammingComputer4 const *""'");
8216 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8217 if (!SWIG_IsOK(res2)) {
8218 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer4_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
8220 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8222 Py_BEGIN_ALLOW_THREADS
8226 PyEval_RestoreThread(_save);
8227 PyErr_SetString(PyExc_RuntimeError, e.
what());
8230 Py_END_ALLOW_THREADS
8232 resultobj = SWIG_From_int(static_cast< int >(result));
8239 SWIGINTERN PyObject *_wrap_delete_HammingComputer4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8240 PyObject *resultobj = 0;
8244 PyObject * obj0 = 0 ;
8246 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputer4",&obj0)) SWIG_fail;
8247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer4, SWIG_POINTER_DISOWN | 0 );
8248 if (!SWIG_IsOK(res1)) {
8249 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputer4" "', argument " "1"" of type '" "faiss::HammingComputer4 *""'");
8253 resultobj = SWIG_Py_Void();
8260 SWIGINTERN PyObject *HammingComputer4_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8262 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
8263 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputer4, SWIG_NewClientData(obj));
8264 return SWIG_Py_Void();
8267 SWIGINTERN PyObject *_wrap_HammingComputer8_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8268 PyObject *resultobj = 0;
8273 unsigned long val2 ;
8275 PyObject * obj0 = 0 ;
8276 PyObject * obj1 = 0 ;
8278 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer8_a0_set",&obj0,&obj1)) SWIG_fail;
8279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer8, 0 | 0 );
8280 if (!SWIG_IsOK(res1)) {
8281 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer8_a0_set" "', argument " "1"" of type '" "faiss::HammingComputer8 *""'");
8284 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
8285 if (!SWIG_IsOK(ecode2)) {
8286 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer8_a0_set" "', argument " "2"" of type '" "uint64_t""'");
8288 arg2 =
static_cast< uint64_t
>(val2);
8289 if (arg1) (arg1)->a0 = arg2;
8290 resultobj = SWIG_Py_Void();
8297 SWIGINTERN PyObject *_wrap_HammingComputer8_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8298 PyObject *resultobj = 0;
8302 PyObject * obj0 = 0 ;
8305 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer8_a0_get",&obj0)) SWIG_fail;
8306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer8, 0 | 0 );
8307 if (!SWIG_IsOK(res1)) {
8308 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer8_a0_get" "', argument " "1"" of type '" "faiss::HammingComputer8 *""'");
8311 result = (uint64_t) ((arg1)->a0);
8312 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
8319 SWIGINTERN PyObject *_wrap_new_HammingComputer8__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8320 PyObject *resultobj = 0;
8323 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputer8")) SWIG_fail;
8325 Py_BEGIN_ALLOW_THREADS
8329 PyEval_RestoreThread(_save);
8330 PyErr_SetString(PyExc_RuntimeError, e.
what());
8333 Py_END_ALLOW_THREADS
8335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer8, SWIG_POINTER_NEW | 0 );
8342 SWIGINTERN PyObject *_wrap_new_HammingComputer8__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8343 PyObject *resultobj = 0;
8344 uint8_t *arg1 = (uint8_t *) 0 ;
8350 PyObject * obj0 = 0 ;
8351 PyObject * obj1 = 0 ;
8354 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputer8",&obj0,&obj1)) SWIG_fail;
8355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
8356 if (!SWIG_IsOK(res1)) {
8357 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputer8" "', argument " "1"" of type '" "uint8_t const *""'");
8359 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
8360 ecode2 = SWIG_AsVal_int(obj1, &val2);
8361 if (!SWIG_IsOK(ecode2)) {
8362 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputer8" "', argument " "2"" of type '" "int""'");
8364 arg2 =
static_cast< int >(val2);
8366 Py_BEGIN_ALLOW_THREADS
8370 PyEval_RestoreThread(_save);
8371 PyErr_SetString(PyExc_RuntimeError, e.
what());
8374 Py_END_ALLOW_THREADS
8376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer8, SWIG_POINTER_NEW | 0 );
8383 SWIGINTERN PyObject *_wrap_new_HammingComputer8(PyObject *
self, PyObject *args) {
8385 PyObject *argv[3] = {
8390 if (!PyTuple_Check(args)) SWIG_fail;
8391 argc = args ? PyObject_Length(args) : 0;
8392 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8393 argv[ii] = PyTuple_GET_ITEM(args,ii);
8396 return _wrap_new_HammingComputer8__SWIG_0(
self, args);
8401 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
8402 _v = SWIG_CheckState(res);
8405 int res = SWIG_AsVal_int(argv[1], NULL);
8406 _v = SWIG_CheckState(res);
8409 return _wrap_new_HammingComputer8__SWIG_1(
self, args);
8415 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputer8'.\n"
8416 " Possible C/C++ prototypes are:\n"
8417 " faiss::HammingComputer8::HammingComputer8()\n"
8418 " faiss::HammingComputer8::HammingComputer8(uint8_t const *,int)\n");
8423 SWIGINTERN PyObject *_wrap_HammingComputer8_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8424 PyObject *resultobj = 0;
8426 uint8_t *arg2 = (uint8_t *) 0 ;
8434 PyObject * obj0 = 0 ;
8435 PyObject * obj1 = 0 ;
8436 PyObject * obj2 = 0 ;
8438 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputer8_set",&obj0,&obj1,&obj2)) SWIG_fail;
8439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer8, 0 | 0 );
8440 if (!SWIG_IsOK(res1)) {
8441 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer8_set" "', argument " "1"" of type '" "faiss::HammingComputer8 *""'");
8444 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8445 if (!SWIG_IsOK(res2)) {
8446 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer8_set" "', argument " "2"" of type '" "uint8_t const *""'");
8448 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8449 ecode3 = SWIG_AsVal_int(obj2, &val3);
8450 if (!SWIG_IsOK(ecode3)) {
8451 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputer8_set" "', argument " "3"" of type '" "int""'");
8453 arg3 =
static_cast< int >(val3);
8455 Py_BEGIN_ALLOW_THREADS
8457 (arg1)->set((uint8_t
const *)arg2,arg3);
8459 PyEval_RestoreThread(_save);
8460 PyErr_SetString(PyExc_RuntimeError, e.
what());
8463 Py_END_ALLOW_THREADS
8465 resultobj = SWIG_Py_Void();
8472 SWIGINTERN PyObject *_wrap_HammingComputer8_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8473 PyObject *resultobj = 0;
8475 uint8_t *arg2 = (uint8_t *) 0 ;
8480 PyObject * obj0 = 0 ;
8481 PyObject * obj1 = 0 ;
8484 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer8_hamming",&obj0,&obj1)) SWIG_fail;
8485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer8, 0 | 0 );
8486 if (!SWIG_IsOK(res1)) {
8487 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer8_hamming" "', argument " "1"" of type '" "faiss::HammingComputer8 const *""'");
8490 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8491 if (!SWIG_IsOK(res2)) {
8492 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer8_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
8494 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8496 Py_BEGIN_ALLOW_THREADS
8500 PyEval_RestoreThread(_save);
8501 PyErr_SetString(PyExc_RuntimeError, e.
what());
8504 Py_END_ALLOW_THREADS
8506 resultobj = SWIG_From_int(static_cast< int >(result));
8513 SWIGINTERN PyObject *_wrap_delete_HammingComputer8(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8514 PyObject *resultobj = 0;
8518 PyObject * obj0 = 0 ;
8520 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputer8",&obj0)) SWIG_fail;
8521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer8, SWIG_POINTER_DISOWN | 0 );
8522 if (!SWIG_IsOK(res1)) {
8523 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputer8" "', argument " "1"" of type '" "faiss::HammingComputer8 *""'");
8527 resultobj = SWIG_Py_Void();
8534 SWIGINTERN PyObject *HammingComputer8_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8536 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
8537 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputer8, SWIG_NewClientData(obj));
8538 return SWIG_Py_Void();
8541 SWIGINTERN PyObject *_wrap_HammingComputer16_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8542 PyObject *resultobj = 0;
8547 unsigned long val2 ;
8549 PyObject * obj0 = 0 ;
8550 PyObject * obj1 = 0 ;
8552 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer16_a0_set",&obj0,&obj1)) SWIG_fail;
8553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer16, 0 | 0 );
8554 if (!SWIG_IsOK(res1)) {
8555 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer16_a0_set" "', argument " "1"" of type '" "faiss::HammingComputer16 *""'");
8558 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
8559 if (!SWIG_IsOK(ecode2)) {
8560 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer16_a0_set" "', argument " "2"" of type '" "uint64_t""'");
8562 arg2 =
static_cast< uint64_t
>(val2);
8563 if (arg1) (arg1)->a0 = arg2;
8564 resultobj = SWIG_Py_Void();
8571 SWIGINTERN PyObject *_wrap_HammingComputer16_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8572 PyObject *resultobj = 0;
8576 PyObject * obj0 = 0 ;
8579 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer16_a0_get",&obj0)) SWIG_fail;
8580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer16, 0 | 0 );
8581 if (!SWIG_IsOK(res1)) {
8582 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer16_a0_get" "', argument " "1"" of type '" "faiss::HammingComputer16 *""'");
8585 result = (uint64_t) ((arg1)->a0);
8586 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
8593 SWIGINTERN PyObject *_wrap_HammingComputer16_a1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8594 PyObject *resultobj = 0;
8599 unsigned long val2 ;
8601 PyObject * obj0 = 0 ;
8602 PyObject * obj1 = 0 ;
8604 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer16_a1_set",&obj0,&obj1)) SWIG_fail;
8605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer16, 0 | 0 );
8606 if (!SWIG_IsOK(res1)) {
8607 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer16_a1_set" "', argument " "1"" of type '" "faiss::HammingComputer16 *""'");
8610 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
8611 if (!SWIG_IsOK(ecode2)) {
8612 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer16_a1_set" "', argument " "2"" of type '" "uint64_t""'");
8614 arg2 =
static_cast< uint64_t
>(val2);
8615 if (arg1) (arg1)->a1 = arg2;
8616 resultobj = SWIG_Py_Void();
8623 SWIGINTERN PyObject *_wrap_HammingComputer16_a1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8624 PyObject *resultobj = 0;
8628 PyObject * obj0 = 0 ;
8631 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer16_a1_get",&obj0)) SWIG_fail;
8632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer16, 0 | 0 );
8633 if (!SWIG_IsOK(res1)) {
8634 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer16_a1_get" "', argument " "1"" of type '" "faiss::HammingComputer16 *""'");
8637 result = (uint64_t) ((arg1)->a1);
8638 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
8645 SWIGINTERN PyObject *_wrap_new_HammingComputer16__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8646 PyObject *resultobj = 0;
8649 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputer16")) SWIG_fail;
8651 Py_BEGIN_ALLOW_THREADS
8655 PyEval_RestoreThread(_save);
8656 PyErr_SetString(PyExc_RuntimeError, e.
what());
8659 Py_END_ALLOW_THREADS
8661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer16, SWIG_POINTER_NEW | 0 );
8668 SWIGINTERN PyObject *_wrap_new_HammingComputer16__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8669 PyObject *resultobj = 0;
8670 uint8_t *arg1 = (uint8_t *) 0 ;
8676 PyObject * obj0 = 0 ;
8677 PyObject * obj1 = 0 ;
8680 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputer16",&obj0,&obj1)) SWIG_fail;
8681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
8682 if (!SWIG_IsOK(res1)) {
8683 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputer16" "', argument " "1"" of type '" "uint8_t const *""'");
8685 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
8686 ecode2 = SWIG_AsVal_int(obj1, &val2);
8687 if (!SWIG_IsOK(ecode2)) {
8688 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputer16" "', argument " "2"" of type '" "int""'");
8690 arg2 =
static_cast< int >(val2);
8692 Py_BEGIN_ALLOW_THREADS
8696 PyEval_RestoreThread(_save);
8697 PyErr_SetString(PyExc_RuntimeError, e.
what());
8700 Py_END_ALLOW_THREADS
8702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer16, SWIG_POINTER_NEW | 0 );
8709 SWIGINTERN PyObject *_wrap_new_HammingComputer16(PyObject *
self, PyObject *args) {
8711 PyObject *argv[3] = {
8716 if (!PyTuple_Check(args)) SWIG_fail;
8717 argc = args ? PyObject_Length(args) : 0;
8718 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8719 argv[ii] = PyTuple_GET_ITEM(args,ii);
8722 return _wrap_new_HammingComputer16__SWIG_0(
self, args);
8727 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
8728 _v = SWIG_CheckState(res);
8731 int res = SWIG_AsVal_int(argv[1], NULL);
8732 _v = SWIG_CheckState(res);
8735 return _wrap_new_HammingComputer16__SWIG_1(
self, args);
8741 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputer16'.\n"
8742 " Possible C/C++ prototypes are:\n"
8743 " faiss::HammingComputer16::HammingComputer16()\n"
8744 " faiss::HammingComputer16::HammingComputer16(uint8_t const *,int)\n");
8749 SWIGINTERN PyObject *_wrap_HammingComputer16_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8750 PyObject *resultobj = 0;
8752 uint8_t *arg2 = (uint8_t *) 0 ;
8760 PyObject * obj0 = 0 ;
8761 PyObject * obj1 = 0 ;
8762 PyObject * obj2 = 0 ;
8764 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputer16_set",&obj0,&obj1,&obj2)) SWIG_fail;
8765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer16, 0 | 0 );
8766 if (!SWIG_IsOK(res1)) {
8767 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer16_set" "', argument " "1"" of type '" "faiss::HammingComputer16 *""'");
8770 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8771 if (!SWIG_IsOK(res2)) {
8772 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer16_set" "', argument " "2"" of type '" "uint8_t const *""'");
8774 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8775 ecode3 = SWIG_AsVal_int(obj2, &val3);
8776 if (!SWIG_IsOK(ecode3)) {
8777 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputer16_set" "', argument " "3"" of type '" "int""'");
8779 arg3 =
static_cast< int >(val3);
8781 Py_BEGIN_ALLOW_THREADS
8783 (arg1)->set((uint8_t
const *)arg2,arg3);
8785 PyEval_RestoreThread(_save);
8786 PyErr_SetString(PyExc_RuntimeError, e.
what());
8789 Py_END_ALLOW_THREADS
8791 resultobj = SWIG_Py_Void();
8798 SWIGINTERN PyObject *_wrap_HammingComputer16_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8799 PyObject *resultobj = 0;
8801 uint8_t *arg2 = (uint8_t *) 0 ;
8806 PyObject * obj0 = 0 ;
8807 PyObject * obj1 = 0 ;
8810 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer16_hamming",&obj0,&obj1)) SWIG_fail;
8811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer16, 0 | 0 );
8812 if (!SWIG_IsOK(res1)) {
8813 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer16_hamming" "', argument " "1"" of type '" "faiss::HammingComputer16 const *""'");
8816 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8817 if (!SWIG_IsOK(res2)) {
8818 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer16_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
8820 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8822 Py_BEGIN_ALLOW_THREADS
8826 PyEval_RestoreThread(_save);
8827 PyErr_SetString(PyExc_RuntimeError, e.
what());
8830 Py_END_ALLOW_THREADS
8832 resultobj = SWIG_From_int(static_cast< int >(result));
8839 SWIGINTERN PyObject *_wrap_delete_HammingComputer16(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8840 PyObject *resultobj = 0;
8844 PyObject * obj0 = 0 ;
8846 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputer16",&obj0)) SWIG_fail;
8847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer16, SWIG_POINTER_DISOWN | 0 );
8848 if (!SWIG_IsOK(res1)) {
8849 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputer16" "', argument " "1"" of type '" "faiss::HammingComputer16 *""'");
8853 resultobj = SWIG_Py_Void();
8860 SWIGINTERN PyObject *HammingComputer16_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8862 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
8863 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputer16, SWIG_NewClientData(obj));
8864 return SWIG_Py_Void();
8867 SWIGINTERN PyObject *_wrap_HammingComputer20_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8868 PyObject *resultobj = 0;
8873 unsigned long val2 ;
8875 PyObject * obj0 = 0 ;
8876 PyObject * obj1 = 0 ;
8878 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer20_a0_set",&obj0,&obj1)) SWIG_fail;
8879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
8880 if (!SWIG_IsOK(res1)) {
8881 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_a0_set" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
8884 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
8885 if (!SWIG_IsOK(ecode2)) {
8886 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer20_a0_set" "', argument " "2"" of type '" "uint64_t""'");
8888 arg2 =
static_cast< uint64_t
>(val2);
8889 if (arg1) (arg1)->a0 = arg2;
8890 resultobj = SWIG_Py_Void();
8897 SWIGINTERN PyObject *_wrap_HammingComputer20_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8898 PyObject *resultobj = 0;
8902 PyObject * obj0 = 0 ;
8905 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer20_a0_get",&obj0)) SWIG_fail;
8906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
8907 if (!SWIG_IsOK(res1)) {
8908 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_a0_get" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
8911 result = (uint64_t) ((arg1)->a0);
8912 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
8919 SWIGINTERN PyObject *_wrap_HammingComputer20_a1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8920 PyObject *resultobj = 0;
8925 unsigned long val2 ;
8927 PyObject * obj0 = 0 ;
8928 PyObject * obj1 = 0 ;
8930 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer20_a1_set",&obj0,&obj1)) SWIG_fail;
8931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
8932 if (!SWIG_IsOK(res1)) {
8933 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_a1_set" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
8936 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
8937 if (!SWIG_IsOK(ecode2)) {
8938 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer20_a1_set" "', argument " "2"" of type '" "uint64_t""'");
8940 arg2 =
static_cast< uint64_t
>(val2);
8941 if (arg1) (arg1)->a1 = arg2;
8942 resultobj = SWIG_Py_Void();
8949 SWIGINTERN PyObject *_wrap_HammingComputer20_a1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8950 PyObject *resultobj = 0;
8954 PyObject * obj0 = 0 ;
8957 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer20_a1_get",&obj0)) SWIG_fail;
8958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
8959 if (!SWIG_IsOK(res1)) {
8960 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_a1_get" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
8963 result = (uint64_t) ((arg1)->a1);
8964 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
8971 SWIGINTERN PyObject *_wrap_HammingComputer20_a2_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8972 PyObject *resultobj = 0;
8979 PyObject * obj0 = 0 ;
8980 PyObject * obj1 = 0 ;
8982 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer20_a2_set",&obj0,&obj1)) SWIG_fail;
8983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
8984 if (!SWIG_IsOK(res1)) {
8985 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_a2_set" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
8989 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint32_t, 0 | 0);
8990 if (!SWIG_IsOK(res2)) {
8991 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer20_a2_set" "', argument " "2"" of type '" "uint32_t""'");
8994 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HammingComputer20_a2_set" "', argument " "2"" of type '" "uint32_t""'");
8996 uint32_t * temp =
reinterpret_cast< uint32_t *
>(argp2);
8998 if (SWIG_IsNewObj(res2))
delete temp;
9001 if (arg1) (arg1)->a2 = arg2;
9002 resultobj = SWIG_Py_Void();
9009 SWIGINTERN PyObject *_wrap_HammingComputer20_a2_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9010 PyObject *resultobj = 0;
9014 PyObject * obj0 = 0 ;
9017 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer20_a2_get",&obj0)) SWIG_fail;
9018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
9019 if (!SWIG_IsOK(res1)) {
9020 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_a2_get" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
9023 result = ((arg1)->a2);
9024 resultobj = SWIG_NewPointerObj((
new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0 );
9031 SWIGINTERN PyObject *_wrap_new_HammingComputer20__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9032 PyObject *resultobj = 0;
9035 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputer20")) SWIG_fail;
9037 Py_BEGIN_ALLOW_THREADS
9041 PyEval_RestoreThread(_save);
9042 PyErr_SetString(PyExc_RuntimeError, e.
what());
9045 Py_END_ALLOW_THREADS
9047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer20, SWIG_POINTER_NEW | 0 );
9054 SWIGINTERN PyObject *_wrap_new_HammingComputer20__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9055 PyObject *resultobj = 0;
9056 uint8_t *arg1 = (uint8_t *) 0 ;
9062 PyObject * obj0 = 0 ;
9063 PyObject * obj1 = 0 ;
9066 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputer20",&obj0,&obj1)) SWIG_fail;
9067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
9068 if (!SWIG_IsOK(res1)) {
9069 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputer20" "', argument " "1"" of type '" "uint8_t const *""'");
9071 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
9072 ecode2 = SWIG_AsVal_int(obj1, &val2);
9073 if (!SWIG_IsOK(ecode2)) {
9074 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputer20" "', argument " "2"" of type '" "int""'");
9076 arg2 =
static_cast< int >(val2);
9078 Py_BEGIN_ALLOW_THREADS
9082 PyEval_RestoreThread(_save);
9083 PyErr_SetString(PyExc_RuntimeError, e.
what());
9086 Py_END_ALLOW_THREADS
9088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer20, SWIG_POINTER_NEW | 0 );
9095 SWIGINTERN PyObject *_wrap_new_HammingComputer20(PyObject *
self, PyObject *args) {
9097 PyObject *argv[3] = {
9102 if (!PyTuple_Check(args)) SWIG_fail;
9103 argc = args ? PyObject_Length(args) : 0;
9104 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
9105 argv[ii] = PyTuple_GET_ITEM(args,ii);
9108 return _wrap_new_HammingComputer20__SWIG_0(
self, args);
9113 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
9114 _v = SWIG_CheckState(res);
9117 int res = SWIG_AsVal_int(argv[1], NULL);
9118 _v = SWIG_CheckState(res);
9121 return _wrap_new_HammingComputer20__SWIG_1(
self, args);
9127 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputer20'.\n"
9128 " Possible C/C++ prototypes are:\n"
9129 " faiss::HammingComputer20::HammingComputer20()\n"
9130 " faiss::HammingComputer20::HammingComputer20(uint8_t const *,int)\n");
9135 SWIGINTERN PyObject *_wrap_HammingComputer20_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9136 PyObject *resultobj = 0;
9138 uint8_t *arg2 = (uint8_t *) 0 ;
9146 PyObject * obj0 = 0 ;
9147 PyObject * obj1 = 0 ;
9148 PyObject * obj2 = 0 ;
9150 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputer20_set",&obj0,&obj1,&obj2)) SWIG_fail;
9151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
9152 if (!SWIG_IsOK(res1)) {
9153 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_set" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
9156 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
9157 if (!SWIG_IsOK(res2)) {
9158 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer20_set" "', argument " "2"" of type '" "uint8_t const *""'");
9160 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
9161 ecode3 = SWIG_AsVal_int(obj2, &val3);
9162 if (!SWIG_IsOK(ecode3)) {
9163 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputer20_set" "', argument " "3"" of type '" "int""'");
9165 arg3 =
static_cast< int >(val3);
9167 Py_BEGIN_ALLOW_THREADS
9169 (arg1)->set((uint8_t
const *)arg2,arg3);
9171 PyEval_RestoreThread(_save);
9172 PyErr_SetString(PyExc_RuntimeError, e.
what());
9175 Py_END_ALLOW_THREADS
9177 resultobj = SWIG_Py_Void();
9184 SWIGINTERN PyObject *_wrap_HammingComputer20_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9185 PyObject *resultobj = 0;
9187 uint8_t *arg2 = (uint8_t *) 0 ;
9192 PyObject * obj0 = 0 ;
9193 PyObject * obj1 = 0 ;
9196 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer20_hamming",&obj0,&obj1)) SWIG_fail;
9197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
9198 if (!SWIG_IsOK(res1)) {
9199 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_hamming" "', argument " "1"" of type '" "faiss::HammingComputer20 const *""'");
9202 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
9203 if (!SWIG_IsOK(res2)) {
9204 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer20_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
9206 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
9208 Py_BEGIN_ALLOW_THREADS
9212 PyEval_RestoreThread(_save);
9213 PyErr_SetString(PyExc_RuntimeError, e.
what());
9216 Py_END_ALLOW_THREADS
9218 resultobj = SWIG_From_int(static_cast< int >(result));
9225 SWIGINTERN PyObject *_wrap_delete_HammingComputer20(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9226 PyObject *resultobj = 0;
9230 PyObject * obj0 = 0 ;
9232 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputer20",&obj0)) SWIG_fail;
9233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, SWIG_POINTER_DISOWN | 0 );
9234 if (!SWIG_IsOK(res1)) {
9235 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputer20" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
9239 resultobj = SWIG_Py_Void();
9246 SWIGINTERN PyObject *HammingComputer20_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9248 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
9249 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputer20, SWIG_NewClientData(obj));
9250 return SWIG_Py_Void();
9253 SWIGINTERN PyObject *_wrap_HammingComputer32_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9254 PyObject *resultobj = 0;
9259 unsigned long val2 ;
9261 PyObject * obj0 = 0 ;
9262 PyObject * obj1 = 0 ;
9264 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer32_a0_set",&obj0,&obj1)) SWIG_fail;
9265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9266 if (!SWIG_IsOK(res1)) {
9267 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a0_set" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9270 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9271 if (!SWIG_IsOK(ecode2)) {
9272 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer32_a0_set" "', argument " "2"" of type '" "uint64_t""'");
9274 arg2 =
static_cast< uint64_t
>(val2);
9275 if (arg1) (arg1)->a0 = arg2;
9276 resultobj = SWIG_Py_Void();
9283 SWIGINTERN PyObject *_wrap_HammingComputer32_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9284 PyObject *resultobj = 0;
9288 PyObject * obj0 = 0 ;
9291 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer32_a0_get",&obj0)) SWIG_fail;
9292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9293 if (!SWIG_IsOK(res1)) {
9294 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a0_get" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9297 result = (uint64_t) ((arg1)->a0);
9298 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9305 SWIGINTERN PyObject *_wrap_HammingComputer32_a1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9306 PyObject *resultobj = 0;
9311 unsigned long val2 ;
9313 PyObject * obj0 = 0 ;
9314 PyObject * obj1 = 0 ;
9316 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer32_a1_set",&obj0,&obj1)) SWIG_fail;
9317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9318 if (!SWIG_IsOK(res1)) {
9319 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a1_set" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9322 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9323 if (!SWIG_IsOK(ecode2)) {
9324 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer32_a1_set" "', argument " "2"" of type '" "uint64_t""'");
9326 arg2 =
static_cast< uint64_t
>(val2);
9327 if (arg1) (arg1)->a1 = arg2;
9328 resultobj = SWIG_Py_Void();
9335 SWIGINTERN PyObject *_wrap_HammingComputer32_a1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9336 PyObject *resultobj = 0;
9340 PyObject * obj0 = 0 ;
9343 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer32_a1_get",&obj0)) SWIG_fail;
9344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9345 if (!SWIG_IsOK(res1)) {
9346 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a1_get" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9349 result = (uint64_t) ((arg1)->a1);
9350 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9357 SWIGINTERN PyObject *_wrap_HammingComputer32_a2_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9358 PyObject *resultobj = 0;
9363 unsigned long val2 ;
9365 PyObject * obj0 = 0 ;
9366 PyObject * obj1 = 0 ;
9368 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer32_a2_set",&obj0,&obj1)) SWIG_fail;
9369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9370 if (!SWIG_IsOK(res1)) {
9371 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a2_set" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9374 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9375 if (!SWIG_IsOK(ecode2)) {
9376 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer32_a2_set" "', argument " "2"" of type '" "uint64_t""'");
9378 arg2 =
static_cast< uint64_t
>(val2);
9379 if (arg1) (arg1)->a2 = arg2;
9380 resultobj = SWIG_Py_Void();
9387 SWIGINTERN PyObject *_wrap_HammingComputer32_a2_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9388 PyObject *resultobj = 0;
9392 PyObject * obj0 = 0 ;
9395 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer32_a2_get",&obj0)) SWIG_fail;
9396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9397 if (!SWIG_IsOK(res1)) {
9398 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a2_get" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9401 result = (uint64_t) ((arg1)->a2);
9402 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9409 SWIGINTERN PyObject *_wrap_HammingComputer32_a3_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9410 PyObject *resultobj = 0;
9415 unsigned long val2 ;
9417 PyObject * obj0 = 0 ;
9418 PyObject * obj1 = 0 ;
9420 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer32_a3_set",&obj0,&obj1)) SWIG_fail;
9421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9422 if (!SWIG_IsOK(res1)) {
9423 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a3_set" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9426 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9427 if (!SWIG_IsOK(ecode2)) {
9428 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer32_a3_set" "', argument " "2"" of type '" "uint64_t""'");
9430 arg2 =
static_cast< uint64_t
>(val2);
9431 if (arg1) (arg1)->a3 = arg2;
9432 resultobj = SWIG_Py_Void();
9439 SWIGINTERN PyObject *_wrap_HammingComputer32_a3_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9440 PyObject *resultobj = 0;
9444 PyObject * obj0 = 0 ;
9447 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer32_a3_get",&obj0)) SWIG_fail;
9448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9449 if (!SWIG_IsOK(res1)) {
9450 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a3_get" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9453 result = (uint64_t) ((arg1)->a3);
9454 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9461 SWIGINTERN PyObject *_wrap_new_HammingComputer32__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9462 PyObject *resultobj = 0;
9465 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputer32")) SWIG_fail;
9467 Py_BEGIN_ALLOW_THREADS
9471 PyEval_RestoreThread(_save);
9472 PyErr_SetString(PyExc_RuntimeError, e.
what());
9475 Py_END_ALLOW_THREADS
9477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer32, SWIG_POINTER_NEW | 0 );
9484 SWIGINTERN PyObject *_wrap_new_HammingComputer32__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9485 PyObject *resultobj = 0;
9486 uint8_t *arg1 = (uint8_t *) 0 ;
9492 PyObject * obj0 = 0 ;
9493 PyObject * obj1 = 0 ;
9496 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputer32",&obj0,&obj1)) SWIG_fail;
9497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
9498 if (!SWIG_IsOK(res1)) {
9499 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputer32" "', argument " "1"" of type '" "uint8_t const *""'");
9501 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
9502 ecode2 = SWIG_AsVal_int(obj1, &val2);
9503 if (!SWIG_IsOK(ecode2)) {
9504 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputer32" "', argument " "2"" of type '" "int""'");
9506 arg2 =
static_cast< int >(val2);
9508 Py_BEGIN_ALLOW_THREADS
9512 PyEval_RestoreThread(_save);
9513 PyErr_SetString(PyExc_RuntimeError, e.
what());
9516 Py_END_ALLOW_THREADS
9518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer32, SWIG_POINTER_NEW | 0 );
9525 SWIGINTERN PyObject *_wrap_new_HammingComputer32(PyObject *
self, PyObject *args) {
9527 PyObject *argv[3] = {
9532 if (!PyTuple_Check(args)) SWIG_fail;
9533 argc = args ? PyObject_Length(args) : 0;
9534 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
9535 argv[ii] = PyTuple_GET_ITEM(args,ii);
9538 return _wrap_new_HammingComputer32__SWIG_0(
self, args);
9543 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
9544 _v = SWIG_CheckState(res);
9547 int res = SWIG_AsVal_int(argv[1], NULL);
9548 _v = SWIG_CheckState(res);
9551 return _wrap_new_HammingComputer32__SWIG_1(
self, args);
9557 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputer32'.\n"
9558 " Possible C/C++ prototypes are:\n"
9559 " faiss::HammingComputer32::HammingComputer32()\n"
9560 " faiss::HammingComputer32::HammingComputer32(uint8_t const *,int)\n");
9565 SWIGINTERN PyObject *_wrap_HammingComputer32_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9566 PyObject *resultobj = 0;
9568 uint8_t *arg2 = (uint8_t *) 0 ;
9576 PyObject * obj0 = 0 ;
9577 PyObject * obj1 = 0 ;
9578 PyObject * obj2 = 0 ;
9580 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputer32_set",&obj0,&obj1,&obj2)) SWIG_fail;
9581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9582 if (!SWIG_IsOK(res1)) {
9583 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_set" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9586 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
9587 if (!SWIG_IsOK(res2)) {
9588 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer32_set" "', argument " "2"" of type '" "uint8_t const *""'");
9590 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
9591 ecode3 = SWIG_AsVal_int(obj2, &val3);
9592 if (!SWIG_IsOK(ecode3)) {
9593 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputer32_set" "', argument " "3"" of type '" "int""'");
9595 arg3 =
static_cast< int >(val3);
9597 Py_BEGIN_ALLOW_THREADS
9599 (arg1)->set((uint8_t
const *)arg2,arg3);
9601 PyEval_RestoreThread(_save);
9602 PyErr_SetString(PyExc_RuntimeError, e.
what());
9605 Py_END_ALLOW_THREADS
9607 resultobj = SWIG_Py_Void();
9614 SWIGINTERN PyObject *_wrap_HammingComputer32_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9615 PyObject *resultobj = 0;
9617 uint8_t *arg2 = (uint8_t *) 0 ;
9622 PyObject * obj0 = 0 ;
9623 PyObject * obj1 = 0 ;
9626 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer32_hamming",&obj0,&obj1)) SWIG_fail;
9627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9628 if (!SWIG_IsOK(res1)) {
9629 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_hamming" "', argument " "1"" of type '" "faiss::HammingComputer32 const *""'");
9632 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
9633 if (!SWIG_IsOK(res2)) {
9634 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer32_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
9636 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
9638 Py_BEGIN_ALLOW_THREADS
9642 PyEval_RestoreThread(_save);
9643 PyErr_SetString(PyExc_RuntimeError, e.
what());
9646 Py_END_ALLOW_THREADS
9648 resultobj = SWIG_From_int(static_cast< int >(result));
9655 SWIGINTERN PyObject *_wrap_delete_HammingComputer32(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9656 PyObject *resultobj = 0;
9660 PyObject * obj0 = 0 ;
9662 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputer32",&obj0)) SWIG_fail;
9663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, SWIG_POINTER_DISOWN | 0 );
9664 if (!SWIG_IsOK(res1)) {
9665 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputer32" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9669 resultobj = SWIG_Py_Void();
9676 SWIGINTERN PyObject *HammingComputer32_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9678 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
9679 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputer32, SWIG_NewClientData(obj));
9680 return SWIG_Py_Void();
9683 SWIGINTERN PyObject *_wrap_HammingComputer64_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9684 PyObject *resultobj = 0;
9689 unsigned long val2 ;
9691 PyObject * obj0 = 0 ;
9692 PyObject * obj1 = 0 ;
9694 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a0_set",&obj0,&obj1)) SWIG_fail;
9695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
9696 if (!SWIG_IsOK(res1)) {
9697 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a0_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
9700 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9701 if (!SWIG_IsOK(ecode2)) {
9702 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a0_set" "', argument " "2"" of type '" "uint64_t""'");
9704 arg2 =
static_cast< uint64_t
>(val2);
9705 if (arg1) (arg1)->a0 = arg2;
9706 resultobj = SWIG_Py_Void();
9713 SWIGINTERN PyObject *_wrap_HammingComputer64_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9714 PyObject *resultobj = 0;
9718 PyObject * obj0 = 0 ;
9721 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a0_get",&obj0)) SWIG_fail;
9722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
9723 if (!SWIG_IsOK(res1)) {
9724 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a0_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
9727 result = (uint64_t) ((arg1)->a0);
9728 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9735 SWIGINTERN PyObject *_wrap_HammingComputer64_a1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9736 PyObject *resultobj = 0;
9741 unsigned long val2 ;
9743 PyObject * obj0 = 0 ;
9744 PyObject * obj1 = 0 ;
9746 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a1_set",&obj0,&obj1)) SWIG_fail;
9747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
9748 if (!SWIG_IsOK(res1)) {
9749 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a1_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
9752 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9753 if (!SWIG_IsOK(ecode2)) {
9754 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a1_set" "', argument " "2"" of type '" "uint64_t""'");
9756 arg2 =
static_cast< uint64_t
>(val2);
9757 if (arg1) (arg1)->a1 = arg2;
9758 resultobj = SWIG_Py_Void();
9765 SWIGINTERN PyObject *_wrap_HammingComputer64_a1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9766 PyObject *resultobj = 0;
9770 PyObject * obj0 = 0 ;
9773 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a1_get",&obj0)) SWIG_fail;
9774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
9775 if (!SWIG_IsOK(res1)) {
9776 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a1_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
9779 result = (uint64_t) ((arg1)->a1);
9780 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9787 SWIGINTERN PyObject *_wrap_HammingComputer64_a2_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9788 PyObject *resultobj = 0;
9793 unsigned long val2 ;
9795 PyObject * obj0 = 0 ;
9796 PyObject * obj1 = 0 ;
9798 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a2_set",&obj0,&obj1)) SWIG_fail;
9799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
9800 if (!SWIG_IsOK(res1)) {
9801 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a2_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
9804 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9805 if (!SWIG_IsOK(ecode2)) {
9806 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a2_set" "', argument " "2"" of type '" "uint64_t""'");
9808 arg2 =
static_cast< uint64_t
>(val2);
9809 if (arg1) (arg1)->a2 = arg2;
9810 resultobj = SWIG_Py_Void();
9817 SWIGINTERN PyObject *_wrap_HammingComputer64_a2_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9818 PyObject *resultobj = 0;
9822 PyObject * obj0 = 0 ;
9825 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a2_get",&obj0)) SWIG_fail;
9826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
9827 if (!SWIG_IsOK(res1)) {
9828 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a2_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
9831 result = (uint64_t) ((arg1)->a2);
9832 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9839 SWIGINTERN PyObject *_wrap_HammingComputer64_a3_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9840 PyObject *resultobj = 0;
9845 unsigned long val2 ;
9847 PyObject * obj0 = 0 ;
9848 PyObject * obj1 = 0 ;
9850 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a3_set",&obj0,&obj1)) SWIG_fail;
9851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
9852 if (!SWIG_IsOK(res1)) {
9853 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a3_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
9856 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9857 if (!SWIG_IsOK(ecode2)) {
9858 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a3_set" "', argument " "2"" of type '" "uint64_t""'");
9860 arg2 =
static_cast< uint64_t
>(val2);
9861 if (arg1) (arg1)->a3 = arg2;
9862 resultobj = SWIG_Py_Void();
9869 SWIGINTERN PyObject *_wrap_HammingComputer64_a3_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9870 PyObject *resultobj = 0;
9874 PyObject * obj0 = 0 ;
9877 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a3_get",&obj0)) SWIG_fail;
9878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
9879 if (!SWIG_IsOK(res1)) {
9880 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a3_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
9883 result = (uint64_t) ((arg1)->a3);
9884 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9891 SWIGINTERN PyObject *_wrap_HammingComputer64_a4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9892 PyObject *resultobj = 0;
9897 unsigned long val2 ;
9899 PyObject * obj0 = 0 ;
9900 PyObject * obj1 = 0 ;
9902 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a4_set",&obj0,&obj1)) SWIG_fail;
9903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
9904 if (!SWIG_IsOK(res1)) {
9905 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a4_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
9908 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9909 if (!SWIG_IsOK(ecode2)) {
9910 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a4_set" "', argument " "2"" of type '" "uint64_t""'");
9912 arg2 =
static_cast< uint64_t
>(val2);
9913 if (arg1) (arg1)->a4 = arg2;
9914 resultobj = SWIG_Py_Void();
9921 SWIGINTERN PyObject *_wrap_HammingComputer64_a4_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9922 PyObject *resultobj = 0;
9926 PyObject * obj0 = 0 ;
9929 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a4_get",&obj0)) SWIG_fail;
9930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
9931 if (!SWIG_IsOK(res1)) {
9932 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a4_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
9935 result = (uint64_t) ((arg1)->a4);
9936 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9943 SWIGINTERN PyObject *_wrap_HammingComputer64_a5_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9944 PyObject *resultobj = 0;
9949 unsigned long val2 ;
9951 PyObject * obj0 = 0 ;
9952 PyObject * obj1 = 0 ;
9954 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a5_set",&obj0,&obj1)) SWIG_fail;
9955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
9956 if (!SWIG_IsOK(res1)) {
9957 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a5_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
9960 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9961 if (!SWIG_IsOK(ecode2)) {
9962 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a5_set" "', argument " "2"" of type '" "uint64_t""'");
9964 arg2 =
static_cast< uint64_t
>(val2);
9965 if (arg1) (arg1)->a5 = arg2;
9966 resultobj = SWIG_Py_Void();
9973 SWIGINTERN PyObject *_wrap_HammingComputer64_a5_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9974 PyObject *resultobj = 0;
9978 PyObject * obj0 = 0 ;
9981 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a5_get",&obj0)) SWIG_fail;
9982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
9983 if (!SWIG_IsOK(res1)) {
9984 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a5_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
9987 result = (uint64_t) ((arg1)->a5);
9988 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9995 SWIGINTERN PyObject *_wrap_HammingComputer64_a6_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9996 PyObject *resultobj = 0;
10001 unsigned long val2 ;
10003 PyObject * obj0 = 0 ;
10004 PyObject * obj1 = 0 ;
10006 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a6_set",&obj0,&obj1)) SWIG_fail;
10007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10008 if (!SWIG_IsOK(res1)) {
10009 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a6_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10012 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
10013 if (!SWIG_IsOK(ecode2)) {
10014 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a6_set" "', argument " "2"" of type '" "uint64_t""'");
10016 arg2 =
static_cast< uint64_t
>(val2);
10017 if (arg1) (arg1)->a6 = arg2;
10018 resultobj = SWIG_Py_Void();
10025 SWIGINTERN PyObject *_wrap_HammingComputer64_a6_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10026 PyObject *resultobj = 0;
10030 PyObject * obj0 = 0 ;
10033 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a6_get",&obj0)) SWIG_fail;
10034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10035 if (!SWIG_IsOK(res1)) {
10036 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a6_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10039 result = (uint64_t) ((arg1)->a6);
10040 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
10047 SWIGINTERN PyObject *_wrap_HammingComputer64_a7_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10048 PyObject *resultobj = 0;
10053 unsigned long val2 ;
10055 PyObject * obj0 = 0 ;
10056 PyObject * obj1 = 0 ;
10058 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a7_set",&obj0,&obj1)) SWIG_fail;
10059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10060 if (!SWIG_IsOK(res1)) {
10061 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a7_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10064 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
10065 if (!SWIG_IsOK(ecode2)) {
10066 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a7_set" "', argument " "2"" of type '" "uint64_t""'");
10068 arg2 =
static_cast< uint64_t
>(val2);
10069 if (arg1) (arg1)->a7 = arg2;
10070 resultobj = SWIG_Py_Void();
10077 SWIGINTERN PyObject *_wrap_HammingComputer64_a7_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10078 PyObject *resultobj = 0;
10082 PyObject * obj0 = 0 ;
10085 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a7_get",&obj0)) SWIG_fail;
10086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10087 if (!SWIG_IsOK(res1)) {
10088 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a7_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10091 result = (uint64_t) ((arg1)->a7);
10092 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
10099 SWIGINTERN PyObject *_wrap_new_HammingComputer64__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10100 PyObject *resultobj = 0;
10103 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputer64")) SWIG_fail;
10105 Py_BEGIN_ALLOW_THREADS
10109 PyEval_RestoreThread(_save);
10110 PyErr_SetString(PyExc_RuntimeError, e.
what());
10113 Py_END_ALLOW_THREADS
10115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer64, SWIG_POINTER_NEW | 0 );
10122 SWIGINTERN PyObject *_wrap_new_HammingComputer64__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10123 PyObject *resultobj = 0;
10124 uint8_t *arg1 = (uint8_t *) 0 ;
10130 PyObject * obj0 = 0 ;
10131 PyObject * obj1 = 0 ;
10134 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputer64",&obj0,&obj1)) SWIG_fail;
10135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
10136 if (!SWIG_IsOK(res1)) {
10137 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputer64" "', argument " "1"" of type '" "uint8_t const *""'");
10139 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
10140 ecode2 = SWIG_AsVal_int(obj1, &val2);
10141 if (!SWIG_IsOK(ecode2)) {
10142 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputer64" "', argument " "2"" of type '" "int""'");
10144 arg2 =
static_cast< int >(val2);
10146 Py_BEGIN_ALLOW_THREADS
10150 PyEval_RestoreThread(_save);
10151 PyErr_SetString(PyExc_RuntimeError, e.
what());
10154 Py_END_ALLOW_THREADS
10156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer64, SWIG_POINTER_NEW | 0 );
10163 SWIGINTERN PyObject *_wrap_new_HammingComputer64(PyObject *
self, PyObject *args) {
10165 PyObject *argv[3] = {
10170 if (!PyTuple_Check(args)) SWIG_fail;
10171 argc = args ? PyObject_Length(args) : 0;
10172 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
10173 argv[ii] = PyTuple_GET_ITEM(args,ii);
10176 return _wrap_new_HammingComputer64__SWIG_0(
self, args);
10181 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
10182 _v = SWIG_CheckState(res);
10185 int res = SWIG_AsVal_int(argv[1], NULL);
10186 _v = SWIG_CheckState(res);
10189 return _wrap_new_HammingComputer64__SWIG_1(
self, args);
10195 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputer64'.\n"
10196 " Possible C/C++ prototypes are:\n"
10197 " faiss::HammingComputer64::HammingComputer64()\n"
10198 " faiss::HammingComputer64::HammingComputer64(uint8_t const *,int)\n");
10203 SWIGINTERN PyObject *_wrap_HammingComputer64_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10204 PyObject *resultobj = 0;
10206 uint8_t *arg2 = (uint8_t *) 0 ;
10214 PyObject * obj0 = 0 ;
10215 PyObject * obj1 = 0 ;
10216 PyObject * obj2 = 0 ;
10218 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputer64_set",&obj0,&obj1,&obj2)) SWIG_fail;
10219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10220 if (!SWIG_IsOK(res1)) {
10221 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10224 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
10225 if (!SWIG_IsOK(res2)) {
10226 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer64_set" "', argument " "2"" of type '" "uint8_t const *""'");
10228 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
10229 ecode3 = SWIG_AsVal_int(obj2, &val3);
10230 if (!SWIG_IsOK(ecode3)) {
10231 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputer64_set" "', argument " "3"" of type '" "int""'");
10233 arg3 =
static_cast< int >(val3);
10235 Py_BEGIN_ALLOW_THREADS
10237 (arg1)->set((uint8_t
const *)arg2,arg3);
10239 PyEval_RestoreThread(_save);
10240 PyErr_SetString(PyExc_RuntimeError, e.
what());
10243 Py_END_ALLOW_THREADS
10245 resultobj = SWIG_Py_Void();
10252 SWIGINTERN PyObject *_wrap_HammingComputer64_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10253 PyObject *resultobj = 0;
10255 uint8_t *arg2 = (uint8_t *) 0 ;
10260 PyObject * obj0 = 0 ;
10261 PyObject * obj1 = 0 ;
10264 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_hamming",&obj0,&obj1)) SWIG_fail;
10265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10266 if (!SWIG_IsOK(res1)) {
10267 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_hamming" "', argument " "1"" of type '" "faiss::HammingComputer64 const *""'");
10270 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
10271 if (!SWIG_IsOK(res2)) {
10272 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer64_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
10274 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
10276 Py_BEGIN_ALLOW_THREADS
10280 PyEval_RestoreThread(_save);
10281 PyErr_SetString(PyExc_RuntimeError, e.
what());
10284 Py_END_ALLOW_THREADS
10286 resultobj = SWIG_From_int(static_cast< int >(result));
10293 SWIGINTERN PyObject *_wrap_delete_HammingComputer64(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10294 PyObject *resultobj = 0;
10298 PyObject * obj0 = 0 ;
10300 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputer64",&obj0)) SWIG_fail;
10301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, SWIG_POINTER_DISOWN | 0 );
10302 if (!SWIG_IsOK(res1)) {
10303 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputer64" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10307 resultobj = SWIG_Py_Void();
10314 SWIGINTERN PyObject *HammingComputer64_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10316 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
10317 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputer64, SWIG_NewClientData(obj));
10318 return SWIG_Py_Void();
10321 SWIGINTERN PyObject *_wrap_HammingComputerDefault_a_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10322 PyObject *resultobj = 0;
10324 uint8_t *arg2 = (uint8_t *) 0 ;
10329 PyObject * obj0 = 0 ;
10330 PyObject * obj1 = 0 ;
10332 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerDefault_a_set",&obj0,&obj1)) SWIG_fail;
10333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerDefault, 0 | 0 );
10334 if (!SWIG_IsOK(res1)) {
10335 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerDefault_a_set" "', argument " "1"" of type '" "faiss::HammingComputerDefault *""'");
10338 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, SWIG_POINTER_DISOWN | 0 );
10339 if (!SWIG_IsOK(res2)) {
10340 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerDefault_a_set" "', argument " "2"" of type '" "uint8_t const *""'");
10342 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
10343 if (arg1) (arg1)->a = (uint8_t
const *)arg2;
10344 resultobj = SWIG_Py_Void();
10351 SWIGINTERN PyObject *_wrap_HammingComputerDefault_a_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10352 PyObject *resultobj = 0;
10356 PyObject * obj0 = 0 ;
10357 uint8_t *result = 0 ;
10359 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputerDefault_a_get",&obj0)) SWIG_fail;
10360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerDefault, 0 | 0 );
10361 if (!SWIG_IsOK(res1)) {
10362 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerDefault_a_get" "', argument " "1"" of type '" "faiss::HammingComputerDefault *""'");
10365 result = (uint8_t *) ((arg1)->a);
10366 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
10373 SWIGINTERN PyObject *_wrap_HammingComputerDefault_n_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10374 PyObject *resultobj = 0;
10381 PyObject * obj0 = 0 ;
10382 PyObject * obj1 = 0 ;
10384 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerDefault_n_set",&obj0,&obj1)) SWIG_fail;
10385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerDefault, 0 | 0 );
10386 if (!SWIG_IsOK(res1)) {
10387 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerDefault_n_set" "', argument " "1"" of type '" "faiss::HammingComputerDefault *""'");
10390 ecode2 = SWIG_AsVal_int(obj1, &val2);
10391 if (!SWIG_IsOK(ecode2)) {
10392 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputerDefault_n_set" "', argument " "2"" of type '" "int""'");
10394 arg2 =
static_cast< int >(val2);
10395 if (arg1) (arg1)->n = arg2;
10396 resultobj = SWIG_Py_Void();
10403 SWIGINTERN PyObject *_wrap_HammingComputerDefault_n_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10404 PyObject *resultobj = 0;
10408 PyObject * obj0 = 0 ;
10411 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputerDefault_n_get",&obj0)) SWIG_fail;
10412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerDefault, 0 | 0 );
10413 if (!SWIG_IsOK(res1)) {
10414 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerDefault_n_get" "', argument " "1"" of type '" "faiss::HammingComputerDefault *""'");
10417 result = (int) ((arg1)->n);
10418 resultobj = SWIG_From_int(static_cast< int >(result));
10425 SWIGINTERN PyObject *_wrap_new_HammingComputerDefault__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10426 PyObject *resultobj = 0;
10429 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputerDefault")) SWIG_fail;
10431 Py_BEGIN_ALLOW_THREADS
10435 PyEval_RestoreThread(_save);
10436 PyErr_SetString(PyExc_RuntimeError, e.
what());
10439 Py_END_ALLOW_THREADS
10441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputerDefault, SWIG_POINTER_NEW | 0 );
10448 SWIGINTERN PyObject *_wrap_new_HammingComputerDefault__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10449 PyObject *resultobj = 0;
10450 uint8_t *arg1 = (uint8_t *) 0 ;
10456 PyObject * obj0 = 0 ;
10457 PyObject * obj1 = 0 ;
10460 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputerDefault",&obj0,&obj1)) SWIG_fail;
10461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
10462 if (!SWIG_IsOK(res1)) {
10463 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputerDefault" "', argument " "1"" of type '" "uint8_t const *""'");
10465 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
10466 ecode2 = SWIG_AsVal_int(obj1, &val2);
10467 if (!SWIG_IsOK(ecode2)) {
10468 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputerDefault" "', argument " "2"" of type '" "int""'");
10470 arg2 =
static_cast< int >(val2);
10472 Py_BEGIN_ALLOW_THREADS
10476 PyEval_RestoreThread(_save);
10477 PyErr_SetString(PyExc_RuntimeError, e.
what());
10480 Py_END_ALLOW_THREADS
10482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputerDefault, SWIG_POINTER_NEW | 0 );
10489 SWIGINTERN PyObject *_wrap_new_HammingComputerDefault(PyObject *
self, PyObject *args) {
10491 PyObject *argv[3] = {
10496 if (!PyTuple_Check(args)) SWIG_fail;
10497 argc = args ? PyObject_Length(args) : 0;
10498 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
10499 argv[ii] = PyTuple_GET_ITEM(args,ii);
10502 return _wrap_new_HammingComputerDefault__SWIG_0(
self, args);
10507 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
10508 _v = SWIG_CheckState(res);
10511 int res = SWIG_AsVal_int(argv[1], NULL);
10512 _v = SWIG_CheckState(res);
10515 return _wrap_new_HammingComputerDefault__SWIG_1(
self, args);
10521 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputerDefault'.\n"
10522 " Possible C/C++ prototypes are:\n"
10523 " faiss::HammingComputerDefault::HammingComputerDefault()\n"
10524 " faiss::HammingComputerDefault::HammingComputerDefault(uint8_t const *,int)\n");
10529 SWIGINTERN PyObject *_wrap_HammingComputerDefault_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10530 PyObject *resultobj = 0;
10532 uint8_t *arg2 = (uint8_t *) 0 ;
10540 PyObject * obj0 = 0 ;
10541 PyObject * obj1 = 0 ;
10542 PyObject * obj2 = 0 ;
10544 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputerDefault_set",&obj0,&obj1,&obj2)) SWIG_fail;
10545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerDefault, 0 | 0 );
10546 if (!SWIG_IsOK(res1)) {
10547 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerDefault_set" "', argument " "1"" of type '" "faiss::HammingComputerDefault *""'");
10550 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
10551 if (!SWIG_IsOK(res2)) {
10552 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerDefault_set" "', argument " "2"" of type '" "uint8_t const *""'");
10554 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
10555 ecode3 = SWIG_AsVal_int(obj2, &val3);
10556 if (!SWIG_IsOK(ecode3)) {
10557 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputerDefault_set" "', argument " "3"" of type '" "int""'");
10559 arg3 =
static_cast< int >(val3);
10561 Py_BEGIN_ALLOW_THREADS
10563 (arg1)->set((uint8_t
const *)arg2,arg3);
10565 PyEval_RestoreThread(_save);
10566 PyErr_SetString(PyExc_RuntimeError, e.
what());
10569 Py_END_ALLOW_THREADS
10571 resultobj = SWIG_Py_Void();
10578 SWIGINTERN PyObject *_wrap_HammingComputerDefault_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10579 PyObject *resultobj = 0;
10581 uint8_t *arg2 = (uint8_t *) 0 ;
10586 PyObject * obj0 = 0 ;
10587 PyObject * obj1 = 0 ;
10590 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerDefault_hamming",&obj0,&obj1)) SWIG_fail;
10591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerDefault, 0 | 0 );
10592 if (!SWIG_IsOK(res1)) {
10593 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerDefault_hamming" "', argument " "1"" of type '" "faiss::HammingComputerDefault const *""'");
10596 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
10597 if (!SWIG_IsOK(res2)) {
10598 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerDefault_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
10600 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
10602 Py_BEGIN_ALLOW_THREADS
10606 PyEval_RestoreThread(_save);
10607 PyErr_SetString(PyExc_RuntimeError, e.
what());
10610 Py_END_ALLOW_THREADS
10612 resultobj = SWIG_From_int(static_cast< int >(result));
10619 SWIGINTERN PyObject *_wrap_delete_HammingComputerDefault(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10620 PyObject *resultobj = 0;
10624 PyObject * obj0 = 0 ;
10626 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputerDefault",&obj0)) SWIG_fail;
10627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerDefault, SWIG_POINTER_DISOWN | 0 );
10628 if (!SWIG_IsOK(res1)) {
10629 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputerDefault" "', argument " "1"" of type '" "faiss::HammingComputerDefault *""'");
10633 resultobj = SWIG_Py_Void();
10640 SWIGINTERN PyObject *HammingComputerDefault_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10642 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
10643 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputerDefault, SWIG_NewClientData(obj));
10644 return SWIG_Py_Void();
10647 SWIGINTERN PyObject *_wrap_HammingComputerM8_a_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10648 PyObject *resultobj = 0;
10650 uint64_t *arg2 = (uint64_t *) 0 ;
10655 PyObject * obj0 = 0 ;
10656 PyObject * obj1 = 0 ;
10658 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerM8_a_set",&obj0,&obj1)) SWIG_fail;
10659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM8, 0 | 0 );
10660 if (!SWIG_IsOK(res1)) {
10661 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM8_a_set" "', argument " "1"" of type '" "faiss::HammingComputerM8 *""'");
10664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_long, SWIG_POINTER_DISOWN | 0 );
10665 if (!SWIG_IsOK(res2)) {
10666 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerM8_a_set" "', argument " "2"" of type '" "uint64_t const *""'");
10668 arg2 =
reinterpret_cast< uint64_t *
>(argp2);
10669 if (arg1) (arg1)->a = (uint64_t
const *)arg2;
10670 resultobj = SWIG_Py_Void();
10677 SWIGINTERN PyObject *_wrap_HammingComputerM8_a_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10678 PyObject *resultobj = 0;
10682 PyObject * obj0 = 0 ;
10683 uint64_t *result = 0 ;
10685 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputerM8_a_get",&obj0)) SWIG_fail;
10686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM8, 0 | 0 );
10687 if (!SWIG_IsOK(res1)) {
10688 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM8_a_get" "', argument " "1"" of type '" "faiss::HammingComputerM8 *""'");
10691 result = (uint64_t *) ((arg1)->a);
10692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long, 0 | 0 );
10699 SWIGINTERN PyObject *_wrap_HammingComputerM8_n_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10700 PyObject *resultobj = 0;
10707 PyObject * obj0 = 0 ;
10708 PyObject * obj1 = 0 ;
10710 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerM8_n_set",&obj0,&obj1)) SWIG_fail;
10711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM8, 0 | 0 );
10712 if (!SWIG_IsOK(res1)) {
10713 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM8_n_set" "', argument " "1"" of type '" "faiss::HammingComputerM8 *""'");
10716 ecode2 = SWIG_AsVal_int(obj1, &val2);
10717 if (!SWIG_IsOK(ecode2)) {
10718 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputerM8_n_set" "', argument " "2"" of type '" "int""'");
10720 arg2 =
static_cast< int >(val2);
10721 if (arg1) (arg1)->n = arg2;
10722 resultobj = SWIG_Py_Void();
10729 SWIGINTERN PyObject *_wrap_HammingComputerM8_n_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10730 PyObject *resultobj = 0;
10734 PyObject * obj0 = 0 ;
10737 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputerM8_n_get",&obj0)) SWIG_fail;
10738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM8, 0 | 0 );
10739 if (!SWIG_IsOK(res1)) {
10740 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM8_n_get" "', argument " "1"" of type '" "faiss::HammingComputerM8 *""'");
10743 result = (int) ((arg1)->n);
10744 resultobj = SWIG_From_int(static_cast< int >(result));
10751 SWIGINTERN PyObject *_wrap_new_HammingComputerM8__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10752 PyObject *resultobj = 0;
10755 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputerM8")) SWIG_fail;
10757 Py_BEGIN_ALLOW_THREADS
10761 PyEval_RestoreThread(_save);
10762 PyErr_SetString(PyExc_RuntimeError, e.
what());
10765 Py_END_ALLOW_THREADS
10767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputerM8, SWIG_POINTER_NEW | 0 );
10774 SWIGINTERN PyObject *_wrap_new_HammingComputerM8__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10775 PyObject *resultobj = 0;
10776 uint8_t *arg1 = (uint8_t *) 0 ;
10782 PyObject * obj0 = 0 ;
10783 PyObject * obj1 = 0 ;
10786 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputerM8",&obj0,&obj1)) SWIG_fail;
10787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
10788 if (!SWIG_IsOK(res1)) {
10789 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputerM8" "', argument " "1"" of type '" "uint8_t const *""'");
10791 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
10792 ecode2 = SWIG_AsVal_int(obj1, &val2);
10793 if (!SWIG_IsOK(ecode2)) {
10794 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputerM8" "', argument " "2"" of type '" "int""'");
10796 arg2 =
static_cast< int >(val2);
10798 Py_BEGIN_ALLOW_THREADS
10802 PyEval_RestoreThread(_save);
10803 PyErr_SetString(PyExc_RuntimeError, e.
what());
10806 Py_END_ALLOW_THREADS
10808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputerM8, SWIG_POINTER_NEW | 0 );
10815 SWIGINTERN PyObject *_wrap_new_HammingComputerM8(PyObject *
self, PyObject *args) {
10817 PyObject *argv[3] = {
10822 if (!PyTuple_Check(args)) SWIG_fail;
10823 argc = args ? PyObject_Length(args) : 0;
10824 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
10825 argv[ii] = PyTuple_GET_ITEM(args,ii);
10828 return _wrap_new_HammingComputerM8__SWIG_0(
self, args);
10833 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
10834 _v = SWIG_CheckState(res);
10837 int res = SWIG_AsVal_int(argv[1], NULL);
10838 _v = SWIG_CheckState(res);
10841 return _wrap_new_HammingComputerM8__SWIG_1(
self, args);
10847 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputerM8'.\n"
10848 " Possible C/C++ prototypes are:\n"
10849 " faiss::HammingComputerM8::HammingComputerM8()\n"
10850 " faiss::HammingComputerM8::HammingComputerM8(uint8_t const *,int)\n");
10855 SWIGINTERN PyObject *_wrap_HammingComputerM8_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10856 PyObject *resultobj = 0;
10858 uint8_t *arg2 = (uint8_t *) 0 ;
10866 PyObject * obj0 = 0 ;
10867 PyObject * obj1 = 0 ;
10868 PyObject * obj2 = 0 ;
10870 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputerM8_set",&obj0,&obj1,&obj2)) SWIG_fail;
10871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM8, 0 | 0 );
10872 if (!SWIG_IsOK(res1)) {
10873 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM8_set" "', argument " "1"" of type '" "faiss::HammingComputerM8 *""'");
10876 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
10877 if (!SWIG_IsOK(res2)) {
10878 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerM8_set" "', argument " "2"" of type '" "uint8_t const *""'");
10880 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
10881 ecode3 = SWIG_AsVal_int(obj2, &val3);
10882 if (!SWIG_IsOK(ecode3)) {
10883 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputerM8_set" "', argument " "3"" of type '" "int""'");
10885 arg3 =
static_cast< int >(val3);
10887 Py_BEGIN_ALLOW_THREADS
10889 (arg1)->set((uint8_t
const *)arg2,arg3);
10891 PyEval_RestoreThread(_save);
10892 PyErr_SetString(PyExc_RuntimeError, e.
what());
10895 Py_END_ALLOW_THREADS
10897 resultobj = SWIG_Py_Void();
10904 SWIGINTERN PyObject *_wrap_HammingComputerM8_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10905 PyObject *resultobj = 0;
10907 uint8_t *arg2 = (uint8_t *) 0 ;
10912 PyObject * obj0 = 0 ;
10913 PyObject * obj1 = 0 ;
10916 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerM8_hamming",&obj0,&obj1)) SWIG_fail;
10917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM8, 0 | 0 );
10918 if (!SWIG_IsOK(res1)) {
10919 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM8_hamming" "', argument " "1"" of type '" "faiss::HammingComputerM8 const *""'");
10922 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
10923 if (!SWIG_IsOK(res2)) {
10924 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerM8_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
10926 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
10928 Py_BEGIN_ALLOW_THREADS
10932 PyEval_RestoreThread(_save);
10933 PyErr_SetString(PyExc_RuntimeError, e.
what());
10936 Py_END_ALLOW_THREADS
10938 resultobj = SWIG_From_int(static_cast< int >(result));
10945 SWIGINTERN PyObject *_wrap_delete_HammingComputerM8(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10946 PyObject *resultobj = 0;
10950 PyObject * obj0 = 0 ;
10952 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputerM8",&obj0)) SWIG_fail;
10953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM8, SWIG_POINTER_DISOWN | 0 );
10954 if (!SWIG_IsOK(res1)) {
10955 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputerM8" "', argument " "1"" of type '" "faiss::HammingComputerM8 *""'");
10959 resultobj = SWIG_Py_Void();
10966 SWIGINTERN PyObject *HammingComputerM8_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10968 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
10969 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputerM8, SWIG_NewClientData(obj));
10970 return SWIG_Py_Void();
10973 SWIGINTERN PyObject *_wrap_HammingComputerM4_a_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10974 PyObject *resultobj = 0;
10976 uint32_t *arg2 = (uint32_t *) 0 ;
10981 PyObject * obj0 = 0 ;
10982 PyObject * obj1 = 0 ;
10984 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerM4_a_set",&obj0,&obj1)) SWIG_fail;
10985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM4, 0 | 0 );
10986 if (!SWIG_IsOK(res1)) {
10987 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM4_a_set" "', argument " "1"" of type '" "faiss::HammingComputerM4 *""'");
10990 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_uint32_t, SWIG_POINTER_DISOWN | 0 );
10991 if (!SWIG_IsOK(res2)) {
10992 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerM4_a_set" "', argument " "2"" of type '" "uint32_t const *""'");
10994 arg2 =
reinterpret_cast< uint32_t *
>(argp2);
10995 if (arg1) (arg1)->a = (uint32_t
const *)arg2;
10996 resultobj = SWIG_Py_Void();
11003 SWIGINTERN PyObject *_wrap_HammingComputerM4_a_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11004 PyObject *resultobj = 0;
11008 PyObject * obj0 = 0 ;
11009 uint32_t *result = 0 ;
11011 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputerM4_a_get",&obj0)) SWIG_fail;
11012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM4, 0 | 0 );
11013 if (!SWIG_IsOK(res1)) {
11014 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM4_a_get" "', argument " "1"" of type '" "faiss::HammingComputerM4 *""'");
11017 result = (uint32_t *) ((arg1)->a);
11018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_uint32_t, 0 | 0 );
11025 SWIGINTERN PyObject *_wrap_HammingComputerM4_n_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11026 PyObject *resultobj = 0;
11033 PyObject * obj0 = 0 ;
11034 PyObject * obj1 = 0 ;
11036 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerM4_n_set",&obj0,&obj1)) SWIG_fail;
11037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM4, 0 | 0 );
11038 if (!SWIG_IsOK(res1)) {
11039 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM4_n_set" "', argument " "1"" of type '" "faiss::HammingComputerM4 *""'");
11042 ecode2 = SWIG_AsVal_int(obj1, &val2);
11043 if (!SWIG_IsOK(ecode2)) {
11044 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputerM4_n_set" "', argument " "2"" of type '" "int""'");
11046 arg2 =
static_cast< int >(val2);
11047 if (arg1) (arg1)->n = arg2;
11048 resultobj = SWIG_Py_Void();
11055 SWIGINTERN PyObject *_wrap_HammingComputerM4_n_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11056 PyObject *resultobj = 0;
11060 PyObject * obj0 = 0 ;
11063 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputerM4_n_get",&obj0)) SWIG_fail;
11064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM4, 0 | 0 );
11065 if (!SWIG_IsOK(res1)) {
11066 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM4_n_get" "', argument " "1"" of type '" "faiss::HammingComputerM4 *""'");
11069 result = (int) ((arg1)->n);
11070 resultobj = SWIG_From_int(static_cast< int >(result));
11077 SWIGINTERN PyObject *_wrap_new_HammingComputerM4__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11078 PyObject *resultobj = 0;
11081 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputerM4")) SWIG_fail;
11083 Py_BEGIN_ALLOW_THREADS
11087 PyEval_RestoreThread(_save);
11088 PyErr_SetString(PyExc_RuntimeError, e.
what());
11091 Py_END_ALLOW_THREADS
11093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputerM4, SWIG_POINTER_NEW | 0 );
11100 SWIGINTERN PyObject *_wrap_new_HammingComputerM4__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11101 PyObject *resultobj = 0;
11102 uint8_t *arg1 = (uint8_t *) 0 ;
11108 PyObject * obj0 = 0 ;
11109 PyObject * obj1 = 0 ;
11112 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputerM4",&obj0,&obj1)) SWIG_fail;
11113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
11114 if (!SWIG_IsOK(res1)) {
11115 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputerM4" "', argument " "1"" of type '" "uint8_t const *""'");
11117 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
11118 ecode2 = SWIG_AsVal_int(obj1, &val2);
11119 if (!SWIG_IsOK(ecode2)) {
11120 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputerM4" "', argument " "2"" of type '" "int""'");
11122 arg2 =
static_cast< int >(val2);
11124 Py_BEGIN_ALLOW_THREADS
11128 PyEval_RestoreThread(_save);
11129 PyErr_SetString(PyExc_RuntimeError, e.
what());
11132 Py_END_ALLOW_THREADS
11134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputerM4, SWIG_POINTER_NEW | 0 );
11141 SWIGINTERN PyObject *_wrap_new_HammingComputerM4(PyObject *
self, PyObject *args) {
11143 PyObject *argv[3] = {
11148 if (!PyTuple_Check(args)) SWIG_fail;
11149 argc = args ? PyObject_Length(args) : 0;
11150 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
11151 argv[ii] = PyTuple_GET_ITEM(args,ii);
11154 return _wrap_new_HammingComputerM4__SWIG_0(
self, args);
11159 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
11160 _v = SWIG_CheckState(res);
11163 int res = SWIG_AsVal_int(argv[1], NULL);
11164 _v = SWIG_CheckState(res);
11167 return _wrap_new_HammingComputerM4__SWIG_1(
self, args);
11173 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputerM4'.\n"
11174 " Possible C/C++ prototypes are:\n"
11175 " faiss::HammingComputerM4::HammingComputerM4()\n"
11176 " faiss::HammingComputerM4::HammingComputerM4(uint8_t const *,int)\n");
11181 SWIGINTERN PyObject *_wrap_HammingComputerM4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11182 PyObject *resultobj = 0;
11184 uint8_t *arg2 = (uint8_t *) 0 ;
11192 PyObject * obj0 = 0 ;
11193 PyObject * obj1 = 0 ;
11194 PyObject * obj2 = 0 ;
11196 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputerM4_set",&obj0,&obj1,&obj2)) SWIG_fail;
11197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM4, 0 | 0 );
11198 if (!SWIG_IsOK(res1)) {
11199 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM4_set" "', argument " "1"" of type '" "faiss::HammingComputerM4 *""'");
11202 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
11203 if (!SWIG_IsOK(res2)) {
11204 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerM4_set" "', argument " "2"" of type '" "uint8_t const *""'");
11206 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
11207 ecode3 = SWIG_AsVal_int(obj2, &val3);
11208 if (!SWIG_IsOK(ecode3)) {
11209 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputerM4_set" "', argument " "3"" of type '" "int""'");
11211 arg3 =
static_cast< int >(val3);
11213 Py_BEGIN_ALLOW_THREADS
11215 (arg1)->set((uint8_t
const *)arg2,arg3);
11217 PyEval_RestoreThread(_save);
11218 PyErr_SetString(PyExc_RuntimeError, e.
what());
11221 Py_END_ALLOW_THREADS
11223 resultobj = SWIG_Py_Void();
11230 SWIGINTERN PyObject *_wrap_HammingComputerM4_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11231 PyObject *resultobj = 0;
11233 uint8_t *arg2 = (uint8_t *) 0 ;
11238 PyObject * obj0 = 0 ;
11239 PyObject * obj1 = 0 ;
11242 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerM4_hamming",&obj0,&obj1)) SWIG_fail;
11243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM4, 0 | 0 );
11244 if (!SWIG_IsOK(res1)) {
11245 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM4_hamming" "', argument " "1"" of type '" "faiss::HammingComputerM4 const *""'");
11248 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
11249 if (!SWIG_IsOK(res2)) {
11250 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerM4_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
11252 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
11254 Py_BEGIN_ALLOW_THREADS
11258 PyEval_RestoreThread(_save);
11259 PyErr_SetString(PyExc_RuntimeError, e.
what());
11262 Py_END_ALLOW_THREADS
11264 resultobj = SWIG_From_int(static_cast< int >(result));
11271 SWIGINTERN PyObject *_wrap_delete_HammingComputerM4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11272 PyObject *resultobj = 0;
11276 PyObject * obj0 = 0 ;
11278 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputerM4",&obj0)) SWIG_fail;
11279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM4, SWIG_POINTER_DISOWN | 0 );
11280 if (!SWIG_IsOK(res1)) {
11281 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputerM4" "', argument " "1"" of type '" "faiss::HammingComputerM4 *""'");
11285 resultobj = SWIG_Py_Void();
11292 SWIGINTERN PyObject *HammingComputerM4_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11294 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
11295 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputerM4, SWIG_NewClientData(obj));
11296 return SWIG_Py_Void();
11299 SWIGINTERN PyObject *_wrap_generalized_hamming_64(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11300 PyObject *resultobj = 0;
11302 unsigned long val1 ;
11304 PyObject * obj0 = 0 ;
11307 if (!PyArg_ParseTuple(args,(
char *)
"O:generalized_hamming_64",&obj0)) SWIG_fail;
11308 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
11309 if (!SWIG_IsOK(ecode1)) {
11310 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "generalized_hamming_64" "', argument " "1"" of type '" "uint64_t""'");
11312 arg1 =
static_cast< uint64_t
>(val1);
11314 Py_BEGIN_ALLOW_THREADS
11316 result = (int)faiss::generalized_hamming_64(arg1);
11318 PyEval_RestoreThread(_save);
11319 PyErr_SetString(PyExc_RuntimeError, e.
what());
11322 Py_END_ALLOW_THREADS
11324 resultobj = SWIG_From_int(static_cast< int >(result));
11331 SWIGINTERN PyObject *_wrap_GenHammingComputer8_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11332 PyObject *resultobj = 0;
11337 unsigned long val2 ;
11339 PyObject * obj0 = 0 ;
11340 PyObject * obj1 = 0 ;
11342 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer8_a0_set",&obj0,&obj1)) SWIG_fail;
11343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer8, 0 | 0 );
11344 if (!SWIG_IsOK(res1)) {
11345 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer8_a0_set" "', argument " "1"" of type '" "faiss::GenHammingComputer8 *""'");
11348 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
11349 if (!SWIG_IsOK(ecode2)) {
11350 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputer8_a0_set" "', argument " "2"" of type '" "uint64_t""'");
11352 arg2 =
static_cast< uint64_t
>(val2);
11353 if (arg1) (arg1)->a0 = arg2;
11354 resultobj = SWIG_Py_Void();
11361 SWIGINTERN PyObject *_wrap_GenHammingComputer8_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11362 PyObject *resultobj = 0;
11366 PyObject * obj0 = 0 ;
11369 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputer8_a0_get",&obj0)) SWIG_fail;
11370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer8, 0 | 0 );
11371 if (!SWIG_IsOK(res1)) {
11372 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer8_a0_get" "', argument " "1"" of type '" "faiss::GenHammingComputer8 *""'");
11375 result = (uint64_t) ((arg1)->a0);
11376 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
11383 SWIGINTERN PyObject *_wrap_new_GenHammingComputer8(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11384 PyObject *resultobj = 0;
11385 uint8_t *arg1 = (uint8_t *) 0 ;
11391 PyObject * obj0 = 0 ;
11392 PyObject * obj1 = 0 ;
11395 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GenHammingComputer8",&obj0,&obj1)) SWIG_fail;
11396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
11397 if (!SWIG_IsOK(res1)) {
11398 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GenHammingComputer8" "', argument " "1"" of type '" "uint8_t const *""'");
11400 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
11401 ecode2 = SWIG_AsVal_int(obj1, &val2);
11402 if (!SWIG_IsOK(ecode2)) {
11403 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GenHammingComputer8" "', argument " "2"" of type '" "int""'");
11405 arg2 =
static_cast< int >(val2);
11407 Py_BEGIN_ALLOW_THREADS
11411 PyEval_RestoreThread(_save);
11412 PyErr_SetString(PyExc_RuntimeError, e.
what());
11415 Py_END_ALLOW_THREADS
11417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__GenHammingComputer8, SWIG_POINTER_NEW | 0 );
11424 SWIGINTERN PyObject *_wrap_GenHammingComputer8_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11425 PyObject *resultobj = 0;
11427 uint8_t *arg2 = (uint8_t *) 0 ;
11432 PyObject * obj0 = 0 ;
11433 PyObject * obj1 = 0 ;
11436 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer8_hamming",&obj0,&obj1)) SWIG_fail;
11437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer8, 0 | 0 );
11438 if (!SWIG_IsOK(res1)) {
11439 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer8_hamming" "', argument " "1"" of type '" "faiss::GenHammingComputer8 const *""'");
11442 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
11443 if (!SWIG_IsOK(res2)) {
11444 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GenHammingComputer8_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
11446 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
11448 Py_BEGIN_ALLOW_THREADS
11452 PyEval_RestoreThread(_save);
11453 PyErr_SetString(PyExc_RuntimeError, e.
what());
11456 Py_END_ALLOW_THREADS
11458 resultobj = SWIG_From_int(static_cast< int >(result));
11465 SWIGINTERN PyObject *_wrap_delete_GenHammingComputer8(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11466 PyObject *resultobj = 0;
11470 PyObject * obj0 = 0 ;
11472 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GenHammingComputer8",&obj0)) SWIG_fail;
11473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer8, SWIG_POINTER_DISOWN | 0 );
11474 if (!SWIG_IsOK(res1)) {
11475 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GenHammingComputer8" "', argument " "1"" of type '" "faiss::GenHammingComputer8 *""'");
11479 resultobj = SWIG_Py_Void();
11486 SWIGINTERN PyObject *GenHammingComputer8_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11488 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
11489 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__GenHammingComputer8, SWIG_NewClientData(obj));
11490 return SWIG_Py_Void();
11493 SWIGINTERN PyObject *_wrap_GenHammingComputer16_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11494 PyObject *resultobj = 0;
11499 unsigned long val2 ;
11501 PyObject * obj0 = 0 ;
11502 PyObject * obj1 = 0 ;
11504 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer16_a0_set",&obj0,&obj1)) SWIG_fail;
11505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer16, 0 | 0 );
11506 if (!SWIG_IsOK(res1)) {
11507 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer16_a0_set" "', argument " "1"" of type '" "faiss::GenHammingComputer16 *""'");
11510 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
11511 if (!SWIG_IsOK(ecode2)) {
11512 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputer16_a0_set" "', argument " "2"" of type '" "uint64_t""'");
11514 arg2 =
static_cast< uint64_t
>(val2);
11515 if (arg1) (arg1)->a0 = arg2;
11516 resultobj = SWIG_Py_Void();
11523 SWIGINTERN PyObject *_wrap_GenHammingComputer16_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11524 PyObject *resultobj = 0;
11528 PyObject * obj0 = 0 ;
11531 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputer16_a0_get",&obj0)) SWIG_fail;
11532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer16, 0 | 0 );
11533 if (!SWIG_IsOK(res1)) {
11534 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer16_a0_get" "', argument " "1"" of type '" "faiss::GenHammingComputer16 *""'");
11537 result = (uint64_t) ((arg1)->a0);
11538 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
11545 SWIGINTERN PyObject *_wrap_GenHammingComputer16_a1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11546 PyObject *resultobj = 0;
11551 unsigned long val2 ;
11553 PyObject * obj0 = 0 ;
11554 PyObject * obj1 = 0 ;
11556 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer16_a1_set",&obj0,&obj1)) SWIG_fail;
11557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer16, 0 | 0 );
11558 if (!SWIG_IsOK(res1)) {
11559 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer16_a1_set" "', argument " "1"" of type '" "faiss::GenHammingComputer16 *""'");
11562 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
11563 if (!SWIG_IsOK(ecode2)) {
11564 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputer16_a1_set" "', argument " "2"" of type '" "uint64_t""'");
11566 arg2 =
static_cast< uint64_t
>(val2);
11567 if (arg1) (arg1)->a1 = arg2;
11568 resultobj = SWIG_Py_Void();
11575 SWIGINTERN PyObject *_wrap_GenHammingComputer16_a1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11576 PyObject *resultobj = 0;
11580 PyObject * obj0 = 0 ;
11583 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputer16_a1_get",&obj0)) SWIG_fail;
11584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer16, 0 | 0 );
11585 if (!SWIG_IsOK(res1)) {
11586 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer16_a1_get" "', argument " "1"" of type '" "faiss::GenHammingComputer16 *""'");
11589 result = (uint64_t) ((arg1)->a1);
11590 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
11597 SWIGINTERN PyObject *_wrap_new_GenHammingComputer16(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11598 PyObject *resultobj = 0;
11599 uint8_t *arg1 = (uint8_t *) 0 ;
11605 PyObject * obj0 = 0 ;
11606 PyObject * obj1 = 0 ;
11609 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GenHammingComputer16",&obj0,&obj1)) SWIG_fail;
11610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
11611 if (!SWIG_IsOK(res1)) {
11612 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GenHammingComputer16" "', argument " "1"" of type '" "uint8_t const *""'");
11614 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
11615 ecode2 = SWIG_AsVal_int(obj1, &val2);
11616 if (!SWIG_IsOK(ecode2)) {
11617 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GenHammingComputer16" "', argument " "2"" of type '" "int""'");
11619 arg2 =
static_cast< int >(val2);
11621 Py_BEGIN_ALLOW_THREADS
11625 PyEval_RestoreThread(_save);
11626 PyErr_SetString(PyExc_RuntimeError, e.
what());
11629 Py_END_ALLOW_THREADS
11631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__GenHammingComputer16, SWIG_POINTER_NEW | 0 );
11638 SWIGINTERN PyObject *_wrap_GenHammingComputer16_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11639 PyObject *resultobj = 0;
11641 uint8_t *arg2 = (uint8_t *) 0 ;
11646 PyObject * obj0 = 0 ;
11647 PyObject * obj1 = 0 ;
11650 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer16_hamming",&obj0,&obj1)) SWIG_fail;
11651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer16, 0 | 0 );
11652 if (!SWIG_IsOK(res1)) {
11653 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer16_hamming" "', argument " "1"" of type '" "faiss::GenHammingComputer16 const *""'");
11656 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
11657 if (!SWIG_IsOK(res2)) {
11658 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GenHammingComputer16_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
11660 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
11662 Py_BEGIN_ALLOW_THREADS
11666 PyEval_RestoreThread(_save);
11667 PyErr_SetString(PyExc_RuntimeError, e.
what());
11670 Py_END_ALLOW_THREADS
11672 resultobj = SWIG_From_int(static_cast< int >(result));
11679 SWIGINTERN PyObject *_wrap_delete_GenHammingComputer16(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11680 PyObject *resultobj = 0;
11684 PyObject * obj0 = 0 ;
11686 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GenHammingComputer16",&obj0)) SWIG_fail;
11687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer16, SWIG_POINTER_DISOWN | 0 );
11688 if (!SWIG_IsOK(res1)) {
11689 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GenHammingComputer16" "', argument " "1"" of type '" "faiss::GenHammingComputer16 *""'");
11693 resultobj = SWIG_Py_Void();
11700 SWIGINTERN PyObject *GenHammingComputer16_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11702 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
11703 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__GenHammingComputer16, SWIG_NewClientData(obj));
11704 return SWIG_Py_Void();
11707 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11708 PyObject *resultobj = 0;
11713 unsigned long val2 ;
11715 PyObject * obj0 = 0 ;
11716 PyObject * obj1 = 0 ;
11718 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer32_a0_set",&obj0,&obj1)) SWIG_fail;
11719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
11720 if (!SWIG_IsOK(res1)) {
11721 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a0_set" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
11724 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
11725 if (!SWIG_IsOK(ecode2)) {
11726 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputer32_a0_set" "', argument " "2"" of type '" "uint64_t""'");
11728 arg2 =
static_cast< uint64_t
>(val2);
11729 if (arg1) (arg1)->a0 = arg2;
11730 resultobj = SWIG_Py_Void();
11737 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11738 PyObject *resultobj = 0;
11742 PyObject * obj0 = 0 ;
11745 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputer32_a0_get",&obj0)) SWIG_fail;
11746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
11747 if (!SWIG_IsOK(res1)) {
11748 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a0_get" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
11751 result = (uint64_t) ((arg1)->a0);
11752 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
11759 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11760 PyObject *resultobj = 0;
11765 unsigned long val2 ;
11767 PyObject * obj0 = 0 ;
11768 PyObject * obj1 = 0 ;
11770 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer32_a1_set",&obj0,&obj1)) SWIG_fail;
11771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
11772 if (!SWIG_IsOK(res1)) {
11773 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a1_set" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
11776 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
11777 if (!SWIG_IsOK(ecode2)) {
11778 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputer32_a1_set" "', argument " "2"" of type '" "uint64_t""'");
11780 arg2 =
static_cast< uint64_t
>(val2);
11781 if (arg1) (arg1)->a1 = arg2;
11782 resultobj = SWIG_Py_Void();
11789 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11790 PyObject *resultobj = 0;
11794 PyObject * obj0 = 0 ;
11797 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputer32_a1_get",&obj0)) SWIG_fail;
11798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
11799 if (!SWIG_IsOK(res1)) {
11800 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a1_get" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
11803 result = (uint64_t) ((arg1)->a1);
11804 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
11811 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a2_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11812 PyObject *resultobj = 0;
11817 unsigned long val2 ;
11819 PyObject * obj0 = 0 ;
11820 PyObject * obj1 = 0 ;
11822 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer32_a2_set",&obj0,&obj1)) SWIG_fail;
11823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
11824 if (!SWIG_IsOK(res1)) {
11825 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a2_set" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
11828 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
11829 if (!SWIG_IsOK(ecode2)) {
11830 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputer32_a2_set" "', argument " "2"" of type '" "uint64_t""'");
11832 arg2 =
static_cast< uint64_t
>(val2);
11833 if (arg1) (arg1)->a2 = arg2;
11834 resultobj = SWIG_Py_Void();
11841 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a2_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11842 PyObject *resultobj = 0;
11846 PyObject * obj0 = 0 ;
11849 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputer32_a2_get",&obj0)) SWIG_fail;
11850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
11851 if (!SWIG_IsOK(res1)) {
11852 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a2_get" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
11855 result = (uint64_t) ((arg1)->a2);
11856 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
11863 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a3_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11864 PyObject *resultobj = 0;
11869 unsigned long val2 ;
11871 PyObject * obj0 = 0 ;
11872 PyObject * obj1 = 0 ;
11874 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer32_a3_set",&obj0,&obj1)) SWIG_fail;
11875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
11876 if (!SWIG_IsOK(res1)) {
11877 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a3_set" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
11880 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
11881 if (!SWIG_IsOK(ecode2)) {
11882 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputer32_a3_set" "', argument " "2"" of type '" "uint64_t""'");
11884 arg2 =
static_cast< uint64_t
>(val2);
11885 if (arg1) (arg1)->a3 = arg2;
11886 resultobj = SWIG_Py_Void();
11893 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a3_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11894 PyObject *resultobj = 0;
11898 PyObject * obj0 = 0 ;
11901 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputer32_a3_get",&obj0)) SWIG_fail;
11902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
11903 if (!SWIG_IsOK(res1)) {
11904 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a3_get" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
11907 result = (uint64_t) ((arg1)->a3);
11908 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
11915 SWIGINTERN PyObject *_wrap_new_GenHammingComputer32(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11916 PyObject *resultobj = 0;
11917 uint8_t *arg1 = (uint8_t *) 0 ;
11923 PyObject * obj0 = 0 ;
11924 PyObject * obj1 = 0 ;
11927 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GenHammingComputer32",&obj0,&obj1)) SWIG_fail;
11928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
11929 if (!SWIG_IsOK(res1)) {
11930 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GenHammingComputer32" "', argument " "1"" of type '" "uint8_t const *""'");
11932 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
11933 ecode2 = SWIG_AsVal_int(obj1, &val2);
11934 if (!SWIG_IsOK(ecode2)) {
11935 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GenHammingComputer32" "', argument " "2"" of type '" "int""'");
11937 arg2 =
static_cast< int >(val2);
11939 Py_BEGIN_ALLOW_THREADS
11943 PyEval_RestoreThread(_save);
11944 PyErr_SetString(PyExc_RuntimeError, e.
what());
11947 Py_END_ALLOW_THREADS
11949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__GenHammingComputer32, SWIG_POINTER_NEW | 0 );
11956 SWIGINTERN PyObject *_wrap_GenHammingComputer32_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11957 PyObject *resultobj = 0;
11959 uint8_t *arg2 = (uint8_t *) 0 ;
11964 PyObject * obj0 = 0 ;
11965 PyObject * obj1 = 0 ;
11968 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer32_hamming",&obj0,&obj1)) SWIG_fail;
11969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
11970 if (!SWIG_IsOK(res1)) {
11971 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_hamming" "', argument " "1"" of type '" "faiss::GenHammingComputer32 const *""'");
11974 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
11975 if (!SWIG_IsOK(res2)) {
11976 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GenHammingComputer32_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
11978 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
11980 Py_BEGIN_ALLOW_THREADS
11984 PyEval_RestoreThread(_save);
11985 PyErr_SetString(PyExc_RuntimeError, e.
what());
11988 Py_END_ALLOW_THREADS
11990 resultobj = SWIG_From_int(static_cast< int >(result));
11997 SWIGINTERN PyObject *_wrap_delete_GenHammingComputer32(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11998 PyObject *resultobj = 0;
12002 PyObject * obj0 = 0 ;
12004 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GenHammingComputer32",&obj0)) SWIG_fail;
12005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, SWIG_POINTER_DISOWN | 0 );
12006 if (!SWIG_IsOK(res1)) {
12007 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GenHammingComputer32" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
12011 resultobj = SWIG_Py_Void();
12018 SWIGINTERN PyObject *GenHammingComputer32_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12020 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
12021 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__GenHammingComputer32, SWIG_NewClientData(obj));
12022 return SWIG_Py_Void();
12025 SWIGINTERN PyObject *_wrap_GenHammingComputerM8_a_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12026 PyObject *resultobj = 0;
12028 uint64_t *arg2 = (uint64_t *) 0 ;
12033 PyObject * obj0 = 0 ;
12034 PyObject * obj1 = 0 ;
12036 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputerM8_a_set",&obj0,&obj1)) SWIG_fail;
12037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputerM8, 0 | 0 );
12038 if (!SWIG_IsOK(res1)) {
12039 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputerM8_a_set" "', argument " "1"" of type '" "faiss::GenHammingComputerM8 *""'");
12042 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_long, SWIG_POINTER_DISOWN | 0 );
12043 if (!SWIG_IsOK(res2)) {
12044 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GenHammingComputerM8_a_set" "', argument " "2"" of type '" "uint64_t const *""'");
12046 arg2 =
reinterpret_cast< uint64_t *
>(argp2);
12047 if (arg1) (arg1)->a = (uint64_t
const *)arg2;
12048 resultobj = SWIG_Py_Void();
12055 SWIGINTERN PyObject *_wrap_GenHammingComputerM8_a_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12056 PyObject *resultobj = 0;
12060 PyObject * obj0 = 0 ;
12061 uint64_t *result = 0 ;
12063 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputerM8_a_get",&obj0)) SWIG_fail;
12064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputerM8, 0 | 0 );
12065 if (!SWIG_IsOK(res1)) {
12066 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputerM8_a_get" "', argument " "1"" of type '" "faiss::GenHammingComputerM8 *""'");
12069 result = (uint64_t *) ((arg1)->a);
12070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long, 0 | 0 );
12077 SWIGINTERN PyObject *_wrap_GenHammingComputerM8_n_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12078 PyObject *resultobj = 0;
12085 PyObject * obj0 = 0 ;
12086 PyObject * obj1 = 0 ;
12088 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputerM8_n_set",&obj0,&obj1)) SWIG_fail;
12089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputerM8, 0 | 0 );
12090 if (!SWIG_IsOK(res1)) {
12091 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputerM8_n_set" "', argument " "1"" of type '" "faiss::GenHammingComputerM8 *""'");
12094 ecode2 = SWIG_AsVal_int(obj1, &val2);
12095 if (!SWIG_IsOK(ecode2)) {
12096 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputerM8_n_set" "', argument " "2"" of type '" "int""'");
12098 arg2 =
static_cast< int >(val2);
12099 if (arg1) (arg1)->n = arg2;
12100 resultobj = SWIG_Py_Void();
12107 SWIGINTERN PyObject *_wrap_GenHammingComputerM8_n_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12108 PyObject *resultobj = 0;
12112 PyObject * obj0 = 0 ;
12115 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputerM8_n_get",&obj0)) SWIG_fail;
12116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputerM8, 0 | 0 );
12117 if (!SWIG_IsOK(res1)) {
12118 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputerM8_n_get" "', argument " "1"" of type '" "faiss::GenHammingComputerM8 *""'");
12121 result = (int) ((arg1)->n);
12122 resultobj = SWIG_From_int(static_cast< int >(result));
12129 SWIGINTERN PyObject *_wrap_new_GenHammingComputerM8(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12130 PyObject *resultobj = 0;
12131 uint8_t *arg1 = (uint8_t *) 0 ;
12137 PyObject * obj0 = 0 ;
12138 PyObject * obj1 = 0 ;
12141 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GenHammingComputerM8",&obj0,&obj1)) SWIG_fail;
12142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
12143 if (!SWIG_IsOK(res1)) {
12144 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GenHammingComputerM8" "', argument " "1"" of type '" "uint8_t const *""'");
12146 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
12147 ecode2 = SWIG_AsVal_int(obj1, &val2);
12148 if (!SWIG_IsOK(ecode2)) {
12149 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GenHammingComputerM8" "', argument " "2"" of type '" "int""'");
12151 arg2 =
static_cast< int >(val2);
12153 Py_BEGIN_ALLOW_THREADS
12157 PyEval_RestoreThread(_save);
12158 PyErr_SetString(PyExc_RuntimeError, e.
what());
12161 Py_END_ALLOW_THREADS
12163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__GenHammingComputerM8, SWIG_POINTER_NEW | 0 );
12170 SWIGINTERN PyObject *_wrap_GenHammingComputerM8_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12171 PyObject *resultobj = 0;
12173 uint8_t *arg2 = (uint8_t *) 0 ;
12178 PyObject * obj0 = 0 ;
12179 PyObject * obj1 = 0 ;
12182 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputerM8_hamming",&obj0,&obj1)) SWIG_fail;
12183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputerM8, 0 | 0 );
12184 if (!SWIG_IsOK(res1)) {
12185 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputerM8_hamming" "', argument " "1"" of type '" "faiss::GenHammingComputerM8 const *""'");
12188 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
12189 if (!SWIG_IsOK(res2)) {
12190 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GenHammingComputerM8_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
12192 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
12194 Py_BEGIN_ALLOW_THREADS
12198 PyEval_RestoreThread(_save);
12199 PyErr_SetString(PyExc_RuntimeError, e.
what());
12202 Py_END_ALLOW_THREADS
12204 resultobj = SWIG_From_int(static_cast< int >(result));
12211 SWIGINTERN PyObject *_wrap_delete_GenHammingComputerM8(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12212 PyObject *resultobj = 0;
12216 PyObject * obj0 = 0 ;
12218 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GenHammingComputerM8",&obj0)) SWIG_fail;
12219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputerM8, SWIG_POINTER_DISOWN | 0 );
12220 if (!SWIG_IsOK(res1)) {
12221 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GenHammingComputerM8" "', argument " "1"" of type '" "faiss::GenHammingComputerM8 *""'");
12225 resultobj = SWIG_Py_Void();
12232 SWIGINTERN PyObject *GenHammingComputerM8_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12234 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
12235 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__GenHammingComputerM8, SWIG_NewClientData(obj));
12236 return SWIG_Py_Void();
12239 SWIGINTERN PyObject *_wrap_generalized_hammings_knn_hc__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12240 PyObject *resultobj = 0;
12242 uint8_t *arg2 = (uint8_t *) 0 ;
12243 uint8_t *arg3 = (uint8_t *) 0 ;
12259 PyObject * obj0 = 0 ;
12260 PyObject * obj1 = 0 ;
12261 PyObject * obj2 = 0 ;
12262 PyObject * obj3 = 0 ;
12263 PyObject * obj4 = 0 ;
12264 PyObject * obj5 = 0 ;
12266 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:generalized_hammings_knn_hc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
12267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
12268 if (!SWIG_IsOK(res1)) {
12269 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "generalized_hammings_knn_hc" "', argument " "1"" of type '" "faiss::int_maxheap_array_t *""'");
12272 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
12273 if (!SWIG_IsOK(res2)) {
12274 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "generalized_hammings_knn_hc" "', argument " "2"" of type '" "uint8_t const *""'");
12276 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
12277 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
12278 if (!SWIG_IsOK(res3)) {
12279 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "generalized_hammings_knn_hc" "', argument " "3"" of type '" "uint8_t const *""'");
12281 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
12282 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
12283 if (!SWIG_IsOK(ecode4)) {
12284 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "generalized_hammings_knn_hc" "', argument " "4"" of type '" "size_t""'");
12286 arg4 =
static_cast< size_t >(val4);
12287 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
12288 if (!SWIG_IsOK(ecode5)) {
12289 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "generalized_hammings_knn_hc" "', argument " "5"" of type '" "size_t""'");
12291 arg5 =
static_cast< size_t >(val5);
12292 ecode6 = SWIG_AsVal_int(obj5, &val6);
12293 if (!SWIG_IsOK(ecode6)) {
12294 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "generalized_hammings_knn_hc" "', argument " "6"" of type '" "int""'");
12296 arg6 =
static_cast< int >(val6);
12298 Py_BEGIN_ALLOW_THREADS
12302 PyEval_RestoreThread(_save);
12303 PyErr_SetString(PyExc_RuntimeError, e.
what());
12306 Py_END_ALLOW_THREADS
12308 resultobj = SWIG_Py_Void();
12315 SWIGINTERN PyObject *_wrap_generalized_hammings_knn_hc__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12316 PyObject *resultobj = 0;
12318 uint8_t *arg2 = (uint8_t *) 0 ;
12319 uint8_t *arg3 = (uint8_t *) 0 ;
12332 PyObject * obj0 = 0 ;
12333 PyObject * obj1 = 0 ;
12334 PyObject * obj2 = 0 ;
12335 PyObject * obj3 = 0 ;
12336 PyObject * obj4 = 0 ;
12338 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:generalized_hammings_knn_hc",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
12340 if (!SWIG_IsOK(res1)) {
12341 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "generalized_hammings_knn_hc" "', argument " "1"" of type '" "faiss::int_maxheap_array_t *""'");
12344 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
12345 if (!SWIG_IsOK(res2)) {
12346 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "generalized_hammings_knn_hc" "', argument " "2"" of type '" "uint8_t const *""'");
12348 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
12349 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
12350 if (!SWIG_IsOK(res3)) {
12351 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "generalized_hammings_knn_hc" "', argument " "3"" of type '" "uint8_t const *""'");
12353 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
12354 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
12355 if (!SWIG_IsOK(ecode4)) {
12356 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "generalized_hammings_knn_hc" "', argument " "4"" of type '" "size_t""'");
12358 arg4 =
static_cast< size_t >(val4);
12359 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
12360 if (!SWIG_IsOK(ecode5)) {
12361 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "generalized_hammings_knn_hc" "', argument " "5"" of type '" "size_t""'");
12363 arg5 =
static_cast< size_t >(val5);
12365 Py_BEGIN_ALLOW_THREADS
12369 PyEval_RestoreThread(_save);
12370 PyErr_SetString(PyExc_RuntimeError, e.
what());
12373 Py_END_ALLOW_THREADS
12375 resultobj = SWIG_Py_Void();
12382 SWIGINTERN PyObject *_wrap_generalized_hammings_knn_hc(PyObject *
self, PyObject *args) {
12384 PyObject *argv[7] = {
12389 if (!PyTuple_Check(args)) SWIG_fail;
12390 argc = args ? PyObject_Length(args) : 0;
12391 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
12392 argv[ii] = PyTuple_GET_ITEM(args,ii);
12397 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
12398 _v = SWIG_CheckState(res);
12401 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
12402 _v = SWIG_CheckState(res);
12405 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
12406 _v = SWIG_CheckState(res);
12409 int res = SWIG_AsVal_size_t(argv[3], NULL);
12410 _v = SWIG_CheckState(res);
12414 int res = SWIG_AsVal_size_t(argv[4], NULL);
12415 _v = SWIG_CheckState(res);
12418 return _wrap_generalized_hammings_knn_hc__SWIG_1(
self, args);
12428 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
12429 _v = SWIG_CheckState(res);
12432 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
12433 _v = SWIG_CheckState(res);
12436 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
12437 _v = SWIG_CheckState(res);
12440 int res = SWIG_AsVal_size_t(argv[3], NULL);
12441 _v = SWIG_CheckState(res);
12445 int res = SWIG_AsVal_size_t(argv[4], NULL);
12446 _v = SWIG_CheckState(res);
12450 int res = SWIG_AsVal_int(argv[5], NULL);
12451 _v = SWIG_CheckState(res);
12454 return _wrap_generalized_hammings_knn_hc__SWIG_0(
self, args);
12464 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'generalized_hammings_knn_hc'.\n"
12465 " Possible C/C++ prototypes are:\n"
12466 " faiss::generalized_hammings_knn_hc(faiss::int_maxheap_array_t *,uint8_t const *,uint8_t const *,size_t,size_t,int)\n"
12467 " faiss::generalized_hammings_knn_hc(faiss::int_maxheap_array_t *,uint8_t const *,uint8_t const *,size_t,size_t)\n");
12472 SWIGINTERN PyObject *_wrap_get_num_gpus(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12473 PyObject *resultobj = 0;
12476 if (!PyArg_ParseTuple(args,(
char *)
":get_num_gpus")) SWIG_fail;
12478 Py_BEGIN_ALLOW_THREADS
12480 result = (int)get_num_gpus();
12482 PyEval_RestoreThread(_save);
12483 PyErr_SetString(PyExc_RuntimeError, e.
what());
12486 Py_END_ALLOW_THREADS
12488 resultobj = SWIG_From_int(static_cast< int >(result));
12495 SWIGINTERN PyObject *_wrap_getmillisecs(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12496 PyObject *resultobj = 0;
12499 if (!PyArg_ParseTuple(args,(
char *)
":getmillisecs")) SWIG_fail;
12501 Py_BEGIN_ALLOW_THREADS
12505 PyEval_RestoreThread(_save);
12506 PyErr_SetString(PyExc_RuntimeError, e.
what());
12509 Py_END_ALLOW_THREADS
12511 resultobj = SWIG_From_double(static_cast< double >(result));
12518 SWIGINTERN PyObject *_wrap_get_mem_usage_kb(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12519 PyObject *resultobj = 0;
12522 if (!PyArg_ParseTuple(args,(
char *)
":get_mem_usage_kb")) SWIG_fail;
12524 Py_BEGIN_ALLOW_THREADS
12528 PyEval_RestoreThread(_save);
12529 PyErr_SetString(PyExc_RuntimeError, e.
what());
12532 Py_END_ALLOW_THREADS
12534 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12541 SWIGINTERN PyObject *_wrap_RandomGenerator_mt_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12542 PyObject *resultobj = 0;
12544 std::mt19937 arg2 ;
12549 PyObject * obj0 = 0 ;
12550 PyObject * obj1 = 0 ;
12552 if (!PyArg_ParseTuple(args,(
char *)
"OO:RandomGenerator_mt_set",&obj0,&obj1)) SWIG_fail;
12553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
12554 if (!SWIG_IsOK(res1)) {
12555 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomGenerator_mt_set" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
12559 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mt19937, 0 | 0);
12560 if (!SWIG_IsOK(res2)) {
12561 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RandomGenerator_mt_set" "', argument " "2"" of type '" "std::mt19937""'");
12564 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "RandomGenerator_mt_set" "', argument " "2"" of type '" "std::mt19937""'");
12566 std::mt19937 * temp =
reinterpret_cast< std::mt19937 *
>(argp2);
12568 if (SWIG_IsNewObj(res2))
delete temp;
12571 if (arg1) (arg1)->mt = arg2;
12572 resultobj = SWIG_Py_Void();
12579 SWIGINTERN PyObject *_wrap_RandomGenerator_mt_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12580 PyObject *resultobj = 0;
12584 PyObject * obj0 = 0 ;
12585 std::mt19937 result;
12587 if (!PyArg_ParseTuple(args,(
char *)
"O:RandomGenerator_mt_get",&obj0)) SWIG_fail;
12588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
12589 if (!SWIG_IsOK(res1)) {
12590 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomGenerator_mt_get" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
12593 result = ((arg1)->mt);
12594 resultobj = SWIG_NewPointerObj((
new std::mt19937(static_cast< const std::mt19937& >(result))), SWIGTYPE_p_std__mt19937, SWIG_POINTER_OWN | 0 );
12601 SWIGINTERN PyObject *_wrap_RandomGenerator_rand_int__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12602 PyObject *resultobj = 0;
12606 PyObject * obj0 = 0 ;
12609 if (!PyArg_ParseTuple(args,(
char *)
"O:RandomGenerator_rand_int",&obj0)) SWIG_fail;
12610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
12611 if (!SWIG_IsOK(res1)) {
12612 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomGenerator_rand_int" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
12616 Py_BEGIN_ALLOW_THREADS
12620 PyEval_RestoreThread(_save);
12621 PyErr_SetString(PyExc_RuntimeError, e.
what());
12624 Py_END_ALLOW_THREADS
12626 resultobj = SWIG_From_int(static_cast< int >(result));
12633 SWIGINTERN PyObject *_wrap_RandomGenerator_rand_long(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12634 PyObject *resultobj = 0;
12638 PyObject * obj0 = 0 ;
12641 if (!PyArg_ParseTuple(args,(
char *)
"O:RandomGenerator_rand_long",&obj0)) SWIG_fail;
12642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
12643 if (!SWIG_IsOK(res1)) {
12644 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomGenerator_rand_long" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
12648 Py_BEGIN_ALLOW_THREADS
12652 PyEval_RestoreThread(_save);
12653 PyErr_SetString(PyExc_RuntimeError, e.
what());
12656 Py_END_ALLOW_THREADS
12658 resultobj = SWIG_From_long(static_cast< long >(result));
12665 SWIGINTERN PyObject *_wrap_RandomGenerator_rand_int__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12666 PyObject *resultobj = 0;
12673 PyObject * obj0 = 0 ;
12674 PyObject * obj1 = 0 ;
12677 if (!PyArg_ParseTuple(args,(
char *)
"OO:RandomGenerator_rand_int",&obj0,&obj1)) SWIG_fail;
12678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
12679 if (!SWIG_IsOK(res1)) {
12680 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomGenerator_rand_int" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
12683 ecode2 = SWIG_AsVal_int(obj1, &val2);
12684 if (!SWIG_IsOK(ecode2)) {
12685 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RandomGenerator_rand_int" "', argument " "2"" of type '" "int""'");
12687 arg2 =
static_cast< int >(val2);
12689 Py_BEGIN_ALLOW_THREADS
12691 result = (int)(arg1)->rand_int(arg2);
12693 PyEval_RestoreThread(_save);
12694 PyErr_SetString(PyExc_RuntimeError, e.
what());
12697 Py_END_ALLOW_THREADS
12699 resultobj = SWIG_From_int(static_cast< int >(result));
12706 SWIGINTERN PyObject *_wrap_RandomGenerator_rand_int(PyObject *
self, PyObject *args) {
12708 PyObject *argv[3] = {
12713 if (!PyTuple_Check(args)) SWIG_fail;
12714 argc = args ? PyObject_Length(args) : 0;
12715 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
12716 argv[ii] = PyTuple_GET_ITEM(args,ii);
12721 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__RandomGenerator, 0);
12722 _v = SWIG_CheckState(res);
12724 return _wrap_RandomGenerator_rand_int__SWIG_0(
self, args);
12730 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__RandomGenerator, 0);
12731 _v = SWIG_CheckState(res);
12734 int res = SWIG_AsVal_int(argv[1], NULL);
12735 _v = SWIG_CheckState(res);
12738 return _wrap_RandomGenerator_rand_int__SWIG_1(
self, args);
12744 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'RandomGenerator_rand_int'.\n"
12745 " Possible C/C++ prototypes are:\n"
12746 " faiss::RandomGenerator::rand_int()\n"
12747 " faiss::RandomGenerator::rand_int(int)\n");
12752 SWIGINTERN PyObject *_wrap_RandomGenerator_rand_float(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12753 PyObject *resultobj = 0;
12757 PyObject * obj0 = 0 ;
12760 if (!PyArg_ParseTuple(args,(
char *)
"O:RandomGenerator_rand_float",&obj0)) SWIG_fail;
12761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
12762 if (!SWIG_IsOK(res1)) {
12763 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomGenerator_rand_float" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
12767 Py_BEGIN_ALLOW_THREADS
12771 PyEval_RestoreThread(_save);
12772 PyErr_SetString(PyExc_RuntimeError, e.
what());
12775 Py_END_ALLOW_THREADS
12777 resultobj = SWIG_From_float(static_cast< float >(result));
12784 SWIGINTERN PyObject *_wrap_RandomGenerator_rand_double(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12785 PyObject *resultobj = 0;
12789 PyObject * obj0 = 0 ;
12792 if (!PyArg_ParseTuple(args,(
char *)
"O:RandomGenerator_rand_double",&obj0)) SWIG_fail;
12793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
12794 if (!SWIG_IsOK(res1)) {
12795 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomGenerator_rand_double" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
12799 Py_BEGIN_ALLOW_THREADS
12801 result = (double)(arg1)->rand_double();
12803 PyEval_RestoreThread(_save);
12804 PyErr_SetString(PyExc_RuntimeError, e.
what());
12807 Py_END_ALLOW_THREADS
12809 resultobj = SWIG_From_double(static_cast< double >(result));
12816 SWIGINTERN PyObject *_wrap_new_RandomGenerator__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12817 PyObject *resultobj = 0;
12821 PyObject * obj0 = 0 ;
12824 if (!PyArg_ParseTuple(args,(
char *)
"O:new_RandomGenerator",&obj0)) SWIG_fail;
12825 ecode1 = SWIG_AsVal_long(obj0, &val1);
12826 if (!SWIG_IsOK(ecode1)) {
12827 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_RandomGenerator" "', argument " "1"" of type '" "long""'");
12829 arg1 =
static_cast< long >(val1);
12831 Py_BEGIN_ALLOW_THREADS
12835 PyEval_RestoreThread(_save);
12836 PyErr_SetString(PyExc_RuntimeError, e.
what());
12839 Py_END_ALLOW_THREADS
12841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RandomGenerator, SWIG_POINTER_NEW | 0 );
12848 SWIGINTERN PyObject *_wrap_new_RandomGenerator__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12849 PyObject *resultobj = 0;
12852 if (!PyArg_ParseTuple(args,(
char *)
":new_RandomGenerator")) SWIG_fail;
12854 Py_BEGIN_ALLOW_THREADS
12858 PyEval_RestoreThread(_save);
12859 PyErr_SetString(PyExc_RuntimeError, e.
what());
12862 Py_END_ALLOW_THREADS
12864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RandomGenerator, SWIG_POINTER_NEW | 0 );
12871 SWIGINTERN PyObject *_wrap_new_RandomGenerator(PyObject *
self, PyObject *args) {
12873 PyObject *argv[2] = {
12878 if (!PyTuple_Check(args)) SWIG_fail;
12879 argc = args ? PyObject_Length(args) : 0;
12880 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
12881 argv[ii] = PyTuple_GET_ITEM(args,ii);
12884 return _wrap_new_RandomGenerator__SWIG_1(
self, args);
12889 int res = SWIG_AsVal_long(argv[0], NULL);
12890 _v = SWIG_CheckState(res);
12893 return _wrap_new_RandomGenerator__SWIG_0(
self, args);
12898 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_RandomGenerator'.\n"
12899 " Possible C/C++ prototypes are:\n"
12900 " faiss::RandomGenerator::RandomGenerator(long)\n"
12901 " faiss::RandomGenerator::RandomGenerator()\n");
12906 SWIGINTERN PyObject *_wrap_delete_RandomGenerator(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12907 PyObject *resultobj = 0;
12911 PyObject * obj0 = 0 ;
12913 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RandomGenerator",&obj0)) SWIG_fail;
12914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, SWIG_POINTER_DISOWN | 0 );
12915 if (!SWIG_IsOK(res1)) {
12916 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RandomGenerator" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
12920 resultobj = SWIG_Py_Void();
12927 SWIGINTERN PyObject *RandomGenerator_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12929 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
12930 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__RandomGenerator, SWIG_NewClientData(obj));
12931 return SWIG_Py_Void();
12934 SWIGINTERN PyObject *_wrap_float_rand(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12935 PyObject *resultobj = 0;
12936 float *arg1 = (
float *) 0 ;
12945 PyObject * obj0 = 0 ;
12946 PyObject * obj1 = 0 ;
12947 PyObject * obj2 = 0 ;
12949 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_rand",&obj0,&obj1,&obj2)) SWIG_fail;
12950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
12951 if (!SWIG_IsOK(res1)) {
12952 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_rand" "', argument " "1"" of type '" "float *""'");
12954 arg1 =
reinterpret_cast< float *
>(argp1);
12955 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
12956 if (!SWIG_IsOK(ecode2)) {
12957 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_rand" "', argument " "2"" of type '" "size_t""'");
12959 arg2 =
static_cast< size_t >(val2);
12960 ecode3 = SWIG_AsVal_long(obj2, &val3);
12961 if (!SWIG_IsOK(ecode3)) {
12962 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "float_rand" "', argument " "3"" of type '" "long""'");
12964 arg3 =
static_cast< long >(val3);
12966 Py_BEGIN_ALLOW_THREADS
12968 faiss::float_rand(arg1,arg2,arg3);
12970 PyEval_RestoreThread(_save);
12971 PyErr_SetString(PyExc_RuntimeError, e.
what());
12974 Py_END_ALLOW_THREADS
12976 resultobj = SWIG_Py_Void();
12983 SWIGINTERN PyObject *_wrap_float_randn(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12984 PyObject *resultobj = 0;
12985 float *arg1 = (
float *) 0 ;
12994 PyObject * obj0 = 0 ;
12995 PyObject * obj1 = 0 ;
12996 PyObject * obj2 = 0 ;
12998 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_randn",&obj0,&obj1,&obj2)) SWIG_fail;
12999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
13000 if (!SWIG_IsOK(res1)) {
13001 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_randn" "', argument " "1"" of type '" "float *""'");
13003 arg1 =
reinterpret_cast< float *
>(argp1);
13004 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13005 if (!SWIG_IsOK(ecode2)) {
13006 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_randn" "', argument " "2"" of type '" "size_t""'");
13008 arg2 =
static_cast< size_t >(val2);
13009 ecode3 = SWIG_AsVal_long(obj2, &val3);
13010 if (!SWIG_IsOK(ecode3)) {
13011 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "float_randn" "', argument " "3"" of type '" "long""'");
13013 arg3 =
static_cast< long >(val3);
13015 Py_BEGIN_ALLOW_THREADS
13017 faiss::float_randn(arg1,arg2,arg3);
13019 PyEval_RestoreThread(_save);
13020 PyErr_SetString(PyExc_RuntimeError, e.
what());
13023 Py_END_ALLOW_THREADS
13025 resultobj = SWIG_Py_Void();
13032 SWIGINTERN PyObject *_wrap_long_rand(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13033 PyObject *resultobj = 0;
13034 long *arg1 = (
long *) 0 ;
13043 PyObject * obj0 = 0 ;
13044 PyObject * obj1 = 0 ;
13045 PyObject * obj2 = 0 ;
13047 if (!PyArg_ParseTuple(args,(
char *)
"OOO:long_rand",&obj0,&obj1,&obj2)) SWIG_fail;
13048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_long, 0 | 0 );
13049 if (!SWIG_IsOK(res1)) {
13050 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "long_rand" "', argument " "1"" of type '" "long *""'");
13052 arg1 =
reinterpret_cast< long *
>(argp1);
13053 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13054 if (!SWIG_IsOK(ecode2)) {
13055 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "long_rand" "', argument " "2"" of type '" "size_t""'");
13057 arg2 =
static_cast< size_t >(val2);
13058 ecode3 = SWIG_AsVal_long(obj2, &val3);
13059 if (!SWIG_IsOK(ecode3)) {
13060 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "long_rand" "', argument " "3"" of type '" "long""'");
13062 arg3 =
static_cast< long >(val3);
13064 Py_BEGIN_ALLOW_THREADS
13066 faiss::long_rand(arg1,arg2,arg3);
13068 PyEval_RestoreThread(_save);
13069 PyErr_SetString(PyExc_RuntimeError, e.
what());
13072 Py_END_ALLOW_THREADS
13074 resultobj = SWIG_Py_Void();
13081 SWIGINTERN PyObject *_wrap_byte_rand(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13082 PyObject *resultobj = 0;
13083 uint8_t *arg1 = (uint8_t *) 0 ;
13092 PyObject * obj0 = 0 ;
13093 PyObject * obj1 = 0 ;
13094 PyObject * obj2 = 0 ;
13096 if (!PyArg_ParseTuple(args,(
char *)
"OOO:byte_rand",&obj0,&obj1,&obj2)) SWIG_fail;
13097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
13098 if (!SWIG_IsOK(res1)) {
13099 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "byte_rand" "', argument " "1"" of type '" "uint8_t *""'");
13101 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
13102 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13103 if (!SWIG_IsOK(ecode2)) {
13104 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "byte_rand" "', argument " "2"" of type '" "size_t""'");
13106 arg2 =
static_cast< size_t >(val2);
13107 ecode3 = SWIG_AsVal_long(obj2, &val3);
13108 if (!SWIG_IsOK(ecode3)) {
13109 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "byte_rand" "', argument " "3"" of type '" "long""'");
13111 arg3 =
static_cast< long >(val3);
13113 Py_BEGIN_ALLOW_THREADS
13115 faiss::byte_rand(arg1,arg2,arg3);
13117 PyEval_RestoreThread(_save);
13118 PyErr_SetString(PyExc_RuntimeError, e.
what());
13121 Py_END_ALLOW_THREADS
13123 resultobj = SWIG_Py_Void();
13130 SWIGINTERN PyObject *_wrap_rand_perm(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13131 PyObject *resultobj = 0;
13132 int *arg1 = (
int *) 0 ;
13141 PyObject * obj0 = 0 ;
13142 PyObject * obj1 = 0 ;
13143 PyObject * obj2 = 0 ;
13145 if (!PyArg_ParseTuple(args,(
char *)
"OOO:rand_perm",&obj0,&obj1,&obj2)) SWIG_fail;
13146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 | 0 );
13147 if (!SWIG_IsOK(res1)) {
13148 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "rand_perm" "', argument " "1"" of type '" "int *""'");
13150 arg1 =
reinterpret_cast< int *
>(argp1);
13151 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13152 if (!SWIG_IsOK(ecode2)) {
13153 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "rand_perm" "', argument " "2"" of type '" "size_t""'");
13155 arg2 =
static_cast< size_t >(val2);
13156 ecode3 = SWIG_AsVal_long(obj2, &val3);
13157 if (!SWIG_IsOK(ecode3)) {
13158 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "rand_perm" "', argument " "3"" of type '" "long""'");
13160 arg3 =
static_cast< long >(val3);
13162 Py_BEGIN_ALLOW_THREADS
13164 faiss::rand_perm(arg1,arg2,arg3);
13166 PyEval_RestoreThread(_save);
13167 PyErr_SetString(PyExc_RuntimeError, e.
what());
13170 Py_END_ALLOW_THREADS
13172 resultobj = SWIG_Py_Void();
13179 SWIGINTERN PyObject *_wrap_fvec_L2sqr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13180 PyObject *resultobj = 0;
13181 float *arg1 = (
float *) 0 ;
13182 float *arg2 = (
float *) 0 ;
13190 PyObject * obj0 = 0 ;
13191 PyObject * obj1 = 0 ;
13192 PyObject * obj2 = 0 ;
13195 if (!PyArg_ParseTuple(args,(
char *)
"OOO:fvec_L2sqr",&obj0,&obj1,&obj2)) SWIG_fail;
13196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
13197 if (!SWIG_IsOK(res1)) {
13198 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_L2sqr" "', argument " "1"" of type '" "float const *""'");
13200 arg1 =
reinterpret_cast< float *
>(argp1);
13201 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
13202 if (!SWIG_IsOK(res2)) {
13203 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_L2sqr" "', argument " "2"" of type '" "float const *""'");
13205 arg2 =
reinterpret_cast< float *
>(argp2);
13206 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
13207 if (!SWIG_IsOK(ecode3)) {
13208 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvec_L2sqr" "', argument " "3"" of type '" "size_t""'");
13210 arg3 =
static_cast< size_t >(val3);
13212 Py_BEGIN_ALLOW_THREADS
13214 result = (float)
faiss::fvec_L2sqr((
float const *)arg1,(
float const *)arg2,arg3);
13216 PyEval_RestoreThread(_save);
13217 PyErr_SetString(PyExc_RuntimeError, e.
what());
13220 Py_END_ALLOW_THREADS
13222 resultobj = SWIG_From_float(static_cast< float >(result));
13229 SWIGINTERN PyObject *_wrap_fvec_inner_product(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13230 PyObject *resultobj = 0;
13231 float *arg1 = (
float *) 0 ;
13232 float *arg2 = (
float *) 0 ;
13240 PyObject * obj0 = 0 ;
13241 PyObject * obj1 = 0 ;
13242 PyObject * obj2 = 0 ;
13245 if (!PyArg_ParseTuple(args,(
char *)
"OOO:fvec_inner_product",&obj0,&obj1,&obj2)) SWIG_fail;
13246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
13247 if (!SWIG_IsOK(res1)) {
13248 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_inner_product" "', argument " "1"" of type '" "float const *""'");
13250 arg1 =
reinterpret_cast< float *
>(argp1);
13251 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
13252 if (!SWIG_IsOK(res2)) {
13253 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_inner_product" "', argument " "2"" of type '" "float const *""'");
13255 arg2 =
reinterpret_cast< float *
>(argp2);
13256 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
13257 if (!SWIG_IsOK(ecode3)) {
13258 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvec_inner_product" "', argument " "3"" of type '" "size_t""'");
13260 arg3 =
static_cast< size_t >(val3);
13262 Py_BEGIN_ALLOW_THREADS
13264 result = (float)faiss::fvec_inner_product((
float const *)arg1,(
float const *)arg2,arg3);
13266 PyEval_RestoreThread(_save);
13267 PyErr_SetString(PyExc_RuntimeError, e.
what());
13270 Py_END_ALLOW_THREADS
13272 resultobj = SWIG_From_float(static_cast< float >(result));
13279 SWIGINTERN PyObject *_wrap_imbalance_factor__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13280 PyObject *resultobj = 0;
13283 long *arg3 = (
long *) 0 ;
13290 PyObject * obj0 = 0 ;
13291 PyObject * obj1 = 0 ;
13292 PyObject * obj2 = 0 ;
13295 if (!PyArg_ParseTuple(args,(
char *)
"OOO:imbalance_factor",&obj0,&obj1,&obj2)) SWIG_fail;
13296 ecode1 = SWIG_AsVal_int(obj0, &val1);
13297 if (!SWIG_IsOK(ecode1)) {
13298 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "imbalance_factor" "', argument " "1"" of type '" "int""'");
13300 arg1 =
static_cast< int >(val1);
13301 ecode2 = SWIG_AsVal_int(obj1, &val2);
13302 if (!SWIG_IsOK(ecode2)) {
13303 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "imbalance_factor" "', argument " "2"" of type '" "int""'");
13305 arg2 =
static_cast< int >(val2);
13306 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
13307 if (!SWIG_IsOK(res3)) {
13308 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "imbalance_factor" "', argument " "3"" of type '" "long const *""'");
13310 arg3 =
reinterpret_cast< long *
>(argp3);
13312 Py_BEGIN_ALLOW_THREADS
13314 result = (double)faiss::imbalance_factor(arg1,arg2,(
long const *)arg3);
13316 PyEval_RestoreThread(_save);
13317 PyErr_SetString(PyExc_RuntimeError, e.
what());
13320 Py_END_ALLOW_THREADS
13322 resultobj = SWIG_From_double(static_cast< double >(result));
13329 SWIGINTERN PyObject *_wrap_imbalance_factor__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13330 PyObject *resultobj = 0;
13332 int *arg2 = (
int *) 0 ;
13337 PyObject * obj0 = 0 ;
13338 PyObject * obj1 = 0 ;
13341 if (!PyArg_ParseTuple(args,(
char *)
"OO:imbalance_factor",&obj0,&obj1)) SWIG_fail;
13342 ecode1 = SWIG_AsVal_int(obj0, &val1);
13343 if (!SWIG_IsOK(ecode1)) {
13344 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "imbalance_factor" "', argument " "1"" of type '" "int""'");
13346 arg1 =
static_cast< int >(val1);
13347 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
13348 if (!SWIG_IsOK(res2)) {
13349 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "imbalance_factor" "', argument " "2"" of type '" "int const *""'");
13351 arg2 =
reinterpret_cast< int *
>(argp2);
13353 Py_BEGIN_ALLOW_THREADS
13355 result = (double)faiss::imbalance_factor(arg1,(
int const *)arg2);
13357 PyEval_RestoreThread(_save);
13358 PyErr_SetString(PyExc_RuntimeError, e.
what());
13361 Py_END_ALLOW_THREADS
13363 resultobj = SWIG_From_double(static_cast< double >(result));
13370 SWIGINTERN PyObject *_wrap_imbalance_factor(PyObject *
self, PyObject *args) {
13372 PyObject *argv[4] = {
13377 if (!PyTuple_Check(args)) SWIG_fail;
13378 argc = args ? PyObject_Length(args) : 0;
13379 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
13380 argv[ii] = PyTuple_GET_ITEM(args,ii);
13385 int res = SWIG_AsVal_int(argv[0], NULL);
13386 _v = SWIG_CheckState(res);
13390 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
13391 _v = SWIG_CheckState(res);
13393 return _wrap_imbalance_factor__SWIG_1(
self, args);
13400 int res = SWIG_AsVal_int(argv[0], NULL);
13401 _v = SWIG_CheckState(res);
13405 int res = SWIG_AsVal_int(argv[1], NULL);
13406 _v = SWIG_CheckState(res);
13410 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_long, 0);
13411 _v = SWIG_CheckState(res);
13413 return _wrap_imbalance_factor__SWIG_0(
self, args);
13420 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'imbalance_factor'.\n"
13421 " Possible C/C++ prototypes are:\n"
13422 " faiss::imbalance_factor(int,int,long const *)\n"
13423 " faiss::imbalance_factor(int,int const *)\n");
13428 SWIGINTERN PyObject *_wrap_pairwise_L2sqr__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13429 PyObject *resultobj = 0;
13432 float *arg3 = (
float *) 0 ;
13434 float *arg5 = (
float *) 0 ;
13435 float *arg6 = (
float *) 0 ;
13457 PyObject * obj0 = 0 ;
13458 PyObject * obj1 = 0 ;
13459 PyObject * obj2 = 0 ;
13460 PyObject * obj3 = 0 ;
13461 PyObject * obj4 = 0 ;
13462 PyObject * obj5 = 0 ;
13463 PyObject * obj6 = 0 ;
13464 PyObject * obj7 = 0 ;
13465 PyObject * obj8 = 0 ;
13467 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOO:pairwise_L2sqr",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
13468 ecode1 = SWIG_AsVal_long(obj0, &val1);
13469 if (!SWIG_IsOK(ecode1)) {
13470 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "pairwise_L2sqr" "', argument " "1"" of type '" "long""'");
13472 arg1 =
static_cast< long >(val1);
13473 ecode2 = SWIG_AsVal_long(obj1, &val2);
13474 if (!SWIG_IsOK(ecode2)) {
13475 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "pairwise_L2sqr" "', argument " "2"" of type '" "long""'");
13477 arg2 =
static_cast< long >(val2);
13478 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
13479 if (!SWIG_IsOK(res3)) {
13480 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "pairwise_L2sqr" "', argument " "3"" of type '" "float const *""'");
13482 arg3 =
reinterpret_cast< float *
>(argp3);
13483 ecode4 = SWIG_AsVal_long(obj3, &val4);
13484 if (!SWIG_IsOK(ecode4)) {
13485 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "pairwise_L2sqr" "', argument " "4"" of type '" "long""'");
13487 arg4 =
static_cast< long >(val4);
13488 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
13489 if (!SWIG_IsOK(res5)) {
13490 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "pairwise_L2sqr" "', argument " "5"" of type '" "float const *""'");
13492 arg5 =
reinterpret_cast< float *
>(argp5);
13493 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
13494 if (!SWIG_IsOK(res6)) {
13495 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "pairwise_L2sqr" "', argument " "6"" of type '" "float *""'");
13497 arg6 =
reinterpret_cast< float *
>(argp6);
13498 ecode7 = SWIG_AsVal_long(obj6, &val7);
13499 if (!SWIG_IsOK(ecode7)) {
13500 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "pairwise_L2sqr" "', argument " "7"" of type '" "long""'");
13502 arg7 =
static_cast< long >(val7);
13503 ecode8 = SWIG_AsVal_long(obj7, &val8);
13504 if (!SWIG_IsOK(ecode8)) {
13505 SWIG_exception_fail(SWIG_ArgError(ecode8),
"in method '" "pairwise_L2sqr" "', argument " "8"" of type '" "long""'");
13507 arg8 =
static_cast< long >(val8);
13508 ecode9 = SWIG_AsVal_long(obj8, &val9);
13509 if (!SWIG_IsOK(ecode9)) {
13510 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "pairwise_L2sqr" "', argument " "9"" of type '" "long""'");
13512 arg9 =
static_cast< long >(val9);
13514 Py_BEGIN_ALLOW_THREADS
13518 PyEval_RestoreThread(_save);
13519 PyErr_SetString(PyExc_RuntimeError, e.
what());
13522 Py_END_ALLOW_THREADS
13524 resultobj = SWIG_Py_Void();
13531 SWIGINTERN PyObject *_wrap_pairwise_L2sqr__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13532 PyObject *resultobj = 0;
13535 float *arg3 = (
float *) 0 ;
13537 float *arg5 = (
float *) 0 ;
13538 float *arg6 = (
float *) 0 ;
13557 PyObject * obj0 = 0 ;
13558 PyObject * obj1 = 0 ;
13559 PyObject * obj2 = 0 ;
13560 PyObject * obj3 = 0 ;
13561 PyObject * obj4 = 0 ;
13562 PyObject * obj5 = 0 ;
13563 PyObject * obj6 = 0 ;
13564 PyObject * obj7 = 0 ;
13566 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:pairwise_L2sqr",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
13567 ecode1 = SWIG_AsVal_long(obj0, &val1);
13568 if (!SWIG_IsOK(ecode1)) {
13569 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "pairwise_L2sqr" "', argument " "1"" of type '" "long""'");
13571 arg1 =
static_cast< long >(val1);
13572 ecode2 = SWIG_AsVal_long(obj1, &val2);
13573 if (!SWIG_IsOK(ecode2)) {
13574 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "pairwise_L2sqr" "', argument " "2"" of type '" "long""'");
13576 arg2 =
static_cast< long >(val2);
13577 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
13578 if (!SWIG_IsOK(res3)) {
13579 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "pairwise_L2sqr" "', argument " "3"" of type '" "float const *""'");
13581 arg3 =
reinterpret_cast< float *
>(argp3);
13582 ecode4 = SWIG_AsVal_long(obj3, &val4);
13583 if (!SWIG_IsOK(ecode4)) {
13584 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "pairwise_L2sqr" "', argument " "4"" of type '" "long""'");
13586 arg4 =
static_cast< long >(val4);
13587 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
13588 if (!SWIG_IsOK(res5)) {
13589 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "pairwise_L2sqr" "', argument " "5"" of type '" "float const *""'");
13591 arg5 =
reinterpret_cast< float *
>(argp5);
13592 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
13593 if (!SWIG_IsOK(res6)) {
13594 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "pairwise_L2sqr" "', argument " "6"" of type '" "float *""'");
13596 arg6 =
reinterpret_cast< float *
>(argp6);
13597 ecode7 = SWIG_AsVal_long(obj6, &val7);
13598 if (!SWIG_IsOK(ecode7)) {
13599 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "pairwise_L2sqr" "', argument " "7"" of type '" "long""'");
13601 arg7 =
static_cast< long >(val7);
13602 ecode8 = SWIG_AsVal_long(obj7, &val8);
13603 if (!SWIG_IsOK(ecode8)) {
13604 SWIG_exception_fail(SWIG_ArgError(ecode8),
"in method '" "pairwise_L2sqr" "', argument " "8"" of type '" "long""'");
13606 arg8 =
static_cast< long >(val8);
13608 Py_BEGIN_ALLOW_THREADS
13612 PyEval_RestoreThread(_save);
13613 PyErr_SetString(PyExc_RuntimeError, e.
what());
13616 Py_END_ALLOW_THREADS
13618 resultobj = SWIG_Py_Void();
13625 SWIGINTERN PyObject *_wrap_pairwise_L2sqr__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13626 PyObject *resultobj = 0;
13629 float *arg3 = (
float *) 0 ;
13631 float *arg5 = (
float *) 0 ;
13632 float *arg6 = (
float *) 0 ;
13648 PyObject * obj0 = 0 ;
13649 PyObject * obj1 = 0 ;
13650 PyObject * obj2 = 0 ;
13651 PyObject * obj3 = 0 ;
13652 PyObject * obj4 = 0 ;
13653 PyObject * obj5 = 0 ;
13654 PyObject * obj6 = 0 ;
13656 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:pairwise_L2sqr",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13657 ecode1 = SWIG_AsVal_long(obj0, &val1);
13658 if (!SWIG_IsOK(ecode1)) {
13659 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "pairwise_L2sqr" "', argument " "1"" of type '" "long""'");
13661 arg1 =
static_cast< long >(val1);
13662 ecode2 = SWIG_AsVal_long(obj1, &val2);
13663 if (!SWIG_IsOK(ecode2)) {
13664 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "pairwise_L2sqr" "', argument " "2"" of type '" "long""'");
13666 arg2 =
static_cast< long >(val2);
13667 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
13668 if (!SWIG_IsOK(res3)) {
13669 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "pairwise_L2sqr" "', argument " "3"" of type '" "float const *""'");
13671 arg3 =
reinterpret_cast< float *
>(argp3);
13672 ecode4 = SWIG_AsVal_long(obj3, &val4);
13673 if (!SWIG_IsOK(ecode4)) {
13674 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "pairwise_L2sqr" "', argument " "4"" of type '" "long""'");
13676 arg4 =
static_cast< long >(val4);
13677 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
13678 if (!SWIG_IsOK(res5)) {
13679 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "pairwise_L2sqr" "', argument " "5"" of type '" "float const *""'");
13681 arg5 =
reinterpret_cast< float *
>(argp5);
13682 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
13683 if (!SWIG_IsOK(res6)) {
13684 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "pairwise_L2sqr" "', argument " "6"" of type '" "float *""'");
13686 arg6 =
reinterpret_cast< float *
>(argp6);
13687 ecode7 = SWIG_AsVal_long(obj6, &val7);
13688 if (!SWIG_IsOK(ecode7)) {
13689 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "pairwise_L2sqr" "', argument " "7"" of type '" "long""'");
13691 arg7 =
static_cast< long >(val7);
13693 Py_BEGIN_ALLOW_THREADS
13697 PyEval_RestoreThread(_save);
13698 PyErr_SetString(PyExc_RuntimeError, e.
what());
13701 Py_END_ALLOW_THREADS
13703 resultobj = SWIG_Py_Void();
13710 SWIGINTERN PyObject *_wrap_pairwise_L2sqr__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13711 PyObject *resultobj = 0;
13714 float *arg3 = (
float *) 0 ;
13716 float *arg5 = (
float *) 0 ;
13717 float *arg6 = (
float *) 0 ;
13730 PyObject * obj0 = 0 ;
13731 PyObject * obj1 = 0 ;
13732 PyObject * obj2 = 0 ;
13733 PyObject * obj3 = 0 ;
13734 PyObject * obj4 = 0 ;
13735 PyObject * obj5 = 0 ;
13737 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:pairwise_L2sqr",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13738 ecode1 = SWIG_AsVal_long(obj0, &val1);
13739 if (!SWIG_IsOK(ecode1)) {
13740 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "pairwise_L2sqr" "', argument " "1"" of type '" "long""'");
13742 arg1 =
static_cast< long >(val1);
13743 ecode2 = SWIG_AsVal_long(obj1, &val2);
13744 if (!SWIG_IsOK(ecode2)) {
13745 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "pairwise_L2sqr" "', argument " "2"" of type '" "long""'");
13747 arg2 =
static_cast< long >(val2);
13748 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
13749 if (!SWIG_IsOK(res3)) {
13750 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "pairwise_L2sqr" "', argument " "3"" of type '" "float const *""'");
13752 arg3 =
reinterpret_cast< float *
>(argp3);
13753 ecode4 = SWIG_AsVal_long(obj3, &val4);
13754 if (!SWIG_IsOK(ecode4)) {
13755 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "pairwise_L2sqr" "', argument " "4"" of type '" "long""'");
13757 arg4 =
static_cast< long >(val4);
13758 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
13759 if (!SWIG_IsOK(res5)) {
13760 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "pairwise_L2sqr" "', argument " "5"" of type '" "float const *""'");
13762 arg5 =
reinterpret_cast< float *
>(argp5);
13763 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
13764 if (!SWIG_IsOK(res6)) {
13765 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "pairwise_L2sqr" "', argument " "6"" of type '" "float *""'");
13767 arg6 =
reinterpret_cast< float *
>(argp6);
13769 Py_BEGIN_ALLOW_THREADS
13773 PyEval_RestoreThread(_save);
13774 PyErr_SetString(PyExc_RuntimeError, e.
what());
13777 Py_END_ALLOW_THREADS
13779 resultobj = SWIG_Py_Void();
13786 SWIGINTERN PyObject *_wrap_pairwise_L2sqr(PyObject *
self, PyObject *args) {
13788 PyObject *argv[10] = {
13793 if (!PyTuple_Check(args)) SWIG_fail;
13794 argc = args ? PyObject_Length(args) : 0;
13795 for (ii = 0; (ii < 9) && (ii < argc); ii++) {
13796 argv[ii] = PyTuple_GET_ITEM(args,ii);
13801 int res = SWIG_AsVal_long(argv[0], NULL);
13802 _v = SWIG_CheckState(res);
13806 int res = SWIG_AsVal_long(argv[1], NULL);
13807 _v = SWIG_CheckState(res);
13811 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
13812 _v = SWIG_CheckState(res);
13815 int res = SWIG_AsVal_long(argv[3], NULL);
13816 _v = SWIG_CheckState(res);
13820 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
13821 _v = SWIG_CheckState(res);
13824 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
13825 _v = SWIG_CheckState(res);
13827 return _wrap_pairwise_L2sqr__SWIG_3(
self, args);
13838 int res = SWIG_AsVal_long(argv[0], NULL);
13839 _v = SWIG_CheckState(res);
13843 int res = SWIG_AsVal_long(argv[1], NULL);
13844 _v = SWIG_CheckState(res);
13848 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
13849 _v = SWIG_CheckState(res);
13852 int res = SWIG_AsVal_long(argv[3], NULL);
13853 _v = SWIG_CheckState(res);
13857 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
13858 _v = SWIG_CheckState(res);
13861 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
13862 _v = SWIG_CheckState(res);
13865 int res = SWIG_AsVal_long(argv[6], NULL);
13866 _v = SWIG_CheckState(res);
13869 return _wrap_pairwise_L2sqr__SWIG_2(
self, args);
13881 int res = SWIG_AsVal_long(argv[0], NULL);
13882 _v = SWIG_CheckState(res);
13886 int res = SWIG_AsVal_long(argv[1], NULL);
13887 _v = SWIG_CheckState(res);
13891 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
13892 _v = SWIG_CheckState(res);
13895 int res = SWIG_AsVal_long(argv[3], NULL);
13896 _v = SWIG_CheckState(res);
13900 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
13901 _v = SWIG_CheckState(res);
13904 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
13905 _v = SWIG_CheckState(res);
13908 int res = SWIG_AsVal_long(argv[6], NULL);
13909 _v = SWIG_CheckState(res);
13913 int res = SWIG_AsVal_long(argv[7], NULL);
13914 _v = SWIG_CheckState(res);
13917 return _wrap_pairwise_L2sqr__SWIG_1(
self, args);
13930 int res = SWIG_AsVal_long(argv[0], NULL);
13931 _v = SWIG_CheckState(res);
13935 int res = SWIG_AsVal_long(argv[1], NULL);
13936 _v = SWIG_CheckState(res);
13940 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
13941 _v = SWIG_CheckState(res);
13944 int res = SWIG_AsVal_long(argv[3], NULL);
13945 _v = SWIG_CheckState(res);
13949 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
13950 _v = SWIG_CheckState(res);
13953 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
13954 _v = SWIG_CheckState(res);
13957 int res = SWIG_AsVal_long(argv[6], NULL);
13958 _v = SWIG_CheckState(res);
13962 int res = SWIG_AsVal_long(argv[7], NULL);
13963 _v = SWIG_CheckState(res);
13967 int res = SWIG_AsVal_long(argv[8], NULL);
13968 _v = SWIG_CheckState(res);
13971 return _wrap_pairwise_L2sqr__SWIG_0(
self, args);
13984 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'pairwise_L2sqr'.\n"
13985 " Possible C/C++ prototypes are:\n"
13986 " faiss::pairwise_L2sqr(long,long,float const *,long,float const *,float *,long,long,long)\n"
13987 " faiss::pairwise_L2sqr(long,long,float const *,long,float const *,float *,long,long)\n"
13988 " faiss::pairwise_L2sqr(long,long,float const *,long,float const *,float *,long)\n"
13989 " faiss::pairwise_L2sqr(long,long,float const *,long,float const *,float *)\n");
13994 SWIGINTERN PyObject *_wrap_fvec_inner_products_ny(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13995 PyObject *resultobj = 0;
13996 float *arg1 = (
float *) 0 ;
13997 float *arg2 = (
float *) 0 ;
13998 float *arg3 = (
float *) 0 ;
14011 PyObject * obj0 = 0 ;
14012 PyObject * obj1 = 0 ;
14013 PyObject * obj2 = 0 ;
14014 PyObject * obj3 = 0 ;
14015 PyObject * obj4 = 0 ;
14017 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:fvec_inner_products_ny",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14019 if (!SWIG_IsOK(res1)) {
14020 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_inner_products_ny" "', argument " "1"" of type '" "float *""'");
14022 arg1 =
reinterpret_cast< float *
>(argp1);
14023 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
14024 if (!SWIG_IsOK(res2)) {
14025 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_inner_products_ny" "', argument " "2"" of type '" "float const *""'");
14027 arg2 =
reinterpret_cast< float *
>(argp2);
14028 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
14029 if (!SWIG_IsOK(res3)) {
14030 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "fvec_inner_products_ny" "', argument " "3"" of type '" "float const *""'");
14032 arg3 =
reinterpret_cast< float *
>(argp3);
14033 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
14034 if (!SWIG_IsOK(ecode4)) {
14035 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "fvec_inner_products_ny" "', argument " "4"" of type '" "size_t""'");
14037 arg4 =
static_cast< size_t >(val4);
14038 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
14039 if (!SWIG_IsOK(ecode5)) {
14040 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "fvec_inner_products_ny" "', argument " "5"" of type '" "size_t""'");
14042 arg5 =
static_cast< size_t >(val5);
14044 Py_BEGIN_ALLOW_THREADS
14046 faiss::fvec_inner_products_ny(arg1,(
float const *)arg2,(
float const *)arg3,arg4,arg5);
14048 PyEval_RestoreThread(_save);
14049 PyErr_SetString(PyExc_RuntimeError, e.
what());
14052 Py_END_ALLOW_THREADS
14054 resultobj = SWIG_Py_Void();
14061 SWIGINTERN PyObject *_wrap_fvec_L2sqr_ny(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14062 PyObject *resultobj = 0;
14063 float *arg1 = (
float *) 0 ;
14064 float *arg2 = (
float *) 0 ;
14065 float *arg3 = (
float *) 0 ;
14078 PyObject * obj0 = 0 ;
14079 PyObject * obj1 = 0 ;
14080 PyObject * obj2 = 0 ;
14081 PyObject * obj3 = 0 ;
14082 PyObject * obj4 = 0 ;
14084 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:fvec_L2sqr_ny",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14086 if (!SWIG_IsOK(res1)) {
14087 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_L2sqr_ny" "', argument " "1"" of type '" "float *""'");
14089 arg1 =
reinterpret_cast< float *
>(argp1);
14090 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
14091 if (!SWIG_IsOK(res2)) {
14092 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_L2sqr_ny" "', argument " "2"" of type '" "float const *""'");
14094 arg2 =
reinterpret_cast< float *
>(argp2);
14095 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
14096 if (!SWIG_IsOK(res3)) {
14097 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "fvec_L2sqr_ny" "', argument " "3"" of type '" "float const *""'");
14099 arg3 =
reinterpret_cast< float *
>(argp3);
14100 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
14101 if (!SWIG_IsOK(ecode4)) {
14102 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "fvec_L2sqr_ny" "', argument " "4"" of type '" "size_t""'");
14104 arg4 =
static_cast< size_t >(val4);
14105 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
14106 if (!SWIG_IsOK(ecode5)) {
14107 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "fvec_L2sqr_ny" "', argument " "5"" of type '" "size_t""'");
14109 arg5 =
static_cast< size_t >(val5);
14111 Py_BEGIN_ALLOW_THREADS
14113 faiss::fvec_L2sqr_ny(arg1,(
float const *)arg2,(
float const *)arg3,arg4,arg5);
14115 PyEval_RestoreThread(_save);
14116 PyErr_SetString(PyExc_RuntimeError, e.
what());
14119 Py_END_ALLOW_THREADS
14121 resultobj = SWIG_Py_Void();
14128 SWIGINTERN PyObject *_wrap_fvec_norm_L2sqr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14129 PyObject *resultobj = 0;
14130 float *arg1 = (
float *) 0 ;
14136 PyObject * obj0 = 0 ;
14137 PyObject * obj1 = 0 ;
14140 if (!PyArg_ParseTuple(args,(
char *)
"OO:fvec_norm_L2sqr",&obj0,&obj1)) SWIG_fail;
14141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14142 if (!SWIG_IsOK(res1)) {
14143 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_norm_L2sqr" "', argument " "1"" of type '" "float const *""'");
14145 arg1 =
reinterpret_cast< float *
>(argp1);
14146 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
14147 if (!SWIG_IsOK(ecode2)) {
14148 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "fvec_norm_L2sqr" "', argument " "2"" of type '" "size_t""'");
14150 arg2 =
static_cast< size_t >(val2);
14152 Py_BEGIN_ALLOW_THREADS
14156 PyEval_RestoreThread(_save);
14157 PyErr_SetString(PyExc_RuntimeError, e.
what());
14160 Py_END_ALLOW_THREADS
14162 resultobj = SWIG_From_float(static_cast< float >(result));
14169 SWIGINTERN PyObject *_wrap_fvec_norms_L2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14170 PyObject *resultobj = 0;
14171 float *arg1 = (
float *) 0 ;
14172 float *arg2 = (
float *) 0 ;
14183 PyObject * obj0 = 0 ;
14184 PyObject * obj1 = 0 ;
14185 PyObject * obj2 = 0 ;
14186 PyObject * obj3 = 0 ;
14188 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:fvec_norms_L2",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14190 if (!SWIG_IsOK(res1)) {
14191 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_norms_L2" "', argument " "1"" of type '" "float *""'");
14193 arg1 =
reinterpret_cast< float *
>(argp1);
14194 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
14195 if (!SWIG_IsOK(res2)) {
14196 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_norms_L2" "', argument " "2"" of type '" "float const *""'");
14198 arg2 =
reinterpret_cast< float *
>(argp2);
14199 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
14200 if (!SWIG_IsOK(ecode3)) {
14201 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvec_norms_L2" "', argument " "3"" of type '" "size_t""'");
14203 arg3 =
static_cast< size_t >(val3);
14204 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
14205 if (!SWIG_IsOK(ecode4)) {
14206 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "fvec_norms_L2" "', argument " "4"" of type '" "size_t""'");
14208 arg4 =
static_cast< size_t >(val4);
14210 Py_BEGIN_ALLOW_THREADS
14214 PyEval_RestoreThread(_save);
14215 PyErr_SetString(PyExc_RuntimeError, e.
what());
14218 Py_END_ALLOW_THREADS
14220 resultobj = SWIG_Py_Void();
14227 SWIGINTERN PyObject *_wrap_fvec_norms_L2sqr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14228 PyObject *resultobj = 0;
14229 float *arg1 = (
float *) 0 ;
14230 float *arg2 = (
float *) 0 ;
14241 PyObject * obj0 = 0 ;
14242 PyObject * obj1 = 0 ;
14243 PyObject * obj2 = 0 ;
14244 PyObject * obj3 = 0 ;
14246 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:fvec_norms_L2sqr",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14248 if (!SWIG_IsOK(res1)) {
14249 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_norms_L2sqr" "', argument " "1"" of type '" "float *""'");
14251 arg1 =
reinterpret_cast< float *
>(argp1);
14252 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
14253 if (!SWIG_IsOK(res2)) {
14254 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_norms_L2sqr" "', argument " "2"" of type '" "float const *""'");
14256 arg2 =
reinterpret_cast< float *
>(argp2);
14257 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
14258 if (!SWIG_IsOK(ecode3)) {
14259 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvec_norms_L2sqr" "', argument " "3"" of type '" "size_t""'");
14261 arg3 =
static_cast< size_t >(val3);
14262 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
14263 if (!SWIG_IsOK(ecode4)) {
14264 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "fvec_norms_L2sqr" "', argument " "4"" of type '" "size_t""'");
14266 arg4 =
static_cast< size_t >(val4);
14268 Py_BEGIN_ALLOW_THREADS
14272 PyEval_RestoreThread(_save);
14273 PyErr_SetString(PyExc_RuntimeError, e.
what());
14276 Py_END_ALLOW_THREADS
14278 resultobj = SWIG_Py_Void();
14285 SWIGINTERN PyObject *_wrap_fvec_renorm_L2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14286 PyObject *resultobj = 0;
14289 float *arg3 = (
float *) 0 ;
14296 PyObject * obj0 = 0 ;
14297 PyObject * obj1 = 0 ;
14298 PyObject * obj2 = 0 ;
14300 if (!PyArg_ParseTuple(args,(
char *)
"OOO:fvec_renorm_L2",&obj0,&obj1,&obj2)) SWIG_fail;
14301 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
14302 if (!SWIG_IsOK(ecode1)) {
14303 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvec_renorm_L2" "', argument " "1"" of type '" "size_t""'");
14305 arg1 =
static_cast< size_t >(val1);
14306 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
14307 if (!SWIG_IsOK(ecode2)) {
14308 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "fvec_renorm_L2" "', argument " "2"" of type '" "size_t""'");
14310 arg2 =
static_cast< size_t >(val2);
14311 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
14312 if (!SWIG_IsOK(res3)) {
14313 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "fvec_renorm_L2" "', argument " "3"" of type '" "float *""'");
14315 arg3 =
reinterpret_cast< float *
>(argp3);
14317 Py_BEGIN_ALLOW_THREADS
14319 faiss::fvec_renorm_L2(arg1,arg2,arg3);
14321 PyEval_RestoreThread(_save);
14322 PyErr_SetString(PyExc_RuntimeError, e.
what());
14325 Py_END_ALLOW_THREADS
14327 resultobj = SWIG_Py_Void();
14334 SWIGINTERN PyObject *_wrap_inner_product_to_L2sqr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14335 PyObject *resultobj = 0;
14336 float *arg1 = (
float *) 0 ;
14337 float *arg2 = (
float *) 0 ;
14338 float *arg3 = (
float *) 0 ;
14351 PyObject * obj0 = 0 ;
14352 PyObject * obj1 = 0 ;
14353 PyObject * obj2 = 0 ;
14354 PyObject * obj3 = 0 ;
14355 PyObject * obj4 = 0 ;
14357 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:inner_product_to_L2sqr",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14359 if (!SWIG_IsOK(res1)) {
14360 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "inner_product_to_L2sqr" "', argument " "1"" of type '" "float *""'");
14362 arg1 =
reinterpret_cast< float *
>(argp1);
14363 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
14364 if (!SWIG_IsOK(res2)) {
14365 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "inner_product_to_L2sqr" "', argument " "2"" of type '" "float const *""'");
14367 arg2 =
reinterpret_cast< float *
>(argp2);
14368 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
14369 if (!SWIG_IsOK(res3)) {
14370 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "inner_product_to_L2sqr" "', argument " "3"" of type '" "float const *""'");
14372 arg3 =
reinterpret_cast< float *
>(argp3);
14373 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
14374 if (!SWIG_IsOK(ecode4)) {
14375 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "inner_product_to_L2sqr" "', argument " "4"" of type '" "size_t""'");
14377 arg4 =
static_cast< size_t >(val4);
14378 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
14379 if (!SWIG_IsOK(ecode5)) {
14380 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "inner_product_to_L2sqr" "', argument " "5"" of type '" "size_t""'");
14382 arg5 =
static_cast< size_t >(val5);
14384 Py_BEGIN_ALLOW_THREADS
14386 faiss::inner_product_to_L2sqr(arg1,(
float const *)arg2,(
float const *)arg3,arg4,arg5);
14388 PyEval_RestoreThread(_save);
14389 PyErr_SetString(PyExc_RuntimeError, e.
what());
14392 Py_END_ALLOW_THREADS
14394 resultobj = SWIG_Py_Void();
14401 SWIGINTERN PyObject *_wrap_fvec_inner_products_by_idx(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14402 PyObject *resultobj = 0;
14403 float *arg1 = (
float *) 0 ;
14404 float *arg2 = (
float *) 0 ;
14405 float *arg3 = (
float *) 0 ;
14406 long *arg4 = (
long *) 0 ;
14424 PyObject * obj0 = 0 ;
14425 PyObject * obj1 = 0 ;
14426 PyObject * obj2 = 0 ;
14427 PyObject * obj3 = 0 ;
14428 PyObject * obj4 = 0 ;
14429 PyObject * obj5 = 0 ;
14430 PyObject * obj6 = 0 ;
14432 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:fvec_inner_products_by_idx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14434 if (!SWIG_IsOK(res1)) {
14435 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_inner_products_by_idx" "', argument " "1"" of type '" "float *""'");
14437 arg1 =
reinterpret_cast< float *
>(argp1);
14438 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
14439 if (!SWIG_IsOK(res2)) {
14440 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_inner_products_by_idx" "', argument " "2"" of type '" "float const *""'");
14442 arg2 =
reinterpret_cast< float *
>(argp2);
14443 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
14444 if (!SWIG_IsOK(res3)) {
14445 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "fvec_inner_products_by_idx" "', argument " "3"" of type '" "float const *""'");
14447 arg3 =
reinterpret_cast< float *
>(argp3);
14448 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
14449 if (!SWIG_IsOK(res4)) {
14450 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "fvec_inner_products_by_idx" "', argument " "4"" of type '" "long const *""'");
14452 arg4 =
reinterpret_cast< long *
>(argp4);
14453 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
14454 if (!SWIG_IsOK(ecode5)) {
14455 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "fvec_inner_products_by_idx" "', argument " "5"" of type '" "size_t""'");
14457 arg5 =
static_cast< size_t >(val5);
14458 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
14459 if (!SWIG_IsOK(ecode6)) {
14460 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "fvec_inner_products_by_idx" "', argument " "6"" of type '" "size_t""'");
14462 arg6 =
static_cast< size_t >(val6);
14463 ecode7 = SWIG_AsVal_size_t(obj6, &val7);
14464 if (!SWIG_IsOK(ecode7)) {
14465 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "fvec_inner_products_by_idx" "', argument " "7"" of type '" "size_t""'");
14467 arg7 =
static_cast< size_t >(val7);
14469 Py_BEGIN_ALLOW_THREADS
14471 faiss::fvec_inner_products_by_idx(arg1,(
float const *)arg2,(
float const *)arg3,(
long const *)arg4,arg5,arg6,arg7);
14473 PyEval_RestoreThread(_save);
14474 PyErr_SetString(PyExc_RuntimeError, e.
what());
14477 Py_END_ALLOW_THREADS
14479 resultobj = SWIG_Py_Void();
14486 SWIGINTERN PyObject *_wrap_fvec_L2sqr_by_idx(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14487 PyObject *resultobj = 0;
14488 float *arg1 = (
float *) 0 ;
14489 float *arg2 = (
float *) 0 ;
14490 float *arg3 = (
float *) 0 ;
14491 long *arg4 = (
long *) 0 ;
14509 PyObject * obj0 = 0 ;
14510 PyObject * obj1 = 0 ;
14511 PyObject * obj2 = 0 ;
14512 PyObject * obj3 = 0 ;
14513 PyObject * obj4 = 0 ;
14514 PyObject * obj5 = 0 ;
14515 PyObject * obj6 = 0 ;
14517 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:fvec_L2sqr_by_idx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14519 if (!SWIG_IsOK(res1)) {
14520 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_L2sqr_by_idx" "', argument " "1"" of type '" "float *""'");
14522 arg1 =
reinterpret_cast< float *
>(argp1);
14523 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
14524 if (!SWIG_IsOK(res2)) {
14525 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_L2sqr_by_idx" "', argument " "2"" of type '" "float const *""'");
14527 arg2 =
reinterpret_cast< float *
>(argp2);
14528 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
14529 if (!SWIG_IsOK(res3)) {
14530 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "fvec_L2sqr_by_idx" "', argument " "3"" of type '" "float const *""'");
14532 arg3 =
reinterpret_cast< float *
>(argp3);
14533 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
14534 if (!SWIG_IsOK(res4)) {
14535 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "fvec_L2sqr_by_idx" "', argument " "4"" of type '" "long const *""'");
14537 arg4 =
reinterpret_cast< long *
>(argp4);
14538 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
14539 if (!SWIG_IsOK(ecode5)) {
14540 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "fvec_L2sqr_by_idx" "', argument " "5"" of type '" "size_t""'");
14542 arg5 =
static_cast< size_t >(val5);
14543 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
14544 if (!SWIG_IsOK(ecode6)) {
14545 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "fvec_L2sqr_by_idx" "', argument " "6"" of type '" "size_t""'");
14547 arg6 =
static_cast< size_t >(val6);
14548 ecode7 = SWIG_AsVal_size_t(obj6, &val7);
14549 if (!SWIG_IsOK(ecode7)) {
14550 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "fvec_L2sqr_by_idx" "', argument " "7"" of type '" "size_t""'");
14552 arg7 =
static_cast< size_t >(val7);
14554 Py_BEGIN_ALLOW_THREADS
14556 faiss::fvec_L2sqr_by_idx(arg1,(
float const *)arg2,(
float const *)arg3,(
long const *)arg4,arg5,arg6,arg7);
14558 PyEval_RestoreThread(_save);
14559 PyErr_SetString(PyExc_RuntimeError, e.
what());
14562 Py_END_ALLOW_THREADS
14564 resultobj = SWIG_Py_Void();
14571 SWIGINTERN
int Swig_var_distance_compute_blas_threshold_set(PyObject *_val) {
14574 int res = SWIG_AsVal_int(_val, &val);
14575 if (!SWIG_IsOK(res)) {
14576 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""faiss::distance_compute_blas_threshold""' of type '""int""'");
14578 faiss::distance_compute_blas_threshold =
static_cast< int >(val);
14586 SWIGINTERN PyObject *Swig_var_distance_compute_blas_threshold_get(
void) {
14587 PyObject *pyobj = 0;
14589 pyobj = SWIG_From_int(static_cast< int >(faiss::distance_compute_blas_threshold));
14594 SWIGINTERN PyObject *_wrap_knn_inner_product(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14595 PyObject *resultobj = 0;
14596 float *arg1 = (
float *) 0 ;
14597 float *arg2 = (
float *) 0 ;
14614 PyObject * obj0 = 0 ;
14615 PyObject * obj1 = 0 ;
14616 PyObject * obj2 = 0 ;
14617 PyObject * obj3 = 0 ;
14618 PyObject * obj4 = 0 ;
14619 PyObject * obj5 = 0 ;
14621 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:knn_inner_product",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14623 if (!SWIG_IsOK(res1)) {
14624 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "knn_inner_product" "', argument " "1"" of type '" "float const *""'");
14626 arg1 =
reinterpret_cast< float *
>(argp1);
14627 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
14628 if (!SWIG_IsOK(res2)) {
14629 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "knn_inner_product" "', argument " "2"" of type '" "float const *""'");
14631 arg2 =
reinterpret_cast< float *
>(argp2);
14632 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
14633 if (!SWIG_IsOK(ecode3)) {
14634 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "knn_inner_product" "', argument " "3"" of type '" "size_t""'");
14636 arg3 =
static_cast< size_t >(val3);
14637 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
14638 if (!SWIG_IsOK(ecode4)) {
14639 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "knn_inner_product" "', argument " "4"" of type '" "size_t""'");
14641 arg4 =
static_cast< size_t >(val4);
14642 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
14643 if (!SWIG_IsOK(ecode5)) {
14644 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "knn_inner_product" "', argument " "5"" of type '" "size_t""'");
14646 arg5 =
static_cast< size_t >(val5);
14647 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
14648 if (!SWIG_IsOK(res6)) {
14649 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "knn_inner_product" "', argument " "6"" of type '" "faiss::float_minheap_array_t *""'");
14653 Py_BEGIN_ALLOW_THREADS
14657 PyEval_RestoreThread(_save);
14658 PyErr_SetString(PyExc_RuntimeError, e.
what());
14661 Py_END_ALLOW_THREADS
14663 resultobj = SWIG_Py_Void();
14670 SWIGINTERN PyObject *_wrap_knn_L2sqr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14671 PyObject *resultobj = 0;
14672 float *arg1 = (
float *) 0 ;
14673 float *arg2 = (
float *) 0 ;
14690 PyObject * obj0 = 0 ;
14691 PyObject * obj1 = 0 ;
14692 PyObject * obj2 = 0 ;
14693 PyObject * obj3 = 0 ;
14694 PyObject * obj4 = 0 ;
14695 PyObject * obj5 = 0 ;
14697 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:knn_L2sqr",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14699 if (!SWIG_IsOK(res1)) {
14700 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "knn_L2sqr" "', argument " "1"" of type '" "float const *""'");
14702 arg1 =
reinterpret_cast< float *
>(argp1);
14703 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
14704 if (!SWIG_IsOK(res2)) {
14705 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "knn_L2sqr" "', argument " "2"" of type '" "float const *""'");
14707 arg2 =
reinterpret_cast< float *
>(argp2);
14708 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
14709 if (!SWIG_IsOK(ecode3)) {
14710 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "knn_L2sqr" "', argument " "3"" of type '" "size_t""'");
14712 arg3 =
static_cast< size_t >(val3);
14713 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
14714 if (!SWIG_IsOK(ecode4)) {
14715 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "knn_L2sqr" "', argument " "4"" of type '" "size_t""'");
14717 arg4 =
static_cast< size_t >(val4);
14718 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
14719 if (!SWIG_IsOK(ecode5)) {
14720 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "knn_L2sqr" "', argument " "5"" of type '" "size_t""'");
14722 arg5 =
static_cast< size_t >(val5);
14723 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
14724 if (!SWIG_IsOK(res6)) {
14725 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "knn_L2sqr" "', argument " "6"" of type '" "faiss::float_maxheap_array_t *""'");
14729 Py_BEGIN_ALLOW_THREADS
14731 faiss::knn_L2sqr((
float const *)arg1,(
float const *)arg2,arg3,arg4,arg5,arg6);
14733 PyEval_RestoreThread(_save);
14734 PyErr_SetString(PyExc_RuntimeError, e.
what());
14737 Py_END_ALLOW_THREADS
14739 resultobj = SWIG_Py_Void();
14746 SWIGINTERN PyObject *_wrap_knn_L2sqr_base_shift(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14747 PyObject *resultobj = 0;
14748 float *arg1 = (
float *) 0 ;
14749 float *arg2 = (
float *) 0 ;
14754 float *arg7 = (
float *) 0 ;
14769 PyObject * obj0 = 0 ;
14770 PyObject * obj1 = 0 ;
14771 PyObject * obj2 = 0 ;
14772 PyObject * obj3 = 0 ;
14773 PyObject * obj4 = 0 ;
14774 PyObject * obj5 = 0 ;
14775 PyObject * obj6 = 0 ;
14777 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:knn_L2sqr_base_shift",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14779 if (!SWIG_IsOK(res1)) {
14780 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "knn_L2sqr_base_shift" "', argument " "1"" of type '" "float const *""'");
14782 arg1 =
reinterpret_cast< float *
>(argp1);
14783 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
14784 if (!SWIG_IsOK(res2)) {
14785 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "knn_L2sqr_base_shift" "', argument " "2"" of type '" "float const *""'");
14787 arg2 =
reinterpret_cast< float *
>(argp2);
14788 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
14789 if (!SWIG_IsOK(ecode3)) {
14790 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "knn_L2sqr_base_shift" "', argument " "3"" of type '" "size_t""'");
14792 arg3 =
static_cast< size_t >(val3);
14793 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
14794 if (!SWIG_IsOK(ecode4)) {
14795 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "knn_L2sqr_base_shift" "', argument " "4"" of type '" "size_t""'");
14797 arg4 =
static_cast< size_t >(val4);
14798 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
14799 if (!SWIG_IsOK(ecode5)) {
14800 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "knn_L2sqr_base_shift" "', argument " "5"" of type '" "size_t""'");
14802 arg5 =
static_cast< size_t >(val5);
14803 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
14804 if (!SWIG_IsOK(res6)) {
14805 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "knn_L2sqr_base_shift" "', argument " "6"" of type '" "faiss::float_maxheap_array_t *""'");
14808 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
14809 if (!SWIG_IsOK(res7)) {
14810 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "knn_L2sqr_base_shift" "', argument " "7"" of type '" "float const *""'");
14812 arg7 =
reinterpret_cast< float *
>(argp7);
14814 Py_BEGIN_ALLOW_THREADS
14818 PyEval_RestoreThread(_save);
14819 PyErr_SetString(PyExc_RuntimeError, e.
what());
14822 Py_END_ALLOW_THREADS
14824 resultobj = SWIG_Py_Void();
14831 SWIGINTERN PyObject *_wrap_knn_inner_products_by_idx(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14832 PyObject *resultobj = 0;
14833 float *arg1 = (
float *) 0 ;
14834 float *arg2 = (
float *) 0 ;
14835 long *arg3 = (
long *) 0 ;
14854 PyObject * obj0 = 0 ;
14855 PyObject * obj1 = 0 ;
14856 PyObject * obj2 = 0 ;
14857 PyObject * obj3 = 0 ;
14858 PyObject * obj4 = 0 ;
14859 PyObject * obj5 = 0 ;
14860 PyObject * obj6 = 0 ;
14862 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:knn_inner_products_by_idx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14864 if (!SWIG_IsOK(res1)) {
14865 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "knn_inner_products_by_idx" "', argument " "1"" of type '" "float const *""'");
14867 arg1 =
reinterpret_cast< float *
>(argp1);
14868 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
14869 if (!SWIG_IsOK(res2)) {
14870 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "knn_inner_products_by_idx" "', argument " "2"" of type '" "float const *""'");
14872 arg2 =
reinterpret_cast< float *
>(argp2);
14873 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
14874 if (!SWIG_IsOK(res3)) {
14875 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "knn_inner_products_by_idx" "', argument " "3"" of type '" "long const *""'");
14877 arg3 =
reinterpret_cast< long *
>(argp3);
14878 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
14879 if (!SWIG_IsOK(ecode4)) {
14880 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "knn_inner_products_by_idx" "', argument " "4"" of type '" "size_t""'");
14882 arg4 =
static_cast< size_t >(val4);
14883 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
14884 if (!SWIG_IsOK(ecode5)) {
14885 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "knn_inner_products_by_idx" "', argument " "5"" of type '" "size_t""'");
14887 arg5 =
static_cast< size_t >(val5);
14888 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
14889 if (!SWIG_IsOK(ecode6)) {
14890 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "knn_inner_products_by_idx" "', argument " "6"" of type '" "size_t""'");
14892 arg6 =
static_cast< size_t >(val6);
14893 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
14894 if (!SWIG_IsOK(res7)) {
14895 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "knn_inner_products_by_idx" "', argument " "7"" of type '" "faiss::float_minheap_array_t *""'");
14899 Py_BEGIN_ALLOW_THREADS
14901 faiss::knn_inner_products_by_idx((
float const *)arg1,(
float const *)arg2,(
long const *)arg3,arg4,arg5,arg6,arg7);
14903 PyEval_RestoreThread(_save);
14904 PyErr_SetString(PyExc_RuntimeError, e.
what());
14907 Py_END_ALLOW_THREADS
14909 resultobj = SWIG_Py_Void();
14916 SWIGINTERN PyObject *_wrap_knn_L2sqr_by_idx(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14917 PyObject *resultobj = 0;
14918 float *arg1 = (
float *) 0 ;
14919 float *arg2 = (
float *) 0 ;
14920 long *arg3 = (
long *) 0 ;
14939 PyObject * obj0 = 0 ;
14940 PyObject * obj1 = 0 ;
14941 PyObject * obj2 = 0 ;
14942 PyObject * obj3 = 0 ;
14943 PyObject * obj4 = 0 ;
14944 PyObject * obj5 = 0 ;
14945 PyObject * obj6 = 0 ;
14947 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:knn_L2sqr_by_idx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14949 if (!SWIG_IsOK(res1)) {
14950 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "knn_L2sqr_by_idx" "', argument " "1"" of type '" "float const *""'");
14952 arg1 =
reinterpret_cast< float *
>(argp1);
14953 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
14954 if (!SWIG_IsOK(res2)) {
14955 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "knn_L2sqr_by_idx" "', argument " "2"" of type '" "float const *""'");
14957 arg2 =
reinterpret_cast< float *
>(argp2);
14958 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
14959 if (!SWIG_IsOK(res3)) {
14960 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "knn_L2sqr_by_idx" "', argument " "3"" of type '" "long const *""'");
14962 arg3 =
reinterpret_cast< long *
>(argp3);
14963 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
14964 if (!SWIG_IsOK(ecode4)) {
14965 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "knn_L2sqr_by_idx" "', argument " "4"" of type '" "size_t""'");
14967 arg4 =
static_cast< size_t >(val4);
14968 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
14969 if (!SWIG_IsOK(ecode5)) {
14970 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "knn_L2sqr_by_idx" "', argument " "5"" of type '" "size_t""'");
14972 arg5 =
static_cast< size_t >(val5);
14973 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
14974 if (!SWIG_IsOK(ecode6)) {
14975 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "knn_L2sqr_by_idx" "', argument " "6"" of type '" "size_t""'");
14977 arg6 =
static_cast< size_t >(val6);
14978 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
14979 if (!SWIG_IsOK(res7)) {
14980 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "knn_L2sqr_by_idx" "', argument " "7"" of type '" "faiss::float_maxheap_array_t *""'");
14984 Py_BEGIN_ALLOW_THREADS
14986 faiss::knn_L2sqr_by_idx((
float const *)arg1,(
float const *)arg2,(
long const *)arg3,arg4,arg5,arg6,arg7);
14988 PyEval_RestoreThread(_save);
14989 PyErr_SetString(PyExc_RuntimeError, e.
what());
14992 Py_END_ALLOW_THREADS
14994 resultobj = SWIG_Py_Void();
15001 SWIGINTERN PyObject *_wrap_range_search_L2sqr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15002 PyObject *resultobj = 0;
15003 float *arg1 = (
float *) 0 ;
15004 float *arg2 = (
float *) 0 ;
15024 PyObject * obj0 = 0 ;
15025 PyObject * obj1 = 0 ;
15026 PyObject * obj2 = 0 ;
15027 PyObject * obj3 = 0 ;
15028 PyObject * obj4 = 0 ;
15029 PyObject * obj5 = 0 ;
15030 PyObject * obj6 = 0 ;
15032 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:range_search_L2sqr",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
15034 if (!SWIG_IsOK(res1)) {
15035 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "range_search_L2sqr" "', argument " "1"" of type '" "float const *""'");
15037 arg1 =
reinterpret_cast< float *
>(argp1);
15038 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
15039 if (!SWIG_IsOK(res2)) {
15040 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "range_search_L2sqr" "', argument " "2"" of type '" "float const *""'");
15042 arg2 =
reinterpret_cast< float *
>(argp2);
15043 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
15044 if (!SWIG_IsOK(ecode3)) {
15045 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "range_search_L2sqr" "', argument " "3"" of type '" "size_t""'");
15047 arg3 =
static_cast< size_t >(val3);
15048 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
15049 if (!SWIG_IsOK(ecode4)) {
15050 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "range_search_L2sqr" "', argument " "4"" of type '" "size_t""'");
15052 arg4 =
static_cast< size_t >(val4);
15053 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
15054 if (!SWIG_IsOK(ecode5)) {
15055 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "range_search_L2sqr" "', argument " "5"" of type '" "size_t""'");
15057 arg5 =
static_cast< size_t >(val5);
15058 ecode6 = SWIG_AsVal_float(obj5, &val6);
15059 if (!SWIG_IsOK(ecode6)) {
15060 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "range_search_L2sqr" "', argument " "6"" of type '" "float""'");
15062 arg6 =
static_cast< float >(val6);
15063 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
15064 if (!SWIG_IsOK(res7)) {
15065 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "range_search_L2sqr" "', argument " "7"" of type '" "faiss::RangeSearchResult *""'");
15069 Py_BEGIN_ALLOW_THREADS
15073 PyEval_RestoreThread(_save);
15074 PyErr_SetString(PyExc_RuntimeError, e.
what());
15077 Py_END_ALLOW_THREADS
15079 resultobj = SWIG_Py_Void();
15086 SWIGINTERN PyObject *_wrap_range_search_inner_product(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15087 PyObject *resultobj = 0;
15088 float *arg1 = (
float *) 0 ;
15089 float *arg2 = (
float *) 0 ;
15109 PyObject * obj0 = 0 ;
15110 PyObject * obj1 = 0 ;
15111 PyObject * obj2 = 0 ;
15112 PyObject * obj3 = 0 ;
15113 PyObject * obj4 = 0 ;
15114 PyObject * obj5 = 0 ;
15115 PyObject * obj6 = 0 ;
15117 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:range_search_inner_product",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
15119 if (!SWIG_IsOK(res1)) {
15120 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "range_search_inner_product" "', argument " "1"" of type '" "float const *""'");
15122 arg1 =
reinterpret_cast< float *
>(argp1);
15123 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
15124 if (!SWIG_IsOK(res2)) {
15125 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "range_search_inner_product" "', argument " "2"" of type '" "float const *""'");
15127 arg2 =
reinterpret_cast< float *
>(argp2);
15128 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
15129 if (!SWIG_IsOK(ecode3)) {
15130 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "range_search_inner_product" "', argument " "3"" of type '" "size_t""'");
15132 arg3 =
static_cast< size_t >(val3);
15133 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
15134 if (!SWIG_IsOK(ecode4)) {
15135 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "range_search_inner_product" "', argument " "4"" of type '" "size_t""'");
15137 arg4 =
static_cast< size_t >(val4);
15138 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
15139 if (!SWIG_IsOK(ecode5)) {
15140 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "range_search_inner_product" "', argument " "5"" of type '" "size_t""'");
15142 arg5 =
static_cast< size_t >(val5);
15143 ecode6 = SWIG_AsVal_float(obj5, &val6);
15144 if (!SWIG_IsOK(ecode6)) {
15145 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "range_search_inner_product" "', argument " "6"" of type '" "float""'");
15147 arg6 =
static_cast< float >(val6);
15148 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
15149 if (!SWIG_IsOK(res7)) {
15150 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "range_search_inner_product" "', argument " "7"" of type '" "faiss::RangeSearchResult *""'");
15154 Py_BEGIN_ALLOW_THREADS
15158 PyEval_RestoreThread(_save);
15159 PyErr_SetString(PyExc_RuntimeError, e.
what());
15162 Py_END_ALLOW_THREADS
15164 resultobj = SWIG_Py_Void();
15171 SWIGINTERN PyObject *_wrap_fvec_madd(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15172 PyObject *resultobj = 0;
15174 float *arg2 = (
float *) 0 ;
15176 float *arg4 = (
float *) 0 ;
15177 float *arg5 = (
float *) 0 ;
15188 PyObject * obj0 = 0 ;
15189 PyObject * obj1 = 0 ;
15190 PyObject * obj2 = 0 ;
15191 PyObject * obj3 = 0 ;
15192 PyObject * obj4 = 0 ;
15194 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:fvec_madd",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15195 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
15196 if (!SWIG_IsOK(ecode1)) {
15197 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvec_madd" "', argument " "1"" of type '" "size_t""'");
15199 arg1 =
static_cast< size_t >(val1);
15200 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
15201 if (!SWIG_IsOK(res2)) {
15202 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_madd" "', argument " "2"" of type '" "float const *""'");
15204 arg2 =
reinterpret_cast< float *
>(argp2);
15205 ecode3 = SWIG_AsVal_float(obj2, &val3);
15206 if (!SWIG_IsOK(ecode3)) {
15207 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvec_madd" "', argument " "3"" of type '" "float""'");
15209 arg3 =
static_cast< float >(val3);
15210 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
15211 if (!SWIG_IsOK(res4)) {
15212 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "fvec_madd" "', argument " "4"" of type '" "float const *""'");
15214 arg4 =
reinterpret_cast< float *
>(argp4);
15215 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
15216 if (!SWIG_IsOK(res5)) {
15217 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "fvec_madd" "', argument " "5"" of type '" "float *""'");
15219 arg5 =
reinterpret_cast< float *
>(argp5);
15221 Py_BEGIN_ALLOW_THREADS
15225 PyEval_RestoreThread(_save);
15226 PyErr_SetString(PyExc_RuntimeError, e.
what());
15229 Py_END_ALLOW_THREADS
15231 resultobj = SWIG_Py_Void();
15238 SWIGINTERN PyObject *_wrap_fvec_madd_and_argmin(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15239 PyObject *resultobj = 0;
15241 float *arg2 = (
float *) 0 ;
15243 float *arg4 = (
float *) 0 ;
15244 float *arg5 = (
float *) 0 ;
15255 PyObject * obj0 = 0 ;
15256 PyObject * obj1 = 0 ;
15257 PyObject * obj2 = 0 ;
15258 PyObject * obj3 = 0 ;
15259 PyObject * obj4 = 0 ;
15262 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:fvec_madd_and_argmin",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15263 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
15264 if (!SWIG_IsOK(ecode1)) {
15265 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvec_madd_and_argmin" "', argument " "1"" of type '" "size_t""'");
15267 arg1 =
static_cast< size_t >(val1);
15268 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
15269 if (!SWIG_IsOK(res2)) {
15270 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_madd_and_argmin" "', argument " "2"" of type '" "float const *""'");
15272 arg2 =
reinterpret_cast< float *
>(argp2);
15273 ecode3 = SWIG_AsVal_float(obj2, &val3);
15274 if (!SWIG_IsOK(ecode3)) {
15275 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvec_madd_and_argmin" "', argument " "3"" of type '" "float""'");
15277 arg3 =
static_cast< float >(val3);
15278 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
15279 if (!SWIG_IsOK(res4)) {
15280 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "fvec_madd_and_argmin" "', argument " "4"" of type '" "float const *""'");
15282 arg4 =
reinterpret_cast< float *
>(argp4);
15283 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
15284 if (!SWIG_IsOK(res5)) {
15285 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "fvec_madd_and_argmin" "', argument " "5"" of type '" "float *""'");
15287 arg5 =
reinterpret_cast< float *
>(argp5);
15289 Py_BEGIN_ALLOW_THREADS
15293 PyEval_RestoreThread(_save);
15294 PyErr_SetString(PyExc_RuntimeError, e.
what());
15297 Py_END_ALLOW_THREADS
15299 resultobj = SWIG_From_int(static_cast< int >(result));
15306 SWIGINTERN PyObject *_wrap_reflection(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15307 PyObject *resultobj = 0;
15308 float *arg1 = (
float *) 0 ;
15309 float *arg2 = (
float *) 0 ;
15323 PyObject * obj0 = 0 ;
15324 PyObject * obj1 = 0 ;
15325 PyObject * obj2 = 0 ;
15326 PyObject * obj3 = 0 ;
15327 PyObject * obj4 = 0 ;
15329 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:reflection",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
15331 if (!SWIG_IsOK(res1)) {
15332 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "reflection" "', argument " "1"" of type '" "float const *""'");
15334 arg1 =
reinterpret_cast< float *
>(argp1);
15335 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
15336 if (!SWIG_IsOK(res2)) {
15337 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "reflection" "', argument " "2"" of type '" "float *""'");
15339 arg2 =
reinterpret_cast< float *
>(argp2);
15340 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
15341 if (!SWIG_IsOK(ecode3)) {
15342 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "reflection" "', argument " "3"" of type '" "size_t""'");
15344 arg3 =
static_cast< size_t >(val3);
15345 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
15346 if (!SWIG_IsOK(ecode4)) {
15347 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "reflection" "', argument " "4"" of type '" "size_t""'");
15349 arg4 =
static_cast< size_t >(val4);
15350 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
15351 if (!SWIG_IsOK(ecode5)) {
15352 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "reflection" "', argument " "5"" of type '" "size_t""'");
15354 arg5 =
static_cast< size_t >(val5);
15356 Py_BEGIN_ALLOW_THREADS
15358 faiss::reflection((
float const *)arg1,arg2,arg3,arg4,arg5);
15360 PyEval_RestoreThread(_save);
15361 PyErr_SetString(PyExc_RuntimeError, e.
what());
15364 Py_END_ALLOW_THREADS
15366 resultobj = SWIG_Py_Void();
15373 SWIGINTERN PyObject *_wrap_km_update_centroids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15374 PyObject *resultobj = 0;
15375 float *arg1 = (
float *) 0 ;
15376 float *arg2 = (
float *) 0 ;
15377 long *arg3 = (
long *) 0 ;
15396 PyObject * obj0 = 0 ;
15397 PyObject * obj1 = 0 ;
15398 PyObject * obj2 = 0 ;
15399 PyObject * obj3 = 0 ;
15400 PyObject * obj4 = 0 ;
15401 PyObject * obj5 = 0 ;
15402 PyObject * obj6 = 0 ;
15405 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:km_update_centroids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
15407 if (!SWIG_IsOK(res1)) {
15408 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "km_update_centroids" "', argument " "1"" of type '" "float const *""'");
15410 arg1 =
reinterpret_cast< float *
>(argp1);
15411 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
15412 if (!SWIG_IsOK(res2)) {
15413 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "km_update_centroids" "', argument " "2"" of type '" "float *""'");
15415 arg2 =
reinterpret_cast< float *
>(argp2);
15416 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
15417 if (!SWIG_IsOK(res3)) {
15418 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "km_update_centroids" "', argument " "3"" of type '" "long *""'");
15420 arg3 =
reinterpret_cast< long *
>(argp3);
15421 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
15422 if (!SWIG_IsOK(ecode4)) {
15423 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "km_update_centroids" "', argument " "4"" of type '" "size_t""'");
15425 arg4 =
static_cast< size_t >(val4);
15426 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
15427 if (!SWIG_IsOK(ecode5)) {
15428 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "km_update_centroids" "', argument " "5"" of type '" "size_t""'");
15430 arg5 =
static_cast< size_t >(val5);
15431 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
15432 if (!SWIG_IsOK(ecode6)) {
15433 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "km_update_centroids" "', argument " "6"" of type '" "size_t""'");
15435 arg6 =
static_cast< size_t >(val6);
15436 ecode7 = SWIG_AsVal_size_t(obj6, &val7);
15437 if (!SWIG_IsOK(ecode7)) {
15438 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "km_update_centroids" "', argument " "7"" of type '" "size_t""'");
15440 arg7 =
static_cast< size_t >(val7);
15442 Py_BEGIN_ALLOW_THREADS
15446 PyEval_RestoreThread(_save);
15447 PyErr_SetString(PyExc_RuntimeError, e.
what());
15450 Py_END_ALLOW_THREADS
15452 resultobj = SWIG_From_int(static_cast< int >(result));
15459 SWIGINTERN PyObject *_wrap_matrix_qr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15460 PyObject *resultobj = 0;
15463 float *arg3 = (
float *) 0 ;
15470 PyObject * obj0 = 0 ;
15471 PyObject * obj1 = 0 ;
15472 PyObject * obj2 = 0 ;
15474 if (!PyArg_ParseTuple(args,(
char *)
"OOO:matrix_qr",&obj0,&obj1,&obj2)) SWIG_fail;
15475 ecode1 = SWIG_AsVal_int(obj0, &val1);
15476 if (!SWIG_IsOK(ecode1)) {
15477 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "matrix_qr" "', argument " "1"" of type '" "int""'");
15479 arg1 =
static_cast< int >(val1);
15480 ecode2 = SWIG_AsVal_int(obj1, &val2);
15481 if (!SWIG_IsOK(ecode2)) {
15482 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "matrix_qr" "', argument " "2"" of type '" "int""'");
15484 arg2 =
static_cast< int >(val2);
15485 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
15486 if (!SWIG_IsOK(res3)) {
15487 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "matrix_qr" "', argument " "3"" of type '" "float *""'");
15489 arg3 =
reinterpret_cast< float *
>(argp3);
15491 Py_BEGIN_ALLOW_THREADS
15495 PyEval_RestoreThread(_save);
15496 PyErr_SetString(PyExc_RuntimeError, e.
what());
15499 Py_END_ALLOW_THREADS
15501 resultobj = SWIG_Py_Void();
15508 SWIGINTERN PyObject *_wrap_ranklist_handle_ties(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15509 PyObject *resultobj = 0;
15511 long *arg2 = (
long *) 0 ;
15512 float *arg3 = (
float *) 0 ;
15519 PyObject * obj0 = 0 ;
15520 PyObject * obj1 = 0 ;
15521 PyObject * obj2 = 0 ;
15523 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ranklist_handle_ties",&obj0,&obj1,&obj2)) SWIG_fail;
15524 ecode1 = SWIG_AsVal_int(obj0, &val1);
15525 if (!SWIG_IsOK(ecode1)) {
15526 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "ranklist_handle_ties" "', argument " "1"" of type '" "int""'");
15528 arg1 =
static_cast< int >(val1);
15529 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
15530 if (!SWIG_IsOK(res2)) {
15531 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ranklist_handle_ties" "', argument " "2"" of type '" "long *""'");
15533 arg2 =
reinterpret_cast< long *
>(argp2);
15534 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
15535 if (!SWIG_IsOK(res3)) {
15536 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ranklist_handle_ties" "', argument " "3"" of type '" "float const *""'");
15538 arg3 =
reinterpret_cast< float *
>(argp3);
15540 Py_BEGIN_ALLOW_THREADS
15544 PyEval_RestoreThread(_save);
15545 PyErr_SetString(PyExc_RuntimeError, e.
what());
15548 Py_END_ALLOW_THREADS
15550 resultobj = SWIG_Py_Void();
15557 SWIGINTERN PyObject *_wrap_ranklist_intersection_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15558 PyObject *resultobj = 0;
15560 long *arg2 = (
long *) 0 ;
15562 long *arg4 = (
long *) 0 ;
15571 PyObject * obj0 = 0 ;
15572 PyObject * obj1 = 0 ;
15573 PyObject * obj2 = 0 ;
15574 PyObject * obj3 = 0 ;
15577 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ranklist_intersection_size",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15578 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
15579 if (!SWIG_IsOK(ecode1)) {
15580 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "ranklist_intersection_size" "', argument " "1"" of type '" "size_t""'");
15582 arg1 =
static_cast< size_t >(val1);
15583 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
15584 if (!SWIG_IsOK(res2)) {
15585 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ranklist_intersection_size" "', argument " "2"" of type '" "long const *""'");
15587 arg2 =
reinterpret_cast< long *
>(argp2);
15588 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
15589 if (!SWIG_IsOK(ecode3)) {
15590 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ranklist_intersection_size" "', argument " "3"" of type '" "size_t""'");
15592 arg3 =
static_cast< size_t >(val3);
15593 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
15594 if (!SWIG_IsOK(res4)) {
15595 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ranklist_intersection_size" "', argument " "4"" of type '" "long const *""'");
15597 arg4 =
reinterpret_cast< long *
>(argp4);
15599 Py_BEGIN_ALLOW_THREADS
15603 PyEval_RestoreThread(_save);
15604 PyErr_SetString(PyExc_RuntimeError, e.
what());
15607 Py_END_ALLOW_THREADS
15609 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
15616 SWIGINTERN PyObject *_wrap_merge_result_table_with__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15617 PyObject *resultobj = 0;
15620 long *arg3 = (
long *) 0 ;
15621 float *arg4 = (
float *) 0 ;
15622 long *arg5 = (
long *) 0 ;
15623 float *arg6 = (
float *) 0 ;
15642 PyObject * obj0 = 0 ;
15643 PyObject * obj1 = 0 ;
15644 PyObject * obj2 = 0 ;
15645 PyObject * obj3 = 0 ;
15646 PyObject * obj4 = 0 ;
15647 PyObject * obj5 = 0 ;
15648 PyObject * obj6 = 0 ;
15649 PyObject * obj7 = 0 ;
15652 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:merge_result_table_with",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
15653 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
15654 if (!SWIG_IsOK(ecode1)) {
15655 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "merge_result_table_with" "', argument " "1"" of type '" "size_t""'");
15657 arg1 =
static_cast< size_t >(val1);
15658 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
15659 if (!SWIG_IsOK(ecode2)) {
15660 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "merge_result_table_with" "', argument " "2"" of type '" "size_t""'");
15662 arg2 =
static_cast< size_t >(val2);
15663 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
15664 if (!SWIG_IsOK(res3)) {
15665 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "merge_result_table_with" "', argument " "3"" of type '" "long *""'");
15667 arg3 =
reinterpret_cast< long *
>(argp3);
15668 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
15669 if (!SWIG_IsOK(res4)) {
15670 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "merge_result_table_with" "', argument " "4"" of type '" "float *""'");
15672 arg4 =
reinterpret_cast< float *
>(argp4);
15673 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
15674 if (!SWIG_IsOK(res5)) {
15675 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "merge_result_table_with" "', argument " "5"" of type '" "long const *""'");
15677 arg5 =
reinterpret_cast< long *
>(argp5);
15678 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
15679 if (!SWIG_IsOK(res6)) {
15680 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "merge_result_table_with" "', argument " "6"" of type '" "float const *""'");
15682 arg6 =
reinterpret_cast< float *
>(argp6);
15683 ecode7 = SWIG_AsVal_bool(obj6, &val7);
15684 if (!SWIG_IsOK(ecode7)) {
15685 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "merge_result_table_with" "', argument " "7"" of type '" "bool""'");
15687 arg7 =
static_cast< bool >(val7);
15688 ecode8 = SWIG_AsVal_long(obj7, &val8);
15689 if (!SWIG_IsOK(ecode8)) {
15690 SWIG_exception_fail(SWIG_ArgError(ecode8),
"in method '" "merge_result_table_with" "', argument " "8"" of type '" "long""'");
15692 arg8 =
static_cast< long >(val8);
15694 Py_BEGIN_ALLOW_THREADS
15698 PyEval_RestoreThread(_save);
15699 PyErr_SetString(PyExc_RuntimeError, e.
what());
15702 Py_END_ALLOW_THREADS
15704 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
15711 SWIGINTERN PyObject *_wrap_merge_result_table_with__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15712 PyObject *resultobj = 0;
15715 long *arg3 = (
long *) 0 ;
15716 float *arg4 = (
float *) 0 ;
15717 long *arg5 = (
long *) 0 ;
15718 float *arg6 = (
float *) 0 ;
15734 PyObject * obj0 = 0 ;
15735 PyObject * obj1 = 0 ;
15736 PyObject * obj2 = 0 ;
15737 PyObject * obj3 = 0 ;
15738 PyObject * obj4 = 0 ;
15739 PyObject * obj5 = 0 ;
15740 PyObject * obj6 = 0 ;
15743 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:merge_result_table_with",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15744 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
15745 if (!SWIG_IsOK(ecode1)) {
15746 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "merge_result_table_with" "', argument " "1"" of type '" "size_t""'");
15748 arg1 =
static_cast< size_t >(val1);
15749 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
15750 if (!SWIG_IsOK(ecode2)) {
15751 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "merge_result_table_with" "', argument " "2"" of type '" "size_t""'");
15753 arg2 =
static_cast< size_t >(val2);
15754 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
15755 if (!SWIG_IsOK(res3)) {
15756 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "merge_result_table_with" "', argument " "3"" of type '" "long *""'");
15758 arg3 =
reinterpret_cast< long *
>(argp3);
15759 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
15760 if (!SWIG_IsOK(res4)) {
15761 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "merge_result_table_with" "', argument " "4"" of type '" "float *""'");
15763 arg4 =
reinterpret_cast< float *
>(argp4);
15764 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
15765 if (!SWIG_IsOK(res5)) {
15766 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "merge_result_table_with" "', argument " "5"" of type '" "long const *""'");
15768 arg5 =
reinterpret_cast< long *
>(argp5);
15769 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
15770 if (!SWIG_IsOK(res6)) {
15771 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "merge_result_table_with" "', argument " "6"" of type '" "float const *""'");
15773 arg6 =
reinterpret_cast< float *
>(argp6);
15774 ecode7 = SWIG_AsVal_bool(obj6, &val7);
15775 if (!SWIG_IsOK(ecode7)) {
15776 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "merge_result_table_with" "', argument " "7"" of type '" "bool""'");
15778 arg7 =
static_cast< bool >(val7);
15780 Py_BEGIN_ALLOW_THREADS
15784 PyEval_RestoreThread(_save);
15785 PyErr_SetString(PyExc_RuntimeError, e.
what());
15788 Py_END_ALLOW_THREADS
15790 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
15797 SWIGINTERN PyObject *_wrap_merge_result_table_with__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15798 PyObject *resultobj = 0;
15801 long *arg3 = (
long *) 0 ;
15802 float *arg4 = (
float *) 0 ;
15803 long *arg5 = (
long *) 0 ;
15804 float *arg6 = (
float *) 0 ;
15817 PyObject * obj0 = 0 ;
15818 PyObject * obj1 = 0 ;
15819 PyObject * obj2 = 0 ;
15820 PyObject * obj3 = 0 ;
15821 PyObject * obj4 = 0 ;
15822 PyObject * obj5 = 0 ;
15825 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:merge_result_table_with",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15826 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
15827 if (!SWIG_IsOK(ecode1)) {
15828 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "merge_result_table_with" "', argument " "1"" of type '" "size_t""'");
15830 arg1 =
static_cast< size_t >(val1);
15831 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
15832 if (!SWIG_IsOK(ecode2)) {
15833 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "merge_result_table_with" "', argument " "2"" of type '" "size_t""'");
15835 arg2 =
static_cast< size_t >(val2);
15836 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
15837 if (!SWIG_IsOK(res3)) {
15838 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "merge_result_table_with" "', argument " "3"" of type '" "long *""'");
15840 arg3 =
reinterpret_cast< long *
>(argp3);
15841 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
15842 if (!SWIG_IsOK(res4)) {
15843 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "merge_result_table_with" "', argument " "4"" of type '" "float *""'");
15845 arg4 =
reinterpret_cast< float *
>(argp4);
15846 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
15847 if (!SWIG_IsOK(res5)) {
15848 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "merge_result_table_with" "', argument " "5"" of type '" "long const *""'");
15850 arg5 =
reinterpret_cast< long *
>(argp5);
15851 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
15852 if (!SWIG_IsOK(res6)) {
15853 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "merge_result_table_with" "', argument " "6"" of type '" "float const *""'");
15855 arg6 =
reinterpret_cast< float *
>(argp6);
15857 Py_BEGIN_ALLOW_THREADS
15861 PyEval_RestoreThread(_save);
15862 PyErr_SetString(PyExc_RuntimeError, e.
what());
15865 Py_END_ALLOW_THREADS
15867 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
15874 SWIGINTERN PyObject *_wrap_merge_result_table_with(PyObject *
self, PyObject *args) {
15876 PyObject *argv[9] = {
15881 if (!PyTuple_Check(args)) SWIG_fail;
15882 argc = args ? PyObject_Length(args) : 0;
15883 for (ii = 0; (ii < 8) && (ii < argc); ii++) {
15884 argv[ii] = PyTuple_GET_ITEM(args,ii);
15889 int res = SWIG_AsVal_size_t(argv[0], NULL);
15890 _v = SWIG_CheckState(res);
15894 int res = SWIG_AsVal_size_t(argv[1], NULL);
15895 _v = SWIG_CheckState(res);
15899 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_long, 0);
15900 _v = SWIG_CheckState(res);
15903 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
15904 _v = SWIG_CheckState(res);
15907 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
15908 _v = SWIG_CheckState(res);
15911 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
15912 _v = SWIG_CheckState(res);
15914 return _wrap_merge_result_table_with__SWIG_2(
self, args);
15925 int res = SWIG_AsVal_size_t(argv[0], NULL);
15926 _v = SWIG_CheckState(res);
15930 int res = SWIG_AsVal_size_t(argv[1], NULL);
15931 _v = SWIG_CheckState(res);
15935 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_long, 0);
15936 _v = SWIG_CheckState(res);
15939 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
15940 _v = SWIG_CheckState(res);
15943 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
15944 _v = SWIG_CheckState(res);
15947 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
15948 _v = SWIG_CheckState(res);
15951 int res = SWIG_AsVal_bool(argv[6], NULL);
15952 _v = SWIG_CheckState(res);
15955 return _wrap_merge_result_table_with__SWIG_1(
self, args);
15967 int res = SWIG_AsVal_size_t(argv[0], NULL);
15968 _v = SWIG_CheckState(res);
15972 int res = SWIG_AsVal_size_t(argv[1], NULL);
15973 _v = SWIG_CheckState(res);
15977 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_long, 0);
15978 _v = SWIG_CheckState(res);
15981 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
15982 _v = SWIG_CheckState(res);
15985 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
15986 _v = SWIG_CheckState(res);
15989 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
15990 _v = SWIG_CheckState(res);
15993 int res = SWIG_AsVal_bool(argv[6], NULL);
15994 _v = SWIG_CheckState(res);
15998 int res = SWIG_AsVal_long(argv[7], NULL);
15999 _v = SWIG_CheckState(res);
16002 return _wrap_merge_result_table_with__SWIG_0(
self, args);
16014 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'merge_result_table_with'.\n"
16015 " Possible C/C++ prototypes are:\n"
16016 " faiss::merge_result_table_with(size_t,size_t,long *,float *,long const *,float const *,bool,long)\n"
16017 " faiss::merge_result_table_with(size_t,size_t,long *,float *,long const *,float const *,bool)\n"
16018 " faiss::merge_result_table_with(size_t,size_t,long *,float *,long const *,float const *)\n");
16023 SWIGINTERN PyObject *_wrap_fvec_argsort(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16024 PyObject *resultobj = 0;
16026 float *arg2 = (
float *) 0 ;
16027 size_t *arg3 = (
size_t *) 0 ;
16034 PyObject * obj0 = 0 ;
16035 PyObject * obj1 = 0 ;
16036 PyObject * obj2 = 0 ;
16038 if (!PyArg_ParseTuple(args,(
char *)
"OOO:fvec_argsort",&obj0,&obj1,&obj2)) SWIG_fail;
16039 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
16040 if (!SWIG_IsOK(ecode1)) {
16041 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvec_argsort" "', argument " "1"" of type '" "size_t""'");
16043 arg1 =
static_cast< size_t >(val1);
16044 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
16045 if (!SWIG_IsOK(res2)) {
16046 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_argsort" "', argument " "2"" of type '" "float const *""'");
16048 arg2 =
reinterpret_cast< float *
>(argp2);
16049 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_long, 0 | 0 );
16050 if (!SWIG_IsOK(res3)) {
16051 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "fvec_argsort" "', argument " "3"" of type '" "size_t *""'");
16053 arg3 =
reinterpret_cast< size_t *
>(argp3);
16055 Py_BEGIN_ALLOW_THREADS
16057 faiss::fvec_argsort(arg1,(
float const *)arg2,arg3);
16059 PyEval_RestoreThread(_save);
16060 PyErr_SetString(PyExc_RuntimeError, e.
what());
16063 Py_END_ALLOW_THREADS
16065 resultobj = SWIG_Py_Void();
16072 SWIGINTERN PyObject *_wrap_fvec_argsort_parallel(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16073 PyObject *resultobj = 0;
16075 float *arg2 = (
float *) 0 ;
16076 size_t *arg3 = (
size_t *) 0 ;
16083 PyObject * obj0 = 0 ;
16084 PyObject * obj1 = 0 ;
16085 PyObject * obj2 = 0 ;
16087 if (!PyArg_ParseTuple(args,(
char *)
"OOO:fvec_argsort_parallel",&obj0,&obj1,&obj2)) SWIG_fail;
16088 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
16089 if (!SWIG_IsOK(ecode1)) {
16090 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvec_argsort_parallel" "', argument " "1"" of type '" "size_t""'");
16092 arg1 =
static_cast< size_t >(val1);
16093 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
16094 if (!SWIG_IsOK(res2)) {
16095 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_argsort_parallel" "', argument " "2"" of type '" "float const *""'");
16097 arg2 =
reinterpret_cast< float *
>(argp2);
16098 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_long, 0 | 0 );
16099 if (!SWIG_IsOK(res3)) {
16100 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "fvec_argsort_parallel" "', argument " "3"" of type '" "size_t *""'");
16102 arg3 =
reinterpret_cast< size_t *
>(argp3);
16104 Py_BEGIN_ALLOW_THREADS
16106 faiss::fvec_argsort_parallel(arg1,(
float const *)arg2,arg3);
16108 PyEval_RestoreThread(_save);
16109 PyErr_SetString(PyExc_RuntimeError, e.
what());
16112 Py_END_ALLOW_THREADS
16114 resultobj = SWIG_Py_Void();
16121 SWIGINTERN PyObject *_wrap_ivec_hist(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16122 PyObject *resultobj = 0;
16124 int *arg2 = (
int *) 0 ;
16126 int *arg4 = (
int *) 0 ;
16135 PyObject * obj0 = 0 ;
16136 PyObject * obj1 = 0 ;
16137 PyObject * obj2 = 0 ;
16138 PyObject * obj3 = 0 ;
16141 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ivec_hist",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16142 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
16143 if (!SWIG_IsOK(ecode1)) {
16144 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "ivec_hist" "', argument " "1"" of type '" "size_t""'");
16146 arg1 =
static_cast< size_t >(val1);
16147 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
16148 if (!SWIG_IsOK(res2)) {
16149 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ivec_hist" "', argument " "2"" of type '" "int const *""'");
16151 arg2 =
reinterpret_cast< int *
>(argp2);
16152 ecode3 = SWIG_AsVal_int(obj2, &val3);
16153 if (!SWIG_IsOK(ecode3)) {
16154 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ivec_hist" "', argument " "3"" of type '" "int""'");
16156 arg3 =
static_cast< int >(val3);
16157 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 );
16158 if (!SWIG_IsOK(res4)) {
16159 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ivec_hist" "', argument " "4"" of type '" "int *""'");
16161 arg4 =
reinterpret_cast< int *
>(argp4);
16163 Py_BEGIN_ALLOW_THREADS
16167 PyEval_RestoreThread(_save);
16168 PyErr_SetString(PyExc_RuntimeError, e.
what());
16171 Py_END_ALLOW_THREADS
16173 resultobj = SWIG_From_int(static_cast< int >(result));
16180 SWIGINTERN PyObject *_wrap_bincode_hist(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16181 PyObject *resultobj = 0;
16184 uint8_t *arg3 = (uint8_t *) 0 ;
16185 int *arg4 = (
int *) 0 ;
16194 PyObject * obj0 = 0 ;
16195 PyObject * obj1 = 0 ;
16196 PyObject * obj2 = 0 ;
16197 PyObject * obj3 = 0 ;
16199 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:bincode_hist",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16200 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
16201 if (!SWIG_IsOK(ecode1)) {
16202 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "bincode_hist" "', argument " "1"" of type '" "size_t""'");
16204 arg1 =
static_cast< size_t >(val1);
16205 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
16206 if (!SWIG_IsOK(ecode2)) {
16207 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "bincode_hist" "', argument " "2"" of type '" "size_t""'");
16209 arg2 =
static_cast< size_t >(val2);
16210 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
16211 if (!SWIG_IsOK(res3)) {
16212 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "bincode_hist" "', argument " "3"" of type '" "uint8_t const *""'");
16214 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
16215 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 );
16216 if (!SWIG_IsOK(res4)) {
16217 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "bincode_hist" "', argument " "4"" of type '" "int *""'");
16219 arg4 =
reinterpret_cast< int *
>(argp4);
16221 Py_BEGIN_ALLOW_THREADS
16225 PyEval_RestoreThread(_save);
16226 PyErr_SetString(PyExc_RuntimeError, e.
what());
16229 Py_END_ALLOW_THREADS
16231 resultobj = SWIG_Py_Void();
16238 SWIGINTERN PyObject *_wrap_ivec_checksum(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16239 PyObject *resultobj = 0;
16241 int *arg2 = (
int *) 0 ;
16246 PyObject * obj0 = 0 ;
16247 PyObject * obj1 = 0 ;
16250 if (!PyArg_ParseTuple(args,(
char *)
"OO:ivec_checksum",&obj0,&obj1)) SWIG_fail;
16251 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
16252 if (!SWIG_IsOK(ecode1)) {
16253 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "ivec_checksum" "', argument " "1"" of type '" "size_t""'");
16255 arg1 =
static_cast< size_t >(val1);
16256 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
16257 if (!SWIG_IsOK(res2)) {
16258 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ivec_checksum" "', argument " "2"" of type '" "int const *""'");
16260 arg2 =
reinterpret_cast< int *
>(argp2);
16262 Py_BEGIN_ALLOW_THREADS
16266 PyEval_RestoreThread(_save);
16267 PyErr_SetString(PyExc_RuntimeError, e.
what());
16270 Py_END_ALLOW_THREADS
16272 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16279 SWIGINTERN PyObject *_wrap_fvecs_maybe_subsample__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16280 PyObject *resultobj = 0;
16282 size_t *arg2 = (
size_t *) 0 ;
16284 float *arg4 = (
float *) 0 ;
16299 PyObject * obj0 = 0 ;
16300 PyObject * obj1 = 0 ;
16301 PyObject * obj2 = 0 ;
16302 PyObject * obj3 = 0 ;
16303 PyObject * obj4 = 0 ;
16304 PyObject * obj5 = 0 ;
16305 float *result = 0 ;
16307 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:fvecs_maybe_subsample",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16308 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
16309 if (!SWIG_IsOK(ecode1)) {
16310 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvecs_maybe_subsample" "', argument " "1"" of type '" "size_t""'");
16312 arg1 =
static_cast< size_t >(val1);
16313 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_long, 0 | 0 );
16314 if (!SWIG_IsOK(res2)) {
16315 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvecs_maybe_subsample" "', argument " "2"" of type '" "size_t *""'");
16317 arg2 =
reinterpret_cast< size_t *
>(argp2);
16318 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16319 if (!SWIG_IsOK(ecode3)) {
16320 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvecs_maybe_subsample" "', argument " "3"" of type '" "size_t""'");
16322 arg3 =
static_cast< size_t >(val3);
16323 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
16324 if (!SWIG_IsOK(res4)) {
16325 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "fvecs_maybe_subsample" "', argument " "4"" of type '" "float const *""'");
16327 arg4 =
reinterpret_cast< float *
>(argp4);
16328 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16329 if (!SWIG_IsOK(ecode5)) {
16330 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "fvecs_maybe_subsample" "', argument " "5"" of type '" "bool""'");
16332 arg5 =
static_cast< bool >(val5);
16333 ecode6 = SWIG_AsVal_long(obj5, &val6);
16334 if (!SWIG_IsOK(ecode6)) {
16335 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "fvecs_maybe_subsample" "', argument " "6"" of type '" "long""'");
16337 arg6 =
static_cast< long >(val6);
16339 Py_BEGIN_ALLOW_THREADS
16343 PyEval_RestoreThread(_save);
16344 PyErr_SetString(PyExc_RuntimeError, e.
what());
16347 Py_END_ALLOW_THREADS
16349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
16356 SWIGINTERN PyObject *_wrap_fvecs_maybe_subsample__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16357 PyObject *resultobj = 0;
16359 size_t *arg2 = (
size_t *) 0 ;
16361 float *arg4 = (
float *) 0 ;
16373 PyObject * obj0 = 0 ;
16374 PyObject * obj1 = 0 ;
16375 PyObject * obj2 = 0 ;
16376 PyObject * obj3 = 0 ;
16377 PyObject * obj4 = 0 ;
16378 float *result = 0 ;
16380 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:fvecs_maybe_subsample",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16381 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
16382 if (!SWIG_IsOK(ecode1)) {
16383 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvecs_maybe_subsample" "', argument " "1"" of type '" "size_t""'");
16385 arg1 =
static_cast< size_t >(val1);
16386 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_long, 0 | 0 );
16387 if (!SWIG_IsOK(res2)) {
16388 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvecs_maybe_subsample" "', argument " "2"" of type '" "size_t *""'");
16390 arg2 =
reinterpret_cast< size_t *
>(argp2);
16391 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16392 if (!SWIG_IsOK(ecode3)) {
16393 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvecs_maybe_subsample" "', argument " "3"" of type '" "size_t""'");
16395 arg3 =
static_cast< size_t >(val3);
16396 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
16397 if (!SWIG_IsOK(res4)) {
16398 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "fvecs_maybe_subsample" "', argument " "4"" of type '" "float const *""'");
16400 arg4 =
reinterpret_cast< float *
>(argp4);
16401 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16402 if (!SWIG_IsOK(ecode5)) {
16403 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "fvecs_maybe_subsample" "', argument " "5"" of type '" "bool""'");
16405 arg5 =
static_cast< bool >(val5);
16407 Py_BEGIN_ALLOW_THREADS
16411 PyEval_RestoreThread(_save);
16412 PyErr_SetString(PyExc_RuntimeError, e.
what());
16415 Py_END_ALLOW_THREADS
16417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
16424 SWIGINTERN PyObject *_wrap_fvecs_maybe_subsample__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16425 PyObject *resultobj = 0;
16427 size_t *arg2 = (
size_t *) 0 ;
16429 float *arg4 = (
float *) 0 ;
16438 PyObject * obj0 = 0 ;
16439 PyObject * obj1 = 0 ;
16440 PyObject * obj2 = 0 ;
16441 PyObject * obj3 = 0 ;
16442 float *result = 0 ;
16444 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:fvecs_maybe_subsample",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16445 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
16446 if (!SWIG_IsOK(ecode1)) {
16447 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvecs_maybe_subsample" "', argument " "1"" of type '" "size_t""'");
16449 arg1 =
static_cast< size_t >(val1);
16450 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_long, 0 | 0 );
16451 if (!SWIG_IsOK(res2)) {
16452 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvecs_maybe_subsample" "', argument " "2"" of type '" "size_t *""'");
16454 arg2 =
reinterpret_cast< size_t *
>(argp2);
16455 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16456 if (!SWIG_IsOK(ecode3)) {
16457 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvecs_maybe_subsample" "', argument " "3"" of type '" "size_t""'");
16459 arg3 =
static_cast< size_t >(val3);
16460 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
16461 if (!SWIG_IsOK(res4)) {
16462 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "fvecs_maybe_subsample" "', argument " "4"" of type '" "float const *""'");
16464 arg4 =
reinterpret_cast< float *
>(argp4);
16466 Py_BEGIN_ALLOW_THREADS
16470 PyEval_RestoreThread(_save);
16471 PyErr_SetString(PyExc_RuntimeError, e.
what());
16474 Py_END_ALLOW_THREADS
16476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
16483 SWIGINTERN PyObject *_wrap_fvecs_maybe_subsample(PyObject *
self, PyObject *args) {
16485 PyObject *argv[7] = {
16490 if (!PyTuple_Check(args)) SWIG_fail;
16491 argc = args ? PyObject_Length(args) : 0;
16492 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
16493 argv[ii] = PyTuple_GET_ITEM(args,ii);
16498 int res = SWIG_AsVal_size_t(argv[0], NULL);
16499 _v = SWIG_CheckState(res);
16503 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long, 0);
16504 _v = SWIG_CheckState(res);
16507 int res = SWIG_AsVal_size_t(argv[2], NULL);
16508 _v = SWIG_CheckState(res);
16512 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
16513 _v = SWIG_CheckState(res);
16515 return _wrap_fvecs_maybe_subsample__SWIG_2(
self, args);
16524 int res = SWIG_AsVal_size_t(argv[0], NULL);
16525 _v = SWIG_CheckState(res);
16529 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long, 0);
16530 _v = SWIG_CheckState(res);
16533 int res = SWIG_AsVal_size_t(argv[2], NULL);
16534 _v = SWIG_CheckState(res);
16538 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
16539 _v = SWIG_CheckState(res);
16542 int res = SWIG_AsVal_bool(argv[4], NULL);
16543 _v = SWIG_CheckState(res);
16546 return _wrap_fvecs_maybe_subsample__SWIG_1(
self, args);
16556 int res = SWIG_AsVal_size_t(argv[0], NULL);
16557 _v = SWIG_CheckState(res);
16561 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long, 0);
16562 _v = SWIG_CheckState(res);
16565 int res = SWIG_AsVal_size_t(argv[2], NULL);
16566 _v = SWIG_CheckState(res);
16570 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
16571 _v = SWIG_CheckState(res);
16574 int res = SWIG_AsVal_bool(argv[4], NULL);
16575 _v = SWIG_CheckState(res);
16579 int res = SWIG_AsVal_long(argv[5], NULL);
16580 _v = SWIG_CheckState(res);
16583 return _wrap_fvecs_maybe_subsample__SWIG_0(
self, args);
16593 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'fvecs_maybe_subsample'.\n"
16594 " Possible C/C++ prototypes are:\n"
16595 " faiss::fvecs_maybe_subsample(size_t,size_t *,size_t,float const *,bool,long)\n"
16596 " faiss::fvecs_maybe_subsample(size_t,size_t *,size_t,float const *,bool)\n"
16597 " faiss::fvecs_maybe_subsample(size_t,size_t *,size_t,float const *)\n");
16602 SWIGINTERN PyObject *_wrap_binary_to_real(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16603 PyObject *resultobj = 0;
16605 uint8_t *arg2 = (uint8_t *) 0 ;
16606 float *arg3 = (
float *) 0 ;
16613 PyObject * obj0 = 0 ;
16614 PyObject * obj1 = 0 ;
16615 PyObject * obj2 = 0 ;
16617 if (!PyArg_ParseTuple(args,(
char *)
"OOO:binary_to_real",&obj0,&obj1,&obj2)) SWIG_fail;
16618 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
16619 if (!SWIG_IsOK(ecode1)) {
16620 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "binary_to_real" "', argument " "1"" of type '" "size_t""'");
16622 arg1 =
static_cast< size_t >(val1);
16623 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
16624 if (!SWIG_IsOK(res2)) {
16625 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "binary_to_real" "', argument " "2"" of type '" "uint8_t const *""'");
16627 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
16628 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
16629 if (!SWIG_IsOK(res3)) {
16630 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "binary_to_real" "', argument " "3"" of type '" "float *""'");
16632 arg3 =
reinterpret_cast< float *
>(argp3);
16634 Py_BEGIN_ALLOW_THREADS
16638 PyEval_RestoreThread(_save);
16639 PyErr_SetString(PyExc_RuntimeError, e.
what());
16642 Py_END_ALLOW_THREADS
16644 resultobj = SWIG_Py_Void();
16651 SWIGINTERN PyObject *_wrap_real_to_binary(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16652 PyObject *resultobj = 0;
16654 float *arg2 = (
float *) 0 ;
16655 uint8_t *arg3 = (uint8_t *) 0 ;
16662 PyObject * obj0 = 0 ;
16663 PyObject * obj1 = 0 ;
16664 PyObject * obj2 = 0 ;
16666 if (!PyArg_ParseTuple(args,(
char *)
"OOO:real_to_binary",&obj0,&obj1,&obj2)) SWIG_fail;
16667 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
16668 if (!SWIG_IsOK(ecode1)) {
16669 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "real_to_binary" "', argument " "1"" of type '" "size_t""'");
16671 arg1 =
static_cast< size_t >(val1);
16672 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
16673 if (!SWIG_IsOK(res2)) {
16674 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "real_to_binary" "', argument " "2"" of type '" "float const *""'");
16676 arg2 =
reinterpret_cast< float *
>(argp2);
16677 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
16678 if (!SWIG_IsOK(res3)) {
16679 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "real_to_binary" "', argument " "3"" of type '" "uint8_t *""'");
16681 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
16683 Py_BEGIN_ALLOW_THREADS
16687 PyEval_RestoreThread(_save);
16688 PyErr_SetString(PyExc_RuntimeError, e.
what());
16691 Py_END_ALLOW_THREADS
16693 resultobj = SWIG_Py_Void();
16700 SWIGINTERN PyObject *_wrap_Index_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16701 PyObject *resultobj = 0;
16708 PyObject * obj0 = 0 ;
16709 PyObject * obj1 = 0 ;
16711 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index_d_set",&obj0,&obj1)) SWIG_fail;
16712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
16713 if (!SWIG_IsOK(res1)) {
16714 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_d_set" "', argument " "1"" of type '" "faiss::Index *""'");
16717 ecode2 = SWIG_AsVal_int(obj1, &val2);
16718 if (!SWIG_IsOK(ecode2)) {
16719 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_d_set" "', argument " "2"" of type '" "int""'");
16721 arg2 =
static_cast< int >(val2);
16722 if (arg1) (arg1)->d = arg2;
16723 resultobj = SWIG_Py_Void();
16730 SWIGINTERN PyObject *_wrap_Index_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16731 PyObject *resultobj = 0;
16735 PyObject * obj0 = 0 ;
16738 if (!PyArg_ParseTuple(args,(
char *)
"O:Index_d_get",&obj0)) SWIG_fail;
16739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
16740 if (!SWIG_IsOK(res1)) {
16741 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_d_get" "', argument " "1"" of type '" "faiss::Index *""'");
16744 result = (int) ((arg1)->d);
16745 resultobj = SWIG_From_int(static_cast< int >(result));
16752 SWIGINTERN PyObject *_wrap_Index_ntotal_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16753 PyObject *resultobj = 0;
16760 PyObject * obj0 = 0 ;
16761 PyObject * obj1 = 0 ;
16763 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index_ntotal_set",&obj0,&obj1)) SWIG_fail;
16764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
16765 if (!SWIG_IsOK(res1)) {
16766 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_ntotal_set" "', argument " "1"" of type '" "faiss::Index *""'");
16769 ecode2 = SWIG_AsVal_long(obj1, &val2);
16770 if (!SWIG_IsOK(ecode2)) {
16771 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_ntotal_set" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
16774 if (arg1) (arg1)->ntotal = arg2;
16775 resultobj = SWIG_Py_Void();
16782 SWIGINTERN PyObject *_wrap_Index_ntotal_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16783 PyObject *resultobj = 0;
16787 PyObject * obj0 = 0 ;
16790 if (!PyArg_ParseTuple(args,(
char *)
"O:Index_ntotal_get",&obj0)) SWIG_fail;
16791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
16792 if (!SWIG_IsOK(res1)) {
16793 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_ntotal_get" "', argument " "1"" of type '" "faiss::Index *""'");
16797 resultobj = SWIG_From_long(static_cast< long >(result));
16804 SWIGINTERN PyObject *_wrap_Index_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16805 PyObject *resultobj = 0;
16812 PyObject * obj0 = 0 ;
16813 PyObject * obj1 = 0 ;
16815 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index_verbose_set",&obj0,&obj1)) SWIG_fail;
16816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
16817 if (!SWIG_IsOK(res1)) {
16818 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_verbose_set" "', argument " "1"" of type '" "faiss::Index *""'");
16821 ecode2 = SWIG_AsVal_bool(obj1, &val2);
16822 if (!SWIG_IsOK(ecode2)) {
16823 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_verbose_set" "', argument " "2"" of type '" "bool""'");
16825 arg2 =
static_cast< bool >(val2);
16826 if (arg1) (arg1)->verbose = arg2;
16827 resultobj = SWIG_Py_Void();
16834 SWIGINTERN PyObject *_wrap_Index_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16835 PyObject *resultobj = 0;
16839 PyObject * obj0 = 0 ;
16842 if (!PyArg_ParseTuple(args,(
char *)
"O:Index_verbose_get",&obj0)) SWIG_fail;
16843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
16844 if (!SWIG_IsOK(res1)) {
16845 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_verbose_get" "', argument " "1"" of type '" "faiss::Index *""'");
16848 result = (bool) ((arg1)->verbose);
16849 resultobj = SWIG_From_bool(static_cast< bool >(result));
16856 SWIGINTERN PyObject *_wrap_Index_is_trained_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16857 PyObject *resultobj = 0;
16864 PyObject * obj0 = 0 ;
16865 PyObject * obj1 = 0 ;
16867 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index_is_trained_set",&obj0,&obj1)) SWIG_fail;
16868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
16869 if (!SWIG_IsOK(res1)) {
16870 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_is_trained_set" "', argument " "1"" of type '" "faiss::Index *""'");
16873 ecode2 = SWIG_AsVal_bool(obj1, &val2);
16874 if (!SWIG_IsOK(ecode2)) {
16875 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_is_trained_set" "', argument " "2"" of type '" "bool""'");
16877 arg2 =
static_cast< bool >(val2);
16878 if (arg1) (arg1)->is_trained = arg2;
16879 resultobj = SWIG_Py_Void();
16886 SWIGINTERN PyObject *_wrap_Index_is_trained_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16887 PyObject *resultobj = 0;
16891 PyObject * obj0 = 0 ;
16894 if (!PyArg_ParseTuple(args,(
char *)
"O:Index_is_trained_get",&obj0)) SWIG_fail;
16895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
16896 if (!SWIG_IsOK(res1)) {
16897 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_is_trained_get" "', argument " "1"" of type '" "faiss::Index *""'");
16900 result = (bool) ((arg1)->is_trained);
16901 resultobj = SWIG_From_bool(static_cast< bool >(result));
16908 SWIGINTERN PyObject *_wrap_Index_metric_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16909 PyObject *resultobj = 0;
16916 PyObject * obj0 = 0 ;
16917 PyObject * obj1 = 0 ;
16919 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index_metric_type_set",&obj0,&obj1)) SWIG_fail;
16920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
16921 if (!SWIG_IsOK(res1)) {
16922 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_metric_type_set" "', argument " "1"" of type '" "faiss::Index *""'");
16925 ecode2 = SWIG_AsVal_int(obj1, &val2);
16926 if (!SWIG_IsOK(ecode2)) {
16927 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_metric_type_set" "', argument " "2"" of type '" "faiss::MetricType""'");
16930 if (arg1) (arg1)->metric_type = arg2;
16931 resultobj = SWIG_Py_Void();
16938 SWIGINTERN PyObject *_wrap_Index_metric_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16939 PyObject *resultobj = 0;
16943 PyObject * obj0 = 0 ;
16946 if (!PyArg_ParseTuple(args,(
char *)
"O:Index_metric_type_get",&obj0)) SWIG_fail;
16947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
16948 if (!SWIG_IsOK(res1)) {
16949 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_metric_type_get" "', argument " "1"" of type '" "faiss::Index *""'");
16953 resultobj = SWIG_From_int(static_cast< int >(result));
16960 SWIGINTERN PyObject *_wrap_delete_Index(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16961 PyObject *resultobj = 0;
16965 PyObject * obj0 = 0 ;
16967 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Index",&obj0)) SWIG_fail;
16968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
16969 if (!SWIG_IsOK(res1)) {
16970 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Index" "', argument " "1"" of type '" "faiss::Index *""'");
16974 Py_BEGIN_ALLOW_THREADS
16978 PyEval_RestoreThread(_save);
16979 PyErr_SetString(PyExc_RuntimeError, e.
what());
16982 Py_END_ALLOW_THREADS
16984 resultobj = SWIG_Py_Void();
16991 SWIGINTERN PyObject *_wrap_Index_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16992 PyObject *resultobj = 0;
16995 float *arg3 = (
float *) 0 ;
17002 PyObject * obj0 = 0 ;
17003 PyObject * obj1 = 0 ;
17004 PyObject * obj2 = 0 ;
17006 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Index_train",&obj0,&obj1,&obj2)) SWIG_fail;
17007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
17008 if (!SWIG_IsOK(res1)) {
17009 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_train" "', argument " "1"" of type '" "faiss::Index *""'");
17012 ecode2 = SWIG_AsVal_long(obj1, &val2);
17013 if (!SWIG_IsOK(ecode2)) {
17014 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
17017 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
17018 if (!SWIG_IsOK(res3)) {
17019 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_train" "', argument " "3"" of type '" "float const *""'");
17021 arg3 =
reinterpret_cast< float *
>(argp3);
17023 Py_BEGIN_ALLOW_THREADS
17025 (arg1)->train(arg2,(
float const *)arg3);
17027 PyEval_RestoreThread(_save);
17028 PyErr_SetString(PyExc_RuntimeError, e.
what());
17031 Py_END_ALLOW_THREADS
17033 resultobj = SWIG_Py_Void();
17040 SWIGINTERN PyObject *_wrap_Index_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17041 PyObject *resultobj = 0;
17044 float *arg3 = (
float *) 0 ;
17051 PyObject * obj0 = 0 ;
17052 PyObject * obj1 = 0 ;
17053 PyObject * obj2 = 0 ;
17055 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Index_add",&obj0,&obj1,&obj2)) SWIG_fail;
17056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
17057 if (!SWIG_IsOK(res1)) {
17058 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_add" "', argument " "1"" of type '" "faiss::Index *""'");
17061 ecode2 = SWIG_AsVal_long(obj1, &val2);
17062 if (!SWIG_IsOK(ecode2)) {
17063 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
17066 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
17067 if (!SWIG_IsOK(res3)) {
17068 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_add" "', argument " "3"" of type '" "float const *""'");
17070 arg3 =
reinterpret_cast< float *
>(argp3);
17072 Py_BEGIN_ALLOW_THREADS
17074 (arg1)->add(arg2,(
float const *)arg3);
17076 PyEval_RestoreThread(_save);
17077 PyErr_SetString(PyExc_RuntimeError, e.
what());
17080 Py_END_ALLOW_THREADS
17082 resultobj = SWIG_Py_Void();
17089 SWIGINTERN PyObject *_wrap_Index_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17090 PyObject *resultobj = 0;
17093 float *arg3 = (
float *) 0 ;
17094 long *arg4 = (
long *) 0 ;
17103 PyObject * obj0 = 0 ;
17104 PyObject * obj1 = 0 ;
17105 PyObject * obj2 = 0 ;
17106 PyObject * obj3 = 0 ;
17108 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Index_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
17110 if (!SWIG_IsOK(res1)) {
17111 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_add_with_ids" "', argument " "1"" of type '" "faiss::Index *""'");
17114 ecode2 = SWIG_AsVal_long(obj1, &val2);
17115 if (!SWIG_IsOK(ecode2)) {
17116 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
17119 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
17120 if (!SWIG_IsOK(res3)) {
17121 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_add_with_ids" "', argument " "3"" of type '" "float const *""'");
17123 arg3 =
reinterpret_cast< float *
>(argp3);
17124 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
17125 if (!SWIG_IsOK(res4)) {
17126 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "Index_add_with_ids" "', argument " "4"" of type '" "long const *""'");
17128 arg4 =
reinterpret_cast< long *
>(argp4);
17130 Py_BEGIN_ALLOW_THREADS
17132 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
17134 PyEval_RestoreThread(_save);
17135 PyErr_SetString(PyExc_RuntimeError, e.
what());
17138 Py_END_ALLOW_THREADS
17140 resultobj = SWIG_Py_Void();
17147 SWIGINTERN PyObject *_wrap_Index_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17148 PyObject *resultobj = 0;
17151 float *arg3 = (
float *) 0 ;
17153 float *arg5 = (
float *) 0 ;
17167 PyObject * obj0 = 0 ;
17168 PyObject * obj1 = 0 ;
17169 PyObject * obj2 = 0 ;
17170 PyObject * obj3 = 0 ;
17171 PyObject * obj4 = 0 ;
17172 PyObject * obj5 = 0 ;
17174 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:Index_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
17176 if (!SWIG_IsOK(res1)) {
17177 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_search" "', argument " "1"" of type '" "faiss::Index const *""'");
17180 ecode2 = SWIG_AsVal_long(obj1, &val2);
17181 if (!SWIG_IsOK(ecode2)) {
17182 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
17185 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
17186 if (!SWIG_IsOK(res3)) {
17187 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_search" "', argument " "3"" of type '" "float const *""'");
17189 arg3 =
reinterpret_cast< float *
>(argp3);
17190 ecode4 = SWIG_AsVal_long(obj3, &val4);
17191 if (!SWIG_IsOK(ecode4)) {
17192 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Index_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
17195 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
17196 if (!SWIG_IsOK(res5)) {
17197 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "Index_search" "', argument " "5"" of type '" "float *""'");
17199 arg5 =
reinterpret_cast< float *
>(argp5);
17200 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
17201 if (!SWIG_IsOK(res6)) {
17202 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "Index_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
17206 Py_BEGIN_ALLOW_THREADS
17208 ((
faiss::Index const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
17210 PyEval_RestoreThread(_save);
17211 PyErr_SetString(PyExc_RuntimeError, e.
what());
17214 Py_END_ALLOW_THREADS
17216 resultobj = SWIG_Py_Void();
17223 SWIGINTERN PyObject *_wrap_Index_range_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17224 PyObject *resultobj = 0;
17227 float *arg3 = (
float *) 0 ;
17240 PyObject * obj0 = 0 ;
17241 PyObject * obj1 = 0 ;
17242 PyObject * obj2 = 0 ;
17243 PyObject * obj3 = 0 ;
17244 PyObject * obj4 = 0 ;
17246 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:Index_range_search",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
17248 if (!SWIG_IsOK(res1)) {
17249 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_range_search" "', argument " "1"" of type '" "faiss::Index const *""'");
17252 ecode2 = SWIG_AsVal_long(obj1, &val2);
17253 if (!SWIG_IsOK(ecode2)) {
17254 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_range_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
17257 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
17258 if (!SWIG_IsOK(res3)) {
17259 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_range_search" "', argument " "3"" of type '" "float const *""'");
17261 arg3 =
reinterpret_cast< float *
>(argp3);
17262 ecode4 = SWIG_AsVal_float(obj3, &val4);
17263 if (!SWIG_IsOK(ecode4)) {
17264 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Index_range_search" "', argument " "4"" of type '" "float""'");
17266 arg4 =
static_cast< float >(val4);
17267 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
17268 if (!SWIG_IsOK(res5)) {
17269 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "Index_range_search" "', argument " "5"" of type '" "faiss::RangeSearchResult *""'");
17273 Py_BEGIN_ALLOW_THREADS
17275 ((
faiss::Index const *)arg1)->range_search(arg2,(
float const *)arg3,arg4,arg5);
17277 PyEval_RestoreThread(_save);
17278 PyErr_SetString(PyExc_RuntimeError, e.
what());
17281 Py_END_ALLOW_THREADS
17283 resultobj = SWIG_Py_Void();
17290 SWIGINTERN PyObject *_wrap_Index_assign__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17291 PyObject *resultobj = 0;
17294 float *arg3 = (
float *) 0 ;
17307 PyObject * obj0 = 0 ;
17308 PyObject * obj1 = 0 ;
17309 PyObject * obj2 = 0 ;
17310 PyObject * obj3 = 0 ;
17311 PyObject * obj4 = 0 ;
17313 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:Index_assign",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
17315 if (!SWIG_IsOK(res1)) {
17316 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_assign" "', argument " "1"" of type '" "faiss::Index *""'");
17319 ecode2 = SWIG_AsVal_long(obj1, &val2);
17320 if (!SWIG_IsOK(ecode2)) {
17321 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_assign" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
17324 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
17325 if (!SWIG_IsOK(res3)) {
17326 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_assign" "', argument " "3"" of type '" "float const *""'");
17328 arg3 =
reinterpret_cast< float *
>(argp3);
17329 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
17330 if (!SWIG_IsOK(res4)) {
17331 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "Index_assign" "', argument " "4"" of type '" "faiss::Index::idx_t *""'");
17334 ecode5 = SWIG_AsVal_long(obj4, &val5);
17335 if (!SWIG_IsOK(ecode5)) {
17336 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "Index_assign" "', argument " "5"" of type '" "faiss::Index::idx_t""'");
17340 Py_BEGIN_ALLOW_THREADS
17342 (arg1)->assign(arg2,(
float const *)arg3,arg4,arg5);
17344 PyEval_RestoreThread(_save);
17345 PyErr_SetString(PyExc_RuntimeError, e.
what());
17348 Py_END_ALLOW_THREADS
17350 resultobj = SWIG_Py_Void();
17357 SWIGINTERN PyObject *_wrap_Index_assign__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17358 PyObject *resultobj = 0;
17361 float *arg3 = (
float *) 0 ;
17371 PyObject * obj0 = 0 ;
17372 PyObject * obj1 = 0 ;
17373 PyObject * obj2 = 0 ;
17374 PyObject * obj3 = 0 ;
17376 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Index_assign",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
17378 if (!SWIG_IsOK(res1)) {
17379 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_assign" "', argument " "1"" of type '" "faiss::Index *""'");
17382 ecode2 = SWIG_AsVal_long(obj1, &val2);
17383 if (!SWIG_IsOK(ecode2)) {
17384 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_assign" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
17387 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
17388 if (!SWIG_IsOK(res3)) {
17389 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_assign" "', argument " "3"" of type '" "float const *""'");
17391 arg3 =
reinterpret_cast< float *
>(argp3);
17392 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
17393 if (!SWIG_IsOK(res4)) {
17394 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "Index_assign" "', argument " "4"" of type '" "faiss::Index::idx_t *""'");
17398 Py_BEGIN_ALLOW_THREADS
17400 (arg1)->assign(arg2,(
float const *)arg3,arg4);
17402 PyEval_RestoreThread(_save);
17403 PyErr_SetString(PyExc_RuntimeError, e.
what());
17406 Py_END_ALLOW_THREADS
17408 resultobj = SWIG_Py_Void();
17415 SWIGINTERN PyObject *_wrap_Index_assign(PyObject *
self, PyObject *args) {
17417 PyObject *argv[6] = {
17422 if (!PyTuple_Check(args)) SWIG_fail;
17423 argc = args ? PyObject_Length(args) : 0;
17424 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
17425 argv[ii] = PyTuple_GET_ITEM(args,ii);
17430 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
17431 _v = SWIG_CheckState(res);
17434 int res = SWIG_AsVal_long(argv[1], NULL);
17435 _v = SWIG_CheckState(res);
17439 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
17440 _v = SWIG_CheckState(res);
17443 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
17444 _v = SWIG_CheckState(res);
17446 return _wrap_Index_assign__SWIG_1(
self, args);
17455 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
17456 _v = SWIG_CheckState(res);
17459 int res = SWIG_AsVal_long(argv[1], NULL);
17460 _v = SWIG_CheckState(res);
17464 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
17465 _v = SWIG_CheckState(res);
17468 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
17469 _v = SWIG_CheckState(res);
17472 int res = SWIG_AsVal_long(argv[4], NULL);
17473 _v = SWIG_CheckState(res);
17476 return _wrap_Index_assign__SWIG_0(
self, args);
17485 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'Index_assign'.\n"
17486 " Possible C/C++ prototypes are:\n"
17487 " faiss::Index::assign(faiss::Index::idx_t,float const *,faiss::Index::idx_t *,faiss::Index::idx_t)\n"
17488 " faiss::Index::assign(faiss::Index::idx_t,float const *,faiss::Index::idx_t *)\n");
17493 SWIGINTERN PyObject *_wrap_Index_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17494 PyObject *resultobj = 0;
17498 PyObject * obj0 = 0 ;
17500 if (!PyArg_ParseTuple(args,(
char *)
"O:Index_reset",&obj0)) SWIG_fail;
17501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
17502 if (!SWIG_IsOK(res1)) {
17503 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_reset" "', argument " "1"" of type '" "faiss::Index *""'");
17507 Py_BEGIN_ALLOW_THREADS
17511 PyEval_RestoreThread(_save);
17512 PyErr_SetString(PyExc_RuntimeError, e.
what());
17515 Py_END_ALLOW_THREADS
17517 resultobj = SWIG_Py_Void();
17524 SWIGINTERN PyObject *_wrap_Index_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17525 PyObject *resultobj = 0;
17532 PyObject * obj0 = 0 ;
17533 PyObject * obj1 = 0 ;
17536 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index_remove_ids",&obj0,&obj1)) SWIG_fail;
17537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
17538 if (!SWIG_IsOK(res1)) {
17539 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_remove_ids" "', argument " "1"" of type '" "faiss::Index *""'");
17542 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
17543 if (!SWIG_IsOK(res2)) {
17544 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Index_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
17547 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Index_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
17551 Py_BEGIN_ALLOW_THREADS
17555 PyEval_RestoreThread(_save);
17556 PyErr_SetString(PyExc_RuntimeError, e.
what());
17559 Py_END_ALLOW_THREADS
17561 resultobj = SWIG_From_long(static_cast< long >(result));
17568 SWIGINTERN PyObject *_wrap_Index_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17569 PyObject *resultobj = 0;
17572 float *arg3 = (
float *) 0 ;
17579 PyObject * obj0 = 0 ;
17580 PyObject * obj1 = 0 ;
17581 PyObject * obj2 = 0 ;
17583 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Index_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
17584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
17585 if (!SWIG_IsOK(res1)) {
17586 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_reconstruct" "', argument " "1"" of type '" "faiss::Index const *""'");
17589 ecode2 = SWIG_AsVal_long(obj1, &val2);
17590 if (!SWIG_IsOK(ecode2)) {
17591 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
17594 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
17595 if (!SWIG_IsOK(res3)) {
17596 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_reconstruct" "', argument " "3"" of type '" "float *""'");
17598 arg3 =
reinterpret_cast< float *
>(argp3);
17600 Py_BEGIN_ALLOW_THREADS
17604 PyEval_RestoreThread(_save);
17605 PyErr_SetString(PyExc_RuntimeError, e.
what());
17608 Py_END_ALLOW_THREADS
17610 resultobj = SWIG_Py_Void();
17617 SWIGINTERN PyObject *_wrap_Index_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17618 PyObject *resultobj = 0;
17622 float *arg4 = (
float *) 0 ;
17631 PyObject * obj0 = 0 ;
17632 PyObject * obj1 = 0 ;
17633 PyObject * obj2 = 0 ;
17634 PyObject * obj3 = 0 ;
17636 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Index_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
17638 if (!SWIG_IsOK(res1)) {
17639 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_reconstruct_n" "', argument " "1"" of type '" "faiss::Index const *""'");
17642 ecode2 = SWIG_AsVal_long(obj1, &val2);
17643 if (!SWIG_IsOK(ecode2)) {
17644 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_reconstruct_n" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
17647 ecode3 = SWIG_AsVal_long(obj2, &val3);
17648 if (!SWIG_IsOK(ecode3)) {
17649 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Index_reconstruct_n" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
17652 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
17653 if (!SWIG_IsOK(res4)) {
17654 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "Index_reconstruct_n" "', argument " "4"" of type '" "float *""'");
17656 arg4 =
reinterpret_cast< float *
>(argp4);
17658 Py_BEGIN_ALLOW_THREADS
17660 ((
faiss::Index const *)arg1)->reconstruct_n(arg2,arg3,arg4);
17662 PyEval_RestoreThread(_save);
17663 PyErr_SetString(PyExc_RuntimeError, e.
what());
17666 Py_END_ALLOW_THREADS
17668 resultobj = SWIG_Py_Void();
17675 SWIGINTERN PyObject *_wrap_Index_search_and_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17676 PyObject *resultobj = 0;
17679 float *arg3 = (
float *) 0 ;
17681 float *arg5 = (
float *) 0 ;
17683 float *arg7 = (
float *) 0 ;
17698 PyObject * obj0 = 0 ;
17699 PyObject * obj1 = 0 ;
17700 PyObject * obj2 = 0 ;
17701 PyObject * obj3 = 0 ;
17702 PyObject * obj4 = 0 ;
17703 PyObject * obj5 = 0 ;
17704 PyObject * obj6 = 0 ;
17706 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:Index_search_and_reconstruct",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
17708 if (!SWIG_IsOK(res1)) {
17709 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_search_and_reconstruct" "', argument " "1"" of type '" "faiss::Index const *""'");
17712 ecode2 = SWIG_AsVal_long(obj1, &val2);
17713 if (!SWIG_IsOK(ecode2)) {
17714 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_search_and_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
17717 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
17718 if (!SWIG_IsOK(res3)) {
17719 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_search_and_reconstruct" "', argument " "3"" of type '" "float const *""'");
17721 arg3 =
reinterpret_cast< float *
>(argp3);
17722 ecode4 = SWIG_AsVal_long(obj3, &val4);
17723 if (!SWIG_IsOK(ecode4)) {
17724 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Index_search_and_reconstruct" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
17727 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
17728 if (!SWIG_IsOK(res5)) {
17729 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "Index_search_and_reconstruct" "', argument " "5"" of type '" "float *""'");
17731 arg5 =
reinterpret_cast< float *
>(argp5);
17732 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
17733 if (!SWIG_IsOK(res6)) {
17734 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "Index_search_and_reconstruct" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
17737 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
17738 if (!SWIG_IsOK(res7)) {
17739 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "Index_search_and_reconstruct" "', argument " "7"" of type '" "float *""'");
17741 arg7 =
reinterpret_cast< float *
>(argp7);
17743 Py_BEGIN_ALLOW_THREADS
17745 ((
faiss::Index const *)arg1)->search_and_reconstruct(arg2,(
float const *)arg3,arg4,arg5,arg6,arg7);
17747 PyEval_RestoreThread(_save);
17748 PyErr_SetString(PyExc_RuntimeError, e.
what());
17751 Py_END_ALLOW_THREADS
17753 resultobj = SWIG_Py_Void();
17760 SWIGINTERN PyObject *_wrap_Index_compute_residual(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17761 PyObject *resultobj = 0;
17763 float *arg2 = (
float *) 0 ;
17764 float *arg3 = (
float *) 0 ;
17774 PyObject * obj0 = 0 ;
17775 PyObject * obj1 = 0 ;
17776 PyObject * obj2 = 0 ;
17777 PyObject * obj3 = 0 ;
17779 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Index_compute_residual",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
17781 if (!SWIG_IsOK(res1)) {
17782 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_compute_residual" "', argument " "1"" of type '" "faiss::Index const *""'");
17785 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
17786 if (!SWIG_IsOK(res2)) {
17787 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Index_compute_residual" "', argument " "2"" of type '" "float const *""'");
17789 arg2 =
reinterpret_cast< float *
>(argp2);
17790 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
17791 if (!SWIG_IsOK(res3)) {
17792 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_compute_residual" "', argument " "3"" of type '" "float *""'");
17794 arg3 =
reinterpret_cast< float *
>(argp3);
17795 ecode4 = SWIG_AsVal_long(obj3, &val4);
17796 if (!SWIG_IsOK(ecode4)) {
17797 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Index_compute_residual" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
17801 Py_BEGIN_ALLOW_THREADS
17803 ((
faiss::Index const *)arg1)->compute_residual((
float const *)arg2,arg3,arg4);
17805 PyEval_RestoreThread(_save);
17806 PyErr_SetString(PyExc_RuntimeError, e.
what());
17809 Py_END_ALLOW_THREADS
17811 resultobj = SWIG_Py_Void();
17818 SWIGINTERN PyObject *_wrap_Index_display(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17819 PyObject *resultobj = 0;
17823 PyObject * obj0 = 0 ;
17825 if (!PyArg_ParseTuple(args,(
char *)
"O:Index_display",&obj0)) SWIG_fail;
17826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
17827 if (!SWIG_IsOK(res1)) {
17828 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_display" "', argument " "1"" of type '" "faiss::Index const *""'");
17832 Py_BEGIN_ALLOW_THREADS
17836 PyEval_RestoreThread(_save);
17837 PyErr_SetString(PyExc_RuntimeError, e.
what());
17840 Py_END_ALLOW_THREADS
17842 resultobj = SWIG_Py_Void();
17849 SWIGINTERN PyObject *Index_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17851 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
17852 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__Index, SWIG_NewClientData(obj));
17853 return SWIG_Py_Void();
17856 SWIGINTERN PyObject *_wrap_ClusteringParameters_niter_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17857 PyObject *resultobj = 0;
17864 PyObject * obj0 = 0 ;
17865 PyObject * obj1 = 0 ;
17867 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_niter_set",&obj0,&obj1)) SWIG_fail;
17868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
17869 if (!SWIG_IsOK(res1)) {
17870 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_niter_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
17873 ecode2 = SWIG_AsVal_int(obj1, &val2);
17874 if (!SWIG_IsOK(ecode2)) {
17875 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_niter_set" "', argument " "2"" of type '" "int""'");
17877 arg2 =
static_cast< int >(val2);
17878 if (arg1) (arg1)->niter = arg2;
17879 resultobj = SWIG_Py_Void();
17886 SWIGINTERN PyObject *_wrap_ClusteringParameters_niter_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17887 PyObject *resultobj = 0;
17891 PyObject * obj0 = 0 ;
17894 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_niter_get",&obj0)) SWIG_fail;
17895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
17896 if (!SWIG_IsOK(res1)) {
17897 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_niter_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
17900 result = (int) ((arg1)->niter);
17901 resultobj = SWIG_From_int(static_cast< int >(result));
17908 SWIGINTERN PyObject *_wrap_ClusteringParameters_nredo_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17909 PyObject *resultobj = 0;
17916 PyObject * obj0 = 0 ;
17917 PyObject * obj1 = 0 ;
17919 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_nredo_set",&obj0,&obj1)) SWIG_fail;
17920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
17921 if (!SWIG_IsOK(res1)) {
17922 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_nredo_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
17925 ecode2 = SWIG_AsVal_int(obj1, &val2);
17926 if (!SWIG_IsOK(ecode2)) {
17927 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_nredo_set" "', argument " "2"" of type '" "int""'");
17929 arg2 =
static_cast< int >(val2);
17930 if (arg1) (arg1)->nredo = arg2;
17931 resultobj = SWIG_Py_Void();
17938 SWIGINTERN PyObject *_wrap_ClusteringParameters_nredo_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17939 PyObject *resultobj = 0;
17943 PyObject * obj0 = 0 ;
17946 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_nredo_get",&obj0)) SWIG_fail;
17947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
17948 if (!SWIG_IsOK(res1)) {
17949 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_nredo_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
17952 result = (int) ((arg1)->nredo);
17953 resultobj = SWIG_From_int(static_cast< int >(result));
17960 SWIGINTERN PyObject *_wrap_ClusteringParameters_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17961 PyObject *resultobj = 0;
17968 PyObject * obj0 = 0 ;
17969 PyObject * obj1 = 0 ;
17971 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_verbose_set",&obj0,&obj1)) SWIG_fail;
17972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
17973 if (!SWIG_IsOK(res1)) {
17974 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_verbose_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
17977 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17978 if (!SWIG_IsOK(ecode2)) {
17979 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_verbose_set" "', argument " "2"" of type '" "bool""'");
17981 arg2 =
static_cast< bool >(val2);
17982 if (arg1) (arg1)->verbose = arg2;
17983 resultobj = SWIG_Py_Void();
17990 SWIGINTERN PyObject *_wrap_ClusteringParameters_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17991 PyObject *resultobj = 0;
17995 PyObject * obj0 = 0 ;
17998 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_verbose_get",&obj0)) SWIG_fail;
17999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
18000 if (!SWIG_IsOK(res1)) {
18001 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_verbose_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
18004 result = (bool) ((arg1)->verbose);
18005 resultobj = SWIG_From_bool(static_cast< bool >(result));
18012 SWIGINTERN PyObject *_wrap_ClusteringParameters_spherical_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18013 PyObject *resultobj = 0;
18020 PyObject * obj0 = 0 ;
18021 PyObject * obj1 = 0 ;
18023 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_spherical_set",&obj0,&obj1)) SWIG_fail;
18024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
18025 if (!SWIG_IsOK(res1)) {
18026 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_spherical_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
18029 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18030 if (!SWIG_IsOK(ecode2)) {
18031 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_spherical_set" "', argument " "2"" of type '" "bool""'");
18033 arg2 =
static_cast< bool >(val2);
18034 if (arg1) (arg1)->spherical = arg2;
18035 resultobj = SWIG_Py_Void();
18042 SWIGINTERN PyObject *_wrap_ClusteringParameters_spherical_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18043 PyObject *resultobj = 0;
18047 PyObject * obj0 = 0 ;
18050 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_spherical_get",&obj0)) SWIG_fail;
18051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
18052 if (!SWIG_IsOK(res1)) {
18053 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_spherical_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
18056 result = (bool) ((arg1)->spherical);
18057 resultobj = SWIG_From_bool(static_cast< bool >(result));
18064 SWIGINTERN PyObject *_wrap_ClusteringParameters_update_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18065 PyObject *resultobj = 0;
18072 PyObject * obj0 = 0 ;
18073 PyObject * obj1 = 0 ;
18075 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_update_index_set",&obj0,&obj1)) SWIG_fail;
18076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
18077 if (!SWIG_IsOK(res1)) {
18078 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_update_index_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
18081 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18082 if (!SWIG_IsOK(ecode2)) {
18083 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_update_index_set" "', argument " "2"" of type '" "bool""'");
18085 arg2 =
static_cast< bool >(val2);
18086 if (arg1) (arg1)->update_index = arg2;
18087 resultobj = SWIG_Py_Void();
18094 SWIGINTERN PyObject *_wrap_ClusteringParameters_update_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18095 PyObject *resultobj = 0;
18099 PyObject * obj0 = 0 ;
18102 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_update_index_get",&obj0)) SWIG_fail;
18103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
18104 if (!SWIG_IsOK(res1)) {
18105 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_update_index_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
18108 result = (bool) ((arg1)->update_index);
18109 resultobj = SWIG_From_bool(static_cast< bool >(result));
18116 SWIGINTERN PyObject *_wrap_ClusteringParameters_frozen_centroids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18117 PyObject *resultobj = 0;
18124 PyObject * obj0 = 0 ;
18125 PyObject * obj1 = 0 ;
18127 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_frozen_centroids_set",&obj0,&obj1)) SWIG_fail;
18128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
18129 if (!SWIG_IsOK(res1)) {
18130 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_frozen_centroids_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
18133 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18134 if (!SWIG_IsOK(ecode2)) {
18135 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_frozen_centroids_set" "', argument " "2"" of type '" "bool""'");
18137 arg2 =
static_cast< bool >(val2);
18138 if (arg1) (arg1)->frozen_centroids = arg2;
18139 resultobj = SWIG_Py_Void();
18146 SWIGINTERN PyObject *_wrap_ClusteringParameters_frozen_centroids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18147 PyObject *resultobj = 0;
18151 PyObject * obj0 = 0 ;
18154 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_frozen_centroids_get",&obj0)) SWIG_fail;
18155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
18156 if (!SWIG_IsOK(res1)) {
18157 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_frozen_centroids_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
18160 result = (bool) ((arg1)->frozen_centroids);
18161 resultobj = SWIG_From_bool(static_cast< bool >(result));
18168 SWIGINTERN PyObject *_wrap_ClusteringParameters_min_points_per_centroid_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18169 PyObject *resultobj = 0;
18176 PyObject * obj0 = 0 ;
18177 PyObject * obj1 = 0 ;
18179 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_min_points_per_centroid_set",&obj0,&obj1)) SWIG_fail;
18180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
18181 if (!SWIG_IsOK(res1)) {
18182 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_min_points_per_centroid_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
18185 ecode2 = SWIG_AsVal_int(obj1, &val2);
18186 if (!SWIG_IsOK(ecode2)) {
18187 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_min_points_per_centroid_set" "', argument " "2"" of type '" "int""'");
18189 arg2 =
static_cast< int >(val2);
18190 if (arg1) (arg1)->min_points_per_centroid = arg2;
18191 resultobj = SWIG_Py_Void();
18198 SWIGINTERN PyObject *_wrap_ClusteringParameters_min_points_per_centroid_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18199 PyObject *resultobj = 0;
18203 PyObject * obj0 = 0 ;
18206 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_min_points_per_centroid_get",&obj0)) SWIG_fail;
18207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
18208 if (!SWIG_IsOK(res1)) {
18209 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_min_points_per_centroid_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
18212 result = (int) ((arg1)->min_points_per_centroid);
18213 resultobj = SWIG_From_int(static_cast< int >(result));
18220 SWIGINTERN PyObject *_wrap_ClusteringParameters_max_points_per_centroid_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18221 PyObject *resultobj = 0;
18228 PyObject * obj0 = 0 ;
18229 PyObject * obj1 = 0 ;
18231 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_max_points_per_centroid_set",&obj0,&obj1)) SWIG_fail;
18232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
18233 if (!SWIG_IsOK(res1)) {
18234 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_max_points_per_centroid_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
18237 ecode2 = SWIG_AsVal_int(obj1, &val2);
18238 if (!SWIG_IsOK(ecode2)) {
18239 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_max_points_per_centroid_set" "', argument " "2"" of type '" "int""'");
18241 arg2 =
static_cast< int >(val2);
18242 if (arg1) (arg1)->max_points_per_centroid = arg2;
18243 resultobj = SWIG_Py_Void();
18250 SWIGINTERN PyObject *_wrap_ClusteringParameters_max_points_per_centroid_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18251 PyObject *resultobj = 0;
18255 PyObject * obj0 = 0 ;
18258 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_max_points_per_centroid_get",&obj0)) SWIG_fail;
18259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
18260 if (!SWIG_IsOK(res1)) {
18261 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_max_points_per_centroid_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
18264 result = (int) ((arg1)->max_points_per_centroid);
18265 resultobj = SWIG_From_int(static_cast< int >(result));
18272 SWIGINTERN PyObject *_wrap_ClusteringParameters_seed_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18273 PyObject *resultobj = 0;
18280 PyObject * obj0 = 0 ;
18281 PyObject * obj1 = 0 ;
18283 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_seed_set",&obj0,&obj1)) SWIG_fail;
18284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
18285 if (!SWIG_IsOK(res1)) {
18286 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_seed_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
18289 ecode2 = SWIG_AsVal_int(obj1, &val2);
18290 if (!SWIG_IsOK(ecode2)) {
18291 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_seed_set" "', argument " "2"" of type '" "int""'");
18293 arg2 =
static_cast< int >(val2);
18294 if (arg1) (arg1)->seed = arg2;
18295 resultobj = SWIG_Py_Void();
18302 SWIGINTERN PyObject *_wrap_ClusteringParameters_seed_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18303 PyObject *resultobj = 0;
18307 PyObject * obj0 = 0 ;
18310 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_seed_get",&obj0)) SWIG_fail;
18311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
18312 if (!SWIG_IsOK(res1)) {
18313 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_seed_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
18316 result = (int) ((arg1)->seed);
18317 resultobj = SWIG_From_int(static_cast< int >(result));
18324 SWIGINTERN PyObject *_wrap_new_ClusteringParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18325 PyObject *resultobj = 0;
18328 if (!PyArg_ParseTuple(args,(
char *)
":new_ClusteringParameters")) SWIG_fail;
18330 Py_BEGIN_ALLOW_THREADS
18334 PyEval_RestoreThread(_save);
18335 PyErr_SetString(PyExc_RuntimeError, e.
what());
18338 Py_END_ALLOW_THREADS
18340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ClusteringParameters, SWIG_POINTER_NEW | 0 );
18347 SWIGINTERN PyObject *_wrap_delete_ClusteringParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18348 PyObject *resultobj = 0;
18352 PyObject * obj0 = 0 ;
18354 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ClusteringParameters",&obj0)) SWIG_fail;
18355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, SWIG_POINTER_DISOWN | 0 );
18356 if (!SWIG_IsOK(res1)) {
18357 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ClusteringParameters" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
18361 resultobj = SWIG_Py_Void();
18368 SWIGINTERN PyObject *ClusteringParameters_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18370 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
18371 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ClusteringParameters, SWIG_NewClientData(obj));
18372 return SWIG_Py_Void();
18375 SWIGINTERN PyObject *_wrap_Clustering_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18376 PyObject *resultobj = 0;
18383 PyObject * obj0 = 0 ;
18384 PyObject * obj1 = 0 ;
18386 if (!PyArg_ParseTuple(args,(
char *)
"OO:Clustering_d_set",&obj0,&obj1)) SWIG_fail;
18387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
18388 if (!SWIG_IsOK(res1)) {
18389 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_d_set" "', argument " "1"" of type '" "faiss::Clustering *""'");
18392 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18393 if (!SWIG_IsOK(ecode2)) {
18394 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Clustering_d_set" "', argument " "2"" of type '" "size_t""'");
18396 arg2 =
static_cast< size_t >(val2);
18397 if (arg1) (arg1)->d = arg2;
18398 resultobj = SWIG_Py_Void();
18405 SWIGINTERN PyObject *_wrap_Clustering_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18406 PyObject *resultobj = 0;
18410 PyObject * obj0 = 0 ;
18413 if (!PyArg_ParseTuple(args,(
char *)
"O:Clustering_d_get",&obj0)) SWIG_fail;
18414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
18415 if (!SWIG_IsOK(res1)) {
18416 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_d_get" "', argument " "1"" of type '" "faiss::Clustering *""'");
18419 result = (size_t) ((arg1)->d);
18420 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18427 SWIGINTERN PyObject *_wrap_Clustering_k_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18428 PyObject *resultobj = 0;
18435 PyObject * obj0 = 0 ;
18436 PyObject * obj1 = 0 ;
18438 if (!PyArg_ParseTuple(args,(
char *)
"OO:Clustering_k_set",&obj0,&obj1)) SWIG_fail;
18439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
18440 if (!SWIG_IsOK(res1)) {
18441 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_k_set" "', argument " "1"" of type '" "faiss::Clustering *""'");
18444 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18445 if (!SWIG_IsOK(ecode2)) {
18446 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Clustering_k_set" "', argument " "2"" of type '" "size_t""'");
18448 arg2 =
static_cast< size_t >(val2);
18449 if (arg1) (arg1)->k = arg2;
18450 resultobj = SWIG_Py_Void();
18457 SWIGINTERN PyObject *_wrap_Clustering_k_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18458 PyObject *resultobj = 0;
18462 PyObject * obj0 = 0 ;
18465 if (!PyArg_ParseTuple(args,(
char *)
"O:Clustering_k_get",&obj0)) SWIG_fail;
18466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
18467 if (!SWIG_IsOK(res1)) {
18468 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_k_get" "', argument " "1"" of type '" "faiss::Clustering *""'");
18471 result = (size_t) ((arg1)->k);
18472 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18479 SWIGINTERN PyObject *_wrap_Clustering_centroids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18480 PyObject *resultobj = 0;
18482 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
18487 PyObject * obj0 = 0 ;
18488 PyObject * obj1 = 0 ;
18490 if (!PyArg_ParseTuple(args,(
char *)
"OO:Clustering_centroids_set",&obj0,&obj1)) SWIG_fail;
18491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
18492 if (!SWIG_IsOK(res1)) {
18493 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_centroids_set" "', argument " "1"" of type '" "faiss::Clustering *""'");
18496 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
18497 if (!SWIG_IsOK(res2)) {
18498 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Clustering_centroids_set" "', argument " "2"" of type '" "std::vector< float > *""'");
18500 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
18501 if (arg1) (arg1)->centroids = *arg2;
18502 resultobj = SWIG_Py_Void();
18509 SWIGINTERN PyObject *_wrap_Clustering_centroids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18510 PyObject *resultobj = 0;
18514 PyObject * obj0 = 0 ;
18515 std::vector< float > *result = 0 ;
18517 if (!PyArg_ParseTuple(args,(
char *)
"O:Clustering_centroids_get",&obj0)) SWIG_fail;
18518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
18519 if (!SWIG_IsOK(res1)) {
18520 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_centroids_get" "', argument " "1"" of type '" "faiss::Clustering *""'");
18523 result = (std::vector< float > *)& ((arg1)->centroids);
18524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
18531 SWIGINTERN PyObject *_wrap_Clustering_obj_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18532 PyObject *resultobj = 0;
18534 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
18539 PyObject * obj0 = 0 ;
18540 PyObject * obj1 = 0 ;
18542 if (!PyArg_ParseTuple(args,(
char *)
"OO:Clustering_obj_set",&obj0,&obj1)) SWIG_fail;
18543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
18544 if (!SWIG_IsOK(res1)) {
18545 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_obj_set" "', argument " "1"" of type '" "faiss::Clustering *""'");
18548 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
18549 if (!SWIG_IsOK(res2)) {
18550 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Clustering_obj_set" "', argument " "2"" of type '" "std::vector< float > *""'");
18552 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
18553 if (arg1) (arg1)->obj = *arg2;
18554 resultobj = SWIG_Py_Void();
18561 SWIGINTERN PyObject *_wrap_Clustering_obj_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18562 PyObject *resultobj = 0;
18566 PyObject * obj0 = 0 ;
18567 std::vector< float > *result = 0 ;
18569 if (!PyArg_ParseTuple(args,(
char *)
"O:Clustering_obj_get",&obj0)) SWIG_fail;
18570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
18571 if (!SWIG_IsOK(res1)) {
18572 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_obj_get" "', argument " "1"" of type '" "faiss::Clustering *""'");
18575 result = (std::vector< float > *)& ((arg1)->obj);
18576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
18583 SWIGINTERN PyObject *_wrap_new_Clustering__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18584 PyObject *resultobj = 0;
18591 PyObject * obj0 = 0 ;
18592 PyObject * obj1 = 0 ;
18595 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_Clustering",&obj0,&obj1)) SWIG_fail;
18596 ecode1 = SWIG_AsVal_int(obj0, &val1);
18597 if (!SWIG_IsOK(ecode1)) {
18598 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_Clustering" "', argument " "1"" of type '" "int""'");
18600 arg1 =
static_cast< int >(val1);
18601 ecode2 = SWIG_AsVal_int(obj1, &val2);
18602 if (!SWIG_IsOK(ecode2)) {
18603 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_Clustering" "', argument " "2"" of type '" "int""'");
18605 arg2 =
static_cast< int >(val2);
18607 Py_BEGIN_ALLOW_THREADS
18611 PyEval_RestoreThread(_save);
18612 PyErr_SetString(PyExc_RuntimeError, e.
what());
18615 Py_END_ALLOW_THREADS
18617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Clustering, SWIG_POINTER_NEW | 0 );
18624 SWIGINTERN PyObject *_wrap_new_Clustering__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18625 PyObject *resultobj = 0;
18635 PyObject * obj0 = 0 ;
18636 PyObject * obj1 = 0 ;
18637 PyObject * obj2 = 0 ;
18640 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_Clustering",&obj0,&obj1,&obj2)) SWIG_fail;
18641 ecode1 = SWIG_AsVal_int(obj0, &val1);
18642 if (!SWIG_IsOK(ecode1)) {
18643 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_Clustering" "', argument " "1"" of type '" "int""'");
18645 arg1 =
static_cast< int >(val1);
18646 ecode2 = SWIG_AsVal_int(obj1, &val2);
18647 if (!SWIG_IsOK(ecode2)) {
18648 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_Clustering" "', argument " "2"" of type '" "int""'");
18650 arg2 =
static_cast< int >(val2);
18651 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0);
18652 if (!SWIG_IsOK(res3)) {
18653 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_Clustering" "', argument " "3"" of type '" "faiss::ClusteringParameters const &""'");
18656 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_Clustering" "', argument " "3"" of type '" "faiss::ClusteringParameters const &""'");
18660 Py_BEGIN_ALLOW_THREADS
18664 PyEval_RestoreThread(_save);
18665 PyErr_SetString(PyExc_RuntimeError, e.
what());
18668 Py_END_ALLOW_THREADS
18670 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Clustering, SWIG_POINTER_NEW | 0 );
18677 SWIGINTERN PyObject *_wrap_new_Clustering(PyObject *
self, PyObject *args) {
18679 PyObject *argv[4] = {
18684 if (!PyTuple_Check(args)) SWIG_fail;
18685 argc = args ? PyObject_Length(args) : 0;
18686 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
18687 argv[ii] = PyTuple_GET_ITEM(args,ii);
18692 int res = SWIG_AsVal_int(argv[0], NULL);
18693 _v = SWIG_CheckState(res);
18697 int res = SWIG_AsVal_int(argv[1], NULL);
18698 _v = SWIG_CheckState(res);
18701 return _wrap_new_Clustering__SWIG_0(
self, args);
18708 int res = SWIG_AsVal_int(argv[0], NULL);
18709 _v = SWIG_CheckState(res);
18713 int res = SWIG_AsVal_int(argv[1], NULL);
18714 _v = SWIG_CheckState(res);
18717 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_faiss__ClusteringParameters, 0);
18718 _v = SWIG_CheckState(res);
18720 return _wrap_new_Clustering__SWIG_1(
self, args);
18727 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_Clustering'.\n"
18728 " Possible C/C++ prototypes are:\n"
18729 " faiss::Clustering::Clustering(int,int)\n"
18730 " faiss::Clustering::Clustering(int,int,faiss::ClusteringParameters const &)\n");
18735 SWIGINTERN PyObject *_wrap_Clustering_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18736 PyObject *resultobj = 0;
18738 faiss::Clustering::idx_t arg2 ;
18739 float *arg3 = (
float *) 0 ;
18749 PyObject * obj0 = 0 ;
18750 PyObject * obj1 = 0 ;
18751 PyObject * obj2 = 0 ;
18752 PyObject * obj3 = 0 ;
18754 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Clustering_train",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
18756 if (!SWIG_IsOK(res1)) {
18757 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_train" "', argument " "1"" of type '" "faiss::Clustering *""'");
18760 ecode2 = SWIG_AsVal_long(obj1, &val2);
18761 if (!SWIG_IsOK(ecode2)) {
18762 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Clustering_train" "', argument " "2"" of type '" "faiss::Clustering::idx_t""'");
18764 arg2 =
static_cast< faiss::Clustering::idx_t
>(val2);
18765 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
18766 if (!SWIG_IsOK(res3)) {
18767 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Clustering_train" "', argument " "3"" of type '" "float const *""'");
18769 arg3 =
reinterpret_cast< float *
>(argp3);
18770 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_faiss__Index, 0 );
18771 if (!SWIG_IsOK(res4)) {
18772 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "Clustering_train" "', argument " "4"" of type '" "faiss::Index &""'");
18775 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Clustering_train" "', argument " "4"" of type '" "faiss::Index &""'");
18779 Py_BEGIN_ALLOW_THREADS
18781 (arg1)->train(arg2,(
float const *)arg3,*arg4);
18783 PyEval_RestoreThread(_save);
18784 PyErr_SetString(PyExc_RuntimeError, e.
what());
18787 Py_END_ALLOW_THREADS
18789 resultobj = SWIG_Py_Void();
18796 SWIGINTERN PyObject *_wrap_delete_Clustering(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18797 PyObject *resultobj = 0;
18801 PyObject * obj0 = 0 ;
18803 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Clustering",&obj0)) SWIG_fail;
18804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, SWIG_POINTER_DISOWN | 0 );
18805 if (!SWIG_IsOK(res1)) {
18806 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Clustering" "', argument " "1"" of type '" "faiss::Clustering *""'");
18810 Py_BEGIN_ALLOW_THREADS
18814 PyEval_RestoreThread(_save);
18815 PyErr_SetString(PyExc_RuntimeError, e.
what());
18818 Py_END_ALLOW_THREADS
18820 resultobj = SWIG_Py_Void();
18827 SWIGINTERN PyObject *Clustering_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18829 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
18830 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__Clustering, SWIG_NewClientData(obj));
18831 return SWIG_Py_Void();
18834 SWIGINTERN PyObject *_wrap_kmeans_clustering(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18835 PyObject *resultobj = 0;
18839 float *arg4 = (
float *) 0 ;
18840 float *arg5 = (
float *) 0 ;
18851 PyObject * obj0 = 0 ;
18852 PyObject * obj1 = 0 ;
18853 PyObject * obj2 = 0 ;
18854 PyObject * obj3 = 0 ;
18855 PyObject * obj4 = 0 ;
18858 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:kmeans_clustering",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18859 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
18860 if (!SWIG_IsOK(ecode1)) {
18861 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "kmeans_clustering" "', argument " "1"" of type '" "size_t""'");
18863 arg1 =
static_cast< size_t >(val1);
18864 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18865 if (!SWIG_IsOK(ecode2)) {
18866 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "kmeans_clustering" "', argument " "2"" of type '" "size_t""'");
18868 arg2 =
static_cast< size_t >(val2);
18869 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
18870 if (!SWIG_IsOK(ecode3)) {
18871 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "kmeans_clustering" "', argument " "3"" of type '" "size_t""'");
18873 arg3 =
static_cast< size_t >(val3);
18874 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
18875 if (!SWIG_IsOK(res4)) {
18876 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "kmeans_clustering" "', argument " "4"" of type '" "float const *""'");
18878 arg4 =
reinterpret_cast< float *
>(argp4);
18879 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
18880 if (!SWIG_IsOK(res5)) {
18881 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "kmeans_clustering" "', argument " "5"" of type '" "float *""'");
18883 arg5 =
reinterpret_cast< float *
>(argp5);
18885 Py_BEGIN_ALLOW_THREADS
18889 PyEval_RestoreThread(_save);
18890 PyErr_SetString(PyExc_RuntimeError, e.
what());
18893 Py_END_ALLOW_THREADS
18895 resultobj = SWIG_From_float(static_cast< float >(result));
18902 SWIGINTERN PyObject *_wrap_ProductQuantizer_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18903 PyObject *resultobj = 0;
18910 PyObject * obj0 = 0 ;
18911 PyObject * obj1 = 0 ;
18913 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_d_set",&obj0,&obj1)) SWIG_fail;
18914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
18915 if (!SWIG_IsOK(res1)) {
18916 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_d_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
18919 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18920 if (!SWIG_IsOK(ecode2)) {
18921 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_d_set" "', argument " "2"" of type '" "size_t""'");
18923 arg2 =
static_cast< size_t >(val2);
18924 if (arg1) (arg1)->d = arg2;
18925 resultobj = SWIG_Py_Void();
18932 SWIGINTERN PyObject *_wrap_ProductQuantizer_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18933 PyObject *resultobj = 0;
18937 PyObject * obj0 = 0 ;
18940 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_d_get",&obj0)) SWIG_fail;
18941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
18942 if (!SWIG_IsOK(res1)) {
18943 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_d_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
18946 result = (size_t) ((arg1)->d);
18947 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18954 SWIGINTERN PyObject *_wrap_ProductQuantizer_M_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18955 PyObject *resultobj = 0;
18962 PyObject * obj0 = 0 ;
18963 PyObject * obj1 = 0 ;
18965 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_M_set",&obj0,&obj1)) SWIG_fail;
18966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
18967 if (!SWIG_IsOK(res1)) {
18968 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_M_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
18971 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18972 if (!SWIG_IsOK(ecode2)) {
18973 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_M_set" "', argument " "2"" of type '" "size_t""'");
18975 arg2 =
static_cast< size_t >(val2);
18976 if (arg1) (arg1)->M = arg2;
18977 resultobj = SWIG_Py_Void();
18984 SWIGINTERN PyObject *_wrap_ProductQuantizer_M_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18985 PyObject *resultobj = 0;
18989 PyObject * obj0 = 0 ;
18992 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_M_get",&obj0)) SWIG_fail;
18993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
18994 if (!SWIG_IsOK(res1)) {
18995 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_M_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
18998 result = (size_t) ((arg1)->M);
18999 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19006 SWIGINTERN PyObject *_wrap_ProductQuantizer_nbits_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19007 PyObject *resultobj = 0;
19014 PyObject * obj0 = 0 ;
19015 PyObject * obj1 = 0 ;
19017 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_nbits_set",&obj0,&obj1)) SWIG_fail;
19018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19019 if (!SWIG_IsOK(res1)) {
19020 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_nbits_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19023 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19024 if (!SWIG_IsOK(ecode2)) {
19025 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_nbits_set" "', argument " "2"" of type '" "size_t""'");
19027 arg2 =
static_cast< size_t >(val2);
19028 if (arg1) (arg1)->nbits = arg2;
19029 resultobj = SWIG_Py_Void();
19036 SWIGINTERN PyObject *_wrap_ProductQuantizer_nbits_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19037 PyObject *resultobj = 0;
19041 PyObject * obj0 = 0 ;
19044 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_nbits_get",&obj0)) SWIG_fail;
19045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19046 if (!SWIG_IsOK(res1)) {
19047 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_nbits_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19050 result = (size_t) ((arg1)->nbits);
19051 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19058 SWIGINTERN PyObject *_wrap_ProductQuantizer_dsub_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19059 PyObject *resultobj = 0;
19066 PyObject * obj0 = 0 ;
19067 PyObject * obj1 = 0 ;
19069 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_dsub_set",&obj0,&obj1)) SWIG_fail;
19070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19071 if (!SWIG_IsOK(res1)) {
19072 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_dsub_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19075 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19076 if (!SWIG_IsOK(ecode2)) {
19077 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_dsub_set" "', argument " "2"" of type '" "size_t""'");
19079 arg2 =
static_cast< size_t >(val2);
19080 if (arg1) (arg1)->dsub = arg2;
19081 resultobj = SWIG_Py_Void();
19088 SWIGINTERN PyObject *_wrap_ProductQuantizer_dsub_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19089 PyObject *resultobj = 0;
19093 PyObject * obj0 = 0 ;
19096 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_dsub_get",&obj0)) SWIG_fail;
19097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19098 if (!SWIG_IsOK(res1)) {
19099 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_dsub_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19102 result = (size_t) ((arg1)->dsub);
19103 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19110 SWIGINTERN PyObject *_wrap_ProductQuantizer_byte_per_idx_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19111 PyObject *resultobj = 0;
19118 PyObject * obj0 = 0 ;
19119 PyObject * obj1 = 0 ;
19121 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_byte_per_idx_set",&obj0,&obj1)) SWIG_fail;
19122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19123 if (!SWIG_IsOK(res1)) {
19124 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_byte_per_idx_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19127 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19128 if (!SWIG_IsOK(ecode2)) {
19129 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_byte_per_idx_set" "', argument " "2"" of type '" "size_t""'");
19131 arg2 =
static_cast< size_t >(val2);
19132 if (arg1) (arg1)->byte_per_idx = arg2;
19133 resultobj = SWIG_Py_Void();
19140 SWIGINTERN PyObject *_wrap_ProductQuantizer_byte_per_idx_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19141 PyObject *resultobj = 0;
19145 PyObject * obj0 = 0 ;
19148 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_byte_per_idx_get",&obj0)) SWIG_fail;
19149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19150 if (!SWIG_IsOK(res1)) {
19151 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_byte_per_idx_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19154 result = (size_t) ((arg1)->byte_per_idx);
19155 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19162 SWIGINTERN PyObject *_wrap_ProductQuantizer_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19163 PyObject *resultobj = 0;
19170 PyObject * obj0 = 0 ;
19171 PyObject * obj1 = 0 ;
19173 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_code_size_set",&obj0,&obj1)) SWIG_fail;
19174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19175 if (!SWIG_IsOK(res1)) {
19176 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_code_size_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19179 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19180 if (!SWIG_IsOK(ecode2)) {
19181 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_code_size_set" "', argument " "2"" of type '" "size_t""'");
19183 arg2 =
static_cast< size_t >(val2);
19184 if (arg1) (arg1)->code_size = arg2;
19185 resultobj = SWIG_Py_Void();
19192 SWIGINTERN PyObject *_wrap_ProductQuantizer_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19193 PyObject *resultobj = 0;
19197 PyObject * obj0 = 0 ;
19200 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_code_size_get",&obj0)) SWIG_fail;
19201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19202 if (!SWIG_IsOK(res1)) {
19203 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_code_size_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19206 result = (size_t) ((arg1)->code_size);
19207 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19214 SWIGINTERN PyObject *_wrap_ProductQuantizer_ksub_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19215 PyObject *resultobj = 0;
19222 PyObject * obj0 = 0 ;
19223 PyObject * obj1 = 0 ;
19225 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_ksub_set",&obj0,&obj1)) SWIG_fail;
19226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19227 if (!SWIG_IsOK(res1)) {
19228 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_ksub_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19231 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19232 if (!SWIG_IsOK(ecode2)) {
19233 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_ksub_set" "', argument " "2"" of type '" "size_t""'");
19235 arg2 =
static_cast< size_t >(val2);
19236 if (arg1) (arg1)->ksub = arg2;
19237 resultobj = SWIG_Py_Void();
19244 SWIGINTERN PyObject *_wrap_ProductQuantizer_ksub_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19245 PyObject *resultobj = 0;
19249 PyObject * obj0 = 0 ;
19252 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_ksub_get",&obj0)) SWIG_fail;
19253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19254 if (!SWIG_IsOK(res1)) {
19255 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_ksub_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19258 result = (size_t) ((arg1)->ksub);
19259 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19266 SWIGINTERN PyObject *_wrap_ProductQuantizer_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19267 PyObject *resultobj = 0;
19274 PyObject * obj0 = 0 ;
19275 PyObject * obj1 = 0 ;
19277 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_verbose_set",&obj0,&obj1)) SWIG_fail;
19278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19279 if (!SWIG_IsOK(res1)) {
19280 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_verbose_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19283 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19284 if (!SWIG_IsOK(ecode2)) {
19285 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_verbose_set" "', argument " "2"" of type '" "bool""'");
19287 arg2 =
static_cast< bool >(val2);
19288 if (arg1) (arg1)->verbose = arg2;
19289 resultobj = SWIG_Py_Void();
19296 SWIGINTERN PyObject *_wrap_ProductQuantizer_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19297 PyObject *resultobj = 0;
19301 PyObject * obj0 = 0 ;
19304 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_verbose_get",&obj0)) SWIG_fail;
19305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19306 if (!SWIG_IsOK(res1)) {
19307 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_verbose_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19310 result = (bool) ((arg1)->verbose);
19311 resultobj = SWIG_From_bool(static_cast< bool >(result));
19318 SWIGINTERN PyObject *_wrap_ProductQuantizer_train_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19319 PyObject *resultobj = 0;
19326 PyObject * obj0 = 0 ;
19327 PyObject * obj1 = 0 ;
19329 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_train_type_set",&obj0,&obj1)) SWIG_fail;
19330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19331 if (!SWIG_IsOK(res1)) {
19332 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_train_type_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19335 ecode2 = SWIG_AsVal_int(obj1, &val2);
19336 if (!SWIG_IsOK(ecode2)) {
19337 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_train_type_set" "', argument " "2"" of type '" "faiss::ProductQuantizer::train_type_t""'");
19340 if (arg1) (arg1)->train_type = arg2;
19341 resultobj = SWIG_Py_Void();
19348 SWIGINTERN PyObject *_wrap_ProductQuantizer_train_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19349 PyObject *resultobj = 0;
19353 PyObject * obj0 = 0 ;
19356 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_train_type_get",&obj0)) SWIG_fail;
19357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19358 if (!SWIG_IsOK(res1)) {
19359 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_train_type_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19363 resultobj = SWIG_From_int(static_cast< int >(result));
19370 SWIGINTERN PyObject *_wrap_ProductQuantizer_cp_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19371 PyObject *resultobj = 0;
19378 PyObject * obj0 = 0 ;
19379 PyObject * obj1 = 0 ;
19381 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_cp_set",&obj0,&obj1)) SWIG_fail;
19382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19383 if (!SWIG_IsOK(res1)) {
19384 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_cp_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19387 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19388 if (!SWIG_IsOK(res2)) {
19389 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_cp_set" "', argument " "2"" of type '" "faiss::ClusteringParameters *""'");
19392 if (arg1) (arg1)->cp = *arg2;
19393 resultobj = SWIG_Py_Void();
19400 SWIGINTERN PyObject *_wrap_ProductQuantizer_cp_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19401 PyObject *resultobj = 0;
19405 PyObject * obj0 = 0 ;
19408 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_cp_get",&obj0)) SWIG_fail;
19409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19410 if (!SWIG_IsOK(res1)) {
19411 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_cp_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19415 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19422 SWIGINTERN PyObject *_wrap_ProductQuantizer_assign_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19423 PyObject *resultobj = 0;
19430 PyObject * obj0 = 0 ;
19431 PyObject * obj1 = 0 ;
19433 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_assign_index_set",&obj0,&obj1)) SWIG_fail;
19434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19435 if (!SWIG_IsOK(res1)) {
19436 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_assign_index_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19439 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
19440 if (!SWIG_IsOK(res2)) {
19441 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_assign_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
19444 if (arg1) (arg1)->assign_index = arg2;
19445 resultobj = SWIG_Py_Void();
19452 SWIGINTERN PyObject *_wrap_ProductQuantizer_assign_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19453 PyObject *resultobj = 0;
19457 PyObject * obj0 = 0 ;
19460 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_assign_index_get",&obj0)) SWIG_fail;
19461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19462 if (!SWIG_IsOK(res1)) {
19463 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_assign_index_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
19474 SWIGINTERN PyObject *_wrap_ProductQuantizer_centroids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19475 PyObject *resultobj = 0;
19477 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
19482 PyObject * obj0 = 0 ;
19483 PyObject * obj1 = 0 ;
19485 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_centroids_set",&obj0,&obj1)) SWIG_fail;
19486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19487 if (!SWIG_IsOK(res1)) {
19488 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_centroids_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19491 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
19492 if (!SWIG_IsOK(res2)) {
19493 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_centroids_set" "', argument " "2"" of type '" "std::vector< float > *""'");
19495 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
19496 if (arg1) (arg1)->centroids = *arg2;
19497 resultobj = SWIG_Py_Void();
19504 SWIGINTERN PyObject *_wrap_ProductQuantizer_centroids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19505 PyObject *resultobj = 0;
19509 PyObject * obj0 = 0 ;
19510 std::vector< float > *result = 0 ;
19512 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_centroids_get",&obj0)) SWIG_fail;
19513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19514 if (!SWIG_IsOK(res1)) {
19515 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_centroids_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19518 result = (std::vector< float > *)& ((arg1)->centroids);
19519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
19526 SWIGINTERN PyObject *_wrap_ProductQuantizer_get_centroids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19527 PyObject *resultobj = 0;
19537 PyObject * obj0 = 0 ;
19538 PyObject * obj1 = 0 ;
19539 PyObject * obj2 = 0 ;
19540 float *result = 0 ;
19542 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_get_centroids",&obj0,&obj1,&obj2)) SWIG_fail;
19543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19544 if (!SWIG_IsOK(res1)) {
19545 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_get_centroids" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19548 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19549 if (!SWIG_IsOK(ecode2)) {
19550 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_get_centroids" "', argument " "2"" of type '" "size_t""'");
19552 arg2 =
static_cast< size_t >(val2);
19553 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
19554 if (!SWIG_IsOK(ecode3)) {
19555 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_get_centroids" "', argument " "3"" of type '" "size_t""'");
19557 arg3 =
static_cast< size_t >(val3);
19559 Py_BEGIN_ALLOW_THREADS
19561 result = (
float *)(arg1)->get_centroids(arg2,arg3);
19563 PyEval_RestoreThread(_save);
19564 PyErr_SetString(PyExc_RuntimeError, e.
what());
19567 Py_END_ALLOW_THREADS
19569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
19576 SWIGINTERN PyObject *_wrap_ProductQuantizer_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19577 PyObject *resultobj = 0;
19580 float *arg3 = (
float *) 0 ;
19587 PyObject * obj0 = 0 ;
19588 PyObject * obj1 = 0 ;
19589 PyObject * obj2 = 0 ;
19591 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_train",&obj0,&obj1,&obj2)) SWIG_fail;
19592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19593 if (!SWIG_IsOK(res1)) {
19594 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_train" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19597 ecode2 = SWIG_AsVal_int(obj1, &val2);
19598 if (!SWIG_IsOK(ecode2)) {
19599 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_train" "', argument " "2"" of type '" "int""'");
19601 arg2 =
static_cast< int >(val2);
19602 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
19603 if (!SWIG_IsOK(res3)) {
19604 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_train" "', argument " "3"" of type '" "float const *""'");
19606 arg3 =
reinterpret_cast< float *
>(argp3);
19608 Py_BEGIN_ALLOW_THREADS
19610 (arg1)->train(arg2,(
float const *)arg3);
19612 PyEval_RestoreThread(_save);
19613 PyErr_SetString(PyExc_RuntimeError, e.
what());
19616 Py_END_ALLOW_THREADS
19618 resultobj = SWIG_Py_Void();
19625 SWIGINTERN PyObject *_wrap_new_ProductQuantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19626 PyObject *resultobj = 0;
19636 PyObject * obj0 = 0 ;
19637 PyObject * obj1 = 0 ;
19638 PyObject * obj2 = 0 ;
19641 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_ProductQuantizer",&obj0,&obj1,&obj2)) SWIG_fail;
19642 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
19643 if (!SWIG_IsOK(ecode1)) {
19644 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_ProductQuantizer" "', argument " "1"" of type '" "size_t""'");
19646 arg1 =
static_cast< size_t >(val1);
19647 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19648 if (!SWIG_IsOK(ecode2)) {
19649 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_ProductQuantizer" "', argument " "2"" of type '" "size_t""'");
19651 arg2 =
static_cast< size_t >(val2);
19652 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
19653 if (!SWIG_IsOK(ecode3)) {
19654 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_ProductQuantizer" "', argument " "3"" of type '" "size_t""'");
19656 arg3 =
static_cast< size_t >(val3);
19658 Py_BEGIN_ALLOW_THREADS
19662 PyEval_RestoreThread(_save);
19663 PyErr_SetString(PyExc_RuntimeError, e.
what());
19666 Py_END_ALLOW_THREADS
19668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, SWIG_POINTER_NEW | 0 );
19675 SWIGINTERN PyObject *_wrap_new_ProductQuantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19676 PyObject *resultobj = 0;
19679 if (!PyArg_ParseTuple(args,(
char *)
":new_ProductQuantizer")) SWIG_fail;
19681 Py_BEGIN_ALLOW_THREADS
19685 PyEval_RestoreThread(_save);
19686 PyErr_SetString(PyExc_RuntimeError, e.
what());
19689 Py_END_ALLOW_THREADS
19691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, SWIG_POINTER_NEW | 0 );
19698 SWIGINTERN PyObject *_wrap_new_ProductQuantizer(PyObject *
self, PyObject *args) {
19700 PyObject *argv[4] = {
19705 if (!PyTuple_Check(args)) SWIG_fail;
19706 argc = args ? PyObject_Length(args) : 0;
19707 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
19708 argv[ii] = PyTuple_GET_ITEM(args,ii);
19711 return _wrap_new_ProductQuantizer__SWIG_1(
self, args);
19716 int res = SWIG_AsVal_size_t(argv[0], NULL);
19717 _v = SWIG_CheckState(res);
19721 int res = SWIG_AsVal_size_t(argv[1], NULL);
19722 _v = SWIG_CheckState(res);
19726 int res = SWIG_AsVal_size_t(argv[2], NULL);
19727 _v = SWIG_CheckState(res);
19730 return _wrap_new_ProductQuantizer__SWIG_0(
self, args);
19737 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_ProductQuantizer'.\n"
19738 " Possible C/C++ prototypes are:\n"
19739 " faiss::ProductQuantizer::ProductQuantizer(size_t,size_t,size_t)\n"
19740 " faiss::ProductQuantizer::ProductQuantizer()\n");
19745 SWIGINTERN PyObject *_wrap_ProductQuantizer_set_derived_values(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19746 PyObject *resultobj = 0;
19750 PyObject * obj0 = 0 ;
19752 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_set_derived_values",&obj0)) SWIG_fail;
19753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19754 if (!SWIG_IsOK(res1)) {
19755 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_set_derived_values" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19759 Py_BEGIN_ALLOW_THREADS
19761 (arg1)->set_derived_values();
19763 PyEval_RestoreThread(_save);
19764 PyErr_SetString(PyExc_RuntimeError, e.
what());
19767 Py_END_ALLOW_THREADS
19769 resultobj = SWIG_Py_Void();
19776 SWIGINTERN PyObject *_wrap_ProductQuantizer_set_params(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19777 PyObject *resultobj = 0;
19779 float *arg2 = (
float *) 0 ;
19787 PyObject * obj0 = 0 ;
19788 PyObject * obj1 = 0 ;
19789 PyObject * obj2 = 0 ;
19791 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_set_params",&obj0,&obj1,&obj2)) SWIG_fail;
19792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19793 if (!SWIG_IsOK(res1)) {
19794 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_set_params" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
19797 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
19798 if (!SWIG_IsOK(res2)) {
19799 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_set_params" "', argument " "2"" of type '" "float const *""'");
19801 arg2 =
reinterpret_cast< float *
>(argp2);
19802 ecode3 = SWIG_AsVal_int(obj2, &val3);
19803 if (!SWIG_IsOK(ecode3)) {
19804 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_set_params" "', argument " "3"" of type '" "int""'");
19806 arg3 =
static_cast< int >(val3);
19808 Py_BEGIN_ALLOW_THREADS
19810 (arg1)->set_params((
float const *)arg2,arg3);
19812 PyEval_RestoreThread(_save);
19813 PyErr_SetString(PyExc_RuntimeError, e.
what());
19816 Py_END_ALLOW_THREADS
19818 resultobj = SWIG_Py_Void();
19825 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_code(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19826 PyObject *resultobj = 0;
19828 float *arg2 = (
float *) 0 ;
19829 uint8_t *arg3 = (uint8_t *) 0 ;
19836 PyObject * obj0 = 0 ;
19837 PyObject * obj1 = 0 ;
19838 PyObject * obj2 = 0 ;
19840 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_compute_code",&obj0,&obj1,&obj2)) SWIG_fail;
19841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19842 if (!SWIG_IsOK(res1)) {
19843 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_code" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
19846 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
19847 if (!SWIG_IsOK(res2)) {
19848 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_compute_code" "', argument " "2"" of type '" "float const *""'");
19850 arg2 =
reinterpret_cast< float *
>(argp2);
19851 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
19852 if (!SWIG_IsOK(res3)) {
19853 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_compute_code" "', argument " "3"" of type '" "uint8_t *""'");
19855 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
19857 Py_BEGIN_ALLOW_THREADS
19861 PyEval_RestoreThread(_save);
19862 PyErr_SetString(PyExc_RuntimeError, e.
what());
19865 Py_END_ALLOW_THREADS
19867 resultobj = SWIG_Py_Void();
19874 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19875 PyObject *resultobj = 0;
19877 float *arg2 = (
float *) 0 ;
19878 uint8_t *arg3 = (uint8_t *) 0 ;
19888 PyObject * obj0 = 0 ;
19889 PyObject * obj1 = 0 ;
19890 PyObject * obj2 = 0 ;
19891 PyObject * obj3 = 0 ;
19893 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ProductQuantizer_compute_codes",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19895 if (!SWIG_IsOK(res1)) {
19896 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_codes" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
19899 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
19900 if (!SWIG_IsOK(res2)) {
19901 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_compute_codes" "', argument " "2"" of type '" "float const *""'");
19903 arg2 =
reinterpret_cast< float *
>(argp2);
19904 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
19905 if (!SWIG_IsOK(res3)) {
19906 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_compute_codes" "', argument " "3"" of type '" "uint8_t *""'");
19908 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
19909 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
19910 if (!SWIG_IsOK(ecode4)) {
19911 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ProductQuantizer_compute_codes" "', argument " "4"" of type '" "size_t""'");
19913 arg4 =
static_cast< size_t >(val4);
19915 Py_BEGIN_ALLOW_THREADS
19919 PyEval_RestoreThread(_save);
19920 PyErr_SetString(PyExc_RuntimeError, e.
what());
19923 Py_END_ALLOW_THREADS
19925 resultobj = SWIG_Py_Void();
19932 SWIGINTERN PyObject *_wrap_ProductQuantizer_decode__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19933 PyObject *resultobj = 0;
19935 uint8_t *arg2 = (uint8_t *) 0 ;
19936 float *arg3 = (
float *) 0 ;
19943 PyObject * obj0 = 0 ;
19944 PyObject * obj1 = 0 ;
19945 PyObject * obj2 = 0 ;
19947 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_decode",&obj0,&obj1,&obj2)) SWIG_fail;
19948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
19949 if (!SWIG_IsOK(res1)) {
19950 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_decode" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
19953 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
19954 if (!SWIG_IsOK(res2)) {
19955 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_decode" "', argument " "2"" of type '" "uint8_t const *""'");
19957 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
19958 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
19959 if (!SWIG_IsOK(res3)) {
19960 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_decode" "', argument " "3"" of type '" "float *""'");
19962 arg3 =
reinterpret_cast< float *
>(argp3);
19964 Py_BEGIN_ALLOW_THREADS
19968 PyEval_RestoreThread(_save);
19969 PyErr_SetString(PyExc_RuntimeError, e.
what());
19972 Py_END_ALLOW_THREADS
19974 resultobj = SWIG_Py_Void();
19981 SWIGINTERN PyObject *_wrap_ProductQuantizer_decode__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19982 PyObject *resultobj = 0;
19984 uint8_t *arg2 = (uint8_t *) 0 ;
19985 float *arg3 = (
float *) 0 ;
19995 PyObject * obj0 = 0 ;
19996 PyObject * obj1 = 0 ;
19997 PyObject * obj2 = 0 ;
19998 PyObject * obj3 = 0 ;
20000 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ProductQuantizer_decode",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20002 if (!SWIG_IsOK(res1)) {
20003 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_decode" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
20006 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
20007 if (!SWIG_IsOK(res2)) {
20008 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_decode" "', argument " "2"" of type '" "uint8_t const *""'");
20010 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
20011 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
20012 if (!SWIG_IsOK(res3)) {
20013 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_decode" "', argument " "3"" of type '" "float *""'");
20015 arg3 =
reinterpret_cast< float *
>(argp3);
20016 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
20017 if (!SWIG_IsOK(ecode4)) {
20018 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ProductQuantizer_decode" "', argument " "4"" of type '" "size_t""'");
20020 arg4 =
static_cast< size_t >(val4);
20022 Py_BEGIN_ALLOW_THREADS
20026 PyEval_RestoreThread(_save);
20027 PyErr_SetString(PyExc_RuntimeError, e.
what());
20030 Py_END_ALLOW_THREADS
20032 resultobj = SWIG_Py_Void();
20039 SWIGINTERN PyObject *_wrap_ProductQuantizer_decode(PyObject *
self, PyObject *args) {
20041 PyObject *argv[5] = {
20046 if (!PyTuple_Check(args)) SWIG_fail;
20047 argc = args ? PyObject_Length(args) : 0;
20048 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
20049 argv[ii] = PyTuple_GET_ITEM(args,ii);
20054 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
20055 _v = SWIG_CheckState(res);
20058 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
20059 _v = SWIG_CheckState(res);
20062 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
20063 _v = SWIG_CheckState(res);
20065 return _wrap_ProductQuantizer_decode__SWIG_0(
self, args);
20073 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
20074 _v = SWIG_CheckState(res);
20077 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
20078 _v = SWIG_CheckState(res);
20081 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
20082 _v = SWIG_CheckState(res);
20085 int res = SWIG_AsVal_size_t(argv[3], NULL);
20086 _v = SWIG_CheckState(res);
20089 return _wrap_ProductQuantizer_decode__SWIG_1(
self, args);
20097 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'ProductQuantizer_decode'.\n"
20098 " Possible C/C++ prototypes are:\n"
20099 " faiss::ProductQuantizer::decode(uint8_t const *,float *) const\n"
20100 " faiss::ProductQuantizer::decode(uint8_t const *,float *,size_t) const\n");
20105 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_code_from_distance_table(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20106 PyObject *resultobj = 0;
20108 float *arg2 = (
float *) 0 ;
20109 uint8_t *arg3 = (uint8_t *) 0 ;
20116 PyObject * obj0 = 0 ;
20117 PyObject * obj1 = 0 ;
20118 PyObject * obj2 = 0 ;
20120 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_compute_code_from_distance_table",&obj0,&obj1,&obj2)) SWIG_fail;
20121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20122 if (!SWIG_IsOK(res1)) {
20123 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_code_from_distance_table" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
20126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
20127 if (!SWIG_IsOK(res2)) {
20128 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_compute_code_from_distance_table" "', argument " "2"" of type '" "float const *""'");
20130 arg2 =
reinterpret_cast< float *
>(argp2);
20131 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
20132 if (!SWIG_IsOK(res3)) {
20133 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_compute_code_from_distance_table" "', argument " "3"" of type '" "uint8_t *""'");
20135 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
20137 Py_BEGIN_ALLOW_THREADS
20141 PyEval_RestoreThread(_save);
20142 PyErr_SetString(PyExc_RuntimeError, e.
what());
20145 Py_END_ALLOW_THREADS
20147 resultobj = SWIG_Py_Void();
20154 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_distance_table(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20155 PyObject *resultobj = 0;
20157 float *arg2 = (
float *) 0 ;
20158 float *arg3 = (
float *) 0 ;
20165 PyObject * obj0 = 0 ;
20166 PyObject * obj1 = 0 ;
20167 PyObject * obj2 = 0 ;
20169 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_compute_distance_table",&obj0,&obj1,&obj2)) SWIG_fail;
20170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20171 if (!SWIG_IsOK(res1)) {
20172 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_distance_table" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
20175 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
20176 if (!SWIG_IsOK(res2)) {
20177 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_compute_distance_table" "', argument " "2"" of type '" "float const *""'");
20179 arg2 =
reinterpret_cast< float *
>(argp2);
20180 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
20181 if (!SWIG_IsOK(res3)) {
20182 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_compute_distance_table" "', argument " "3"" of type '" "float *""'");
20184 arg3 =
reinterpret_cast< float *
>(argp3);
20186 Py_BEGIN_ALLOW_THREADS
20190 PyEval_RestoreThread(_save);
20191 PyErr_SetString(PyExc_RuntimeError, e.
what());
20194 Py_END_ALLOW_THREADS
20196 resultobj = SWIG_Py_Void();
20203 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_inner_prod_table(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20204 PyObject *resultobj = 0;
20206 float *arg2 = (
float *) 0 ;
20207 float *arg3 = (
float *) 0 ;
20214 PyObject * obj0 = 0 ;
20215 PyObject * obj1 = 0 ;
20216 PyObject * obj2 = 0 ;
20218 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_compute_inner_prod_table",&obj0,&obj1,&obj2)) SWIG_fail;
20219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20220 if (!SWIG_IsOK(res1)) {
20221 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_inner_prod_table" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
20224 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
20225 if (!SWIG_IsOK(res2)) {
20226 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_compute_inner_prod_table" "', argument " "2"" of type '" "float const *""'");
20228 arg2 =
reinterpret_cast< float *
>(argp2);
20229 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
20230 if (!SWIG_IsOK(res3)) {
20231 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_compute_inner_prod_table" "', argument " "3"" of type '" "float *""'");
20233 arg3 =
reinterpret_cast< float *
>(argp3);
20235 Py_BEGIN_ALLOW_THREADS
20239 PyEval_RestoreThread(_save);
20240 PyErr_SetString(PyExc_RuntimeError, e.
what());
20243 Py_END_ALLOW_THREADS
20245 resultobj = SWIG_Py_Void();
20252 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_distance_tables(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20253 PyObject *resultobj = 0;
20256 float *arg3 = (
float *) 0 ;
20257 float *arg4 = (
float *) 0 ;
20266 PyObject * obj0 = 0 ;
20267 PyObject * obj1 = 0 ;
20268 PyObject * obj2 = 0 ;
20269 PyObject * obj3 = 0 ;
20271 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ProductQuantizer_compute_distance_tables",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20273 if (!SWIG_IsOK(res1)) {
20274 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_distance_tables" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
20277 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20278 if (!SWIG_IsOK(ecode2)) {
20279 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_compute_distance_tables" "', argument " "2"" of type '" "size_t""'");
20281 arg2 =
static_cast< size_t >(val2);
20282 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
20283 if (!SWIG_IsOK(res3)) {
20284 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_compute_distance_tables" "', argument " "3"" of type '" "float const *""'");
20286 arg3 =
reinterpret_cast< float *
>(argp3);
20287 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
20288 if (!SWIG_IsOK(res4)) {
20289 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_compute_distance_tables" "', argument " "4"" of type '" "float *""'");
20291 arg4 =
reinterpret_cast< float *
>(argp4);
20293 Py_BEGIN_ALLOW_THREADS
20297 PyEval_RestoreThread(_save);
20298 PyErr_SetString(PyExc_RuntimeError, e.
what());
20301 Py_END_ALLOW_THREADS
20303 resultobj = SWIG_Py_Void();
20310 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_inner_prod_tables(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20311 PyObject *resultobj = 0;
20314 float *arg3 = (
float *) 0 ;
20315 float *arg4 = (
float *) 0 ;
20324 PyObject * obj0 = 0 ;
20325 PyObject * obj1 = 0 ;
20326 PyObject * obj2 = 0 ;
20327 PyObject * obj3 = 0 ;
20329 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ProductQuantizer_compute_inner_prod_tables",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20331 if (!SWIG_IsOK(res1)) {
20332 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_inner_prod_tables" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
20335 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20336 if (!SWIG_IsOK(ecode2)) {
20337 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_compute_inner_prod_tables" "', argument " "2"" of type '" "size_t""'");
20339 arg2 =
static_cast< size_t >(val2);
20340 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
20341 if (!SWIG_IsOK(res3)) {
20342 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_compute_inner_prod_tables" "', argument " "3"" of type '" "float const *""'");
20344 arg3 =
reinterpret_cast< float *
>(argp3);
20345 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
20346 if (!SWIG_IsOK(res4)) {
20347 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_compute_inner_prod_tables" "', argument " "4"" of type '" "float *""'");
20349 arg4 =
reinterpret_cast< float *
>(argp4);
20351 Py_BEGIN_ALLOW_THREADS
20355 PyEval_RestoreThread(_save);
20356 PyErr_SetString(PyExc_RuntimeError, e.
what());
20359 Py_END_ALLOW_THREADS
20361 resultobj = SWIG_Py_Void();
20368 SWIGINTERN PyObject *_wrap_ProductQuantizer_search__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20369 PyObject *resultobj = 0;
20371 float *arg2 = (
float *) 0 ;
20373 uint8_t *arg4 = (uint8_t *) 0 ;
20391 PyObject * obj0 = 0 ;
20392 PyObject * obj1 = 0 ;
20393 PyObject * obj2 = 0 ;
20394 PyObject * obj3 = 0 ;
20395 PyObject * obj4 = 0 ;
20396 PyObject * obj5 = 0 ;
20397 PyObject * obj6 = 0 ;
20399 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:ProductQuantizer_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20401 if (!SWIG_IsOK(res1)) {
20402 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_search" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
20405 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
20406 if (!SWIG_IsOK(res2)) {
20407 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_search" "', argument " "2"" of type '" "float const *""'");
20409 arg2 =
reinterpret_cast< float *
>(argp2);
20410 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
20411 if (!SWIG_IsOK(ecode3)) {
20412 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_search" "', argument " "3"" of type '" "size_t""'");
20414 arg3 =
static_cast< size_t >(val3);
20415 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
20416 if (!SWIG_IsOK(res4)) {
20417 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_search" "', argument " "4"" of type '" "uint8_t const *""'");
20419 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
20420 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
20421 if (!SWIG_IsOK(ecode5)) {
20422 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "ProductQuantizer_search" "', argument " "5"" of type '" "size_t""'");
20424 arg5 =
static_cast< size_t >(val5);
20425 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
20426 if (!SWIG_IsOK(res6)) {
20427 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ProductQuantizer_search" "', argument " "6"" of type '" "faiss::float_maxheap_array_t *""'");
20430 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20431 if (!SWIG_IsOK(ecode7)) {
20432 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "ProductQuantizer_search" "', argument " "7"" of type '" "bool""'");
20434 arg7 =
static_cast< bool >(val7);
20436 Py_BEGIN_ALLOW_THREADS
20438 ((
faiss::ProductQuantizer const *)arg1)->search((
float const *)arg2,arg3,(uint8_t
const *)arg4,arg5,arg6,arg7);
20440 PyEval_RestoreThread(_save);
20441 PyErr_SetString(PyExc_RuntimeError, e.
what());
20444 Py_END_ALLOW_THREADS
20446 resultobj = SWIG_Py_Void();
20453 SWIGINTERN PyObject *_wrap_ProductQuantizer_search__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20454 PyObject *resultobj = 0;
20456 float *arg2 = (
float *) 0 ;
20458 uint8_t *arg4 = (uint8_t *) 0 ;
20473 PyObject * obj0 = 0 ;
20474 PyObject * obj1 = 0 ;
20475 PyObject * obj2 = 0 ;
20476 PyObject * obj3 = 0 ;
20477 PyObject * obj4 = 0 ;
20478 PyObject * obj5 = 0 ;
20480 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:ProductQuantizer_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20482 if (!SWIG_IsOK(res1)) {
20483 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_search" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
20486 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
20487 if (!SWIG_IsOK(res2)) {
20488 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_search" "', argument " "2"" of type '" "float const *""'");
20490 arg2 =
reinterpret_cast< float *
>(argp2);
20491 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
20492 if (!SWIG_IsOK(ecode3)) {
20493 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_search" "', argument " "3"" of type '" "size_t""'");
20495 arg3 =
static_cast< size_t >(val3);
20496 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
20497 if (!SWIG_IsOK(res4)) {
20498 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_search" "', argument " "4"" of type '" "uint8_t const *""'");
20500 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
20501 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
20502 if (!SWIG_IsOK(ecode5)) {
20503 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "ProductQuantizer_search" "', argument " "5"" of type '" "size_t""'");
20505 arg5 =
static_cast< size_t >(val5);
20506 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
20507 if (!SWIG_IsOK(res6)) {
20508 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ProductQuantizer_search" "', argument " "6"" of type '" "faiss::float_maxheap_array_t *""'");
20512 Py_BEGIN_ALLOW_THREADS
20516 PyEval_RestoreThread(_save);
20517 PyErr_SetString(PyExc_RuntimeError, e.
what());
20520 Py_END_ALLOW_THREADS
20522 resultobj = SWIG_Py_Void();
20529 SWIGINTERN PyObject *_wrap_ProductQuantizer_search(PyObject *
self, PyObject *args) {
20531 PyObject *argv[8] = {
20536 if (!PyTuple_Check(args)) SWIG_fail;
20537 argc = args ? PyObject_Length(args) : 0;
20538 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
20539 argv[ii] = PyTuple_GET_ITEM(args,ii);
20544 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
20545 _v = SWIG_CheckState(res);
20548 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0);
20549 _v = SWIG_CheckState(res);
20552 int res = SWIG_AsVal_size_t(argv[2], NULL);
20553 _v = SWIG_CheckState(res);
20557 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
20558 _v = SWIG_CheckState(res);
20561 int res = SWIG_AsVal_size_t(argv[4], NULL);
20562 _v = SWIG_CheckState(res);
20566 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
20567 _v = SWIG_CheckState(res);
20569 return _wrap_ProductQuantizer_search__SWIG_1(
self, args);
20580 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
20581 _v = SWIG_CheckState(res);
20584 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0);
20585 _v = SWIG_CheckState(res);
20588 int res = SWIG_AsVal_size_t(argv[2], NULL);
20589 _v = SWIG_CheckState(res);
20593 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
20594 _v = SWIG_CheckState(res);
20597 int res = SWIG_AsVal_size_t(argv[4], NULL);
20598 _v = SWIG_CheckState(res);
20602 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
20603 _v = SWIG_CheckState(res);
20606 int res = SWIG_AsVal_bool(argv[6], NULL);
20607 _v = SWIG_CheckState(res);
20610 return _wrap_ProductQuantizer_search__SWIG_0(
self, args);
20621 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'ProductQuantizer_search'.\n"
20622 " Possible C/C++ prototypes are:\n"
20623 " faiss::ProductQuantizer::search(float const *,size_t,uint8_t const *,size_t const,faiss::float_maxheap_array_t *,bool) const\n"
20624 " faiss::ProductQuantizer::search(float const *,size_t,uint8_t const *,size_t const,faiss::float_maxheap_array_t *) const\n");
20629 SWIGINTERN PyObject *_wrap_ProductQuantizer_search_ip__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20630 PyObject *resultobj = 0;
20632 float *arg2 = (
float *) 0 ;
20634 uint8_t *arg4 = (uint8_t *) 0 ;
20652 PyObject * obj0 = 0 ;
20653 PyObject * obj1 = 0 ;
20654 PyObject * obj2 = 0 ;
20655 PyObject * obj3 = 0 ;
20656 PyObject * obj4 = 0 ;
20657 PyObject * obj5 = 0 ;
20658 PyObject * obj6 = 0 ;
20660 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:ProductQuantizer_search_ip",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20662 if (!SWIG_IsOK(res1)) {
20663 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_search_ip" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
20666 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
20667 if (!SWIG_IsOK(res2)) {
20668 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_search_ip" "', argument " "2"" of type '" "float const *""'");
20670 arg2 =
reinterpret_cast< float *
>(argp2);
20671 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
20672 if (!SWIG_IsOK(ecode3)) {
20673 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_search_ip" "', argument " "3"" of type '" "size_t""'");
20675 arg3 =
static_cast< size_t >(val3);
20676 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
20677 if (!SWIG_IsOK(res4)) {
20678 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_search_ip" "', argument " "4"" of type '" "uint8_t const *""'");
20680 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
20681 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
20682 if (!SWIG_IsOK(ecode5)) {
20683 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "ProductQuantizer_search_ip" "', argument " "5"" of type '" "size_t""'");
20685 arg5 =
static_cast< size_t >(val5);
20686 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
20687 if (!SWIG_IsOK(res6)) {
20688 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ProductQuantizer_search_ip" "', argument " "6"" of type '" "faiss::float_minheap_array_t *""'");
20691 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20692 if (!SWIG_IsOK(ecode7)) {
20693 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "ProductQuantizer_search_ip" "', argument " "7"" of type '" "bool""'");
20695 arg7 =
static_cast< bool >(val7);
20697 Py_BEGIN_ALLOW_THREADS
20699 ((
faiss::ProductQuantizer const *)arg1)->search_ip((
float const *)arg2,arg3,(uint8_t
const *)arg4,arg5,arg6,arg7);
20701 PyEval_RestoreThread(_save);
20702 PyErr_SetString(PyExc_RuntimeError, e.
what());
20705 Py_END_ALLOW_THREADS
20707 resultobj = SWIG_Py_Void();
20714 SWIGINTERN PyObject *_wrap_ProductQuantizer_search_ip__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20715 PyObject *resultobj = 0;
20717 float *arg2 = (
float *) 0 ;
20719 uint8_t *arg4 = (uint8_t *) 0 ;
20734 PyObject * obj0 = 0 ;
20735 PyObject * obj1 = 0 ;
20736 PyObject * obj2 = 0 ;
20737 PyObject * obj3 = 0 ;
20738 PyObject * obj4 = 0 ;
20739 PyObject * obj5 = 0 ;
20741 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:ProductQuantizer_search_ip",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20743 if (!SWIG_IsOK(res1)) {
20744 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_search_ip" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
20747 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
20748 if (!SWIG_IsOK(res2)) {
20749 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_search_ip" "', argument " "2"" of type '" "float const *""'");
20751 arg2 =
reinterpret_cast< float *
>(argp2);
20752 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
20753 if (!SWIG_IsOK(ecode3)) {
20754 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_search_ip" "', argument " "3"" of type '" "size_t""'");
20756 arg3 =
static_cast< size_t >(val3);
20757 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
20758 if (!SWIG_IsOK(res4)) {
20759 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_search_ip" "', argument " "4"" of type '" "uint8_t const *""'");
20761 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
20762 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
20763 if (!SWIG_IsOK(ecode5)) {
20764 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "ProductQuantizer_search_ip" "', argument " "5"" of type '" "size_t""'");
20766 arg5 =
static_cast< size_t >(val5);
20767 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
20768 if (!SWIG_IsOK(res6)) {
20769 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ProductQuantizer_search_ip" "', argument " "6"" of type '" "faiss::float_minheap_array_t *""'");
20773 Py_BEGIN_ALLOW_THREADS
20775 ((
faiss::ProductQuantizer const *)arg1)->search_ip((
float const *)arg2,arg3,(uint8_t
const *)arg4,arg5,arg6);
20777 PyEval_RestoreThread(_save);
20778 PyErr_SetString(PyExc_RuntimeError, e.
what());
20781 Py_END_ALLOW_THREADS
20783 resultobj = SWIG_Py_Void();
20790 SWIGINTERN PyObject *_wrap_ProductQuantizer_search_ip(PyObject *
self, PyObject *args) {
20792 PyObject *argv[8] = {
20797 if (!PyTuple_Check(args)) SWIG_fail;
20798 argc = args ? PyObject_Length(args) : 0;
20799 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
20800 argv[ii] = PyTuple_GET_ITEM(args,ii);
20805 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
20806 _v = SWIG_CheckState(res);
20809 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0);
20810 _v = SWIG_CheckState(res);
20813 int res = SWIG_AsVal_size_t(argv[2], NULL);
20814 _v = SWIG_CheckState(res);
20818 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
20819 _v = SWIG_CheckState(res);
20822 int res = SWIG_AsVal_size_t(argv[4], NULL);
20823 _v = SWIG_CheckState(res);
20827 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
20828 _v = SWIG_CheckState(res);
20830 return _wrap_ProductQuantizer_search_ip__SWIG_1(
self, args);
20841 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
20842 _v = SWIG_CheckState(res);
20845 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0);
20846 _v = SWIG_CheckState(res);
20849 int res = SWIG_AsVal_size_t(argv[2], NULL);
20850 _v = SWIG_CheckState(res);
20854 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
20855 _v = SWIG_CheckState(res);
20858 int res = SWIG_AsVal_size_t(argv[4], NULL);
20859 _v = SWIG_CheckState(res);
20863 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
20864 _v = SWIG_CheckState(res);
20867 int res = SWIG_AsVal_bool(argv[6], NULL);
20868 _v = SWIG_CheckState(res);
20871 return _wrap_ProductQuantizer_search_ip__SWIG_0(
self, args);
20882 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'ProductQuantizer_search_ip'.\n"
20883 " Possible C/C++ prototypes are:\n"
20884 " faiss::ProductQuantizer::search_ip(float const *,size_t,uint8_t const *,size_t const,faiss::float_minheap_array_t *,bool) const\n"
20885 " faiss::ProductQuantizer::search_ip(float const *,size_t,uint8_t const *,size_t const,faiss::float_minheap_array_t *) const\n");
20890 SWIGINTERN PyObject *_wrap_ProductQuantizer_sdc_table_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20891 PyObject *resultobj = 0;
20893 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
20898 PyObject * obj0 = 0 ;
20899 PyObject * obj1 = 0 ;
20901 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_sdc_table_set",&obj0,&obj1)) SWIG_fail;
20902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20903 if (!SWIG_IsOK(res1)) {
20904 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_sdc_table_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20907 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
20908 if (!SWIG_IsOK(res2)) {
20909 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_sdc_table_set" "', argument " "2"" of type '" "std::vector< float > *""'");
20911 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
20912 if (arg1) (arg1)->sdc_table = *arg2;
20913 resultobj = SWIG_Py_Void();
20920 SWIGINTERN PyObject *_wrap_ProductQuantizer_sdc_table_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20921 PyObject *resultobj = 0;
20925 PyObject * obj0 = 0 ;
20926 std::vector< float > *result = 0 ;
20928 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_sdc_table_get",&obj0)) SWIG_fail;
20929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20930 if (!SWIG_IsOK(res1)) {
20931 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_sdc_table_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20934 result = (std::vector< float > *)& ((arg1)->sdc_table);
20935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
20942 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_sdc_table(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20943 PyObject *resultobj = 0;
20947 PyObject * obj0 = 0 ;
20949 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_compute_sdc_table",&obj0)) SWIG_fail;
20950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20951 if (!SWIG_IsOK(res1)) {
20952 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_sdc_table" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20956 Py_BEGIN_ALLOW_THREADS
20958 (arg1)->compute_sdc_table();
20960 PyEval_RestoreThread(_save);
20961 PyErr_SetString(PyExc_RuntimeError, e.
what());
20964 Py_END_ALLOW_THREADS
20966 resultobj = SWIG_Py_Void();
20973 SWIGINTERN PyObject *_wrap_ProductQuantizer_search_sdc__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20974 PyObject *resultobj = 0;
20976 uint8_t *arg2 = (uint8_t *) 0 ;
20978 uint8_t *arg4 = (uint8_t *) 0 ;
20996 PyObject * obj0 = 0 ;
20997 PyObject * obj1 = 0 ;
20998 PyObject * obj2 = 0 ;
20999 PyObject * obj3 = 0 ;
21000 PyObject * obj4 = 0 ;
21001 PyObject * obj5 = 0 ;
21002 PyObject * obj6 = 0 ;
21004 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:ProductQuantizer_search_sdc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21006 if (!SWIG_IsOK(res1)) {
21007 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_search_sdc" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
21010 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
21011 if (!SWIG_IsOK(res2)) {
21012 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_search_sdc" "', argument " "2"" of type '" "uint8_t const *""'");
21014 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
21015 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
21016 if (!SWIG_IsOK(ecode3)) {
21017 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_search_sdc" "', argument " "3"" of type '" "size_t""'");
21019 arg3 =
static_cast< size_t >(val3);
21020 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
21021 if (!SWIG_IsOK(res4)) {
21022 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_search_sdc" "', argument " "4"" of type '" "uint8_t const *""'");
21024 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
21025 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
21026 if (!SWIG_IsOK(ecode5)) {
21027 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "ProductQuantizer_search_sdc" "', argument " "5"" of type '" "size_t""'");
21029 arg5 =
static_cast< size_t >(val5);
21030 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
21031 if (!SWIG_IsOK(res6)) {
21032 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ProductQuantizer_search_sdc" "', argument " "6"" of type '" "faiss::float_maxheap_array_t *""'");
21035 ecode7 = SWIG_AsVal_bool(obj6, &val7);
21036 if (!SWIG_IsOK(ecode7)) {
21037 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "ProductQuantizer_search_sdc" "', argument " "7"" of type '" "bool""'");
21039 arg7 =
static_cast< bool >(val7);
21041 Py_BEGIN_ALLOW_THREADS
21043 ((
faiss::ProductQuantizer const *)arg1)->search_sdc((uint8_t
const *)arg2,arg3,(uint8_t
const *)arg4,arg5,arg6,arg7);
21045 PyEval_RestoreThread(_save);
21046 PyErr_SetString(PyExc_RuntimeError, e.
what());
21049 Py_END_ALLOW_THREADS
21051 resultobj = SWIG_Py_Void();
21058 SWIGINTERN PyObject *_wrap_ProductQuantizer_search_sdc__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21059 PyObject *resultobj = 0;
21061 uint8_t *arg2 = (uint8_t *) 0 ;
21063 uint8_t *arg4 = (uint8_t *) 0 ;
21078 PyObject * obj0 = 0 ;
21079 PyObject * obj1 = 0 ;
21080 PyObject * obj2 = 0 ;
21081 PyObject * obj3 = 0 ;
21082 PyObject * obj4 = 0 ;
21083 PyObject * obj5 = 0 ;
21085 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:ProductQuantizer_search_sdc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21087 if (!SWIG_IsOK(res1)) {
21088 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_search_sdc" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
21091 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
21092 if (!SWIG_IsOK(res2)) {
21093 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_search_sdc" "', argument " "2"" of type '" "uint8_t const *""'");
21095 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
21096 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
21097 if (!SWIG_IsOK(ecode3)) {
21098 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_search_sdc" "', argument " "3"" of type '" "size_t""'");
21100 arg3 =
static_cast< size_t >(val3);
21101 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
21102 if (!SWIG_IsOK(res4)) {
21103 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_search_sdc" "', argument " "4"" of type '" "uint8_t const *""'");
21105 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
21106 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
21107 if (!SWIG_IsOK(ecode5)) {
21108 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "ProductQuantizer_search_sdc" "', argument " "5"" of type '" "size_t""'");
21110 arg5 =
static_cast< size_t >(val5);
21111 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
21112 if (!SWIG_IsOK(res6)) {
21113 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ProductQuantizer_search_sdc" "', argument " "6"" of type '" "faiss::float_maxheap_array_t *""'");
21117 Py_BEGIN_ALLOW_THREADS
21119 ((
faiss::ProductQuantizer const *)arg1)->search_sdc((uint8_t
const *)arg2,arg3,(uint8_t
const *)arg4,arg5,arg6);
21121 PyEval_RestoreThread(_save);
21122 PyErr_SetString(PyExc_RuntimeError, e.
what());
21125 Py_END_ALLOW_THREADS
21127 resultobj = SWIG_Py_Void();
21134 SWIGINTERN PyObject *_wrap_ProductQuantizer_search_sdc(PyObject *
self, PyObject *args) {
21136 PyObject *argv[8] = {
21141 if (!PyTuple_Check(args)) SWIG_fail;
21142 argc = args ? PyObject_Length(args) : 0;
21143 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
21144 argv[ii] = PyTuple_GET_ITEM(args,ii);
21149 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
21150 _v = SWIG_CheckState(res);
21153 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
21154 _v = SWIG_CheckState(res);
21157 int res = SWIG_AsVal_size_t(argv[2], NULL);
21158 _v = SWIG_CheckState(res);
21162 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
21163 _v = SWIG_CheckState(res);
21166 int res = SWIG_AsVal_size_t(argv[4], NULL);
21167 _v = SWIG_CheckState(res);
21171 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
21172 _v = SWIG_CheckState(res);
21174 return _wrap_ProductQuantizer_search_sdc__SWIG_1(
self, args);
21185 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
21186 _v = SWIG_CheckState(res);
21189 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
21190 _v = SWIG_CheckState(res);
21193 int res = SWIG_AsVal_size_t(argv[2], NULL);
21194 _v = SWIG_CheckState(res);
21198 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
21199 _v = SWIG_CheckState(res);
21202 int res = SWIG_AsVal_size_t(argv[4], NULL);
21203 _v = SWIG_CheckState(res);
21207 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
21208 _v = SWIG_CheckState(res);
21211 int res = SWIG_AsVal_bool(argv[6], NULL);
21212 _v = SWIG_CheckState(res);
21215 return _wrap_ProductQuantizer_search_sdc__SWIG_0(
self, args);
21226 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'ProductQuantizer_search_sdc'.\n"
21227 " Possible C/C++ prototypes are:\n"
21228 " faiss::ProductQuantizer::search_sdc(uint8_t const *,size_t,uint8_t const *,size_t const,faiss::float_maxheap_array_t *,bool) const\n"
21229 " faiss::ProductQuantizer::search_sdc(uint8_t const *,size_t,uint8_t const *,size_t const,faiss::float_maxheap_array_t *) const\n");
21234 SWIGINTERN PyObject *_wrap_delete_ProductQuantizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21235 PyObject *resultobj = 0;
21239 PyObject * obj0 = 0 ;
21241 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ProductQuantizer",&obj0)) SWIG_fail;
21242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, SWIG_POINTER_DISOWN | 0 );
21243 if (!SWIG_IsOK(res1)) {
21244 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ProductQuantizer" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
21248 resultobj = SWIG_Py_Void();
21255 SWIGINTERN PyObject *ProductQuantizer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21257 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
21258 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ProductQuantizer, SWIG_NewClientData(obj));
21259 return SWIG_Py_Void();
21262 SWIGINTERN PyObject *_wrap_VectorTransform_d_in_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21263 PyObject *resultobj = 0;
21270 PyObject * obj0 = 0 ;
21271 PyObject * obj1 = 0 ;
21273 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorTransform_d_in_set",&obj0,&obj1)) SWIG_fail;
21274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
21275 if (!SWIG_IsOK(res1)) {
21276 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_d_in_set" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
21279 ecode2 = SWIG_AsVal_int(obj1, &val2);
21280 if (!SWIG_IsOK(ecode2)) {
21281 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransform_d_in_set" "', argument " "2"" of type '" "int""'");
21283 arg2 =
static_cast< int >(val2);
21284 if (arg1) (arg1)->d_in = arg2;
21285 resultobj = SWIG_Py_Void();
21292 SWIGINTERN PyObject *_wrap_VectorTransform_d_in_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21293 PyObject *resultobj = 0;
21297 PyObject * obj0 = 0 ;
21300 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorTransform_d_in_get",&obj0)) SWIG_fail;
21301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
21302 if (!SWIG_IsOK(res1)) {
21303 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_d_in_get" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
21306 result = (int) ((arg1)->d_in);
21307 resultobj = SWIG_From_int(static_cast< int >(result));
21314 SWIGINTERN PyObject *_wrap_VectorTransform_d_out_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21315 PyObject *resultobj = 0;
21322 PyObject * obj0 = 0 ;
21323 PyObject * obj1 = 0 ;
21325 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorTransform_d_out_set",&obj0,&obj1)) SWIG_fail;
21326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
21327 if (!SWIG_IsOK(res1)) {
21328 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_d_out_set" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
21331 ecode2 = SWIG_AsVal_int(obj1, &val2);
21332 if (!SWIG_IsOK(ecode2)) {
21333 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransform_d_out_set" "', argument " "2"" of type '" "int""'");
21335 arg2 =
static_cast< int >(val2);
21336 if (arg1) (arg1)->d_out = arg2;
21337 resultobj = SWIG_Py_Void();
21344 SWIGINTERN PyObject *_wrap_VectorTransform_d_out_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21345 PyObject *resultobj = 0;
21349 PyObject * obj0 = 0 ;
21352 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorTransform_d_out_get",&obj0)) SWIG_fail;
21353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
21354 if (!SWIG_IsOK(res1)) {
21355 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_d_out_get" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
21358 result = (int) ((arg1)->d_out);
21359 resultobj = SWIG_From_int(static_cast< int >(result));
21366 SWIGINTERN PyObject *_wrap_VectorTransform_is_trained_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21367 PyObject *resultobj = 0;
21374 PyObject * obj0 = 0 ;
21375 PyObject * obj1 = 0 ;
21377 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorTransform_is_trained_set",&obj0,&obj1)) SWIG_fail;
21378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
21379 if (!SWIG_IsOK(res1)) {
21380 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_is_trained_set" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
21383 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21384 if (!SWIG_IsOK(ecode2)) {
21385 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransform_is_trained_set" "', argument " "2"" of type '" "bool""'");
21387 arg2 =
static_cast< bool >(val2);
21388 if (arg1) (arg1)->is_trained = arg2;
21389 resultobj = SWIG_Py_Void();
21396 SWIGINTERN PyObject *_wrap_VectorTransform_is_trained_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21397 PyObject *resultobj = 0;
21401 PyObject * obj0 = 0 ;
21404 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorTransform_is_trained_get",&obj0)) SWIG_fail;
21405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
21406 if (!SWIG_IsOK(res1)) {
21407 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_is_trained_get" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
21410 result = (bool) ((arg1)->is_trained);
21411 resultobj = SWIG_From_bool(static_cast< bool >(result));
21418 SWIGINTERN PyObject *_wrap_VectorTransform_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21419 PyObject *resultobj = 0;
21421 faiss::VectorTransform::idx_t arg2 ;
21422 float *arg3 = (
float *) 0 ;
21429 PyObject * obj0 = 0 ;
21430 PyObject * obj1 = 0 ;
21431 PyObject * obj2 = 0 ;
21433 if (!PyArg_ParseTuple(args,(
char *)
"OOO:VectorTransform_train",&obj0,&obj1,&obj2)) SWIG_fail;
21434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
21435 if (!SWIG_IsOK(res1)) {
21436 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_train" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
21439 ecode2 = SWIG_AsVal_long(obj1, &val2);
21440 if (!SWIG_IsOK(ecode2)) {
21441 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransform_train" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
21443 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
21444 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
21445 if (!SWIG_IsOK(res3)) {
21446 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "VectorTransform_train" "', argument " "3"" of type '" "float const *""'");
21448 arg3 =
reinterpret_cast< float *
>(argp3);
21450 Py_BEGIN_ALLOW_THREADS
21452 (arg1)->train(arg2,(
float const *)arg3);
21454 PyEval_RestoreThread(_save);
21455 PyErr_SetString(PyExc_RuntimeError, e.
what());
21458 Py_END_ALLOW_THREADS
21460 resultobj = SWIG_Py_Void();
21467 SWIGINTERN PyObject *_wrap_VectorTransform_apply(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21468 PyObject *resultobj = 0;
21470 faiss::VectorTransform::idx_t arg2 ;
21471 float *arg3 = (
float *) 0 ;
21478 PyObject * obj0 = 0 ;
21479 PyObject * obj1 = 0 ;
21480 PyObject * obj2 = 0 ;
21481 float *result = 0 ;
21483 if (!PyArg_ParseTuple(args,(
char *)
"OOO:VectorTransform_apply",&obj0,&obj1,&obj2)) SWIG_fail;
21484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
21485 if (!SWIG_IsOK(res1)) {
21486 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_apply" "', argument " "1"" of type '" "faiss::VectorTransform const *""'");
21489 ecode2 = SWIG_AsVal_long(obj1, &val2);
21490 if (!SWIG_IsOK(ecode2)) {
21491 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransform_apply" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
21493 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
21494 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
21495 if (!SWIG_IsOK(res3)) {
21496 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "VectorTransform_apply" "', argument " "3"" of type '" "float const *""'");
21498 arg3 =
reinterpret_cast< float *
>(argp3);
21500 Py_BEGIN_ALLOW_THREADS
21504 PyEval_RestoreThread(_save);
21505 PyErr_SetString(PyExc_RuntimeError, e.
what());
21508 Py_END_ALLOW_THREADS
21510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
21517 SWIGINTERN PyObject *_wrap_VectorTransform_apply_noalloc(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21518 PyObject *resultobj = 0;
21520 faiss::VectorTransform::idx_t arg2 ;
21521 float *arg3 = (
float *) 0 ;
21522 float *arg4 = (
float *) 0 ;
21531 PyObject * obj0 = 0 ;
21532 PyObject * obj1 = 0 ;
21533 PyObject * obj2 = 0 ;
21534 PyObject * obj3 = 0 ;
21536 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:VectorTransform_apply_noalloc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
21538 if (!SWIG_IsOK(res1)) {
21539 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_apply_noalloc" "', argument " "1"" of type '" "faiss::VectorTransform const *""'");
21542 ecode2 = SWIG_AsVal_long(obj1, &val2);
21543 if (!SWIG_IsOK(ecode2)) {
21544 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransform_apply_noalloc" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
21546 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
21547 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
21548 if (!SWIG_IsOK(res3)) {
21549 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "VectorTransform_apply_noalloc" "', argument " "3"" of type '" "float const *""'");
21551 arg3 =
reinterpret_cast< float *
>(argp3);
21552 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
21553 if (!SWIG_IsOK(res4)) {
21554 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "VectorTransform_apply_noalloc" "', argument " "4"" of type '" "float *""'");
21556 arg4 =
reinterpret_cast< float *
>(argp4);
21558 Py_BEGIN_ALLOW_THREADS
21562 PyEval_RestoreThread(_save);
21563 PyErr_SetString(PyExc_RuntimeError, e.
what());
21566 Py_END_ALLOW_THREADS
21568 resultobj = SWIG_Py_Void();
21575 SWIGINTERN PyObject *_wrap_VectorTransform_reverse_transform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21576 PyObject *resultobj = 0;
21578 faiss::VectorTransform::idx_t arg2 ;
21579 float *arg3 = (
float *) 0 ;
21580 float *arg4 = (
float *) 0 ;
21589 PyObject * obj0 = 0 ;
21590 PyObject * obj1 = 0 ;
21591 PyObject * obj2 = 0 ;
21592 PyObject * obj3 = 0 ;
21594 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:VectorTransform_reverse_transform",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
21596 if (!SWIG_IsOK(res1)) {
21597 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_reverse_transform" "', argument " "1"" of type '" "faiss::VectorTransform const *""'");
21600 ecode2 = SWIG_AsVal_long(obj1, &val2);
21601 if (!SWIG_IsOK(ecode2)) {
21602 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransform_reverse_transform" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
21604 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
21605 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
21606 if (!SWIG_IsOK(res3)) {
21607 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "VectorTransform_reverse_transform" "', argument " "3"" of type '" "float const *""'");
21609 arg3 =
reinterpret_cast< float *
>(argp3);
21610 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
21611 if (!SWIG_IsOK(res4)) {
21612 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "VectorTransform_reverse_transform" "', argument " "4"" of type '" "float *""'");
21614 arg4 =
reinterpret_cast< float *
>(argp4);
21616 Py_BEGIN_ALLOW_THREADS
21620 PyEval_RestoreThread(_save);
21621 PyErr_SetString(PyExc_RuntimeError, e.
what());
21624 Py_END_ALLOW_THREADS
21626 resultobj = SWIG_Py_Void();
21633 SWIGINTERN PyObject *_wrap_delete_VectorTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21634 PyObject *resultobj = 0;
21638 PyObject * obj0 = 0 ;
21640 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_VectorTransform",&obj0)) SWIG_fail;
21641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, SWIG_POINTER_DISOWN | 0 );
21642 if (!SWIG_IsOK(res1)) {
21643 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_VectorTransform" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
21647 Py_BEGIN_ALLOW_THREADS
21651 PyEval_RestoreThread(_save);
21652 PyErr_SetString(PyExc_RuntimeError, e.
what());
21655 Py_END_ALLOW_THREADS
21657 resultobj = SWIG_Py_Void();
21664 SWIGINTERN PyObject *VectorTransform_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21666 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
21667 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__VectorTransform, SWIG_NewClientData(obj));
21668 return SWIG_Py_Void();
21671 SWIGINTERN PyObject *_wrap_LinearTransform_have_bias_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21672 PyObject *resultobj = 0;
21679 PyObject * obj0 = 0 ;
21680 PyObject * obj1 = 0 ;
21682 if (!PyArg_ParseTuple(args,(
char *)
"OO:LinearTransform_have_bias_set",&obj0,&obj1)) SWIG_fail;
21683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
21684 if (!SWIG_IsOK(res1)) {
21685 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_have_bias_set" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
21688 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21689 if (!SWIG_IsOK(ecode2)) {
21690 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LinearTransform_have_bias_set" "', argument " "2"" of type '" "bool""'");
21692 arg2 =
static_cast< bool >(val2);
21693 if (arg1) (arg1)->have_bias = arg2;
21694 resultobj = SWIG_Py_Void();
21701 SWIGINTERN PyObject *_wrap_LinearTransform_have_bias_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21702 PyObject *resultobj = 0;
21706 PyObject * obj0 = 0 ;
21709 if (!PyArg_ParseTuple(args,(
char *)
"O:LinearTransform_have_bias_get",&obj0)) SWIG_fail;
21710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
21711 if (!SWIG_IsOK(res1)) {
21712 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_have_bias_get" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
21715 result = (bool) ((arg1)->have_bias);
21716 resultobj = SWIG_From_bool(static_cast< bool >(result));
21723 SWIGINTERN PyObject *_wrap_LinearTransform_is_orthonormal_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21724 PyObject *resultobj = 0;
21731 PyObject * obj0 = 0 ;
21732 PyObject * obj1 = 0 ;
21734 if (!PyArg_ParseTuple(args,(
char *)
"OO:LinearTransform_is_orthonormal_set",&obj0,&obj1)) SWIG_fail;
21735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
21736 if (!SWIG_IsOK(res1)) {
21737 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_is_orthonormal_set" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
21740 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21741 if (!SWIG_IsOK(ecode2)) {
21742 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LinearTransform_is_orthonormal_set" "', argument " "2"" of type '" "bool""'");
21744 arg2 =
static_cast< bool >(val2);
21745 if (arg1) (arg1)->is_orthonormal = arg2;
21746 resultobj = SWIG_Py_Void();
21753 SWIGINTERN PyObject *_wrap_LinearTransform_is_orthonormal_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21754 PyObject *resultobj = 0;
21758 PyObject * obj0 = 0 ;
21761 if (!PyArg_ParseTuple(args,(
char *)
"O:LinearTransform_is_orthonormal_get",&obj0)) SWIG_fail;
21762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
21763 if (!SWIG_IsOK(res1)) {
21764 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_is_orthonormal_get" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
21767 result = (bool) ((arg1)->is_orthonormal);
21768 resultobj = SWIG_From_bool(static_cast< bool >(result));
21775 SWIGINTERN PyObject *_wrap_LinearTransform_A_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21776 PyObject *resultobj = 0;
21778 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
21783 PyObject * obj0 = 0 ;
21784 PyObject * obj1 = 0 ;
21786 if (!PyArg_ParseTuple(args,(
char *)
"OO:LinearTransform_A_set",&obj0,&obj1)) SWIG_fail;
21787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
21788 if (!SWIG_IsOK(res1)) {
21789 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_A_set" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
21792 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
21793 if (!SWIG_IsOK(res2)) {
21794 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "LinearTransform_A_set" "', argument " "2"" of type '" "std::vector< float > *""'");
21796 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
21797 if (arg1) (arg1)->A = *arg2;
21798 resultobj = SWIG_Py_Void();
21805 SWIGINTERN PyObject *_wrap_LinearTransform_A_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21806 PyObject *resultobj = 0;
21810 PyObject * obj0 = 0 ;
21811 std::vector< float > *result = 0 ;
21813 if (!PyArg_ParseTuple(args,(
char *)
"O:LinearTransform_A_get",&obj0)) SWIG_fail;
21814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
21815 if (!SWIG_IsOK(res1)) {
21816 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_A_get" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
21819 result = (std::vector< float > *)& ((arg1)->A);
21820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
21827 SWIGINTERN PyObject *_wrap_LinearTransform_b_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21828 PyObject *resultobj = 0;
21830 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
21835 PyObject * obj0 = 0 ;
21836 PyObject * obj1 = 0 ;
21838 if (!PyArg_ParseTuple(args,(
char *)
"OO:LinearTransform_b_set",&obj0,&obj1)) SWIG_fail;
21839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
21840 if (!SWIG_IsOK(res1)) {
21841 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_b_set" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
21844 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
21845 if (!SWIG_IsOK(res2)) {
21846 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "LinearTransform_b_set" "', argument " "2"" of type '" "std::vector< float > *""'");
21848 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
21849 if (arg1) (arg1)->b = *arg2;
21850 resultobj = SWIG_Py_Void();
21857 SWIGINTERN PyObject *_wrap_LinearTransform_b_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21858 PyObject *resultobj = 0;
21862 PyObject * obj0 = 0 ;
21863 std::vector< float > *result = 0 ;
21865 if (!PyArg_ParseTuple(args,(
char *)
"O:LinearTransform_b_get",&obj0)) SWIG_fail;
21866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
21867 if (!SWIG_IsOK(res1)) {
21868 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_b_get" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
21871 result = (std::vector< float > *)& ((arg1)->b);
21872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
21879 SWIGINTERN PyObject *_wrap_new_LinearTransform__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21880 PyObject *resultobj = 0;
21890 PyObject * obj0 = 0 ;
21891 PyObject * obj1 = 0 ;
21892 PyObject * obj2 = 0 ;
21895 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_LinearTransform",&obj0,&obj1,&obj2)) SWIG_fail;
21896 ecode1 = SWIG_AsVal_int(obj0, &val1);
21897 if (!SWIG_IsOK(ecode1)) {
21898 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_LinearTransform" "', argument " "1"" of type '" "int""'");
21900 arg1 =
static_cast< int >(val1);
21901 ecode2 = SWIG_AsVal_int(obj1, &val2);
21902 if (!SWIG_IsOK(ecode2)) {
21903 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_LinearTransform" "', argument " "2"" of type '" "int""'");
21905 arg2 =
static_cast< int >(val2);
21906 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21907 if (!SWIG_IsOK(ecode3)) {
21908 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_LinearTransform" "', argument " "3"" of type '" "bool""'");
21910 arg3 =
static_cast< bool >(val3);
21912 Py_BEGIN_ALLOW_THREADS
21916 PyEval_RestoreThread(_save);
21917 PyErr_SetString(PyExc_RuntimeError, e.
what());
21920 Py_END_ALLOW_THREADS
21922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__LinearTransform, SWIG_POINTER_NEW | 0 );
21929 SWIGINTERN PyObject *_wrap_new_LinearTransform__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21930 PyObject *resultobj = 0;
21937 PyObject * obj0 = 0 ;
21938 PyObject * obj1 = 0 ;
21941 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_LinearTransform",&obj0,&obj1)) SWIG_fail;
21942 ecode1 = SWIG_AsVal_int(obj0, &val1);
21943 if (!SWIG_IsOK(ecode1)) {
21944 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_LinearTransform" "', argument " "1"" of type '" "int""'");
21946 arg1 =
static_cast< int >(val1);
21947 ecode2 = SWIG_AsVal_int(obj1, &val2);
21948 if (!SWIG_IsOK(ecode2)) {
21949 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_LinearTransform" "', argument " "2"" of type '" "int""'");
21951 arg2 =
static_cast< int >(val2);
21953 Py_BEGIN_ALLOW_THREADS
21957 PyEval_RestoreThread(_save);
21958 PyErr_SetString(PyExc_RuntimeError, e.
what());
21961 Py_END_ALLOW_THREADS
21963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__LinearTransform, SWIG_POINTER_NEW | 0 );
21970 SWIGINTERN PyObject *_wrap_new_LinearTransform__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21971 PyObject *resultobj = 0;
21975 PyObject * obj0 = 0 ;
21978 if (!PyArg_ParseTuple(args,(
char *)
"O:new_LinearTransform",&obj0)) SWIG_fail;
21979 ecode1 = SWIG_AsVal_int(obj0, &val1);
21980 if (!SWIG_IsOK(ecode1)) {
21981 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_LinearTransform" "', argument " "1"" of type '" "int""'");
21983 arg1 =
static_cast< int >(val1);
21985 Py_BEGIN_ALLOW_THREADS
21989 PyEval_RestoreThread(_save);
21990 PyErr_SetString(PyExc_RuntimeError, e.
what());
21993 Py_END_ALLOW_THREADS
21995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__LinearTransform, SWIG_POINTER_NEW | 0 );
22002 SWIGINTERN PyObject *_wrap_new_LinearTransform__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22003 PyObject *resultobj = 0;
22006 if (!PyArg_ParseTuple(args,(
char *)
":new_LinearTransform")) SWIG_fail;
22008 Py_BEGIN_ALLOW_THREADS
22012 PyEval_RestoreThread(_save);
22013 PyErr_SetString(PyExc_RuntimeError, e.
what());
22016 Py_END_ALLOW_THREADS
22018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__LinearTransform, SWIG_POINTER_NEW | 0 );
22025 SWIGINTERN PyObject *_wrap_new_LinearTransform(PyObject *
self, PyObject *args) {
22027 PyObject *argv[4] = {
22032 if (!PyTuple_Check(args)) SWIG_fail;
22033 argc = args ? PyObject_Length(args) : 0;
22034 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
22035 argv[ii] = PyTuple_GET_ITEM(args,ii);
22038 return _wrap_new_LinearTransform__SWIG_3(
self, args);
22043 int res = SWIG_AsVal_int(argv[0], NULL);
22044 _v = SWIG_CheckState(res);
22047 return _wrap_new_LinearTransform__SWIG_2(
self, args);
22053 int res = SWIG_AsVal_int(argv[0], NULL);
22054 _v = SWIG_CheckState(res);
22058 int res = SWIG_AsVal_int(argv[1], NULL);
22059 _v = SWIG_CheckState(res);
22062 return _wrap_new_LinearTransform__SWIG_1(
self, args);
22069 int res = SWIG_AsVal_int(argv[0], NULL);
22070 _v = SWIG_CheckState(res);
22074 int res = SWIG_AsVal_int(argv[1], NULL);
22075 _v = SWIG_CheckState(res);
22079 int res = SWIG_AsVal_bool(argv[2], NULL);
22080 _v = SWIG_CheckState(res);
22083 return _wrap_new_LinearTransform__SWIG_0(
self, args);
22090 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_LinearTransform'.\n"
22091 " Possible C/C++ prototypes are:\n"
22092 " faiss::LinearTransform::LinearTransform(int,int,bool)\n"
22093 " faiss::LinearTransform::LinearTransform(int,int)\n"
22094 " faiss::LinearTransform::LinearTransform(int)\n"
22095 " faiss::LinearTransform::LinearTransform()\n");
22100 SWIGINTERN PyObject *_wrap_LinearTransform_apply_noalloc(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22101 PyObject *resultobj = 0;
22103 faiss::VectorTransform::idx_t arg2 ;
22104 float *arg3 = (
float *) 0 ;
22105 float *arg4 = (
float *) 0 ;
22114 PyObject * obj0 = 0 ;
22115 PyObject * obj1 = 0 ;
22116 PyObject * obj2 = 0 ;
22117 PyObject * obj3 = 0 ;
22119 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:LinearTransform_apply_noalloc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
22121 if (!SWIG_IsOK(res1)) {
22122 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_apply_noalloc" "', argument " "1"" of type '" "faiss::LinearTransform const *""'");
22125 ecode2 = SWIG_AsVal_long(obj1, &val2);
22126 if (!SWIG_IsOK(ecode2)) {
22127 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LinearTransform_apply_noalloc" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
22129 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
22130 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
22131 if (!SWIG_IsOK(res3)) {
22132 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "LinearTransform_apply_noalloc" "', argument " "3"" of type '" "float const *""'");
22134 arg3 =
reinterpret_cast< float *
>(argp3);
22135 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
22136 if (!SWIG_IsOK(res4)) {
22137 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "LinearTransform_apply_noalloc" "', argument " "4"" of type '" "float *""'");
22139 arg4 =
reinterpret_cast< float *
>(argp4);
22141 Py_BEGIN_ALLOW_THREADS
22145 PyEval_RestoreThread(_save);
22146 PyErr_SetString(PyExc_RuntimeError, e.
what());
22149 Py_END_ALLOW_THREADS
22151 resultobj = SWIG_Py_Void();
22158 SWIGINTERN PyObject *_wrap_LinearTransform_transform_transpose(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22159 PyObject *resultobj = 0;
22161 faiss::VectorTransform::idx_t arg2 ;
22162 float *arg3 = (
float *) 0 ;
22163 float *arg4 = (
float *) 0 ;
22172 PyObject * obj0 = 0 ;
22173 PyObject * obj1 = 0 ;
22174 PyObject * obj2 = 0 ;
22175 PyObject * obj3 = 0 ;
22177 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:LinearTransform_transform_transpose",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
22179 if (!SWIG_IsOK(res1)) {
22180 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_transform_transpose" "', argument " "1"" of type '" "faiss::LinearTransform const *""'");
22183 ecode2 = SWIG_AsVal_long(obj1, &val2);
22184 if (!SWIG_IsOK(ecode2)) {
22185 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LinearTransform_transform_transpose" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
22187 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
22188 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
22189 if (!SWIG_IsOK(res3)) {
22190 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "LinearTransform_transform_transpose" "', argument " "3"" of type '" "float const *""'");
22192 arg3 =
reinterpret_cast< float *
>(argp3);
22193 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
22194 if (!SWIG_IsOK(res4)) {
22195 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "LinearTransform_transform_transpose" "', argument " "4"" of type '" "float *""'");
22197 arg4 =
reinterpret_cast< float *
>(argp4);
22199 Py_BEGIN_ALLOW_THREADS
22203 PyEval_RestoreThread(_save);
22204 PyErr_SetString(PyExc_RuntimeError, e.
what());
22207 Py_END_ALLOW_THREADS
22209 resultobj = SWIG_Py_Void();
22216 SWIGINTERN PyObject *_wrap_LinearTransform_reverse_transform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22217 PyObject *resultobj = 0;
22219 faiss::VectorTransform::idx_t arg2 ;
22220 float *arg3 = (
float *) 0 ;
22221 float *arg4 = (
float *) 0 ;
22230 PyObject * obj0 = 0 ;
22231 PyObject * obj1 = 0 ;
22232 PyObject * obj2 = 0 ;
22233 PyObject * obj3 = 0 ;
22235 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:LinearTransform_reverse_transform",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
22237 if (!SWIG_IsOK(res1)) {
22238 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_reverse_transform" "', argument " "1"" of type '" "faiss::LinearTransform const *""'");
22241 ecode2 = SWIG_AsVal_long(obj1, &val2);
22242 if (!SWIG_IsOK(ecode2)) {
22243 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LinearTransform_reverse_transform" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
22245 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
22246 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
22247 if (!SWIG_IsOK(res3)) {
22248 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "LinearTransform_reverse_transform" "', argument " "3"" of type '" "float const *""'");
22250 arg3 =
reinterpret_cast< float *
>(argp3);
22251 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
22252 if (!SWIG_IsOK(res4)) {
22253 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "LinearTransform_reverse_transform" "', argument " "4"" of type '" "float *""'");
22255 arg4 =
reinterpret_cast< float *
>(argp4);
22257 Py_BEGIN_ALLOW_THREADS
22261 PyEval_RestoreThread(_save);
22262 PyErr_SetString(PyExc_RuntimeError, e.
what());
22265 Py_END_ALLOW_THREADS
22267 resultobj = SWIG_Py_Void();
22274 SWIGINTERN PyObject *_wrap_LinearTransform_set_is_orthonormal(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22275 PyObject *resultobj = 0;
22279 PyObject * obj0 = 0 ;
22281 if (!PyArg_ParseTuple(args,(
char *)
"O:LinearTransform_set_is_orthonormal",&obj0)) SWIG_fail;
22282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
22283 if (!SWIG_IsOK(res1)) {
22284 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_set_is_orthonormal" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
22288 Py_BEGIN_ALLOW_THREADS
22290 (arg1)->set_is_orthonormal();
22292 PyEval_RestoreThread(_save);
22293 PyErr_SetString(PyExc_RuntimeError, e.
what());
22296 Py_END_ALLOW_THREADS
22298 resultobj = SWIG_Py_Void();
22305 SWIGINTERN PyObject *_wrap_LinearTransform_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22306 PyObject *resultobj = 0;
22313 PyObject * obj0 = 0 ;
22314 PyObject * obj1 = 0 ;
22316 if (!PyArg_ParseTuple(args,(
char *)
"OO:LinearTransform_verbose_set",&obj0,&obj1)) SWIG_fail;
22317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
22318 if (!SWIG_IsOK(res1)) {
22319 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_verbose_set" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
22322 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22323 if (!SWIG_IsOK(ecode2)) {
22324 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LinearTransform_verbose_set" "', argument " "2"" of type '" "bool""'");
22326 arg2 =
static_cast< bool >(val2);
22327 if (arg1) (arg1)->verbose = arg2;
22328 resultobj = SWIG_Py_Void();
22335 SWIGINTERN PyObject *_wrap_LinearTransform_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22336 PyObject *resultobj = 0;
22340 PyObject * obj0 = 0 ;
22343 if (!PyArg_ParseTuple(args,(
char *)
"O:LinearTransform_verbose_get",&obj0)) SWIG_fail;
22344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
22345 if (!SWIG_IsOK(res1)) {
22346 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_verbose_get" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
22349 result = (bool) ((arg1)->verbose);
22350 resultobj = SWIG_From_bool(static_cast< bool >(result));
22357 SWIGINTERN PyObject *_wrap_delete_LinearTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22358 PyObject *resultobj = 0;
22362 PyObject * obj0 = 0 ;
22364 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_LinearTransform",&obj0)) SWIG_fail;
22365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, SWIG_POINTER_DISOWN | 0 );
22366 if (!SWIG_IsOK(res1)) {
22367 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_LinearTransform" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
22371 Py_BEGIN_ALLOW_THREADS
22375 PyEval_RestoreThread(_save);
22376 PyErr_SetString(PyExc_RuntimeError, e.
what());
22379 Py_END_ALLOW_THREADS
22381 resultobj = SWIG_Py_Void();
22388 SWIGINTERN PyObject *LinearTransform_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22390 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
22391 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__LinearTransform, SWIG_NewClientData(obj));
22392 return SWIG_Py_Void();
22395 SWIGINTERN PyObject *_wrap_new_RandomRotationMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22396 PyObject *resultobj = 0;
22403 PyObject * obj0 = 0 ;
22404 PyObject * obj1 = 0 ;
22407 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_RandomRotationMatrix",&obj0,&obj1)) SWIG_fail;
22408 ecode1 = SWIG_AsVal_int(obj0, &val1);
22409 if (!SWIG_IsOK(ecode1)) {
22410 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_RandomRotationMatrix" "', argument " "1"" of type '" "int""'");
22412 arg1 =
static_cast< int >(val1);
22413 ecode2 = SWIG_AsVal_int(obj1, &val2);
22414 if (!SWIG_IsOK(ecode2)) {
22415 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_RandomRotationMatrix" "', argument " "2"" of type '" "int""'");
22417 arg2 =
static_cast< int >(val2);
22419 Py_BEGIN_ALLOW_THREADS
22423 PyEval_RestoreThread(_save);
22424 PyErr_SetString(PyExc_RuntimeError, e.
what());
22427 Py_END_ALLOW_THREADS
22429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RandomRotationMatrix, SWIG_POINTER_NEW | 0 );
22436 SWIGINTERN PyObject *_wrap_RandomRotationMatrix_init(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22437 PyObject *resultobj = 0;
22444 PyObject * obj0 = 0 ;
22445 PyObject * obj1 = 0 ;
22447 if (!PyArg_ParseTuple(args,(
char *)
"OO:RandomRotationMatrix_init",&obj0,&obj1)) SWIG_fail;
22448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomRotationMatrix, 0 | 0 );
22449 if (!SWIG_IsOK(res1)) {
22450 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomRotationMatrix_init" "', argument " "1"" of type '" "faiss::RandomRotationMatrix *""'");
22453 ecode2 = SWIG_AsVal_int(obj1, &val2);
22454 if (!SWIG_IsOK(ecode2)) {
22455 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RandomRotationMatrix_init" "', argument " "2"" of type '" "int""'");
22457 arg2 =
static_cast< int >(val2);
22459 Py_BEGIN_ALLOW_THREADS
22461 (arg1)->init(arg2);
22463 PyEval_RestoreThread(_save);
22464 PyErr_SetString(PyExc_RuntimeError, e.
what());
22467 Py_END_ALLOW_THREADS
22469 resultobj = SWIG_Py_Void();
22476 SWIGINTERN PyObject *_wrap_RandomRotationMatrix_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22477 PyObject *resultobj = 0;
22480 float *arg3 = (
float *) 0 ;
22487 PyObject * obj0 = 0 ;
22488 PyObject * obj1 = 0 ;
22489 PyObject * obj2 = 0 ;
22491 if (!PyArg_ParseTuple(args,(
char *)
"OOO:RandomRotationMatrix_train",&obj0,&obj1,&obj2)) SWIG_fail;
22492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomRotationMatrix, 0 | 0 );
22493 if (!SWIG_IsOK(res1)) {
22494 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomRotationMatrix_train" "', argument " "1"" of type '" "faiss::RandomRotationMatrix *""'");
22497 ecode2 = SWIG_AsVal_long(obj1, &val2);
22498 if (!SWIG_IsOK(ecode2)) {
22499 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RandomRotationMatrix_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
22502 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
22503 if (!SWIG_IsOK(res3)) {
22504 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "RandomRotationMatrix_train" "', argument " "3"" of type '" "float const *""'");
22506 arg3 =
reinterpret_cast< float *
>(argp3);
22508 Py_BEGIN_ALLOW_THREADS
22510 (arg1)->train(arg2,(
float const *)arg3);
22512 PyEval_RestoreThread(_save);
22513 PyErr_SetString(PyExc_RuntimeError, e.
what());
22516 Py_END_ALLOW_THREADS
22518 resultobj = SWIG_Py_Void();
22525 SWIGINTERN PyObject *_wrap_new_RandomRotationMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22526 PyObject *resultobj = 0;
22529 if (!PyArg_ParseTuple(args,(
char *)
":new_RandomRotationMatrix")) SWIG_fail;
22531 Py_BEGIN_ALLOW_THREADS
22535 PyEval_RestoreThread(_save);
22536 PyErr_SetString(PyExc_RuntimeError, e.
what());
22539 Py_END_ALLOW_THREADS
22541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RandomRotationMatrix, SWIG_POINTER_NEW | 0 );
22548 SWIGINTERN PyObject *_wrap_new_RandomRotationMatrix(PyObject *
self, PyObject *args) {
22550 PyObject *argv[3] = {
22555 if (!PyTuple_Check(args)) SWIG_fail;
22556 argc = args ? PyObject_Length(args) : 0;
22557 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
22558 argv[ii] = PyTuple_GET_ITEM(args,ii);
22561 return _wrap_new_RandomRotationMatrix__SWIG_1(
self, args);
22566 int res = SWIG_AsVal_int(argv[0], NULL);
22567 _v = SWIG_CheckState(res);
22571 int res = SWIG_AsVal_int(argv[1], NULL);
22572 _v = SWIG_CheckState(res);
22575 return _wrap_new_RandomRotationMatrix__SWIG_0(
self, args);
22581 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_RandomRotationMatrix'.\n"
22582 " Possible C/C++ prototypes are:\n"
22583 " faiss::RandomRotationMatrix::RandomRotationMatrix(int,int)\n"
22584 " faiss::RandomRotationMatrix::RandomRotationMatrix()\n");
22589 SWIGINTERN PyObject *_wrap_delete_RandomRotationMatrix(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22590 PyObject *resultobj = 0;
22594 PyObject * obj0 = 0 ;
22596 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RandomRotationMatrix",&obj0)) SWIG_fail;
22597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomRotationMatrix, SWIG_POINTER_DISOWN | 0 );
22598 if (!SWIG_IsOK(res1)) {
22599 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RandomRotationMatrix" "', argument " "1"" of type '" "faiss::RandomRotationMatrix *""'");
22603 resultobj = SWIG_Py_Void();
22610 SWIGINTERN PyObject *RandomRotationMatrix_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22612 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
22613 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__RandomRotationMatrix, SWIG_NewClientData(obj));
22614 return SWIG_Py_Void();
22617 SWIGINTERN PyObject *_wrap_PCAMatrix_eigen_power_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22618 PyObject *resultobj = 0;
22625 PyObject * obj0 = 0 ;
22626 PyObject * obj1 = 0 ;
22628 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_eigen_power_set",&obj0,&obj1)) SWIG_fail;
22629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
22630 if (!SWIG_IsOK(res1)) {
22631 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_eigen_power_set" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
22634 ecode2 = SWIG_AsVal_float(obj1, &val2);
22635 if (!SWIG_IsOK(ecode2)) {
22636 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PCAMatrix_eigen_power_set" "', argument " "2"" of type '" "float""'");
22638 arg2 =
static_cast< float >(val2);
22639 if (arg1) (arg1)->eigen_power = arg2;
22640 resultobj = SWIG_Py_Void();
22647 SWIGINTERN PyObject *_wrap_PCAMatrix_eigen_power_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22648 PyObject *resultobj = 0;
22652 PyObject * obj0 = 0 ;
22655 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_eigen_power_get",&obj0)) SWIG_fail;
22656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
22657 if (!SWIG_IsOK(res1)) {
22658 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_eigen_power_get" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
22661 result = (float) ((arg1)->eigen_power);
22662 resultobj = SWIG_From_float(static_cast< float >(result));
22669 SWIGINTERN PyObject *_wrap_PCAMatrix_random_rotation_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22670 PyObject *resultobj = 0;
22677 PyObject * obj0 = 0 ;
22678 PyObject * obj1 = 0 ;
22680 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_random_rotation_set",&obj0,&obj1)) SWIG_fail;
22681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
22682 if (!SWIG_IsOK(res1)) {
22683 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_random_rotation_set" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
22686 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22687 if (!SWIG_IsOK(ecode2)) {
22688 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PCAMatrix_random_rotation_set" "', argument " "2"" of type '" "bool""'");
22690 arg2 =
static_cast< bool >(val2);
22691 if (arg1) (arg1)->random_rotation = arg2;
22692 resultobj = SWIG_Py_Void();
22699 SWIGINTERN PyObject *_wrap_PCAMatrix_random_rotation_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22700 PyObject *resultobj = 0;
22704 PyObject * obj0 = 0 ;
22707 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_random_rotation_get",&obj0)) SWIG_fail;
22708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
22709 if (!SWIG_IsOK(res1)) {
22710 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_random_rotation_get" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
22713 result = (bool) ((arg1)->random_rotation);
22714 resultobj = SWIG_From_bool(static_cast< bool >(result));
22721 SWIGINTERN PyObject *_wrap_PCAMatrix_max_points_per_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22722 PyObject *resultobj = 0;
22729 PyObject * obj0 = 0 ;
22730 PyObject * obj1 = 0 ;
22732 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_max_points_per_d_set",&obj0,&obj1)) SWIG_fail;
22733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
22734 if (!SWIG_IsOK(res1)) {
22735 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_max_points_per_d_set" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
22738 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22739 if (!SWIG_IsOK(ecode2)) {
22740 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PCAMatrix_max_points_per_d_set" "', argument " "2"" of type '" "size_t""'");
22742 arg2 =
static_cast< size_t >(val2);
22743 if (arg1) (arg1)->max_points_per_d = arg2;
22744 resultobj = SWIG_Py_Void();
22751 SWIGINTERN PyObject *_wrap_PCAMatrix_max_points_per_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22752 PyObject *resultobj = 0;
22756 PyObject * obj0 = 0 ;
22759 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_max_points_per_d_get",&obj0)) SWIG_fail;
22760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
22761 if (!SWIG_IsOK(res1)) {
22762 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_max_points_per_d_get" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
22765 result = (size_t) ((arg1)->max_points_per_d);
22766 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
22773 SWIGINTERN PyObject *_wrap_PCAMatrix_balanced_bins_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22774 PyObject *resultobj = 0;
22781 PyObject * obj0 = 0 ;
22782 PyObject * obj1 = 0 ;
22784 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_balanced_bins_set",&obj0,&obj1)) SWIG_fail;
22785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
22786 if (!SWIG_IsOK(res1)) {
22787 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_balanced_bins_set" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
22790 ecode2 = SWIG_AsVal_int(obj1, &val2);
22791 if (!SWIG_IsOK(ecode2)) {
22792 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PCAMatrix_balanced_bins_set" "', argument " "2"" of type '" "int""'");
22794 arg2 =
static_cast< int >(val2);
22795 if (arg1) (arg1)->balanced_bins = arg2;
22796 resultobj = SWIG_Py_Void();
22803 SWIGINTERN PyObject *_wrap_PCAMatrix_balanced_bins_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22804 PyObject *resultobj = 0;
22808 PyObject * obj0 = 0 ;
22811 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_balanced_bins_get",&obj0)) SWIG_fail;
22812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
22813 if (!SWIG_IsOK(res1)) {
22814 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_balanced_bins_get" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
22817 result = (int) ((arg1)->balanced_bins);
22818 resultobj = SWIG_From_int(static_cast< int >(result));
22825 SWIGINTERN PyObject *_wrap_PCAMatrix_mean_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22826 PyObject *resultobj = 0;
22828 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
22833 PyObject * obj0 = 0 ;
22834 PyObject * obj1 = 0 ;
22836 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_mean_set",&obj0,&obj1)) SWIG_fail;
22837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
22838 if (!SWIG_IsOK(res1)) {
22839 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_mean_set" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
22842 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
22843 if (!SWIG_IsOK(res2)) {
22844 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PCAMatrix_mean_set" "', argument " "2"" of type '" "std::vector< float > *""'");
22846 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
22847 if (arg1) (arg1)->mean = *arg2;
22848 resultobj = SWIG_Py_Void();
22855 SWIGINTERN PyObject *_wrap_PCAMatrix_mean_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22856 PyObject *resultobj = 0;
22860 PyObject * obj0 = 0 ;
22861 std::vector< float > *result = 0 ;
22863 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_mean_get",&obj0)) SWIG_fail;
22864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
22865 if (!SWIG_IsOK(res1)) {
22866 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_mean_get" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
22869 result = (std::vector< float > *)& ((arg1)->mean);
22870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
22877 SWIGINTERN PyObject *_wrap_PCAMatrix_eigenvalues_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22878 PyObject *resultobj = 0;
22880 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
22885 PyObject * obj0 = 0 ;
22886 PyObject * obj1 = 0 ;
22888 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_eigenvalues_set",&obj0,&obj1)) SWIG_fail;
22889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
22890 if (!SWIG_IsOK(res1)) {
22891 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_eigenvalues_set" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
22894 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
22895 if (!SWIG_IsOK(res2)) {
22896 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PCAMatrix_eigenvalues_set" "', argument " "2"" of type '" "std::vector< float > *""'");
22898 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
22899 if (arg1) (arg1)->eigenvalues = *arg2;
22900 resultobj = SWIG_Py_Void();
22907 SWIGINTERN PyObject *_wrap_PCAMatrix_eigenvalues_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22908 PyObject *resultobj = 0;
22912 PyObject * obj0 = 0 ;
22913 std::vector< float > *result = 0 ;
22915 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_eigenvalues_get",&obj0)) SWIG_fail;
22916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
22917 if (!SWIG_IsOK(res1)) {
22918 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_eigenvalues_get" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
22921 result = (std::vector< float > *)& ((arg1)->eigenvalues);
22922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
22929 SWIGINTERN PyObject *_wrap_PCAMatrix_PCAMat_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22930 PyObject *resultobj = 0;
22932 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
22937 PyObject * obj0 = 0 ;
22938 PyObject * obj1 = 0 ;
22940 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_PCAMat_set",&obj0,&obj1)) SWIG_fail;
22941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
22942 if (!SWIG_IsOK(res1)) {
22943 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_PCAMat_set" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
22946 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
22947 if (!SWIG_IsOK(res2)) {
22948 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PCAMatrix_PCAMat_set" "', argument " "2"" of type '" "std::vector< float > *""'");
22950 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
22951 if (arg1) (arg1)->PCAMat = *arg2;
22952 resultobj = SWIG_Py_Void();
22959 SWIGINTERN PyObject *_wrap_PCAMatrix_PCAMat_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22960 PyObject *resultobj = 0;
22964 PyObject * obj0 = 0 ;
22965 std::vector< float > *result = 0 ;
22967 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_PCAMat_get",&obj0)) SWIG_fail;
22968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
22969 if (!SWIG_IsOK(res1)) {
22970 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_PCAMat_get" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
22973 result = (std::vector< float > *)& ((arg1)->PCAMat);
22974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
22981 SWIGINTERN PyObject *_wrap_new_PCAMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22982 PyObject *resultobj = 0;
22995 PyObject * obj0 = 0 ;
22996 PyObject * obj1 = 0 ;
22997 PyObject * obj2 = 0 ;
22998 PyObject * obj3 = 0 ;
23001 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_PCAMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23002 ecode1 = SWIG_AsVal_int(obj0, &val1);
23003 if (!SWIG_IsOK(ecode1)) {
23004 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_PCAMatrix" "', argument " "1"" of type '" "int""'");
23006 arg1 =
static_cast< int >(val1);
23007 ecode2 = SWIG_AsVal_int(obj1, &val2);
23008 if (!SWIG_IsOK(ecode2)) {
23009 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_PCAMatrix" "', argument " "2"" of type '" "int""'");
23011 arg2 =
static_cast< int >(val2);
23012 ecode3 = SWIG_AsVal_float(obj2, &val3);
23013 if (!SWIG_IsOK(ecode3)) {
23014 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_PCAMatrix" "', argument " "3"" of type '" "float""'");
23016 arg3 =
static_cast< float >(val3);
23017 ecode4 = SWIG_AsVal_bool(obj3, &val4);
23018 if (!SWIG_IsOK(ecode4)) {
23019 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_PCAMatrix" "', argument " "4"" of type '" "bool""'");
23021 arg4 =
static_cast< bool >(val4);
23023 Py_BEGIN_ALLOW_THREADS
23027 PyEval_RestoreThread(_save);
23028 PyErr_SetString(PyExc_RuntimeError, e.
what());
23031 Py_END_ALLOW_THREADS
23033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PCAMatrix, SWIG_POINTER_NEW | 0 );
23040 SWIGINTERN PyObject *_wrap_new_PCAMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23041 PyObject *resultobj = 0;
23051 PyObject * obj0 = 0 ;
23052 PyObject * obj1 = 0 ;
23053 PyObject * obj2 = 0 ;
23056 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_PCAMatrix",&obj0,&obj1,&obj2)) SWIG_fail;
23057 ecode1 = SWIG_AsVal_int(obj0, &val1);
23058 if (!SWIG_IsOK(ecode1)) {
23059 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_PCAMatrix" "', argument " "1"" of type '" "int""'");
23061 arg1 =
static_cast< int >(val1);
23062 ecode2 = SWIG_AsVal_int(obj1, &val2);
23063 if (!SWIG_IsOK(ecode2)) {
23064 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_PCAMatrix" "', argument " "2"" of type '" "int""'");
23066 arg2 =
static_cast< int >(val2);
23067 ecode3 = SWIG_AsVal_float(obj2, &val3);
23068 if (!SWIG_IsOK(ecode3)) {
23069 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_PCAMatrix" "', argument " "3"" of type '" "float""'");
23071 arg3 =
static_cast< float >(val3);
23073 Py_BEGIN_ALLOW_THREADS
23077 PyEval_RestoreThread(_save);
23078 PyErr_SetString(PyExc_RuntimeError, e.
what());
23081 Py_END_ALLOW_THREADS
23083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PCAMatrix, SWIG_POINTER_NEW | 0 );
23090 SWIGINTERN PyObject *_wrap_new_PCAMatrix__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23091 PyObject *resultobj = 0;
23098 PyObject * obj0 = 0 ;
23099 PyObject * obj1 = 0 ;
23102 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_PCAMatrix",&obj0,&obj1)) SWIG_fail;
23103 ecode1 = SWIG_AsVal_int(obj0, &val1);
23104 if (!SWIG_IsOK(ecode1)) {
23105 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_PCAMatrix" "', argument " "1"" of type '" "int""'");
23107 arg1 =
static_cast< int >(val1);
23108 ecode2 = SWIG_AsVal_int(obj1, &val2);
23109 if (!SWIG_IsOK(ecode2)) {
23110 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_PCAMatrix" "', argument " "2"" of type '" "int""'");
23112 arg2 =
static_cast< int >(val2);
23114 Py_BEGIN_ALLOW_THREADS
23118 PyEval_RestoreThread(_save);
23119 PyErr_SetString(PyExc_RuntimeError, e.
what());
23122 Py_END_ALLOW_THREADS
23124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PCAMatrix, SWIG_POINTER_NEW | 0 );
23131 SWIGINTERN PyObject *_wrap_new_PCAMatrix__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23132 PyObject *resultobj = 0;
23136 PyObject * obj0 = 0 ;
23139 if (!PyArg_ParseTuple(args,(
char *)
"O:new_PCAMatrix",&obj0)) SWIG_fail;
23140 ecode1 = SWIG_AsVal_int(obj0, &val1);
23141 if (!SWIG_IsOK(ecode1)) {
23142 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_PCAMatrix" "', argument " "1"" of type '" "int""'");
23144 arg1 =
static_cast< int >(val1);
23146 Py_BEGIN_ALLOW_THREADS
23150 PyEval_RestoreThread(_save);
23151 PyErr_SetString(PyExc_RuntimeError, e.
what());
23154 Py_END_ALLOW_THREADS
23156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PCAMatrix, SWIG_POINTER_NEW | 0 );
23163 SWIGINTERN PyObject *_wrap_new_PCAMatrix__SWIG_4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23164 PyObject *resultobj = 0;
23167 if (!PyArg_ParseTuple(args,(
char *)
":new_PCAMatrix")) SWIG_fail;
23169 Py_BEGIN_ALLOW_THREADS
23173 PyEval_RestoreThread(_save);
23174 PyErr_SetString(PyExc_RuntimeError, e.
what());
23177 Py_END_ALLOW_THREADS
23179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PCAMatrix, SWIG_POINTER_NEW | 0 );
23186 SWIGINTERN PyObject *_wrap_new_PCAMatrix(PyObject *
self, PyObject *args) {
23188 PyObject *argv[5] = {
23193 if (!PyTuple_Check(args)) SWIG_fail;
23194 argc = args ? PyObject_Length(args) : 0;
23195 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
23196 argv[ii] = PyTuple_GET_ITEM(args,ii);
23199 return _wrap_new_PCAMatrix__SWIG_4(
self, args);
23204 int res = SWIG_AsVal_int(argv[0], NULL);
23205 _v = SWIG_CheckState(res);
23208 return _wrap_new_PCAMatrix__SWIG_3(
self, args);
23214 int res = SWIG_AsVal_int(argv[0], NULL);
23215 _v = SWIG_CheckState(res);
23219 int res = SWIG_AsVal_int(argv[1], NULL);
23220 _v = SWIG_CheckState(res);
23223 return _wrap_new_PCAMatrix__SWIG_2(
self, args);
23230 int res = SWIG_AsVal_int(argv[0], NULL);
23231 _v = SWIG_CheckState(res);
23235 int res = SWIG_AsVal_int(argv[1], NULL);
23236 _v = SWIG_CheckState(res);
23240 int res = SWIG_AsVal_float(argv[2], NULL);
23241 _v = SWIG_CheckState(res);
23244 return _wrap_new_PCAMatrix__SWIG_1(
self, args);
23252 int res = SWIG_AsVal_int(argv[0], NULL);
23253 _v = SWIG_CheckState(res);
23257 int res = SWIG_AsVal_int(argv[1], NULL);
23258 _v = SWIG_CheckState(res);
23262 int res = SWIG_AsVal_float(argv[2], NULL);
23263 _v = SWIG_CheckState(res);
23267 int res = SWIG_AsVal_bool(argv[3], NULL);
23268 _v = SWIG_CheckState(res);
23271 return _wrap_new_PCAMatrix__SWIG_0(
self, args);
23279 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_PCAMatrix'.\n"
23280 " Possible C/C++ prototypes are:\n"
23281 " faiss::PCAMatrix::PCAMatrix(int,int,float,bool)\n"
23282 " faiss::PCAMatrix::PCAMatrix(int,int,float)\n"
23283 " faiss::PCAMatrix::PCAMatrix(int,int)\n"
23284 " faiss::PCAMatrix::PCAMatrix(int)\n"
23285 " faiss::PCAMatrix::PCAMatrix()\n");
23290 SWIGINTERN PyObject *_wrap_PCAMatrix_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23291 PyObject *resultobj = 0;
23294 float *arg3 = (
float *) 0 ;
23301 PyObject * obj0 = 0 ;
23302 PyObject * obj1 = 0 ;
23303 PyObject * obj2 = 0 ;
23305 if (!PyArg_ParseTuple(args,(
char *)
"OOO:PCAMatrix_train",&obj0,&obj1,&obj2)) SWIG_fail;
23306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
23307 if (!SWIG_IsOK(res1)) {
23308 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_train" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
23311 ecode2 = SWIG_AsVal_long(obj1, &val2);
23312 if (!SWIG_IsOK(ecode2)) {
23313 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PCAMatrix_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
23316 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
23317 if (!SWIG_IsOK(res3)) {
23318 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "PCAMatrix_train" "', argument " "3"" of type '" "float const *""'");
23320 arg3 =
reinterpret_cast< float *
>(argp3);
23322 Py_BEGIN_ALLOW_THREADS
23324 (arg1)->train(arg2,(
float const *)arg3);
23326 PyEval_RestoreThread(_save);
23327 PyErr_SetString(PyExc_RuntimeError, e.
what());
23330 Py_END_ALLOW_THREADS
23332 resultobj = SWIG_Py_Void();
23339 SWIGINTERN PyObject *_wrap_PCAMatrix_copy_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23340 PyObject *resultobj = 0;
23347 PyObject * obj0 = 0 ;
23348 PyObject * obj1 = 0 ;
23350 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_copy_from",&obj0,&obj1)) SWIG_fail;
23351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
23352 if (!SWIG_IsOK(res1)) {
23353 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_copy_from" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
23356 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__PCAMatrix, 0 | 0);
23357 if (!SWIG_IsOK(res2)) {
23358 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PCAMatrix_copy_from" "', argument " "2"" of type '" "faiss::PCAMatrix const &""'");
23361 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "PCAMatrix_copy_from" "', argument " "2"" of type '" "faiss::PCAMatrix const &""'");
23365 Py_BEGIN_ALLOW_THREADS
23369 PyEval_RestoreThread(_save);
23370 PyErr_SetString(PyExc_RuntimeError, e.
what());
23373 Py_END_ALLOW_THREADS
23375 resultobj = SWIG_Py_Void();
23382 SWIGINTERN PyObject *_wrap_PCAMatrix_prepare_Ab(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23383 PyObject *resultobj = 0;
23387 PyObject * obj0 = 0 ;
23389 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_prepare_Ab",&obj0)) SWIG_fail;
23390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
23391 if (!SWIG_IsOK(res1)) {
23392 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_prepare_Ab" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
23396 Py_BEGIN_ALLOW_THREADS
23398 (arg1)->prepare_Ab();
23400 PyEval_RestoreThread(_save);
23401 PyErr_SetString(PyExc_RuntimeError, e.
what());
23404 Py_END_ALLOW_THREADS
23406 resultobj = SWIG_Py_Void();
23413 SWIGINTERN PyObject *_wrap_delete_PCAMatrix(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23414 PyObject *resultobj = 0;
23418 PyObject * obj0 = 0 ;
23420 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_PCAMatrix",&obj0)) SWIG_fail;
23421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, SWIG_POINTER_DISOWN | 0 );
23422 if (!SWIG_IsOK(res1)) {
23423 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_PCAMatrix" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
23427 resultobj = SWIG_Py_Void();
23434 SWIGINTERN PyObject *PCAMatrix_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23436 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
23437 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__PCAMatrix, SWIG_NewClientData(obj));
23438 return SWIG_Py_Void();
23441 SWIGINTERN PyObject *_wrap_OPQMatrix_M_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23442 PyObject *resultobj = 0;
23449 PyObject * obj0 = 0 ;
23450 PyObject * obj1 = 0 ;
23452 if (!PyArg_ParseTuple(args,(
char *)
"OO:OPQMatrix_M_set",&obj0,&obj1)) SWIG_fail;
23453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
23454 if (!SWIG_IsOK(res1)) {
23455 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_M_set" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
23458 ecode2 = SWIG_AsVal_int(obj1, &val2);
23459 if (!SWIG_IsOK(ecode2)) {
23460 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OPQMatrix_M_set" "', argument " "2"" of type '" "int""'");
23462 arg2 =
static_cast< int >(val2);
23463 if (arg1) (arg1)->M = arg2;
23464 resultobj = SWIG_Py_Void();
23471 SWIGINTERN PyObject *_wrap_OPQMatrix_M_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23472 PyObject *resultobj = 0;
23476 PyObject * obj0 = 0 ;
23479 if (!PyArg_ParseTuple(args,(
char *)
"O:OPQMatrix_M_get",&obj0)) SWIG_fail;
23480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
23481 if (!SWIG_IsOK(res1)) {
23482 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_M_get" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
23485 result = (int) ((arg1)->M);
23486 resultobj = SWIG_From_int(static_cast< int >(result));
23493 SWIGINTERN PyObject *_wrap_OPQMatrix_niter_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23494 PyObject *resultobj = 0;
23501 PyObject * obj0 = 0 ;
23502 PyObject * obj1 = 0 ;
23504 if (!PyArg_ParseTuple(args,(
char *)
"OO:OPQMatrix_niter_set",&obj0,&obj1)) SWIG_fail;
23505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
23506 if (!SWIG_IsOK(res1)) {
23507 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_niter_set" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
23510 ecode2 = SWIG_AsVal_int(obj1, &val2);
23511 if (!SWIG_IsOK(ecode2)) {
23512 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OPQMatrix_niter_set" "', argument " "2"" of type '" "int""'");
23514 arg2 =
static_cast< int >(val2);
23515 if (arg1) (arg1)->niter = arg2;
23516 resultobj = SWIG_Py_Void();
23523 SWIGINTERN PyObject *_wrap_OPQMatrix_niter_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23524 PyObject *resultobj = 0;
23528 PyObject * obj0 = 0 ;
23531 if (!PyArg_ParseTuple(args,(
char *)
"O:OPQMatrix_niter_get",&obj0)) SWIG_fail;
23532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
23533 if (!SWIG_IsOK(res1)) {
23534 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_niter_get" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
23537 result = (int) ((arg1)->niter);
23538 resultobj = SWIG_From_int(static_cast< int >(result));
23545 SWIGINTERN PyObject *_wrap_OPQMatrix_niter_pq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23546 PyObject *resultobj = 0;
23553 PyObject * obj0 = 0 ;
23554 PyObject * obj1 = 0 ;
23556 if (!PyArg_ParseTuple(args,(
char *)
"OO:OPQMatrix_niter_pq_set",&obj0,&obj1)) SWIG_fail;
23557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
23558 if (!SWIG_IsOK(res1)) {
23559 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_niter_pq_set" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
23562 ecode2 = SWIG_AsVal_int(obj1, &val2);
23563 if (!SWIG_IsOK(ecode2)) {
23564 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OPQMatrix_niter_pq_set" "', argument " "2"" of type '" "int""'");
23566 arg2 =
static_cast< int >(val2);
23567 if (arg1) (arg1)->niter_pq = arg2;
23568 resultobj = SWIG_Py_Void();
23575 SWIGINTERN PyObject *_wrap_OPQMatrix_niter_pq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23576 PyObject *resultobj = 0;
23580 PyObject * obj0 = 0 ;
23583 if (!PyArg_ParseTuple(args,(
char *)
"O:OPQMatrix_niter_pq_get",&obj0)) SWIG_fail;
23584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
23585 if (!SWIG_IsOK(res1)) {
23586 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_niter_pq_get" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
23589 result = (int) ((arg1)->niter_pq);
23590 resultobj = SWIG_From_int(static_cast< int >(result));
23597 SWIGINTERN PyObject *_wrap_OPQMatrix_niter_pq_0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23598 PyObject *resultobj = 0;
23605 PyObject * obj0 = 0 ;
23606 PyObject * obj1 = 0 ;
23608 if (!PyArg_ParseTuple(args,(
char *)
"OO:OPQMatrix_niter_pq_0_set",&obj0,&obj1)) SWIG_fail;
23609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
23610 if (!SWIG_IsOK(res1)) {
23611 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_niter_pq_0_set" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
23614 ecode2 = SWIG_AsVal_int(obj1, &val2);
23615 if (!SWIG_IsOK(ecode2)) {
23616 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OPQMatrix_niter_pq_0_set" "', argument " "2"" of type '" "int""'");
23618 arg2 =
static_cast< int >(val2);
23619 if (arg1) (arg1)->niter_pq_0 = arg2;
23620 resultobj = SWIG_Py_Void();
23627 SWIGINTERN PyObject *_wrap_OPQMatrix_niter_pq_0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23628 PyObject *resultobj = 0;
23632 PyObject * obj0 = 0 ;
23635 if (!PyArg_ParseTuple(args,(
char *)
"O:OPQMatrix_niter_pq_0_get",&obj0)) SWIG_fail;
23636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
23637 if (!SWIG_IsOK(res1)) {
23638 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_niter_pq_0_get" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
23641 result = (int) ((arg1)->niter_pq_0);
23642 resultobj = SWIG_From_int(static_cast< int >(result));
23649 SWIGINTERN PyObject *_wrap_OPQMatrix_max_train_points_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23650 PyObject *resultobj = 0;
23657 PyObject * obj0 = 0 ;
23658 PyObject * obj1 = 0 ;
23660 if (!PyArg_ParseTuple(args,(
char *)
"OO:OPQMatrix_max_train_points_set",&obj0,&obj1)) SWIG_fail;
23661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
23662 if (!SWIG_IsOK(res1)) {
23663 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_max_train_points_set" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
23666 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23667 if (!SWIG_IsOK(ecode2)) {
23668 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OPQMatrix_max_train_points_set" "', argument " "2"" of type '" "size_t""'");
23670 arg2 =
static_cast< size_t >(val2);
23671 if (arg1) (arg1)->max_train_points = arg2;
23672 resultobj = SWIG_Py_Void();
23679 SWIGINTERN PyObject *_wrap_OPQMatrix_max_train_points_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23680 PyObject *resultobj = 0;
23684 PyObject * obj0 = 0 ;
23687 if (!PyArg_ParseTuple(args,(
char *)
"O:OPQMatrix_max_train_points_get",&obj0)) SWIG_fail;
23688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
23689 if (!SWIG_IsOK(res1)) {
23690 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_max_train_points_get" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
23693 result = (size_t) ((arg1)->max_train_points);
23694 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
23701 SWIGINTERN PyObject *_wrap_OPQMatrix_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23702 PyObject *resultobj = 0;
23709 PyObject * obj0 = 0 ;
23710 PyObject * obj1 = 0 ;
23712 if (!PyArg_ParseTuple(args,(
char *)
"OO:OPQMatrix_verbose_set",&obj0,&obj1)) SWIG_fail;
23713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
23714 if (!SWIG_IsOK(res1)) {
23715 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_verbose_set" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
23718 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23719 if (!SWIG_IsOK(ecode2)) {
23720 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OPQMatrix_verbose_set" "', argument " "2"" of type '" "bool""'");
23722 arg2 =
static_cast< bool >(val2);
23723 if (arg1) (arg1)->verbose = arg2;
23724 resultobj = SWIG_Py_Void();
23731 SWIGINTERN PyObject *_wrap_OPQMatrix_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23732 PyObject *resultobj = 0;
23736 PyObject * obj0 = 0 ;
23739 if (!PyArg_ParseTuple(args,(
char *)
"O:OPQMatrix_verbose_get",&obj0)) SWIG_fail;
23740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
23741 if (!SWIG_IsOK(res1)) {
23742 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_verbose_get" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
23745 result = (bool) ((arg1)->verbose);
23746 resultobj = SWIG_From_bool(static_cast< bool >(result));
23753 SWIGINTERN PyObject *_wrap_OPQMatrix_pq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23754 PyObject *resultobj = 0;
23761 PyObject * obj0 = 0 ;
23762 PyObject * obj1 = 0 ;
23764 if (!PyArg_ParseTuple(args,(
char *)
"OO:OPQMatrix_pq_set",&obj0,&obj1)) SWIG_fail;
23765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
23766 if (!SWIG_IsOK(res1)) {
23767 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_pq_set" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
23770 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ProductQuantizer, SWIG_POINTER_DISOWN | 0 );
23771 if (!SWIG_IsOK(res2)) {
23772 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OPQMatrix_pq_set" "', argument " "2"" of type '" "faiss::ProductQuantizer *""'");
23775 if (arg1) (arg1)->pq = arg2;
23776 resultobj = SWIG_Py_Void();
23783 SWIGINTERN PyObject *_wrap_OPQMatrix_pq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23784 PyObject *resultobj = 0;
23788 PyObject * obj0 = 0 ;
23791 if (!PyArg_ParseTuple(args,(
char *)
"O:OPQMatrix_pq_get",&obj0)) SWIG_fail;
23792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
23793 if (!SWIG_IsOK(res1)) {
23794 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_pq_get" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
23798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
23805 SWIGINTERN PyObject *_wrap_new_OPQMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23806 PyObject *resultobj = 0;
23816 PyObject * obj0 = 0 ;
23817 PyObject * obj1 = 0 ;
23818 PyObject * obj2 = 0 ;
23821 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_OPQMatrix",&obj0,&obj1,&obj2)) SWIG_fail;
23822 ecode1 = SWIG_AsVal_int(obj0, &val1);
23823 if (!SWIG_IsOK(ecode1)) {
23824 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_OPQMatrix" "', argument " "1"" of type '" "int""'");
23826 arg1 =
static_cast< int >(val1);
23827 ecode2 = SWIG_AsVal_int(obj1, &val2);
23828 if (!SWIG_IsOK(ecode2)) {
23829 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_OPQMatrix" "', argument " "2"" of type '" "int""'");
23831 arg2 =
static_cast< int >(val2);
23832 ecode3 = SWIG_AsVal_int(obj2, &val3);
23833 if (!SWIG_IsOK(ecode3)) {
23834 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_OPQMatrix" "', argument " "3"" of type '" "int""'");
23836 arg3 =
static_cast< int >(val3);
23838 Py_BEGIN_ALLOW_THREADS
23842 PyEval_RestoreThread(_save);
23843 PyErr_SetString(PyExc_RuntimeError, e.
what());
23846 Py_END_ALLOW_THREADS
23848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OPQMatrix, SWIG_POINTER_NEW | 0 );
23855 SWIGINTERN PyObject *_wrap_new_OPQMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23856 PyObject *resultobj = 0;
23863 PyObject * obj0 = 0 ;
23864 PyObject * obj1 = 0 ;
23867 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_OPQMatrix",&obj0,&obj1)) SWIG_fail;
23868 ecode1 = SWIG_AsVal_int(obj0, &val1);
23869 if (!SWIG_IsOK(ecode1)) {
23870 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_OPQMatrix" "', argument " "1"" of type '" "int""'");
23872 arg1 =
static_cast< int >(val1);
23873 ecode2 = SWIG_AsVal_int(obj1, &val2);
23874 if (!SWIG_IsOK(ecode2)) {
23875 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_OPQMatrix" "', argument " "2"" of type '" "int""'");
23877 arg2 =
static_cast< int >(val2);
23879 Py_BEGIN_ALLOW_THREADS
23883 PyEval_RestoreThread(_save);
23884 PyErr_SetString(PyExc_RuntimeError, e.
what());
23887 Py_END_ALLOW_THREADS
23889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OPQMatrix, SWIG_POINTER_NEW | 0 );
23896 SWIGINTERN PyObject *_wrap_new_OPQMatrix__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23897 PyObject *resultobj = 0;
23901 PyObject * obj0 = 0 ;
23904 if (!PyArg_ParseTuple(args,(
char *)
"O:new_OPQMatrix",&obj0)) SWIG_fail;
23905 ecode1 = SWIG_AsVal_int(obj0, &val1);
23906 if (!SWIG_IsOK(ecode1)) {
23907 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_OPQMatrix" "', argument " "1"" of type '" "int""'");
23909 arg1 =
static_cast< int >(val1);
23911 Py_BEGIN_ALLOW_THREADS
23915 PyEval_RestoreThread(_save);
23916 PyErr_SetString(PyExc_RuntimeError, e.
what());
23919 Py_END_ALLOW_THREADS
23921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OPQMatrix, SWIG_POINTER_NEW | 0 );
23928 SWIGINTERN PyObject *_wrap_new_OPQMatrix__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23929 PyObject *resultobj = 0;
23932 if (!PyArg_ParseTuple(args,(
char *)
":new_OPQMatrix")) SWIG_fail;
23934 Py_BEGIN_ALLOW_THREADS
23938 PyEval_RestoreThread(_save);
23939 PyErr_SetString(PyExc_RuntimeError, e.
what());
23942 Py_END_ALLOW_THREADS
23944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OPQMatrix, SWIG_POINTER_NEW | 0 );
23951 SWIGINTERN PyObject *_wrap_new_OPQMatrix(PyObject *
self, PyObject *args) {
23953 PyObject *argv[4] = {
23958 if (!PyTuple_Check(args)) SWIG_fail;
23959 argc = args ? PyObject_Length(args) : 0;
23960 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
23961 argv[ii] = PyTuple_GET_ITEM(args,ii);
23964 return _wrap_new_OPQMatrix__SWIG_3(
self, args);
23969 int res = SWIG_AsVal_int(argv[0], NULL);
23970 _v = SWIG_CheckState(res);
23973 return _wrap_new_OPQMatrix__SWIG_2(
self, args);
23979 int res = SWIG_AsVal_int(argv[0], NULL);
23980 _v = SWIG_CheckState(res);
23984 int res = SWIG_AsVal_int(argv[1], NULL);
23985 _v = SWIG_CheckState(res);
23988 return _wrap_new_OPQMatrix__SWIG_1(
self, args);
23995 int res = SWIG_AsVal_int(argv[0], NULL);
23996 _v = SWIG_CheckState(res);
24000 int res = SWIG_AsVal_int(argv[1], NULL);
24001 _v = SWIG_CheckState(res);
24005 int res = SWIG_AsVal_int(argv[2], NULL);
24006 _v = SWIG_CheckState(res);
24009 return _wrap_new_OPQMatrix__SWIG_0(
self, args);
24016 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_OPQMatrix'.\n"
24017 " Possible C/C++ prototypes are:\n"
24018 " faiss::OPQMatrix::OPQMatrix(int,int,int)\n"
24019 " faiss::OPQMatrix::OPQMatrix(int,int)\n"
24020 " faiss::OPQMatrix::OPQMatrix(int)\n"
24021 " faiss::OPQMatrix::OPQMatrix()\n");
24026 SWIGINTERN PyObject *_wrap_OPQMatrix_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24027 PyObject *resultobj = 0;
24030 float *arg3 = (
float *) 0 ;
24037 PyObject * obj0 = 0 ;
24038 PyObject * obj1 = 0 ;
24039 PyObject * obj2 = 0 ;
24041 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OPQMatrix_train",&obj0,&obj1,&obj2)) SWIG_fail;
24042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
24043 if (!SWIG_IsOK(res1)) {
24044 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_train" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
24047 ecode2 = SWIG_AsVal_long(obj1, &val2);
24048 if (!SWIG_IsOK(ecode2)) {
24049 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OPQMatrix_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
24052 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
24053 if (!SWIG_IsOK(res3)) {
24054 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "OPQMatrix_train" "', argument " "3"" of type '" "float const *""'");
24056 arg3 =
reinterpret_cast< float *
>(argp3);
24058 Py_BEGIN_ALLOW_THREADS
24060 (arg1)->train(arg2,(
float const *)arg3);
24062 PyEval_RestoreThread(_save);
24063 PyErr_SetString(PyExc_RuntimeError, e.
what());
24066 Py_END_ALLOW_THREADS
24068 resultobj = SWIG_Py_Void();
24075 SWIGINTERN PyObject *_wrap_delete_OPQMatrix(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24076 PyObject *resultobj = 0;
24080 PyObject * obj0 = 0 ;
24082 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_OPQMatrix",&obj0)) SWIG_fail;
24083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, SWIG_POINTER_DISOWN | 0 );
24084 if (!SWIG_IsOK(res1)) {
24085 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_OPQMatrix" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
24089 resultobj = SWIG_Py_Void();
24096 SWIGINTERN PyObject *OPQMatrix_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24098 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
24099 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__OPQMatrix, SWIG_NewClientData(obj));
24100 return SWIG_Py_Void();
24103 SWIGINTERN PyObject *_wrap_RemapDimensionsTransform_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24104 PyObject *resultobj = 0;
24106 std::vector< int > *arg2 = (std::vector< int > *) 0 ;
24111 PyObject * obj0 = 0 ;
24112 PyObject * obj1 = 0 ;
24114 if (!PyArg_ParseTuple(args,(
char *)
"OO:RemapDimensionsTransform_map_set",&obj0,&obj1)) SWIG_fail;
24115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RemapDimensionsTransform, 0 | 0 );
24116 if (!SWIG_IsOK(res1)) {
24117 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RemapDimensionsTransform_map_set" "', argument " "1"" of type '" "faiss::RemapDimensionsTransform *""'");
24120 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
24121 if (!SWIG_IsOK(res2)) {
24122 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RemapDimensionsTransform_map_set" "', argument " "2"" of type '" "std::vector< int > *""'");
24124 arg2 =
reinterpret_cast< std::vector< int > *
>(argp2);
24125 if (arg1) (arg1)->map = *arg2;
24126 resultobj = SWIG_Py_Void();
24133 SWIGINTERN PyObject *_wrap_RemapDimensionsTransform_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24134 PyObject *resultobj = 0;
24138 PyObject * obj0 = 0 ;
24139 std::vector< int > *result = 0 ;
24141 if (!PyArg_ParseTuple(args,(
char *)
"O:RemapDimensionsTransform_map_get",&obj0)) SWIG_fail;
24142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RemapDimensionsTransform, 0 | 0 );
24143 if (!SWIG_IsOK(res1)) {
24144 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RemapDimensionsTransform_map_get" "', argument " "1"" of type '" "faiss::RemapDimensionsTransform *""'");
24147 result = (std::vector< int > *)& ((arg1)->map);
24148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
24155 SWIGINTERN PyObject *_wrap_new_RemapDimensionsTransform__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24156 PyObject *resultobj = 0;
24159 int *arg3 = (
int *) 0 ;
24166 PyObject * obj0 = 0 ;
24167 PyObject * obj1 = 0 ;
24168 PyObject * obj2 = 0 ;
24171 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_RemapDimensionsTransform",&obj0,&obj1,&obj2)) SWIG_fail;
24172 ecode1 = SWIG_AsVal_int(obj0, &val1);
24173 if (!SWIG_IsOK(ecode1)) {
24174 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_RemapDimensionsTransform" "', argument " "1"" of type '" "int""'");
24176 arg1 =
static_cast< int >(val1);
24177 ecode2 = SWIG_AsVal_int(obj1, &val2);
24178 if (!SWIG_IsOK(ecode2)) {
24179 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_RemapDimensionsTransform" "', argument " "2"" of type '" "int""'");
24181 arg2 =
static_cast< int >(val2);
24182 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
24183 if (!SWIG_IsOK(res3)) {
24184 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_RemapDimensionsTransform" "', argument " "3"" of type '" "int const *""'");
24186 arg3 =
reinterpret_cast< int *
>(argp3);
24188 Py_BEGIN_ALLOW_THREADS
24192 PyEval_RestoreThread(_save);
24193 PyErr_SetString(PyExc_RuntimeError, e.
what());
24196 Py_END_ALLOW_THREADS
24198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RemapDimensionsTransform, SWIG_POINTER_NEW | 0 );
24205 SWIGINTERN PyObject *_wrap_new_RemapDimensionsTransform__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24206 PyObject *resultobj = 0;
24216 PyObject * obj0 = 0 ;
24217 PyObject * obj1 = 0 ;
24218 PyObject * obj2 = 0 ;
24221 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_RemapDimensionsTransform",&obj0,&obj1,&obj2)) SWIG_fail;
24222 ecode1 = SWIG_AsVal_int(obj0, &val1);
24223 if (!SWIG_IsOK(ecode1)) {
24224 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_RemapDimensionsTransform" "', argument " "1"" of type '" "int""'");
24226 arg1 =
static_cast< int >(val1);
24227 ecode2 = SWIG_AsVal_int(obj1, &val2);
24228 if (!SWIG_IsOK(ecode2)) {
24229 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_RemapDimensionsTransform" "', argument " "2"" of type '" "int""'");
24231 arg2 =
static_cast< int >(val2);
24232 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24233 if (!SWIG_IsOK(ecode3)) {
24234 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_RemapDimensionsTransform" "', argument " "3"" of type '" "bool""'");
24236 arg3 =
static_cast< bool >(val3);
24238 Py_BEGIN_ALLOW_THREADS
24242 PyEval_RestoreThread(_save);
24243 PyErr_SetString(PyExc_RuntimeError, e.
what());
24246 Py_END_ALLOW_THREADS
24248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RemapDimensionsTransform, SWIG_POINTER_NEW | 0 );
24255 SWIGINTERN PyObject *_wrap_new_RemapDimensionsTransform__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24256 PyObject *resultobj = 0;
24263 PyObject * obj0 = 0 ;
24264 PyObject * obj1 = 0 ;
24267 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_RemapDimensionsTransform",&obj0,&obj1)) SWIG_fail;
24268 ecode1 = SWIG_AsVal_int(obj0, &val1);
24269 if (!SWIG_IsOK(ecode1)) {
24270 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_RemapDimensionsTransform" "', argument " "1"" of type '" "int""'");
24272 arg1 =
static_cast< int >(val1);
24273 ecode2 = SWIG_AsVal_int(obj1, &val2);
24274 if (!SWIG_IsOK(ecode2)) {
24275 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_RemapDimensionsTransform" "', argument " "2"" of type '" "int""'");
24277 arg2 =
static_cast< int >(val2);
24279 Py_BEGIN_ALLOW_THREADS
24283 PyEval_RestoreThread(_save);
24284 PyErr_SetString(PyExc_RuntimeError, e.
what());
24287 Py_END_ALLOW_THREADS
24289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RemapDimensionsTransform, SWIG_POINTER_NEW | 0 );
24296 SWIGINTERN PyObject *_wrap_RemapDimensionsTransform_apply_noalloc(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24297 PyObject *resultobj = 0;
24299 faiss::VectorTransform::idx_t arg2 ;
24300 float *arg3 = (
float *) 0 ;
24301 float *arg4 = (
float *) 0 ;
24310 PyObject * obj0 = 0 ;
24311 PyObject * obj1 = 0 ;
24312 PyObject * obj2 = 0 ;
24313 PyObject * obj3 = 0 ;
24315 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:RemapDimensionsTransform_apply_noalloc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RemapDimensionsTransform, 0 | 0 );
24317 if (!SWIG_IsOK(res1)) {
24318 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RemapDimensionsTransform_apply_noalloc" "', argument " "1"" of type '" "faiss::RemapDimensionsTransform const *""'");
24321 ecode2 = SWIG_AsVal_long(obj1, &val2);
24322 if (!SWIG_IsOK(ecode2)) {
24323 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RemapDimensionsTransform_apply_noalloc" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
24325 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
24326 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
24327 if (!SWIG_IsOK(res3)) {
24328 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "RemapDimensionsTransform_apply_noalloc" "', argument " "3"" of type '" "float const *""'");
24330 arg3 =
reinterpret_cast< float *
>(argp3);
24331 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
24332 if (!SWIG_IsOK(res4)) {
24333 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "RemapDimensionsTransform_apply_noalloc" "', argument " "4"" of type '" "float *""'");
24335 arg4 =
reinterpret_cast< float *
>(argp4);
24337 Py_BEGIN_ALLOW_THREADS
24341 PyEval_RestoreThread(_save);
24342 PyErr_SetString(PyExc_RuntimeError, e.
what());
24345 Py_END_ALLOW_THREADS
24347 resultobj = SWIG_Py_Void();
24354 SWIGINTERN PyObject *_wrap_RemapDimensionsTransform_reverse_transform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24355 PyObject *resultobj = 0;
24357 faiss::VectorTransform::idx_t arg2 ;
24358 float *arg3 = (
float *) 0 ;
24359 float *arg4 = (
float *) 0 ;
24368 PyObject * obj0 = 0 ;
24369 PyObject * obj1 = 0 ;
24370 PyObject * obj2 = 0 ;
24371 PyObject * obj3 = 0 ;
24373 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:RemapDimensionsTransform_reverse_transform",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RemapDimensionsTransform, 0 | 0 );
24375 if (!SWIG_IsOK(res1)) {
24376 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RemapDimensionsTransform_reverse_transform" "', argument " "1"" of type '" "faiss::RemapDimensionsTransform const *""'");
24379 ecode2 = SWIG_AsVal_long(obj1, &val2);
24380 if (!SWIG_IsOK(ecode2)) {
24381 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RemapDimensionsTransform_reverse_transform" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
24383 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
24384 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
24385 if (!SWIG_IsOK(res3)) {
24386 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "RemapDimensionsTransform_reverse_transform" "', argument " "3"" of type '" "float const *""'");
24388 arg3 =
reinterpret_cast< float *
>(argp3);
24389 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
24390 if (!SWIG_IsOK(res4)) {
24391 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "RemapDimensionsTransform_reverse_transform" "', argument " "4"" of type '" "float *""'");
24393 arg4 =
reinterpret_cast< float *
>(argp4);
24395 Py_BEGIN_ALLOW_THREADS
24399 PyEval_RestoreThread(_save);
24400 PyErr_SetString(PyExc_RuntimeError, e.
what());
24403 Py_END_ALLOW_THREADS
24405 resultobj = SWIG_Py_Void();
24412 SWIGINTERN PyObject *_wrap_new_RemapDimensionsTransform__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24413 PyObject *resultobj = 0;
24416 if (!PyArg_ParseTuple(args,(
char *)
":new_RemapDimensionsTransform")) SWIG_fail;
24418 Py_BEGIN_ALLOW_THREADS
24422 PyEval_RestoreThread(_save);
24423 PyErr_SetString(PyExc_RuntimeError, e.
what());
24426 Py_END_ALLOW_THREADS
24428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RemapDimensionsTransform, SWIG_POINTER_NEW | 0 );
24435 SWIGINTERN PyObject *_wrap_new_RemapDimensionsTransform(PyObject *
self, PyObject *args) {
24437 PyObject *argv[4] = {
24442 if (!PyTuple_Check(args)) SWIG_fail;
24443 argc = args ? PyObject_Length(args) : 0;
24444 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
24445 argv[ii] = PyTuple_GET_ITEM(args,ii);
24448 return _wrap_new_RemapDimensionsTransform__SWIG_3(
self, args);
24453 int res = SWIG_AsVal_int(argv[0], NULL);
24454 _v = SWIG_CheckState(res);
24458 int res = SWIG_AsVal_int(argv[1], NULL);
24459 _v = SWIG_CheckState(res);
24462 return _wrap_new_RemapDimensionsTransform__SWIG_2(
self, args);
24469 int res = SWIG_AsVal_int(argv[0], NULL);
24470 _v = SWIG_CheckState(res);
24474 int res = SWIG_AsVal_int(argv[1], NULL);
24475 _v = SWIG_CheckState(res);
24479 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
24480 _v = SWIG_CheckState(res);
24482 return _wrap_new_RemapDimensionsTransform__SWIG_0(
self, args);
24490 int res = SWIG_AsVal_int(argv[0], NULL);
24491 _v = SWIG_CheckState(res);
24495 int res = SWIG_AsVal_int(argv[1], NULL);
24496 _v = SWIG_CheckState(res);
24500 int res = SWIG_AsVal_bool(argv[2], NULL);
24501 _v = SWIG_CheckState(res);
24504 return _wrap_new_RemapDimensionsTransform__SWIG_1(
self, args);
24511 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_RemapDimensionsTransform'.\n"
24512 " Possible C/C++ prototypes are:\n"
24513 " faiss::RemapDimensionsTransform::RemapDimensionsTransform(int,int,int const *)\n"
24514 " faiss::RemapDimensionsTransform::RemapDimensionsTransform(int,int,bool)\n"
24515 " faiss::RemapDimensionsTransform::RemapDimensionsTransform(int,int)\n"
24516 " faiss::RemapDimensionsTransform::RemapDimensionsTransform()\n");
24521 SWIGINTERN PyObject *_wrap_delete_RemapDimensionsTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24522 PyObject *resultobj = 0;
24526 PyObject * obj0 = 0 ;
24528 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RemapDimensionsTransform",&obj0)) SWIG_fail;
24529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RemapDimensionsTransform, SWIG_POINTER_DISOWN | 0 );
24530 if (!SWIG_IsOK(res1)) {
24531 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RemapDimensionsTransform" "', argument " "1"" of type '" "faiss::RemapDimensionsTransform *""'");
24535 resultobj = SWIG_Py_Void();
24542 SWIGINTERN PyObject *RemapDimensionsTransform_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24544 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
24545 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__RemapDimensionsTransform, SWIG_NewClientData(obj));
24546 return SWIG_Py_Void();
24549 SWIGINTERN PyObject *_wrap_NormalizationTransform_norm_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24550 PyObject *resultobj = 0;
24557 PyObject * obj0 = 0 ;
24558 PyObject * obj1 = 0 ;
24560 if (!PyArg_ParseTuple(args,(
char *)
"OO:NormalizationTransform_norm_set",&obj0,&obj1)) SWIG_fail;
24561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__NormalizationTransform, 0 | 0 );
24562 if (!SWIG_IsOK(res1)) {
24563 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "NormalizationTransform_norm_set" "', argument " "1"" of type '" "faiss::NormalizationTransform *""'");
24566 ecode2 = SWIG_AsVal_float(obj1, &val2);
24567 if (!SWIG_IsOK(ecode2)) {
24568 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "NormalizationTransform_norm_set" "', argument " "2"" of type '" "float""'");
24570 arg2 =
static_cast< float >(val2);
24571 if (arg1) (arg1)->norm = arg2;
24572 resultobj = SWIG_Py_Void();
24579 SWIGINTERN PyObject *_wrap_NormalizationTransform_norm_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24580 PyObject *resultobj = 0;
24584 PyObject * obj0 = 0 ;
24587 if (!PyArg_ParseTuple(args,(
char *)
"O:NormalizationTransform_norm_get",&obj0)) SWIG_fail;
24588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__NormalizationTransform, 0 | 0 );
24589 if (!SWIG_IsOK(res1)) {
24590 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "NormalizationTransform_norm_get" "', argument " "1"" of type '" "faiss::NormalizationTransform *""'");
24593 result = (float) ((arg1)->norm);
24594 resultobj = SWIG_From_float(static_cast< float >(result));
24601 SWIGINTERN PyObject *_wrap_new_NormalizationTransform__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24602 PyObject *resultobj = 0;
24609 PyObject * obj0 = 0 ;
24610 PyObject * obj1 = 0 ;
24613 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_NormalizationTransform",&obj0,&obj1)) SWIG_fail;
24614 ecode1 = SWIG_AsVal_int(obj0, &val1);
24615 if (!SWIG_IsOK(ecode1)) {
24616 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_NormalizationTransform" "', argument " "1"" of type '" "int""'");
24618 arg1 =
static_cast< int >(val1);
24619 ecode2 = SWIG_AsVal_float(obj1, &val2);
24620 if (!SWIG_IsOK(ecode2)) {
24621 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_NormalizationTransform" "', argument " "2"" of type '" "float""'");
24623 arg2 =
static_cast< float >(val2);
24625 Py_BEGIN_ALLOW_THREADS
24629 PyEval_RestoreThread(_save);
24630 PyErr_SetString(PyExc_RuntimeError, e.
what());
24633 Py_END_ALLOW_THREADS
24635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__NormalizationTransform, SWIG_POINTER_NEW | 0 );
24642 SWIGINTERN PyObject *_wrap_new_NormalizationTransform__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24643 PyObject *resultobj = 0;
24647 PyObject * obj0 = 0 ;
24650 if (!PyArg_ParseTuple(args,(
char *)
"O:new_NormalizationTransform",&obj0)) SWIG_fail;
24651 ecode1 = SWIG_AsVal_int(obj0, &val1);
24652 if (!SWIG_IsOK(ecode1)) {
24653 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_NormalizationTransform" "', argument " "1"" of type '" "int""'");
24655 arg1 =
static_cast< int >(val1);
24657 Py_BEGIN_ALLOW_THREADS
24661 PyEval_RestoreThread(_save);
24662 PyErr_SetString(PyExc_RuntimeError, e.
what());
24665 Py_END_ALLOW_THREADS
24667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__NormalizationTransform, SWIG_POINTER_NEW | 0 );
24674 SWIGINTERN PyObject *_wrap_new_NormalizationTransform__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24675 PyObject *resultobj = 0;
24678 if (!PyArg_ParseTuple(args,(
char *)
":new_NormalizationTransform")) SWIG_fail;
24680 Py_BEGIN_ALLOW_THREADS
24684 PyEval_RestoreThread(_save);
24685 PyErr_SetString(PyExc_RuntimeError, e.
what());
24688 Py_END_ALLOW_THREADS
24690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__NormalizationTransform, SWIG_POINTER_NEW | 0 );
24697 SWIGINTERN PyObject *_wrap_new_NormalizationTransform(PyObject *
self, PyObject *args) {
24699 PyObject *argv[3] = {
24704 if (!PyTuple_Check(args)) SWIG_fail;
24705 argc = args ? PyObject_Length(args) : 0;
24706 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
24707 argv[ii] = PyTuple_GET_ITEM(args,ii);
24710 return _wrap_new_NormalizationTransform__SWIG_2(
self, args);
24715 int res = SWIG_AsVal_int(argv[0], NULL);
24716 _v = SWIG_CheckState(res);
24719 return _wrap_new_NormalizationTransform__SWIG_1(
self, args);
24725 int res = SWIG_AsVal_int(argv[0], NULL);
24726 _v = SWIG_CheckState(res);
24730 int res = SWIG_AsVal_float(argv[1], NULL);
24731 _v = SWIG_CheckState(res);
24734 return _wrap_new_NormalizationTransform__SWIG_0(
self, args);
24740 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_NormalizationTransform'.\n"
24741 " Possible C/C++ prototypes are:\n"
24742 " faiss::NormalizationTransform::NormalizationTransform(int,float)\n"
24743 " faiss::NormalizationTransform::NormalizationTransform(int)\n"
24744 " faiss::NormalizationTransform::NormalizationTransform()\n");
24749 SWIGINTERN PyObject *_wrap_NormalizationTransform_apply_noalloc(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24750 PyObject *resultobj = 0;
24752 faiss::VectorTransform::idx_t arg2 ;
24753 float *arg3 = (
float *) 0 ;
24754 float *arg4 = (
float *) 0 ;
24763 PyObject * obj0 = 0 ;
24764 PyObject * obj1 = 0 ;
24765 PyObject * obj2 = 0 ;
24766 PyObject * obj3 = 0 ;
24768 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:NormalizationTransform_apply_noalloc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__NormalizationTransform, 0 | 0 );
24770 if (!SWIG_IsOK(res1)) {
24771 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "NormalizationTransform_apply_noalloc" "', argument " "1"" of type '" "faiss::NormalizationTransform const *""'");
24774 ecode2 = SWIG_AsVal_long(obj1, &val2);
24775 if (!SWIG_IsOK(ecode2)) {
24776 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "NormalizationTransform_apply_noalloc" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
24778 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
24779 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
24780 if (!SWIG_IsOK(res3)) {
24781 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "NormalizationTransform_apply_noalloc" "', argument " "3"" of type '" "float const *""'");
24783 arg3 =
reinterpret_cast< float *
>(argp3);
24784 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
24785 if (!SWIG_IsOK(res4)) {
24786 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "NormalizationTransform_apply_noalloc" "', argument " "4"" of type '" "float *""'");
24788 arg4 =
reinterpret_cast< float *
>(argp4);
24790 Py_BEGIN_ALLOW_THREADS
24794 PyEval_RestoreThread(_save);
24795 PyErr_SetString(PyExc_RuntimeError, e.
what());
24798 Py_END_ALLOW_THREADS
24800 resultobj = SWIG_Py_Void();
24807 SWIGINTERN PyObject *_wrap_NormalizationTransform_reverse_transform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24808 PyObject *resultobj = 0;
24810 faiss::VectorTransform::idx_t arg2 ;
24811 float *arg3 = (
float *) 0 ;
24812 float *arg4 = (
float *) 0 ;
24821 PyObject * obj0 = 0 ;
24822 PyObject * obj1 = 0 ;
24823 PyObject * obj2 = 0 ;
24824 PyObject * obj3 = 0 ;
24826 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:NormalizationTransform_reverse_transform",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__NormalizationTransform, 0 | 0 );
24828 if (!SWIG_IsOK(res1)) {
24829 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "NormalizationTransform_reverse_transform" "', argument " "1"" of type '" "faiss::NormalizationTransform const *""'");
24832 ecode2 = SWIG_AsVal_long(obj1, &val2);
24833 if (!SWIG_IsOK(ecode2)) {
24834 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "NormalizationTransform_reverse_transform" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
24836 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
24837 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
24838 if (!SWIG_IsOK(res3)) {
24839 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "NormalizationTransform_reverse_transform" "', argument " "3"" of type '" "float const *""'");
24841 arg3 =
reinterpret_cast< float *
>(argp3);
24842 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
24843 if (!SWIG_IsOK(res4)) {
24844 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "NormalizationTransform_reverse_transform" "', argument " "4"" of type '" "float *""'");
24846 arg4 =
reinterpret_cast< float *
>(argp4);
24848 Py_BEGIN_ALLOW_THREADS
24852 PyEval_RestoreThread(_save);
24853 PyErr_SetString(PyExc_RuntimeError, e.
what());
24856 Py_END_ALLOW_THREADS
24858 resultobj = SWIG_Py_Void();
24865 SWIGINTERN PyObject *_wrap_delete_NormalizationTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24866 PyObject *resultobj = 0;
24870 PyObject * obj0 = 0 ;
24872 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_NormalizationTransform",&obj0)) SWIG_fail;
24873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__NormalizationTransform, SWIG_POINTER_DISOWN | 0 );
24874 if (!SWIG_IsOK(res1)) {
24875 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_NormalizationTransform" "', argument " "1"" of type '" "faiss::NormalizationTransform *""'");
24879 resultobj = SWIG_Py_Void();
24886 SWIGINTERN PyObject *NormalizationTransform_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24888 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
24889 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__NormalizationTransform, SWIG_NewClientData(obj));
24890 return SWIG_Py_Void();
24893 SWIGINTERN PyObject *_wrap_IndexPreTransform_chain_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24894 PyObject *resultobj = 0;
24896 std::vector< faiss::VectorTransform * > *arg2 = (std::vector< faiss::VectorTransform * > *) 0 ;
24901 PyObject * obj0 = 0 ;
24902 PyObject * obj1 = 0 ;
24904 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPreTransform_chain_set",&obj0,&obj1)) SWIG_fail;
24905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
24906 if (!SWIG_IsOK(res1)) {
24907 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_chain_set" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
24910 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
24911 if (!SWIG_IsOK(res2)) {
24912 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPreTransform_chain_set" "', argument " "2"" of type '" "std::vector< faiss::VectorTransform * > *""'");
24914 arg2 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp2);
24915 if (arg1) (arg1)->chain = *arg2;
24916 resultobj = SWIG_Py_Void();
24923 SWIGINTERN PyObject *_wrap_IndexPreTransform_chain_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24924 PyObject *resultobj = 0;
24928 PyObject * obj0 = 0 ;
24929 std::vector< faiss::VectorTransform * > *result = 0 ;
24931 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPreTransform_chain_get",&obj0)) SWIG_fail;
24932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
24933 if (!SWIG_IsOK(res1)) {
24934 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_chain_get" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
24937 result = (std::vector< faiss::VectorTransform * > *)& ((arg1)->chain);
24938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
24945 SWIGINTERN PyObject *_wrap_IndexPreTransform_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24946 PyObject *resultobj = 0;
24953 PyObject * obj0 = 0 ;
24954 PyObject * obj1 = 0 ;
24956 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPreTransform_index_set",&obj0,&obj1)) SWIG_fail;
24957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
24958 if (!SWIG_IsOK(res1)) {
24959 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_index_set" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
24962 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
24963 if (!SWIG_IsOK(res2)) {
24964 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPreTransform_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
24967 if (arg1) (arg1)->index = arg2;
24968 resultobj = SWIG_Py_Void();
24975 SWIGINTERN PyObject *_wrap_IndexPreTransform_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24976 PyObject *resultobj = 0;
24980 PyObject * obj0 = 0 ;
24983 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPreTransform_index_get",&obj0)) SWIG_fail;
24984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
24985 if (!SWIG_IsOK(res1)) {
24986 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_index_get" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
24990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
24997 SWIGINTERN PyObject *_wrap_IndexPreTransform_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24998 PyObject *resultobj = 0;
25005 PyObject * obj0 = 0 ;
25006 PyObject * obj1 = 0 ;
25008 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPreTransform_own_fields_set",&obj0,&obj1)) SWIG_fail;
25009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
25010 if (!SWIG_IsOK(res1)) {
25011 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_own_fields_set" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
25014 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25015 if (!SWIG_IsOK(ecode2)) {
25016 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_own_fields_set" "', argument " "2"" of type '" "bool""'");
25018 arg2 =
static_cast< bool >(val2);
25019 if (arg1) (arg1)->own_fields = arg2;
25020 resultobj = SWIG_Py_Void();
25027 SWIGINTERN PyObject *_wrap_IndexPreTransform_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25028 PyObject *resultobj = 0;
25032 PyObject * obj0 = 0 ;
25035 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPreTransform_own_fields_get",&obj0)) SWIG_fail;
25036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
25037 if (!SWIG_IsOK(res1)) {
25038 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_own_fields_get" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
25041 result = (bool) ((arg1)->own_fields);
25042 resultobj = SWIG_From_bool(static_cast< bool >(result));
25049 SWIGINTERN PyObject *_wrap_new_IndexPreTransform__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25050 PyObject *resultobj = 0;
25054 PyObject * obj0 = 0 ;
25057 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexPreTransform",&obj0)) SWIG_fail;
25058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
25059 if (!SWIG_IsOK(res1)) {
25060 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexPreTransform" "', argument " "1"" of type '" "faiss::Index *""'");
25064 Py_BEGIN_ALLOW_THREADS
25068 PyEval_RestoreThread(_save);
25069 PyErr_SetString(PyExc_RuntimeError, e.
what());
25072 Py_END_ALLOW_THREADS
25074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexPreTransform, SWIG_POINTER_NEW | 0 );
25081 SWIGINTERN PyObject *_wrap_new_IndexPreTransform__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25082 PyObject *resultobj = 0;
25085 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexPreTransform")) SWIG_fail;
25087 Py_BEGIN_ALLOW_THREADS
25091 PyEval_RestoreThread(_save);
25092 PyErr_SetString(PyExc_RuntimeError, e.
what());
25095 Py_END_ALLOW_THREADS
25097 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexPreTransform, SWIG_POINTER_NEW | 0 );
25104 SWIGINTERN PyObject *_wrap_new_IndexPreTransform__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25105 PyObject *resultobj = 0;
25112 PyObject * obj0 = 0 ;
25113 PyObject * obj1 = 0 ;
25116 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexPreTransform",&obj0,&obj1)) SWIG_fail;
25117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
25118 if (!SWIG_IsOK(res1)) {
25119 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexPreTransform" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
25122 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
25123 if (!SWIG_IsOK(res2)) {
25124 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_IndexPreTransform" "', argument " "2"" of type '" "faiss::Index *""'");
25128 Py_BEGIN_ALLOW_THREADS
25132 PyEval_RestoreThread(_save);
25133 PyErr_SetString(PyExc_RuntimeError, e.
what());
25136 Py_END_ALLOW_THREADS
25138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexPreTransform, SWIG_POINTER_NEW | 0 );
25145 SWIGINTERN PyObject *_wrap_new_IndexPreTransform(PyObject *
self, PyObject *args) {
25147 PyObject *argv[3] = {
25152 if (!PyTuple_Check(args)) SWIG_fail;
25153 argc = args ? PyObject_Length(args) : 0;
25154 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
25155 argv[ii] = PyTuple_GET_ITEM(args,ii);
25158 return _wrap_new_IndexPreTransform__SWIG_1(
self, args);
25163 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
25164 _v = SWIG_CheckState(res);
25166 return _wrap_new_IndexPreTransform__SWIG_0(
self, args);
25172 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__VectorTransform, 0);
25173 _v = SWIG_CheckState(res);
25176 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__Index, 0);
25177 _v = SWIG_CheckState(res);
25179 return _wrap_new_IndexPreTransform__SWIG_2(
self, args);
25185 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexPreTransform'.\n"
25186 " Possible C/C++ prototypes are:\n"
25187 " faiss::IndexPreTransform::IndexPreTransform(faiss::Index *)\n"
25188 " faiss::IndexPreTransform::IndexPreTransform()\n"
25189 " faiss::IndexPreTransform::IndexPreTransform(faiss::VectorTransform *,faiss::Index *)\n");
25194 SWIGINTERN PyObject *_wrap_IndexPreTransform_prepend_transform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25195 PyObject *resultobj = 0;
25202 PyObject * obj0 = 0 ;
25203 PyObject * obj1 = 0 ;
25205 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPreTransform_prepend_transform",&obj0,&obj1)) SWIG_fail;
25206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
25207 if (!SWIG_IsOK(res1)) {
25208 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_prepend_transform" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
25211 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
25212 if (!SWIG_IsOK(res2)) {
25213 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPreTransform_prepend_transform" "', argument " "2"" of type '" "faiss::VectorTransform *""'");
25217 Py_BEGIN_ALLOW_THREADS
25219 (arg1)->prepend_transform(arg2);
25221 PyEval_RestoreThread(_save);
25222 PyErr_SetString(PyExc_RuntimeError, e.
what());
25225 Py_END_ALLOW_THREADS
25227 resultobj = SWIG_Py_Void();
25234 SWIGINTERN PyObject *_wrap_IndexPreTransform_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25235 PyObject *resultobj = 0;
25238 float *arg3 = (
float *) 0 ;
25245 PyObject * obj0 = 0 ;
25246 PyObject * obj1 = 0 ;
25247 PyObject * obj2 = 0 ;
25249 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexPreTransform_train",&obj0,&obj1,&obj2)) SWIG_fail;
25250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
25251 if (!SWIG_IsOK(res1)) {
25252 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_train" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
25255 ecode2 = SWIG_AsVal_long(obj1, &val2);
25256 if (!SWIG_IsOK(ecode2)) {
25257 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
25260 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
25261 if (!SWIG_IsOK(res3)) {
25262 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_train" "', argument " "3"" of type '" "float const *""'");
25264 arg3 =
reinterpret_cast< float *
>(argp3);
25266 Py_BEGIN_ALLOW_THREADS
25268 (arg1)->train(arg2,(
float const *)arg3);
25270 PyEval_RestoreThread(_save);
25271 PyErr_SetString(PyExc_RuntimeError, e.
what());
25274 Py_END_ALLOW_THREADS
25276 resultobj = SWIG_Py_Void();
25283 SWIGINTERN PyObject *_wrap_IndexPreTransform_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25284 PyObject *resultobj = 0;
25287 float *arg3 = (
float *) 0 ;
25294 PyObject * obj0 = 0 ;
25295 PyObject * obj1 = 0 ;
25296 PyObject * obj2 = 0 ;
25298 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexPreTransform_add",&obj0,&obj1,&obj2)) SWIG_fail;
25299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
25300 if (!SWIG_IsOK(res1)) {
25301 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_add" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
25304 ecode2 = SWIG_AsVal_long(obj1, &val2);
25305 if (!SWIG_IsOK(ecode2)) {
25306 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
25309 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
25310 if (!SWIG_IsOK(res3)) {
25311 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_add" "', argument " "3"" of type '" "float const *""'");
25313 arg3 =
reinterpret_cast< float *
>(argp3);
25315 Py_BEGIN_ALLOW_THREADS
25317 (arg1)->add(arg2,(
float const *)arg3);
25319 PyEval_RestoreThread(_save);
25320 PyErr_SetString(PyExc_RuntimeError, e.
what());
25323 Py_END_ALLOW_THREADS
25325 resultobj = SWIG_Py_Void();
25332 SWIGINTERN PyObject *_wrap_IndexPreTransform_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25333 PyObject *resultobj = 0;
25336 float *arg3 = (
float *) 0 ;
25337 long *arg4 = (
long *) 0 ;
25346 PyObject * obj0 = 0 ;
25347 PyObject * obj1 = 0 ;
25348 PyObject * obj2 = 0 ;
25349 PyObject * obj3 = 0 ;
25351 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexPreTransform_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
25353 if (!SWIG_IsOK(res1)) {
25354 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_add_with_ids" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
25357 ecode2 = SWIG_AsVal_long(obj1, &val2);
25358 if (!SWIG_IsOK(ecode2)) {
25359 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
25362 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
25363 if (!SWIG_IsOK(res3)) {
25364 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_add_with_ids" "', argument " "3"" of type '" "float const *""'");
25366 arg3 =
reinterpret_cast< float *
>(argp3);
25367 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
25368 if (!SWIG_IsOK(res4)) {
25369 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexPreTransform_add_with_ids" "', argument " "4"" of type '" "long const *""'");
25371 arg4 =
reinterpret_cast< long *
>(argp4);
25373 Py_BEGIN_ALLOW_THREADS
25375 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
25377 PyEval_RestoreThread(_save);
25378 PyErr_SetString(PyExc_RuntimeError, e.
what());
25381 Py_END_ALLOW_THREADS
25383 resultobj = SWIG_Py_Void();
25390 SWIGINTERN PyObject *_wrap_IndexPreTransform_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25391 PyObject *resultobj = 0;
25395 PyObject * obj0 = 0 ;
25397 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPreTransform_reset",&obj0)) SWIG_fail;
25398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
25399 if (!SWIG_IsOK(res1)) {
25400 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_reset" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
25404 Py_BEGIN_ALLOW_THREADS
25408 PyEval_RestoreThread(_save);
25409 PyErr_SetString(PyExc_RuntimeError, e.
what());
25412 Py_END_ALLOW_THREADS
25414 resultobj = SWIG_Py_Void();
25421 SWIGINTERN PyObject *_wrap_IndexPreTransform_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25422 PyObject *resultobj = 0;
25429 PyObject * obj0 = 0 ;
25430 PyObject * obj1 = 0 ;
25433 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPreTransform_remove_ids",&obj0,&obj1)) SWIG_fail;
25434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
25435 if (!SWIG_IsOK(res1)) {
25436 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_remove_ids" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
25439 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
25440 if (!SWIG_IsOK(res2)) {
25441 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPreTransform_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
25444 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexPreTransform_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
25448 Py_BEGIN_ALLOW_THREADS
25452 PyEval_RestoreThread(_save);
25453 PyErr_SetString(PyExc_RuntimeError, e.
what());
25456 Py_END_ALLOW_THREADS
25458 resultobj = SWIG_From_long(static_cast< long >(result));
25465 SWIGINTERN PyObject *_wrap_IndexPreTransform_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25466 PyObject *resultobj = 0;
25469 float *arg3 = (
float *) 0 ;
25471 float *arg5 = (
float *) 0 ;
25485 PyObject * obj0 = 0 ;
25486 PyObject * obj1 = 0 ;
25487 PyObject * obj2 = 0 ;
25488 PyObject * obj3 = 0 ;
25489 PyObject * obj4 = 0 ;
25490 PyObject * obj5 = 0 ;
25492 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexPreTransform_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
25494 if (!SWIG_IsOK(res1)) {
25495 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_search" "', argument " "1"" of type '" "faiss::IndexPreTransform const *""'");
25498 ecode2 = SWIG_AsVal_long(obj1, &val2);
25499 if (!SWIG_IsOK(ecode2)) {
25500 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
25503 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
25504 if (!SWIG_IsOK(res3)) {
25505 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_search" "', argument " "3"" of type '" "float const *""'");
25507 arg3 =
reinterpret_cast< float *
>(argp3);
25508 ecode4 = SWIG_AsVal_long(obj3, &val4);
25509 if (!SWIG_IsOK(ecode4)) {
25510 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexPreTransform_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
25513 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
25514 if (!SWIG_IsOK(res5)) {
25515 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexPreTransform_search" "', argument " "5"" of type '" "float *""'");
25517 arg5 =
reinterpret_cast< float *
>(argp5);
25518 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
25519 if (!SWIG_IsOK(res6)) {
25520 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexPreTransform_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
25524 Py_BEGIN_ALLOW_THREADS
25528 PyEval_RestoreThread(_save);
25529 PyErr_SetString(PyExc_RuntimeError, e.
what());
25532 Py_END_ALLOW_THREADS
25534 resultobj = SWIG_Py_Void();
25541 SWIGINTERN PyObject *_wrap_IndexPreTransform_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25542 PyObject *resultobj = 0;
25545 float *arg3 = (
float *) 0 ;
25552 PyObject * obj0 = 0 ;
25553 PyObject * obj1 = 0 ;
25554 PyObject * obj2 = 0 ;
25556 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexPreTransform_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
25557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
25558 if (!SWIG_IsOK(res1)) {
25559 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_reconstruct" "', argument " "1"" of type '" "faiss::IndexPreTransform const *""'");
25562 ecode2 = SWIG_AsVal_long(obj1, &val2);
25563 if (!SWIG_IsOK(ecode2)) {
25564 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
25567 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
25568 if (!SWIG_IsOK(res3)) {
25569 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_reconstruct" "', argument " "3"" of type '" "float *""'");
25571 arg3 =
reinterpret_cast< float *
>(argp3);
25573 Py_BEGIN_ALLOW_THREADS
25577 PyEval_RestoreThread(_save);
25578 PyErr_SetString(PyExc_RuntimeError, e.
what());
25581 Py_END_ALLOW_THREADS
25583 resultobj = SWIG_Py_Void();
25590 SWIGINTERN PyObject *_wrap_IndexPreTransform_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25591 PyObject *resultobj = 0;
25595 float *arg4 = (
float *) 0 ;
25604 PyObject * obj0 = 0 ;
25605 PyObject * obj1 = 0 ;
25606 PyObject * obj2 = 0 ;
25607 PyObject * obj3 = 0 ;
25609 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexPreTransform_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
25611 if (!SWIG_IsOK(res1)) {
25612 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_reconstruct_n" "', argument " "1"" of type '" "faiss::IndexPreTransform const *""'");
25615 ecode2 = SWIG_AsVal_long(obj1, &val2);
25616 if (!SWIG_IsOK(ecode2)) {
25617 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_reconstruct_n" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
25620 ecode3 = SWIG_AsVal_long(obj2, &val3);
25621 if (!SWIG_IsOK(ecode3)) {
25622 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexPreTransform_reconstruct_n" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
25625 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
25626 if (!SWIG_IsOK(res4)) {
25627 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexPreTransform_reconstruct_n" "', argument " "4"" of type '" "float *""'");
25629 arg4 =
reinterpret_cast< float *
>(argp4);
25631 Py_BEGIN_ALLOW_THREADS
25635 PyEval_RestoreThread(_save);
25636 PyErr_SetString(PyExc_RuntimeError, e.
what());
25639 Py_END_ALLOW_THREADS
25641 resultobj = SWIG_Py_Void();
25648 SWIGINTERN PyObject *_wrap_IndexPreTransform_search_and_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25649 PyObject *resultobj = 0;
25652 float *arg3 = (
float *) 0 ;
25654 float *arg5 = (
float *) 0 ;
25656 float *arg7 = (
float *) 0 ;
25671 PyObject * obj0 = 0 ;
25672 PyObject * obj1 = 0 ;
25673 PyObject * obj2 = 0 ;
25674 PyObject * obj3 = 0 ;
25675 PyObject * obj4 = 0 ;
25676 PyObject * obj5 = 0 ;
25677 PyObject * obj6 = 0 ;
25679 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:IndexPreTransform_search_and_reconstruct",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
25681 if (!SWIG_IsOK(res1)) {
25682 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_search_and_reconstruct" "', argument " "1"" of type '" "faiss::IndexPreTransform const *""'");
25685 ecode2 = SWIG_AsVal_long(obj1, &val2);
25686 if (!SWIG_IsOK(ecode2)) {
25687 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_search_and_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
25690 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
25691 if (!SWIG_IsOK(res3)) {
25692 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_search_and_reconstruct" "', argument " "3"" of type '" "float const *""'");
25694 arg3 =
reinterpret_cast< float *
>(argp3);
25695 ecode4 = SWIG_AsVal_long(obj3, &val4);
25696 if (!SWIG_IsOK(ecode4)) {
25697 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexPreTransform_search_and_reconstruct" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
25700 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
25701 if (!SWIG_IsOK(res5)) {
25702 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexPreTransform_search_and_reconstruct" "', argument " "5"" of type '" "float *""'");
25704 arg5 =
reinterpret_cast< float *
>(argp5);
25705 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
25706 if (!SWIG_IsOK(res6)) {
25707 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexPreTransform_search_and_reconstruct" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
25710 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
25711 if (!SWIG_IsOK(res7)) {
25712 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexPreTransform_search_and_reconstruct" "', argument " "7"" of type '" "float *""'");
25714 arg7 =
reinterpret_cast< float *
>(argp7);
25716 Py_BEGIN_ALLOW_THREADS
25720 PyEval_RestoreThread(_save);
25721 PyErr_SetString(PyExc_RuntimeError, e.
what());
25724 Py_END_ALLOW_THREADS
25726 resultobj = SWIG_Py_Void();
25733 SWIGINTERN PyObject *_wrap_IndexPreTransform_apply_chain(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25734 PyObject *resultobj = 0;
25737 float *arg3 = (
float *) 0 ;
25744 PyObject * obj0 = 0 ;
25745 PyObject * obj1 = 0 ;
25746 PyObject * obj2 = 0 ;
25747 float *result = 0 ;
25749 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexPreTransform_apply_chain",&obj0,&obj1,&obj2)) SWIG_fail;
25750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
25751 if (!SWIG_IsOK(res1)) {
25752 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_apply_chain" "', argument " "1"" of type '" "faiss::IndexPreTransform const *""'");
25755 ecode2 = SWIG_AsVal_long(obj1, &val2);
25756 if (!SWIG_IsOK(ecode2)) {
25757 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_apply_chain" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
25760 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
25761 if (!SWIG_IsOK(res3)) {
25762 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_apply_chain" "', argument " "3"" of type '" "float const *""'");
25764 arg3 =
reinterpret_cast< float *
>(argp3);
25766 Py_BEGIN_ALLOW_THREADS
25770 PyEval_RestoreThread(_save);
25771 PyErr_SetString(PyExc_RuntimeError, e.
what());
25774 Py_END_ALLOW_THREADS
25776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
25783 SWIGINTERN PyObject *_wrap_IndexPreTransform_reverse_chain(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25784 PyObject *resultobj = 0;
25787 float *arg3 = (
float *) 0 ;
25788 float *arg4 = (
float *) 0 ;
25797 PyObject * obj0 = 0 ;
25798 PyObject * obj1 = 0 ;
25799 PyObject * obj2 = 0 ;
25800 PyObject * obj3 = 0 ;
25802 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexPreTransform_reverse_chain",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
25804 if (!SWIG_IsOK(res1)) {
25805 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_reverse_chain" "', argument " "1"" of type '" "faiss::IndexPreTransform const *""'");
25808 ecode2 = SWIG_AsVal_long(obj1, &val2);
25809 if (!SWIG_IsOK(ecode2)) {
25810 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_reverse_chain" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
25813 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
25814 if (!SWIG_IsOK(res3)) {
25815 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_reverse_chain" "', argument " "3"" of type '" "float const *""'");
25817 arg3 =
reinterpret_cast< float *
>(argp3);
25818 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
25819 if (!SWIG_IsOK(res4)) {
25820 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexPreTransform_reverse_chain" "', argument " "4"" of type '" "float *""'");
25822 arg4 =
reinterpret_cast< float *
>(argp4);
25824 Py_BEGIN_ALLOW_THREADS
25828 PyEval_RestoreThread(_save);
25829 PyErr_SetString(PyExc_RuntimeError, e.
what());
25832 Py_END_ALLOW_THREADS
25834 resultobj = SWIG_Py_Void();
25841 SWIGINTERN PyObject *_wrap_delete_IndexPreTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25842 PyObject *resultobj = 0;
25846 PyObject * obj0 = 0 ;
25848 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexPreTransform",&obj0)) SWIG_fail;
25849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, SWIG_POINTER_DISOWN | 0 );
25850 if (!SWIG_IsOK(res1)) {
25851 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexPreTransform" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
25855 Py_BEGIN_ALLOW_THREADS
25859 PyEval_RestoreThread(_save);
25860 PyErr_SetString(PyExc_RuntimeError, e.
what());
25863 Py_END_ALLOW_THREADS
25865 resultobj = SWIG_Py_Void();
25872 SWIGINTERN PyObject *IndexPreTransform_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25874 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
25875 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexPreTransform, SWIG_NewClientData(obj));
25876 return SWIG_Py_Void();
25879 SWIGINTERN PyObject *_wrap_IndexFlat_xb_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25880 PyObject *resultobj = 0;
25882 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
25887 PyObject * obj0 = 0 ;
25888 PyObject * obj1 = 0 ;
25890 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexFlat_xb_set",&obj0,&obj1)) SWIG_fail;
25891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
25892 if (!SWIG_IsOK(res1)) {
25893 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_xb_set" "', argument " "1"" of type '" "faiss::IndexFlat *""'");
25896 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
25897 if (!SWIG_IsOK(res2)) {
25898 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexFlat_xb_set" "', argument " "2"" of type '" "std::vector< float > *""'");
25900 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
25901 if (arg1) (arg1)->xb = *arg2;
25902 resultobj = SWIG_Py_Void();
25909 SWIGINTERN PyObject *_wrap_IndexFlat_xb_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25910 PyObject *resultobj = 0;
25914 PyObject * obj0 = 0 ;
25915 std::vector< float > *result = 0 ;
25917 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexFlat_xb_get",&obj0)) SWIG_fail;
25918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
25919 if (!SWIG_IsOK(res1)) {
25920 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_xb_get" "', argument " "1"" of type '" "faiss::IndexFlat *""'");
25923 result = (std::vector< float > *)& ((arg1)->xb);
25924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
25931 SWIGINTERN PyObject *_wrap_new_IndexFlat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25932 PyObject *resultobj = 0;
25939 PyObject * obj0 = 0 ;
25940 PyObject * obj1 = 0 ;
25943 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexFlat",&obj0,&obj1)) SWIG_fail;
25944 ecode1 = SWIG_AsVal_long(obj0, &val1);
25945 if (!SWIG_IsOK(ecode1)) {
25946 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexFlat" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
25949 ecode2 = SWIG_AsVal_int(obj1, &val2);
25950 if (!SWIG_IsOK(ecode2)) {
25951 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexFlat" "', argument " "2"" of type '" "faiss::MetricType""'");
25955 Py_BEGIN_ALLOW_THREADS
25959 PyEval_RestoreThread(_save);
25960 PyErr_SetString(PyExc_RuntimeError, e.
what());
25963 Py_END_ALLOW_THREADS
25965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlat, SWIG_POINTER_NEW | 0 );
25972 SWIGINTERN PyObject *_wrap_new_IndexFlat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25973 PyObject *resultobj = 0;
25977 PyObject * obj0 = 0 ;
25980 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexFlat",&obj0)) SWIG_fail;
25981 ecode1 = SWIG_AsVal_long(obj0, &val1);
25982 if (!SWIG_IsOK(ecode1)) {
25983 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexFlat" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
25987 Py_BEGIN_ALLOW_THREADS
25991 PyEval_RestoreThread(_save);
25992 PyErr_SetString(PyExc_RuntimeError, e.
what());
25995 Py_END_ALLOW_THREADS
25997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlat, SWIG_POINTER_NEW | 0 );
26004 SWIGINTERN PyObject *_wrap_IndexFlat_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26005 PyObject *resultobj = 0;
26008 float *arg3 = (
float *) 0 ;
26015 PyObject * obj0 = 0 ;
26016 PyObject * obj1 = 0 ;
26017 PyObject * obj2 = 0 ;
26019 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexFlat_add",&obj0,&obj1,&obj2)) SWIG_fail;
26020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
26021 if (!SWIG_IsOK(res1)) {
26022 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_add" "', argument " "1"" of type '" "faiss::IndexFlat *""'");
26025 ecode2 = SWIG_AsVal_long(obj1, &val2);
26026 if (!SWIG_IsOK(ecode2)) {
26027 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
26030 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
26031 if (!SWIG_IsOK(res3)) {
26032 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlat_add" "', argument " "3"" of type '" "float const *""'");
26034 arg3 =
reinterpret_cast< float *
>(argp3);
26036 Py_BEGIN_ALLOW_THREADS
26038 (arg1)->add(arg2,(
float const *)arg3);
26040 PyEval_RestoreThread(_save);
26041 PyErr_SetString(PyExc_RuntimeError, e.
what());
26044 Py_END_ALLOW_THREADS
26046 resultobj = SWIG_Py_Void();
26053 SWIGINTERN PyObject *_wrap_IndexFlat_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26054 PyObject *resultobj = 0;
26058 PyObject * obj0 = 0 ;
26060 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexFlat_reset",&obj0)) SWIG_fail;
26061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
26062 if (!SWIG_IsOK(res1)) {
26063 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_reset" "', argument " "1"" of type '" "faiss::IndexFlat *""'");
26067 Py_BEGIN_ALLOW_THREADS
26071 PyEval_RestoreThread(_save);
26072 PyErr_SetString(PyExc_RuntimeError, e.
what());
26075 Py_END_ALLOW_THREADS
26077 resultobj = SWIG_Py_Void();
26084 SWIGINTERN PyObject *_wrap_IndexFlat_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26085 PyObject *resultobj = 0;
26088 float *arg3 = (
float *) 0 ;
26090 float *arg5 = (
float *) 0 ;
26104 PyObject * obj0 = 0 ;
26105 PyObject * obj1 = 0 ;
26106 PyObject * obj2 = 0 ;
26107 PyObject * obj3 = 0 ;
26108 PyObject * obj4 = 0 ;
26109 PyObject * obj5 = 0 ;
26111 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexFlat_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
26113 if (!SWIG_IsOK(res1)) {
26114 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_search" "', argument " "1"" of type '" "faiss::IndexFlat const *""'");
26117 ecode2 = SWIG_AsVal_long(obj1, &val2);
26118 if (!SWIG_IsOK(ecode2)) {
26119 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
26122 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
26123 if (!SWIG_IsOK(res3)) {
26124 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlat_search" "', argument " "3"" of type '" "float const *""'");
26126 arg3 =
reinterpret_cast< float *
>(argp3);
26127 ecode4 = SWIG_AsVal_long(obj3, &val4);
26128 if (!SWIG_IsOK(ecode4)) {
26129 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexFlat_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
26132 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
26133 if (!SWIG_IsOK(res5)) {
26134 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexFlat_search" "', argument " "5"" of type '" "float *""'");
26136 arg5 =
reinterpret_cast< float *
>(argp5);
26137 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
26138 if (!SWIG_IsOK(res6)) {
26139 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexFlat_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
26143 Py_BEGIN_ALLOW_THREADS
26145 ((
faiss::IndexFlat const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
26147 PyEval_RestoreThread(_save);
26148 PyErr_SetString(PyExc_RuntimeError, e.
what());
26151 Py_END_ALLOW_THREADS
26153 resultobj = SWIG_Py_Void();
26160 SWIGINTERN PyObject *_wrap_IndexFlat_range_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26161 PyObject *resultobj = 0;
26164 float *arg3 = (
float *) 0 ;
26177 PyObject * obj0 = 0 ;
26178 PyObject * obj1 = 0 ;
26179 PyObject * obj2 = 0 ;
26180 PyObject * obj3 = 0 ;
26181 PyObject * obj4 = 0 ;
26183 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexFlat_range_search",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
26185 if (!SWIG_IsOK(res1)) {
26186 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_range_search" "', argument " "1"" of type '" "faiss::IndexFlat const *""'");
26189 ecode2 = SWIG_AsVal_long(obj1, &val2);
26190 if (!SWIG_IsOK(ecode2)) {
26191 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat_range_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
26194 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
26195 if (!SWIG_IsOK(res3)) {
26196 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlat_range_search" "', argument " "3"" of type '" "float const *""'");
26198 arg3 =
reinterpret_cast< float *
>(argp3);
26199 ecode4 = SWIG_AsVal_float(obj3, &val4);
26200 if (!SWIG_IsOK(ecode4)) {
26201 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexFlat_range_search" "', argument " "4"" of type '" "float""'");
26203 arg4 =
static_cast< float >(val4);
26204 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
26205 if (!SWIG_IsOK(res5)) {
26206 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexFlat_range_search" "', argument " "5"" of type '" "faiss::RangeSearchResult *""'");
26210 Py_BEGIN_ALLOW_THREADS
26212 ((
faiss::IndexFlat const *)arg1)->range_search(arg2,(
float const *)arg3,arg4,arg5);
26214 PyEval_RestoreThread(_save);
26215 PyErr_SetString(PyExc_RuntimeError, e.
what());
26218 Py_END_ALLOW_THREADS
26220 resultobj = SWIG_Py_Void();
26227 SWIGINTERN PyObject *_wrap_IndexFlat_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26228 PyObject *resultobj = 0;
26231 float *arg3 = (
float *) 0 ;
26238 PyObject * obj0 = 0 ;
26239 PyObject * obj1 = 0 ;
26240 PyObject * obj2 = 0 ;
26242 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexFlat_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
26243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
26244 if (!SWIG_IsOK(res1)) {
26245 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_reconstruct" "', argument " "1"" of type '" "faiss::IndexFlat const *""'");
26248 ecode2 = SWIG_AsVal_long(obj1, &val2);
26249 if (!SWIG_IsOK(ecode2)) {
26250 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
26253 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
26254 if (!SWIG_IsOK(res3)) {
26255 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlat_reconstruct" "', argument " "3"" of type '" "float *""'");
26257 arg3 =
reinterpret_cast< float *
>(argp3);
26259 Py_BEGIN_ALLOW_THREADS
26263 PyEval_RestoreThread(_save);
26264 PyErr_SetString(PyExc_RuntimeError, e.
what());
26267 Py_END_ALLOW_THREADS
26269 resultobj = SWIG_Py_Void();
26276 SWIGINTERN PyObject *_wrap_IndexFlat_compute_distance_subset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26277 PyObject *resultobj = 0;
26280 float *arg3 = (
float *) 0 ;
26282 float *arg5 = (
float *) 0 ;
26296 PyObject * obj0 = 0 ;
26297 PyObject * obj1 = 0 ;
26298 PyObject * obj2 = 0 ;
26299 PyObject * obj3 = 0 ;
26300 PyObject * obj4 = 0 ;
26301 PyObject * obj5 = 0 ;
26303 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexFlat_compute_distance_subset",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
26305 if (!SWIG_IsOK(res1)) {
26306 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_compute_distance_subset" "', argument " "1"" of type '" "faiss::IndexFlat const *""'");
26309 ecode2 = SWIG_AsVal_long(obj1, &val2);
26310 if (!SWIG_IsOK(ecode2)) {
26311 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat_compute_distance_subset" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
26314 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
26315 if (!SWIG_IsOK(res3)) {
26316 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlat_compute_distance_subset" "', argument " "3"" of type '" "float const *""'");
26318 arg3 =
reinterpret_cast< float *
>(argp3);
26319 ecode4 = SWIG_AsVal_long(obj3, &val4);
26320 if (!SWIG_IsOK(ecode4)) {
26321 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexFlat_compute_distance_subset" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
26324 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
26325 if (!SWIG_IsOK(res5)) {
26326 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexFlat_compute_distance_subset" "', argument " "5"" of type '" "float *""'");
26328 arg5 =
reinterpret_cast< float *
>(argp5);
26329 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
26330 if (!SWIG_IsOK(res6)) {
26331 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexFlat_compute_distance_subset" "', argument " "6"" of type '" "faiss::Index::idx_t const *""'");
26335 Py_BEGIN_ALLOW_THREADS
26339 PyEval_RestoreThread(_save);
26340 PyErr_SetString(PyExc_RuntimeError, e.
what());
26343 Py_END_ALLOW_THREADS
26345 resultobj = SWIG_Py_Void();
26352 SWIGINTERN PyObject *_wrap_IndexFlat_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26353 PyObject *resultobj = 0;
26360 PyObject * obj0 = 0 ;
26361 PyObject * obj1 = 0 ;
26364 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexFlat_remove_ids",&obj0,&obj1)) SWIG_fail;
26365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
26366 if (!SWIG_IsOK(res1)) {
26367 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_remove_ids" "', argument " "1"" of type '" "faiss::IndexFlat *""'");
26370 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
26371 if (!SWIG_IsOK(res2)) {
26372 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexFlat_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
26375 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexFlat_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
26379 Py_BEGIN_ALLOW_THREADS
26383 PyEval_RestoreThread(_save);
26384 PyErr_SetString(PyExc_RuntimeError, e.
what());
26387 Py_END_ALLOW_THREADS
26389 resultobj = SWIG_From_long(static_cast< long >(result));
26396 SWIGINTERN PyObject *_wrap_new_IndexFlat__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26397 PyObject *resultobj = 0;
26400 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexFlat")) SWIG_fail;
26402 Py_BEGIN_ALLOW_THREADS
26406 PyEval_RestoreThread(_save);
26407 PyErr_SetString(PyExc_RuntimeError, e.
what());
26410 Py_END_ALLOW_THREADS
26412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlat, SWIG_POINTER_NEW | 0 );
26419 SWIGINTERN PyObject *_wrap_new_IndexFlat(PyObject *
self, PyObject *args) {
26421 PyObject *argv[3] = {
26426 if (!PyTuple_Check(args)) SWIG_fail;
26427 argc = args ? PyObject_Length(args) : 0;
26428 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
26429 argv[ii] = PyTuple_GET_ITEM(args,ii);
26432 return _wrap_new_IndexFlat__SWIG_2(
self, args);
26437 int res = SWIG_AsVal_long(argv[0], NULL);
26438 _v = SWIG_CheckState(res);
26441 return _wrap_new_IndexFlat__SWIG_1(
self, args);
26447 int res = SWIG_AsVal_long(argv[0], NULL);
26448 _v = SWIG_CheckState(res);
26452 int res = SWIG_AsVal_int(argv[1], NULL);
26453 _v = SWIG_CheckState(res);
26456 return _wrap_new_IndexFlat__SWIG_0(
self, args);
26462 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexFlat'.\n"
26463 " Possible C/C++ prototypes are:\n"
26464 " faiss::IndexFlat::IndexFlat(faiss::Index::idx_t,faiss::MetricType)\n"
26465 " faiss::IndexFlat::IndexFlat(faiss::Index::idx_t)\n"
26466 " faiss::IndexFlat::IndexFlat()\n");
26471 SWIGINTERN PyObject *_wrap_delete_IndexFlat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26472 PyObject *resultobj = 0;
26476 PyObject * obj0 = 0 ;
26478 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexFlat",&obj0)) SWIG_fail;
26479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, SWIG_POINTER_DISOWN | 0 );
26480 if (!SWIG_IsOK(res1)) {
26481 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexFlat" "', argument " "1"" of type '" "faiss::IndexFlat *""'");
26485 resultobj = SWIG_Py_Void();
26492 SWIGINTERN PyObject *IndexFlat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26494 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
26495 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexFlat, SWIG_NewClientData(obj));
26496 return SWIG_Py_Void();
26499 SWIGINTERN PyObject *_wrap_new_IndexFlatIP__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26500 PyObject *resultobj = 0;
26504 PyObject * obj0 = 0 ;
26507 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexFlatIP",&obj0)) SWIG_fail;
26508 ecode1 = SWIG_AsVal_long(obj0, &val1);
26509 if (!SWIG_IsOK(ecode1)) {
26510 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexFlatIP" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
26514 Py_BEGIN_ALLOW_THREADS
26518 PyEval_RestoreThread(_save);
26519 PyErr_SetString(PyExc_RuntimeError, e.
what());
26522 Py_END_ALLOW_THREADS
26524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlatIP, SWIG_POINTER_NEW | 0 );
26531 SWIGINTERN PyObject *_wrap_new_IndexFlatIP__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26532 PyObject *resultobj = 0;
26535 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexFlatIP")) SWIG_fail;
26537 Py_BEGIN_ALLOW_THREADS
26541 PyEval_RestoreThread(_save);
26542 PyErr_SetString(PyExc_RuntimeError, e.
what());
26545 Py_END_ALLOW_THREADS
26547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlatIP, SWIG_POINTER_NEW | 0 );
26554 SWIGINTERN PyObject *_wrap_new_IndexFlatIP(PyObject *
self, PyObject *args) {
26556 PyObject *argv[2] = {
26561 if (!PyTuple_Check(args)) SWIG_fail;
26562 argc = args ? PyObject_Length(args) : 0;
26563 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
26564 argv[ii] = PyTuple_GET_ITEM(args,ii);
26567 return _wrap_new_IndexFlatIP__SWIG_1(
self, args);
26572 int res = SWIG_AsVal_long(argv[0], NULL);
26573 _v = SWIG_CheckState(res);
26576 return _wrap_new_IndexFlatIP__SWIG_0(
self, args);
26581 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexFlatIP'.\n"
26582 " Possible C/C++ prototypes are:\n"
26583 " faiss::IndexFlatIP::IndexFlatIP(faiss::Index::idx_t)\n"
26584 " faiss::IndexFlatIP::IndexFlatIP()\n");
26589 SWIGINTERN PyObject *_wrap_delete_IndexFlatIP(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26590 PyObject *resultobj = 0;
26594 PyObject * obj0 = 0 ;
26596 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexFlatIP",&obj0)) SWIG_fail;
26597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlatIP, SWIG_POINTER_DISOWN | 0 );
26598 if (!SWIG_IsOK(res1)) {
26599 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexFlatIP" "', argument " "1"" of type '" "faiss::IndexFlatIP *""'");
26603 resultobj = SWIG_Py_Void();
26610 SWIGINTERN PyObject *IndexFlatIP_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26612 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
26613 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexFlatIP, SWIG_NewClientData(obj));
26614 return SWIG_Py_Void();
26617 SWIGINTERN PyObject *_wrap_new_IndexFlatL2__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26618 PyObject *resultobj = 0;
26622 PyObject * obj0 = 0 ;
26625 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexFlatL2",&obj0)) SWIG_fail;
26626 ecode1 = SWIG_AsVal_long(obj0, &val1);
26627 if (!SWIG_IsOK(ecode1)) {
26628 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexFlatL2" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
26632 Py_BEGIN_ALLOW_THREADS
26636 PyEval_RestoreThread(_save);
26637 PyErr_SetString(PyExc_RuntimeError, e.
what());
26640 Py_END_ALLOW_THREADS
26642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlatL2, SWIG_POINTER_NEW | 0 );
26649 SWIGINTERN PyObject *_wrap_new_IndexFlatL2__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26650 PyObject *resultobj = 0;
26653 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexFlatL2")) SWIG_fail;
26655 Py_BEGIN_ALLOW_THREADS
26659 PyEval_RestoreThread(_save);
26660 PyErr_SetString(PyExc_RuntimeError, e.
what());
26663 Py_END_ALLOW_THREADS
26665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlatL2, SWIG_POINTER_NEW | 0 );
26672 SWIGINTERN PyObject *_wrap_new_IndexFlatL2(PyObject *
self, PyObject *args) {
26674 PyObject *argv[2] = {
26679 if (!PyTuple_Check(args)) SWIG_fail;
26680 argc = args ? PyObject_Length(args) : 0;
26681 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
26682 argv[ii] = PyTuple_GET_ITEM(args,ii);
26685 return _wrap_new_IndexFlatL2__SWIG_1(
self, args);
26690 int res = SWIG_AsVal_long(argv[0], NULL);
26691 _v = SWIG_CheckState(res);
26694 return _wrap_new_IndexFlatL2__SWIG_0(
self, args);
26699 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexFlatL2'.\n"
26700 " Possible C/C++ prototypes are:\n"
26701 " faiss::IndexFlatL2::IndexFlatL2(faiss::Index::idx_t)\n"
26702 " faiss::IndexFlatL2::IndexFlatL2()\n");
26707 SWIGINTERN PyObject *_wrap_delete_IndexFlatL2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26708 PyObject *resultobj = 0;
26712 PyObject * obj0 = 0 ;
26714 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexFlatL2",&obj0)) SWIG_fail;
26715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlatL2, SWIG_POINTER_DISOWN | 0 );
26716 if (!SWIG_IsOK(res1)) {
26717 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexFlatL2" "', argument " "1"" of type '" "faiss::IndexFlatL2 *""'");
26721 resultobj = SWIG_Py_Void();
26728 SWIGINTERN PyObject *IndexFlatL2_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26730 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
26731 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexFlatL2, SWIG_NewClientData(obj));
26732 return SWIG_Py_Void();
26735 SWIGINTERN PyObject *_wrap_IndexFlatL2BaseShift_shift_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26736 PyObject *resultobj = 0;
26738 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
26743 PyObject * obj0 = 0 ;
26744 PyObject * obj1 = 0 ;
26746 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexFlatL2BaseShift_shift_set",&obj0,&obj1)) SWIG_fail;
26747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlatL2BaseShift, 0 | 0 );
26748 if (!SWIG_IsOK(res1)) {
26749 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlatL2BaseShift_shift_set" "', argument " "1"" of type '" "faiss::IndexFlatL2BaseShift *""'");
26752 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
26753 if (!SWIG_IsOK(res2)) {
26754 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexFlatL2BaseShift_shift_set" "', argument " "2"" of type '" "std::vector< float > *""'");
26756 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
26757 if (arg1) (arg1)->shift = *arg2;
26758 resultobj = SWIG_Py_Void();
26765 SWIGINTERN PyObject *_wrap_IndexFlatL2BaseShift_shift_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26766 PyObject *resultobj = 0;
26770 PyObject * obj0 = 0 ;
26771 std::vector< float > *result = 0 ;
26773 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexFlatL2BaseShift_shift_get",&obj0)) SWIG_fail;
26774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlatL2BaseShift, 0 | 0 );
26775 if (!SWIG_IsOK(res1)) {
26776 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlatL2BaseShift_shift_get" "', argument " "1"" of type '" "faiss::IndexFlatL2BaseShift *""'");
26779 result = (std::vector< float > *)& ((arg1)->shift);
26780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
26787 SWIGINTERN PyObject *_wrap_new_IndexFlatL2BaseShift(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26788 PyObject *resultobj = 0;
26791 float *arg3 = (
float *) 0 ;
26798 PyObject * obj0 = 0 ;
26799 PyObject * obj1 = 0 ;
26800 PyObject * obj2 = 0 ;
26803 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexFlatL2BaseShift",&obj0,&obj1,&obj2)) SWIG_fail;
26804 ecode1 = SWIG_AsVal_long(obj0, &val1);
26805 if (!SWIG_IsOK(ecode1)) {
26806 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexFlatL2BaseShift" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
26809 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
26810 if (!SWIG_IsOK(ecode2)) {
26811 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexFlatL2BaseShift" "', argument " "2"" of type '" "size_t""'");
26813 arg2 =
static_cast< size_t >(val2);
26814 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
26815 if (!SWIG_IsOK(res3)) {
26816 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_IndexFlatL2BaseShift" "', argument " "3"" of type '" "float const *""'");
26818 arg3 =
reinterpret_cast< float *
>(argp3);
26820 Py_BEGIN_ALLOW_THREADS
26824 PyEval_RestoreThread(_save);
26825 PyErr_SetString(PyExc_RuntimeError, e.
what());
26828 Py_END_ALLOW_THREADS
26830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlatL2BaseShift, SWIG_POINTER_NEW | 0 );
26837 SWIGINTERN PyObject *_wrap_IndexFlatL2BaseShift_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26838 PyObject *resultobj = 0;
26841 float *arg3 = (
float *) 0 ;
26843 float *arg5 = (
float *) 0 ;
26857 PyObject * obj0 = 0 ;
26858 PyObject * obj1 = 0 ;
26859 PyObject * obj2 = 0 ;
26860 PyObject * obj3 = 0 ;
26861 PyObject * obj4 = 0 ;
26862 PyObject * obj5 = 0 ;
26864 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexFlatL2BaseShift_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlatL2BaseShift, 0 | 0 );
26866 if (!SWIG_IsOK(res1)) {
26867 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlatL2BaseShift_search" "', argument " "1"" of type '" "faiss::IndexFlatL2BaseShift const *""'");
26870 ecode2 = SWIG_AsVal_long(obj1, &val2);
26871 if (!SWIG_IsOK(ecode2)) {
26872 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlatL2BaseShift_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
26875 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
26876 if (!SWIG_IsOK(res3)) {
26877 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlatL2BaseShift_search" "', argument " "3"" of type '" "float const *""'");
26879 arg3 =
reinterpret_cast< float *
>(argp3);
26880 ecode4 = SWIG_AsVal_long(obj3, &val4);
26881 if (!SWIG_IsOK(ecode4)) {
26882 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexFlatL2BaseShift_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
26885 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
26886 if (!SWIG_IsOK(res5)) {
26887 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexFlatL2BaseShift_search" "', argument " "5"" of type '" "float *""'");
26889 arg5 =
reinterpret_cast< float *
>(argp5);
26890 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
26891 if (!SWIG_IsOK(res6)) {
26892 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexFlatL2BaseShift_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
26896 Py_BEGIN_ALLOW_THREADS
26900 PyEval_RestoreThread(_save);
26901 PyErr_SetString(PyExc_RuntimeError, e.
what());
26904 Py_END_ALLOW_THREADS
26906 resultobj = SWIG_Py_Void();
26913 SWIGINTERN PyObject *_wrap_delete_IndexFlatL2BaseShift(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26914 PyObject *resultobj = 0;
26918 PyObject * obj0 = 0 ;
26920 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexFlatL2BaseShift",&obj0)) SWIG_fail;
26921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlatL2BaseShift, SWIG_POINTER_DISOWN | 0 );
26922 if (!SWIG_IsOK(res1)) {
26923 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexFlatL2BaseShift" "', argument " "1"" of type '" "faiss::IndexFlatL2BaseShift *""'");
26927 resultobj = SWIG_Py_Void();
26934 SWIGINTERN PyObject *IndexFlatL2BaseShift_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26936 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
26937 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexFlatL2BaseShift, SWIG_NewClientData(obj));
26938 return SWIG_Py_Void();
26941 SWIGINTERN PyObject *_wrap_IndexRefineFlat_refine_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26942 PyObject *resultobj = 0;
26949 PyObject * obj0 = 0 ;
26950 PyObject * obj1 = 0 ;
26952 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexRefineFlat_refine_index_set",&obj0,&obj1)) SWIG_fail;
26953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
26954 if (!SWIG_IsOK(res1)) {
26955 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_refine_index_set" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
26958 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
26959 if (!SWIG_IsOK(res2)) {
26960 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexRefineFlat_refine_index_set" "', argument " "2"" of type '" "faiss::IndexFlat *""'");
26963 if (arg1) (arg1)->refine_index = *arg2;
26964 resultobj = SWIG_Py_Void();
26971 SWIGINTERN PyObject *_wrap_IndexRefineFlat_refine_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26972 PyObject *resultobj = 0;
26976 PyObject * obj0 = 0 ;
26979 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexRefineFlat_refine_index_get",&obj0)) SWIG_fail;
26980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
26981 if (!SWIG_IsOK(res1)) {
26982 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_refine_index_get" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
26986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
26993 SWIGINTERN PyObject *_wrap_IndexRefineFlat_base_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26994 PyObject *resultobj = 0;
27001 PyObject * obj0 = 0 ;
27002 PyObject * obj1 = 0 ;
27004 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexRefineFlat_base_index_set",&obj0,&obj1)) SWIG_fail;
27005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
27006 if (!SWIG_IsOK(res1)) {
27007 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_base_index_set" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
27010 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
27011 if (!SWIG_IsOK(res2)) {
27012 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexRefineFlat_base_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
27015 if (arg1) (arg1)->base_index = arg2;
27016 resultobj = SWIG_Py_Void();
27023 SWIGINTERN PyObject *_wrap_IndexRefineFlat_base_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27024 PyObject *resultobj = 0;
27028 PyObject * obj0 = 0 ;
27031 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexRefineFlat_base_index_get",&obj0)) SWIG_fail;
27032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
27033 if (!SWIG_IsOK(res1)) {
27034 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_base_index_get" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
27038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
27045 SWIGINTERN PyObject *_wrap_IndexRefineFlat_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27046 PyObject *resultobj = 0;
27053 PyObject * obj0 = 0 ;
27054 PyObject * obj1 = 0 ;
27056 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexRefineFlat_own_fields_set",&obj0,&obj1)) SWIG_fail;
27057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
27058 if (!SWIG_IsOK(res1)) {
27059 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_own_fields_set" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
27062 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27063 if (!SWIG_IsOK(ecode2)) {
27064 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexRefineFlat_own_fields_set" "', argument " "2"" of type '" "bool""'");
27066 arg2 =
static_cast< bool >(val2);
27067 if (arg1) (arg1)->own_fields = arg2;
27068 resultobj = SWIG_Py_Void();
27075 SWIGINTERN PyObject *_wrap_IndexRefineFlat_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27076 PyObject *resultobj = 0;
27080 PyObject * obj0 = 0 ;
27083 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexRefineFlat_own_fields_get",&obj0)) SWIG_fail;
27084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
27085 if (!SWIG_IsOK(res1)) {
27086 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_own_fields_get" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
27089 result = (bool) ((arg1)->own_fields);
27090 resultobj = SWIG_From_bool(static_cast< bool >(result));
27097 SWIGINTERN PyObject *_wrap_IndexRefineFlat_k_factor_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27098 PyObject *resultobj = 0;
27105 PyObject * obj0 = 0 ;
27106 PyObject * obj1 = 0 ;
27108 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexRefineFlat_k_factor_set",&obj0,&obj1)) SWIG_fail;
27109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
27110 if (!SWIG_IsOK(res1)) {
27111 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_k_factor_set" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
27114 ecode2 = SWIG_AsVal_float(obj1, &val2);
27115 if (!SWIG_IsOK(ecode2)) {
27116 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexRefineFlat_k_factor_set" "', argument " "2"" of type '" "float""'");
27118 arg2 =
static_cast< float >(val2);
27119 if (arg1) (arg1)->k_factor = arg2;
27120 resultobj = SWIG_Py_Void();
27127 SWIGINTERN PyObject *_wrap_IndexRefineFlat_k_factor_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27128 PyObject *resultobj = 0;
27132 PyObject * obj0 = 0 ;
27135 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexRefineFlat_k_factor_get",&obj0)) SWIG_fail;
27136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
27137 if (!SWIG_IsOK(res1)) {
27138 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_k_factor_get" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
27141 result = (float) ((arg1)->k_factor);
27142 resultobj = SWIG_From_float(static_cast< float >(result));
27149 SWIGINTERN PyObject *_wrap_new_IndexRefineFlat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27150 PyObject *resultobj = 0;
27154 PyObject * obj0 = 0 ;
27157 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexRefineFlat",&obj0)) SWIG_fail;
27158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
27159 if (!SWIG_IsOK(res1)) {
27160 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexRefineFlat" "', argument " "1"" of type '" "faiss::Index *""'");
27164 Py_BEGIN_ALLOW_THREADS
27168 PyEval_RestoreThread(_save);
27169 PyErr_SetString(PyExc_RuntimeError, e.
what());
27172 Py_END_ALLOW_THREADS
27174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexRefineFlat, SWIG_POINTER_NEW | 0 );
27181 SWIGINTERN PyObject *_wrap_new_IndexRefineFlat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27182 PyObject *resultobj = 0;
27185 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexRefineFlat")) SWIG_fail;
27187 Py_BEGIN_ALLOW_THREADS
27191 PyEval_RestoreThread(_save);
27192 PyErr_SetString(PyExc_RuntimeError, e.
what());
27195 Py_END_ALLOW_THREADS
27197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexRefineFlat, SWIG_POINTER_NEW | 0 );
27204 SWIGINTERN PyObject *_wrap_new_IndexRefineFlat(PyObject *
self, PyObject *args) {
27206 PyObject *argv[2] = {
27211 if (!PyTuple_Check(args)) SWIG_fail;
27212 argc = args ? PyObject_Length(args) : 0;
27213 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
27214 argv[ii] = PyTuple_GET_ITEM(args,ii);
27217 return _wrap_new_IndexRefineFlat__SWIG_1(
self, args);
27222 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
27223 _v = SWIG_CheckState(res);
27225 return _wrap_new_IndexRefineFlat__SWIG_0(
self, args);
27230 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexRefineFlat'.\n"
27231 " Possible C/C++ prototypes are:\n"
27232 " faiss::IndexRefineFlat::IndexRefineFlat(faiss::Index *)\n"
27233 " faiss::IndexRefineFlat::IndexRefineFlat()\n");
27238 SWIGINTERN PyObject *_wrap_IndexRefineFlat_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27239 PyObject *resultobj = 0;
27242 float *arg3 = (
float *) 0 ;
27249 PyObject * obj0 = 0 ;
27250 PyObject * obj1 = 0 ;
27251 PyObject * obj2 = 0 ;
27253 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexRefineFlat_train",&obj0,&obj1,&obj2)) SWIG_fail;
27254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
27255 if (!SWIG_IsOK(res1)) {
27256 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_train" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
27259 ecode2 = SWIG_AsVal_long(obj1, &val2);
27260 if (!SWIG_IsOK(ecode2)) {
27261 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexRefineFlat_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
27264 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
27265 if (!SWIG_IsOK(res3)) {
27266 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexRefineFlat_train" "', argument " "3"" of type '" "float const *""'");
27268 arg3 =
reinterpret_cast< float *
>(argp3);
27270 Py_BEGIN_ALLOW_THREADS
27272 (arg1)->train(arg2,(
float const *)arg3);
27274 PyEval_RestoreThread(_save);
27275 PyErr_SetString(PyExc_RuntimeError, e.
what());
27278 Py_END_ALLOW_THREADS
27280 resultobj = SWIG_Py_Void();
27287 SWIGINTERN PyObject *_wrap_IndexRefineFlat_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27288 PyObject *resultobj = 0;
27291 float *arg3 = (
float *) 0 ;
27298 PyObject * obj0 = 0 ;
27299 PyObject * obj1 = 0 ;
27300 PyObject * obj2 = 0 ;
27302 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexRefineFlat_add",&obj0,&obj1,&obj2)) SWIG_fail;
27303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
27304 if (!SWIG_IsOK(res1)) {
27305 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_add" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
27308 ecode2 = SWIG_AsVal_long(obj1, &val2);
27309 if (!SWIG_IsOK(ecode2)) {
27310 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexRefineFlat_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
27313 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
27314 if (!SWIG_IsOK(res3)) {
27315 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexRefineFlat_add" "', argument " "3"" of type '" "float const *""'");
27317 arg3 =
reinterpret_cast< float *
>(argp3);
27319 Py_BEGIN_ALLOW_THREADS
27321 (arg1)->add(arg2,(
float const *)arg3);
27323 PyEval_RestoreThread(_save);
27324 PyErr_SetString(PyExc_RuntimeError, e.
what());
27327 Py_END_ALLOW_THREADS
27329 resultobj = SWIG_Py_Void();
27336 SWIGINTERN PyObject *_wrap_IndexRefineFlat_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27337 PyObject *resultobj = 0;
27341 PyObject * obj0 = 0 ;
27343 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexRefineFlat_reset",&obj0)) SWIG_fail;
27344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
27345 if (!SWIG_IsOK(res1)) {
27346 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_reset" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
27350 Py_BEGIN_ALLOW_THREADS
27354 PyEval_RestoreThread(_save);
27355 PyErr_SetString(PyExc_RuntimeError, e.
what());
27358 Py_END_ALLOW_THREADS
27360 resultobj = SWIG_Py_Void();
27367 SWIGINTERN PyObject *_wrap_IndexRefineFlat_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27368 PyObject *resultobj = 0;
27371 float *arg3 = (
float *) 0 ;
27373 float *arg5 = (
float *) 0 ;
27387 PyObject * obj0 = 0 ;
27388 PyObject * obj1 = 0 ;
27389 PyObject * obj2 = 0 ;
27390 PyObject * obj3 = 0 ;
27391 PyObject * obj4 = 0 ;
27392 PyObject * obj5 = 0 ;
27394 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexRefineFlat_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
27396 if (!SWIG_IsOK(res1)) {
27397 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_search" "', argument " "1"" of type '" "faiss::IndexRefineFlat const *""'");
27400 ecode2 = SWIG_AsVal_long(obj1, &val2);
27401 if (!SWIG_IsOK(ecode2)) {
27402 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexRefineFlat_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
27405 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
27406 if (!SWIG_IsOK(res3)) {
27407 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexRefineFlat_search" "', argument " "3"" of type '" "float const *""'");
27409 arg3 =
reinterpret_cast< float *
>(argp3);
27410 ecode4 = SWIG_AsVal_long(obj3, &val4);
27411 if (!SWIG_IsOK(ecode4)) {
27412 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexRefineFlat_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
27415 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
27416 if (!SWIG_IsOK(res5)) {
27417 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexRefineFlat_search" "', argument " "5"" of type '" "float *""'");
27419 arg5 =
reinterpret_cast< float *
>(argp5);
27420 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
27421 if (!SWIG_IsOK(res6)) {
27422 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexRefineFlat_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
27426 Py_BEGIN_ALLOW_THREADS
27430 PyEval_RestoreThread(_save);
27431 PyErr_SetString(PyExc_RuntimeError, e.
what());
27434 Py_END_ALLOW_THREADS
27436 resultobj = SWIG_Py_Void();
27443 SWIGINTERN PyObject *_wrap_delete_IndexRefineFlat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27444 PyObject *resultobj = 0;
27448 PyObject * obj0 = 0 ;
27450 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexRefineFlat",&obj0)) SWIG_fail;
27451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, SWIG_POINTER_DISOWN | 0 );
27452 if (!SWIG_IsOK(res1)) {
27453 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexRefineFlat" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
27457 Py_BEGIN_ALLOW_THREADS
27461 PyEval_RestoreThread(_save);
27462 PyErr_SetString(PyExc_RuntimeError, e.
what());
27465 Py_END_ALLOW_THREADS
27467 resultobj = SWIG_Py_Void();
27474 SWIGINTERN PyObject *IndexRefineFlat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27476 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
27477 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexRefineFlat, SWIG_NewClientData(obj));
27478 return SWIG_Py_Void();
27481 SWIGINTERN PyObject *_wrap_IndexFlat1D_continuous_update_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27482 PyObject *resultobj = 0;
27489 PyObject * obj0 = 0 ;
27490 PyObject * obj1 = 0 ;
27492 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexFlat1D_continuous_update_set",&obj0,&obj1)) SWIG_fail;
27493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
27494 if (!SWIG_IsOK(res1)) {
27495 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_continuous_update_set" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
27498 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27499 if (!SWIG_IsOK(ecode2)) {
27500 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat1D_continuous_update_set" "', argument " "2"" of type '" "bool""'");
27502 arg2 =
static_cast< bool >(val2);
27503 if (arg1) (arg1)->continuous_update = arg2;
27504 resultobj = SWIG_Py_Void();
27511 SWIGINTERN PyObject *_wrap_IndexFlat1D_continuous_update_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27512 PyObject *resultobj = 0;
27516 PyObject * obj0 = 0 ;
27519 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexFlat1D_continuous_update_get",&obj0)) SWIG_fail;
27520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
27521 if (!SWIG_IsOK(res1)) {
27522 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_continuous_update_get" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
27525 result = (bool) ((arg1)->continuous_update);
27526 resultobj = SWIG_From_bool(static_cast< bool >(result));
27533 SWIGINTERN PyObject *_wrap_IndexFlat1D_perm_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27534 PyObject *resultobj = 0;
27536 std::vector< faiss::Index::idx_t > *arg2 = (std::vector< faiss::Index::idx_t > *) 0 ;
27541 PyObject * obj0 = 0 ;
27542 PyObject * obj1 = 0 ;
27544 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexFlat1D_perm_set",&obj0,&obj1)) SWIG_fail;
27545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
27546 if (!SWIG_IsOK(res1)) {
27547 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_perm_set" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
27550 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
27551 if (!SWIG_IsOK(res2)) {
27552 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexFlat1D_perm_set" "', argument " "2"" of type '" "std::vector< faiss::Index::idx_t > *""'");
27554 arg2 =
reinterpret_cast< std::vector< faiss::Index::idx_t > *
>(argp2);
27555 if (arg1) (arg1)->perm = *arg2;
27556 resultobj = SWIG_Py_Void();
27563 SWIGINTERN PyObject *_wrap_IndexFlat1D_perm_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27564 PyObject *resultobj = 0;
27568 PyObject * obj0 = 0 ;
27569 std::vector< faiss::Index::idx_t > *result = 0 ;
27571 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexFlat1D_perm_get",&obj0)) SWIG_fail;
27572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
27573 if (!SWIG_IsOK(res1)) {
27574 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_perm_get" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
27577 result = (std::vector< faiss::Index::idx_t > *)& ((arg1)->perm);
27578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
27585 SWIGINTERN PyObject *_wrap_new_IndexFlat1D__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27586 PyObject *resultobj = 0;
27590 PyObject * obj0 = 0 ;
27593 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexFlat1D",&obj0)) SWIG_fail;
27594 ecode1 = SWIG_AsVal_bool(obj0, &val1);
27595 if (!SWIG_IsOK(ecode1)) {
27596 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexFlat1D" "', argument " "1"" of type '" "bool""'");
27598 arg1 =
static_cast< bool >(val1);
27600 Py_BEGIN_ALLOW_THREADS
27604 PyEval_RestoreThread(_save);
27605 PyErr_SetString(PyExc_RuntimeError, e.
what());
27608 Py_END_ALLOW_THREADS
27610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlat1D, SWIG_POINTER_NEW | 0 );
27617 SWIGINTERN PyObject *_wrap_new_IndexFlat1D__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27618 PyObject *resultobj = 0;
27621 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexFlat1D")) SWIG_fail;
27623 Py_BEGIN_ALLOW_THREADS
27627 PyEval_RestoreThread(_save);
27628 PyErr_SetString(PyExc_RuntimeError, e.
what());
27631 Py_END_ALLOW_THREADS
27633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlat1D, SWIG_POINTER_NEW | 0 );
27640 SWIGINTERN PyObject *_wrap_new_IndexFlat1D(PyObject *
self, PyObject *args) {
27642 PyObject *argv[2] = {
27647 if (!PyTuple_Check(args)) SWIG_fail;
27648 argc = args ? PyObject_Length(args) : 0;
27649 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
27650 argv[ii] = PyTuple_GET_ITEM(args,ii);
27653 return _wrap_new_IndexFlat1D__SWIG_1(
self, args);
27658 int res = SWIG_AsVal_bool(argv[0], NULL);
27659 _v = SWIG_CheckState(res);
27662 return _wrap_new_IndexFlat1D__SWIG_0(
self, args);
27667 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexFlat1D'.\n"
27668 " Possible C/C++ prototypes are:\n"
27669 " faiss::IndexFlat1D::IndexFlat1D(bool)\n"
27670 " faiss::IndexFlat1D::IndexFlat1D()\n");
27675 SWIGINTERN PyObject *_wrap_IndexFlat1D_update_permutation(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27676 PyObject *resultobj = 0;
27680 PyObject * obj0 = 0 ;
27682 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexFlat1D_update_permutation",&obj0)) SWIG_fail;
27683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
27684 if (!SWIG_IsOK(res1)) {
27685 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_update_permutation" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
27689 Py_BEGIN_ALLOW_THREADS
27691 (arg1)->update_permutation();
27693 PyEval_RestoreThread(_save);
27694 PyErr_SetString(PyExc_RuntimeError, e.
what());
27697 Py_END_ALLOW_THREADS
27699 resultobj = SWIG_Py_Void();
27706 SWIGINTERN PyObject *_wrap_IndexFlat1D_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27707 PyObject *resultobj = 0;
27710 float *arg3 = (
float *) 0 ;
27717 PyObject * obj0 = 0 ;
27718 PyObject * obj1 = 0 ;
27719 PyObject * obj2 = 0 ;
27721 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexFlat1D_add",&obj0,&obj1,&obj2)) SWIG_fail;
27722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
27723 if (!SWIG_IsOK(res1)) {
27724 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_add" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
27727 ecode2 = SWIG_AsVal_long(obj1, &val2);
27728 if (!SWIG_IsOK(ecode2)) {
27729 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat1D_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
27732 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
27733 if (!SWIG_IsOK(res3)) {
27734 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlat1D_add" "', argument " "3"" of type '" "float const *""'");
27736 arg3 =
reinterpret_cast< float *
>(argp3);
27738 Py_BEGIN_ALLOW_THREADS
27740 (arg1)->add(arg2,(
float const *)arg3);
27742 PyEval_RestoreThread(_save);
27743 PyErr_SetString(PyExc_RuntimeError, e.
what());
27746 Py_END_ALLOW_THREADS
27748 resultobj = SWIG_Py_Void();
27755 SWIGINTERN PyObject *_wrap_IndexFlat1D_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27756 PyObject *resultobj = 0;
27760 PyObject * obj0 = 0 ;
27762 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexFlat1D_reset",&obj0)) SWIG_fail;
27763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
27764 if (!SWIG_IsOK(res1)) {
27765 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_reset" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
27769 Py_BEGIN_ALLOW_THREADS
27773 PyEval_RestoreThread(_save);
27774 PyErr_SetString(PyExc_RuntimeError, e.
what());
27777 Py_END_ALLOW_THREADS
27779 resultobj = SWIG_Py_Void();
27786 SWIGINTERN PyObject *_wrap_IndexFlat1D_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27787 PyObject *resultobj = 0;
27790 float *arg3 = (
float *) 0 ;
27792 float *arg5 = (
float *) 0 ;
27806 PyObject * obj0 = 0 ;
27807 PyObject * obj1 = 0 ;
27808 PyObject * obj2 = 0 ;
27809 PyObject * obj3 = 0 ;
27810 PyObject * obj4 = 0 ;
27811 PyObject * obj5 = 0 ;
27813 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexFlat1D_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
27815 if (!SWIG_IsOK(res1)) {
27816 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_search" "', argument " "1"" of type '" "faiss::IndexFlat1D const *""'");
27819 ecode2 = SWIG_AsVal_long(obj1, &val2);
27820 if (!SWIG_IsOK(ecode2)) {
27821 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat1D_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
27824 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
27825 if (!SWIG_IsOK(res3)) {
27826 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlat1D_search" "', argument " "3"" of type '" "float const *""'");
27828 arg3 =
reinterpret_cast< float *
>(argp3);
27829 ecode4 = SWIG_AsVal_long(obj3, &val4);
27830 if (!SWIG_IsOK(ecode4)) {
27831 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexFlat1D_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
27834 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
27835 if (!SWIG_IsOK(res5)) {
27836 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexFlat1D_search" "', argument " "5"" of type '" "float *""'");
27838 arg5 =
reinterpret_cast< float *
>(argp5);
27839 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
27840 if (!SWIG_IsOK(res6)) {
27841 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexFlat1D_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
27845 Py_BEGIN_ALLOW_THREADS
27847 ((
faiss::IndexFlat1D const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
27849 PyEval_RestoreThread(_save);
27850 PyErr_SetString(PyExc_RuntimeError, e.
what());
27853 Py_END_ALLOW_THREADS
27855 resultobj = SWIG_Py_Void();
27862 SWIGINTERN PyObject *_wrap_delete_IndexFlat1D(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27863 PyObject *resultobj = 0;
27867 PyObject * obj0 = 0 ;
27869 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexFlat1D",&obj0)) SWIG_fail;
27870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, SWIG_POINTER_DISOWN | 0 );
27871 if (!SWIG_IsOK(res1)) {
27872 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexFlat1D" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
27876 resultobj = SWIG_Py_Void();
27883 SWIGINTERN PyObject *IndexFlat1D_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27885 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
27886 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexFlat1D, SWIG_NewClientData(obj));
27887 return SWIG_Py_Void();
27890 SWIGINTERN PyObject *_wrap_IndexLSH_nbits_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27891 PyObject *resultobj = 0;
27898 PyObject * obj0 = 0 ;
27899 PyObject * obj1 = 0 ;
27901 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_nbits_set",&obj0,&obj1)) SWIG_fail;
27902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
27903 if (!SWIG_IsOK(res1)) {
27904 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_nbits_set" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
27907 ecode2 = SWIG_AsVal_int(obj1, &val2);
27908 if (!SWIG_IsOK(ecode2)) {
27909 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_nbits_set" "', argument " "2"" of type '" "int""'");
27911 arg2 =
static_cast< int >(val2);
27912 if (arg1) (arg1)->nbits = arg2;
27913 resultobj = SWIG_Py_Void();
27920 SWIGINTERN PyObject *_wrap_IndexLSH_nbits_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27921 PyObject *resultobj = 0;
27925 PyObject * obj0 = 0 ;
27928 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_nbits_get",&obj0)) SWIG_fail;
27929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
27930 if (!SWIG_IsOK(res1)) {
27931 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_nbits_get" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
27934 result = (int) ((arg1)->nbits);
27935 resultobj = SWIG_From_int(static_cast< int >(result));
27942 SWIGINTERN PyObject *_wrap_IndexLSH_bytes_per_vec_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27943 PyObject *resultobj = 0;
27950 PyObject * obj0 = 0 ;
27951 PyObject * obj1 = 0 ;
27953 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_bytes_per_vec_set",&obj0,&obj1)) SWIG_fail;
27954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
27955 if (!SWIG_IsOK(res1)) {
27956 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_bytes_per_vec_set" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
27959 ecode2 = SWIG_AsVal_int(obj1, &val2);
27960 if (!SWIG_IsOK(ecode2)) {
27961 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_bytes_per_vec_set" "', argument " "2"" of type '" "int""'");
27963 arg2 =
static_cast< int >(val2);
27964 if (arg1) (arg1)->bytes_per_vec = arg2;
27965 resultobj = SWIG_Py_Void();
27972 SWIGINTERN PyObject *_wrap_IndexLSH_bytes_per_vec_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27973 PyObject *resultobj = 0;
27977 PyObject * obj0 = 0 ;
27980 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_bytes_per_vec_get",&obj0)) SWIG_fail;
27981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
27982 if (!SWIG_IsOK(res1)) {
27983 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_bytes_per_vec_get" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
27986 result = (int) ((arg1)->bytes_per_vec);
27987 resultobj = SWIG_From_int(static_cast< int >(result));
27994 SWIGINTERN PyObject *_wrap_IndexLSH_rotate_data_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27995 PyObject *resultobj = 0;
28002 PyObject * obj0 = 0 ;
28003 PyObject * obj1 = 0 ;
28005 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_rotate_data_set",&obj0,&obj1)) SWIG_fail;
28006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28007 if (!SWIG_IsOK(res1)) {
28008 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_rotate_data_set" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28011 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28012 if (!SWIG_IsOK(ecode2)) {
28013 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_rotate_data_set" "', argument " "2"" of type '" "bool""'");
28015 arg2 =
static_cast< bool >(val2);
28016 if (arg1) (arg1)->rotate_data = arg2;
28017 resultobj = SWIG_Py_Void();
28024 SWIGINTERN PyObject *_wrap_IndexLSH_rotate_data_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28025 PyObject *resultobj = 0;
28029 PyObject * obj0 = 0 ;
28032 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_rotate_data_get",&obj0)) SWIG_fail;
28033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28034 if (!SWIG_IsOK(res1)) {
28035 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_rotate_data_get" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28038 result = (bool) ((arg1)->rotate_data);
28039 resultobj = SWIG_From_bool(static_cast< bool >(result));
28046 SWIGINTERN PyObject *_wrap_IndexLSH_train_thresholds_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28047 PyObject *resultobj = 0;
28054 PyObject * obj0 = 0 ;
28055 PyObject * obj1 = 0 ;
28057 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_train_thresholds_set",&obj0,&obj1)) SWIG_fail;
28058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28059 if (!SWIG_IsOK(res1)) {
28060 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_train_thresholds_set" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28063 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28064 if (!SWIG_IsOK(ecode2)) {
28065 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_train_thresholds_set" "', argument " "2"" of type '" "bool""'");
28067 arg2 =
static_cast< bool >(val2);
28068 if (arg1) (arg1)->train_thresholds = arg2;
28069 resultobj = SWIG_Py_Void();
28076 SWIGINTERN PyObject *_wrap_IndexLSH_train_thresholds_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28077 PyObject *resultobj = 0;
28081 PyObject * obj0 = 0 ;
28084 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_train_thresholds_get",&obj0)) SWIG_fail;
28085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28086 if (!SWIG_IsOK(res1)) {
28087 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_train_thresholds_get" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28090 result = (bool) ((arg1)->train_thresholds);
28091 resultobj = SWIG_From_bool(static_cast< bool >(result));
28098 SWIGINTERN PyObject *_wrap_IndexLSH_rrot_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28099 PyObject *resultobj = 0;
28106 PyObject * obj0 = 0 ;
28107 PyObject * obj1 = 0 ;
28109 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_rrot_set",&obj0,&obj1)) SWIG_fail;
28110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28111 if (!SWIG_IsOK(res1)) {
28112 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_rrot_set" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28115 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__RandomRotationMatrix, 0 | 0 );
28116 if (!SWIG_IsOK(res2)) {
28117 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexLSH_rrot_set" "', argument " "2"" of type '" "faiss::RandomRotationMatrix *""'");
28120 if (arg1) (arg1)->rrot = *arg2;
28121 resultobj = SWIG_Py_Void();
28128 SWIGINTERN PyObject *_wrap_IndexLSH_rrot_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28129 PyObject *resultobj = 0;
28133 PyObject * obj0 = 0 ;
28136 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_rrot_get",&obj0)) SWIG_fail;
28137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28138 if (!SWIG_IsOK(res1)) {
28139 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_rrot_get" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RandomRotationMatrix, 0 | 0 );
28150 SWIGINTERN PyObject *_wrap_IndexLSH_thresholds_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28151 PyObject *resultobj = 0;
28153 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
28158 PyObject * obj0 = 0 ;
28159 PyObject * obj1 = 0 ;
28161 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_thresholds_set",&obj0,&obj1)) SWIG_fail;
28162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28163 if (!SWIG_IsOK(res1)) {
28164 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_thresholds_set" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28167 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
28168 if (!SWIG_IsOK(res2)) {
28169 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexLSH_thresholds_set" "', argument " "2"" of type '" "std::vector< float > *""'");
28171 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
28172 if (arg1) (arg1)->thresholds = *arg2;
28173 resultobj = SWIG_Py_Void();
28180 SWIGINTERN PyObject *_wrap_IndexLSH_thresholds_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28181 PyObject *resultobj = 0;
28185 PyObject * obj0 = 0 ;
28186 std::vector< float > *result = 0 ;
28188 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_thresholds_get",&obj0)) SWIG_fail;
28189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28190 if (!SWIG_IsOK(res1)) {
28191 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_thresholds_get" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28194 result = (std::vector< float > *)& ((arg1)->thresholds);
28195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
28202 SWIGINTERN PyObject *_wrap_IndexLSH_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28203 PyObject *resultobj = 0;
28205 std::vector< faiss::IndexLSH::uint8_t > *arg2 = (std::vector< faiss::IndexLSH::uint8_t > *) 0 ;
28210 PyObject * obj0 = 0 ;
28211 PyObject * obj1 = 0 ;
28213 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_codes_set",&obj0,&obj1)) SWIG_fail;
28214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28215 if (!SWIG_IsOK(res1)) {
28216 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_codes_set" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28219 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
28220 if (!SWIG_IsOK(res2)) {
28221 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexLSH_codes_set" "', argument " "2"" of type '" "std::vector< faiss::IndexLSH::uint8_t > *""'");
28223 arg2 =
reinterpret_cast< std::vector< faiss::IndexLSH::uint8_t > *
>(argp2);
28224 if (arg1) (arg1)->codes = *arg2;
28225 resultobj = SWIG_Py_Void();
28232 SWIGINTERN PyObject *_wrap_IndexLSH_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28233 PyObject *resultobj = 0;
28237 PyObject * obj0 = 0 ;
28238 std::vector< faiss::IndexLSH::uint8_t > *result = 0 ;
28240 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_codes_get",&obj0)) SWIG_fail;
28241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28242 if (!SWIG_IsOK(res1)) {
28243 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_codes_get" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28246 result = (std::vector< faiss::IndexLSH::uint8_t > *)& ((arg1)->codes);
28247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
28254 SWIGINTERN PyObject *_wrap_new_IndexLSH__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28255 PyObject *resultobj = 0;
28268 PyObject * obj0 = 0 ;
28269 PyObject * obj1 = 0 ;
28270 PyObject * obj2 = 0 ;
28271 PyObject * obj3 = 0 ;
28274 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_IndexLSH",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28275 ecode1 = SWIG_AsVal_long(obj0, &val1);
28276 if (!SWIG_IsOK(ecode1)) {
28277 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexLSH" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
28280 ecode2 = SWIG_AsVal_int(obj1, &val2);
28281 if (!SWIG_IsOK(ecode2)) {
28282 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexLSH" "', argument " "2"" of type '" "int""'");
28284 arg2 =
static_cast< int >(val2);
28285 ecode3 = SWIG_AsVal_bool(obj2, &val3);
28286 if (!SWIG_IsOK(ecode3)) {
28287 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexLSH" "', argument " "3"" of type '" "bool""'");
28289 arg3 =
static_cast< bool >(val3);
28290 ecode4 = SWIG_AsVal_bool(obj3, &val4);
28291 if (!SWIG_IsOK(ecode4)) {
28292 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexLSH" "', argument " "4"" of type '" "bool""'");
28294 arg4 =
static_cast< bool >(val4);
28296 Py_BEGIN_ALLOW_THREADS
28300 PyEval_RestoreThread(_save);
28301 PyErr_SetString(PyExc_RuntimeError, e.
what());
28304 Py_END_ALLOW_THREADS
28306 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexLSH, SWIG_POINTER_NEW | 0 );
28313 SWIGINTERN PyObject *_wrap_new_IndexLSH__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28314 PyObject *resultobj = 0;
28324 PyObject * obj0 = 0 ;
28325 PyObject * obj1 = 0 ;
28326 PyObject * obj2 = 0 ;
28329 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexLSH",&obj0,&obj1,&obj2)) SWIG_fail;
28330 ecode1 = SWIG_AsVal_long(obj0, &val1);
28331 if (!SWIG_IsOK(ecode1)) {
28332 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexLSH" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
28335 ecode2 = SWIG_AsVal_int(obj1, &val2);
28336 if (!SWIG_IsOK(ecode2)) {
28337 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexLSH" "', argument " "2"" of type '" "int""'");
28339 arg2 =
static_cast< int >(val2);
28340 ecode3 = SWIG_AsVal_bool(obj2, &val3);
28341 if (!SWIG_IsOK(ecode3)) {
28342 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexLSH" "', argument " "3"" of type '" "bool""'");
28344 arg3 =
static_cast< bool >(val3);
28346 Py_BEGIN_ALLOW_THREADS
28350 PyEval_RestoreThread(_save);
28351 PyErr_SetString(PyExc_RuntimeError, e.
what());
28354 Py_END_ALLOW_THREADS
28356 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexLSH, SWIG_POINTER_NEW | 0 );
28363 SWIGINTERN PyObject *_wrap_new_IndexLSH__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28364 PyObject *resultobj = 0;
28371 PyObject * obj0 = 0 ;
28372 PyObject * obj1 = 0 ;
28375 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexLSH",&obj0,&obj1)) SWIG_fail;
28376 ecode1 = SWIG_AsVal_long(obj0, &val1);
28377 if (!SWIG_IsOK(ecode1)) {
28378 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexLSH" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
28381 ecode2 = SWIG_AsVal_int(obj1, &val2);
28382 if (!SWIG_IsOK(ecode2)) {
28383 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexLSH" "', argument " "2"" of type '" "int""'");
28385 arg2 =
static_cast< int >(val2);
28387 Py_BEGIN_ALLOW_THREADS
28391 PyEval_RestoreThread(_save);
28392 PyErr_SetString(PyExc_RuntimeError, e.
what());
28395 Py_END_ALLOW_THREADS
28397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexLSH, SWIG_POINTER_NEW | 0 );
28404 SWIGINTERN PyObject *_wrap_IndexLSH_apply_preprocess(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28405 PyObject *resultobj = 0;
28408 float *arg3 = (
float *) 0 ;
28415 PyObject * obj0 = 0 ;
28416 PyObject * obj1 = 0 ;
28417 PyObject * obj2 = 0 ;
28418 float *result = 0 ;
28420 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexLSH_apply_preprocess",&obj0,&obj1,&obj2)) SWIG_fail;
28421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28422 if (!SWIG_IsOK(res1)) {
28423 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_apply_preprocess" "', argument " "1"" of type '" "faiss::IndexLSH const *""'");
28426 ecode2 = SWIG_AsVal_long(obj1, &val2);
28427 if (!SWIG_IsOK(ecode2)) {
28428 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_apply_preprocess" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
28431 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
28432 if (!SWIG_IsOK(res3)) {
28433 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexLSH_apply_preprocess" "', argument " "3"" of type '" "float const *""'");
28435 arg3 =
reinterpret_cast< float *
>(argp3);
28437 Py_BEGIN_ALLOW_THREADS
28439 result = (
float *)((
faiss::IndexLSH const *)arg1)->apply_preprocess(arg2,(
float const *)arg3);
28441 PyEval_RestoreThread(_save);
28442 PyErr_SetString(PyExc_RuntimeError, e.
what());
28445 Py_END_ALLOW_THREADS
28447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
28454 SWIGINTERN PyObject *_wrap_IndexLSH_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28455 PyObject *resultobj = 0;
28458 float *arg3 = (
float *) 0 ;
28465 PyObject * obj0 = 0 ;
28466 PyObject * obj1 = 0 ;
28467 PyObject * obj2 = 0 ;
28469 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexLSH_train",&obj0,&obj1,&obj2)) SWIG_fail;
28470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28471 if (!SWIG_IsOK(res1)) {
28472 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_train" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28475 ecode2 = SWIG_AsVal_long(obj1, &val2);
28476 if (!SWIG_IsOK(ecode2)) {
28477 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
28480 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
28481 if (!SWIG_IsOK(res3)) {
28482 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexLSH_train" "', argument " "3"" of type '" "float const *""'");
28484 arg3 =
reinterpret_cast< float *
>(argp3);
28486 Py_BEGIN_ALLOW_THREADS
28488 (arg1)->train(arg2,(
float const *)arg3);
28490 PyEval_RestoreThread(_save);
28491 PyErr_SetString(PyExc_RuntimeError, e.
what());
28494 Py_END_ALLOW_THREADS
28496 resultobj = SWIG_Py_Void();
28503 SWIGINTERN PyObject *_wrap_IndexLSH_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28504 PyObject *resultobj = 0;
28507 float *arg3 = (
float *) 0 ;
28514 PyObject * obj0 = 0 ;
28515 PyObject * obj1 = 0 ;
28516 PyObject * obj2 = 0 ;
28518 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexLSH_add",&obj0,&obj1,&obj2)) SWIG_fail;
28519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28520 if (!SWIG_IsOK(res1)) {
28521 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_add" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28524 ecode2 = SWIG_AsVal_long(obj1, &val2);
28525 if (!SWIG_IsOK(ecode2)) {
28526 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
28529 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
28530 if (!SWIG_IsOK(res3)) {
28531 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexLSH_add" "', argument " "3"" of type '" "float const *""'");
28533 arg3 =
reinterpret_cast< float *
>(argp3);
28535 Py_BEGIN_ALLOW_THREADS
28537 (arg1)->add(arg2,(
float const *)arg3);
28539 PyEval_RestoreThread(_save);
28540 PyErr_SetString(PyExc_RuntimeError, e.
what());
28543 Py_END_ALLOW_THREADS
28545 resultobj = SWIG_Py_Void();
28552 SWIGINTERN PyObject *_wrap_IndexLSH_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28553 PyObject *resultobj = 0;
28556 float *arg3 = (
float *) 0 ;
28558 float *arg5 = (
float *) 0 ;
28572 PyObject * obj0 = 0 ;
28573 PyObject * obj1 = 0 ;
28574 PyObject * obj2 = 0 ;
28575 PyObject * obj3 = 0 ;
28576 PyObject * obj4 = 0 ;
28577 PyObject * obj5 = 0 ;
28579 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexLSH_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28581 if (!SWIG_IsOK(res1)) {
28582 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_search" "', argument " "1"" of type '" "faiss::IndexLSH const *""'");
28585 ecode2 = SWIG_AsVal_long(obj1, &val2);
28586 if (!SWIG_IsOK(ecode2)) {
28587 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
28590 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
28591 if (!SWIG_IsOK(res3)) {
28592 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexLSH_search" "', argument " "3"" of type '" "float const *""'");
28594 arg3 =
reinterpret_cast< float *
>(argp3);
28595 ecode4 = SWIG_AsVal_long(obj3, &val4);
28596 if (!SWIG_IsOK(ecode4)) {
28597 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexLSH_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
28600 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
28601 if (!SWIG_IsOK(res5)) {
28602 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexLSH_search" "', argument " "5"" of type '" "float *""'");
28604 arg5 =
reinterpret_cast< float *
>(argp5);
28605 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
28606 if (!SWIG_IsOK(res6)) {
28607 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexLSH_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
28611 Py_BEGIN_ALLOW_THREADS
28613 ((
faiss::IndexLSH const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
28615 PyEval_RestoreThread(_save);
28616 PyErr_SetString(PyExc_RuntimeError, e.
what());
28619 Py_END_ALLOW_THREADS
28621 resultobj = SWIG_Py_Void();
28628 SWIGINTERN PyObject *_wrap_IndexLSH_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28629 PyObject *resultobj = 0;
28633 PyObject * obj0 = 0 ;
28635 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_reset",&obj0)) SWIG_fail;
28636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28637 if (!SWIG_IsOK(res1)) {
28638 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_reset" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28642 Py_BEGIN_ALLOW_THREADS
28646 PyEval_RestoreThread(_save);
28647 PyErr_SetString(PyExc_RuntimeError, e.
what());
28650 Py_END_ALLOW_THREADS
28652 resultobj = SWIG_Py_Void();
28659 SWIGINTERN PyObject *_wrap_IndexLSH_transfer_thresholds(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28660 PyObject *resultobj = 0;
28667 PyObject * obj0 = 0 ;
28668 PyObject * obj1 = 0 ;
28670 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_transfer_thresholds",&obj0,&obj1)) SWIG_fail;
28671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
28672 if (!SWIG_IsOK(res1)) {
28673 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_transfer_thresholds" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28676 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
28677 if (!SWIG_IsOK(res2)) {
28678 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexLSH_transfer_thresholds" "', argument " "2"" of type '" "faiss::LinearTransform *""'");
28682 Py_BEGIN_ALLOW_THREADS
28684 (arg1)->transfer_thresholds(arg2);
28686 PyEval_RestoreThread(_save);
28687 PyErr_SetString(PyExc_RuntimeError, e.
what());
28690 Py_END_ALLOW_THREADS
28692 resultobj = SWIG_Py_Void();
28699 SWIGINTERN PyObject *_wrap_delete_IndexLSH(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28700 PyObject *resultobj = 0;
28704 PyObject * obj0 = 0 ;
28706 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexLSH",&obj0)) SWIG_fail;
28707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, SWIG_POINTER_DISOWN | 0 );
28708 if (!SWIG_IsOK(res1)) {
28709 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexLSH" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
28713 Py_BEGIN_ALLOW_THREADS
28717 PyEval_RestoreThread(_save);
28718 PyErr_SetString(PyExc_RuntimeError, e.
what());
28721 Py_END_ALLOW_THREADS
28723 resultobj = SWIG_Py_Void();
28730 SWIGINTERN PyObject *_wrap_new_IndexLSH__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28731 PyObject *resultobj = 0;
28734 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexLSH")) SWIG_fail;
28736 Py_BEGIN_ALLOW_THREADS
28740 PyEval_RestoreThread(_save);
28741 PyErr_SetString(PyExc_RuntimeError, e.
what());
28744 Py_END_ALLOW_THREADS
28746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexLSH, SWIG_POINTER_NEW | 0 );
28753 SWIGINTERN PyObject *_wrap_new_IndexLSH(PyObject *
self, PyObject *args) {
28755 PyObject *argv[5] = {
28760 if (!PyTuple_Check(args)) SWIG_fail;
28761 argc = args ? PyObject_Length(args) : 0;
28762 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
28763 argv[ii] = PyTuple_GET_ITEM(args,ii);
28766 return _wrap_new_IndexLSH__SWIG_3(
self, args);
28771 int res = SWIG_AsVal_long(argv[0], NULL);
28772 _v = SWIG_CheckState(res);
28776 int res = SWIG_AsVal_int(argv[1], NULL);
28777 _v = SWIG_CheckState(res);
28780 return _wrap_new_IndexLSH__SWIG_2(
self, args);
28787 int res = SWIG_AsVal_long(argv[0], NULL);
28788 _v = SWIG_CheckState(res);
28792 int res = SWIG_AsVal_int(argv[1], NULL);
28793 _v = SWIG_CheckState(res);
28797 int res = SWIG_AsVal_bool(argv[2], NULL);
28798 _v = SWIG_CheckState(res);
28801 return _wrap_new_IndexLSH__SWIG_1(
self, args);
28809 int res = SWIG_AsVal_long(argv[0], NULL);
28810 _v = SWIG_CheckState(res);
28814 int res = SWIG_AsVal_int(argv[1], NULL);
28815 _v = SWIG_CheckState(res);
28819 int res = SWIG_AsVal_bool(argv[2], NULL);
28820 _v = SWIG_CheckState(res);
28824 int res = SWIG_AsVal_bool(argv[3], NULL);
28825 _v = SWIG_CheckState(res);
28828 return _wrap_new_IndexLSH__SWIG_0(
self, args);
28836 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexLSH'.\n"
28837 " Possible C/C++ prototypes are:\n"
28838 " faiss::IndexLSH::IndexLSH(faiss::Index::idx_t,int,bool,bool)\n"
28839 " faiss::IndexLSH::IndexLSH(faiss::Index::idx_t,int,bool)\n"
28840 " faiss::IndexLSH::IndexLSH(faiss::Index::idx_t,int)\n"
28841 " faiss::IndexLSH::IndexLSH()\n");
28846 SWIGINTERN PyObject *IndexLSH_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28848 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
28849 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexLSH, SWIG_NewClientData(obj));
28850 return SWIG_Py_Void();
28853 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_init_temperature_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28854 PyObject *resultobj = 0;
28861 PyObject * obj0 = 0 ;
28862 PyObject * obj1 = 0 ;
28864 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_init_temperature_set",&obj0,&obj1)) SWIG_fail;
28865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
28866 if (!SWIG_IsOK(res1)) {
28867 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_init_temperature_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
28870 ecode2 = SWIG_AsVal_double(obj1, &val2);
28871 if (!SWIG_IsOK(ecode2)) {
28872 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_init_temperature_set" "', argument " "2"" of type '" "double""'");
28874 arg2 =
static_cast< double >(val2);
28875 if (arg1) (arg1)->init_temperature = arg2;
28876 resultobj = SWIG_Py_Void();
28883 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_init_temperature_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28884 PyObject *resultobj = 0;
28888 PyObject * obj0 = 0 ;
28891 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_init_temperature_get",&obj0)) SWIG_fail;
28892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
28893 if (!SWIG_IsOK(res1)) {
28894 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_init_temperature_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
28897 result = (double) ((arg1)->init_temperature);
28898 resultobj = SWIG_From_double(static_cast< double >(result));
28905 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_temperature_decay_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28906 PyObject *resultobj = 0;
28913 PyObject * obj0 = 0 ;
28914 PyObject * obj1 = 0 ;
28916 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_temperature_decay_set",&obj0,&obj1)) SWIG_fail;
28917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
28918 if (!SWIG_IsOK(res1)) {
28919 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_temperature_decay_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
28922 ecode2 = SWIG_AsVal_double(obj1, &val2);
28923 if (!SWIG_IsOK(ecode2)) {
28924 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_temperature_decay_set" "', argument " "2"" of type '" "double""'");
28926 arg2 =
static_cast< double >(val2);
28927 if (arg1) (arg1)->temperature_decay = arg2;
28928 resultobj = SWIG_Py_Void();
28935 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_temperature_decay_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28936 PyObject *resultobj = 0;
28940 PyObject * obj0 = 0 ;
28943 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_temperature_decay_get",&obj0)) SWIG_fail;
28944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
28945 if (!SWIG_IsOK(res1)) {
28946 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_temperature_decay_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
28949 result = (double) ((arg1)->temperature_decay);
28950 resultobj = SWIG_From_double(static_cast< double >(result));
28957 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_n_iter_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28958 PyObject *resultobj = 0;
28965 PyObject * obj0 = 0 ;
28966 PyObject * obj1 = 0 ;
28968 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_n_iter_set",&obj0,&obj1)) SWIG_fail;
28969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
28970 if (!SWIG_IsOK(res1)) {
28971 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_n_iter_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
28974 ecode2 = SWIG_AsVal_int(obj1, &val2);
28975 if (!SWIG_IsOK(ecode2)) {
28976 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_n_iter_set" "', argument " "2"" of type '" "int""'");
28978 arg2 =
static_cast< int >(val2);
28979 if (arg1) (arg1)->n_iter = arg2;
28980 resultobj = SWIG_Py_Void();
28987 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_n_iter_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28988 PyObject *resultobj = 0;
28992 PyObject * obj0 = 0 ;
28995 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_n_iter_get",&obj0)) SWIG_fail;
28996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
28997 if (!SWIG_IsOK(res1)) {
28998 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_n_iter_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
29001 result = (int) ((arg1)->n_iter);
29002 resultobj = SWIG_From_int(static_cast< int >(result));
29009 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_n_redo_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29010 PyObject *resultobj = 0;
29017 PyObject * obj0 = 0 ;
29018 PyObject * obj1 = 0 ;
29020 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_n_redo_set",&obj0,&obj1)) SWIG_fail;
29021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
29022 if (!SWIG_IsOK(res1)) {
29023 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_n_redo_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
29026 ecode2 = SWIG_AsVal_int(obj1, &val2);
29027 if (!SWIG_IsOK(ecode2)) {
29028 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_n_redo_set" "', argument " "2"" of type '" "int""'");
29030 arg2 =
static_cast< int >(val2);
29031 if (arg1) (arg1)->n_redo = arg2;
29032 resultobj = SWIG_Py_Void();
29039 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_n_redo_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29040 PyObject *resultobj = 0;
29044 PyObject * obj0 = 0 ;
29047 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_n_redo_get",&obj0)) SWIG_fail;
29048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
29049 if (!SWIG_IsOK(res1)) {
29050 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_n_redo_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
29053 result = (int) ((arg1)->n_redo);
29054 resultobj = SWIG_From_int(static_cast< int >(result));
29061 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_seed_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29062 PyObject *resultobj = 0;
29069 PyObject * obj0 = 0 ;
29070 PyObject * obj1 = 0 ;
29072 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_seed_set",&obj0,&obj1)) SWIG_fail;
29073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
29074 if (!SWIG_IsOK(res1)) {
29075 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_seed_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
29078 ecode2 = SWIG_AsVal_int(obj1, &val2);
29079 if (!SWIG_IsOK(ecode2)) {
29080 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_seed_set" "', argument " "2"" of type '" "int""'");
29082 arg2 =
static_cast< int >(val2);
29083 if (arg1) (arg1)->seed = arg2;
29084 resultobj = SWIG_Py_Void();
29091 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_seed_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29092 PyObject *resultobj = 0;
29096 PyObject * obj0 = 0 ;
29099 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_seed_get",&obj0)) SWIG_fail;
29100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
29101 if (!SWIG_IsOK(res1)) {
29102 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_seed_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
29105 result = (int) ((arg1)->seed);
29106 resultobj = SWIG_From_int(static_cast< int >(result));
29113 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29114 PyObject *resultobj = 0;
29121 PyObject * obj0 = 0 ;
29122 PyObject * obj1 = 0 ;
29124 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_verbose_set",&obj0,&obj1)) SWIG_fail;
29125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
29126 if (!SWIG_IsOK(res1)) {
29127 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_verbose_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
29130 ecode2 = SWIG_AsVal_int(obj1, &val2);
29131 if (!SWIG_IsOK(ecode2)) {
29132 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_verbose_set" "', argument " "2"" of type '" "int""'");
29134 arg2 =
static_cast< int >(val2);
29135 if (arg1) (arg1)->verbose = arg2;
29136 resultobj = SWIG_Py_Void();
29143 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29144 PyObject *resultobj = 0;
29148 PyObject * obj0 = 0 ;
29151 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_verbose_get",&obj0)) SWIG_fail;
29152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
29153 if (!SWIG_IsOK(res1)) {
29154 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_verbose_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
29157 result = (int) ((arg1)->verbose);
29158 resultobj = SWIG_From_int(static_cast< int >(result));
29165 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_only_bit_flips_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29166 PyObject *resultobj = 0;
29173 PyObject * obj0 = 0 ;
29174 PyObject * obj1 = 0 ;
29176 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_only_bit_flips_set",&obj0,&obj1)) SWIG_fail;
29177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
29178 if (!SWIG_IsOK(res1)) {
29179 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_only_bit_flips_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
29182 ecode2 = SWIG_AsVal_bool(obj1, &val2);
29183 if (!SWIG_IsOK(ecode2)) {
29184 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_only_bit_flips_set" "', argument " "2"" of type '" "bool""'");
29186 arg2 =
static_cast< bool >(val2);
29187 if (arg1) (arg1)->only_bit_flips = arg2;
29188 resultobj = SWIG_Py_Void();
29195 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_only_bit_flips_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29196 PyObject *resultobj = 0;
29200 PyObject * obj0 = 0 ;
29203 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_only_bit_flips_get",&obj0)) SWIG_fail;
29204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
29205 if (!SWIG_IsOK(res1)) {
29206 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_only_bit_flips_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
29209 result = (bool) ((arg1)->only_bit_flips);
29210 resultobj = SWIG_From_bool(static_cast< bool >(result));
29217 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_init_random_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29218 PyObject *resultobj = 0;
29225 PyObject * obj0 = 0 ;
29226 PyObject * obj1 = 0 ;
29228 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_init_random_set",&obj0,&obj1)) SWIG_fail;
29229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
29230 if (!SWIG_IsOK(res1)) {
29231 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_init_random_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
29234 ecode2 = SWIG_AsVal_bool(obj1, &val2);
29235 if (!SWIG_IsOK(ecode2)) {
29236 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_init_random_set" "', argument " "2"" of type '" "bool""'");
29238 arg2 =
static_cast< bool >(val2);
29239 if (arg1) (arg1)->init_random = arg2;
29240 resultobj = SWIG_Py_Void();
29247 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_init_random_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29248 PyObject *resultobj = 0;
29252 PyObject * obj0 = 0 ;
29255 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_init_random_get",&obj0)) SWIG_fail;
29256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
29257 if (!SWIG_IsOK(res1)) {
29258 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_init_random_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
29261 result = (bool) ((arg1)->init_random);
29262 resultobj = SWIG_From_bool(static_cast< bool >(result));
29269 SWIGINTERN PyObject *_wrap_new_SimulatedAnnealingParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29270 PyObject *resultobj = 0;
29273 if (!PyArg_ParseTuple(args,(
char *)
":new_SimulatedAnnealingParameters")) SWIG_fail;
29275 Py_BEGIN_ALLOW_THREADS
29279 PyEval_RestoreThread(_save);
29280 PyErr_SetString(PyExc_RuntimeError, e.
what());
29283 Py_END_ALLOW_THREADS
29285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__SimulatedAnnealingParameters, SWIG_POINTER_NEW | 0 );
29292 SWIGINTERN PyObject *_wrap_delete_SimulatedAnnealingParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29293 PyObject *resultobj = 0;
29297 PyObject * obj0 = 0 ;
29299 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_SimulatedAnnealingParameters",&obj0)) SWIG_fail;
29300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, SWIG_POINTER_DISOWN | 0 );
29301 if (!SWIG_IsOK(res1)) {
29302 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_SimulatedAnnealingParameters" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
29306 resultobj = SWIG_Py_Void();
29313 SWIGINTERN PyObject *SimulatedAnnealingParameters_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29315 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
29316 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__SimulatedAnnealingParameters, SWIG_NewClientData(obj));
29317 return SWIG_Py_Void();
29320 SWIGINTERN PyObject *_wrap_PermutationObjective_n_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29321 PyObject *resultobj = 0;
29328 PyObject * obj0 = 0 ;
29329 PyObject * obj1 = 0 ;
29331 if (!PyArg_ParseTuple(args,(
char *)
"OO:PermutationObjective_n_set",&obj0,&obj1)) SWIG_fail;
29332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PermutationObjective, 0 | 0 );
29333 if (!SWIG_IsOK(res1)) {
29334 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PermutationObjective_n_set" "', argument " "1"" of type '" "faiss::PermutationObjective *""'");
29337 ecode2 = SWIG_AsVal_int(obj1, &val2);
29338 if (!SWIG_IsOK(ecode2)) {
29339 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PermutationObjective_n_set" "', argument " "2"" of type '" "int""'");
29341 arg2 =
static_cast< int >(val2);
29342 if (arg1) (arg1)->n = arg2;
29343 resultobj = SWIG_Py_Void();
29350 SWIGINTERN PyObject *_wrap_PermutationObjective_n_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29351 PyObject *resultobj = 0;
29355 PyObject * obj0 = 0 ;
29358 if (!PyArg_ParseTuple(args,(
char *)
"O:PermutationObjective_n_get",&obj0)) SWIG_fail;
29359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PermutationObjective, 0 | 0 );
29360 if (!SWIG_IsOK(res1)) {
29361 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PermutationObjective_n_get" "', argument " "1"" of type '" "faiss::PermutationObjective *""'");
29364 result = (int) ((arg1)->n);
29365 resultobj = SWIG_From_int(static_cast< int >(result));
29372 SWIGINTERN PyObject *_wrap_PermutationObjective_compute_cost(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29373 PyObject *resultobj = 0;
29375 int *arg2 = (
int *) 0 ;
29380 PyObject * obj0 = 0 ;
29381 PyObject * obj1 = 0 ;
29384 if (!PyArg_ParseTuple(args,(
char *)
"OO:PermutationObjective_compute_cost",&obj0,&obj1)) SWIG_fail;
29385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PermutationObjective, 0 | 0 );
29386 if (!SWIG_IsOK(res1)) {
29387 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PermutationObjective_compute_cost" "', argument " "1"" of type '" "faiss::PermutationObjective const *""'");
29390 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
29391 if (!SWIG_IsOK(res2)) {
29392 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PermutationObjective_compute_cost" "', argument " "2"" of type '" "int const *""'");
29394 arg2 =
reinterpret_cast< int *
>(argp2);
29396 Py_BEGIN_ALLOW_THREADS
29400 PyEval_RestoreThread(_save);
29401 PyErr_SetString(PyExc_RuntimeError, e.
what());
29404 Py_END_ALLOW_THREADS
29406 resultobj = SWIG_From_double(static_cast< double >(result));
29413 SWIGINTERN PyObject *_wrap_PermutationObjective_cost_update(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29414 PyObject *resultobj = 0;
29416 int *arg2 = (
int *) 0 ;
29427 PyObject * obj0 = 0 ;
29428 PyObject * obj1 = 0 ;
29429 PyObject * obj2 = 0 ;
29430 PyObject * obj3 = 0 ;
29433 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:PermutationObjective_cost_update",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PermutationObjective, 0 | 0 );
29435 if (!SWIG_IsOK(res1)) {
29436 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PermutationObjective_cost_update" "', argument " "1"" of type '" "faiss::PermutationObjective const *""'");
29439 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
29440 if (!SWIG_IsOK(res2)) {
29441 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PermutationObjective_cost_update" "', argument " "2"" of type '" "int const *""'");
29443 arg2 =
reinterpret_cast< int *
>(argp2);
29444 ecode3 = SWIG_AsVal_int(obj2, &val3);
29445 if (!SWIG_IsOK(ecode3)) {
29446 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "PermutationObjective_cost_update" "', argument " "3"" of type '" "int""'");
29448 arg3 =
static_cast< int >(val3);
29449 ecode4 = SWIG_AsVal_int(obj3, &val4);
29450 if (!SWIG_IsOK(ecode4)) {
29451 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "PermutationObjective_cost_update" "', argument " "4"" of type '" "int""'");
29453 arg4 =
static_cast< int >(val4);
29455 Py_BEGIN_ALLOW_THREADS
29459 PyEval_RestoreThread(_save);
29460 PyErr_SetString(PyExc_RuntimeError, e.
what());
29463 Py_END_ALLOW_THREADS
29465 resultobj = SWIG_From_double(static_cast< double >(result));
29472 SWIGINTERN PyObject *_wrap_delete_PermutationObjective(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29473 PyObject *resultobj = 0;
29477 PyObject * obj0 = 0 ;
29479 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_PermutationObjective",&obj0)) SWIG_fail;
29480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PermutationObjective, SWIG_POINTER_DISOWN | 0 );
29481 if (!SWIG_IsOK(res1)) {
29482 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_PermutationObjective" "', argument " "1"" of type '" "faiss::PermutationObjective *""'");
29486 Py_BEGIN_ALLOW_THREADS
29490 PyEval_RestoreThread(_save);
29491 PyErr_SetString(PyExc_RuntimeError, e.
what());
29494 Py_END_ALLOW_THREADS
29496 resultobj = SWIG_Py_Void();
29503 SWIGINTERN PyObject *PermutationObjective_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29505 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
29506 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__PermutationObjective, SWIG_NewClientData(obj));
29507 return SWIG_Py_Void();
29510 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_dis_weight_factor_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29511 PyObject *resultobj = 0;
29518 PyObject * obj0 = 0 ;
29519 PyObject * obj1 = 0 ;
29521 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReproduceDistancesObjective_dis_weight_factor_set",&obj0,&obj1)) SWIG_fail;
29522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
29523 if (!SWIG_IsOK(res1)) {
29524 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_dis_weight_factor_set" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
29527 ecode2 = SWIG_AsVal_double(obj1, &val2);
29528 if (!SWIG_IsOK(ecode2)) {
29529 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReproduceDistancesObjective_dis_weight_factor_set" "', argument " "2"" of type '" "double""'");
29531 arg2 =
static_cast< double >(val2);
29532 if (arg1) (arg1)->dis_weight_factor = arg2;
29533 resultobj = SWIG_Py_Void();
29540 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_dis_weight_factor_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29541 PyObject *resultobj = 0;
29545 PyObject * obj0 = 0 ;
29548 if (!PyArg_ParseTuple(args,(
char *)
"O:ReproduceDistancesObjective_dis_weight_factor_get",&obj0)) SWIG_fail;
29549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
29550 if (!SWIG_IsOK(res1)) {
29551 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_dis_weight_factor_get" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
29554 result = (double) ((arg1)->dis_weight_factor);
29555 resultobj = SWIG_From_double(static_cast< double >(result));
29562 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_sqr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29563 PyObject *resultobj = 0;
29567 PyObject * obj0 = 0 ;
29570 if (!PyArg_ParseTuple(args,(
char *)
"O:ReproduceDistancesObjective_sqr",&obj0)) SWIG_fail;
29571 ecode1 = SWIG_AsVal_double(obj0, &val1);
29572 if (!SWIG_IsOK(ecode1)) {
29573 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "ReproduceDistancesObjective_sqr" "', argument " "1"" of type '" "double""'");
29575 arg1 =
static_cast< double >(val1);
29577 Py_BEGIN_ALLOW_THREADS
29579 result = (double)faiss::ReproduceDistancesObjective::sqr(arg1);
29581 PyEval_RestoreThread(_save);
29582 PyErr_SetString(PyExc_RuntimeError, e.
what());
29585 Py_END_ALLOW_THREADS
29587 resultobj = SWIG_From_double(static_cast< double >(result));
29594 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_dis_weight(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29595 PyObject *resultobj = 0;
29602 PyObject * obj0 = 0 ;
29603 PyObject * obj1 = 0 ;
29606 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReproduceDistancesObjective_dis_weight",&obj0,&obj1)) SWIG_fail;
29607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
29608 if (!SWIG_IsOK(res1)) {
29609 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_dis_weight" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective const *""'");
29612 ecode2 = SWIG_AsVal_double(obj1, &val2);
29613 if (!SWIG_IsOK(ecode2)) {
29614 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReproduceDistancesObjective_dis_weight" "', argument " "2"" of type '" "double""'");
29616 arg2 =
static_cast< double >(val2);
29618 Py_BEGIN_ALLOW_THREADS
29622 PyEval_RestoreThread(_save);
29623 PyErr_SetString(PyExc_RuntimeError, e.
what());
29626 Py_END_ALLOW_THREADS
29628 resultobj = SWIG_From_double(static_cast< double >(result));
29635 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_source_dis_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29636 PyObject *resultobj = 0;
29638 std::vector< double > *arg2 = (std::vector< double > *) 0 ;
29643 PyObject * obj0 = 0 ;
29644 PyObject * obj1 = 0 ;
29646 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReproduceDistancesObjective_source_dis_set",&obj0,&obj1)) SWIG_fail;
29647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
29648 if (!SWIG_IsOK(res1)) {
29649 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_source_dis_set" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
29652 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
29653 if (!SWIG_IsOK(res2)) {
29654 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReproduceDistancesObjective_source_dis_set" "', argument " "2"" of type '" "std::vector< double > *""'");
29656 arg2 =
reinterpret_cast< std::vector< double > *
>(argp2);
29657 if (arg1) (arg1)->source_dis = *arg2;
29658 resultobj = SWIG_Py_Void();
29665 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_source_dis_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29666 PyObject *resultobj = 0;
29670 PyObject * obj0 = 0 ;
29671 std::vector< double > *result = 0 ;
29673 if (!PyArg_ParseTuple(args,(
char *)
"O:ReproduceDistancesObjective_source_dis_get",&obj0)) SWIG_fail;
29674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
29675 if (!SWIG_IsOK(res1)) {
29676 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_source_dis_get" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
29679 result = (std::vector< double > *)& ((arg1)->source_dis);
29680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
29687 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_target_dis_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29688 PyObject *resultobj = 0;
29690 double *arg2 = (
double *) 0 ;
29695 PyObject * obj0 = 0 ;
29696 PyObject * obj1 = 0 ;
29698 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReproduceDistancesObjective_target_dis_set",&obj0,&obj1)) SWIG_fail;
29699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
29700 if (!SWIG_IsOK(res1)) {
29701 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_target_dis_set" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
29704 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 );
29705 if (!SWIG_IsOK(res2)) {
29706 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReproduceDistancesObjective_target_dis_set" "', argument " "2"" of type '" "double const *""'");
29708 arg2 =
reinterpret_cast< double *
>(argp2);
29709 if (arg1) (arg1)->target_dis = (
double const *)arg2;
29710 resultobj = SWIG_Py_Void();
29717 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_target_dis_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29718 PyObject *resultobj = 0;
29722 PyObject * obj0 = 0 ;
29723 double *result = 0 ;
29725 if (!PyArg_ParseTuple(args,(
char *)
"O:ReproduceDistancesObjective_target_dis_get",&obj0)) SWIG_fail;
29726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
29727 if (!SWIG_IsOK(res1)) {
29728 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_target_dis_get" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
29731 result = (
double *) ((arg1)->target_dis);
29732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 );
29739 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_weights_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29740 PyObject *resultobj = 0;
29742 std::vector< double > *arg2 = (std::vector< double > *) 0 ;
29747 PyObject * obj0 = 0 ;
29748 PyObject * obj1 = 0 ;
29750 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReproduceDistancesObjective_weights_set",&obj0,&obj1)) SWIG_fail;
29751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
29752 if (!SWIG_IsOK(res1)) {
29753 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_weights_set" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
29756 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
29757 if (!SWIG_IsOK(res2)) {
29758 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReproduceDistancesObjective_weights_set" "', argument " "2"" of type '" "std::vector< double > *""'");
29760 arg2 =
reinterpret_cast< std::vector< double > *
>(argp2);
29761 if (arg1) (arg1)->weights = *arg2;
29762 resultobj = SWIG_Py_Void();
29769 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_weights_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29770 PyObject *resultobj = 0;
29774 PyObject * obj0 = 0 ;
29775 std::vector< double > *result = 0 ;
29777 if (!PyArg_ParseTuple(args,(
char *)
"O:ReproduceDistancesObjective_weights_get",&obj0)) SWIG_fail;
29778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
29779 if (!SWIG_IsOK(res1)) {
29780 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_weights_get" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
29783 result = (std::vector< double > *)& ((arg1)->weights);
29784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
29791 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_get_source_dis(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29792 PyObject *resultobj = 0;
29802 PyObject * obj0 = 0 ;
29803 PyObject * obj1 = 0 ;
29804 PyObject * obj2 = 0 ;
29807 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ReproduceDistancesObjective_get_source_dis",&obj0,&obj1,&obj2)) SWIG_fail;
29808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
29809 if (!SWIG_IsOK(res1)) {
29810 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_get_source_dis" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective const *""'");
29813 ecode2 = SWIG_AsVal_int(obj1, &val2);
29814 if (!SWIG_IsOK(ecode2)) {
29815 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReproduceDistancesObjective_get_source_dis" "', argument " "2"" of type '" "int""'");
29817 arg2 =
static_cast< int >(val2);
29818 ecode3 = SWIG_AsVal_int(obj2, &val3);
29819 if (!SWIG_IsOK(ecode3)) {
29820 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ReproduceDistancesObjective_get_source_dis" "', argument " "3"" of type '" "int""'");
29822 arg3 =
static_cast< int >(val3);
29824 Py_BEGIN_ALLOW_THREADS
29828 PyEval_RestoreThread(_save);
29829 PyErr_SetString(PyExc_RuntimeError, e.
what());
29832 Py_END_ALLOW_THREADS
29834 resultobj = SWIG_From_double(static_cast< double >(result));
29841 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_compute_cost(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29842 PyObject *resultobj = 0;
29844 int *arg2 = (
int *) 0 ;
29849 PyObject * obj0 = 0 ;
29850 PyObject * obj1 = 0 ;
29853 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReproduceDistancesObjective_compute_cost",&obj0,&obj1)) SWIG_fail;
29854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
29855 if (!SWIG_IsOK(res1)) {
29856 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_compute_cost" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective const *""'");
29859 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
29860 if (!SWIG_IsOK(res2)) {
29861 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReproduceDistancesObjective_compute_cost" "', argument " "2"" of type '" "int const *""'");
29863 arg2 =
reinterpret_cast< int *
>(argp2);
29865 Py_BEGIN_ALLOW_THREADS
29869 PyEval_RestoreThread(_save);
29870 PyErr_SetString(PyExc_RuntimeError, e.
what());
29873 Py_END_ALLOW_THREADS
29875 resultobj = SWIG_From_double(static_cast< double >(result));
29882 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_cost_update(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29883 PyObject *resultobj = 0;
29885 int *arg2 = (
int *) 0 ;
29896 PyObject * obj0 = 0 ;
29897 PyObject * obj1 = 0 ;
29898 PyObject * obj2 = 0 ;
29899 PyObject * obj3 = 0 ;
29902 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ReproduceDistancesObjective_cost_update",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
29904 if (!SWIG_IsOK(res1)) {
29905 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_cost_update" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective const *""'");
29908 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
29909 if (!SWIG_IsOK(res2)) {
29910 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReproduceDistancesObjective_cost_update" "', argument " "2"" of type '" "int const *""'");
29912 arg2 =
reinterpret_cast< int *
>(argp2);
29913 ecode3 = SWIG_AsVal_int(obj2, &val3);
29914 if (!SWIG_IsOK(ecode3)) {
29915 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ReproduceDistancesObjective_cost_update" "', argument " "3"" of type '" "int""'");
29917 arg3 =
static_cast< int >(val3);
29918 ecode4 = SWIG_AsVal_int(obj3, &val4);
29919 if (!SWIG_IsOK(ecode4)) {
29920 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ReproduceDistancesObjective_cost_update" "', argument " "4"" of type '" "int""'");
29922 arg4 =
static_cast< int >(val4);
29924 Py_BEGIN_ALLOW_THREADS
29928 PyEval_RestoreThread(_save);
29929 PyErr_SetString(PyExc_RuntimeError, e.
what());
29932 Py_END_ALLOW_THREADS
29934 resultobj = SWIG_From_double(static_cast< double >(result));
29941 SWIGINTERN PyObject *_wrap_new_ReproduceDistancesObjective(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29942 PyObject *resultobj = 0;
29944 double *arg2 = (
double *) 0 ;
29945 double *arg3 = (
double *) 0 ;
29955 PyObject * obj0 = 0 ;
29956 PyObject * obj1 = 0 ;
29957 PyObject * obj2 = 0 ;
29958 PyObject * obj3 = 0 ;
29961 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_ReproduceDistancesObjective",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29962 ecode1 = SWIG_AsVal_int(obj0, &val1);
29963 if (!SWIG_IsOK(ecode1)) {
29964 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_ReproduceDistancesObjective" "', argument " "1"" of type '" "int""'");
29966 arg1 =
static_cast< int >(val1);
29967 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 );
29968 if (!SWIG_IsOK(res2)) {
29969 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_ReproduceDistancesObjective" "', argument " "2"" of type '" "double const *""'");
29971 arg2 =
reinterpret_cast< double *
>(argp2);
29972 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_double, 0 | 0 );
29973 if (!SWIG_IsOK(res3)) {
29974 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_ReproduceDistancesObjective" "', argument " "3"" of type '" "double const *""'");
29976 arg3 =
reinterpret_cast< double *
>(argp3);
29977 ecode4 = SWIG_AsVal_double(obj3, &val4);
29978 if (!SWIG_IsOK(ecode4)) {
29979 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_ReproduceDistancesObjective" "', argument " "4"" of type '" "double""'");
29981 arg4 =
static_cast< double >(val4);
29983 Py_BEGIN_ALLOW_THREADS
29987 PyEval_RestoreThread(_save);
29988 PyErr_SetString(PyExc_RuntimeError, e.
what());
29991 Py_END_ALLOW_THREADS
29993 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ReproduceDistancesObjective, SWIG_POINTER_NEW | 0 );
30000 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_compute_mean_stdev(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30001 PyObject *resultobj = 0;
30002 double *arg1 = (
double *) 0 ;
30004 double *arg3 = (
double *) 0 ;
30005 double *arg4 = (
double *) 0 ;
30014 PyObject * obj0 = 0 ;
30015 PyObject * obj1 = 0 ;
30016 PyObject * obj2 = 0 ;
30017 PyObject * obj3 = 0 ;
30019 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ReproduceDistancesObjective_compute_mean_stdev",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_double, 0 | 0 );
30021 if (!SWIG_IsOK(res1)) {
30022 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_compute_mean_stdev" "', argument " "1"" of type '" "double const *""'");
30024 arg1 =
reinterpret_cast< double *
>(argp1);
30025 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
30026 if (!SWIG_IsOK(ecode2)) {
30027 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReproduceDistancesObjective_compute_mean_stdev" "', argument " "2"" of type '" "size_t""'");
30029 arg2 =
static_cast< size_t >(val2);
30030 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_double, 0 | 0 );
30031 if (!SWIG_IsOK(res3)) {
30032 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ReproduceDistancesObjective_compute_mean_stdev" "', argument " "3"" of type '" "double *""'");
30034 arg3 =
reinterpret_cast< double *
>(argp3);
30035 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_double, 0 | 0 );
30036 if (!SWIG_IsOK(res4)) {
30037 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ReproduceDistancesObjective_compute_mean_stdev" "', argument " "4"" of type '" "double *""'");
30039 arg4 =
reinterpret_cast< double *
>(argp4);
30041 Py_BEGIN_ALLOW_THREADS
30043 faiss::ReproduceDistancesObjective::compute_mean_stdev((
double const *)arg1,arg2,arg3,arg4);
30045 PyEval_RestoreThread(_save);
30046 PyErr_SetString(PyExc_RuntimeError, e.
what());
30049 Py_END_ALLOW_THREADS
30051 resultobj = SWIG_Py_Void();
30058 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_set_affine_target_dis(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30059 PyObject *resultobj = 0;
30061 double *arg2 = (
double *) 0 ;
30066 PyObject * obj0 = 0 ;
30067 PyObject * obj1 = 0 ;
30069 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReproduceDistancesObjective_set_affine_target_dis",&obj0,&obj1)) SWIG_fail;
30070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
30071 if (!SWIG_IsOK(res1)) {
30072 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_set_affine_target_dis" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
30075 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 );
30076 if (!SWIG_IsOK(res2)) {
30077 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReproduceDistancesObjective_set_affine_target_dis" "', argument " "2"" of type '" "double const *""'");
30079 arg2 =
reinterpret_cast< double *
>(argp2);
30081 Py_BEGIN_ALLOW_THREADS
30083 (arg1)->set_affine_target_dis((
double const *)arg2);
30085 PyEval_RestoreThread(_save);
30086 PyErr_SetString(PyExc_RuntimeError, e.
what());
30089 Py_END_ALLOW_THREADS
30091 resultobj = SWIG_Py_Void();
30098 SWIGINTERN PyObject *_wrap_delete_ReproduceDistancesObjective(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30099 PyObject *resultobj = 0;
30103 PyObject * obj0 = 0 ;
30105 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ReproduceDistancesObjective",&obj0)) SWIG_fail;
30106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, SWIG_POINTER_DISOWN | 0 );
30107 if (!SWIG_IsOK(res1)) {
30108 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ReproduceDistancesObjective" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
30112 Py_BEGIN_ALLOW_THREADS
30116 PyEval_RestoreThread(_save);
30117 PyErr_SetString(PyExc_RuntimeError, e.
what());
30120 Py_END_ALLOW_THREADS
30122 resultobj = SWIG_Py_Void();
30129 SWIGINTERN PyObject *ReproduceDistancesObjective_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30131 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
30132 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ReproduceDistancesObjective, SWIG_NewClientData(obj));
30133 return SWIG_Py_Void();
30136 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_obj_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30137 PyObject *resultobj = 0;
30144 PyObject * obj0 = 0 ;
30145 PyObject * obj1 = 0 ;
30147 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingOptimizer_obj_set",&obj0,&obj1)) SWIG_fail;
30148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
30149 if (!SWIG_IsOK(res1)) {
30150 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_obj_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
30153 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__PermutationObjective, SWIG_POINTER_DISOWN | 0 );
30154 if (!SWIG_IsOK(res2)) {
30155 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SimulatedAnnealingOptimizer_obj_set" "', argument " "2"" of type '" "faiss::PermutationObjective *""'");
30158 if (arg1) (arg1)->obj = arg2;
30159 resultobj = SWIG_Py_Void();
30166 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_obj_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30167 PyObject *resultobj = 0;
30171 PyObject * obj0 = 0 ;
30174 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingOptimizer_obj_get",&obj0)) SWIG_fail;
30175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
30176 if (!SWIG_IsOK(res1)) {
30177 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_obj_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
30181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PermutationObjective, 0 | 0 );
30188 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_n_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30189 PyObject *resultobj = 0;
30196 PyObject * obj0 = 0 ;
30197 PyObject * obj1 = 0 ;
30199 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingOptimizer_n_set",&obj0,&obj1)) SWIG_fail;
30200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
30201 if (!SWIG_IsOK(res1)) {
30202 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_n_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
30205 ecode2 = SWIG_AsVal_int(obj1, &val2);
30206 if (!SWIG_IsOK(ecode2)) {
30207 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingOptimizer_n_set" "', argument " "2"" of type '" "int""'");
30209 arg2 =
static_cast< int >(val2);
30210 if (arg1) (arg1)->n = arg2;
30211 resultobj = SWIG_Py_Void();
30218 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_n_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30219 PyObject *resultobj = 0;
30223 PyObject * obj0 = 0 ;
30226 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingOptimizer_n_get",&obj0)) SWIG_fail;
30227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
30228 if (!SWIG_IsOK(res1)) {
30229 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_n_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
30232 result = (int) ((arg1)->n);
30233 resultobj = SWIG_From_int(static_cast< int >(result));
30240 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_logfile_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30241 PyObject *resultobj = 0;
30243 FILE *arg2 = (FILE *) 0 ;
30248 PyObject * obj0 = 0 ;
30249 PyObject * obj1 = 0 ;
30251 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingOptimizer_logfile_set",&obj0,&obj1)) SWIG_fail;
30252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
30253 if (!SWIG_IsOK(res1)) {
30254 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_logfile_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
30257 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_FILE, SWIG_POINTER_DISOWN | 0 );
30258 if (!SWIG_IsOK(res2)) {
30259 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SimulatedAnnealingOptimizer_logfile_set" "', argument " "2"" of type '" "FILE *""'");
30261 arg2 =
reinterpret_cast< FILE *
>(argp2);
30262 if (arg1) (arg1)->logfile = arg2;
30263 resultobj = SWIG_Py_Void();
30270 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_logfile_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30271 PyObject *resultobj = 0;
30275 PyObject * obj0 = 0 ;
30278 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingOptimizer_logfile_get",&obj0)) SWIG_fail;
30279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
30280 if (!SWIG_IsOK(res1)) {
30281 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_logfile_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
30284 result = (FILE *) ((arg1)->logfile);
30285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0 );
30292 SWIGINTERN PyObject *_wrap_new_SimulatedAnnealingOptimizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30293 PyObject *resultobj = 0;
30300 PyObject * obj0 = 0 ;
30301 PyObject * obj1 = 0 ;
30304 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_SimulatedAnnealingOptimizer",&obj0,&obj1)) SWIG_fail;
30305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PermutationObjective, 0 | 0 );
30306 if (!SWIG_IsOK(res1)) {
30307 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_SimulatedAnnealingOptimizer" "', argument " "1"" of type '" "faiss::PermutationObjective *""'");
30310 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0);
30311 if (!SWIG_IsOK(res2)) {
30312 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_SimulatedAnnealingOptimizer" "', argument " "2"" of type '" "faiss::SimulatedAnnealingParameters const &""'");
30315 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_SimulatedAnnealingOptimizer" "', argument " "2"" of type '" "faiss::SimulatedAnnealingParameters const &""'");
30319 Py_BEGIN_ALLOW_THREADS
30323 PyEval_RestoreThread(_save);
30324 PyErr_SetString(PyExc_RuntimeError, e.
what());
30327 Py_END_ALLOW_THREADS
30329 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, SWIG_POINTER_NEW | 0 );
30336 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_rnd_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30337 PyObject *resultobj = 0;
30344 PyObject * obj0 = 0 ;
30345 PyObject * obj1 = 0 ;
30347 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingOptimizer_rnd_set",&obj0,&obj1)) SWIG_fail;
30348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
30349 if (!SWIG_IsOK(res1)) {
30350 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_rnd_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
30353 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__RandomGenerator, SWIG_POINTER_DISOWN | 0 );
30354 if (!SWIG_IsOK(res2)) {
30355 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SimulatedAnnealingOptimizer_rnd_set" "', argument " "2"" of type '" "faiss::RandomGenerator *""'");
30358 if (arg1) (arg1)->rnd = arg2;
30359 resultobj = SWIG_Py_Void();
30366 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_rnd_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30367 PyObject *resultobj = 0;
30371 PyObject * obj0 = 0 ;
30374 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingOptimizer_rnd_get",&obj0)) SWIG_fail;
30375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
30376 if (!SWIG_IsOK(res1)) {
30377 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_rnd_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
30381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
30388 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_init_cost_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30389 PyObject *resultobj = 0;
30396 PyObject * obj0 = 0 ;
30397 PyObject * obj1 = 0 ;
30399 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingOptimizer_init_cost_set",&obj0,&obj1)) SWIG_fail;
30400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
30401 if (!SWIG_IsOK(res1)) {
30402 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_init_cost_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
30405 ecode2 = SWIG_AsVal_double(obj1, &val2);
30406 if (!SWIG_IsOK(ecode2)) {
30407 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingOptimizer_init_cost_set" "', argument " "2"" of type '" "double""'");
30409 arg2 =
static_cast< double >(val2);
30410 if (arg1) (arg1)->init_cost = arg2;
30411 resultobj = SWIG_Py_Void();
30418 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_init_cost_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30419 PyObject *resultobj = 0;
30423 PyObject * obj0 = 0 ;
30426 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingOptimizer_init_cost_get",&obj0)) SWIG_fail;
30427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
30428 if (!SWIG_IsOK(res1)) {
30429 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_init_cost_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
30432 result = (double) ((arg1)->init_cost);
30433 resultobj = SWIG_From_double(static_cast< double >(result));
30440 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_optimize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30441 PyObject *resultobj = 0;
30443 int *arg2 = (
int *) 0 ;
30448 PyObject * obj0 = 0 ;
30449 PyObject * obj1 = 0 ;
30452 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingOptimizer_optimize",&obj0,&obj1)) SWIG_fail;
30453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
30454 if (!SWIG_IsOK(res1)) {
30455 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_optimize" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
30458 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
30459 if (!SWIG_IsOK(res2)) {
30460 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SimulatedAnnealingOptimizer_optimize" "', argument " "2"" of type '" "int *""'");
30462 arg2 =
reinterpret_cast< int *
>(argp2);
30464 Py_BEGIN_ALLOW_THREADS
30466 result = (double)(arg1)->optimize(arg2);
30468 PyEval_RestoreThread(_save);
30469 PyErr_SetString(PyExc_RuntimeError, e.
what());
30472 Py_END_ALLOW_THREADS
30474 resultobj = SWIG_From_double(static_cast< double >(result));
30481 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_run_optimization(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30482 PyObject *resultobj = 0;
30484 int *arg2 = (
int *) 0 ;
30489 PyObject * obj0 = 0 ;
30490 PyObject * obj1 = 0 ;
30493 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingOptimizer_run_optimization",&obj0,&obj1)) SWIG_fail;
30494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
30495 if (!SWIG_IsOK(res1)) {
30496 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_run_optimization" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
30499 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
30500 if (!SWIG_IsOK(res2)) {
30501 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SimulatedAnnealingOptimizer_run_optimization" "', argument " "2"" of type '" "int *""'");
30503 arg2 =
reinterpret_cast< int *
>(argp2);
30505 Py_BEGIN_ALLOW_THREADS
30507 result = (double)(arg1)->run_optimization(arg2);
30509 PyEval_RestoreThread(_save);
30510 PyErr_SetString(PyExc_RuntimeError, e.
what());
30513 Py_END_ALLOW_THREADS
30515 resultobj = SWIG_From_double(static_cast< double >(result));
30522 SWIGINTERN PyObject *_wrap_delete_SimulatedAnnealingOptimizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30523 PyObject *resultobj = 0;
30527 PyObject * obj0 = 0 ;
30529 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_SimulatedAnnealingOptimizer",&obj0)) SWIG_fail;
30530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, SWIG_POINTER_DISOWN | 0 );
30531 if (!SWIG_IsOK(res1)) {
30532 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_SimulatedAnnealingOptimizer" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
30536 Py_BEGIN_ALLOW_THREADS
30540 PyEval_RestoreThread(_save);
30541 PyErr_SetString(PyExc_RuntimeError, e.
what());
30544 Py_END_ALLOW_THREADS
30546 resultobj = SWIG_Py_Void();
30553 SWIGINTERN PyObject *SimulatedAnnealingOptimizer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30555 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
30556 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, SWIG_NewClientData(obj));
30557 return SWIG_Py_Void();
30560 SWIGINTERN PyObject *_wrap_PolysemousTraining_optimization_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30561 PyObject *resultobj = 0;
30568 PyObject * obj0 = 0 ;
30569 PyObject * obj1 = 0 ;
30571 if (!PyArg_ParseTuple(args,(
char *)
"OO:PolysemousTraining_optimization_type_set",&obj0,&obj1)) SWIG_fail;
30572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
30573 if (!SWIG_IsOK(res1)) {
30574 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_optimization_type_set" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
30577 ecode2 = SWIG_AsVal_int(obj1, &val2);
30578 if (!SWIG_IsOK(ecode2)) {
30579 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PolysemousTraining_optimization_type_set" "', argument " "2"" of type '" "faiss::PolysemousTraining::Optimization_type_t""'");
30582 if (arg1) (arg1)->optimization_type = arg2;
30583 resultobj = SWIG_Py_Void();
30590 SWIGINTERN PyObject *_wrap_PolysemousTraining_optimization_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30591 PyObject *resultobj = 0;
30595 PyObject * obj0 = 0 ;
30598 if (!PyArg_ParseTuple(args,(
char *)
"O:PolysemousTraining_optimization_type_get",&obj0)) SWIG_fail;
30599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
30600 if (!SWIG_IsOK(res1)) {
30601 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_optimization_type_get" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
30605 resultobj = SWIG_From_int(static_cast< int >(result));
30612 SWIGINTERN PyObject *_wrap_PolysemousTraining_ntrain_permutation_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30613 PyObject *resultobj = 0;
30620 PyObject * obj0 = 0 ;
30621 PyObject * obj1 = 0 ;
30623 if (!PyArg_ParseTuple(args,(
char *)
"OO:PolysemousTraining_ntrain_permutation_set",&obj0,&obj1)) SWIG_fail;
30624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
30625 if (!SWIG_IsOK(res1)) {
30626 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_ntrain_permutation_set" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
30629 ecode2 = SWIG_AsVal_int(obj1, &val2);
30630 if (!SWIG_IsOK(ecode2)) {
30631 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PolysemousTraining_ntrain_permutation_set" "', argument " "2"" of type '" "int""'");
30633 arg2 =
static_cast< int >(val2);
30634 if (arg1) (arg1)->ntrain_permutation = arg2;
30635 resultobj = SWIG_Py_Void();
30642 SWIGINTERN PyObject *_wrap_PolysemousTraining_ntrain_permutation_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30643 PyObject *resultobj = 0;
30647 PyObject * obj0 = 0 ;
30650 if (!PyArg_ParseTuple(args,(
char *)
"O:PolysemousTraining_ntrain_permutation_get",&obj0)) SWIG_fail;
30651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
30652 if (!SWIG_IsOK(res1)) {
30653 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_ntrain_permutation_get" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
30656 result = (int) ((arg1)->ntrain_permutation);
30657 resultobj = SWIG_From_int(static_cast< int >(result));
30664 SWIGINTERN PyObject *_wrap_PolysemousTraining_dis_weight_factor_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30665 PyObject *resultobj = 0;
30672 PyObject * obj0 = 0 ;
30673 PyObject * obj1 = 0 ;
30675 if (!PyArg_ParseTuple(args,(
char *)
"OO:PolysemousTraining_dis_weight_factor_set",&obj0,&obj1)) SWIG_fail;
30676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
30677 if (!SWIG_IsOK(res1)) {
30678 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_dis_weight_factor_set" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
30681 ecode2 = SWIG_AsVal_double(obj1, &val2);
30682 if (!SWIG_IsOK(ecode2)) {
30683 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PolysemousTraining_dis_weight_factor_set" "', argument " "2"" of type '" "double""'");
30685 arg2 =
static_cast< double >(val2);
30686 if (arg1) (arg1)->dis_weight_factor = arg2;
30687 resultobj = SWIG_Py_Void();
30694 SWIGINTERN PyObject *_wrap_PolysemousTraining_dis_weight_factor_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30695 PyObject *resultobj = 0;
30699 PyObject * obj0 = 0 ;
30702 if (!PyArg_ParseTuple(args,(
char *)
"O:PolysemousTraining_dis_weight_factor_get",&obj0)) SWIG_fail;
30703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
30704 if (!SWIG_IsOK(res1)) {
30705 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_dis_weight_factor_get" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
30708 result = (double) ((arg1)->dis_weight_factor);
30709 resultobj = SWIG_From_double(static_cast< double >(result));
30716 SWIGINTERN PyObject *_wrap_PolysemousTraining_log_pattern_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30717 PyObject *resultobj = 0;
30719 std::string *arg2 = 0 ;
30722 int res2 = SWIG_OLDOBJ ;
30723 PyObject * obj0 = 0 ;
30724 PyObject * obj1 = 0 ;
30726 if (!PyArg_ParseTuple(args,(
char *)
"OO:PolysemousTraining_log_pattern_set",&obj0,&obj1)) SWIG_fail;
30727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
30728 if (!SWIG_IsOK(res1)) {
30729 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_log_pattern_set" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
30733 std::string *ptr = (std::string *)0;
30734 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
30735 if (!SWIG_IsOK(res2)) {
30736 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PolysemousTraining_log_pattern_set" "', argument " "2"" of type '" "std::string const &""'");
30739 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "PolysemousTraining_log_pattern_set" "', argument " "2"" of type '" "std::string const &""'");
30743 if (arg1) (arg1)->log_pattern = *arg2;
30744 resultobj = SWIG_Py_Void();
30745 if (SWIG_IsNewObj(res2))
delete arg2;
30748 if (SWIG_IsNewObj(res2))
delete arg2;
30753 SWIGINTERN PyObject *_wrap_PolysemousTraining_log_pattern_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30754 PyObject *resultobj = 0;
30758 PyObject * obj0 = 0 ;
30759 std::string *result = 0 ;
30761 if (!PyArg_ParseTuple(args,(
char *)
"O:PolysemousTraining_log_pattern_get",&obj0)) SWIG_fail;
30762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
30763 if (!SWIG_IsOK(res1)) {
30764 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_log_pattern_get" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
30767 result = (std::string *) & ((arg1)->log_pattern);
30768 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
30775 SWIGINTERN PyObject *_wrap_new_PolysemousTraining(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30776 PyObject *resultobj = 0;
30779 if (!PyArg_ParseTuple(args,(
char *)
":new_PolysemousTraining")) SWIG_fail;
30781 Py_BEGIN_ALLOW_THREADS
30785 PyEval_RestoreThread(_save);
30786 PyErr_SetString(PyExc_RuntimeError, e.
what());
30789 Py_END_ALLOW_THREADS
30791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PolysemousTraining, SWIG_POINTER_NEW | 0 );
30798 SWIGINTERN PyObject *_wrap_PolysemousTraining_optimize_pq_for_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30799 PyObject *resultobj = 0;
30803 float *arg4 = (
float *) 0 ;
30812 PyObject * obj0 = 0 ;
30813 PyObject * obj1 = 0 ;
30814 PyObject * obj2 = 0 ;
30815 PyObject * obj3 = 0 ;
30817 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:PolysemousTraining_optimize_pq_for_hamming",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
30819 if (!SWIG_IsOK(res1)) {
30820 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_optimize_pq_for_hamming" "', argument " "1"" of type '" "faiss::PolysemousTraining const *""'");
30823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__ProductQuantizer, 0 );
30824 if (!SWIG_IsOK(res2)) {
30825 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PolysemousTraining_optimize_pq_for_hamming" "', argument " "2"" of type '" "faiss::ProductQuantizer &""'");
30828 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "PolysemousTraining_optimize_pq_for_hamming" "', argument " "2"" of type '" "faiss::ProductQuantizer &""'");
30831 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
30832 if (!SWIG_IsOK(ecode3)) {
30833 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "PolysemousTraining_optimize_pq_for_hamming" "', argument " "3"" of type '" "size_t""'");
30835 arg3 =
static_cast< size_t >(val3);
30836 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
30837 if (!SWIG_IsOK(res4)) {
30838 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "PolysemousTraining_optimize_pq_for_hamming" "', argument " "4"" of type '" "float const *""'");
30840 arg4 =
reinterpret_cast< float *
>(argp4);
30842 Py_BEGIN_ALLOW_THREADS
30846 PyEval_RestoreThread(_save);
30847 PyErr_SetString(PyExc_RuntimeError, e.
what());
30850 Py_END_ALLOW_THREADS
30852 resultobj = SWIG_Py_Void();
30859 SWIGINTERN PyObject *_wrap_PolysemousTraining_optimize_ranking(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30860 PyObject *resultobj = 0;
30864 float *arg4 = (
float *) 0 ;
30873 PyObject * obj0 = 0 ;
30874 PyObject * obj1 = 0 ;
30875 PyObject * obj2 = 0 ;
30876 PyObject * obj3 = 0 ;
30878 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:PolysemousTraining_optimize_ranking",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
30880 if (!SWIG_IsOK(res1)) {
30881 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_optimize_ranking" "', argument " "1"" of type '" "faiss::PolysemousTraining const *""'");
30884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__ProductQuantizer, 0 );
30885 if (!SWIG_IsOK(res2)) {
30886 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PolysemousTraining_optimize_ranking" "', argument " "2"" of type '" "faiss::ProductQuantizer &""'");
30889 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "PolysemousTraining_optimize_ranking" "', argument " "2"" of type '" "faiss::ProductQuantizer &""'");
30892 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
30893 if (!SWIG_IsOK(ecode3)) {
30894 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "PolysemousTraining_optimize_ranking" "', argument " "3"" of type '" "size_t""'");
30896 arg3 =
static_cast< size_t >(val3);
30897 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
30898 if (!SWIG_IsOK(res4)) {
30899 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "PolysemousTraining_optimize_ranking" "', argument " "4"" of type '" "float const *""'");
30901 arg4 =
reinterpret_cast< float *
>(argp4);
30903 Py_BEGIN_ALLOW_THREADS
30907 PyEval_RestoreThread(_save);
30908 PyErr_SetString(PyExc_RuntimeError, e.
what());
30911 Py_END_ALLOW_THREADS
30913 resultobj = SWIG_Py_Void();
30920 SWIGINTERN PyObject *_wrap_PolysemousTraining_optimize_reproduce_distances(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30921 PyObject *resultobj = 0;
30928 PyObject * obj0 = 0 ;
30929 PyObject * obj1 = 0 ;
30931 if (!PyArg_ParseTuple(args,(
char *)
"OO:PolysemousTraining_optimize_reproduce_distances",&obj0,&obj1)) SWIG_fail;
30932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
30933 if (!SWIG_IsOK(res1)) {
30934 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_optimize_reproduce_distances" "', argument " "1"" of type '" "faiss::PolysemousTraining const *""'");
30937 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__ProductQuantizer, 0 );
30938 if (!SWIG_IsOK(res2)) {
30939 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PolysemousTraining_optimize_reproduce_distances" "', argument " "2"" of type '" "faiss::ProductQuantizer &""'");
30942 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "PolysemousTraining_optimize_reproduce_distances" "', argument " "2"" of type '" "faiss::ProductQuantizer &""'");
30946 Py_BEGIN_ALLOW_THREADS
30950 PyEval_RestoreThread(_save);
30951 PyErr_SetString(PyExc_RuntimeError, e.
what());
30954 Py_END_ALLOW_THREADS
30956 resultobj = SWIG_Py_Void();
30963 SWIGINTERN PyObject *_wrap_delete_PolysemousTraining(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30964 PyObject *resultobj = 0;
30968 PyObject * obj0 = 0 ;
30970 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_PolysemousTraining",&obj0)) SWIG_fail;
30971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, SWIG_POINTER_DISOWN | 0 );
30972 if (!SWIG_IsOK(res1)) {
30973 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_PolysemousTraining" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
30977 resultobj = SWIG_Py_Void();
30984 SWIGINTERN PyObject *PolysemousTraining_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30986 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
30987 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__PolysemousTraining, SWIG_NewClientData(obj));
30988 return SWIG_Py_Void();
30991 SWIGINTERN PyObject *_wrap_IndexPQ_pq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30992 PyObject *resultobj = 0;
30999 PyObject * obj0 = 0 ;
31000 PyObject * obj1 = 0 ;
31002 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_pq_set",&obj0,&obj1)) SWIG_fail;
31003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31004 if (!SWIG_IsOK(res1)) {
31005 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_pq_set" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31008 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
31009 if (!SWIG_IsOK(res2)) {
31010 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPQ_pq_set" "', argument " "2"" of type '" "faiss::ProductQuantizer *""'");
31013 if (arg1) (arg1)->pq = *arg2;
31014 resultobj = SWIG_Py_Void();
31021 SWIGINTERN PyObject *_wrap_IndexPQ_pq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31022 PyObject *resultobj = 0;
31026 PyObject * obj0 = 0 ;
31029 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_pq_get",&obj0)) SWIG_fail;
31030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31031 if (!SWIG_IsOK(res1)) {
31032 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_pq_get" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
31043 SWIGINTERN PyObject *_wrap_IndexPQ_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31044 PyObject *resultobj = 0;
31046 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
31051 PyObject * obj0 = 0 ;
31052 PyObject * obj1 = 0 ;
31054 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_codes_set",&obj0,&obj1)) SWIG_fail;
31055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31056 if (!SWIG_IsOK(res1)) {
31057 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_codes_set" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31060 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
31061 if (!SWIG_IsOK(res2)) {
31062 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPQ_codes_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
31064 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
31065 if (arg1) (arg1)->codes = *arg2;
31066 resultobj = SWIG_Py_Void();
31073 SWIGINTERN PyObject *_wrap_IndexPQ_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31074 PyObject *resultobj = 0;
31078 PyObject * obj0 = 0 ;
31079 std::vector< uint8_t > *result = 0 ;
31081 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_codes_get",&obj0)) SWIG_fail;
31082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31083 if (!SWIG_IsOK(res1)) {
31084 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_codes_get" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31087 result = (std::vector< uint8_t > *)& ((arg1)->codes);
31088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
31095 SWIGINTERN PyObject *_wrap_new_IndexPQ__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31096 PyObject *resultobj = 0;
31109 PyObject * obj0 = 0 ;
31110 PyObject * obj1 = 0 ;
31111 PyObject * obj2 = 0 ;
31112 PyObject * obj3 = 0 ;
31115 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_IndexPQ",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31116 ecode1 = SWIG_AsVal_int(obj0, &val1);
31117 if (!SWIG_IsOK(ecode1)) {
31118 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexPQ" "', argument " "1"" of type '" "int""'");
31120 arg1 =
static_cast< int >(val1);
31121 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
31122 if (!SWIG_IsOK(ecode2)) {
31123 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexPQ" "', argument " "2"" of type '" "size_t""'");
31125 arg2 =
static_cast< size_t >(val2);
31126 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
31127 if (!SWIG_IsOK(ecode3)) {
31128 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexPQ" "', argument " "3"" of type '" "size_t""'");
31130 arg3 =
static_cast< size_t >(val3);
31131 ecode4 = SWIG_AsVal_int(obj3, &val4);
31132 if (!SWIG_IsOK(ecode4)) {
31133 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexPQ" "', argument " "4"" of type '" "faiss::MetricType""'");
31137 Py_BEGIN_ALLOW_THREADS
31141 PyEval_RestoreThread(_save);
31142 PyErr_SetString(PyExc_RuntimeError, e.
what());
31145 Py_END_ALLOW_THREADS
31147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexPQ, SWIG_POINTER_NEW | 0 );
31154 SWIGINTERN PyObject *_wrap_new_IndexPQ__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31155 PyObject *resultobj = 0;
31165 PyObject * obj0 = 0 ;
31166 PyObject * obj1 = 0 ;
31167 PyObject * obj2 = 0 ;
31170 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexPQ",&obj0,&obj1,&obj2)) SWIG_fail;
31171 ecode1 = SWIG_AsVal_int(obj0, &val1);
31172 if (!SWIG_IsOK(ecode1)) {
31173 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexPQ" "', argument " "1"" of type '" "int""'");
31175 arg1 =
static_cast< int >(val1);
31176 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
31177 if (!SWIG_IsOK(ecode2)) {
31178 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexPQ" "', argument " "2"" of type '" "size_t""'");
31180 arg2 =
static_cast< size_t >(val2);
31181 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
31182 if (!SWIG_IsOK(ecode3)) {
31183 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexPQ" "', argument " "3"" of type '" "size_t""'");
31185 arg3 =
static_cast< size_t >(val3);
31187 Py_BEGIN_ALLOW_THREADS
31191 PyEval_RestoreThread(_save);
31192 PyErr_SetString(PyExc_RuntimeError, e.
what());
31195 Py_END_ALLOW_THREADS
31197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexPQ, SWIG_POINTER_NEW | 0 );
31204 SWIGINTERN PyObject *_wrap_new_IndexPQ__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31205 PyObject *resultobj = 0;
31208 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexPQ")) SWIG_fail;
31210 Py_BEGIN_ALLOW_THREADS
31214 PyEval_RestoreThread(_save);
31215 PyErr_SetString(PyExc_RuntimeError, e.
what());
31218 Py_END_ALLOW_THREADS
31220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexPQ, SWIG_POINTER_NEW | 0 );
31227 SWIGINTERN PyObject *_wrap_new_IndexPQ(PyObject *
self, PyObject *args) {
31229 PyObject *argv[5] = {
31234 if (!PyTuple_Check(args)) SWIG_fail;
31235 argc = args ? PyObject_Length(args) : 0;
31236 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
31237 argv[ii] = PyTuple_GET_ITEM(args,ii);
31240 return _wrap_new_IndexPQ__SWIG_2(
self, args);
31245 int res = SWIG_AsVal_int(argv[0], NULL);
31246 _v = SWIG_CheckState(res);
31250 int res = SWIG_AsVal_size_t(argv[1], NULL);
31251 _v = SWIG_CheckState(res);
31255 int res = SWIG_AsVal_size_t(argv[2], NULL);
31256 _v = SWIG_CheckState(res);
31259 return _wrap_new_IndexPQ__SWIG_1(
self, args);
31267 int res = SWIG_AsVal_int(argv[0], NULL);
31268 _v = SWIG_CheckState(res);
31272 int res = SWIG_AsVal_size_t(argv[1], NULL);
31273 _v = SWIG_CheckState(res);
31277 int res = SWIG_AsVal_size_t(argv[2], NULL);
31278 _v = SWIG_CheckState(res);
31282 int res = SWIG_AsVal_int(argv[3], NULL);
31283 _v = SWIG_CheckState(res);
31286 return _wrap_new_IndexPQ__SWIG_0(
self, args);
31294 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexPQ'.\n"
31295 " Possible C/C++ prototypes are:\n"
31296 " faiss::IndexPQ::IndexPQ(int,size_t,size_t,faiss::MetricType)\n"
31297 " faiss::IndexPQ::IndexPQ(int,size_t,size_t)\n"
31298 " faiss::IndexPQ::IndexPQ()\n");
31303 SWIGINTERN PyObject *_wrap_IndexPQ_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31304 PyObject *resultobj = 0;
31307 float *arg3 = (
float *) 0 ;
31314 PyObject * obj0 = 0 ;
31315 PyObject * obj1 = 0 ;
31316 PyObject * obj2 = 0 ;
31318 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexPQ_train",&obj0,&obj1,&obj2)) SWIG_fail;
31319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31320 if (!SWIG_IsOK(res1)) {
31321 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_train" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31324 ecode2 = SWIG_AsVal_long(obj1, &val2);
31325 if (!SWIG_IsOK(ecode2)) {
31326 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
31329 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
31330 if (!SWIG_IsOK(res3)) {
31331 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPQ_train" "', argument " "3"" of type '" "float const *""'");
31333 arg3 =
reinterpret_cast< float *
>(argp3);
31335 Py_BEGIN_ALLOW_THREADS
31337 (arg1)->train(arg2,(
float const *)arg3);
31339 PyEval_RestoreThread(_save);
31340 PyErr_SetString(PyExc_RuntimeError, e.
what());
31343 Py_END_ALLOW_THREADS
31345 resultobj = SWIG_Py_Void();
31352 SWIGINTERN PyObject *_wrap_IndexPQ_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31353 PyObject *resultobj = 0;
31356 float *arg3 = (
float *) 0 ;
31363 PyObject * obj0 = 0 ;
31364 PyObject * obj1 = 0 ;
31365 PyObject * obj2 = 0 ;
31367 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexPQ_add",&obj0,&obj1,&obj2)) SWIG_fail;
31368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31369 if (!SWIG_IsOK(res1)) {
31370 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_add" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31373 ecode2 = SWIG_AsVal_long(obj1, &val2);
31374 if (!SWIG_IsOK(ecode2)) {
31375 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
31378 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
31379 if (!SWIG_IsOK(res3)) {
31380 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPQ_add" "', argument " "3"" of type '" "float const *""'");
31382 arg3 =
reinterpret_cast< float *
>(argp3);
31384 Py_BEGIN_ALLOW_THREADS
31386 (arg1)->add(arg2,(
float const *)arg3);
31388 PyEval_RestoreThread(_save);
31389 PyErr_SetString(PyExc_RuntimeError, e.
what());
31392 Py_END_ALLOW_THREADS
31394 resultobj = SWIG_Py_Void();
31401 SWIGINTERN PyObject *_wrap_IndexPQ_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31402 PyObject *resultobj = 0;
31405 float *arg3 = (
float *) 0 ;
31407 float *arg5 = (
float *) 0 ;
31421 PyObject * obj0 = 0 ;
31422 PyObject * obj1 = 0 ;
31423 PyObject * obj2 = 0 ;
31424 PyObject * obj3 = 0 ;
31425 PyObject * obj4 = 0 ;
31426 PyObject * obj5 = 0 ;
31428 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexPQ_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
31429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31430 if (!SWIG_IsOK(res1)) {
31431 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_search" "', argument " "1"" of type '" "faiss::IndexPQ const *""'");
31434 ecode2 = SWIG_AsVal_long(obj1, &val2);
31435 if (!SWIG_IsOK(ecode2)) {
31436 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
31439 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
31440 if (!SWIG_IsOK(res3)) {
31441 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPQ_search" "', argument " "3"" of type '" "float const *""'");
31443 arg3 =
reinterpret_cast< float *
>(argp3);
31444 ecode4 = SWIG_AsVal_long(obj3, &val4);
31445 if (!SWIG_IsOK(ecode4)) {
31446 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexPQ_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
31449 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
31450 if (!SWIG_IsOK(res5)) {
31451 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexPQ_search" "', argument " "5"" of type '" "float *""'");
31453 arg5 =
reinterpret_cast< float *
>(argp5);
31454 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
31455 if (!SWIG_IsOK(res6)) {
31456 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexPQ_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
31460 Py_BEGIN_ALLOW_THREADS
31462 ((
faiss::IndexPQ const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
31464 PyEval_RestoreThread(_save);
31465 PyErr_SetString(PyExc_RuntimeError, e.
what());
31468 Py_END_ALLOW_THREADS
31470 resultobj = SWIG_Py_Void();
31477 SWIGINTERN PyObject *_wrap_IndexPQ_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31478 PyObject *resultobj = 0;
31482 PyObject * obj0 = 0 ;
31484 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_reset",&obj0)) SWIG_fail;
31485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31486 if (!SWIG_IsOK(res1)) {
31487 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_reset" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31491 Py_BEGIN_ALLOW_THREADS
31495 PyEval_RestoreThread(_save);
31496 PyErr_SetString(PyExc_RuntimeError, e.
what());
31499 Py_END_ALLOW_THREADS
31501 resultobj = SWIG_Py_Void();
31508 SWIGINTERN PyObject *_wrap_IndexPQ_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31509 PyObject *resultobj = 0;
31513 float *arg4 = (
float *) 0 ;
31522 PyObject * obj0 = 0 ;
31523 PyObject * obj1 = 0 ;
31524 PyObject * obj2 = 0 ;
31525 PyObject * obj3 = 0 ;
31527 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexPQ_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31529 if (!SWIG_IsOK(res1)) {
31530 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_reconstruct_n" "', argument " "1"" of type '" "faiss::IndexPQ const *""'");
31533 ecode2 = SWIG_AsVal_long(obj1, &val2);
31534 if (!SWIG_IsOK(ecode2)) {
31535 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_reconstruct_n" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
31538 ecode3 = SWIG_AsVal_long(obj2, &val3);
31539 if (!SWIG_IsOK(ecode3)) {
31540 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexPQ_reconstruct_n" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
31543 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
31544 if (!SWIG_IsOK(res4)) {
31545 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexPQ_reconstruct_n" "', argument " "4"" of type '" "float *""'");
31547 arg4 =
reinterpret_cast< float *
>(argp4);
31549 Py_BEGIN_ALLOW_THREADS
31553 PyEval_RestoreThread(_save);
31554 PyErr_SetString(PyExc_RuntimeError, e.
what());
31557 Py_END_ALLOW_THREADS
31559 resultobj = SWIG_Py_Void();
31566 SWIGINTERN PyObject *_wrap_IndexPQ_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31567 PyObject *resultobj = 0;
31570 float *arg3 = (
float *) 0 ;
31577 PyObject * obj0 = 0 ;
31578 PyObject * obj1 = 0 ;
31579 PyObject * obj2 = 0 ;
31581 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexPQ_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
31582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31583 if (!SWIG_IsOK(res1)) {
31584 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_reconstruct" "', argument " "1"" of type '" "faiss::IndexPQ const *""'");
31587 ecode2 = SWIG_AsVal_long(obj1, &val2);
31588 if (!SWIG_IsOK(ecode2)) {
31589 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
31592 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
31593 if (!SWIG_IsOK(res3)) {
31594 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPQ_reconstruct" "', argument " "3"" of type '" "float *""'");
31596 arg3 =
reinterpret_cast< float *
>(argp3);
31598 Py_BEGIN_ALLOW_THREADS
31602 PyEval_RestoreThread(_save);
31603 PyErr_SetString(PyExc_RuntimeError, e.
what());
31606 Py_END_ALLOW_THREADS
31608 resultobj = SWIG_Py_Void();
31615 SWIGINTERN PyObject *_wrap_IndexPQ_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31616 PyObject *resultobj = 0;
31623 PyObject * obj0 = 0 ;
31624 PyObject * obj1 = 0 ;
31627 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_remove_ids",&obj0,&obj1)) SWIG_fail;
31628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31629 if (!SWIG_IsOK(res1)) {
31630 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_remove_ids" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
31634 if (!SWIG_IsOK(res2)) {
31635 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPQ_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
31638 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexPQ_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
31642 Py_BEGIN_ALLOW_THREADS
31646 PyEval_RestoreThread(_save);
31647 PyErr_SetString(PyExc_RuntimeError, e.
what());
31650 Py_END_ALLOW_THREADS
31652 resultobj = SWIG_From_long(static_cast< long >(result));
31659 SWIGINTERN PyObject *_wrap_IndexPQ_do_polysemous_training_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31660 PyObject *resultobj = 0;
31667 PyObject * obj0 = 0 ;
31668 PyObject * obj1 = 0 ;
31670 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_do_polysemous_training_set",&obj0,&obj1)) SWIG_fail;
31671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31672 if (!SWIG_IsOK(res1)) {
31673 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_do_polysemous_training_set" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31676 ecode2 = SWIG_AsVal_bool(obj1, &val2);
31677 if (!SWIG_IsOK(ecode2)) {
31678 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_do_polysemous_training_set" "', argument " "2"" of type '" "bool""'");
31680 arg2 =
static_cast< bool >(val2);
31681 if (arg1) (arg1)->do_polysemous_training = arg2;
31682 resultobj = SWIG_Py_Void();
31689 SWIGINTERN PyObject *_wrap_IndexPQ_do_polysemous_training_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31690 PyObject *resultobj = 0;
31694 PyObject * obj0 = 0 ;
31697 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_do_polysemous_training_get",&obj0)) SWIG_fail;
31698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31699 if (!SWIG_IsOK(res1)) {
31700 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_do_polysemous_training_get" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31703 result = (bool) ((arg1)->do_polysemous_training);
31704 resultobj = SWIG_From_bool(static_cast< bool >(result));
31711 SWIGINTERN PyObject *_wrap_IndexPQ_polysemous_training_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31712 PyObject *resultobj = 0;
31719 PyObject * obj0 = 0 ;
31720 PyObject * obj1 = 0 ;
31722 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_polysemous_training_set",&obj0,&obj1)) SWIG_fail;
31723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31724 if (!SWIG_IsOK(res1)) {
31725 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_polysemous_training_set" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31728 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
31729 if (!SWIG_IsOK(res2)) {
31730 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPQ_polysemous_training_set" "', argument " "2"" of type '" "faiss::PolysemousTraining *""'");
31733 if (arg1) (arg1)->polysemous_training = *arg2;
31734 resultobj = SWIG_Py_Void();
31741 SWIGINTERN PyObject *_wrap_IndexPQ_polysemous_training_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31742 PyObject *resultobj = 0;
31746 PyObject * obj0 = 0 ;
31749 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_polysemous_training_get",&obj0)) SWIG_fail;
31750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31751 if (!SWIG_IsOK(res1)) {
31752 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_polysemous_training_get" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
31763 SWIGINTERN PyObject *_wrap_IndexPQ_search_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31764 PyObject *resultobj = 0;
31771 PyObject * obj0 = 0 ;
31772 PyObject * obj1 = 0 ;
31774 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_search_type_set",&obj0,&obj1)) SWIG_fail;
31775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31776 if (!SWIG_IsOK(res1)) {
31777 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_search_type_set" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31780 ecode2 = SWIG_AsVal_int(obj1, &val2);
31781 if (!SWIG_IsOK(ecode2)) {
31782 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_search_type_set" "', argument " "2"" of type '" "faiss::IndexPQ::Search_type_t""'");
31785 if (arg1) (arg1)->search_type = arg2;
31786 resultobj = SWIG_Py_Void();
31793 SWIGINTERN PyObject *_wrap_IndexPQ_search_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31794 PyObject *resultobj = 0;
31798 PyObject * obj0 = 0 ;
31801 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_search_type_get",&obj0)) SWIG_fail;
31802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31803 if (!SWIG_IsOK(res1)) {
31804 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_search_type_get" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31808 resultobj = SWIG_From_int(static_cast< int >(result));
31815 SWIGINTERN PyObject *_wrap_IndexPQ_encode_signs_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31816 PyObject *resultobj = 0;
31823 PyObject * obj0 = 0 ;
31824 PyObject * obj1 = 0 ;
31826 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_encode_signs_set",&obj0,&obj1)) SWIG_fail;
31827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31828 if (!SWIG_IsOK(res1)) {
31829 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_encode_signs_set" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31832 ecode2 = SWIG_AsVal_bool(obj1, &val2);
31833 if (!SWIG_IsOK(ecode2)) {
31834 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_encode_signs_set" "', argument " "2"" of type '" "bool""'");
31836 arg2 =
static_cast< bool >(val2);
31837 if (arg1) (arg1)->encode_signs = arg2;
31838 resultobj = SWIG_Py_Void();
31845 SWIGINTERN PyObject *_wrap_IndexPQ_encode_signs_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31846 PyObject *resultobj = 0;
31850 PyObject * obj0 = 0 ;
31853 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_encode_signs_get",&obj0)) SWIG_fail;
31854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31855 if (!SWIG_IsOK(res1)) {
31856 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_encode_signs_get" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31859 result = (bool) ((arg1)->encode_signs);
31860 resultobj = SWIG_From_bool(static_cast< bool >(result));
31867 SWIGINTERN PyObject *_wrap_IndexPQ_polysemous_ht_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31868 PyObject *resultobj = 0;
31875 PyObject * obj0 = 0 ;
31876 PyObject * obj1 = 0 ;
31878 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_polysemous_ht_set",&obj0,&obj1)) SWIG_fail;
31879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31880 if (!SWIG_IsOK(res1)) {
31881 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_polysemous_ht_set" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31884 ecode2 = SWIG_AsVal_int(obj1, &val2);
31885 if (!SWIG_IsOK(ecode2)) {
31886 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_polysemous_ht_set" "', argument " "2"" of type '" "int""'");
31888 arg2 =
static_cast< int >(val2);
31889 if (arg1) (arg1)->polysemous_ht = arg2;
31890 resultobj = SWIG_Py_Void();
31897 SWIGINTERN PyObject *_wrap_IndexPQ_polysemous_ht_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31898 PyObject *resultobj = 0;
31902 PyObject * obj0 = 0 ;
31905 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_polysemous_ht_get",&obj0)) SWIG_fail;
31906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31907 if (!SWIG_IsOK(res1)) {
31908 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_polysemous_ht_get" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
31911 result = (int) ((arg1)->polysemous_ht);
31912 resultobj = SWIG_From_int(static_cast< int >(result));
31919 SWIGINTERN PyObject *_wrap_IndexPQ_search_core_polysemous(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31920 PyObject *resultobj = 0;
31923 float *arg3 = (
float *) 0 ;
31925 float *arg5 = (
float *) 0 ;
31939 PyObject * obj0 = 0 ;
31940 PyObject * obj1 = 0 ;
31941 PyObject * obj2 = 0 ;
31942 PyObject * obj3 = 0 ;
31943 PyObject * obj4 = 0 ;
31944 PyObject * obj5 = 0 ;
31946 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexPQ_search_core_polysemous",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
31947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
31948 if (!SWIG_IsOK(res1)) {
31949 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_search_core_polysemous" "', argument " "1"" of type '" "faiss::IndexPQ const *""'");
31952 ecode2 = SWIG_AsVal_long(obj1, &val2);
31953 if (!SWIG_IsOK(ecode2)) {
31954 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_search_core_polysemous" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
31957 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
31958 if (!SWIG_IsOK(res3)) {
31959 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPQ_search_core_polysemous" "', argument " "3"" of type '" "float const *""'");
31961 arg3 =
reinterpret_cast< float *
>(argp3);
31962 ecode4 = SWIG_AsVal_long(obj3, &val4);
31963 if (!SWIG_IsOK(ecode4)) {
31964 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexPQ_search_core_polysemous" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
31967 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
31968 if (!SWIG_IsOK(res5)) {
31969 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexPQ_search_core_polysemous" "', argument " "5"" of type '" "float *""'");
31971 arg5 =
reinterpret_cast< float *
>(argp5);
31972 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
31973 if (!SWIG_IsOK(res6)) {
31974 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexPQ_search_core_polysemous" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
31978 Py_BEGIN_ALLOW_THREADS
31980 ((
faiss::IndexPQ const *)arg1)->search_core_polysemous(arg2,(
float const *)arg3,arg4,arg5,arg6);
31982 PyEval_RestoreThread(_save);
31983 PyErr_SetString(PyExc_RuntimeError, e.
what());
31986 Py_END_ALLOW_THREADS
31988 resultobj = SWIG_Py_Void();
31995 SWIGINTERN PyObject *_wrap_IndexPQ_hamming_distance_histogram(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31996 PyObject *resultobj = 0;
31999 float *arg3 = (
float *) 0 ;
32001 float *arg5 = (
float *) 0 ;
32002 long *arg6 = (
long *) 0 ;
32015 PyObject * obj0 = 0 ;
32016 PyObject * obj1 = 0 ;
32017 PyObject * obj2 = 0 ;
32018 PyObject * obj3 = 0 ;
32019 PyObject * obj4 = 0 ;
32020 PyObject * obj5 = 0 ;
32022 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexPQ_hamming_distance_histogram",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
32024 if (!SWIG_IsOK(res1)) {
32025 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_hamming_distance_histogram" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
32028 ecode2 = SWIG_AsVal_long(obj1, &val2);
32029 if (!SWIG_IsOK(ecode2)) {
32030 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_hamming_distance_histogram" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
32033 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
32034 if (!SWIG_IsOK(res3)) {
32035 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPQ_hamming_distance_histogram" "', argument " "3"" of type '" "float const *""'");
32037 arg3 =
reinterpret_cast< float *
>(argp3);
32038 ecode4 = SWIG_AsVal_long(obj3, &val4);
32039 if (!SWIG_IsOK(ecode4)) {
32040 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexPQ_hamming_distance_histogram" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
32043 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
32044 if (!SWIG_IsOK(res5)) {
32045 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexPQ_hamming_distance_histogram" "', argument " "5"" of type '" "float const *""'");
32047 arg5 =
reinterpret_cast< float *
>(argp5);
32048 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
32049 if (!SWIG_IsOK(res6)) {
32050 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexPQ_hamming_distance_histogram" "', argument " "6"" of type '" "long *""'");
32052 arg6 =
reinterpret_cast< long *
>(argp6);
32054 Py_BEGIN_ALLOW_THREADS
32056 (arg1)->hamming_distance_histogram(arg2,(
float const *)arg3,arg4,(
float const *)arg5,arg6);
32058 PyEval_RestoreThread(_save);
32059 PyErr_SetString(PyExc_RuntimeError, e.
what());
32062 Py_END_ALLOW_THREADS
32064 resultobj = SWIG_Py_Void();
32071 SWIGINTERN PyObject *_wrap_IndexPQ_hamming_distance_table(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32072 PyObject *resultobj = 0;
32075 float *arg3 = (
float *) 0 ;
32076 int32_t *arg4 = (int32_t *) 0 ;
32085 PyObject * obj0 = 0 ;
32086 PyObject * obj1 = 0 ;
32087 PyObject * obj2 = 0 ;
32088 PyObject * obj3 = 0 ;
32090 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexPQ_hamming_distance_table",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
32092 if (!SWIG_IsOK(res1)) {
32093 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_hamming_distance_table" "', argument " "1"" of type '" "faiss::IndexPQ const *""'");
32096 ecode2 = SWIG_AsVal_long(obj1, &val2);
32097 if (!SWIG_IsOK(ecode2)) {
32098 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_hamming_distance_table" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
32101 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
32102 if (!SWIG_IsOK(res3)) {
32103 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPQ_hamming_distance_table" "', argument " "3"" of type '" "float const *""'");
32105 arg3 =
reinterpret_cast< float *
>(argp3);
32106 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 );
32107 if (!SWIG_IsOK(res4)) {
32108 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexPQ_hamming_distance_table" "', argument " "4"" of type '" "int32_t *""'");
32110 arg4 =
reinterpret_cast< int32_t *
>(argp4);
32112 Py_BEGIN_ALLOW_THREADS
32114 ((
faiss::IndexPQ const *)arg1)->hamming_distance_table(arg2,(
float const *)arg3,arg4);
32116 PyEval_RestoreThread(_save);
32117 PyErr_SetString(PyExc_RuntimeError, e.
what());
32120 Py_END_ALLOW_THREADS
32122 resultobj = SWIG_Py_Void();
32129 SWIGINTERN PyObject *_wrap_delete_IndexPQ(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32130 PyObject *resultobj = 0;
32134 PyObject * obj0 = 0 ;
32136 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexPQ",&obj0)) SWIG_fail;
32137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, SWIG_POINTER_DISOWN | 0 );
32138 if (!SWIG_IsOK(res1)) {
32139 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexPQ" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
32143 resultobj = SWIG_Py_Void();
32150 SWIGINTERN PyObject *IndexPQ_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32152 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
32153 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexPQ, SWIG_NewClientData(obj));
32154 return SWIG_Py_Void();
32157 SWIGINTERN PyObject *_wrap_IndexPQStats_nq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32158 PyObject *resultobj = 0;
32165 PyObject * obj0 = 0 ;
32166 PyObject * obj1 = 0 ;
32168 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQStats_nq_set",&obj0,&obj1)) SWIG_fail;
32169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, 0 | 0 );
32170 if (!SWIG_IsOK(res1)) {
32171 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQStats_nq_set" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
32174 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
32175 if (!SWIG_IsOK(ecode2)) {
32176 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQStats_nq_set" "', argument " "2"" of type '" "size_t""'");
32178 arg2 =
static_cast< size_t >(val2);
32179 if (arg1) (arg1)->nq = arg2;
32180 resultobj = SWIG_Py_Void();
32187 SWIGINTERN PyObject *_wrap_IndexPQStats_nq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32188 PyObject *resultobj = 0;
32192 PyObject * obj0 = 0 ;
32195 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQStats_nq_get",&obj0)) SWIG_fail;
32196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, 0 | 0 );
32197 if (!SWIG_IsOK(res1)) {
32198 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQStats_nq_get" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
32201 result = (size_t) ((arg1)->nq);
32202 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
32209 SWIGINTERN PyObject *_wrap_IndexPQStats_ncode_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32210 PyObject *resultobj = 0;
32217 PyObject * obj0 = 0 ;
32218 PyObject * obj1 = 0 ;
32220 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQStats_ncode_set",&obj0,&obj1)) SWIG_fail;
32221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, 0 | 0 );
32222 if (!SWIG_IsOK(res1)) {
32223 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQStats_ncode_set" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
32226 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
32227 if (!SWIG_IsOK(ecode2)) {
32228 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQStats_ncode_set" "', argument " "2"" of type '" "size_t""'");
32230 arg2 =
static_cast< size_t >(val2);
32231 if (arg1) (arg1)->ncode = arg2;
32232 resultobj = SWIG_Py_Void();
32239 SWIGINTERN PyObject *_wrap_IndexPQStats_ncode_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32240 PyObject *resultobj = 0;
32244 PyObject * obj0 = 0 ;
32247 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQStats_ncode_get",&obj0)) SWIG_fail;
32248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, 0 | 0 );
32249 if (!SWIG_IsOK(res1)) {
32250 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQStats_ncode_get" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
32253 result = (size_t) ((arg1)->ncode);
32254 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
32261 SWIGINTERN PyObject *_wrap_IndexPQStats_n_hamming_pass_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32262 PyObject *resultobj = 0;
32269 PyObject * obj0 = 0 ;
32270 PyObject * obj1 = 0 ;
32272 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQStats_n_hamming_pass_set",&obj0,&obj1)) SWIG_fail;
32273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, 0 | 0 );
32274 if (!SWIG_IsOK(res1)) {
32275 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQStats_n_hamming_pass_set" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
32278 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
32279 if (!SWIG_IsOK(ecode2)) {
32280 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQStats_n_hamming_pass_set" "', argument " "2"" of type '" "size_t""'");
32282 arg2 =
static_cast< size_t >(val2);
32283 if (arg1) (arg1)->n_hamming_pass = arg2;
32284 resultobj = SWIG_Py_Void();
32291 SWIGINTERN PyObject *_wrap_IndexPQStats_n_hamming_pass_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32292 PyObject *resultobj = 0;
32296 PyObject * obj0 = 0 ;
32299 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQStats_n_hamming_pass_get",&obj0)) SWIG_fail;
32300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, 0 | 0 );
32301 if (!SWIG_IsOK(res1)) {
32302 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQStats_n_hamming_pass_get" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
32305 result = (size_t) ((arg1)->n_hamming_pass);
32306 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
32313 SWIGINTERN PyObject *_wrap_new_IndexPQStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32314 PyObject *resultobj = 0;
32317 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexPQStats")) SWIG_fail;
32319 Py_BEGIN_ALLOW_THREADS
32323 PyEval_RestoreThread(_save);
32324 PyErr_SetString(PyExc_RuntimeError, e.
what());
32327 Py_END_ALLOW_THREADS
32329 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexPQStats, SWIG_POINTER_NEW | 0 );
32336 SWIGINTERN PyObject *_wrap_IndexPQStats_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32337 PyObject *resultobj = 0;
32341 PyObject * obj0 = 0 ;
32343 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQStats_reset",&obj0)) SWIG_fail;
32344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, 0 | 0 );
32345 if (!SWIG_IsOK(res1)) {
32346 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQStats_reset" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
32350 Py_BEGIN_ALLOW_THREADS
32354 PyEval_RestoreThread(_save);
32355 PyErr_SetString(PyExc_RuntimeError, e.
what());
32358 Py_END_ALLOW_THREADS
32360 resultobj = SWIG_Py_Void();
32367 SWIGINTERN PyObject *_wrap_delete_IndexPQStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32368 PyObject *resultobj = 0;
32372 PyObject * obj0 = 0 ;
32374 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexPQStats",&obj0)) SWIG_fail;
32375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, SWIG_POINTER_DISOWN | 0 );
32376 if (!SWIG_IsOK(res1)) {
32377 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexPQStats" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
32381 resultobj = SWIG_Py_Void();
32388 SWIGINTERN PyObject *IndexPQStats_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32390 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
32391 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexPQStats, SWIG_NewClientData(obj));
32392 return SWIG_Py_Void();
32395 SWIGINTERN
int Swig_var_indexPQ_stats_set(PyObject *_val) {
32398 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_faiss__IndexPQStats, 0 | 0);
32399 if (!SWIG_IsOK(res)) {
32400 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""faiss::indexPQ_stats""' of type '""faiss::IndexPQStats""'");
32403 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""faiss::indexPQ_stats""' of type '""faiss::IndexPQStats""'");
32407 faiss::indexPQ_stats = *temp;
32408 if (SWIG_IsNewObj(res))
delete temp;
32417 SWIGINTERN PyObject *Swig_var_indexPQ_stats_get(
void) {
32418 PyObject *pyobj = 0;
32420 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&faiss::indexPQ_stats), SWIGTYPE_p_faiss__IndexPQStats, 0 );
32425 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer_pq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32426 PyObject *resultobj = 0;
32433 PyObject * obj0 = 0 ;
32434 PyObject * obj1 = 0 ;
32436 if (!PyArg_ParseTuple(args,(
char *)
"OO:MultiIndexQuantizer_pq_set",&obj0,&obj1)) SWIG_fail;
32437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, 0 | 0 );
32438 if (!SWIG_IsOK(res1)) {
32439 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer_pq_set" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer *""'");
32442 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
32443 if (!SWIG_IsOK(res2)) {
32444 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "MultiIndexQuantizer_pq_set" "', argument " "2"" of type '" "faiss::ProductQuantizer *""'");
32447 if (arg1) (arg1)->pq = *arg2;
32448 resultobj = SWIG_Py_Void();
32455 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer_pq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32456 PyObject *resultobj = 0;
32460 PyObject * obj0 = 0 ;
32463 if (!PyArg_ParseTuple(args,(
char *)
"O:MultiIndexQuantizer_pq_get",&obj0)) SWIG_fail;
32464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, 0 | 0 );
32465 if (!SWIG_IsOK(res1)) {
32466 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer_pq_get" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer *""'");
32470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
32477 SWIGINTERN PyObject *_wrap_new_MultiIndexQuantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32478 PyObject *resultobj = 0;
32488 PyObject * obj0 = 0 ;
32489 PyObject * obj1 = 0 ;
32490 PyObject * obj2 = 0 ;
32493 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_MultiIndexQuantizer",&obj0,&obj1,&obj2)) SWIG_fail;
32494 ecode1 = SWIG_AsVal_int(obj0, &val1);
32495 if (!SWIG_IsOK(ecode1)) {
32496 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_MultiIndexQuantizer" "', argument " "1"" of type '" "int""'");
32498 arg1 =
static_cast< int >(val1);
32499 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
32500 if (!SWIG_IsOK(ecode2)) {
32501 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_MultiIndexQuantizer" "', argument " "2"" of type '" "size_t""'");
32503 arg2 =
static_cast< size_t >(val2);
32504 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
32505 if (!SWIG_IsOK(ecode3)) {
32506 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_MultiIndexQuantizer" "', argument " "3"" of type '" "size_t""'");
32508 arg3 =
static_cast< size_t >(val3);
32510 Py_BEGIN_ALLOW_THREADS
32514 PyEval_RestoreThread(_save);
32515 PyErr_SetString(PyExc_RuntimeError, e.
what());
32518 Py_END_ALLOW_THREADS
32520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__MultiIndexQuantizer, SWIG_POINTER_NEW | 0 );
32527 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32528 PyObject *resultobj = 0;
32531 float *arg3 = (
float *) 0 ;
32538 PyObject * obj0 = 0 ;
32539 PyObject * obj1 = 0 ;
32540 PyObject * obj2 = 0 ;
32542 if (!PyArg_ParseTuple(args,(
char *)
"OOO:MultiIndexQuantizer_train",&obj0,&obj1,&obj2)) SWIG_fail;
32543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, 0 | 0 );
32544 if (!SWIG_IsOK(res1)) {
32545 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer_train" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer *""'");
32548 ecode2 = SWIG_AsVal_long(obj1, &val2);
32549 if (!SWIG_IsOK(ecode2)) {
32550 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MultiIndexQuantizer_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
32553 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
32554 if (!SWIG_IsOK(res3)) {
32555 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MultiIndexQuantizer_train" "', argument " "3"" of type '" "float const *""'");
32557 arg3 =
reinterpret_cast< float *
>(argp3);
32559 Py_BEGIN_ALLOW_THREADS
32561 (arg1)->train(arg2,(
float const *)arg3);
32563 PyEval_RestoreThread(_save);
32564 PyErr_SetString(PyExc_RuntimeError, e.
what());
32567 Py_END_ALLOW_THREADS
32569 resultobj = SWIG_Py_Void();
32576 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32577 PyObject *resultobj = 0;
32580 float *arg3 = (
float *) 0 ;
32582 float *arg5 = (
float *) 0 ;
32596 PyObject * obj0 = 0 ;
32597 PyObject * obj1 = 0 ;
32598 PyObject * obj2 = 0 ;
32599 PyObject * obj3 = 0 ;
32600 PyObject * obj4 = 0 ;
32601 PyObject * obj5 = 0 ;
32603 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:MultiIndexQuantizer_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, 0 | 0 );
32605 if (!SWIG_IsOK(res1)) {
32606 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer_search" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer const *""'");
32609 ecode2 = SWIG_AsVal_long(obj1, &val2);
32610 if (!SWIG_IsOK(ecode2)) {
32611 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MultiIndexQuantizer_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
32614 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
32615 if (!SWIG_IsOK(res3)) {
32616 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MultiIndexQuantizer_search" "', argument " "3"" of type '" "float const *""'");
32618 arg3 =
reinterpret_cast< float *
>(argp3);
32619 ecode4 = SWIG_AsVal_long(obj3, &val4);
32620 if (!SWIG_IsOK(ecode4)) {
32621 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "MultiIndexQuantizer_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
32624 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
32625 if (!SWIG_IsOK(res5)) {
32626 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "MultiIndexQuantizer_search" "', argument " "5"" of type '" "float *""'");
32628 arg5 =
reinterpret_cast< float *
>(argp5);
32629 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
32630 if (!SWIG_IsOK(res6)) {
32631 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "MultiIndexQuantizer_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
32635 Py_BEGIN_ALLOW_THREADS
32639 PyEval_RestoreThread(_save);
32640 PyErr_SetString(PyExc_RuntimeError, e.
what());
32643 Py_END_ALLOW_THREADS
32645 resultobj = SWIG_Py_Void();
32652 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32653 PyObject *resultobj = 0;
32656 float *arg3 = (
float *) 0 ;
32663 PyObject * obj0 = 0 ;
32664 PyObject * obj1 = 0 ;
32665 PyObject * obj2 = 0 ;
32667 if (!PyArg_ParseTuple(args,(
char *)
"OOO:MultiIndexQuantizer_add",&obj0,&obj1,&obj2)) SWIG_fail;
32668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, 0 | 0 );
32669 if (!SWIG_IsOK(res1)) {
32670 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer_add" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer *""'");
32673 ecode2 = SWIG_AsVal_long(obj1, &val2);
32674 if (!SWIG_IsOK(ecode2)) {
32675 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MultiIndexQuantizer_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
32678 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
32679 if (!SWIG_IsOK(res3)) {
32680 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MultiIndexQuantizer_add" "', argument " "3"" of type '" "float const *""'");
32682 arg3 =
reinterpret_cast< float *
>(argp3);
32684 Py_BEGIN_ALLOW_THREADS
32686 (arg1)->add(arg2,(
float const *)arg3);
32688 PyEval_RestoreThread(_save);
32689 PyErr_SetString(PyExc_RuntimeError, e.
what());
32692 Py_END_ALLOW_THREADS
32694 resultobj = SWIG_Py_Void();
32701 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32702 PyObject *resultobj = 0;
32706 PyObject * obj0 = 0 ;
32708 if (!PyArg_ParseTuple(args,(
char *)
"O:MultiIndexQuantizer_reset",&obj0)) SWIG_fail;
32709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, 0 | 0 );
32710 if (!SWIG_IsOK(res1)) {
32711 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer_reset" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer *""'");
32715 Py_BEGIN_ALLOW_THREADS
32719 PyEval_RestoreThread(_save);
32720 PyErr_SetString(PyExc_RuntimeError, e.
what());
32723 Py_END_ALLOW_THREADS
32725 resultobj = SWIG_Py_Void();
32732 SWIGINTERN PyObject *_wrap_new_MultiIndexQuantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32733 PyObject *resultobj = 0;
32736 if (!PyArg_ParseTuple(args,(
char *)
":new_MultiIndexQuantizer")) SWIG_fail;
32738 Py_BEGIN_ALLOW_THREADS
32742 PyEval_RestoreThread(_save);
32743 PyErr_SetString(PyExc_RuntimeError, e.
what());
32746 Py_END_ALLOW_THREADS
32748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__MultiIndexQuantizer, SWIG_POINTER_NEW | 0 );
32755 SWIGINTERN PyObject *_wrap_new_MultiIndexQuantizer(PyObject *
self, PyObject *args) {
32757 PyObject *argv[4] = {
32762 if (!PyTuple_Check(args)) SWIG_fail;
32763 argc = args ? PyObject_Length(args) : 0;
32764 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
32765 argv[ii] = PyTuple_GET_ITEM(args,ii);
32768 return _wrap_new_MultiIndexQuantizer__SWIG_1(
self, args);
32773 int res = SWIG_AsVal_int(argv[0], NULL);
32774 _v = SWIG_CheckState(res);
32778 int res = SWIG_AsVal_size_t(argv[1], NULL);
32779 _v = SWIG_CheckState(res);
32783 int res = SWIG_AsVal_size_t(argv[2], NULL);
32784 _v = SWIG_CheckState(res);
32787 return _wrap_new_MultiIndexQuantizer__SWIG_0(
self, args);
32794 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_MultiIndexQuantizer'.\n"
32795 " Possible C/C++ prototypes are:\n"
32796 " faiss::MultiIndexQuantizer::MultiIndexQuantizer(int,size_t,size_t)\n"
32797 " faiss::MultiIndexQuantizer::MultiIndexQuantizer()\n");
32802 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32803 PyObject *resultobj = 0;
32806 float *arg3 = (
float *) 0 ;
32813 PyObject * obj0 = 0 ;
32814 PyObject * obj1 = 0 ;
32815 PyObject * obj2 = 0 ;
32817 if (!PyArg_ParseTuple(args,(
char *)
"OOO:MultiIndexQuantizer_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
32818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, 0 | 0 );
32819 if (!SWIG_IsOK(res1)) {
32820 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer_reconstruct" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer const *""'");
32823 ecode2 = SWIG_AsVal_long(obj1, &val2);
32824 if (!SWIG_IsOK(ecode2)) {
32825 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MultiIndexQuantizer_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
32828 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
32829 if (!SWIG_IsOK(res3)) {
32830 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MultiIndexQuantizer_reconstruct" "', argument " "3"" of type '" "float *""'");
32832 arg3 =
reinterpret_cast< float *
>(argp3);
32834 Py_BEGIN_ALLOW_THREADS
32838 PyEval_RestoreThread(_save);
32839 PyErr_SetString(PyExc_RuntimeError, e.
what());
32842 Py_END_ALLOW_THREADS
32844 resultobj = SWIG_Py_Void();
32851 SWIGINTERN PyObject *_wrap_delete_MultiIndexQuantizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32852 PyObject *resultobj = 0;
32856 PyObject * obj0 = 0 ;
32858 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_MultiIndexQuantizer",&obj0)) SWIG_fail;
32859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, SWIG_POINTER_DISOWN | 0 );
32860 if (!SWIG_IsOK(res1)) {
32861 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_MultiIndexQuantizer" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer *""'");
32865 resultobj = SWIG_Py_Void();
32872 SWIGINTERN PyObject *MultiIndexQuantizer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32874 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
32875 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__MultiIndexQuantizer, SWIG_NewClientData(obj));
32876 return SWIG_Py_Void();
32879 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer2_assign_indexes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32880 PyObject *resultobj = 0;
32882 std::vector< faiss::Index * > *arg2 = (std::vector< faiss::Index * > *) 0 ;
32887 PyObject * obj0 = 0 ;
32888 PyObject * obj1 = 0 ;
32890 if (!PyArg_ParseTuple(args,(
char *)
"OO:MultiIndexQuantizer2_assign_indexes_set",&obj0,&obj1)) SWIG_fail;
32891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer2, 0 | 0 );
32892 if (!SWIG_IsOK(res1)) {
32893 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer2_assign_indexes_set" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer2 *""'");
32896 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__Index_p_t, 0 | 0 );
32897 if (!SWIG_IsOK(res2)) {
32898 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "MultiIndexQuantizer2_assign_indexes_set" "', argument " "2"" of type '" "std::vector< faiss::Index * > *""'");
32900 arg2 =
reinterpret_cast< std::vector< faiss::Index * > *
>(argp2);
32901 if (arg1) (arg1)->assign_indexes = *arg2;
32902 resultobj = SWIG_Py_Void();
32909 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer2_assign_indexes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32910 PyObject *resultobj = 0;
32914 PyObject * obj0 = 0 ;
32915 std::vector< faiss::Index * > *result = 0 ;
32917 if (!PyArg_ParseTuple(args,(
char *)
"O:MultiIndexQuantizer2_assign_indexes_get",&obj0)) SWIG_fail;
32918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer2, 0 | 0 );
32919 if (!SWIG_IsOK(res1)) {
32920 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer2_assign_indexes_get" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer2 *""'");
32923 result = (std::vector< faiss::Index * > *)& ((arg1)->assign_indexes);
32924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__Index_p_t, 0 | 0 );
32931 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer2_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32932 PyObject *resultobj = 0;
32939 PyObject * obj0 = 0 ;
32940 PyObject * obj1 = 0 ;
32942 if (!PyArg_ParseTuple(args,(
char *)
"OO:MultiIndexQuantizer2_own_fields_set",&obj0,&obj1)) SWIG_fail;
32943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer2, 0 | 0 );
32944 if (!SWIG_IsOK(res1)) {
32945 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer2_own_fields_set" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer2 *""'");
32948 ecode2 = SWIG_AsVal_bool(obj1, &val2);
32949 if (!SWIG_IsOK(ecode2)) {
32950 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MultiIndexQuantizer2_own_fields_set" "', argument " "2"" of type '" "bool""'");
32952 arg2 =
static_cast< bool >(val2);
32953 if (arg1) (arg1)->own_fields = arg2;
32954 resultobj = SWIG_Py_Void();
32961 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer2_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32962 PyObject *resultobj = 0;
32966 PyObject * obj0 = 0 ;
32969 if (!PyArg_ParseTuple(args,(
char *)
"O:MultiIndexQuantizer2_own_fields_get",&obj0)) SWIG_fail;
32970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer2, 0 | 0 );
32971 if (!SWIG_IsOK(res1)) {
32972 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer2_own_fields_get" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer2 *""'");
32975 result = (bool) ((arg1)->own_fields);
32976 resultobj = SWIG_From_bool(static_cast< bool >(result));
32983 SWIGINTERN PyObject *_wrap_new_MultiIndexQuantizer2__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32984 PyObject *resultobj = 0;
32997 PyObject * obj0 = 0 ;
32998 PyObject * obj1 = 0 ;
32999 PyObject * obj2 = 0 ;
33000 PyObject * obj3 = 0 ;
33003 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_MultiIndexQuantizer2",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33004 ecode1 = SWIG_AsVal_int(obj0, &val1);
33005 if (!SWIG_IsOK(ecode1)) {
33006 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_MultiIndexQuantizer2" "', argument " "1"" of type '" "int""'");
33008 arg1 =
static_cast< int >(val1);
33009 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33010 if (!SWIG_IsOK(ecode2)) {
33011 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_MultiIndexQuantizer2" "', argument " "2"" of type '" "size_t""'");
33013 arg2 =
static_cast< size_t >(val2);
33014 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
33015 if (!SWIG_IsOK(ecode3)) {
33016 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_MultiIndexQuantizer2" "', argument " "3"" of type '" "size_t""'");
33018 arg3 =
static_cast< size_t >(val3);
33019 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_p_faiss__Index, 0 | 0 );
33020 if (!SWIG_IsOK(res4)) {
33021 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "new_MultiIndexQuantizer2" "', argument " "4"" of type '" "faiss::Index **""'");
33025 Py_BEGIN_ALLOW_THREADS
33029 PyEval_RestoreThread(_save);
33030 PyErr_SetString(PyExc_RuntimeError, e.
what());
33033 Py_END_ALLOW_THREADS
33035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__MultiIndexQuantizer2, SWIG_POINTER_NEW | 0 );
33042 SWIGINTERN PyObject *_wrap_new_MultiIndexQuantizer2__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33043 PyObject *resultobj = 0;
33056 PyObject * obj0 = 0 ;
33057 PyObject * obj1 = 0 ;
33058 PyObject * obj2 = 0 ;
33059 PyObject * obj3 = 0 ;
33062 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_MultiIndexQuantizer2",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33063 ecode1 = SWIG_AsVal_int(obj0, &val1);
33064 if (!SWIG_IsOK(ecode1)) {
33065 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_MultiIndexQuantizer2" "', argument " "1"" of type '" "int""'");
33067 arg1 =
static_cast< int >(val1);
33068 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33069 if (!SWIG_IsOK(ecode2)) {
33070 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_MultiIndexQuantizer2" "', argument " "2"" of type '" "size_t""'");
33072 arg2 =
static_cast< size_t >(val2);
33073 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_faiss__Index, 0 | 0 );
33074 if (!SWIG_IsOK(res3)) {
33075 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_MultiIndexQuantizer2" "', argument " "3"" of type '" "faiss::Index *""'");
33078 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_faiss__Index, 0 | 0 );
33079 if (!SWIG_IsOK(res4)) {
33080 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "new_MultiIndexQuantizer2" "', argument " "4"" of type '" "faiss::Index *""'");
33084 Py_BEGIN_ALLOW_THREADS
33088 PyEval_RestoreThread(_save);
33089 PyErr_SetString(PyExc_RuntimeError, e.
what());
33092 Py_END_ALLOW_THREADS
33094 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__MultiIndexQuantizer2, SWIG_POINTER_NEW | 0 );
33101 SWIGINTERN PyObject *_wrap_new_MultiIndexQuantizer2(PyObject *
self, PyObject *args) {
33103 PyObject *argv[5] = {
33108 if (!PyTuple_Check(args)) SWIG_fail;
33109 argc = args ? PyObject_Length(args) : 0;
33110 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
33111 argv[ii] = PyTuple_GET_ITEM(args,ii);
33116 int res = SWIG_AsVal_int(argv[0], NULL);
33117 _v = SWIG_CheckState(res);
33121 int res = SWIG_AsVal_size_t(argv[1], NULL);
33122 _v = SWIG_CheckState(res);
33126 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_faiss__Index, 0);
33127 _v = SWIG_CheckState(res);
33130 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_faiss__Index, 0);
33131 _v = SWIG_CheckState(res);
33133 return _wrap_new_MultiIndexQuantizer2__SWIG_1(
self, args);
33142 int res = SWIG_AsVal_int(argv[0], NULL);
33143 _v = SWIG_CheckState(res);
33147 int res = SWIG_AsVal_size_t(argv[1], NULL);
33148 _v = SWIG_CheckState(res);
33152 int res = SWIG_AsVal_size_t(argv[2], NULL);
33153 _v = SWIG_CheckState(res);
33157 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_p_faiss__Index, 0);
33158 _v = SWIG_CheckState(res);
33160 return _wrap_new_MultiIndexQuantizer2__SWIG_0(
self, args);
33168 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_MultiIndexQuantizer2'.\n"
33169 " Possible C/C++ prototypes are:\n"
33170 " faiss::MultiIndexQuantizer2::MultiIndexQuantizer2(int,size_t,size_t,faiss::Index **)\n"
33171 " faiss::MultiIndexQuantizer2::MultiIndexQuantizer2(int,size_t,faiss::Index *,faiss::Index *)\n");
33176 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer2_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33177 PyObject *resultobj = 0;
33180 float *arg3 = (
float *) 0 ;
33187 PyObject * obj0 = 0 ;
33188 PyObject * obj1 = 0 ;
33189 PyObject * obj2 = 0 ;
33191 if (!PyArg_ParseTuple(args,(
char *)
"OOO:MultiIndexQuantizer2_train",&obj0,&obj1,&obj2)) SWIG_fail;
33192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer2, 0 | 0 );
33193 if (!SWIG_IsOK(res1)) {
33194 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer2_train" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer2 *""'");
33197 ecode2 = SWIG_AsVal_long(obj1, &val2);
33198 if (!SWIG_IsOK(ecode2)) {
33199 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MultiIndexQuantizer2_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
33202 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
33203 if (!SWIG_IsOK(res3)) {
33204 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MultiIndexQuantizer2_train" "', argument " "3"" of type '" "float const *""'");
33206 arg3 =
reinterpret_cast< float *
>(argp3);
33208 Py_BEGIN_ALLOW_THREADS
33210 (arg1)->train(arg2,(
float const *)arg3);
33212 PyEval_RestoreThread(_save);
33213 PyErr_SetString(PyExc_RuntimeError, e.
what());
33216 Py_END_ALLOW_THREADS
33218 resultobj = SWIG_Py_Void();
33225 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer2_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33226 PyObject *resultobj = 0;
33229 float *arg3 = (
float *) 0 ;
33231 float *arg5 = (
float *) 0 ;
33245 PyObject * obj0 = 0 ;
33246 PyObject * obj1 = 0 ;
33247 PyObject * obj2 = 0 ;
33248 PyObject * obj3 = 0 ;
33249 PyObject * obj4 = 0 ;
33250 PyObject * obj5 = 0 ;
33252 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:MultiIndexQuantizer2_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer2, 0 | 0 );
33254 if (!SWIG_IsOK(res1)) {
33255 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer2_search" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer2 const *""'");
33258 ecode2 = SWIG_AsVal_long(obj1, &val2);
33259 if (!SWIG_IsOK(ecode2)) {
33260 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MultiIndexQuantizer2_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
33263 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
33264 if (!SWIG_IsOK(res3)) {
33265 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MultiIndexQuantizer2_search" "', argument " "3"" of type '" "float const *""'");
33267 arg3 =
reinterpret_cast< float *
>(argp3);
33268 ecode4 = SWIG_AsVal_long(obj3, &val4);
33269 if (!SWIG_IsOK(ecode4)) {
33270 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "MultiIndexQuantizer2_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
33273 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
33274 if (!SWIG_IsOK(res5)) {
33275 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "MultiIndexQuantizer2_search" "', argument " "5"" of type '" "float *""'");
33277 arg5 =
reinterpret_cast< float *
>(argp5);
33278 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
33279 if (!SWIG_IsOK(res6)) {
33280 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "MultiIndexQuantizer2_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
33284 Py_BEGIN_ALLOW_THREADS
33288 PyEval_RestoreThread(_save);
33289 PyErr_SetString(PyExc_RuntimeError, e.
what());
33292 Py_END_ALLOW_THREADS
33294 resultobj = SWIG_Py_Void();
33301 SWIGINTERN PyObject *_wrap_delete_MultiIndexQuantizer2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33302 PyObject *resultobj = 0;
33306 PyObject * obj0 = 0 ;
33308 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_MultiIndexQuantizer2",&obj0)) SWIG_fail;
33309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer2, SWIG_POINTER_DISOWN | 0 );
33310 if (!SWIG_IsOK(res1)) {
33311 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_MultiIndexQuantizer2" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer2 *""'");
33315 resultobj = SWIG_Py_Void();
33322 SWIGINTERN PyObject *MultiIndexQuantizer2_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33324 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
33325 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__MultiIndexQuantizer2, SWIG_NewClientData(obj));
33326 return SWIG_Py_Void();
33329 SWIGINTERN PyObject *_wrap_InvertedLists_nlist_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33330 PyObject *resultobj = 0;
33337 PyObject * obj0 = 0 ;
33338 PyObject * obj1 = 0 ;
33340 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedLists_nlist_set",&obj0,&obj1)) SWIG_fail;
33341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33342 if (!SWIG_IsOK(res1)) {
33343 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_nlist_set" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
33346 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33347 if (!SWIG_IsOK(ecode2)) {
33348 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_nlist_set" "', argument " "2"" of type '" "size_t""'");
33350 arg2 =
static_cast< size_t >(val2);
33351 if (arg1) (arg1)->nlist = arg2;
33352 resultobj = SWIG_Py_Void();
33359 SWIGINTERN PyObject *_wrap_InvertedLists_nlist_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33360 PyObject *resultobj = 0;
33364 PyObject * obj0 = 0 ;
33367 if (!PyArg_ParseTuple(args,(
char *)
"O:InvertedLists_nlist_get",&obj0)) SWIG_fail;
33368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33369 if (!SWIG_IsOK(res1)) {
33370 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_nlist_get" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
33373 result = (size_t) ((arg1)->nlist);
33374 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33381 SWIGINTERN PyObject *_wrap_InvertedLists_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33382 PyObject *resultobj = 0;
33389 PyObject * obj0 = 0 ;
33390 PyObject * obj1 = 0 ;
33392 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedLists_code_size_set",&obj0,&obj1)) SWIG_fail;
33393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33394 if (!SWIG_IsOK(res1)) {
33395 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_code_size_set" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
33398 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33399 if (!SWIG_IsOK(ecode2)) {
33400 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_code_size_set" "', argument " "2"" of type '" "size_t""'");
33402 arg2 =
static_cast< size_t >(val2);
33403 if (arg1) (arg1)->code_size = arg2;
33404 resultobj = SWIG_Py_Void();
33411 SWIGINTERN PyObject *_wrap_InvertedLists_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33412 PyObject *resultobj = 0;
33416 PyObject * obj0 = 0 ;
33419 if (!PyArg_ParseTuple(args,(
char *)
"O:InvertedLists_code_size_get",&obj0)) SWIG_fail;
33420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33421 if (!SWIG_IsOK(res1)) {
33422 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_code_size_get" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
33425 result = (size_t) ((arg1)->code_size);
33426 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33433 SWIGINTERN PyObject *_wrap_InvertedLists_list_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33434 PyObject *resultobj = 0;
33441 PyObject * obj0 = 0 ;
33442 PyObject * obj1 = 0 ;
33445 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedLists_list_size",&obj0,&obj1)) SWIG_fail;
33446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33447 if (!SWIG_IsOK(res1)) {
33448 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_list_size" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
33451 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33452 if (!SWIG_IsOK(ecode2)) {
33453 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_list_size" "', argument " "2"" of type '" "size_t""'");
33455 arg2 =
static_cast< size_t >(val2);
33457 Py_BEGIN_ALLOW_THREADS
33461 PyEval_RestoreThread(_save);
33462 PyErr_SetString(PyExc_RuntimeError, e.
what());
33465 Py_END_ALLOW_THREADS
33467 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33474 SWIGINTERN PyObject *_wrap_InvertedLists_get_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33475 PyObject *resultobj = 0;
33482 PyObject * obj0 = 0 ;
33483 PyObject * obj1 = 0 ;
33484 uint8_t *result = 0 ;
33486 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedLists_get_codes",&obj0,&obj1)) SWIG_fail;
33487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33488 if (!SWIG_IsOK(res1)) {
33489 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_get_codes" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
33492 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33493 if (!SWIG_IsOK(ecode2)) {
33494 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_get_codes" "', argument " "2"" of type '" "size_t""'");
33496 arg2 =
static_cast< size_t >(val2);
33498 Py_BEGIN_ALLOW_THREADS
33502 PyEval_RestoreThread(_save);
33503 PyErr_SetString(PyExc_RuntimeError, e.
what());
33506 Py_END_ALLOW_THREADS
33508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
33515 SWIGINTERN PyObject *_wrap_InvertedLists_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33516 PyObject *resultobj = 0;
33523 PyObject * obj0 = 0 ;
33524 PyObject * obj1 = 0 ;
33525 faiss::InvertedLists::idx_t *result = 0 ;
33527 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedLists_get_ids",&obj0,&obj1)) SWIG_fail;
33528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33529 if (!SWIG_IsOK(res1)) {
33530 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_get_ids" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
33533 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33534 if (!SWIG_IsOK(ecode2)) {
33535 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_get_ids" "', argument " "2"" of type '" "size_t""'");
33537 arg2 =
static_cast< size_t >(val2);
33539 Py_BEGIN_ALLOW_THREADS
33543 PyEval_RestoreThread(_save);
33544 PyErr_SetString(PyExc_RuntimeError, e.
what());
33547 Py_END_ALLOW_THREADS
33549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
33556 SWIGINTERN PyObject *_wrap_InvertedLists_release_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33557 PyObject *resultobj = 0;
33559 uint8_t *arg2 = (uint8_t *) 0 ;
33564 PyObject * obj0 = 0 ;
33565 PyObject * obj1 = 0 ;
33567 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedLists_release_codes",&obj0,&obj1)) SWIG_fail;
33568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33569 if (!SWIG_IsOK(res1)) {
33570 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_release_codes" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
33573 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
33574 if (!SWIG_IsOK(res2)) {
33575 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "InvertedLists_release_codes" "', argument " "2"" of type '" "uint8_t const *""'");
33577 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
33579 Py_BEGIN_ALLOW_THREADS
33583 PyEval_RestoreThread(_save);
33584 PyErr_SetString(PyExc_RuntimeError, e.
what());
33587 Py_END_ALLOW_THREADS
33589 resultobj = SWIG_Py_Void();
33596 SWIGINTERN PyObject *_wrap_InvertedLists_release_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33597 PyObject *resultobj = 0;
33599 faiss::InvertedLists::idx_t *arg2 = (faiss::InvertedLists::idx_t *) 0 ;
33604 PyObject * obj0 = 0 ;
33605 PyObject * obj1 = 0 ;
33607 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedLists_release_ids",&obj0,&obj1)) SWIG_fail;
33608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33609 if (!SWIG_IsOK(res1)) {
33610 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_release_ids" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
33613 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
33614 if (!SWIG_IsOK(res2)) {
33615 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "InvertedLists_release_ids" "', argument " "2"" of type '" "faiss::InvertedLists::idx_t const *""'");
33617 arg2 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp2);
33619 Py_BEGIN_ALLOW_THREADS
33623 PyEval_RestoreThread(_save);
33624 PyErr_SetString(PyExc_RuntimeError, e.
what());
33627 Py_END_ALLOW_THREADS
33629 resultobj = SWIG_Py_Void();
33636 SWIGINTERN PyObject *_wrap_InvertedLists_get_single_id(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33637 PyObject *resultobj = 0;
33647 PyObject * obj0 = 0 ;
33648 PyObject * obj1 = 0 ;
33649 PyObject * obj2 = 0 ;
33650 faiss::InvertedLists::idx_t result;
33652 if (!PyArg_ParseTuple(args,(
char *)
"OOO:InvertedLists_get_single_id",&obj0,&obj1,&obj2)) SWIG_fail;
33653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33654 if (!SWIG_IsOK(res1)) {
33655 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_get_single_id" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
33658 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33659 if (!SWIG_IsOK(ecode2)) {
33660 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_get_single_id" "', argument " "2"" of type '" "size_t""'");
33662 arg2 =
static_cast< size_t >(val2);
33663 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
33664 if (!SWIG_IsOK(ecode3)) {
33665 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_get_single_id" "', argument " "3"" of type '" "size_t""'");
33667 arg3 =
static_cast< size_t >(val3);
33669 Py_BEGIN_ALLOW_THREADS
33671 result = (faiss::InvertedLists::idx_t)((
faiss::InvertedLists const *)arg1)->get_single_id(arg2,arg3);
33673 PyEval_RestoreThread(_save);
33674 PyErr_SetString(PyExc_RuntimeError, e.
what());
33677 Py_END_ALLOW_THREADS
33679 resultobj = SWIG_From_long(static_cast< long >(result));
33686 SWIGINTERN PyObject *_wrap_InvertedLists_get_single_code(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33687 PyObject *resultobj = 0;
33697 PyObject * obj0 = 0 ;
33698 PyObject * obj1 = 0 ;
33699 PyObject * obj2 = 0 ;
33700 uint8_t *result = 0 ;
33702 if (!PyArg_ParseTuple(args,(
char *)
"OOO:InvertedLists_get_single_code",&obj0,&obj1,&obj2)) SWIG_fail;
33703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33704 if (!SWIG_IsOK(res1)) {
33705 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_get_single_code" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
33708 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33709 if (!SWIG_IsOK(ecode2)) {
33710 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_get_single_code" "', argument " "2"" of type '" "size_t""'");
33712 arg2 =
static_cast< size_t >(val2);
33713 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
33714 if (!SWIG_IsOK(ecode3)) {
33715 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_get_single_code" "', argument " "3"" of type '" "size_t""'");
33717 arg3 =
static_cast< size_t >(val3);
33719 Py_BEGIN_ALLOW_THREADS
33723 PyEval_RestoreThread(_save);
33724 PyErr_SetString(PyExc_RuntimeError, e.
what());
33727 Py_END_ALLOW_THREADS
33729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
33736 SWIGINTERN PyObject *_wrap_InvertedLists_prefetch_lists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33737 PyObject *resultobj = 0;
33739 long *arg2 = (
long *) 0 ;
33747 PyObject * obj0 = 0 ;
33748 PyObject * obj1 = 0 ;
33749 PyObject * obj2 = 0 ;
33751 if (!PyArg_ParseTuple(args,(
char *)
"OOO:InvertedLists_prefetch_lists",&obj0,&obj1,&obj2)) SWIG_fail;
33752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33753 if (!SWIG_IsOK(res1)) {
33754 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_prefetch_lists" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
33757 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
33758 if (!SWIG_IsOK(res2)) {
33759 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "InvertedLists_prefetch_lists" "', argument " "2"" of type '" "long const *""'");
33761 arg2 =
reinterpret_cast< long *
>(argp2);
33762 ecode3 = SWIG_AsVal_int(obj2, &val3);
33763 if (!SWIG_IsOK(ecode3)) {
33764 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_prefetch_lists" "', argument " "3"" of type '" "int""'");
33766 arg3 =
static_cast< int >(val3);
33768 Py_BEGIN_ALLOW_THREADS
33772 PyEval_RestoreThread(_save);
33773 PyErr_SetString(PyExc_RuntimeError, e.
what());
33776 Py_END_ALLOW_THREADS
33778 resultobj = SWIG_Py_Void();
33785 SWIGINTERN PyObject *_wrap_InvertedLists_add_entry(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33786 PyObject *resultobj = 0;
33789 faiss::InvertedLists::idx_t arg3 ;
33790 uint8_t *arg4 = (uint8_t *) 0 ;
33799 PyObject * obj0 = 0 ;
33800 PyObject * obj1 = 0 ;
33801 PyObject * obj2 = 0 ;
33802 PyObject * obj3 = 0 ;
33805 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:InvertedLists_add_entry",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33807 if (!SWIG_IsOK(res1)) {
33808 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_add_entry" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
33811 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33812 if (!SWIG_IsOK(ecode2)) {
33813 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_add_entry" "', argument " "2"" of type '" "size_t""'");
33815 arg2 =
static_cast< size_t >(val2);
33816 ecode3 = SWIG_AsVal_long(obj2, &val3);
33817 if (!SWIG_IsOK(ecode3)) {
33818 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_add_entry" "', argument " "3"" of type '" "faiss::InvertedLists::idx_t""'");
33820 arg3 =
static_cast< faiss::InvertedLists::idx_t
>(val3);
33821 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
33822 if (!SWIG_IsOK(res4)) {
33823 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "InvertedLists_add_entry" "', argument " "4"" of type '" "uint8_t const *""'");
33825 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
33827 Py_BEGIN_ALLOW_THREADS
33829 result = (size_t)(arg1)->add_entry(arg2,arg3,(uint8_t
const *)arg4);
33831 PyEval_RestoreThread(_save);
33832 PyErr_SetString(PyExc_RuntimeError, e.
what());
33835 Py_END_ALLOW_THREADS
33837 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33844 SWIGINTERN PyObject *_wrap_InvertedLists_add_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33845 PyObject *resultobj = 0;
33849 faiss::InvertedLists::idx_t *arg4 = (faiss::InvertedLists::idx_t *) 0 ;
33850 uint8_t *arg5 = (uint8_t *) 0 ;
33861 PyObject * obj0 = 0 ;
33862 PyObject * obj1 = 0 ;
33863 PyObject * obj2 = 0 ;
33864 PyObject * obj3 = 0 ;
33865 PyObject * obj4 = 0 ;
33868 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:InvertedLists_add_entries",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33870 if (!SWIG_IsOK(res1)) {
33871 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_add_entries" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
33874 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33875 if (!SWIG_IsOK(ecode2)) {
33876 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_add_entries" "', argument " "2"" of type '" "size_t""'");
33878 arg2 =
static_cast< size_t >(val2);
33879 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
33880 if (!SWIG_IsOK(ecode3)) {
33881 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_add_entries" "', argument " "3"" of type '" "size_t""'");
33883 arg3 =
static_cast< size_t >(val3);
33884 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
33885 if (!SWIG_IsOK(res4)) {
33886 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "InvertedLists_add_entries" "', argument " "4"" of type '" "faiss::InvertedLists::idx_t const *""'");
33888 arg4 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp4);
33889 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
33890 if (!SWIG_IsOK(res5)) {
33891 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "InvertedLists_add_entries" "', argument " "5"" of type '" "uint8_t const *""'");
33893 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
33895 Py_BEGIN_ALLOW_THREADS
33897 result = (size_t)(arg1)->add_entries(arg2,arg3,(faiss::InvertedLists::idx_t
const *)arg4,(uint8_t
const *)arg5);
33899 PyEval_RestoreThread(_save);
33900 PyErr_SetString(PyExc_RuntimeError, e.
what());
33903 Py_END_ALLOW_THREADS
33905 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33912 SWIGINTERN PyObject *_wrap_InvertedLists_update_entry(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33913 PyObject *resultobj = 0;
33917 faiss::InvertedLists::idx_t arg4 ;
33918 uint8_t *arg5 = (uint8_t *) 0 ;
33929 PyObject * obj0 = 0 ;
33930 PyObject * obj1 = 0 ;
33931 PyObject * obj2 = 0 ;
33932 PyObject * obj3 = 0 ;
33933 PyObject * obj4 = 0 ;
33935 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:InvertedLists_update_entry",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
33937 if (!SWIG_IsOK(res1)) {
33938 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_update_entry" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
33941 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33942 if (!SWIG_IsOK(ecode2)) {
33943 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_update_entry" "', argument " "2"" of type '" "size_t""'");
33945 arg2 =
static_cast< size_t >(val2);
33946 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
33947 if (!SWIG_IsOK(ecode3)) {
33948 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_update_entry" "', argument " "3"" of type '" "size_t""'");
33950 arg3 =
static_cast< size_t >(val3);
33951 ecode4 = SWIG_AsVal_long(obj3, &val4);
33952 if (!SWIG_IsOK(ecode4)) {
33953 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "InvertedLists_update_entry" "', argument " "4"" of type '" "faiss::InvertedLists::idx_t""'");
33955 arg4 =
static_cast< faiss::InvertedLists::idx_t
>(val4);
33956 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
33957 if (!SWIG_IsOK(res5)) {
33958 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "InvertedLists_update_entry" "', argument " "5"" of type '" "uint8_t const *""'");
33960 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
33962 Py_BEGIN_ALLOW_THREADS
33964 (arg1)->update_entry(arg2,arg3,arg4,(uint8_t
const *)arg5);
33966 PyEval_RestoreThread(_save);
33967 PyErr_SetString(PyExc_RuntimeError, e.
what());
33970 Py_END_ALLOW_THREADS
33972 resultobj = SWIG_Py_Void();
33979 SWIGINTERN PyObject *_wrap_InvertedLists_update_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33980 PyObject *resultobj = 0;
33985 faiss::InvertedLists::idx_t *arg5 = (faiss::InvertedLists::idx_t *) 0 ;
33986 uint8_t *arg6 = (uint8_t *) 0 ;
33999 PyObject * obj0 = 0 ;
34000 PyObject * obj1 = 0 ;
34001 PyObject * obj2 = 0 ;
34002 PyObject * obj3 = 0 ;
34003 PyObject * obj4 = 0 ;
34004 PyObject * obj5 = 0 ;
34006 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:InvertedLists_update_entries",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34008 if (!SWIG_IsOK(res1)) {
34009 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_update_entries" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
34012 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34013 if (!SWIG_IsOK(ecode2)) {
34014 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_update_entries" "', argument " "2"" of type '" "size_t""'");
34016 arg2 =
static_cast< size_t >(val2);
34017 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
34018 if (!SWIG_IsOK(ecode3)) {
34019 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_update_entries" "', argument " "3"" of type '" "size_t""'");
34021 arg3 =
static_cast< size_t >(val3);
34022 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
34023 if (!SWIG_IsOK(ecode4)) {
34024 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "InvertedLists_update_entries" "', argument " "4"" of type '" "size_t""'");
34026 arg4 =
static_cast< size_t >(val4);
34027 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
34028 if (!SWIG_IsOK(res5)) {
34029 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "InvertedLists_update_entries" "', argument " "5"" of type '" "faiss::InvertedLists::idx_t const *""'");
34031 arg5 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp5);
34032 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_unsigned_char, 0 | 0 );
34033 if (!SWIG_IsOK(res6)) {
34034 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "InvertedLists_update_entries" "', argument " "6"" of type '" "uint8_t const *""'");
34036 arg6 =
reinterpret_cast< uint8_t *
>(argp6);
34038 Py_BEGIN_ALLOW_THREADS
34040 (arg1)->update_entries(arg2,arg3,arg4,(faiss::InvertedLists::idx_t
const *)arg5,(uint8_t
const *)arg6);
34042 PyEval_RestoreThread(_save);
34043 PyErr_SetString(PyExc_RuntimeError, e.
what());
34046 Py_END_ALLOW_THREADS
34048 resultobj = SWIG_Py_Void();
34055 SWIGINTERN PyObject *_wrap_InvertedLists_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34056 PyObject *resultobj = 0;
34066 PyObject * obj0 = 0 ;
34067 PyObject * obj1 = 0 ;
34068 PyObject * obj2 = 0 ;
34070 if (!PyArg_ParseTuple(args,(
char *)
"OOO:InvertedLists_resize",&obj0,&obj1,&obj2)) SWIG_fail;
34071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34072 if (!SWIG_IsOK(res1)) {
34073 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_resize" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
34076 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34077 if (!SWIG_IsOK(ecode2)) {
34078 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_resize" "', argument " "2"" of type '" "size_t""'");
34080 arg2 =
static_cast< size_t >(val2);
34081 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
34082 if (!SWIG_IsOK(ecode3)) {
34083 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_resize" "', argument " "3"" of type '" "size_t""'");
34085 arg3 =
static_cast< size_t >(val3);
34087 Py_BEGIN_ALLOW_THREADS
34089 (arg1)->resize(arg2,arg3);
34091 PyEval_RestoreThread(_save);
34092 PyErr_SetString(PyExc_RuntimeError, e.
what());
34095 Py_END_ALLOW_THREADS
34097 resultobj = SWIG_Py_Void();
34104 SWIGINTERN PyObject *_wrap_InvertedLists_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34105 PyObject *resultobj = 0;
34109 PyObject * obj0 = 0 ;
34111 if (!PyArg_ParseTuple(args,(
char *)
"O:InvertedLists_reset",&obj0)) SWIG_fail;
34112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34113 if (!SWIG_IsOK(res1)) {
34114 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_reset" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
34118 Py_BEGIN_ALLOW_THREADS
34122 PyEval_RestoreThread(_save);
34123 PyErr_SetString(PyExc_RuntimeError, e.
what());
34126 Py_END_ALLOW_THREADS
34128 resultobj = SWIG_Py_Void();
34135 SWIGINTERN PyObject *_wrap_InvertedLists_merge_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34136 PyObject *resultobj = 0;
34146 PyObject * obj0 = 0 ;
34147 PyObject * obj1 = 0 ;
34148 PyObject * obj2 = 0 ;
34150 if (!PyArg_ParseTuple(args,(
char *)
"OOO:InvertedLists_merge_from",&obj0,&obj1,&obj2)) SWIG_fail;
34151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34152 if (!SWIG_IsOK(res1)) {
34153 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_merge_from" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
34156 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34157 if (!SWIG_IsOK(res2)) {
34158 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "InvertedLists_merge_from" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
34161 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
34162 if (!SWIG_IsOK(ecode3)) {
34163 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_merge_from" "', argument " "3"" of type '" "size_t""'");
34165 arg3 =
static_cast< size_t >(val3);
34167 Py_BEGIN_ALLOW_THREADS
34169 (arg1)->merge_from(arg2,arg3);
34171 PyEval_RestoreThread(_save);
34172 PyErr_SetString(PyExc_RuntimeError, e.
what());
34175 Py_END_ALLOW_THREADS
34177 resultobj = SWIG_Py_Void();
34184 SWIGINTERN PyObject *_wrap_delete_InvertedLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34185 PyObject *resultobj = 0;
34189 PyObject * obj0 = 0 ;
34191 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_InvertedLists",&obj0)) SWIG_fail;
34192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, SWIG_POINTER_DISOWN | 0 );
34193 if (!SWIG_IsOK(res1)) {
34194 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_InvertedLists" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
34198 Py_BEGIN_ALLOW_THREADS
34202 PyEval_RestoreThread(_save);
34203 PyErr_SetString(PyExc_RuntimeError, e.
what());
34206 Py_END_ALLOW_THREADS
34208 resultobj = SWIG_Py_Void();
34215 SWIGINTERN PyObject *InvertedLists_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34217 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
34218 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__InvertedLists, SWIG_NewClientData(obj));
34219 return SWIG_Py_Void();
34222 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34223 PyObject *resultobj = 0;
34225 std::vector< std::vector< uint8_t > > *arg2 = (std::vector< std::vector< uint8_t > > *) 0 ;
34230 PyObject * obj0 = 0 ;
34231 PyObject * obj1 = 0 ;
34233 if (!PyArg_ParseTuple(args,(
char *)
"OO:ArrayInvertedLists_codes_set",&obj0,&obj1)) SWIG_fail;
34234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
34235 if (!SWIG_IsOK(res1)) {
34236 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_codes_set" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
34239 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
34240 if (!SWIG_IsOK(res2)) {
34241 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ArrayInvertedLists_codes_set" "', argument " "2"" of type '" "std::vector< std::vector< uint8_t > > *""'");
34243 arg2 =
reinterpret_cast< std::vector< std::vector< uint8_t >
> * >(argp2);
34244 if (arg1) (arg1)->codes = *arg2;
34245 resultobj = SWIG_Py_Void();
34252 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34253 PyObject *resultobj = 0;
34257 PyObject * obj0 = 0 ;
34258 std::vector< std::vector< uint8_t > > *result = 0 ;
34260 if (!PyArg_ParseTuple(args,(
char *)
"O:ArrayInvertedLists_codes_get",&obj0)) SWIG_fail;
34261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
34262 if (!SWIG_IsOK(res1)) {
34263 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_codes_get" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
34266 result = (std::vector< std::vector< uint8_t > > *)& ((arg1)->codes);
34267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
34274 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_ids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34275 PyObject *resultobj = 0;
34277 std::vector< std::vector< faiss::InvertedLists::idx_t > > *arg2 = (std::vector< std::vector< faiss::InvertedLists::idx_t > > *) 0 ;
34282 PyObject * obj0 = 0 ;
34283 PyObject * obj1 = 0 ;
34285 if (!PyArg_ParseTuple(args,(
char *)
"OO:ArrayInvertedLists_ids_set",&obj0,&obj1)) SWIG_fail;
34286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
34287 if (!SWIG_IsOK(res1)) {
34288 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_ids_set" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
34291 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
34292 if (!SWIG_IsOK(res2)) {
34293 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ArrayInvertedLists_ids_set" "', argument " "2"" of type '" "std::vector< std::vector< faiss::InvertedLists::idx_t > > *""'");
34295 arg2 =
reinterpret_cast< std::vector< std::vector< faiss::InvertedLists::idx_t >
> * >(argp2);
34296 if (arg1) (arg1)->ids = *arg2;
34297 resultobj = SWIG_Py_Void();
34304 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_ids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34305 PyObject *resultobj = 0;
34309 PyObject * obj0 = 0 ;
34310 std::vector< std::vector< faiss::InvertedLists::idx_t > > *result = 0 ;
34312 if (!PyArg_ParseTuple(args,(
char *)
"O:ArrayInvertedLists_ids_get",&obj0)) SWIG_fail;
34313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
34314 if (!SWIG_IsOK(res1)) {
34315 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_ids_get" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
34318 result = (std::vector< std::vector< faiss::InvertedLists::idx_t > > *)& ((arg1)->ids);
34319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
34326 SWIGINTERN PyObject *_wrap_new_ArrayInvertedLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34327 PyObject *resultobj = 0;
34334 PyObject * obj0 = 0 ;
34335 PyObject * obj1 = 0 ;
34338 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_ArrayInvertedLists",&obj0,&obj1)) SWIG_fail;
34339 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
34340 if (!SWIG_IsOK(ecode1)) {
34341 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_ArrayInvertedLists" "', argument " "1"" of type '" "size_t""'");
34343 arg1 =
static_cast< size_t >(val1);
34344 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34345 if (!SWIG_IsOK(ecode2)) {
34346 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_ArrayInvertedLists" "', argument " "2"" of type '" "size_t""'");
34348 arg2 =
static_cast< size_t >(val2);
34350 Py_BEGIN_ALLOW_THREADS
34354 PyEval_RestoreThread(_save);
34355 PyErr_SetString(PyExc_RuntimeError, e.
what());
34358 Py_END_ALLOW_THREADS
34360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ArrayInvertedLists, SWIG_POINTER_NEW | 0 );
34367 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_list_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34368 PyObject *resultobj = 0;
34375 PyObject * obj0 = 0 ;
34376 PyObject * obj1 = 0 ;
34379 if (!PyArg_ParseTuple(args,(
char *)
"OO:ArrayInvertedLists_list_size",&obj0,&obj1)) SWIG_fail;
34380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
34381 if (!SWIG_IsOK(res1)) {
34382 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_list_size" "', argument " "1"" of type '" "faiss::ArrayInvertedLists const *""'");
34385 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34386 if (!SWIG_IsOK(ecode2)) {
34387 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ArrayInvertedLists_list_size" "', argument " "2"" of type '" "size_t""'");
34389 arg2 =
static_cast< size_t >(val2);
34391 Py_BEGIN_ALLOW_THREADS
34395 PyEval_RestoreThread(_save);
34396 PyErr_SetString(PyExc_RuntimeError, e.
what());
34399 Py_END_ALLOW_THREADS
34401 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34408 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_get_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34409 PyObject *resultobj = 0;
34416 PyObject * obj0 = 0 ;
34417 PyObject * obj1 = 0 ;
34418 uint8_t *result = 0 ;
34420 if (!PyArg_ParseTuple(args,(
char *)
"OO:ArrayInvertedLists_get_codes",&obj0,&obj1)) SWIG_fail;
34421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
34422 if (!SWIG_IsOK(res1)) {
34423 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_get_codes" "', argument " "1"" of type '" "faiss::ArrayInvertedLists const *""'");
34426 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34427 if (!SWIG_IsOK(ecode2)) {
34428 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ArrayInvertedLists_get_codes" "', argument " "2"" of type '" "size_t""'");
34430 arg2 =
static_cast< size_t >(val2);
34432 Py_BEGIN_ALLOW_THREADS
34436 PyEval_RestoreThread(_save);
34437 PyErr_SetString(PyExc_RuntimeError, e.
what());
34440 Py_END_ALLOW_THREADS
34442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
34449 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34450 PyObject *resultobj = 0;
34457 PyObject * obj0 = 0 ;
34458 PyObject * obj1 = 0 ;
34459 faiss::InvertedLists::idx_t *result = 0 ;
34461 if (!PyArg_ParseTuple(args,(
char *)
"OO:ArrayInvertedLists_get_ids",&obj0,&obj1)) SWIG_fail;
34462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
34463 if (!SWIG_IsOK(res1)) {
34464 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_get_ids" "', argument " "1"" of type '" "faiss::ArrayInvertedLists const *""'");
34467 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34468 if (!SWIG_IsOK(ecode2)) {
34469 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ArrayInvertedLists_get_ids" "', argument " "2"" of type '" "size_t""'");
34471 arg2 =
static_cast< size_t >(val2);
34473 Py_BEGIN_ALLOW_THREADS
34477 PyEval_RestoreThread(_save);
34478 PyErr_SetString(PyExc_RuntimeError, e.
what());
34481 Py_END_ALLOW_THREADS
34483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
34490 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_add_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34491 PyObject *resultobj = 0;
34495 faiss::InvertedLists::idx_t *arg4 = (faiss::InvertedLists::idx_t *) 0 ;
34496 uint8_t *arg5 = (uint8_t *) 0 ;
34507 PyObject * obj0 = 0 ;
34508 PyObject * obj1 = 0 ;
34509 PyObject * obj2 = 0 ;
34510 PyObject * obj3 = 0 ;
34511 PyObject * obj4 = 0 ;
34514 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:ArrayInvertedLists_add_entries",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
34516 if (!SWIG_IsOK(res1)) {
34517 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_add_entries" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
34520 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34521 if (!SWIG_IsOK(ecode2)) {
34522 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ArrayInvertedLists_add_entries" "', argument " "2"" of type '" "size_t""'");
34524 arg2 =
static_cast< size_t >(val2);
34525 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
34526 if (!SWIG_IsOK(ecode3)) {
34527 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ArrayInvertedLists_add_entries" "', argument " "3"" of type '" "size_t""'");
34529 arg3 =
static_cast< size_t >(val3);
34530 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
34531 if (!SWIG_IsOK(res4)) {
34532 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ArrayInvertedLists_add_entries" "', argument " "4"" of type '" "faiss::InvertedLists::idx_t const *""'");
34534 arg4 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp4);
34535 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
34536 if (!SWIG_IsOK(res5)) {
34537 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "ArrayInvertedLists_add_entries" "', argument " "5"" of type '" "uint8_t const *""'");
34539 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
34541 Py_BEGIN_ALLOW_THREADS
34543 result = (size_t)(arg1)->add_entries(arg2,arg3,(faiss::InvertedLists::idx_t
const *)arg4,(uint8_t
const *)arg5);
34545 PyEval_RestoreThread(_save);
34546 PyErr_SetString(PyExc_RuntimeError, e.
what());
34549 Py_END_ALLOW_THREADS
34551 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34558 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_update_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34559 PyObject *resultobj = 0;
34564 faiss::InvertedLists::idx_t *arg5 = (faiss::InvertedLists::idx_t *) 0 ;
34565 uint8_t *arg6 = (uint8_t *) 0 ;
34578 PyObject * obj0 = 0 ;
34579 PyObject * obj1 = 0 ;
34580 PyObject * obj2 = 0 ;
34581 PyObject * obj3 = 0 ;
34582 PyObject * obj4 = 0 ;
34583 PyObject * obj5 = 0 ;
34585 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:ArrayInvertedLists_update_entries",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
34587 if (!SWIG_IsOK(res1)) {
34588 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_update_entries" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
34591 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34592 if (!SWIG_IsOK(ecode2)) {
34593 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ArrayInvertedLists_update_entries" "', argument " "2"" of type '" "size_t""'");
34595 arg2 =
static_cast< size_t >(val2);
34596 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
34597 if (!SWIG_IsOK(ecode3)) {
34598 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ArrayInvertedLists_update_entries" "', argument " "3"" of type '" "size_t""'");
34600 arg3 =
static_cast< size_t >(val3);
34601 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
34602 if (!SWIG_IsOK(ecode4)) {
34603 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ArrayInvertedLists_update_entries" "', argument " "4"" of type '" "size_t""'");
34605 arg4 =
static_cast< size_t >(val4);
34606 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
34607 if (!SWIG_IsOK(res5)) {
34608 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "ArrayInvertedLists_update_entries" "', argument " "5"" of type '" "faiss::InvertedLists::idx_t const *""'");
34610 arg5 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp5);
34611 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_unsigned_char, 0 | 0 );
34612 if (!SWIG_IsOK(res6)) {
34613 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ArrayInvertedLists_update_entries" "', argument " "6"" of type '" "uint8_t const *""'");
34615 arg6 =
reinterpret_cast< uint8_t *
>(argp6);
34617 Py_BEGIN_ALLOW_THREADS
34619 (arg1)->update_entries(arg2,arg3,arg4,(faiss::InvertedLists::idx_t
const *)arg5,(uint8_t
const *)arg6);
34621 PyEval_RestoreThread(_save);
34622 PyErr_SetString(PyExc_RuntimeError, e.
what());
34625 Py_END_ALLOW_THREADS
34627 resultobj = SWIG_Py_Void();
34634 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34635 PyObject *resultobj = 0;
34645 PyObject * obj0 = 0 ;
34646 PyObject * obj1 = 0 ;
34647 PyObject * obj2 = 0 ;
34649 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ArrayInvertedLists_resize",&obj0,&obj1,&obj2)) SWIG_fail;
34650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
34651 if (!SWIG_IsOK(res1)) {
34652 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_resize" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
34655 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34656 if (!SWIG_IsOK(ecode2)) {
34657 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ArrayInvertedLists_resize" "', argument " "2"" of type '" "size_t""'");
34659 arg2 =
static_cast< size_t >(val2);
34660 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
34661 if (!SWIG_IsOK(ecode3)) {
34662 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ArrayInvertedLists_resize" "', argument " "3"" of type '" "size_t""'");
34664 arg3 =
static_cast< size_t >(val3);
34666 Py_BEGIN_ALLOW_THREADS
34668 (arg1)->resize(arg2,arg3);
34670 PyEval_RestoreThread(_save);
34671 PyErr_SetString(PyExc_RuntimeError, e.
what());
34674 Py_END_ALLOW_THREADS
34676 resultobj = SWIG_Py_Void();
34683 SWIGINTERN PyObject *_wrap_delete_ArrayInvertedLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34684 PyObject *resultobj = 0;
34688 PyObject * obj0 = 0 ;
34690 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ArrayInvertedLists",&obj0)) SWIG_fail;
34691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, SWIG_POINTER_DISOWN | 0 );
34692 if (!SWIG_IsOK(res1)) {
34693 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ArrayInvertedLists" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
34697 Py_BEGIN_ALLOW_THREADS
34701 PyEval_RestoreThread(_save);
34702 PyErr_SetString(PyExc_RuntimeError, e.
what());
34705 Py_END_ALLOW_THREADS
34707 resultobj = SWIG_Py_Void();
34714 SWIGINTERN PyObject *ArrayInvertedLists_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34716 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
34717 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ArrayInvertedLists, SWIG_NewClientData(obj));
34718 return SWIG_Py_Void();
34721 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_ils_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34722 PyObject *resultobj = 0;
34724 std::vector< faiss::InvertedLists const * > *arg2 = (std::vector< faiss::InvertedLists const * > *) 0 ;
34729 PyObject * obj0 = 0 ;
34730 PyObject * obj1 = 0 ;
34732 if (!PyArg_ParseTuple(args,(
char *)
"OO:ConcatenatedInvertedLists_ils_set",&obj0,&obj1)) SWIG_fail;
34733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
34734 if (!SWIG_IsOK(res1)) {
34735 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_ils_set" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists *""'");
34738 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t, 0 | 0 );
34739 if (!SWIG_IsOK(res2)) {
34740 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ConcatenatedInvertedLists_ils_set" "', argument " "2"" of type '" "std::vector< faiss::InvertedLists const * > *""'");
34742 arg2 =
reinterpret_cast< std::vector< faiss::InvertedLists const * > *
>(argp2);
34743 if (arg1) (arg1)->ils = *arg2;
34744 resultobj = SWIG_Py_Void();
34751 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_ils_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34752 PyObject *resultobj = 0;
34756 PyObject * obj0 = 0 ;
34757 std::vector< faiss::InvertedLists const * > *result = 0 ;
34759 if (!PyArg_ParseTuple(args,(
char *)
"O:ConcatenatedInvertedLists_ils_get",&obj0)) SWIG_fail;
34760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
34761 if (!SWIG_IsOK(res1)) {
34762 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_ils_get" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists *""'");
34765 result = (std::vector< faiss::InvertedLists const * > *)& ((arg1)->ils);
34766 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t, 0 | 0 );
34773 SWIGINTERN PyObject *_wrap_new_ConcatenatedInvertedLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34774 PyObject *resultobj = 0;
34781 PyObject * obj0 = 0 ;
34782 PyObject * obj1 = 0 ;
34785 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_ConcatenatedInvertedLists",&obj0,&obj1)) SWIG_fail;
34786 ecode1 = SWIG_AsVal_int(obj0, &val1);
34787 if (!SWIG_IsOK(ecode1)) {
34788 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_ConcatenatedInvertedLists" "', argument " "1"" of type '" "int""'");
34790 arg1 =
static_cast< int >(val1);
34791 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_faiss__InvertedLists, 0 | 0 );
34792 if (!SWIG_IsOK(res2)) {
34793 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_ConcatenatedInvertedLists" "', argument " "2"" of type '" "faiss::InvertedLists const **""'");
34797 Py_BEGIN_ALLOW_THREADS
34801 PyEval_RestoreThread(_save);
34802 PyErr_SetString(PyExc_RuntimeError, e.
what());
34805 Py_END_ALLOW_THREADS
34807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ConcatenatedInvertedLists, SWIG_POINTER_NEW | 0 );
34814 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_list_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34815 PyObject *resultobj = 0;
34822 PyObject * obj0 = 0 ;
34823 PyObject * obj1 = 0 ;
34826 if (!PyArg_ParseTuple(args,(
char *)
"OO:ConcatenatedInvertedLists_list_size",&obj0,&obj1)) SWIG_fail;
34827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
34828 if (!SWIG_IsOK(res1)) {
34829 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_list_size" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists const *""'");
34832 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34833 if (!SWIG_IsOK(ecode2)) {
34834 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_list_size" "', argument " "2"" of type '" "size_t""'");
34836 arg2 =
static_cast< size_t >(val2);
34838 Py_BEGIN_ALLOW_THREADS
34842 PyEval_RestoreThread(_save);
34843 PyErr_SetString(PyExc_RuntimeError, e.
what());
34846 Py_END_ALLOW_THREADS
34848 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34855 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_get_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34856 PyObject *resultobj = 0;
34863 PyObject * obj0 = 0 ;
34864 PyObject * obj1 = 0 ;
34865 uint8_t *result = 0 ;
34867 if (!PyArg_ParseTuple(args,(
char *)
"OO:ConcatenatedInvertedLists_get_codes",&obj0,&obj1)) SWIG_fail;
34868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
34869 if (!SWIG_IsOK(res1)) {
34870 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_get_codes" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists const *""'");
34873 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34874 if (!SWIG_IsOK(ecode2)) {
34875 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_get_codes" "', argument " "2"" of type '" "size_t""'");
34877 arg2 =
static_cast< size_t >(val2);
34879 Py_BEGIN_ALLOW_THREADS
34883 PyEval_RestoreThread(_save);
34884 PyErr_SetString(PyExc_RuntimeError, e.
what());
34887 Py_END_ALLOW_THREADS
34889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
34896 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34897 PyObject *resultobj = 0;
34904 PyObject * obj0 = 0 ;
34905 PyObject * obj1 = 0 ;
34906 faiss::InvertedLists::idx_t *result = 0 ;
34908 if (!PyArg_ParseTuple(args,(
char *)
"OO:ConcatenatedInvertedLists_get_ids",&obj0,&obj1)) SWIG_fail;
34909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
34910 if (!SWIG_IsOK(res1)) {
34911 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_get_ids" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists const *""'");
34914 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34915 if (!SWIG_IsOK(ecode2)) {
34916 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_get_ids" "', argument " "2"" of type '" "size_t""'");
34918 arg2 =
static_cast< size_t >(val2);
34920 Py_BEGIN_ALLOW_THREADS
34924 PyEval_RestoreThread(_save);
34925 PyErr_SetString(PyExc_RuntimeError, e.
what());
34928 Py_END_ALLOW_THREADS
34930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
34937 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_release_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34938 PyObject *resultobj = 0;
34940 uint8_t *arg2 = (uint8_t *) 0 ;
34945 PyObject * obj0 = 0 ;
34946 PyObject * obj1 = 0 ;
34948 if (!PyArg_ParseTuple(args,(
char *)
"OO:ConcatenatedInvertedLists_release_codes",&obj0,&obj1)) SWIG_fail;
34949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
34950 if (!SWIG_IsOK(res1)) {
34951 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_release_codes" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists const *""'");
34954 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
34955 if (!SWIG_IsOK(res2)) {
34956 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ConcatenatedInvertedLists_release_codes" "', argument " "2"" of type '" "uint8_t const *""'");
34958 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
34960 Py_BEGIN_ALLOW_THREADS
34964 PyEval_RestoreThread(_save);
34965 PyErr_SetString(PyExc_RuntimeError, e.
what());
34968 Py_END_ALLOW_THREADS
34970 resultobj = SWIG_Py_Void();
34977 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_release_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34978 PyObject *resultobj = 0;
34980 faiss::InvertedLists::idx_t *arg2 = (faiss::InvertedLists::idx_t *) 0 ;
34985 PyObject * obj0 = 0 ;
34986 PyObject * obj1 = 0 ;
34988 if (!PyArg_ParseTuple(args,(
char *)
"OO:ConcatenatedInvertedLists_release_ids",&obj0,&obj1)) SWIG_fail;
34989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
34990 if (!SWIG_IsOK(res1)) {
34991 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_release_ids" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists const *""'");
34994 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
34995 if (!SWIG_IsOK(res2)) {
34996 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ConcatenatedInvertedLists_release_ids" "', argument " "2"" of type '" "faiss::InvertedLists::idx_t const *""'");
34998 arg2 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp2);
35000 Py_BEGIN_ALLOW_THREADS
35004 PyEval_RestoreThread(_save);
35005 PyErr_SetString(PyExc_RuntimeError, e.
what());
35008 Py_END_ALLOW_THREADS
35010 resultobj = SWIG_Py_Void();
35017 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_get_single_id(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35018 PyObject *resultobj = 0;
35028 PyObject * obj0 = 0 ;
35029 PyObject * obj1 = 0 ;
35030 PyObject * obj2 = 0 ;
35031 faiss::InvertedLists::idx_t result;
35033 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ConcatenatedInvertedLists_get_single_id",&obj0,&obj1,&obj2)) SWIG_fail;
35034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
35035 if (!SWIG_IsOK(res1)) {
35036 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_get_single_id" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists const *""'");
35039 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35040 if (!SWIG_IsOK(ecode2)) {
35041 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_get_single_id" "', argument " "2"" of type '" "size_t""'");
35043 arg2 =
static_cast< size_t >(val2);
35044 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35045 if (!SWIG_IsOK(ecode3)) {
35046 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ConcatenatedInvertedLists_get_single_id" "', argument " "3"" of type '" "size_t""'");
35048 arg3 =
static_cast< size_t >(val3);
35050 Py_BEGIN_ALLOW_THREADS
35054 PyEval_RestoreThread(_save);
35055 PyErr_SetString(PyExc_RuntimeError, e.
what());
35058 Py_END_ALLOW_THREADS
35060 resultobj = SWIG_From_long(static_cast< long >(result));
35067 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_get_single_code(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35068 PyObject *resultobj = 0;
35078 PyObject * obj0 = 0 ;
35079 PyObject * obj1 = 0 ;
35080 PyObject * obj2 = 0 ;
35081 uint8_t *result = 0 ;
35083 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ConcatenatedInvertedLists_get_single_code",&obj0,&obj1,&obj2)) SWIG_fail;
35084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
35085 if (!SWIG_IsOK(res1)) {
35086 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_get_single_code" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists const *""'");
35089 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35090 if (!SWIG_IsOK(ecode2)) {
35091 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_get_single_code" "', argument " "2"" of type '" "size_t""'");
35093 arg2 =
static_cast< size_t >(val2);
35094 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35095 if (!SWIG_IsOK(ecode3)) {
35096 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ConcatenatedInvertedLists_get_single_code" "', argument " "3"" of type '" "size_t""'");
35098 arg3 =
static_cast< size_t >(val3);
35100 Py_BEGIN_ALLOW_THREADS
35104 PyEval_RestoreThread(_save);
35105 PyErr_SetString(PyExc_RuntimeError, e.
what());
35108 Py_END_ALLOW_THREADS
35110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
35117 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_add_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35118 PyObject *resultobj = 0;
35122 faiss::InvertedLists::idx_t *arg4 = (faiss::InvertedLists::idx_t *) 0 ;
35123 uint8_t *arg5 = (uint8_t *) 0 ;
35134 PyObject * obj0 = 0 ;
35135 PyObject * obj1 = 0 ;
35136 PyObject * obj2 = 0 ;
35137 PyObject * obj3 = 0 ;
35138 PyObject * obj4 = 0 ;
35141 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:ConcatenatedInvertedLists_add_entries",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
35143 if (!SWIG_IsOK(res1)) {
35144 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_add_entries" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists *""'");
35147 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35148 if (!SWIG_IsOK(ecode2)) {
35149 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_add_entries" "', argument " "2"" of type '" "size_t""'");
35151 arg2 =
static_cast< size_t >(val2);
35152 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35153 if (!SWIG_IsOK(ecode3)) {
35154 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ConcatenatedInvertedLists_add_entries" "', argument " "3"" of type '" "size_t""'");
35156 arg3 =
static_cast< size_t >(val3);
35157 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
35158 if (!SWIG_IsOK(res4)) {
35159 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ConcatenatedInvertedLists_add_entries" "', argument " "4"" of type '" "faiss::InvertedLists::idx_t const *""'");
35161 arg4 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp4);
35162 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
35163 if (!SWIG_IsOK(res5)) {
35164 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "ConcatenatedInvertedLists_add_entries" "', argument " "5"" of type '" "uint8_t const *""'");
35166 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
35168 Py_BEGIN_ALLOW_THREADS
35170 result = (size_t)(arg1)->add_entries(arg2,arg3,(faiss::InvertedLists::idx_t
const *)arg4,(uint8_t
const *)arg5);
35172 PyEval_RestoreThread(_save);
35173 PyErr_SetString(PyExc_RuntimeError, e.
what());
35176 Py_END_ALLOW_THREADS
35178 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35185 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_update_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35186 PyObject *resultobj = 0;
35191 faiss::InvertedLists::idx_t *arg5 = (faiss::InvertedLists::idx_t *) 0 ;
35192 uint8_t *arg6 = (uint8_t *) 0 ;
35205 PyObject * obj0 = 0 ;
35206 PyObject * obj1 = 0 ;
35207 PyObject * obj2 = 0 ;
35208 PyObject * obj3 = 0 ;
35209 PyObject * obj4 = 0 ;
35210 PyObject * obj5 = 0 ;
35212 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:ConcatenatedInvertedLists_update_entries",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
35214 if (!SWIG_IsOK(res1)) {
35215 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_update_entries" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists *""'");
35218 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35219 if (!SWIG_IsOK(ecode2)) {
35220 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_update_entries" "', argument " "2"" of type '" "size_t""'");
35222 arg2 =
static_cast< size_t >(val2);
35223 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35224 if (!SWIG_IsOK(ecode3)) {
35225 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ConcatenatedInvertedLists_update_entries" "', argument " "3"" of type '" "size_t""'");
35227 arg3 =
static_cast< size_t >(val3);
35228 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
35229 if (!SWIG_IsOK(ecode4)) {
35230 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ConcatenatedInvertedLists_update_entries" "', argument " "4"" of type '" "size_t""'");
35232 arg4 =
static_cast< size_t >(val4);
35233 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
35234 if (!SWIG_IsOK(res5)) {
35235 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "ConcatenatedInvertedLists_update_entries" "', argument " "5"" of type '" "faiss::InvertedLists::idx_t const *""'");
35237 arg5 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp5);
35238 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_unsigned_char, 0 | 0 );
35239 if (!SWIG_IsOK(res6)) {
35240 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ConcatenatedInvertedLists_update_entries" "', argument " "6"" of type '" "uint8_t const *""'");
35242 arg6 =
reinterpret_cast< uint8_t *
>(argp6);
35244 Py_BEGIN_ALLOW_THREADS
35246 (arg1)->update_entries(arg2,arg3,arg4,(faiss::InvertedLists::idx_t
const *)arg5,(uint8_t
const *)arg6);
35248 PyEval_RestoreThread(_save);
35249 PyErr_SetString(PyExc_RuntimeError, e.
what());
35252 Py_END_ALLOW_THREADS
35254 resultobj = SWIG_Py_Void();
35261 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35262 PyObject *resultobj = 0;
35272 PyObject * obj0 = 0 ;
35273 PyObject * obj1 = 0 ;
35274 PyObject * obj2 = 0 ;
35276 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ConcatenatedInvertedLists_resize",&obj0,&obj1,&obj2)) SWIG_fail;
35277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
35278 if (!SWIG_IsOK(res1)) {
35279 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_resize" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists *""'");
35282 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35283 if (!SWIG_IsOK(ecode2)) {
35284 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_resize" "', argument " "2"" of type '" "size_t""'");
35286 arg2 =
static_cast< size_t >(val2);
35287 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35288 if (!SWIG_IsOK(ecode3)) {
35289 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ConcatenatedInvertedLists_resize" "', argument " "3"" of type '" "size_t""'");
35291 arg3 =
static_cast< size_t >(val3);
35293 Py_BEGIN_ALLOW_THREADS
35295 (arg1)->resize(arg2,arg3);
35297 PyEval_RestoreThread(_save);
35298 PyErr_SetString(PyExc_RuntimeError, e.
what());
35301 Py_END_ALLOW_THREADS
35303 resultobj = SWIG_Py_Void();
35310 SWIGINTERN PyObject *_wrap_delete_ConcatenatedInvertedLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35311 PyObject *resultobj = 0;
35315 PyObject * obj0 = 0 ;
35317 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ConcatenatedInvertedLists",&obj0)) SWIG_fail;
35318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, SWIG_POINTER_DISOWN | 0 );
35319 if (!SWIG_IsOK(res1)) {
35320 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ConcatenatedInvertedLists" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists *""'");
35324 resultobj = SWIG_Py_Void();
35331 SWIGINTERN PyObject *ConcatenatedInvertedLists_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35333 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
35334 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ConcatenatedInvertedLists, SWIG_NewClientData(obj));
35335 return SWIG_Py_Void();
35338 SWIGINTERN PyObject *_wrap_Level1Quantizer_quantizer_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35339 PyObject *resultobj = 0;
35346 PyObject * obj0 = 0 ;
35347 PyObject * obj1 = 0 ;
35349 if (!PyArg_ParseTuple(args,(
char *)
"OO:Level1Quantizer_quantizer_set",&obj0,&obj1)) SWIG_fail;
35350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
35351 if (!SWIG_IsOK(res1)) {
35352 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_quantizer_set" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
35355 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
35356 if (!SWIG_IsOK(res2)) {
35357 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Level1Quantizer_quantizer_set" "', argument " "2"" of type '" "faiss::Index *""'");
35360 if (arg1) (arg1)->quantizer = arg2;
35361 resultobj = SWIG_Py_Void();
35368 SWIGINTERN PyObject *_wrap_Level1Quantizer_quantizer_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35369 PyObject *resultobj = 0;
35373 PyObject * obj0 = 0 ;
35376 if (!PyArg_ParseTuple(args,(
char *)
"O:Level1Quantizer_quantizer_get",&obj0)) SWIG_fail;
35377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
35378 if (!SWIG_IsOK(res1)) {
35379 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_quantizer_get" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
35383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
35390 SWIGINTERN PyObject *_wrap_Level1Quantizer_nlist_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35391 PyObject *resultobj = 0;
35398 PyObject * obj0 = 0 ;
35399 PyObject * obj1 = 0 ;
35401 if (!PyArg_ParseTuple(args,(
char *)
"OO:Level1Quantizer_nlist_set",&obj0,&obj1)) SWIG_fail;
35402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
35403 if (!SWIG_IsOK(res1)) {
35404 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_nlist_set" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
35407 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35408 if (!SWIG_IsOK(ecode2)) {
35409 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Level1Quantizer_nlist_set" "', argument " "2"" of type '" "size_t""'");
35411 arg2 =
static_cast< size_t >(val2);
35412 if (arg1) (arg1)->nlist = arg2;
35413 resultobj = SWIG_Py_Void();
35420 SWIGINTERN PyObject *_wrap_Level1Quantizer_nlist_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35421 PyObject *resultobj = 0;
35425 PyObject * obj0 = 0 ;
35428 if (!PyArg_ParseTuple(args,(
char *)
"O:Level1Quantizer_nlist_get",&obj0)) SWIG_fail;
35429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
35430 if (!SWIG_IsOK(res1)) {
35431 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_nlist_get" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
35434 result = (size_t) ((arg1)->nlist);
35435 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35442 SWIGINTERN PyObject *_wrap_Level1Quantizer_quantizer_trains_alone_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35443 PyObject *resultobj = 0;
35450 PyObject * obj0 = 0 ;
35451 PyObject * obj1 = 0 ;
35453 if (!PyArg_ParseTuple(args,(
char *)
"OO:Level1Quantizer_quantizer_trains_alone_set",&obj0,&obj1)) SWIG_fail;
35454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
35455 if (!SWIG_IsOK(res1)) {
35456 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_quantizer_trains_alone_set" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
35459 ecode2 = SWIG_AsVal_char(obj1, &val2);
35460 if (!SWIG_IsOK(ecode2)) {
35461 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Level1Quantizer_quantizer_trains_alone_set" "', argument " "2"" of type '" "char""'");
35463 arg2 =
static_cast< char >(val2);
35464 if (arg1) (arg1)->quantizer_trains_alone = arg2;
35465 resultobj = SWIG_Py_Void();
35472 SWIGINTERN PyObject *_wrap_Level1Quantizer_quantizer_trains_alone_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35473 PyObject *resultobj = 0;
35477 PyObject * obj0 = 0 ;
35480 if (!PyArg_ParseTuple(args,(
char *)
"O:Level1Quantizer_quantizer_trains_alone_get",&obj0)) SWIG_fail;
35481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
35482 if (!SWIG_IsOK(res1)) {
35483 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_quantizer_trains_alone_get" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
35486 result = (char) ((arg1)->quantizer_trains_alone);
35487 resultobj = SWIG_From_char(static_cast< char >(result));
35494 SWIGINTERN PyObject *_wrap_Level1Quantizer_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35495 PyObject *resultobj = 0;
35502 PyObject * obj0 = 0 ;
35503 PyObject * obj1 = 0 ;
35505 if (!PyArg_ParseTuple(args,(
char *)
"OO:Level1Quantizer_own_fields_set",&obj0,&obj1)) SWIG_fail;
35506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
35507 if (!SWIG_IsOK(res1)) {
35508 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_own_fields_set" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
35511 ecode2 = SWIG_AsVal_bool(obj1, &val2);
35512 if (!SWIG_IsOK(ecode2)) {
35513 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Level1Quantizer_own_fields_set" "', argument " "2"" of type '" "bool""'");
35515 arg2 =
static_cast< bool >(val2);
35516 if (arg1) (arg1)->own_fields = arg2;
35517 resultobj = SWIG_Py_Void();
35524 SWIGINTERN PyObject *_wrap_Level1Quantizer_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35525 PyObject *resultobj = 0;
35529 PyObject * obj0 = 0 ;
35532 if (!PyArg_ParseTuple(args,(
char *)
"O:Level1Quantizer_own_fields_get",&obj0)) SWIG_fail;
35533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
35534 if (!SWIG_IsOK(res1)) {
35535 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_own_fields_get" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
35538 result = (bool) ((arg1)->own_fields);
35539 resultobj = SWIG_From_bool(static_cast< bool >(result));
35546 SWIGINTERN PyObject *_wrap_Level1Quantizer_cp_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35547 PyObject *resultobj = 0;
35554 PyObject * obj0 = 0 ;
35555 PyObject * obj1 = 0 ;
35557 if (!PyArg_ParseTuple(args,(
char *)
"OO:Level1Quantizer_cp_set",&obj0,&obj1)) SWIG_fail;
35558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
35559 if (!SWIG_IsOK(res1)) {
35560 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_cp_set" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
35563 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
35564 if (!SWIG_IsOK(res2)) {
35565 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Level1Quantizer_cp_set" "', argument " "2"" of type '" "faiss::ClusteringParameters *""'");
35568 if (arg1) (arg1)->cp = *arg2;
35569 resultobj = SWIG_Py_Void();
35576 SWIGINTERN PyObject *_wrap_Level1Quantizer_cp_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35577 PyObject *resultobj = 0;
35581 PyObject * obj0 = 0 ;
35584 if (!PyArg_ParseTuple(args,(
char *)
"O:Level1Quantizer_cp_get",&obj0)) SWIG_fail;
35585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
35586 if (!SWIG_IsOK(res1)) {
35587 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_cp_get" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
35591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
35598 SWIGINTERN PyObject *_wrap_Level1Quantizer_clustering_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35599 PyObject *resultobj = 0;
35606 PyObject * obj0 = 0 ;
35607 PyObject * obj1 = 0 ;
35609 if (!PyArg_ParseTuple(args,(
char *)
"OO:Level1Quantizer_clustering_index_set",&obj0,&obj1)) SWIG_fail;
35610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
35611 if (!SWIG_IsOK(res1)) {
35612 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_clustering_index_set" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
35615 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
35616 if (!SWIG_IsOK(res2)) {
35617 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Level1Quantizer_clustering_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
35620 if (arg1) (arg1)->clustering_index = arg2;
35621 resultobj = SWIG_Py_Void();
35628 SWIGINTERN PyObject *_wrap_Level1Quantizer_clustering_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35629 PyObject *resultobj = 0;
35633 PyObject * obj0 = 0 ;
35636 if (!PyArg_ParseTuple(args,(
char *)
"O:Level1Quantizer_clustering_index_get",&obj0)) SWIG_fail;
35637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
35638 if (!SWIG_IsOK(res1)) {
35639 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_clustering_index_get" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
35643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
35650 SWIGINTERN PyObject *_wrap_Level1Quantizer_train_q1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35651 PyObject *resultobj = 0;
35654 float *arg3 = (
float *) 0 ;
35667 PyObject * obj0 = 0 ;
35668 PyObject * obj1 = 0 ;
35669 PyObject * obj2 = 0 ;
35670 PyObject * obj3 = 0 ;
35671 PyObject * obj4 = 0 ;
35673 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:Level1Quantizer_train_q1",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
35675 if (!SWIG_IsOK(res1)) {
35676 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_train_q1" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
35679 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35680 if (!SWIG_IsOK(ecode2)) {
35681 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Level1Quantizer_train_q1" "', argument " "2"" of type '" "size_t""'");
35683 arg2 =
static_cast< size_t >(val2);
35684 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
35685 if (!SWIG_IsOK(res3)) {
35686 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Level1Quantizer_train_q1" "', argument " "3"" of type '" "float const *""'");
35688 arg3 =
reinterpret_cast< float *
>(argp3);
35689 ecode4 = SWIG_AsVal_bool(obj3, &val4);
35690 if (!SWIG_IsOK(ecode4)) {
35691 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Level1Quantizer_train_q1" "', argument " "4"" of type '" "bool""'");
35693 arg4 =
static_cast< bool >(val4);
35694 ecode5 = SWIG_AsVal_int(obj4, &val5);
35695 if (!SWIG_IsOK(ecode5)) {
35696 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "Level1Quantizer_train_q1" "', argument " "5"" of type '" "faiss::MetricType""'");
35700 Py_BEGIN_ALLOW_THREADS
35702 (arg1)->train_q1(arg2,(
float const *)arg3,arg4,arg5);
35704 PyEval_RestoreThread(_save);
35705 PyErr_SetString(PyExc_RuntimeError, e.
what());
35708 Py_END_ALLOW_THREADS
35710 resultobj = SWIG_Py_Void();
35717 SWIGINTERN PyObject *_wrap_new_Level1Quantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35718 PyObject *resultobj = 0;
35725 PyObject * obj0 = 0 ;
35726 PyObject * obj1 = 0 ;
35729 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_Level1Quantizer",&obj0,&obj1)) SWIG_fail;
35730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
35731 if (!SWIG_IsOK(res1)) {
35732 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_Level1Quantizer" "', argument " "1"" of type '" "faiss::Index *""'");
35735 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35736 if (!SWIG_IsOK(ecode2)) {
35737 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_Level1Quantizer" "', argument " "2"" of type '" "size_t""'");
35739 arg2 =
static_cast< size_t >(val2);
35741 Py_BEGIN_ALLOW_THREADS
35745 PyEval_RestoreThread(_save);
35746 PyErr_SetString(PyExc_RuntimeError, e.
what());
35749 Py_END_ALLOW_THREADS
35751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Level1Quantizer, SWIG_POINTER_NEW | 0 );
35758 SWIGINTERN PyObject *_wrap_new_Level1Quantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35759 PyObject *resultobj = 0;
35762 if (!PyArg_ParseTuple(args,(
char *)
":new_Level1Quantizer")) SWIG_fail;
35764 Py_BEGIN_ALLOW_THREADS
35768 PyEval_RestoreThread(_save);
35769 PyErr_SetString(PyExc_RuntimeError, e.
what());
35772 Py_END_ALLOW_THREADS
35774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Level1Quantizer, SWIG_POINTER_NEW | 0 );
35781 SWIGINTERN PyObject *_wrap_new_Level1Quantizer(PyObject *
self, PyObject *args) {
35783 PyObject *argv[3] = {
35788 if (!PyTuple_Check(args)) SWIG_fail;
35789 argc = args ? PyObject_Length(args) : 0;
35790 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
35791 argv[ii] = PyTuple_GET_ITEM(args,ii);
35794 return _wrap_new_Level1Quantizer__SWIG_1(
self, args);
35799 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
35800 _v = SWIG_CheckState(res);
35803 int res = SWIG_AsVal_size_t(argv[1], NULL);
35804 _v = SWIG_CheckState(res);
35807 return _wrap_new_Level1Quantizer__SWIG_0(
self, args);
35813 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_Level1Quantizer'.\n"
35814 " Possible C/C++ prototypes are:\n"
35815 " faiss::Level1Quantizer::Level1Quantizer(faiss::Index *,size_t)\n"
35816 " faiss::Level1Quantizer::Level1Quantizer()\n");
35821 SWIGINTERN PyObject *_wrap_delete_Level1Quantizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35822 PyObject *resultobj = 0;
35826 PyObject * obj0 = 0 ;
35828 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Level1Quantizer",&obj0)) SWIG_fail;
35829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, SWIG_POINTER_DISOWN | 0 );
35830 if (!SWIG_IsOK(res1)) {
35831 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Level1Quantizer" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
35835 Py_BEGIN_ALLOW_THREADS
35839 PyEval_RestoreThread(_save);
35840 PyErr_SetString(PyExc_RuntimeError, e.
what());
35843 Py_END_ALLOW_THREADS
35845 resultobj = SWIG_Py_Void();
35852 SWIGINTERN PyObject *Level1Quantizer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35854 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
35855 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__Level1Quantizer, SWIG_NewClientData(obj));
35856 return SWIG_Py_Void();
35859 SWIGINTERN PyObject *_wrap_IVFSearchParameters_nprobe_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35860 PyObject *resultobj = 0;
35867 PyObject * obj0 = 0 ;
35868 PyObject * obj1 = 0 ;
35870 if (!PyArg_ParseTuple(args,(
char *)
"OO:IVFSearchParameters_nprobe_set",&obj0,&obj1)) SWIG_fail;
35871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
35872 if (!SWIG_IsOK(res1)) {
35873 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFSearchParameters_nprobe_set" "', argument " "1"" of type '" "faiss::IVFSearchParameters *""'");
35876 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35877 if (!SWIG_IsOK(ecode2)) {
35878 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IVFSearchParameters_nprobe_set" "', argument " "2"" of type '" "size_t""'");
35880 arg2 =
static_cast< size_t >(val2);
35881 if (arg1) (arg1)->nprobe = arg2;
35882 resultobj = SWIG_Py_Void();
35889 SWIGINTERN PyObject *_wrap_IVFSearchParameters_nprobe_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35890 PyObject *resultobj = 0;
35894 PyObject * obj0 = 0 ;
35897 if (!PyArg_ParseTuple(args,(
char *)
"O:IVFSearchParameters_nprobe_get",&obj0)) SWIG_fail;
35898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
35899 if (!SWIG_IsOK(res1)) {
35900 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFSearchParameters_nprobe_get" "', argument " "1"" of type '" "faiss::IVFSearchParameters *""'");
35903 result = (size_t) ((arg1)->nprobe);
35904 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35911 SWIGINTERN PyObject *_wrap_IVFSearchParameters_max_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35912 PyObject *resultobj = 0;
35919 PyObject * obj0 = 0 ;
35920 PyObject * obj1 = 0 ;
35922 if (!PyArg_ParseTuple(args,(
char *)
"OO:IVFSearchParameters_max_codes_set",&obj0,&obj1)) SWIG_fail;
35923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
35924 if (!SWIG_IsOK(res1)) {
35925 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFSearchParameters_max_codes_set" "', argument " "1"" of type '" "faiss::IVFSearchParameters *""'");
35928 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35929 if (!SWIG_IsOK(ecode2)) {
35930 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IVFSearchParameters_max_codes_set" "', argument " "2"" of type '" "size_t""'");
35932 arg2 =
static_cast< size_t >(val2);
35933 if (arg1) (arg1)->max_codes = arg2;
35934 resultobj = SWIG_Py_Void();
35941 SWIGINTERN PyObject *_wrap_IVFSearchParameters_max_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35942 PyObject *resultobj = 0;
35946 PyObject * obj0 = 0 ;
35949 if (!PyArg_ParseTuple(args,(
char *)
"O:IVFSearchParameters_max_codes_get",&obj0)) SWIG_fail;
35950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
35951 if (!SWIG_IsOK(res1)) {
35952 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFSearchParameters_max_codes_get" "', argument " "1"" of type '" "faiss::IVFSearchParameters *""'");
35955 result = (size_t) ((arg1)->max_codes);
35956 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35963 SWIGINTERN PyObject *_wrap_delete_IVFSearchParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35964 PyObject *resultobj = 0;
35968 PyObject * obj0 = 0 ;
35970 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IVFSearchParameters",&obj0)) SWIG_fail;
35971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFSearchParameters, SWIG_POINTER_DISOWN | 0 );
35972 if (!SWIG_IsOK(res1)) {
35973 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IVFSearchParameters" "', argument " "1"" of type '" "faiss::IVFSearchParameters *""'");
35977 Py_BEGIN_ALLOW_THREADS
35981 PyEval_RestoreThread(_save);
35982 PyErr_SetString(PyExc_RuntimeError, e.
what());
35985 Py_END_ALLOW_THREADS
35987 resultobj = SWIG_Py_Void();
35994 SWIGINTERN PyObject *_wrap_new_IVFSearchParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35995 PyObject *resultobj = 0;
35998 if (!PyArg_ParseTuple(args,(
char *)
":new_IVFSearchParameters")) SWIG_fail;
36000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IVFSearchParameters, SWIG_POINTER_NEW | 0 );
36007 SWIGINTERN PyObject *IVFSearchParameters_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36009 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
36010 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IVFSearchParameters, SWIG_NewClientData(obj));
36011 return SWIG_Py_Void();
36014 SWIGINTERN PyObject *_wrap_IndexIVF_invlists_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36015 PyObject *resultobj = 0;
36022 PyObject * obj0 = 0 ;
36023 PyObject * obj1 = 0 ;
36025 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_invlists_set",&obj0,&obj1)) SWIG_fail;
36026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36027 if (!SWIG_IsOK(res1)) {
36028 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_invlists_set" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36031 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, SWIG_POINTER_DISOWN | 0 );
36032 if (!SWIG_IsOK(res2)) {
36033 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_invlists_set" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
36036 if (arg1) (arg1)->invlists = arg2;
36037 resultobj = SWIG_Py_Void();
36044 SWIGINTERN PyObject *_wrap_IndexIVF_invlists_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36045 PyObject *resultobj = 0;
36049 PyObject * obj0 = 0 ;
36052 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_invlists_get",&obj0)) SWIG_fail;
36053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36054 if (!SWIG_IsOK(res1)) {
36055 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_invlists_get" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
36066 SWIGINTERN PyObject *_wrap_IndexIVF_own_invlists_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36067 PyObject *resultobj = 0;
36074 PyObject * obj0 = 0 ;
36075 PyObject * obj1 = 0 ;
36077 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_own_invlists_set",&obj0,&obj1)) SWIG_fail;
36078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36079 if (!SWIG_IsOK(res1)) {
36080 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_own_invlists_set" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36083 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36084 if (!SWIG_IsOK(ecode2)) {
36085 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_own_invlists_set" "', argument " "2"" of type '" "bool""'");
36087 arg2 =
static_cast< bool >(val2);
36088 if (arg1) (arg1)->own_invlists = arg2;
36089 resultobj = SWIG_Py_Void();
36096 SWIGINTERN PyObject *_wrap_IndexIVF_own_invlists_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36097 PyObject *resultobj = 0;
36101 PyObject * obj0 = 0 ;
36104 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_own_invlists_get",&obj0)) SWIG_fail;
36105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36106 if (!SWIG_IsOK(res1)) {
36107 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_own_invlists_get" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36110 result = (bool) ((arg1)->own_invlists);
36111 resultobj = SWIG_From_bool(static_cast< bool >(result));
36118 SWIGINTERN PyObject *_wrap_IndexIVF_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36119 PyObject *resultobj = 0;
36126 PyObject * obj0 = 0 ;
36127 PyObject * obj1 = 0 ;
36129 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_code_size_set",&obj0,&obj1)) SWIG_fail;
36130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36131 if (!SWIG_IsOK(res1)) {
36132 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_code_size_set" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36135 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
36136 if (!SWIG_IsOK(ecode2)) {
36137 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_code_size_set" "', argument " "2"" of type '" "size_t""'");
36139 arg2 =
static_cast< size_t >(val2);
36140 if (arg1) (arg1)->code_size = arg2;
36141 resultobj = SWIG_Py_Void();
36148 SWIGINTERN PyObject *_wrap_IndexIVF_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36149 PyObject *resultobj = 0;
36153 PyObject * obj0 = 0 ;
36156 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_code_size_get",&obj0)) SWIG_fail;
36157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36158 if (!SWIG_IsOK(res1)) {
36159 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_code_size_get" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36162 result = (size_t) ((arg1)->code_size);
36163 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
36170 SWIGINTERN PyObject *_wrap_IndexIVF_nprobe_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36171 PyObject *resultobj = 0;
36178 PyObject * obj0 = 0 ;
36179 PyObject * obj1 = 0 ;
36181 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_nprobe_set",&obj0,&obj1)) SWIG_fail;
36182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36183 if (!SWIG_IsOK(res1)) {
36184 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_nprobe_set" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36187 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
36188 if (!SWIG_IsOK(ecode2)) {
36189 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_nprobe_set" "', argument " "2"" of type '" "size_t""'");
36191 arg2 =
static_cast< size_t >(val2);
36192 if (arg1) (arg1)->nprobe = arg2;
36193 resultobj = SWIG_Py_Void();
36200 SWIGINTERN PyObject *_wrap_IndexIVF_nprobe_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36201 PyObject *resultobj = 0;
36205 PyObject * obj0 = 0 ;
36208 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_nprobe_get",&obj0)) SWIG_fail;
36209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36210 if (!SWIG_IsOK(res1)) {
36211 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_nprobe_get" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36214 result = (size_t) ((arg1)->nprobe);
36215 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
36222 SWIGINTERN PyObject *_wrap_IndexIVF_max_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36223 PyObject *resultobj = 0;
36230 PyObject * obj0 = 0 ;
36231 PyObject * obj1 = 0 ;
36233 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_max_codes_set",&obj0,&obj1)) SWIG_fail;
36234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36235 if (!SWIG_IsOK(res1)) {
36236 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_max_codes_set" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36239 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
36240 if (!SWIG_IsOK(ecode2)) {
36241 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_max_codes_set" "', argument " "2"" of type '" "size_t""'");
36243 arg2 =
static_cast< size_t >(val2);
36244 if (arg1) (arg1)->max_codes = arg2;
36245 resultobj = SWIG_Py_Void();
36252 SWIGINTERN PyObject *_wrap_IndexIVF_max_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36253 PyObject *resultobj = 0;
36257 PyObject * obj0 = 0 ;
36260 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_max_codes_get",&obj0)) SWIG_fail;
36261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36262 if (!SWIG_IsOK(res1)) {
36263 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_max_codes_get" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36266 result = (size_t) ((arg1)->max_codes);
36267 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
36274 SWIGINTERN PyObject *_wrap_IndexIVF_maintain_direct_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36275 PyObject *resultobj = 0;
36282 PyObject * obj0 = 0 ;
36283 PyObject * obj1 = 0 ;
36285 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_maintain_direct_map_set",&obj0,&obj1)) SWIG_fail;
36286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36287 if (!SWIG_IsOK(res1)) {
36288 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_maintain_direct_map_set" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36291 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36292 if (!SWIG_IsOK(ecode2)) {
36293 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_maintain_direct_map_set" "', argument " "2"" of type '" "bool""'");
36295 arg2 =
static_cast< bool >(val2);
36296 if (arg1) (arg1)->maintain_direct_map = arg2;
36297 resultobj = SWIG_Py_Void();
36304 SWIGINTERN PyObject *_wrap_IndexIVF_maintain_direct_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36305 PyObject *resultobj = 0;
36309 PyObject * obj0 = 0 ;
36312 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_maintain_direct_map_get",&obj0)) SWIG_fail;
36313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36314 if (!SWIG_IsOK(res1)) {
36315 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_maintain_direct_map_get" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36318 result = (bool) ((arg1)->maintain_direct_map);
36319 resultobj = SWIG_From_bool(static_cast< bool >(result));
36326 SWIGINTERN PyObject *_wrap_IndexIVF_direct_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36327 PyObject *resultobj = 0;
36329 std::vector< long > *arg2 = (std::vector< long > *) 0 ;
36334 PyObject * obj0 = 0 ;
36335 PyObject * obj1 = 0 ;
36337 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_direct_map_set",&obj0,&obj1)) SWIG_fail;
36338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36339 if (!SWIG_IsOK(res1)) {
36340 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_direct_map_set" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36343 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
36344 if (!SWIG_IsOK(res2)) {
36345 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_direct_map_set" "', argument " "2"" of type '" "std::vector< long > *""'");
36347 arg2 =
reinterpret_cast< std::vector< long > *
>(argp2);
36348 if (arg1) (arg1)->direct_map = *arg2;
36349 resultobj = SWIG_Py_Void();
36356 SWIGINTERN PyObject *_wrap_IndexIVF_direct_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36357 PyObject *resultobj = 0;
36361 PyObject * obj0 = 0 ;
36362 std::vector< long > *result = 0 ;
36364 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_direct_map_get",&obj0)) SWIG_fail;
36365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36366 if (!SWIG_IsOK(res1)) {
36367 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_direct_map_get" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36370 result = (std::vector< long > *)& ((arg1)->direct_map);
36371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
36378 SWIGINTERN PyObject *_wrap_IndexIVF_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36379 PyObject *resultobj = 0;
36383 PyObject * obj0 = 0 ;
36385 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_reset",&obj0)) SWIG_fail;
36386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36387 if (!SWIG_IsOK(res1)) {
36388 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_reset" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36392 Py_BEGIN_ALLOW_THREADS
36396 PyEval_RestoreThread(_save);
36397 PyErr_SetString(PyExc_RuntimeError, e.
what());
36400 Py_END_ALLOW_THREADS
36402 resultobj = SWIG_Py_Void();
36409 SWIGINTERN PyObject *_wrap_IndexIVF_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36410 PyObject *resultobj = 0;
36413 float *arg3 = (
float *) 0 ;
36420 PyObject * obj0 = 0 ;
36421 PyObject * obj1 = 0 ;
36422 PyObject * obj2 = 0 ;
36424 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVF_train",&obj0,&obj1,&obj2)) SWIG_fail;
36425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36426 if (!SWIG_IsOK(res1)) {
36427 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_train" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36430 ecode2 = SWIG_AsVal_long(obj1, &val2);
36431 if (!SWIG_IsOK(ecode2)) {
36432 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
36435 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
36436 if (!SWIG_IsOK(res3)) {
36437 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_train" "', argument " "3"" of type '" "float const *""'");
36439 arg3 =
reinterpret_cast< float *
>(argp3);
36441 Py_BEGIN_ALLOW_THREADS
36443 (arg1)->train(arg2,(
float const *)arg3);
36445 PyEval_RestoreThread(_save);
36446 PyErr_SetString(PyExc_RuntimeError, e.
what());
36449 Py_END_ALLOW_THREADS
36451 resultobj = SWIG_Py_Void();
36458 SWIGINTERN PyObject *_wrap_IndexIVF_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36459 PyObject *resultobj = 0;
36462 float *arg3 = (
float *) 0 ;
36469 PyObject * obj0 = 0 ;
36470 PyObject * obj1 = 0 ;
36471 PyObject * obj2 = 0 ;
36473 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVF_add",&obj0,&obj1,&obj2)) SWIG_fail;
36474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36475 if (!SWIG_IsOK(res1)) {
36476 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_add" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36479 ecode2 = SWIG_AsVal_long(obj1, &val2);
36480 if (!SWIG_IsOK(ecode2)) {
36481 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
36484 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
36485 if (!SWIG_IsOK(res3)) {
36486 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_add" "', argument " "3"" of type '" "float const *""'");
36488 arg3 =
reinterpret_cast< float *
>(argp3);
36490 Py_BEGIN_ALLOW_THREADS
36492 (arg1)->add(arg2,(
float const *)arg3);
36494 PyEval_RestoreThread(_save);
36495 PyErr_SetString(PyExc_RuntimeError, e.
what());
36498 Py_END_ALLOW_THREADS
36500 resultobj = SWIG_Py_Void();
36507 SWIGINTERN PyObject *_wrap_IndexIVF_encode_vectors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36508 PyObject *resultobj = 0;
36511 float *arg3 = (
float *) 0 ;
36513 uint8_t *arg5 = (uint8_t *) 0 ;
36524 PyObject * obj0 = 0 ;
36525 PyObject * obj1 = 0 ;
36526 PyObject * obj2 = 0 ;
36527 PyObject * obj3 = 0 ;
36528 PyObject * obj4 = 0 ;
36530 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVF_encode_vectors",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36532 if (!SWIG_IsOK(res1)) {
36533 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_encode_vectors" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
36536 ecode2 = SWIG_AsVal_long(obj1, &val2);
36537 if (!SWIG_IsOK(ecode2)) {
36538 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_encode_vectors" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
36541 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
36542 if (!SWIG_IsOK(res3)) {
36543 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_encode_vectors" "', argument " "3"" of type '" "float const *""'");
36545 arg3 =
reinterpret_cast< float *
>(argp3);
36546 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
36547 if (!SWIG_IsOK(res4)) {
36548 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVF_encode_vectors" "', argument " "4"" of type '" "faiss::Index::idx_t const *""'");
36551 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
36552 if (!SWIG_IsOK(res5)) {
36553 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVF_encode_vectors" "', argument " "5"" of type '" "uint8_t *""'");
36555 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
36557 Py_BEGIN_ALLOW_THREADS
36561 PyEval_RestoreThread(_save);
36562 PyErr_SetString(PyExc_RuntimeError, e.
what());
36565 Py_END_ALLOW_THREADS
36567 resultobj = SWIG_Py_Void();
36574 SWIGINTERN PyObject *_wrap_IndexIVF_train_residual(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36575 PyObject *resultobj = 0;
36578 float *arg3 = (
float *) 0 ;
36585 PyObject * obj0 = 0 ;
36586 PyObject * obj1 = 0 ;
36587 PyObject * obj2 = 0 ;
36589 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVF_train_residual",&obj0,&obj1,&obj2)) SWIG_fail;
36590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36591 if (!SWIG_IsOK(res1)) {
36592 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_train_residual" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
36595 ecode2 = SWIG_AsVal_long(obj1, &val2);
36596 if (!SWIG_IsOK(ecode2)) {
36597 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_train_residual" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
36600 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
36601 if (!SWIG_IsOK(res3)) {
36602 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_train_residual" "', argument " "3"" of type '" "float const *""'");
36604 arg3 =
reinterpret_cast< float *
>(argp3);
36606 Py_BEGIN_ALLOW_THREADS
36608 (arg1)->train_residual(arg2,(
float const *)arg3);
36610 PyEval_RestoreThread(_save);
36611 PyErr_SetString(PyExc_RuntimeError, e.
what());
36614 Py_END_ALLOW_THREADS
36616 resultobj = SWIG_Py_Void();
36623 SWIGINTERN PyObject *_wrap_IndexIVF_search_preassigned__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36624 PyObject *resultobj = 0;
36627 float *arg3 = (
float *) 0 ;
36630 float *arg6 = (
float *) 0 ;
36631 float *arg7 = (
float *) 0 ;
36655 PyObject * obj0 = 0 ;
36656 PyObject * obj1 = 0 ;
36657 PyObject * obj2 = 0 ;
36658 PyObject * obj3 = 0 ;
36659 PyObject * obj4 = 0 ;
36660 PyObject * obj5 = 0 ;
36661 PyObject * obj6 = 0 ;
36662 PyObject * obj7 = 0 ;
36663 PyObject * obj8 = 0 ;
36664 PyObject * obj9 = 0 ;
36666 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOOO:IndexIVF_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
36667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36668 if (!SWIG_IsOK(res1)) {
36669 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_search_preassigned" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
36672 ecode2 = SWIG_AsVal_long(obj1, &val2);
36673 if (!SWIG_IsOK(ecode2)) {
36674 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_search_preassigned" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
36677 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
36678 if (!SWIG_IsOK(res3)) {
36679 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_search_preassigned" "', argument " "3"" of type '" "float const *""'");
36681 arg3 =
reinterpret_cast< float *
>(argp3);
36682 ecode4 = SWIG_AsVal_long(obj3, &val4);
36683 if (!SWIG_IsOK(ecode4)) {
36684 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVF_search_preassigned" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
36687 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
36688 if (!SWIG_IsOK(res5)) {
36689 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVF_search_preassigned" "', argument " "5"" of type '" "faiss::Index::idx_t const *""'");
36692 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
36693 if (!SWIG_IsOK(res6)) {
36694 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVF_search_preassigned" "', argument " "6"" of type '" "float const *""'");
36696 arg6 =
reinterpret_cast< float *
>(argp6);
36697 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
36698 if (!SWIG_IsOK(res7)) {
36699 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexIVF_search_preassigned" "', argument " "7"" of type '" "float *""'");
36701 arg7 =
reinterpret_cast< float *
>(argp7);
36702 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
36703 if (!SWIG_IsOK(res8)) {
36704 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexIVF_search_preassigned" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
36707 ecode9 = SWIG_AsVal_bool(obj8, &val9);
36708 if (!SWIG_IsOK(ecode9)) {
36709 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexIVF_search_preassigned" "', argument " "9"" of type '" "bool""'");
36711 arg9 =
static_cast< bool >(val9);
36712 res10 = SWIG_ConvertPtr(obj9, &argp10,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
36713 if (!SWIG_IsOK(res10)) {
36714 SWIG_exception_fail(SWIG_ArgError(res10),
"in method '" "IndexIVF_search_preassigned" "', argument " "10"" of type '" "faiss::IVFSearchParameters const *""'");
36718 Py_BEGIN_ALLOW_THREADS
36722 PyEval_RestoreThread(_save);
36723 PyErr_SetString(PyExc_RuntimeError, e.
what());
36726 Py_END_ALLOW_THREADS
36728 resultobj = SWIG_Py_Void();
36735 SWIGINTERN PyObject *_wrap_IndexIVF_search_preassigned__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36736 PyObject *resultobj = 0;
36739 float *arg3 = (
float *) 0 ;
36742 float *arg6 = (
float *) 0 ;
36743 float *arg7 = (
float *) 0 ;
36764 PyObject * obj0 = 0 ;
36765 PyObject * obj1 = 0 ;
36766 PyObject * obj2 = 0 ;
36767 PyObject * obj3 = 0 ;
36768 PyObject * obj4 = 0 ;
36769 PyObject * obj5 = 0 ;
36770 PyObject * obj6 = 0 ;
36771 PyObject * obj7 = 0 ;
36772 PyObject * obj8 = 0 ;
36774 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOO:IndexIVF_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36776 if (!SWIG_IsOK(res1)) {
36777 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_search_preassigned" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
36780 ecode2 = SWIG_AsVal_long(obj1, &val2);
36781 if (!SWIG_IsOK(ecode2)) {
36782 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_search_preassigned" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
36785 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
36786 if (!SWIG_IsOK(res3)) {
36787 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_search_preassigned" "', argument " "3"" of type '" "float const *""'");
36789 arg3 =
reinterpret_cast< float *
>(argp3);
36790 ecode4 = SWIG_AsVal_long(obj3, &val4);
36791 if (!SWIG_IsOK(ecode4)) {
36792 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVF_search_preassigned" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
36795 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
36796 if (!SWIG_IsOK(res5)) {
36797 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVF_search_preassigned" "', argument " "5"" of type '" "faiss::Index::idx_t const *""'");
36800 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
36801 if (!SWIG_IsOK(res6)) {
36802 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVF_search_preassigned" "', argument " "6"" of type '" "float const *""'");
36804 arg6 =
reinterpret_cast< float *
>(argp6);
36805 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
36806 if (!SWIG_IsOK(res7)) {
36807 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexIVF_search_preassigned" "', argument " "7"" of type '" "float *""'");
36809 arg7 =
reinterpret_cast< float *
>(argp7);
36810 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
36811 if (!SWIG_IsOK(res8)) {
36812 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexIVF_search_preassigned" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
36815 ecode9 = SWIG_AsVal_bool(obj8, &val9);
36816 if (!SWIG_IsOK(ecode9)) {
36817 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexIVF_search_preassigned" "', argument " "9"" of type '" "bool""'");
36819 arg9 =
static_cast< bool >(val9);
36821 Py_BEGIN_ALLOW_THREADS
36825 PyEval_RestoreThread(_save);
36826 PyErr_SetString(PyExc_RuntimeError, e.
what());
36829 Py_END_ALLOW_THREADS
36831 resultobj = SWIG_Py_Void();
36838 SWIGINTERN PyObject *_wrap_IndexIVF_search_preassigned(PyObject *
self, PyObject *args) {
36840 PyObject *argv[11] = {
36845 if (!PyTuple_Check(args)) SWIG_fail;
36846 argc = args ? PyObject_Length(args) : 0;
36847 for (ii = 0; (ii < 10) && (ii < argc); ii++) {
36848 argv[ii] = PyTuple_GET_ITEM(args,ii);
36853 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
36854 _v = SWIG_CheckState(res);
36857 int res = SWIG_AsVal_long(argv[1], NULL);
36858 _v = SWIG_CheckState(res);
36862 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
36863 _v = SWIG_CheckState(res);
36866 int res = SWIG_AsVal_long(argv[3], NULL);
36867 _v = SWIG_CheckState(res);
36871 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
36872 _v = SWIG_CheckState(res);
36875 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
36876 _v = SWIG_CheckState(res);
36879 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
36880 _v = SWIG_CheckState(res);
36883 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
36884 _v = SWIG_CheckState(res);
36887 int res = SWIG_AsVal_bool(argv[8], NULL);
36888 _v = SWIG_CheckState(res);
36891 return _wrap_IndexIVF_search_preassigned__SWIG_1(
self, args);
36905 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
36906 _v = SWIG_CheckState(res);
36909 int res = SWIG_AsVal_long(argv[1], NULL);
36910 _v = SWIG_CheckState(res);
36914 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
36915 _v = SWIG_CheckState(res);
36918 int res = SWIG_AsVal_long(argv[3], NULL);
36919 _v = SWIG_CheckState(res);
36923 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
36924 _v = SWIG_CheckState(res);
36927 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
36928 _v = SWIG_CheckState(res);
36931 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
36932 _v = SWIG_CheckState(res);
36935 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
36936 _v = SWIG_CheckState(res);
36939 int res = SWIG_AsVal_bool(argv[8], NULL);
36940 _v = SWIG_CheckState(res);
36944 int res = SWIG_ConvertPtr(argv[9], &vptr, SWIGTYPE_p_faiss__IVFSearchParameters, 0);
36945 _v = SWIG_CheckState(res);
36947 return _wrap_IndexIVF_search_preassigned__SWIG_0(
self, args);
36961 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVF_search_preassigned'.\n"
36962 " Possible C/C++ prototypes are:\n"
36963 " faiss::IndexIVF::search_preassigned(faiss::Index::idx_t,float const *,faiss::Index::idx_t,faiss::Index::idx_t const *,float const *,float *,faiss::Index::idx_t *,bool,faiss::IVFSearchParameters const *) const\n"
36964 " faiss::IndexIVF::search_preassigned(faiss::Index::idx_t,float const *,faiss::Index::idx_t,faiss::Index::idx_t const *,float const *,float *,faiss::Index::idx_t *,bool) const\n");
36969 SWIGINTERN PyObject *_wrap_IndexIVF_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36970 PyObject *resultobj = 0;
36973 float *arg3 = (
float *) 0 ;
36975 float *arg5 = (
float *) 0 ;
36989 PyObject * obj0 = 0 ;
36990 PyObject * obj1 = 0 ;
36991 PyObject * obj2 = 0 ;
36992 PyObject * obj3 = 0 ;
36993 PyObject * obj4 = 0 ;
36994 PyObject * obj5 = 0 ;
36996 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexIVF_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
36998 if (!SWIG_IsOK(res1)) {
36999 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_search" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
37002 ecode2 = SWIG_AsVal_long(obj1, &val2);
37003 if (!SWIG_IsOK(ecode2)) {
37004 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
37007 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
37008 if (!SWIG_IsOK(res3)) {
37009 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_search" "', argument " "3"" of type '" "float const *""'");
37011 arg3 =
reinterpret_cast< float *
>(argp3);
37012 ecode4 = SWIG_AsVal_long(obj3, &val4);
37013 if (!SWIG_IsOK(ecode4)) {
37014 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVF_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
37017 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
37018 if (!SWIG_IsOK(res5)) {
37019 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVF_search" "', argument " "5"" of type '" "float *""'");
37021 arg5 =
reinterpret_cast< float *
>(argp5);
37022 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
37023 if (!SWIG_IsOK(res6)) {
37024 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVF_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
37028 Py_BEGIN_ALLOW_THREADS
37030 ((
faiss::IndexIVF const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
37032 PyEval_RestoreThread(_save);
37033 PyErr_SetString(PyExc_RuntimeError, e.
what());
37036 Py_END_ALLOW_THREADS
37038 resultobj = SWIG_Py_Void();
37045 SWIGINTERN PyObject *_wrap_IndexIVF_get_InvertedListScanner__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37046 PyObject *resultobj = 0;
37053 PyObject * obj0 = 0 ;
37054 PyObject * obj1 = 0 ;
37057 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_get_InvertedListScanner",&obj0,&obj1)) SWIG_fail;
37058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37059 if (!SWIG_IsOK(res1)) {
37060 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_get_InvertedListScanner" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
37063 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37064 if (!SWIG_IsOK(ecode2)) {
37065 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_get_InvertedListScanner" "', argument " "2"" of type '" "bool""'");
37067 arg2 =
static_cast< bool >(val2);
37069 Py_BEGIN_ALLOW_THREADS
37073 PyEval_RestoreThread(_save);
37074 PyErr_SetString(PyExc_RuntimeError, e.
what());
37077 Py_END_ALLOW_THREADS
37079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedListScanner, 0 | 0 );
37086 SWIGINTERN PyObject *_wrap_IndexIVF_get_InvertedListScanner__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37087 PyObject *resultobj = 0;
37091 PyObject * obj0 = 0 ;
37094 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_get_InvertedListScanner",&obj0)) SWIG_fail;
37095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37096 if (!SWIG_IsOK(res1)) {
37097 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_get_InvertedListScanner" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
37101 Py_BEGIN_ALLOW_THREADS
37105 PyEval_RestoreThread(_save);
37106 PyErr_SetString(PyExc_RuntimeError, e.
what());
37109 Py_END_ALLOW_THREADS
37111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedListScanner, 0 | 0 );
37118 SWIGINTERN PyObject *_wrap_IndexIVF_get_InvertedListScanner(PyObject *
self, PyObject *args) {
37120 PyObject *argv[3] = {
37125 if (!PyTuple_Check(args)) SWIG_fail;
37126 argc = args ? PyObject_Length(args) : 0;
37127 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37128 argv[ii] = PyTuple_GET_ITEM(args,ii);
37133 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
37134 _v = SWIG_CheckState(res);
37136 return _wrap_IndexIVF_get_InvertedListScanner__SWIG_1(
self, args);
37142 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
37143 _v = SWIG_CheckState(res);
37146 int res = SWIG_AsVal_bool(argv[1], NULL);
37147 _v = SWIG_CheckState(res);
37150 return _wrap_IndexIVF_get_InvertedListScanner__SWIG_0(
self, args);
37156 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVF_get_InvertedListScanner'.\n"
37157 " Possible C/C++ prototypes are:\n"
37158 " faiss::IndexIVF::get_InvertedListScanner(bool) const\n"
37159 " faiss::IndexIVF::get_InvertedListScanner() const\n");
37164 SWIGINTERN PyObject *_wrap_IndexIVF_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37165 PyObject *resultobj = 0;
37168 float *arg3 = (
float *) 0 ;
37175 PyObject * obj0 = 0 ;
37176 PyObject * obj1 = 0 ;
37177 PyObject * obj2 = 0 ;
37179 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVF_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
37180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37181 if (!SWIG_IsOK(res1)) {
37182 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_reconstruct" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
37185 ecode2 = SWIG_AsVal_long(obj1, &val2);
37186 if (!SWIG_IsOK(ecode2)) {
37187 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
37190 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
37191 if (!SWIG_IsOK(res3)) {
37192 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_reconstruct" "', argument " "3"" of type '" "float *""'");
37194 arg3 =
reinterpret_cast< float *
>(argp3);
37196 Py_BEGIN_ALLOW_THREADS
37200 PyEval_RestoreThread(_save);
37201 PyErr_SetString(PyExc_RuntimeError, e.
what());
37204 Py_END_ALLOW_THREADS
37206 resultobj = SWIG_Py_Void();
37213 SWIGINTERN PyObject *_wrap_IndexIVF_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37214 PyObject *resultobj = 0;
37218 float *arg4 = (
float *) 0 ;
37227 PyObject * obj0 = 0 ;
37228 PyObject * obj1 = 0 ;
37229 PyObject * obj2 = 0 ;
37230 PyObject * obj3 = 0 ;
37232 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVF_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37234 if (!SWIG_IsOK(res1)) {
37235 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_reconstruct_n" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
37238 ecode2 = SWIG_AsVal_long(obj1, &val2);
37239 if (!SWIG_IsOK(ecode2)) {
37240 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_reconstruct_n" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
37243 ecode3 = SWIG_AsVal_long(obj2, &val3);
37244 if (!SWIG_IsOK(ecode3)) {
37245 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVF_reconstruct_n" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
37248 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
37249 if (!SWIG_IsOK(res4)) {
37250 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVF_reconstruct_n" "', argument " "4"" of type '" "float *""'");
37252 arg4 =
reinterpret_cast< float *
>(argp4);
37254 Py_BEGIN_ALLOW_THREADS
37258 PyEval_RestoreThread(_save);
37259 PyErr_SetString(PyExc_RuntimeError, e.
what());
37262 Py_END_ALLOW_THREADS
37264 resultobj = SWIG_Py_Void();
37271 SWIGINTERN PyObject *_wrap_IndexIVF_search_and_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37272 PyObject *resultobj = 0;
37275 float *arg3 = (
float *) 0 ;
37277 float *arg5 = (
float *) 0 ;
37279 float *arg7 = (
float *) 0 ;
37294 PyObject * obj0 = 0 ;
37295 PyObject * obj1 = 0 ;
37296 PyObject * obj2 = 0 ;
37297 PyObject * obj3 = 0 ;
37298 PyObject * obj4 = 0 ;
37299 PyObject * obj5 = 0 ;
37300 PyObject * obj6 = 0 ;
37302 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:IndexIVF_search_and_reconstruct",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37304 if (!SWIG_IsOK(res1)) {
37305 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_search_and_reconstruct" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
37308 ecode2 = SWIG_AsVal_long(obj1, &val2);
37309 if (!SWIG_IsOK(ecode2)) {
37310 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_search_and_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
37313 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
37314 if (!SWIG_IsOK(res3)) {
37315 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_search_and_reconstruct" "', argument " "3"" of type '" "float const *""'");
37317 arg3 =
reinterpret_cast< float *
>(argp3);
37318 ecode4 = SWIG_AsVal_long(obj3, &val4);
37319 if (!SWIG_IsOK(ecode4)) {
37320 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVF_search_and_reconstruct" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
37323 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
37324 if (!SWIG_IsOK(res5)) {
37325 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVF_search_and_reconstruct" "', argument " "5"" of type '" "float *""'");
37327 arg5 =
reinterpret_cast< float *
>(argp5);
37328 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
37329 if (!SWIG_IsOK(res6)) {
37330 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVF_search_and_reconstruct" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
37333 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
37334 if (!SWIG_IsOK(res7)) {
37335 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexIVF_search_and_reconstruct" "', argument " "7"" of type '" "float *""'");
37337 arg7 =
reinterpret_cast< float *
>(argp7);
37339 Py_BEGIN_ALLOW_THREADS
37341 ((
faiss::IndexIVF const *)arg1)->search_and_reconstruct(arg2,(
float const *)arg3,arg4,arg5,arg6,arg7);
37343 PyEval_RestoreThread(_save);
37344 PyErr_SetString(PyExc_RuntimeError, e.
what());
37347 Py_END_ALLOW_THREADS
37349 resultobj = SWIG_Py_Void();
37356 SWIGINTERN PyObject *_wrap_IndexIVF_reconstruct_from_offset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37357 PyObject *resultobj = 0;
37361 float *arg4 = (
float *) 0 ;
37370 PyObject * obj0 = 0 ;
37371 PyObject * obj1 = 0 ;
37372 PyObject * obj2 = 0 ;
37373 PyObject * obj3 = 0 ;
37375 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVF_reconstruct_from_offset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37377 if (!SWIG_IsOK(res1)) {
37378 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_reconstruct_from_offset" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
37381 ecode2 = SWIG_AsVal_long(obj1, &val2);
37382 if (!SWIG_IsOK(ecode2)) {
37383 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_reconstruct_from_offset" "', argument " "2"" of type '" "long""'");
37385 arg2 =
static_cast< long >(val2);
37386 ecode3 = SWIG_AsVal_long(obj2, &val3);
37387 if (!SWIG_IsOK(ecode3)) {
37388 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVF_reconstruct_from_offset" "', argument " "3"" of type '" "long""'");
37390 arg3 =
static_cast< long >(val3);
37391 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
37392 if (!SWIG_IsOK(res4)) {
37393 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVF_reconstruct_from_offset" "', argument " "4"" of type '" "float *""'");
37395 arg4 =
reinterpret_cast< float *
>(argp4);
37397 Py_BEGIN_ALLOW_THREADS
37399 ((
faiss::IndexIVF const *)arg1)->reconstruct_from_offset(arg2,arg3,arg4);
37401 PyEval_RestoreThread(_save);
37402 PyErr_SetString(PyExc_RuntimeError, e.
what());
37405 Py_END_ALLOW_THREADS
37407 resultobj = SWIG_Py_Void();
37414 SWIGINTERN PyObject *_wrap_IndexIVF_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37415 PyObject *resultobj = 0;
37422 PyObject * obj0 = 0 ;
37423 PyObject * obj1 = 0 ;
37426 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_remove_ids",&obj0,&obj1)) SWIG_fail;
37427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37428 if (!SWIG_IsOK(res1)) {
37429 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_remove_ids" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37432 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
37433 if (!SWIG_IsOK(res2)) {
37434 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
37437 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVF_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
37441 Py_BEGIN_ALLOW_THREADS
37445 PyEval_RestoreThread(_save);
37446 PyErr_SetString(PyExc_RuntimeError, e.
what());
37449 Py_END_ALLOW_THREADS
37451 resultobj = SWIG_From_long(static_cast< long >(result));
37458 SWIGINTERN PyObject *_wrap_IndexIVF_check_compatible_for_merge(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37459 PyObject *resultobj = 0;
37466 PyObject * obj0 = 0 ;
37467 PyObject * obj1 = 0 ;
37469 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_check_compatible_for_merge",&obj0,&obj1)) SWIG_fail;
37470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37471 if (!SWIG_IsOK(res1)) {
37472 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_check_compatible_for_merge" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
37475 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IndexIVF, 0 | 0);
37476 if (!SWIG_IsOK(res2)) {
37477 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_check_compatible_for_merge" "', argument " "2"" of type '" "faiss::IndexIVF const &""'");
37480 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVF_check_compatible_for_merge" "', argument " "2"" of type '" "faiss::IndexIVF const &""'");
37484 Py_BEGIN_ALLOW_THREADS
37488 PyEval_RestoreThread(_save);
37489 PyErr_SetString(PyExc_RuntimeError, e.
what());
37492 Py_END_ALLOW_THREADS
37494 resultobj = SWIG_Py_Void();
37501 SWIGINTERN PyObject *_wrap_IndexIVF_merge_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37502 PyObject *resultobj = 0;
37512 PyObject * obj0 = 0 ;
37513 PyObject * obj1 = 0 ;
37514 PyObject * obj2 = 0 ;
37516 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVF_merge_from",&obj0,&obj1,&obj2)) SWIG_fail;
37517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37518 if (!SWIG_IsOK(res1)) {
37519 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_merge_from" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37522 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IndexIVF, 0 );
37523 if (!SWIG_IsOK(res2)) {
37524 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_merge_from" "', argument " "2"" of type '" "faiss::IndexIVF &""'");
37527 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVF_merge_from" "', argument " "2"" of type '" "faiss::IndexIVF &""'");
37530 ecode3 = SWIG_AsVal_long(obj2, &val3);
37531 if (!SWIG_IsOK(ecode3)) {
37532 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVF_merge_from" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
37536 Py_BEGIN_ALLOW_THREADS
37538 (arg1)->merge_from(*arg2,arg3);
37540 PyEval_RestoreThread(_save);
37541 PyErr_SetString(PyExc_RuntimeError, e.
what());
37544 Py_END_ALLOW_THREADS
37546 resultobj = SWIG_Py_Void();
37553 SWIGINTERN PyObject *_wrap_IndexIVF_copy_subset_to(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37554 PyObject *resultobj = 0;
37570 PyObject * obj0 = 0 ;
37571 PyObject * obj1 = 0 ;
37572 PyObject * obj2 = 0 ;
37573 PyObject * obj3 = 0 ;
37574 PyObject * obj4 = 0 ;
37576 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVF_copy_subset_to",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37578 if (!SWIG_IsOK(res1)) {
37579 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_copy_subset_to" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
37582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IndexIVF, 0 );
37583 if (!SWIG_IsOK(res2)) {
37584 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_copy_subset_to" "', argument " "2"" of type '" "faiss::IndexIVF &""'");
37587 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVF_copy_subset_to" "', argument " "2"" of type '" "faiss::IndexIVF &""'");
37590 ecode3 = SWIG_AsVal_int(obj2, &val3);
37591 if (!SWIG_IsOK(ecode3)) {
37592 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVF_copy_subset_to" "', argument " "3"" of type '" "int""'");
37594 arg3 =
static_cast< int >(val3);
37595 ecode4 = SWIG_AsVal_long(obj3, &val4);
37596 if (!SWIG_IsOK(ecode4)) {
37597 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVF_copy_subset_to" "', argument " "4"" of type '" "long""'");
37599 arg4 =
static_cast< long >(val4);
37600 ecode5 = SWIG_AsVal_long(obj4, &val5);
37601 if (!SWIG_IsOK(ecode5)) {
37602 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "IndexIVF_copy_subset_to" "', argument " "5"" of type '" "long""'");
37604 arg5 =
static_cast< long >(val5);
37606 Py_BEGIN_ALLOW_THREADS
37608 ((
faiss::IndexIVF const *)arg1)->copy_subset_to(*arg2,arg3,arg4,arg5);
37610 PyEval_RestoreThread(_save);
37611 PyErr_SetString(PyExc_RuntimeError, e.
what());
37614 Py_END_ALLOW_THREADS
37616 resultobj = SWIG_Py_Void();
37623 SWIGINTERN PyObject *_wrap_delete_IndexIVF(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37624 PyObject *resultobj = 0;
37628 PyObject * obj0 = 0 ;
37630 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVF",&obj0)) SWIG_fail;
37631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, SWIG_POINTER_DISOWN | 0 );
37632 if (!SWIG_IsOK(res1)) {
37633 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVF" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37637 Py_BEGIN_ALLOW_THREADS
37641 PyEval_RestoreThread(_save);
37642 PyErr_SetString(PyExc_RuntimeError, e.
what());
37645 Py_END_ALLOW_THREADS
37647 resultobj = SWIG_Py_Void();
37654 SWIGINTERN PyObject *_wrap_IndexIVF_get_list_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37655 PyObject *resultobj = 0;
37662 PyObject * obj0 = 0 ;
37663 PyObject * obj1 = 0 ;
37666 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_get_list_size",&obj0,&obj1)) SWIG_fail;
37667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37668 if (!SWIG_IsOK(res1)) {
37669 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_get_list_size" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
37672 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
37673 if (!SWIG_IsOK(ecode2)) {
37674 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_get_list_size" "', argument " "2"" of type '" "size_t""'");
37676 arg2 =
static_cast< size_t >(val2);
37678 Py_BEGIN_ALLOW_THREADS
37680 result = (size_t)((
faiss::IndexIVF const *)arg1)->get_list_size(arg2);
37682 PyEval_RestoreThread(_save);
37683 PyErr_SetString(PyExc_RuntimeError, e.
what());
37686 Py_END_ALLOW_THREADS
37688 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
37695 SWIGINTERN PyObject *_wrap_IndexIVF_make_direct_map__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37696 PyObject *resultobj = 0;
37703 PyObject * obj0 = 0 ;
37704 PyObject * obj1 = 0 ;
37706 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_make_direct_map",&obj0,&obj1)) SWIG_fail;
37707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37708 if (!SWIG_IsOK(res1)) {
37709 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_make_direct_map" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37712 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37713 if (!SWIG_IsOK(ecode2)) {
37714 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_make_direct_map" "', argument " "2"" of type '" "bool""'");
37716 arg2 =
static_cast< bool >(val2);
37718 Py_BEGIN_ALLOW_THREADS
37720 (arg1)->make_direct_map(arg2);
37722 PyEval_RestoreThread(_save);
37723 PyErr_SetString(PyExc_RuntimeError, e.
what());
37726 Py_END_ALLOW_THREADS
37728 resultobj = SWIG_Py_Void();
37735 SWIGINTERN PyObject *_wrap_IndexIVF_make_direct_map__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37736 PyObject *resultobj = 0;
37740 PyObject * obj0 = 0 ;
37742 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_make_direct_map",&obj0)) SWIG_fail;
37743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37744 if (!SWIG_IsOK(res1)) {
37745 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_make_direct_map" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37749 Py_BEGIN_ALLOW_THREADS
37751 (arg1)->make_direct_map();
37753 PyEval_RestoreThread(_save);
37754 PyErr_SetString(PyExc_RuntimeError, e.
what());
37757 Py_END_ALLOW_THREADS
37759 resultobj = SWIG_Py_Void();
37766 SWIGINTERN PyObject *_wrap_IndexIVF_make_direct_map(PyObject *
self, PyObject *args) {
37768 PyObject *argv[3] = {
37773 if (!PyTuple_Check(args)) SWIG_fail;
37774 argc = args ? PyObject_Length(args) : 0;
37775 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37776 argv[ii] = PyTuple_GET_ITEM(args,ii);
37781 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
37782 _v = SWIG_CheckState(res);
37784 return _wrap_IndexIVF_make_direct_map__SWIG_1(
self, args);
37790 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
37791 _v = SWIG_CheckState(res);
37794 int res = SWIG_AsVal_bool(argv[1], NULL);
37795 _v = SWIG_CheckState(res);
37798 return _wrap_IndexIVF_make_direct_map__SWIG_0(
self, args);
37804 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVF_make_direct_map'.\n"
37805 " Possible C/C++ prototypes are:\n"
37806 " faiss::IndexIVF::make_direct_map(bool)\n"
37807 " faiss::IndexIVF::make_direct_map()\n");
37812 SWIGINTERN PyObject *_wrap_IndexIVF_imbalance_factor(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37813 PyObject *resultobj = 0;
37817 PyObject * obj0 = 0 ;
37820 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_imbalance_factor",&obj0)) SWIG_fail;
37821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37822 if (!SWIG_IsOK(res1)) {
37823 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_imbalance_factor" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
37827 Py_BEGIN_ALLOW_THREADS
37831 PyEval_RestoreThread(_save);
37832 PyErr_SetString(PyExc_RuntimeError, e.
what());
37835 Py_END_ALLOW_THREADS
37837 resultobj = SWIG_From_double(static_cast< double >(result));
37844 SWIGINTERN PyObject *_wrap_IndexIVF_print_stats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37845 PyObject *resultobj = 0;
37849 PyObject * obj0 = 0 ;
37851 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_print_stats",&obj0)) SWIG_fail;
37852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37853 if (!SWIG_IsOK(res1)) {
37854 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_print_stats" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
37858 Py_BEGIN_ALLOW_THREADS
37862 PyEval_RestoreThread(_save);
37863 PyErr_SetString(PyExc_RuntimeError, e.
what());
37866 Py_END_ALLOW_THREADS
37868 resultobj = SWIG_Py_Void();
37875 SWIGINTERN PyObject *_wrap_IndexIVF_replace_invlists__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37876 PyObject *resultobj = 0;
37886 PyObject * obj0 = 0 ;
37887 PyObject * obj1 = 0 ;
37888 PyObject * obj2 = 0 ;
37890 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVF_replace_invlists",&obj0,&obj1,&obj2)) SWIG_fail;
37891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37892 if (!SWIG_IsOK(res1)) {
37893 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_replace_invlists" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37896 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
37897 if (!SWIG_IsOK(res2)) {
37898 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_replace_invlists" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
37901 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37902 if (!SWIG_IsOK(ecode3)) {
37903 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVF_replace_invlists" "', argument " "3"" of type '" "bool""'");
37905 arg3 =
static_cast< bool >(val3);
37907 Py_BEGIN_ALLOW_THREADS
37909 (arg1)->replace_invlists(arg2,arg3);
37911 PyEval_RestoreThread(_save);
37912 PyErr_SetString(PyExc_RuntimeError, e.
what());
37915 Py_END_ALLOW_THREADS
37917 resultobj = SWIG_Py_Void();
37924 SWIGINTERN PyObject *_wrap_IndexIVF_replace_invlists__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37925 PyObject *resultobj = 0;
37932 PyObject * obj0 = 0 ;
37933 PyObject * obj1 = 0 ;
37935 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_replace_invlists",&obj0,&obj1)) SWIG_fail;
37936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37937 if (!SWIG_IsOK(res1)) {
37938 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_replace_invlists" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37941 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
37942 if (!SWIG_IsOK(res2)) {
37943 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_replace_invlists" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
37947 Py_BEGIN_ALLOW_THREADS
37949 (arg1)->replace_invlists(arg2);
37951 PyEval_RestoreThread(_save);
37952 PyErr_SetString(PyExc_RuntimeError, e.
what());
37955 Py_END_ALLOW_THREADS
37957 resultobj = SWIG_Py_Void();
37964 SWIGINTERN PyObject *_wrap_IndexIVF_replace_invlists(PyObject *
self, PyObject *args) {
37966 PyObject *argv[4] = {
37971 if (!PyTuple_Check(args)) SWIG_fail;
37972 argc = args ? PyObject_Length(args) : 0;
37973 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
37974 argv[ii] = PyTuple_GET_ITEM(args,ii);
37979 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
37980 _v = SWIG_CheckState(res);
37983 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__InvertedLists, 0);
37984 _v = SWIG_CheckState(res);
37986 return _wrap_IndexIVF_replace_invlists__SWIG_1(
self, args);
37993 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
37994 _v = SWIG_CheckState(res);
37997 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__InvertedLists, 0);
37998 _v = SWIG_CheckState(res);
38001 int res = SWIG_AsVal_bool(argv[2], NULL);
38002 _v = SWIG_CheckState(res);
38005 return _wrap_IndexIVF_replace_invlists__SWIG_0(
self, args);
38012 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVF_replace_invlists'.\n"
38013 " Possible C/C++ prototypes are:\n"
38014 " faiss::IndexIVF::replace_invlists(faiss::InvertedLists *,bool)\n"
38015 " faiss::IndexIVF::replace_invlists(faiss::InvertedLists *)\n");
38020 SWIGINTERN PyObject *IndexIVF_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38022 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
38023 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVF, SWIG_NewClientData(obj));
38024 return SWIG_Py_Void();
38027 SWIGINTERN PyObject *_wrap_IndexIVFStats_nq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38028 PyObject *resultobj = 0;
38035 PyObject * obj0 = 0 ;
38036 PyObject * obj1 = 0 ;
38038 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFStats_nq_set",&obj0,&obj1)) SWIG_fail;
38039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
38040 if (!SWIG_IsOK(res1)) {
38041 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_nq_set" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
38044 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
38045 if (!SWIG_IsOK(ecode2)) {
38046 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFStats_nq_set" "', argument " "2"" of type '" "size_t""'");
38048 arg2 =
static_cast< size_t >(val2);
38049 if (arg1) (arg1)->nq = arg2;
38050 resultobj = SWIG_Py_Void();
38057 SWIGINTERN PyObject *_wrap_IndexIVFStats_nq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38058 PyObject *resultobj = 0;
38062 PyObject * obj0 = 0 ;
38065 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFStats_nq_get",&obj0)) SWIG_fail;
38066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
38067 if (!SWIG_IsOK(res1)) {
38068 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_nq_get" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
38071 result = (size_t) ((arg1)->nq);
38072 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
38079 SWIGINTERN PyObject *_wrap_IndexIVFStats_nlist_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38080 PyObject *resultobj = 0;
38087 PyObject * obj0 = 0 ;
38088 PyObject * obj1 = 0 ;
38090 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFStats_nlist_set",&obj0,&obj1)) SWIG_fail;
38091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
38092 if (!SWIG_IsOK(res1)) {
38093 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_nlist_set" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
38096 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
38097 if (!SWIG_IsOK(ecode2)) {
38098 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFStats_nlist_set" "', argument " "2"" of type '" "size_t""'");
38100 arg2 =
static_cast< size_t >(val2);
38101 if (arg1) (arg1)->nlist = arg2;
38102 resultobj = SWIG_Py_Void();
38109 SWIGINTERN PyObject *_wrap_IndexIVFStats_nlist_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38110 PyObject *resultobj = 0;
38114 PyObject * obj0 = 0 ;
38117 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFStats_nlist_get",&obj0)) SWIG_fail;
38118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
38119 if (!SWIG_IsOK(res1)) {
38120 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_nlist_get" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
38123 result = (size_t) ((arg1)->nlist);
38124 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
38131 SWIGINTERN PyObject *_wrap_IndexIVFStats_ndis_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38132 PyObject *resultobj = 0;
38139 PyObject * obj0 = 0 ;
38140 PyObject * obj1 = 0 ;
38142 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFStats_ndis_set",&obj0,&obj1)) SWIG_fail;
38143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
38144 if (!SWIG_IsOK(res1)) {
38145 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_ndis_set" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
38148 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
38149 if (!SWIG_IsOK(ecode2)) {
38150 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFStats_ndis_set" "', argument " "2"" of type '" "size_t""'");
38152 arg2 =
static_cast< size_t >(val2);
38153 if (arg1) (arg1)->ndis = arg2;
38154 resultobj = SWIG_Py_Void();
38161 SWIGINTERN PyObject *_wrap_IndexIVFStats_ndis_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38162 PyObject *resultobj = 0;
38166 PyObject * obj0 = 0 ;
38169 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFStats_ndis_get",&obj0)) SWIG_fail;
38170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
38171 if (!SWIG_IsOK(res1)) {
38172 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_ndis_get" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
38175 result = (size_t) ((arg1)->ndis);
38176 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
38183 SWIGINTERN PyObject *_wrap_IndexIVFStats_nheap_updates_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38184 PyObject *resultobj = 0;
38191 PyObject * obj0 = 0 ;
38192 PyObject * obj1 = 0 ;
38194 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFStats_nheap_updates_set",&obj0,&obj1)) SWIG_fail;
38195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
38196 if (!SWIG_IsOK(res1)) {
38197 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_nheap_updates_set" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
38200 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
38201 if (!SWIG_IsOK(ecode2)) {
38202 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFStats_nheap_updates_set" "', argument " "2"" of type '" "size_t""'");
38204 arg2 =
static_cast< size_t >(val2);
38205 if (arg1) (arg1)->nheap_updates = arg2;
38206 resultobj = SWIG_Py_Void();
38213 SWIGINTERN PyObject *_wrap_IndexIVFStats_nheap_updates_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38214 PyObject *resultobj = 0;
38218 PyObject * obj0 = 0 ;
38221 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFStats_nheap_updates_get",&obj0)) SWIG_fail;
38222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
38223 if (!SWIG_IsOK(res1)) {
38224 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_nheap_updates_get" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
38227 result = (size_t) ((arg1)->nheap_updates);
38228 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
38235 SWIGINTERN PyObject *_wrap_new_IndexIVFStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38236 PyObject *resultobj = 0;
38239 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIVFStats")) SWIG_fail;
38241 Py_BEGIN_ALLOW_THREADS
38245 PyEval_RestoreThread(_save);
38246 PyErr_SetString(PyExc_RuntimeError, e.
what());
38249 Py_END_ALLOW_THREADS
38251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFStats, SWIG_POINTER_NEW | 0 );
38258 SWIGINTERN PyObject *_wrap_IndexIVFStats_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38259 PyObject *resultobj = 0;
38263 PyObject * obj0 = 0 ;
38265 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFStats_reset",&obj0)) SWIG_fail;
38266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
38267 if (!SWIG_IsOK(res1)) {
38268 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_reset" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
38272 Py_BEGIN_ALLOW_THREADS
38276 PyEval_RestoreThread(_save);
38277 PyErr_SetString(PyExc_RuntimeError, e.
what());
38280 Py_END_ALLOW_THREADS
38282 resultobj = SWIG_Py_Void();
38289 SWIGINTERN PyObject *_wrap_delete_IndexIVFStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38290 PyObject *resultobj = 0;
38294 PyObject * obj0 = 0 ;
38296 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVFStats",&obj0)) SWIG_fail;
38297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, SWIG_POINTER_DISOWN | 0 );
38298 if (!SWIG_IsOK(res1)) {
38299 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVFStats" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
38303 resultobj = SWIG_Py_Void();
38310 SWIGINTERN PyObject *IndexIVFStats_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38312 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
38313 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVFStats, SWIG_NewClientData(obj));
38314 return SWIG_Py_Void();
38317 SWIGINTERN
int Swig_var_indexIVF_stats_set(PyObject *_val) {
38320 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0);
38321 if (!SWIG_IsOK(res)) {
38322 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""faiss::indexIVF_stats""' of type '""faiss::IndexIVFStats""'");
38325 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""faiss::indexIVF_stats""' of type '""faiss::IndexIVFStats""'");
38329 faiss::indexIVF_stats = *temp;
38330 if (SWIG_IsNewObj(res))
delete temp;
38339 SWIGINTERN PyObject *Swig_var_indexIVF_stats_get(
void) {
38340 PyObject *pyobj = 0;
38342 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&faiss::indexIVF_stats), SWIGTYPE_p_faiss__IndexIVFStats, 0 );
38347 SWIGINTERN PyObject *_wrap_check_compatible_for_merge(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38348 PyObject *resultobj = 0;
38355 PyObject * obj0 = 0 ;
38356 PyObject * obj1 = 0 ;
38358 if (!PyArg_ParseTuple(args,(
char *)
"OO:check_compatible_for_merge",&obj0,&obj1)) SWIG_fail;
38359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
38360 if (!SWIG_IsOK(res1)) {
38361 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "check_compatible_for_merge" "', argument " "1"" of type '" "faiss::Index const *""'");
38364 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
38365 if (!SWIG_IsOK(res2)) {
38366 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "check_compatible_for_merge" "', argument " "2"" of type '" "faiss::Index const *""'");
38370 Py_BEGIN_ALLOW_THREADS
38374 PyEval_RestoreThread(_save);
38375 PyErr_SetString(PyExc_RuntimeError, e.
what());
38378 Py_END_ALLOW_THREADS
38380 resultobj = SWIG_Py_Void();
38387 SWIGINTERN PyObject *_wrap_extract_index_ivf__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38388 PyObject *resultobj = 0;
38392 PyObject * obj0 = 0 ;
38395 if (!PyArg_ParseTuple(args,(
char *)
"O:extract_index_ivf",&obj0)) SWIG_fail;
38396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
38397 if (!SWIG_IsOK(res1)) {
38398 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "extract_index_ivf" "', argument " "1"" of type '" "faiss::Index const *""'");
38402 Py_BEGIN_ALLOW_THREADS
38406 PyEval_RestoreThread(_save);
38407 PyErr_SetString(PyExc_RuntimeError, e.
what());
38410 Py_END_ALLOW_THREADS
38412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38419 SWIGINTERN PyObject *_wrap_extract_index_ivf__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38420 PyObject *resultobj = 0;
38424 PyObject * obj0 = 0 ;
38427 if (!PyArg_ParseTuple(args,(
char *)
"O:extract_index_ivf",&obj0)) SWIG_fail;
38428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
38429 if (!SWIG_IsOK(res1)) {
38430 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "extract_index_ivf" "', argument " "1"" of type '" "faiss::Index *""'");
38434 Py_BEGIN_ALLOW_THREADS
38438 PyEval_RestoreThread(_save);
38439 PyErr_SetString(PyExc_RuntimeError, e.
what());
38442 Py_END_ALLOW_THREADS
38444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38451 SWIGINTERN PyObject *_wrap_extract_index_ivf(PyObject *
self, PyObject *args) {
38453 PyObject *argv[2] = {
38458 if (!PyTuple_Check(args)) SWIG_fail;
38459 argc = args ? PyObject_Length(args) : 0;
38460 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
38461 argv[ii] = PyTuple_GET_ITEM(args,ii);
38466 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
38467 _v = SWIG_CheckState(res);
38469 return _wrap_extract_index_ivf__SWIG_0(
self, args);
38475 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
38476 _v = SWIG_CheckState(res);
38478 return _wrap_extract_index_ivf__SWIG_1(
self, args);
38483 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'extract_index_ivf'.\n"
38484 " Possible C/C++ prototypes are:\n"
38485 " faiss::ivflib::extract_index_ivf(faiss::Index const *)\n"
38486 " faiss::ivflib::extract_index_ivf(faiss::Index *)\n");
38491 SWIGINTERN PyObject *_wrap_merge_into(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38492 PyObject *resultobj = 0;
38502 PyObject * obj0 = 0 ;
38503 PyObject * obj1 = 0 ;
38504 PyObject * obj2 = 0 ;
38506 if (!PyArg_ParseTuple(args,(
char *)
"OOO:merge_into",&obj0,&obj1,&obj2)) SWIG_fail;
38507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
38508 if (!SWIG_IsOK(res1)) {
38509 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "merge_into" "', argument " "1"" of type '" "faiss::Index *""'");
38512 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
38513 if (!SWIG_IsOK(res2)) {
38514 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "merge_into" "', argument " "2"" of type '" "faiss::Index *""'");
38517 ecode3 = SWIG_AsVal_bool(obj2, &val3);
38518 if (!SWIG_IsOK(ecode3)) {
38519 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "merge_into" "', argument " "3"" of type '" "bool""'");
38521 arg3 =
static_cast< bool >(val3);
38523 Py_BEGIN_ALLOW_THREADS
38525 faiss::ivflib::merge_into(arg1,arg2,arg3);
38527 PyEval_RestoreThread(_save);
38528 PyErr_SetString(PyExc_RuntimeError, e.
what());
38531 Py_END_ALLOW_THREADS
38533 resultobj = SWIG_Py_Void();
38540 SWIGINTERN PyObject *_wrap_search_centroid(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38541 PyObject *resultobj = 0;
38543 float *arg2 = (
float *) 0 ;
38545 faiss::ivflib::idx_t *arg4 = (faiss::ivflib::idx_t *) 0 ;
38554 PyObject * obj0 = 0 ;
38555 PyObject * obj1 = 0 ;
38556 PyObject * obj2 = 0 ;
38557 PyObject * obj3 = 0 ;
38559 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:search_centroid",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
38561 if (!SWIG_IsOK(res1)) {
38562 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "search_centroid" "', argument " "1"" of type '" "faiss::Index *""'");
38565 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
38566 if (!SWIG_IsOK(res2)) {
38567 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "search_centroid" "', argument " "2"" of type '" "float const *""'");
38569 arg2 =
reinterpret_cast< float *
>(argp2);
38570 ecode3 = SWIG_AsVal_int(obj2, &val3);
38571 if (!SWIG_IsOK(ecode3)) {
38572 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "search_centroid" "', argument " "3"" of type '" "int""'");
38574 arg3 =
static_cast< int >(val3);
38575 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
38576 if (!SWIG_IsOK(res4)) {
38577 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "search_centroid" "', argument " "4"" of type '" "faiss::ivflib::idx_t *""'");
38579 arg4 =
reinterpret_cast< faiss::ivflib::idx_t *
>(argp4);
38581 Py_BEGIN_ALLOW_THREADS
38583 faiss::ivflib::search_centroid(arg1,(
float const *)arg2,arg3,arg4);
38585 PyEval_RestoreThread(_save);
38586 PyErr_SetString(PyExc_RuntimeError, e.
what());
38589 Py_END_ALLOW_THREADS
38591 resultobj = SWIG_Py_Void();
38598 SWIGINTERN PyObject *_wrap_search_and_return_centroids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38599 PyObject *resultobj = 0;
38602 float *arg3 = (
float *) 0 ;
38604 float *arg5 = (
float *) 0 ;
38605 faiss::ivflib::idx_t *arg6 = (faiss::ivflib::idx_t *) 0 ;
38606 faiss::ivflib::idx_t *arg7 = (faiss::ivflib::idx_t *) 0 ;
38607 faiss::ivflib::idx_t *arg8 = (faiss::ivflib::idx_t *) 0 ;
38624 PyObject * obj0 = 0 ;
38625 PyObject * obj1 = 0 ;
38626 PyObject * obj2 = 0 ;
38627 PyObject * obj3 = 0 ;
38628 PyObject * obj4 = 0 ;
38629 PyObject * obj5 = 0 ;
38630 PyObject * obj6 = 0 ;
38631 PyObject * obj7 = 0 ;
38633 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:search_and_return_centroids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
38634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
38635 if (!SWIG_IsOK(res1)) {
38636 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "search_and_return_centroids" "', argument " "1"" of type '" "faiss::Index *""'");
38639 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
38640 if (!SWIG_IsOK(ecode2)) {
38641 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "search_and_return_centroids" "', argument " "2"" of type '" "size_t""'");
38643 arg2 =
static_cast< size_t >(val2);
38644 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
38645 if (!SWIG_IsOK(res3)) {
38646 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "search_and_return_centroids" "', argument " "3"" of type '" "float const *""'");
38648 arg3 =
reinterpret_cast< float *
>(argp3);
38649 ecode4 = SWIG_AsVal_long(obj3, &val4);
38650 if (!SWIG_IsOK(ecode4)) {
38651 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "search_and_return_centroids" "', argument " "4"" of type '" "long""'");
38653 arg4 =
static_cast< long >(val4);
38654 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
38655 if (!SWIG_IsOK(res5)) {
38656 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "search_and_return_centroids" "', argument " "5"" of type '" "float *""'");
38658 arg5 =
reinterpret_cast< float *
>(argp5);
38659 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
38660 if (!SWIG_IsOK(res6)) {
38661 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "search_and_return_centroids" "', argument " "6"" of type '" "faiss::ivflib::idx_t *""'");
38663 arg6 =
reinterpret_cast< faiss::ivflib::idx_t *
>(argp6);
38664 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_long, 0 | 0 );
38665 if (!SWIG_IsOK(res7)) {
38666 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "search_and_return_centroids" "', argument " "7"" of type '" "faiss::ivflib::idx_t *""'");
38668 arg7 =
reinterpret_cast< faiss::ivflib::idx_t *
>(argp7);
38669 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
38670 if (!SWIG_IsOK(res8)) {
38671 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "search_and_return_centroids" "', argument " "8"" of type '" "faiss::ivflib::idx_t *""'");
38673 arg8 =
reinterpret_cast< faiss::ivflib::idx_t *
>(argp8);
38675 Py_BEGIN_ALLOW_THREADS
38677 faiss::ivflib::search_and_return_centroids(arg1,arg2,(
float const *)arg3,arg4,arg5,arg6,arg7,arg8);
38679 PyEval_RestoreThread(_save);
38680 PyErr_SetString(PyExc_RuntimeError, e.
what());
38683 Py_END_ALLOW_THREADS
38685 resultobj = SWIG_Py_Void();
38692 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38693 PyObject *resultobj = 0;
38700 PyObject * obj0 = 0 ;
38701 PyObject * obj1 = 0 ;
38703 if (!PyArg_ParseTuple(args,(
char *)
"OO:SlidingIndexWindow_index_set",&obj0,&obj1)) SWIG_fail;
38704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
38705 if (!SWIG_IsOK(res1)) {
38706 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_index_set" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
38709 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
38710 if (!SWIG_IsOK(res2)) {
38711 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SlidingIndexWindow_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
38714 if (arg1) (arg1)->index = arg2;
38715 resultobj = SWIG_Py_Void();
38722 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38723 PyObject *resultobj = 0;
38727 PyObject * obj0 = 0 ;
38730 if (!PyArg_ParseTuple(args,(
char *)
"O:SlidingIndexWindow_index_get",&obj0)) SWIG_fail;
38731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
38732 if (!SWIG_IsOK(res1)) {
38733 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_index_get" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
38737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
38744 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_ils_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38745 PyObject *resultobj = 0;
38752 PyObject * obj0 = 0 ;
38753 PyObject * obj1 = 0 ;
38755 if (!PyArg_ParseTuple(args,(
char *)
"OO:SlidingIndexWindow_ils_set",&obj0,&obj1)) SWIG_fail;
38756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
38757 if (!SWIG_IsOK(res1)) {
38758 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_ils_set" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
38761 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ArrayInvertedLists, SWIG_POINTER_DISOWN | 0 );
38762 if (!SWIG_IsOK(res2)) {
38763 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SlidingIndexWindow_ils_set" "', argument " "2"" of type '" "faiss::ArrayInvertedLists *""'");
38766 if (arg1) (arg1)->ils = arg2;
38767 resultobj = SWIG_Py_Void();
38774 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_ils_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38775 PyObject *resultobj = 0;
38779 PyObject * obj0 = 0 ;
38782 if (!PyArg_ParseTuple(args,(
char *)
"O:SlidingIndexWindow_ils_get",&obj0)) SWIG_fail;
38783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
38784 if (!SWIG_IsOK(res1)) {
38785 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_ils_get" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
38789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
38796 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_n_slice_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38797 PyObject *resultobj = 0;
38804 PyObject * obj0 = 0 ;
38805 PyObject * obj1 = 0 ;
38807 if (!PyArg_ParseTuple(args,(
char *)
"OO:SlidingIndexWindow_n_slice_set",&obj0,&obj1)) SWIG_fail;
38808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
38809 if (!SWIG_IsOK(res1)) {
38810 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_n_slice_set" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
38813 ecode2 = SWIG_AsVal_int(obj1, &val2);
38814 if (!SWIG_IsOK(ecode2)) {
38815 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SlidingIndexWindow_n_slice_set" "', argument " "2"" of type '" "int""'");
38817 arg2 =
static_cast< int >(val2);
38818 if (arg1) (arg1)->n_slice = arg2;
38819 resultobj = SWIG_Py_Void();
38826 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_n_slice_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38827 PyObject *resultobj = 0;
38831 PyObject * obj0 = 0 ;
38834 if (!PyArg_ParseTuple(args,(
char *)
"O:SlidingIndexWindow_n_slice_get",&obj0)) SWIG_fail;
38835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
38836 if (!SWIG_IsOK(res1)) {
38837 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_n_slice_get" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
38840 result = (int) ((arg1)->n_slice);
38841 resultobj = SWIG_From_int(static_cast< int >(result));
38848 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_nlist_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38849 PyObject *resultobj = 0;
38856 PyObject * obj0 = 0 ;
38857 PyObject * obj1 = 0 ;
38859 if (!PyArg_ParseTuple(args,(
char *)
"OO:SlidingIndexWindow_nlist_set",&obj0,&obj1)) SWIG_fail;
38860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
38861 if (!SWIG_IsOK(res1)) {
38862 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_nlist_set" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
38865 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
38866 if (!SWIG_IsOK(ecode2)) {
38867 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SlidingIndexWindow_nlist_set" "', argument " "2"" of type '" "size_t""'");
38869 arg2 =
static_cast< size_t >(val2);
38870 if (arg1) (arg1)->nlist = arg2;
38871 resultobj = SWIG_Py_Void();
38878 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_nlist_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38879 PyObject *resultobj = 0;
38883 PyObject * obj0 = 0 ;
38886 if (!PyArg_ParseTuple(args,(
char *)
"O:SlidingIndexWindow_nlist_get",&obj0)) SWIG_fail;
38887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
38888 if (!SWIG_IsOK(res1)) {
38889 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_nlist_get" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
38892 result = (size_t) ((arg1)->nlist);
38893 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
38900 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_sizes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38901 PyObject *resultobj = 0;
38903 std::vector< std::vector< size_t > > *arg2 = (std::vector< std::vector< size_t > > *) 0 ;
38908 PyObject * obj0 = 0 ;
38909 PyObject * obj1 = 0 ;
38911 if (!PyArg_ParseTuple(args,(
char *)
"OO:SlidingIndexWindow_sizes_set",&obj0,&obj1)) SWIG_fail;
38912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
38913 if (!SWIG_IsOK(res1)) {
38914 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_sizes_set" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
38917 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t, 0 | 0 );
38918 if (!SWIG_IsOK(res2)) {
38919 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SlidingIndexWindow_sizes_set" "', argument " "2"" of type '" "std::vector< std::vector< size_t > > *""'");
38921 arg2 =
reinterpret_cast< std::vector< std::vector< size_t >
> * >(argp2);
38922 if (arg1) (arg1)->sizes = *arg2;
38923 resultobj = SWIG_Py_Void();
38930 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_sizes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38931 PyObject *resultobj = 0;
38935 PyObject * obj0 = 0 ;
38936 std::vector< std::vector< size_t > > *result = 0 ;
38938 if (!PyArg_ParseTuple(args,(
char *)
"O:SlidingIndexWindow_sizes_get",&obj0)) SWIG_fail;
38939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
38940 if (!SWIG_IsOK(res1)) {
38941 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_sizes_get" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
38944 result = (std::vector< std::vector< size_t > > *)& ((arg1)->sizes);
38945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t, 0 | 0 );
38952 SWIGINTERN PyObject *_wrap_new_SlidingIndexWindow(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38953 PyObject *resultobj = 0;
38957 PyObject * obj0 = 0 ;
38960 if (!PyArg_ParseTuple(args,(
char *)
"O:new_SlidingIndexWindow",&obj0)) SWIG_fail;
38961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
38962 if (!SWIG_IsOK(res1)) {
38963 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_SlidingIndexWindow" "', argument " "1"" of type '" "faiss::Index *""'");
38967 Py_BEGIN_ALLOW_THREADS
38971 PyEval_RestoreThread(_save);
38972 PyErr_SetString(PyExc_RuntimeError, e.
what());
38975 Py_END_ALLOW_THREADS
38977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, SWIG_POINTER_NEW | 0 );
38984 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_step(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38985 PyObject *resultobj = 0;
38995 PyObject * obj0 = 0 ;
38996 PyObject * obj1 = 0 ;
38997 PyObject * obj2 = 0 ;
38999 if (!PyArg_ParseTuple(args,(
char *)
"OOO:SlidingIndexWindow_step",&obj0,&obj1,&obj2)) SWIG_fail;
39000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
39001 if (!SWIG_IsOK(res1)) {
39002 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_step" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
39005 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
39006 if (!SWIG_IsOK(res2)) {
39007 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SlidingIndexWindow_step" "', argument " "2"" of type '" "faiss::Index const *""'");
39010 ecode3 = SWIG_AsVal_bool(obj2, &val3);
39011 if (!SWIG_IsOK(ecode3)) {
39012 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "SlidingIndexWindow_step" "', argument " "3"" of type '" "bool""'");
39014 arg3 =
static_cast< bool >(val3);
39016 Py_BEGIN_ALLOW_THREADS
39020 PyEval_RestoreThread(_save);
39021 PyErr_SetString(PyExc_RuntimeError, e.
what());
39024 Py_END_ALLOW_THREADS
39026 resultobj = SWIG_Py_Void();
39033 SWIGINTERN PyObject *_wrap_delete_SlidingIndexWindow(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39034 PyObject *resultobj = 0;
39038 PyObject * obj0 = 0 ;
39040 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_SlidingIndexWindow",&obj0)) SWIG_fail;
39041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, SWIG_POINTER_DISOWN | 0 );
39042 if (!SWIG_IsOK(res1)) {
39043 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_SlidingIndexWindow" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
39047 resultobj = SWIG_Py_Void();
39054 SWIGINTERN PyObject *SlidingIndexWindow_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39056 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
39057 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, SWIG_NewClientData(obj));
39058 return SWIG_Py_Void();
39061 SWIGINTERN PyObject *_wrap_get_invlist_range(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39062 PyObject *resultobj = 0;
39072 PyObject * obj0 = 0 ;
39073 PyObject * obj1 = 0 ;
39074 PyObject * obj2 = 0 ;
39077 if (!PyArg_ParseTuple(args,(
char *)
"OOO:get_invlist_range",&obj0,&obj1,&obj2)) SWIG_fail;
39078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
39079 if (!SWIG_IsOK(res1)) {
39080 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "get_invlist_range" "', argument " "1"" of type '" "faiss::Index const *""'");
39083 ecode2 = SWIG_AsVal_long(obj1, &val2);
39084 if (!SWIG_IsOK(ecode2)) {
39085 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "get_invlist_range" "', argument " "2"" of type '" "long""'");
39087 arg2 =
static_cast< long >(val2);
39088 ecode3 = SWIG_AsVal_long(obj2, &val3);
39089 if (!SWIG_IsOK(ecode3)) {
39090 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "get_invlist_range" "', argument " "3"" of type '" "long""'");
39092 arg3 =
static_cast< long >(val3);
39094 Py_BEGIN_ALLOW_THREADS
39098 PyEval_RestoreThread(_save);
39099 PyErr_SetString(PyExc_RuntimeError, e.
what());
39102 Py_END_ALLOW_THREADS
39104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
39111 SWIGINTERN PyObject *_wrap_set_invlist_range(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39112 PyObject *resultobj = 0;
39125 PyObject * obj0 = 0 ;
39126 PyObject * obj1 = 0 ;
39127 PyObject * obj2 = 0 ;
39128 PyObject * obj3 = 0 ;
39130 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:set_invlist_range",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
39132 if (!SWIG_IsOK(res1)) {
39133 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "set_invlist_range" "', argument " "1"" of type '" "faiss::Index *""'");
39136 ecode2 = SWIG_AsVal_long(obj1, &val2);
39137 if (!SWIG_IsOK(ecode2)) {
39138 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "set_invlist_range" "', argument " "2"" of type '" "long""'");
39140 arg2 =
static_cast< long >(val2);
39141 ecode3 = SWIG_AsVal_long(obj2, &val3);
39142 if (!SWIG_IsOK(ecode3)) {
39143 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "set_invlist_range" "', argument " "3"" of type '" "long""'");
39145 arg3 =
static_cast< long >(val3);
39146 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
39147 if (!SWIG_IsOK(res4)) {
39148 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "set_invlist_range" "', argument " "4"" of type '" "faiss::ArrayInvertedLists *""'");
39152 Py_BEGIN_ALLOW_THREADS
39154 faiss::ivflib::set_invlist_range(arg1,arg2,arg3,arg4);
39156 PyEval_RestoreThread(_save);
39157 PyErr_SetString(PyExc_RuntimeError, e.
what());
39160 Py_END_ALLOW_THREADS
39162 resultobj = SWIG_Py_Void();
39169 SWIGINTERN PyObject *_wrap_search_with_parameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39170 PyObject *resultobj = 0;
39172 faiss::ivflib::idx_t arg2 ;
39173 float *arg3 = (
float *) 0 ;
39174 faiss::ivflib::idx_t arg4 ;
39175 float *arg5 = (
float *) 0 ;
39176 faiss::ivflib::idx_t *arg6 = (faiss::ivflib::idx_t *) 0 ;
39192 PyObject * obj0 = 0 ;
39193 PyObject * obj1 = 0 ;
39194 PyObject * obj2 = 0 ;
39195 PyObject * obj3 = 0 ;
39196 PyObject * obj4 = 0 ;
39197 PyObject * obj5 = 0 ;
39198 PyObject * obj6 = 0 ;
39200 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:search_with_parameters",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
39201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
39202 if (!SWIG_IsOK(res1)) {
39203 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "search_with_parameters" "', argument " "1"" of type '" "faiss::Index const *""'");
39206 ecode2 = SWIG_AsVal_long(obj1, &val2);
39207 if (!SWIG_IsOK(ecode2)) {
39208 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "search_with_parameters" "', argument " "2"" of type '" "faiss::ivflib::idx_t""'");
39210 arg2 =
static_cast< faiss::ivflib::idx_t
>(val2);
39211 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
39212 if (!SWIG_IsOK(res3)) {
39213 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "search_with_parameters" "', argument " "3"" of type '" "float const *""'");
39215 arg3 =
reinterpret_cast< float *
>(argp3);
39216 ecode4 = SWIG_AsVal_long(obj3, &val4);
39217 if (!SWIG_IsOK(ecode4)) {
39218 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "search_with_parameters" "', argument " "4"" of type '" "faiss::ivflib::idx_t""'");
39220 arg4 =
static_cast< faiss::ivflib::idx_t
>(val4);
39221 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
39222 if (!SWIG_IsOK(res5)) {
39223 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "search_with_parameters" "', argument " "5"" of type '" "float *""'");
39225 arg5 =
reinterpret_cast< float *
>(argp5);
39226 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
39227 if (!SWIG_IsOK(res6)) {
39228 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "search_with_parameters" "', argument " "6"" of type '" "faiss::ivflib::idx_t *""'");
39230 arg6 =
reinterpret_cast< faiss::ivflib::idx_t *
>(argp6);
39231 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
39232 if (!SWIG_IsOK(res7)) {
39233 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "search_with_parameters" "', argument " "7"" of type '" "faiss::IVFSearchParameters *""'");
39237 Py_BEGIN_ALLOW_THREADS
39239 faiss::ivflib::search_with_parameters((
faiss::Index const *)arg1,arg2,(
float const *)arg3,arg4,arg5,arg6,arg7);
39241 PyEval_RestoreThread(_save);
39242 PyErr_SetString(PyExc_RuntimeError, e.
what());
39245 Py_END_ALLOW_THREADS
39247 resultobj = SWIG_Py_Void();
39254 SWIGINTERN PyObject *_wrap_ScalarQuantizer_qtype_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39255 PyObject *resultobj = 0;
39262 PyObject * obj0 = 0 ;
39263 PyObject * obj1 = 0 ;
39265 if (!PyArg_ParseTuple(args,(
char *)
"OO:ScalarQuantizer_qtype_set",&obj0,&obj1)) SWIG_fail;
39266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39267 if (!SWIG_IsOK(res1)) {
39268 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_qtype_set" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
39271 ecode2 = SWIG_AsVal_int(obj1, &val2);
39272 if (!SWIG_IsOK(ecode2)) {
39273 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ScalarQuantizer_qtype_set" "', argument " "2"" of type '" "faiss::ScalarQuantizer::QuantizerType""'");
39276 if (arg1) (arg1)->qtype = arg2;
39277 resultobj = SWIG_Py_Void();
39284 SWIGINTERN PyObject *_wrap_ScalarQuantizer_qtype_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39285 PyObject *resultobj = 0;
39289 PyObject * obj0 = 0 ;
39292 if (!PyArg_ParseTuple(args,(
char *)
"O:ScalarQuantizer_qtype_get",&obj0)) SWIG_fail;
39293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39294 if (!SWIG_IsOK(res1)) {
39295 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_qtype_get" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
39299 resultobj = SWIG_From_int(static_cast< int >(result));
39306 SWIGINTERN PyObject *_wrap_ScalarQuantizer_rangestat_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39307 PyObject *resultobj = 0;
39314 PyObject * obj0 = 0 ;
39315 PyObject * obj1 = 0 ;
39317 if (!PyArg_ParseTuple(args,(
char *)
"OO:ScalarQuantizer_rangestat_set",&obj0,&obj1)) SWIG_fail;
39318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39319 if (!SWIG_IsOK(res1)) {
39320 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_rangestat_set" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
39323 ecode2 = SWIG_AsVal_int(obj1, &val2);
39324 if (!SWIG_IsOK(ecode2)) {
39325 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ScalarQuantizer_rangestat_set" "', argument " "2"" of type '" "faiss::ScalarQuantizer::RangeStat""'");
39328 if (arg1) (arg1)->rangestat = arg2;
39329 resultobj = SWIG_Py_Void();
39336 SWIGINTERN PyObject *_wrap_ScalarQuantizer_rangestat_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39337 PyObject *resultobj = 0;
39341 PyObject * obj0 = 0 ;
39344 if (!PyArg_ParseTuple(args,(
char *)
"O:ScalarQuantizer_rangestat_get",&obj0)) SWIG_fail;
39345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39346 if (!SWIG_IsOK(res1)) {
39347 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_rangestat_get" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
39351 resultobj = SWIG_From_int(static_cast< int >(result));
39358 SWIGINTERN PyObject *_wrap_ScalarQuantizer_rangestat_arg_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39359 PyObject *resultobj = 0;
39366 PyObject * obj0 = 0 ;
39367 PyObject * obj1 = 0 ;
39369 if (!PyArg_ParseTuple(args,(
char *)
"OO:ScalarQuantizer_rangestat_arg_set",&obj0,&obj1)) SWIG_fail;
39370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39371 if (!SWIG_IsOK(res1)) {
39372 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_rangestat_arg_set" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
39375 ecode2 = SWIG_AsVal_float(obj1, &val2);
39376 if (!SWIG_IsOK(ecode2)) {
39377 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ScalarQuantizer_rangestat_arg_set" "', argument " "2"" of type '" "float""'");
39379 arg2 =
static_cast< float >(val2);
39380 if (arg1) (arg1)->rangestat_arg = arg2;
39381 resultobj = SWIG_Py_Void();
39388 SWIGINTERN PyObject *_wrap_ScalarQuantizer_rangestat_arg_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39389 PyObject *resultobj = 0;
39393 PyObject * obj0 = 0 ;
39396 if (!PyArg_ParseTuple(args,(
char *)
"O:ScalarQuantizer_rangestat_arg_get",&obj0)) SWIG_fail;
39397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39398 if (!SWIG_IsOK(res1)) {
39399 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_rangestat_arg_get" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
39402 result = (float) ((arg1)->rangestat_arg);
39403 resultobj = SWIG_From_float(static_cast< float >(result));
39410 SWIGINTERN PyObject *_wrap_ScalarQuantizer_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39411 PyObject *resultobj = 0;
39418 PyObject * obj0 = 0 ;
39419 PyObject * obj1 = 0 ;
39421 if (!PyArg_ParseTuple(args,(
char *)
"OO:ScalarQuantizer_d_set",&obj0,&obj1)) SWIG_fail;
39422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39423 if (!SWIG_IsOK(res1)) {
39424 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_d_set" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
39427 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
39428 if (!SWIG_IsOK(ecode2)) {
39429 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ScalarQuantizer_d_set" "', argument " "2"" of type '" "size_t""'");
39431 arg2 =
static_cast< size_t >(val2);
39432 if (arg1) (arg1)->d = arg2;
39433 resultobj = SWIG_Py_Void();
39440 SWIGINTERN PyObject *_wrap_ScalarQuantizer_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39441 PyObject *resultobj = 0;
39445 PyObject * obj0 = 0 ;
39448 if (!PyArg_ParseTuple(args,(
char *)
"O:ScalarQuantizer_d_get",&obj0)) SWIG_fail;
39449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39450 if (!SWIG_IsOK(res1)) {
39451 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_d_get" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
39454 result = (size_t) ((arg1)->d);
39455 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
39462 SWIGINTERN PyObject *_wrap_ScalarQuantizer_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39463 PyObject *resultobj = 0;
39470 PyObject * obj0 = 0 ;
39471 PyObject * obj1 = 0 ;
39473 if (!PyArg_ParseTuple(args,(
char *)
"OO:ScalarQuantizer_code_size_set",&obj0,&obj1)) SWIG_fail;
39474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39475 if (!SWIG_IsOK(res1)) {
39476 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_code_size_set" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
39479 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
39480 if (!SWIG_IsOK(ecode2)) {
39481 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ScalarQuantizer_code_size_set" "', argument " "2"" of type '" "size_t""'");
39483 arg2 =
static_cast< size_t >(val2);
39484 if (arg1) (arg1)->code_size = arg2;
39485 resultobj = SWIG_Py_Void();
39492 SWIGINTERN PyObject *_wrap_ScalarQuantizer_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39493 PyObject *resultobj = 0;
39497 PyObject * obj0 = 0 ;
39500 if (!PyArg_ParseTuple(args,(
char *)
"O:ScalarQuantizer_code_size_get",&obj0)) SWIG_fail;
39501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39502 if (!SWIG_IsOK(res1)) {
39503 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_code_size_get" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
39506 result = (size_t) ((arg1)->code_size);
39507 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
39514 SWIGINTERN PyObject *_wrap_ScalarQuantizer_trained_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39515 PyObject *resultobj = 0;
39517 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
39522 PyObject * obj0 = 0 ;
39523 PyObject * obj1 = 0 ;
39525 if (!PyArg_ParseTuple(args,(
char *)
"OO:ScalarQuantizer_trained_set",&obj0,&obj1)) SWIG_fail;
39526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39527 if (!SWIG_IsOK(res1)) {
39528 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_trained_set" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
39531 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
39532 if (!SWIG_IsOK(res2)) {
39533 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ScalarQuantizer_trained_set" "', argument " "2"" of type '" "std::vector< float > *""'");
39535 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
39536 if (arg1) (arg1)->trained = *arg2;
39537 resultobj = SWIG_Py_Void();
39544 SWIGINTERN PyObject *_wrap_ScalarQuantizer_trained_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39545 PyObject *resultobj = 0;
39549 PyObject * obj0 = 0 ;
39550 std::vector< float > *result = 0 ;
39552 if (!PyArg_ParseTuple(args,(
char *)
"O:ScalarQuantizer_trained_get",&obj0)) SWIG_fail;
39553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39554 if (!SWIG_IsOK(res1)) {
39555 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_trained_get" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
39558 result = (std::vector< float > *)& ((arg1)->trained);
39559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
39566 SWIGINTERN PyObject *_wrap_new_ScalarQuantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39567 PyObject *resultobj = 0;
39574 PyObject * obj0 = 0 ;
39575 PyObject * obj1 = 0 ;
39578 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_ScalarQuantizer",&obj0,&obj1)) SWIG_fail;
39579 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
39580 if (!SWIG_IsOK(ecode1)) {
39581 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_ScalarQuantizer" "', argument " "1"" of type '" "size_t""'");
39583 arg1 =
static_cast< size_t >(val1);
39584 ecode2 = SWIG_AsVal_int(obj1, &val2);
39585 if (!SWIG_IsOK(ecode2)) {
39586 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_ScalarQuantizer" "', argument " "2"" of type '" "faiss::ScalarQuantizer::QuantizerType""'");
39590 Py_BEGIN_ALLOW_THREADS
39594 PyEval_RestoreThread(_save);
39595 PyErr_SetString(PyExc_RuntimeError, e.
what());
39598 Py_END_ALLOW_THREADS
39600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ScalarQuantizer, SWIG_POINTER_NEW | 0 );
39607 SWIGINTERN PyObject *_wrap_new_ScalarQuantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39608 PyObject *resultobj = 0;
39611 if (!PyArg_ParseTuple(args,(
char *)
":new_ScalarQuantizer")) SWIG_fail;
39613 Py_BEGIN_ALLOW_THREADS
39617 PyEval_RestoreThread(_save);
39618 PyErr_SetString(PyExc_RuntimeError, e.
what());
39621 Py_END_ALLOW_THREADS
39623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ScalarQuantizer, SWIG_POINTER_NEW | 0 );
39630 SWIGINTERN PyObject *_wrap_new_ScalarQuantizer(PyObject *
self, PyObject *args) {
39632 PyObject *argv[3] = {
39637 if (!PyTuple_Check(args)) SWIG_fail;
39638 argc = args ? PyObject_Length(args) : 0;
39639 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
39640 argv[ii] = PyTuple_GET_ITEM(args,ii);
39643 return _wrap_new_ScalarQuantizer__SWIG_1(
self, args);
39648 int res = SWIG_AsVal_size_t(argv[0], NULL);
39649 _v = SWIG_CheckState(res);
39653 int res = SWIG_AsVal_int(argv[1], NULL);
39654 _v = SWIG_CheckState(res);
39657 return _wrap_new_ScalarQuantizer__SWIG_0(
self, args);
39663 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_ScalarQuantizer'.\n"
39664 " Possible C/C++ prototypes are:\n"
39665 " faiss::ScalarQuantizer::ScalarQuantizer(size_t,faiss::ScalarQuantizer::QuantizerType)\n"
39666 " faiss::ScalarQuantizer::ScalarQuantizer()\n");
39671 SWIGINTERN PyObject *_wrap_ScalarQuantizer_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39672 PyObject *resultobj = 0;
39675 float *arg3 = (
float *) 0 ;
39682 PyObject * obj0 = 0 ;
39683 PyObject * obj1 = 0 ;
39684 PyObject * obj2 = 0 ;
39686 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ScalarQuantizer_train",&obj0,&obj1,&obj2)) SWIG_fail;
39687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39688 if (!SWIG_IsOK(res1)) {
39689 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_train" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
39692 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
39693 if (!SWIG_IsOK(ecode2)) {
39694 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ScalarQuantizer_train" "', argument " "2"" of type '" "size_t""'");
39696 arg2 =
static_cast< size_t >(val2);
39697 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
39698 if (!SWIG_IsOK(res3)) {
39699 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ScalarQuantizer_train" "', argument " "3"" of type '" "float const *""'");
39701 arg3 =
reinterpret_cast< float *
>(argp3);
39703 Py_BEGIN_ALLOW_THREADS
39705 (arg1)->train(arg2,(
float const *)arg3);
39707 PyEval_RestoreThread(_save);
39708 PyErr_SetString(PyExc_RuntimeError, e.
what());
39711 Py_END_ALLOW_THREADS
39713 resultobj = SWIG_Py_Void();
39720 SWIGINTERN PyObject *_wrap_ScalarQuantizer_compute_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39721 PyObject *resultobj = 0;
39723 float *arg2 = (
float *) 0 ;
39724 uint8_t *arg3 = (uint8_t *) 0 ;
39734 PyObject * obj0 = 0 ;
39735 PyObject * obj1 = 0 ;
39736 PyObject * obj2 = 0 ;
39737 PyObject * obj3 = 0 ;
39739 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ScalarQuantizer_compute_codes",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39741 if (!SWIG_IsOK(res1)) {
39742 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_compute_codes" "', argument " "1"" of type '" "faiss::ScalarQuantizer const *""'");
39745 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
39746 if (!SWIG_IsOK(res2)) {
39747 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ScalarQuantizer_compute_codes" "', argument " "2"" of type '" "float const *""'");
39749 arg2 =
reinterpret_cast< float *
>(argp2);
39750 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
39751 if (!SWIG_IsOK(res3)) {
39752 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ScalarQuantizer_compute_codes" "', argument " "3"" of type '" "uint8_t *""'");
39754 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
39755 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
39756 if (!SWIG_IsOK(ecode4)) {
39757 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ScalarQuantizer_compute_codes" "', argument " "4"" of type '" "size_t""'");
39759 arg4 =
static_cast< size_t >(val4);
39761 Py_BEGIN_ALLOW_THREADS
39765 PyEval_RestoreThread(_save);
39766 PyErr_SetString(PyExc_RuntimeError, e.
what());
39769 Py_END_ALLOW_THREADS
39771 resultobj = SWIG_Py_Void();
39778 SWIGINTERN PyObject *_wrap_ScalarQuantizer_decode(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39779 PyObject *resultobj = 0;
39781 uint8_t *arg2 = (uint8_t *) 0 ;
39782 float *arg3 = (
float *) 0 ;
39792 PyObject * obj0 = 0 ;
39793 PyObject * obj1 = 0 ;
39794 PyObject * obj2 = 0 ;
39795 PyObject * obj3 = 0 ;
39797 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ScalarQuantizer_decode",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39799 if (!SWIG_IsOK(res1)) {
39800 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_decode" "', argument " "1"" of type '" "faiss::ScalarQuantizer const *""'");
39803 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
39804 if (!SWIG_IsOK(res2)) {
39805 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ScalarQuantizer_decode" "', argument " "2"" of type '" "uint8_t const *""'");
39807 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
39808 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
39809 if (!SWIG_IsOK(res3)) {
39810 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ScalarQuantizer_decode" "', argument " "3"" of type '" "float *""'");
39812 arg3 =
reinterpret_cast< float *
>(argp3);
39813 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
39814 if (!SWIG_IsOK(ecode4)) {
39815 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ScalarQuantizer_decode" "', argument " "4"" of type '" "size_t""'");
39817 arg4 =
static_cast< size_t >(val4);
39819 Py_BEGIN_ALLOW_THREADS
39823 PyEval_RestoreThread(_save);
39824 PyErr_SetString(PyExc_RuntimeError, e.
what());
39827 Py_END_ALLOW_THREADS
39829 resultobj = SWIG_Py_Void();
39836 SWIGINTERN PyObject *_wrap_ScalarQuantizer_get_distance_computer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39837 PyObject *resultobj = 0;
39844 PyObject * obj0 = 0 ;
39845 PyObject * obj1 = 0 ;
39848 if (!PyArg_ParseTuple(args,(
char *)
"OO:ScalarQuantizer_get_distance_computer",&obj0,&obj1)) SWIG_fail;
39849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39850 if (!SWIG_IsOK(res1)) {
39851 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_get_distance_computer" "', argument " "1"" of type '" "faiss::ScalarQuantizer const *""'");
39854 ecode2 = SWIG_AsVal_int(obj1, &val2);
39855 if (!SWIG_IsOK(ecode2)) {
39856 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ScalarQuantizer_get_distance_computer" "', argument " "2"" of type '" "faiss::MetricType""'");
39860 Py_BEGIN_ALLOW_THREADS
39864 PyEval_RestoreThread(_save);
39865 PyErr_SetString(PyExc_RuntimeError, e.
what());
39868 Py_END_ALLOW_THREADS
39870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ScalarQuantizer__DistanceComputer, 0 | 0 );
39877 SWIGINTERN PyObject *_wrap_ScalarQuantizer_get_distance_computer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39878 PyObject *resultobj = 0;
39882 PyObject * obj0 = 0 ;
39885 if (!PyArg_ParseTuple(args,(
char *)
"O:ScalarQuantizer_get_distance_computer",&obj0)) SWIG_fail;
39886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
39887 if (!SWIG_IsOK(res1)) {
39888 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_get_distance_computer" "', argument " "1"" of type '" "faiss::ScalarQuantizer const *""'");
39892 Py_BEGIN_ALLOW_THREADS
39896 PyEval_RestoreThread(_save);
39897 PyErr_SetString(PyExc_RuntimeError, e.
what());
39900 Py_END_ALLOW_THREADS
39902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ScalarQuantizer__DistanceComputer, 0 | 0 );
39909 SWIGINTERN PyObject *_wrap_ScalarQuantizer_get_distance_computer(PyObject *
self, PyObject *args) {
39911 PyObject *argv[3] = {
39916 if (!PyTuple_Check(args)) SWIG_fail;
39917 argc = args ? PyObject_Length(args) : 0;
39918 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
39919 argv[ii] = PyTuple_GET_ITEM(args,ii);
39924 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ScalarQuantizer, 0);
39925 _v = SWIG_CheckState(res);
39927 return _wrap_ScalarQuantizer_get_distance_computer__SWIG_1(
self, args);
39933 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ScalarQuantizer, 0);
39934 _v = SWIG_CheckState(res);
39937 int res = SWIG_AsVal_int(argv[1], NULL);
39938 _v = SWIG_CheckState(res);
39941 return _wrap_ScalarQuantizer_get_distance_computer__SWIG_0(
self, args);
39947 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'ScalarQuantizer_get_distance_computer'.\n"
39948 " Possible C/C++ prototypes are:\n"
39949 " faiss::ScalarQuantizer::get_distance_computer(faiss::MetricType) const\n"
39950 " faiss::ScalarQuantizer::get_distance_computer() const\n");
39955 SWIGINTERN PyObject *_wrap_delete_ScalarQuantizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39956 PyObject *resultobj = 0;
39960 PyObject * obj0 = 0 ;
39962 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ScalarQuantizer",&obj0)) SWIG_fail;
39963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, SWIG_POINTER_DISOWN | 0 );
39964 if (!SWIG_IsOK(res1)) {
39965 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ScalarQuantizer" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
39969 resultobj = SWIG_Py_Void();
39976 SWIGINTERN PyObject *ScalarQuantizer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39978 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
39979 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ScalarQuantizer, SWIG_NewClientData(obj));
39980 return SWIG_Py_Void();
39983 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_sq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39984 PyObject *resultobj = 0;
39991 PyObject * obj0 = 0 ;
39992 PyObject * obj1 = 0 ;
39994 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexScalarQuantizer_sq_set",&obj0,&obj1)) SWIG_fail;
39995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
39996 if (!SWIG_IsOK(res1)) {
39997 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_sq_set" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
40000 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40001 if (!SWIG_IsOK(res2)) {
40002 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexScalarQuantizer_sq_set" "', argument " "2"" of type '" "faiss::ScalarQuantizer *""'");
40005 if (arg1) (arg1)->sq = *arg2;
40006 resultobj = SWIG_Py_Void();
40013 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_sq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40014 PyObject *resultobj = 0;
40018 PyObject * obj0 = 0 ;
40021 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexScalarQuantizer_sq_get",&obj0)) SWIG_fail;
40022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
40023 if (!SWIG_IsOK(res1)) {
40024 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_sq_get" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
40028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40035 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40036 PyObject *resultobj = 0;
40038 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
40043 PyObject * obj0 = 0 ;
40044 PyObject * obj1 = 0 ;
40046 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexScalarQuantizer_codes_set",&obj0,&obj1)) SWIG_fail;
40047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
40048 if (!SWIG_IsOK(res1)) {
40049 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_codes_set" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
40052 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
40053 if (!SWIG_IsOK(res2)) {
40054 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexScalarQuantizer_codes_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
40056 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
40057 if (arg1) (arg1)->codes = *arg2;
40058 resultobj = SWIG_Py_Void();
40065 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40066 PyObject *resultobj = 0;
40070 PyObject * obj0 = 0 ;
40071 std::vector< uint8_t > *result = 0 ;
40073 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexScalarQuantizer_codes_get",&obj0)) SWIG_fail;
40074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
40075 if (!SWIG_IsOK(res1)) {
40076 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_codes_get" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
40079 result = (std::vector< uint8_t > *)& ((arg1)->codes);
40080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
40087 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40088 PyObject *resultobj = 0;
40095 PyObject * obj0 = 0 ;
40096 PyObject * obj1 = 0 ;
40098 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexScalarQuantizer_code_size_set",&obj0,&obj1)) SWIG_fail;
40099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
40100 if (!SWIG_IsOK(res1)) {
40101 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_code_size_set" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
40104 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
40105 if (!SWIG_IsOK(ecode2)) {
40106 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexScalarQuantizer_code_size_set" "', argument " "2"" of type '" "size_t""'");
40108 arg2 =
static_cast< size_t >(val2);
40109 if (arg1) (arg1)->code_size = arg2;
40110 resultobj = SWIG_Py_Void();
40117 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40118 PyObject *resultobj = 0;
40122 PyObject * obj0 = 0 ;
40125 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexScalarQuantizer_code_size_get",&obj0)) SWIG_fail;
40126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
40127 if (!SWIG_IsOK(res1)) {
40128 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_code_size_get" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
40131 result = (size_t) ((arg1)->code_size);
40132 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
40139 SWIGINTERN PyObject *_wrap_new_IndexScalarQuantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40140 PyObject *resultobj = 0;
40150 PyObject * obj0 = 0 ;
40151 PyObject * obj1 = 0 ;
40152 PyObject * obj2 = 0 ;
40155 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexScalarQuantizer",&obj0,&obj1,&obj2)) SWIG_fail;
40156 ecode1 = SWIG_AsVal_int(obj0, &val1);
40157 if (!SWIG_IsOK(ecode1)) {
40158 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexScalarQuantizer" "', argument " "1"" of type '" "int""'");
40160 arg1 =
static_cast< int >(val1);
40161 ecode2 = SWIG_AsVal_int(obj1, &val2);
40162 if (!SWIG_IsOK(ecode2)) {
40163 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexScalarQuantizer" "', argument " "2"" of type '" "faiss::ScalarQuantizer::QuantizerType""'");
40166 ecode3 = SWIG_AsVal_int(obj2, &val3);
40167 if (!SWIG_IsOK(ecode3)) {
40168 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexScalarQuantizer" "', argument " "3"" of type '" "faiss::MetricType""'");
40172 Py_BEGIN_ALLOW_THREADS
40176 PyEval_RestoreThread(_save);
40177 PyErr_SetString(PyExc_RuntimeError, e.
what());
40180 Py_END_ALLOW_THREADS
40182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexScalarQuantizer, SWIG_POINTER_NEW | 0 );
40189 SWIGINTERN PyObject *_wrap_new_IndexScalarQuantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40190 PyObject *resultobj = 0;
40197 PyObject * obj0 = 0 ;
40198 PyObject * obj1 = 0 ;
40201 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexScalarQuantizer",&obj0,&obj1)) SWIG_fail;
40202 ecode1 = SWIG_AsVal_int(obj0, &val1);
40203 if (!SWIG_IsOK(ecode1)) {
40204 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexScalarQuantizer" "', argument " "1"" of type '" "int""'");
40206 arg1 =
static_cast< int >(val1);
40207 ecode2 = SWIG_AsVal_int(obj1, &val2);
40208 if (!SWIG_IsOK(ecode2)) {
40209 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexScalarQuantizer" "', argument " "2"" of type '" "faiss::ScalarQuantizer::QuantizerType""'");
40213 Py_BEGIN_ALLOW_THREADS
40217 PyEval_RestoreThread(_save);
40218 PyErr_SetString(PyExc_RuntimeError, e.
what());
40221 Py_END_ALLOW_THREADS
40223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexScalarQuantizer, SWIG_POINTER_NEW | 0 );
40230 SWIGINTERN PyObject *_wrap_new_IndexScalarQuantizer__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40231 PyObject *resultobj = 0;
40234 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexScalarQuantizer")) SWIG_fail;
40236 Py_BEGIN_ALLOW_THREADS
40240 PyEval_RestoreThread(_save);
40241 PyErr_SetString(PyExc_RuntimeError, e.
what());
40244 Py_END_ALLOW_THREADS
40246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexScalarQuantizer, SWIG_POINTER_NEW | 0 );
40253 SWIGINTERN PyObject *_wrap_new_IndexScalarQuantizer(PyObject *
self, PyObject *args) {
40255 PyObject *argv[4] = {
40260 if (!PyTuple_Check(args)) SWIG_fail;
40261 argc = args ? PyObject_Length(args) : 0;
40262 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
40263 argv[ii] = PyTuple_GET_ITEM(args,ii);
40266 return _wrap_new_IndexScalarQuantizer__SWIG_2(
self, args);
40271 int res = SWIG_AsVal_int(argv[0], NULL);
40272 _v = SWIG_CheckState(res);
40276 int res = SWIG_AsVal_int(argv[1], NULL);
40277 _v = SWIG_CheckState(res);
40280 return _wrap_new_IndexScalarQuantizer__SWIG_1(
self, args);
40287 int res = SWIG_AsVal_int(argv[0], NULL);
40288 _v = SWIG_CheckState(res);
40292 int res = SWIG_AsVal_int(argv[1], NULL);
40293 _v = SWIG_CheckState(res);
40297 int res = SWIG_AsVal_int(argv[2], NULL);
40298 _v = SWIG_CheckState(res);
40301 return _wrap_new_IndexScalarQuantizer__SWIG_0(
self, args);
40308 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexScalarQuantizer'.\n"
40309 " Possible C/C++ prototypes are:\n"
40310 " faiss::IndexScalarQuantizer::IndexScalarQuantizer(int,faiss::ScalarQuantizer::QuantizerType,faiss::MetricType)\n"
40311 " faiss::IndexScalarQuantizer::IndexScalarQuantizer(int,faiss::ScalarQuantizer::QuantizerType)\n"
40312 " faiss::IndexScalarQuantizer::IndexScalarQuantizer()\n");
40317 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40318 PyObject *resultobj = 0;
40321 float *arg3 = (
float *) 0 ;
40328 PyObject * obj0 = 0 ;
40329 PyObject * obj1 = 0 ;
40330 PyObject * obj2 = 0 ;
40332 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexScalarQuantizer_train",&obj0,&obj1,&obj2)) SWIG_fail;
40333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
40334 if (!SWIG_IsOK(res1)) {
40335 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_train" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
40338 ecode2 = SWIG_AsVal_long(obj1, &val2);
40339 if (!SWIG_IsOK(ecode2)) {
40340 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexScalarQuantizer_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
40343 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
40344 if (!SWIG_IsOK(res3)) {
40345 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexScalarQuantizer_train" "', argument " "3"" of type '" "float const *""'");
40347 arg3 =
reinterpret_cast< float *
>(argp3);
40349 Py_BEGIN_ALLOW_THREADS
40351 (arg1)->train(arg2,(
float const *)arg3);
40353 PyEval_RestoreThread(_save);
40354 PyErr_SetString(PyExc_RuntimeError, e.
what());
40357 Py_END_ALLOW_THREADS
40359 resultobj = SWIG_Py_Void();
40366 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40367 PyObject *resultobj = 0;
40370 float *arg3 = (
float *) 0 ;
40377 PyObject * obj0 = 0 ;
40378 PyObject * obj1 = 0 ;
40379 PyObject * obj2 = 0 ;
40381 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexScalarQuantizer_add",&obj0,&obj1,&obj2)) SWIG_fail;
40382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
40383 if (!SWIG_IsOK(res1)) {
40384 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_add" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
40387 ecode2 = SWIG_AsVal_long(obj1, &val2);
40388 if (!SWIG_IsOK(ecode2)) {
40389 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexScalarQuantizer_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
40392 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
40393 if (!SWIG_IsOK(res3)) {
40394 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexScalarQuantizer_add" "', argument " "3"" of type '" "float const *""'");
40396 arg3 =
reinterpret_cast< float *
>(argp3);
40398 Py_BEGIN_ALLOW_THREADS
40400 (arg1)->add(arg2,(
float const *)arg3);
40402 PyEval_RestoreThread(_save);
40403 PyErr_SetString(PyExc_RuntimeError, e.
what());
40406 Py_END_ALLOW_THREADS
40408 resultobj = SWIG_Py_Void();
40415 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40416 PyObject *resultobj = 0;
40419 float *arg3 = (
float *) 0 ;
40421 float *arg5 = (
float *) 0 ;
40435 PyObject * obj0 = 0 ;
40436 PyObject * obj1 = 0 ;
40437 PyObject * obj2 = 0 ;
40438 PyObject * obj3 = 0 ;
40439 PyObject * obj4 = 0 ;
40440 PyObject * obj5 = 0 ;
40442 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexScalarQuantizer_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
40443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
40444 if (!SWIG_IsOK(res1)) {
40445 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_search" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer const *""'");
40448 ecode2 = SWIG_AsVal_long(obj1, &val2);
40449 if (!SWIG_IsOK(ecode2)) {
40450 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexScalarQuantizer_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
40453 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
40454 if (!SWIG_IsOK(res3)) {
40455 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexScalarQuantizer_search" "', argument " "3"" of type '" "float const *""'");
40457 arg3 =
reinterpret_cast< float *
>(argp3);
40458 ecode4 = SWIG_AsVal_long(obj3, &val4);
40459 if (!SWIG_IsOK(ecode4)) {
40460 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexScalarQuantizer_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
40463 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
40464 if (!SWIG_IsOK(res5)) {
40465 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexScalarQuantizer_search" "', argument " "5"" of type '" "float *""'");
40467 arg5 =
reinterpret_cast< float *
>(argp5);
40468 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
40469 if (!SWIG_IsOK(res6)) {
40470 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexScalarQuantizer_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
40474 Py_BEGIN_ALLOW_THREADS
40478 PyEval_RestoreThread(_save);
40479 PyErr_SetString(PyExc_RuntimeError, e.
what());
40482 Py_END_ALLOW_THREADS
40484 resultobj = SWIG_Py_Void();
40491 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40492 PyObject *resultobj = 0;
40496 PyObject * obj0 = 0 ;
40498 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexScalarQuantizer_reset",&obj0)) SWIG_fail;
40499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
40500 if (!SWIG_IsOK(res1)) {
40501 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_reset" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
40505 Py_BEGIN_ALLOW_THREADS
40509 PyEval_RestoreThread(_save);
40510 PyErr_SetString(PyExc_RuntimeError, e.
what());
40513 Py_END_ALLOW_THREADS
40515 resultobj = SWIG_Py_Void();
40522 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40523 PyObject *resultobj = 0;
40527 float *arg4 = (
float *) 0 ;
40536 PyObject * obj0 = 0 ;
40537 PyObject * obj1 = 0 ;
40538 PyObject * obj2 = 0 ;
40539 PyObject * obj3 = 0 ;
40541 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexScalarQuantizer_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
40543 if (!SWIG_IsOK(res1)) {
40544 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_reconstruct_n" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer const *""'");
40547 ecode2 = SWIG_AsVal_long(obj1, &val2);
40548 if (!SWIG_IsOK(ecode2)) {
40549 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexScalarQuantizer_reconstruct_n" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
40552 ecode3 = SWIG_AsVal_long(obj2, &val3);
40553 if (!SWIG_IsOK(ecode3)) {
40554 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexScalarQuantizer_reconstruct_n" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
40557 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
40558 if (!SWIG_IsOK(res4)) {
40559 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexScalarQuantizer_reconstruct_n" "', argument " "4"" of type '" "float *""'");
40561 arg4 =
reinterpret_cast< float *
>(argp4);
40563 Py_BEGIN_ALLOW_THREADS
40567 PyEval_RestoreThread(_save);
40568 PyErr_SetString(PyExc_RuntimeError, e.
what());
40571 Py_END_ALLOW_THREADS
40573 resultobj = SWIG_Py_Void();
40580 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40581 PyObject *resultobj = 0;
40584 float *arg3 = (
float *) 0 ;
40591 PyObject * obj0 = 0 ;
40592 PyObject * obj1 = 0 ;
40593 PyObject * obj2 = 0 ;
40595 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexScalarQuantizer_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
40596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
40597 if (!SWIG_IsOK(res1)) {
40598 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_reconstruct" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer const *""'");
40601 ecode2 = SWIG_AsVal_long(obj1, &val2);
40602 if (!SWIG_IsOK(ecode2)) {
40603 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexScalarQuantizer_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
40606 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
40607 if (!SWIG_IsOK(res3)) {
40608 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexScalarQuantizer_reconstruct" "', argument " "3"" of type '" "float *""'");
40610 arg3 =
reinterpret_cast< float *
>(argp3);
40612 Py_BEGIN_ALLOW_THREADS
40616 PyEval_RestoreThread(_save);
40617 PyErr_SetString(PyExc_RuntimeError, e.
what());
40620 Py_END_ALLOW_THREADS
40622 resultobj = SWIG_Py_Void();
40629 SWIGINTERN PyObject *_wrap_delete_IndexScalarQuantizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40630 PyObject *resultobj = 0;
40634 PyObject * obj0 = 0 ;
40636 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexScalarQuantizer",&obj0)) SWIG_fail;
40637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, SWIG_POINTER_DISOWN | 0 );
40638 if (!SWIG_IsOK(res1)) {
40639 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexScalarQuantizer" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
40643 resultobj = SWIG_Py_Void();
40650 SWIGINTERN PyObject *IndexScalarQuantizer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40652 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
40653 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexScalarQuantizer, SWIG_NewClientData(obj));
40654 return SWIG_Py_Void();
40657 SWIGINTERN PyObject *_wrap_IndexIVFScalarQuantizer_sq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40658 PyObject *resultobj = 0;
40665 PyObject * obj0 = 0 ;
40666 PyObject * obj1 = 0 ;
40668 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFScalarQuantizer_sq_set",&obj0,&obj1)) SWIG_fail;
40669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, 0 | 0 );
40670 if (!SWIG_IsOK(res1)) {
40671 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFScalarQuantizer_sq_set" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer *""'");
40674 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40675 if (!SWIG_IsOK(res2)) {
40676 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFScalarQuantizer_sq_set" "', argument " "2"" of type '" "faiss::ScalarQuantizer *""'");
40679 if (arg1) (arg1)->sq = *arg2;
40680 resultobj = SWIG_Py_Void();
40687 SWIGINTERN PyObject *_wrap_IndexIVFScalarQuantizer_sq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40688 PyObject *resultobj = 0;
40692 PyObject * obj0 = 0 ;
40695 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFScalarQuantizer_sq_get",&obj0)) SWIG_fail;
40696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, 0 | 0 );
40697 if (!SWIG_IsOK(res1)) {
40698 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFScalarQuantizer_sq_get" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer *""'");
40702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40709 SWIGINTERN PyObject *_wrap_new_IndexIVFScalarQuantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40710 PyObject *resultobj = 0;
40726 PyObject * obj0 = 0 ;
40727 PyObject * obj1 = 0 ;
40728 PyObject * obj2 = 0 ;
40729 PyObject * obj3 = 0 ;
40730 PyObject * obj4 = 0 ;
40733 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:new_IndexIVFScalarQuantizer",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
40735 if (!SWIG_IsOK(res1)) {
40736 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "1"" of type '" "faiss::Index *""'");
40739 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
40740 if (!SWIG_IsOK(ecode2)) {
40741 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "2"" of type '" "size_t""'");
40743 arg2 =
static_cast< size_t >(val2);
40744 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
40745 if (!SWIG_IsOK(ecode3)) {
40746 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "3"" of type '" "size_t""'");
40748 arg3 =
static_cast< size_t >(val3);
40749 ecode4 = SWIG_AsVal_int(obj3, &val4);
40750 if (!SWIG_IsOK(ecode4)) {
40751 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "4"" of type '" "faiss::ScalarQuantizer::QuantizerType""'");
40754 ecode5 = SWIG_AsVal_int(obj4, &val5);
40755 if (!SWIG_IsOK(ecode5)) {
40756 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "5"" of type '" "faiss::MetricType""'");
40760 Py_BEGIN_ALLOW_THREADS
40764 PyEval_RestoreThread(_save);
40765 PyErr_SetString(PyExc_RuntimeError, e.
what());
40768 Py_END_ALLOW_THREADS
40770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, SWIG_POINTER_NEW | 0 );
40777 SWIGINTERN PyObject *_wrap_new_IndexIVFScalarQuantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40778 PyObject *resultobj = 0;
40791 PyObject * obj0 = 0 ;
40792 PyObject * obj1 = 0 ;
40793 PyObject * obj2 = 0 ;
40794 PyObject * obj3 = 0 ;
40797 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_IndexIVFScalarQuantizer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
40799 if (!SWIG_IsOK(res1)) {
40800 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "1"" of type '" "faiss::Index *""'");
40803 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
40804 if (!SWIG_IsOK(ecode2)) {
40805 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "2"" of type '" "size_t""'");
40807 arg2 =
static_cast< size_t >(val2);
40808 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
40809 if (!SWIG_IsOK(ecode3)) {
40810 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "3"" of type '" "size_t""'");
40812 arg3 =
static_cast< size_t >(val3);
40813 ecode4 = SWIG_AsVal_int(obj3, &val4);
40814 if (!SWIG_IsOK(ecode4)) {
40815 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "4"" of type '" "faiss::ScalarQuantizer::QuantizerType""'");
40819 Py_BEGIN_ALLOW_THREADS
40823 PyEval_RestoreThread(_save);
40824 PyErr_SetString(PyExc_RuntimeError, e.
what());
40827 Py_END_ALLOW_THREADS
40829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, SWIG_POINTER_NEW | 0 );
40836 SWIGINTERN PyObject *_wrap_new_IndexIVFScalarQuantizer__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40837 PyObject *resultobj = 0;
40840 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIVFScalarQuantizer")) SWIG_fail;
40842 Py_BEGIN_ALLOW_THREADS
40846 PyEval_RestoreThread(_save);
40847 PyErr_SetString(PyExc_RuntimeError, e.
what());
40850 Py_END_ALLOW_THREADS
40852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, SWIG_POINTER_NEW | 0 );
40859 SWIGINTERN PyObject *_wrap_new_IndexIVFScalarQuantizer(PyObject *
self, PyObject *args) {
40861 PyObject *argv[6] = {
40866 if (!PyTuple_Check(args)) SWIG_fail;
40867 argc = args ? PyObject_Length(args) : 0;
40868 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
40869 argv[ii] = PyTuple_GET_ITEM(args,ii);
40872 return _wrap_new_IndexIVFScalarQuantizer__SWIG_2(
self, args);
40877 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
40878 _v = SWIG_CheckState(res);
40881 int res = SWIG_AsVal_size_t(argv[1], NULL);
40882 _v = SWIG_CheckState(res);
40886 int res = SWIG_AsVal_size_t(argv[2], NULL);
40887 _v = SWIG_CheckState(res);
40891 int res = SWIG_AsVal_int(argv[3], NULL);
40892 _v = SWIG_CheckState(res);
40895 return _wrap_new_IndexIVFScalarQuantizer__SWIG_1(
self, args);
40904 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
40905 _v = SWIG_CheckState(res);
40908 int res = SWIG_AsVal_size_t(argv[1], NULL);
40909 _v = SWIG_CheckState(res);
40913 int res = SWIG_AsVal_size_t(argv[2], NULL);
40914 _v = SWIG_CheckState(res);
40918 int res = SWIG_AsVal_int(argv[3], NULL);
40919 _v = SWIG_CheckState(res);
40923 int res = SWIG_AsVal_int(argv[4], NULL);
40924 _v = SWIG_CheckState(res);
40927 return _wrap_new_IndexIVFScalarQuantizer__SWIG_0(
self, args);
40936 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexIVFScalarQuantizer'.\n"
40937 " Possible C/C++ prototypes are:\n"
40938 " faiss::IndexIVFScalarQuantizer::IndexIVFScalarQuantizer(faiss::Index *,size_t,size_t,faiss::ScalarQuantizer::QuantizerType,faiss::MetricType)\n"
40939 " faiss::IndexIVFScalarQuantizer::IndexIVFScalarQuantizer(faiss::Index *,size_t,size_t,faiss::ScalarQuantizer::QuantizerType)\n"
40940 " faiss::IndexIVFScalarQuantizer::IndexIVFScalarQuantizer()\n");
40945 SWIGINTERN PyObject *_wrap_IndexIVFScalarQuantizer_train_residual(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40946 PyObject *resultobj = 0;
40949 float *arg3 = (
float *) 0 ;
40956 PyObject * obj0 = 0 ;
40957 PyObject * obj1 = 0 ;
40958 PyObject * obj2 = 0 ;
40960 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVFScalarQuantizer_train_residual",&obj0,&obj1,&obj2)) SWIG_fail;
40961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, 0 | 0 );
40962 if (!SWIG_IsOK(res1)) {
40963 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFScalarQuantizer_train_residual" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer *""'");
40966 ecode2 = SWIG_AsVal_long(obj1, &val2);
40967 if (!SWIG_IsOK(ecode2)) {
40968 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFScalarQuantizer_train_residual" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
40971 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
40972 if (!SWIG_IsOK(res3)) {
40973 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFScalarQuantizer_train_residual" "', argument " "3"" of type '" "float const *""'");
40975 arg3 =
reinterpret_cast< float *
>(argp3);
40977 Py_BEGIN_ALLOW_THREADS
40979 (arg1)->train_residual(arg2,(
float const *)arg3);
40981 PyEval_RestoreThread(_save);
40982 PyErr_SetString(PyExc_RuntimeError, e.
what());
40985 Py_END_ALLOW_THREADS
40987 resultobj = SWIG_Py_Void();
40994 SWIGINTERN PyObject *_wrap_IndexIVFScalarQuantizer_encode_vectors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40995 PyObject *resultobj = 0;
40998 float *arg3 = (
float *) 0 ;
41000 uint8_t *arg5 = (uint8_t *) 0 ;
41011 PyObject * obj0 = 0 ;
41012 PyObject * obj1 = 0 ;
41013 PyObject * obj2 = 0 ;
41014 PyObject * obj3 = 0 ;
41015 PyObject * obj4 = 0 ;
41017 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFScalarQuantizer_encode_vectors",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, 0 | 0 );
41019 if (!SWIG_IsOK(res1)) {
41020 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFScalarQuantizer_encode_vectors" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer const *""'");
41023 ecode2 = SWIG_AsVal_long(obj1, &val2);
41024 if (!SWIG_IsOK(ecode2)) {
41025 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFScalarQuantizer_encode_vectors" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
41028 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
41029 if (!SWIG_IsOK(res3)) {
41030 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFScalarQuantizer_encode_vectors" "', argument " "3"" of type '" "float const *""'");
41032 arg3 =
reinterpret_cast< float *
>(argp3);
41033 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
41034 if (!SWIG_IsOK(res4)) {
41035 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFScalarQuantizer_encode_vectors" "', argument " "4"" of type '" "faiss::Index::idx_t const *""'");
41038 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
41039 if (!SWIG_IsOK(res5)) {
41040 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFScalarQuantizer_encode_vectors" "', argument " "5"" of type '" "uint8_t *""'");
41042 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
41044 Py_BEGIN_ALLOW_THREADS
41048 PyEval_RestoreThread(_save);
41049 PyErr_SetString(PyExc_RuntimeError, e.
what());
41052 Py_END_ALLOW_THREADS
41054 resultobj = SWIG_Py_Void();
41061 SWIGINTERN PyObject *_wrap_IndexIVFScalarQuantizer_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41062 PyObject *resultobj = 0;
41065 float *arg3 = (
float *) 0 ;
41066 long *arg4 = (
long *) 0 ;
41075 PyObject * obj0 = 0 ;
41076 PyObject * obj1 = 0 ;
41077 PyObject * obj2 = 0 ;
41078 PyObject * obj3 = 0 ;
41080 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFScalarQuantizer_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, 0 | 0 );
41082 if (!SWIG_IsOK(res1)) {
41083 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFScalarQuantizer_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer *""'");
41086 ecode2 = SWIG_AsVal_long(obj1, &val2);
41087 if (!SWIG_IsOK(ecode2)) {
41088 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFScalarQuantizer_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
41091 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
41092 if (!SWIG_IsOK(res3)) {
41093 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFScalarQuantizer_add_with_ids" "', argument " "3"" of type '" "float const *""'");
41095 arg3 =
reinterpret_cast< float *
>(argp3);
41096 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
41097 if (!SWIG_IsOK(res4)) {
41098 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFScalarQuantizer_add_with_ids" "', argument " "4"" of type '" "long const *""'");
41100 arg4 =
reinterpret_cast< long *
>(argp4);
41102 Py_BEGIN_ALLOW_THREADS
41104 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
41106 PyEval_RestoreThread(_save);
41107 PyErr_SetString(PyExc_RuntimeError, e.
what());
41110 Py_END_ALLOW_THREADS
41112 resultobj = SWIG_Py_Void();
41119 SWIGINTERN PyObject *_wrap_IndexIVFScalarQuantizer_get_InvertedListScanner(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41120 PyObject *resultobj = 0;
41127 PyObject * obj0 = 0 ;
41128 PyObject * obj1 = 0 ;
41131 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFScalarQuantizer_get_InvertedListScanner",&obj0,&obj1)) SWIG_fail;
41132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, 0 | 0 );
41133 if (!SWIG_IsOK(res1)) {
41134 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFScalarQuantizer_get_InvertedListScanner" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer const *""'");
41137 ecode2 = SWIG_AsVal_bool(obj1, &val2);
41138 if (!SWIG_IsOK(ecode2)) {
41139 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFScalarQuantizer_get_InvertedListScanner" "', argument " "2"" of type '" "bool""'");
41141 arg2 =
static_cast< bool >(val2);
41143 Py_BEGIN_ALLOW_THREADS
41147 PyEval_RestoreThread(_save);
41148 PyErr_SetString(PyExc_RuntimeError, e.
what());
41151 Py_END_ALLOW_THREADS
41153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedListScanner, 0 | 0 );
41160 SWIGINTERN PyObject *_wrap_IndexIVFScalarQuantizer_reconstruct_from_offset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41161 PyObject *resultobj = 0;
41165 float *arg4 = (
float *) 0 ;
41174 PyObject * obj0 = 0 ;
41175 PyObject * obj1 = 0 ;
41176 PyObject * obj2 = 0 ;
41177 PyObject * obj3 = 0 ;
41179 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFScalarQuantizer_reconstruct_from_offset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, 0 | 0 );
41181 if (!SWIG_IsOK(res1)) {
41182 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFScalarQuantizer_reconstruct_from_offset" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer const *""'");
41185 ecode2 = SWIG_AsVal_long(obj1, &val2);
41186 if (!SWIG_IsOK(ecode2)) {
41187 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFScalarQuantizer_reconstruct_from_offset" "', argument " "2"" of type '" "long""'");
41189 arg2 =
static_cast< long >(val2);
41190 ecode3 = SWIG_AsVal_long(obj2, &val3);
41191 if (!SWIG_IsOK(ecode3)) {
41192 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVFScalarQuantizer_reconstruct_from_offset" "', argument " "3"" of type '" "long""'");
41194 arg3 =
static_cast< long >(val3);
41195 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
41196 if (!SWIG_IsOK(res4)) {
41197 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFScalarQuantizer_reconstruct_from_offset" "', argument " "4"" of type '" "float *""'");
41199 arg4 =
reinterpret_cast< float *
>(argp4);
41201 Py_BEGIN_ALLOW_THREADS
41205 PyEval_RestoreThread(_save);
41206 PyErr_SetString(PyExc_RuntimeError, e.
what());
41209 Py_END_ALLOW_THREADS
41211 resultobj = SWIG_Py_Void();
41218 SWIGINTERN PyObject *_wrap_delete_IndexIVFScalarQuantizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41219 PyObject *resultobj = 0;
41223 PyObject * obj0 = 0 ;
41225 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVFScalarQuantizer",&obj0)) SWIG_fail;
41226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, SWIG_POINTER_DISOWN | 0 );
41227 if (!SWIG_IsOK(res1)) {
41228 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVFScalarQuantizer" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer *""'");
41232 resultobj = SWIG_Py_Void();
41239 SWIGINTERN PyObject *IndexIVFScalarQuantizer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41241 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
41242 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, SWIG_NewClientData(obj));
41243 return SWIG_Py_Void();
41246 SWIGINTERN PyObject *_wrap_HNSW_assign_probas_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41247 PyObject *resultobj = 0;
41249 std::vector< double > *arg2 = (std::vector< double > *) 0 ;
41254 PyObject * obj0 = 0 ;
41255 PyObject * obj1 = 0 ;
41257 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_assign_probas_set",&obj0,&obj1)) SWIG_fail;
41258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41259 if (!SWIG_IsOK(res1)) {
41260 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_assign_probas_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
41263 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
41264 if (!SWIG_IsOK(res2)) {
41265 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_assign_probas_set" "', argument " "2"" of type '" "std::vector< double > *""'");
41267 arg2 =
reinterpret_cast< std::vector< double > *
>(argp2);
41268 if (arg1) (arg1)->assign_probas = *arg2;
41269 resultobj = SWIG_Py_Void();
41276 SWIGINTERN PyObject *_wrap_HNSW_assign_probas_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41277 PyObject *resultobj = 0;
41281 PyObject * obj0 = 0 ;
41282 std::vector< double > *result = 0 ;
41284 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_assign_probas_get",&obj0)) SWIG_fail;
41285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41286 if (!SWIG_IsOK(res1)) {
41287 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_assign_probas_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
41290 result = (std::vector< double > *)& ((arg1)->assign_probas);
41291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
41298 SWIGINTERN PyObject *_wrap_HNSW_cum_nneighbor_per_level_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41299 PyObject *resultobj = 0;
41301 std::vector< int > *arg2 = (std::vector< int > *) 0 ;
41306 PyObject * obj0 = 0 ;
41307 PyObject * obj1 = 0 ;
41309 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_cum_nneighbor_per_level_set",&obj0,&obj1)) SWIG_fail;
41310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41311 if (!SWIG_IsOK(res1)) {
41312 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_cum_nneighbor_per_level_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
41315 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
41316 if (!SWIG_IsOK(res2)) {
41317 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_cum_nneighbor_per_level_set" "', argument " "2"" of type '" "std::vector< int > *""'");
41319 arg2 =
reinterpret_cast< std::vector< int > *
>(argp2);
41320 if (arg1) (arg1)->cum_nneighbor_per_level = *arg2;
41321 resultobj = SWIG_Py_Void();
41328 SWIGINTERN PyObject *_wrap_HNSW_cum_nneighbor_per_level_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41329 PyObject *resultobj = 0;
41333 PyObject * obj0 = 0 ;
41334 std::vector< int > *result = 0 ;
41336 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_cum_nneighbor_per_level_get",&obj0)) SWIG_fail;
41337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41338 if (!SWIG_IsOK(res1)) {
41339 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_cum_nneighbor_per_level_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
41342 result = (std::vector< int > *)& ((arg1)->cum_nneighbor_per_level);
41343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
41350 SWIGINTERN PyObject *_wrap_HNSW_levels_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41351 PyObject *resultobj = 0;
41353 std::vector< int > *arg2 = (std::vector< int > *) 0 ;
41358 PyObject * obj0 = 0 ;
41359 PyObject * obj1 = 0 ;
41361 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_levels_set",&obj0,&obj1)) SWIG_fail;
41362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41363 if (!SWIG_IsOK(res1)) {
41364 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_levels_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
41367 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
41368 if (!SWIG_IsOK(res2)) {
41369 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_levels_set" "', argument " "2"" of type '" "std::vector< int > *""'");
41371 arg2 =
reinterpret_cast< std::vector< int > *
>(argp2);
41372 if (arg1) (arg1)->levels = *arg2;
41373 resultobj = SWIG_Py_Void();
41380 SWIGINTERN PyObject *_wrap_HNSW_levels_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41381 PyObject *resultobj = 0;
41385 PyObject * obj0 = 0 ;
41386 std::vector< int > *result = 0 ;
41388 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_levels_get",&obj0)) SWIG_fail;
41389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41390 if (!SWIG_IsOK(res1)) {
41391 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_levels_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
41394 result = (std::vector< int > *)& ((arg1)->levels);
41395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
41402 SWIGINTERN PyObject *_wrap_HNSW_offsets_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41403 PyObject *resultobj = 0;
41405 std::vector< size_t > *arg2 = (std::vector< size_t > *) 0 ;
41410 PyObject * obj0 = 0 ;
41411 PyObject * obj1 = 0 ;
41413 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_offsets_set",&obj0,&obj1)) SWIG_fail;
41414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41415 if (!SWIG_IsOK(res1)) {
41416 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_offsets_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
41419 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
41420 if (!SWIG_IsOK(res2)) {
41421 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_offsets_set" "', argument " "2"" of type '" "std::vector< size_t > *""'");
41423 arg2 =
reinterpret_cast< std::vector< size_t > *
>(argp2);
41424 if (arg1) (arg1)->offsets = *arg2;
41425 resultobj = SWIG_Py_Void();
41432 SWIGINTERN PyObject *_wrap_HNSW_offsets_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41433 PyObject *resultobj = 0;
41437 PyObject * obj0 = 0 ;
41438 std::vector< size_t > *result = 0 ;
41440 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_offsets_get",&obj0)) SWIG_fail;
41441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41442 if (!SWIG_IsOK(res1)) {
41443 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_offsets_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
41446 result = (std::vector< size_t > *)& ((arg1)->offsets);
41447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
41454 SWIGINTERN PyObject *_wrap_HNSW_neighbors_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41455 PyObject *resultobj = 0;
41457 std::vector< faiss::HNSW::storage_idx_t > *arg2 = (std::vector< faiss::HNSW::storage_idx_t > *) 0 ;
41462 PyObject * obj0 = 0 ;
41463 PyObject * obj1 = 0 ;
41465 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_neighbors_set",&obj0,&obj1)) SWIG_fail;
41466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41467 if (!SWIG_IsOK(res1)) {
41468 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_neighbors_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
41471 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
41472 if (!SWIG_IsOK(res2)) {
41473 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_neighbors_set" "', argument " "2"" of type '" "std::vector< faiss::HNSW::storage_idx_t > *""'");
41475 arg2 =
reinterpret_cast< std::vector< faiss::HNSW::storage_idx_t > *
>(argp2);
41476 if (arg1) (arg1)->neighbors = *arg2;
41477 resultobj = SWIG_Py_Void();
41484 SWIGINTERN PyObject *_wrap_HNSW_neighbors_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41485 PyObject *resultobj = 0;
41489 PyObject * obj0 = 0 ;
41490 std::vector< faiss::HNSW::storage_idx_t > *result = 0 ;
41492 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_neighbors_get",&obj0)) SWIG_fail;
41493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41494 if (!SWIG_IsOK(res1)) {
41495 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_neighbors_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
41498 result = (std::vector< faiss::HNSW::storage_idx_t > *)& ((arg1)->neighbors);
41499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
41506 SWIGINTERN PyObject *_wrap_HNSW_entry_point_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41507 PyObject *resultobj = 0;
41514 PyObject * obj0 = 0 ;
41515 PyObject * obj1 = 0 ;
41517 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_entry_point_set",&obj0,&obj1)) SWIG_fail;
41518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41519 if (!SWIG_IsOK(res1)) {
41520 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_entry_point_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
41523 ecode2 = SWIG_AsVal_int(obj1, &val2);
41524 if (!SWIG_IsOK(ecode2)) {
41525 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_entry_point_set" "', argument " "2"" of type '" "faiss::HNSW::storage_idx_t""'");
41528 if (arg1) (arg1)->entry_point = arg2;
41529 resultobj = SWIG_Py_Void();
41536 SWIGINTERN PyObject *_wrap_HNSW_entry_point_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41537 PyObject *resultobj = 0;
41541 PyObject * obj0 = 0 ;
41544 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_entry_point_get",&obj0)) SWIG_fail;
41545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41546 if (!SWIG_IsOK(res1)) {
41547 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_entry_point_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
41551 resultobj = SWIG_From_int(static_cast< int >(result));
41558 SWIGINTERN PyObject *_wrap_HNSW_rng_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41559 PyObject *resultobj = 0;
41566 PyObject * obj0 = 0 ;
41567 PyObject * obj1 = 0 ;
41569 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_rng_set",&obj0,&obj1)) SWIG_fail;
41570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41571 if (!SWIG_IsOK(res1)) {
41572 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_rng_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
41575 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
41576 if (!SWIG_IsOK(res2)) {
41577 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_rng_set" "', argument " "2"" of type '" "faiss::RandomGenerator *""'");
41580 if (arg1) (arg1)->rng = *arg2;
41581 resultobj = SWIG_Py_Void();
41588 SWIGINTERN PyObject *_wrap_HNSW_rng_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41589 PyObject *resultobj = 0;
41593 PyObject * obj0 = 0 ;
41596 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_rng_get",&obj0)) SWIG_fail;
41597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41598 if (!SWIG_IsOK(res1)) {
41599 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_rng_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
41603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
41610 SWIGINTERN PyObject *_wrap_HNSW_max_level_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41611 PyObject *resultobj = 0;
41618 PyObject * obj0 = 0 ;
41619 PyObject * obj1 = 0 ;
41621 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_max_level_set",&obj0,&obj1)) SWIG_fail;
41622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41623 if (!SWIG_IsOK(res1)) {
41624 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_max_level_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
41627 ecode2 = SWIG_AsVal_int(obj1, &val2);
41628 if (!SWIG_IsOK(ecode2)) {
41629 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_max_level_set" "', argument " "2"" of type '" "int""'");
41631 arg2 =
static_cast< int >(val2);
41632 if (arg1) (arg1)->max_level = arg2;
41633 resultobj = SWIG_Py_Void();
41640 SWIGINTERN PyObject *_wrap_HNSW_max_level_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41641 PyObject *resultobj = 0;
41645 PyObject * obj0 = 0 ;
41648 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_max_level_get",&obj0)) SWIG_fail;
41649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41650 if (!SWIG_IsOK(res1)) {
41651 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_max_level_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
41654 result = (int) ((arg1)->max_level);
41655 resultobj = SWIG_From_int(static_cast< int >(result));
41662 SWIGINTERN PyObject *_wrap_HNSW_efConstruction_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41663 PyObject *resultobj = 0;
41670 PyObject * obj0 = 0 ;
41671 PyObject * obj1 = 0 ;
41673 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_efConstruction_set",&obj0,&obj1)) SWIG_fail;
41674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41675 if (!SWIG_IsOK(res1)) {
41676 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_efConstruction_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
41679 ecode2 = SWIG_AsVal_int(obj1, &val2);
41680 if (!SWIG_IsOK(ecode2)) {
41681 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_efConstruction_set" "', argument " "2"" of type '" "int""'");
41683 arg2 =
static_cast< int >(val2);
41684 if (arg1) (arg1)->efConstruction = arg2;
41685 resultobj = SWIG_Py_Void();
41692 SWIGINTERN PyObject *_wrap_HNSW_efConstruction_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41693 PyObject *resultobj = 0;
41697 PyObject * obj0 = 0 ;
41700 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_efConstruction_get",&obj0)) SWIG_fail;
41701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41702 if (!SWIG_IsOK(res1)) {
41703 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_efConstruction_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
41706 result = (int) ((arg1)->efConstruction);
41707 resultobj = SWIG_From_int(static_cast< int >(result));
41714 SWIGINTERN PyObject *_wrap_HNSW_efSearch_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41715 PyObject *resultobj = 0;
41722 PyObject * obj0 = 0 ;
41723 PyObject * obj1 = 0 ;
41725 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_efSearch_set",&obj0,&obj1)) SWIG_fail;
41726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41727 if (!SWIG_IsOK(res1)) {
41728 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_efSearch_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
41731 ecode2 = SWIG_AsVal_int(obj1, &val2);
41732 if (!SWIG_IsOK(ecode2)) {
41733 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_efSearch_set" "', argument " "2"" of type '" "int""'");
41735 arg2 =
static_cast< int >(val2);
41736 if (arg1) (arg1)->efSearch = arg2;
41737 resultobj = SWIG_Py_Void();
41744 SWIGINTERN PyObject *_wrap_HNSW_efSearch_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41745 PyObject *resultobj = 0;
41749 PyObject * obj0 = 0 ;
41752 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_efSearch_get",&obj0)) SWIG_fail;
41753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41754 if (!SWIG_IsOK(res1)) {
41755 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_efSearch_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
41758 result = (int) ((arg1)->efSearch);
41759 resultobj = SWIG_From_int(static_cast< int >(result));
41766 SWIGINTERN PyObject *_wrap_HNSW_upper_beam_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41767 PyObject *resultobj = 0;
41774 PyObject * obj0 = 0 ;
41775 PyObject * obj1 = 0 ;
41777 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_upper_beam_set",&obj0,&obj1)) SWIG_fail;
41778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41779 if (!SWIG_IsOK(res1)) {
41780 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_upper_beam_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
41783 ecode2 = SWIG_AsVal_int(obj1, &val2);
41784 if (!SWIG_IsOK(ecode2)) {
41785 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_upper_beam_set" "', argument " "2"" of type '" "int""'");
41787 arg2 =
static_cast< int >(val2);
41788 if (arg1) (arg1)->upper_beam = arg2;
41789 resultobj = SWIG_Py_Void();
41796 SWIGINTERN PyObject *_wrap_HNSW_upper_beam_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41797 PyObject *resultobj = 0;
41801 PyObject * obj0 = 0 ;
41804 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_upper_beam_get",&obj0)) SWIG_fail;
41805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41806 if (!SWIG_IsOK(res1)) {
41807 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_upper_beam_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
41810 result = (int) ((arg1)->upper_beam);
41811 resultobj = SWIG_From_int(static_cast< int >(result));
41818 SWIGINTERN PyObject *_wrap_HNSW_set_default_probas(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41819 PyObject *resultobj = 0;
41829 PyObject * obj0 = 0 ;
41830 PyObject * obj1 = 0 ;
41831 PyObject * obj2 = 0 ;
41833 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HNSW_set_default_probas",&obj0,&obj1,&obj2)) SWIG_fail;
41834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41835 if (!SWIG_IsOK(res1)) {
41836 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_set_default_probas" "', argument " "1"" of type '" "faiss::HNSW *""'");
41839 ecode2 = SWIG_AsVal_int(obj1, &val2);
41840 if (!SWIG_IsOK(ecode2)) {
41841 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_set_default_probas" "', argument " "2"" of type '" "int""'");
41843 arg2 =
static_cast< int >(val2);
41844 ecode3 = SWIG_AsVal_float(obj2, &val3);
41845 if (!SWIG_IsOK(ecode3)) {
41846 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_set_default_probas" "', argument " "3"" of type '" "float""'");
41848 arg3 =
static_cast< float >(val3);
41850 Py_BEGIN_ALLOW_THREADS
41852 (arg1)->set_default_probas(arg2,arg3);
41854 PyEval_RestoreThread(_save);
41855 PyErr_SetString(PyExc_RuntimeError, e.
what());
41858 Py_END_ALLOW_THREADS
41860 resultobj = SWIG_Py_Void();
41867 SWIGINTERN PyObject *_wrap_HNSW_set_nb_neighbors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41868 PyObject *resultobj = 0;
41878 PyObject * obj0 = 0 ;
41879 PyObject * obj1 = 0 ;
41880 PyObject * obj2 = 0 ;
41882 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HNSW_set_nb_neighbors",&obj0,&obj1,&obj2)) SWIG_fail;
41883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41884 if (!SWIG_IsOK(res1)) {
41885 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_set_nb_neighbors" "', argument " "1"" of type '" "faiss::HNSW *""'");
41888 ecode2 = SWIG_AsVal_int(obj1, &val2);
41889 if (!SWIG_IsOK(ecode2)) {
41890 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_set_nb_neighbors" "', argument " "2"" of type '" "int""'");
41892 arg2 =
static_cast< int >(val2);
41893 ecode3 = SWIG_AsVal_int(obj2, &val3);
41894 if (!SWIG_IsOK(ecode3)) {
41895 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_set_nb_neighbors" "', argument " "3"" of type '" "int""'");
41897 arg3 =
static_cast< int >(val3);
41899 Py_BEGIN_ALLOW_THREADS
41901 (arg1)->set_nb_neighbors(arg2,arg3);
41903 PyEval_RestoreThread(_save);
41904 PyErr_SetString(PyExc_RuntimeError, e.
what());
41907 Py_END_ALLOW_THREADS
41909 resultobj = SWIG_Py_Void();
41916 SWIGINTERN PyObject *_wrap_HNSW_nb_neighbors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41917 PyObject *resultobj = 0;
41924 PyObject * obj0 = 0 ;
41925 PyObject * obj1 = 0 ;
41928 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_nb_neighbors",&obj0,&obj1)) SWIG_fail;
41929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41930 if (!SWIG_IsOK(res1)) {
41931 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_nb_neighbors" "', argument " "1"" of type '" "faiss::HNSW const *""'");
41934 ecode2 = SWIG_AsVal_int(obj1, &val2);
41935 if (!SWIG_IsOK(ecode2)) {
41936 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_nb_neighbors" "', argument " "2"" of type '" "int""'");
41938 arg2 =
static_cast< int >(val2);
41940 Py_BEGIN_ALLOW_THREADS
41942 result = (int)((
faiss::HNSW const *)arg1)->nb_neighbors(arg2);
41944 PyEval_RestoreThread(_save);
41945 PyErr_SetString(PyExc_RuntimeError, e.
what());
41948 Py_END_ALLOW_THREADS
41950 resultobj = SWIG_From_int(static_cast< int >(result));
41957 SWIGINTERN PyObject *_wrap_HNSW_cum_nb_neighbors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41958 PyObject *resultobj = 0;
41965 PyObject * obj0 = 0 ;
41966 PyObject * obj1 = 0 ;
41969 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_cum_nb_neighbors",&obj0,&obj1)) SWIG_fail;
41970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
41971 if (!SWIG_IsOK(res1)) {
41972 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_cum_nb_neighbors" "', argument " "1"" of type '" "faiss::HNSW const *""'");
41975 ecode2 = SWIG_AsVal_int(obj1, &val2);
41976 if (!SWIG_IsOK(ecode2)) {
41977 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_cum_nb_neighbors" "', argument " "2"" of type '" "int""'");
41979 arg2 =
static_cast< int >(val2);
41981 Py_BEGIN_ALLOW_THREADS
41983 result = (int)((
faiss::HNSW const *)arg1)->cum_nb_neighbors(arg2);
41985 PyEval_RestoreThread(_save);
41986 PyErr_SetString(PyExc_RuntimeError, e.
what());
41989 Py_END_ALLOW_THREADS
41991 resultobj = SWIG_From_int(static_cast< int >(result));
41998 SWIGINTERN PyObject *_wrap_HNSW_neighbor_range(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41999 PyObject *resultobj = 0;
42003 size_t *arg4 = (
size_t *) 0 ;
42004 size_t *arg5 = (
size_t *) 0 ;
42015 PyObject * obj0 = 0 ;
42016 PyObject * obj1 = 0 ;
42017 PyObject * obj2 = 0 ;
42018 PyObject * obj3 = 0 ;
42019 PyObject * obj4 = 0 ;
42021 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:HNSW_neighbor_range",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
42022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42023 if (!SWIG_IsOK(res1)) {
42024 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_neighbor_range" "', argument " "1"" of type '" "faiss::HNSW const *""'");
42027 ecode2 = SWIG_AsVal_long(obj1, &val2);
42028 if (!SWIG_IsOK(ecode2)) {
42029 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_neighbor_range" "', argument " "2"" of type '" "faiss::HNSW::idx_t""'");
42032 ecode3 = SWIG_AsVal_int(obj2, &val3);
42033 if (!SWIG_IsOK(ecode3)) {
42034 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_neighbor_range" "', argument " "3"" of type '" "int""'");
42036 arg3 =
static_cast< int >(val3);
42037 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_long, 0 | 0 );
42038 if (!SWIG_IsOK(res4)) {
42039 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "HNSW_neighbor_range" "', argument " "4"" of type '" "size_t *""'");
42041 arg4 =
reinterpret_cast< size_t *
>(argp4);
42042 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_long, 0 | 0 );
42043 if (!SWIG_IsOK(res5)) {
42044 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "HNSW_neighbor_range" "', argument " "5"" of type '" "size_t *""'");
42046 arg5 =
reinterpret_cast< size_t *
>(argp5);
42048 Py_BEGIN_ALLOW_THREADS
42050 ((
faiss::HNSW const *)arg1)->neighbor_range(arg2,arg3,arg4,arg5);
42052 PyEval_RestoreThread(_save);
42053 PyErr_SetString(PyExc_RuntimeError, e.
what());
42056 Py_END_ALLOW_THREADS
42058 resultobj = SWIG_Py_Void();
42065 SWIGINTERN PyObject *_wrap_new_HNSW__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42066 PyObject *resultobj = 0;
42070 PyObject * obj0 = 0 ;
42073 if (!PyArg_ParseTuple(args,(
char *)
"O:new_HNSW",&obj0)) SWIG_fail;
42074 ecode1 = SWIG_AsVal_int(obj0, &val1);
42075 if (!SWIG_IsOK(ecode1)) {
42076 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_HNSW" "', argument " "1"" of type '" "int""'");
42078 arg1 =
static_cast< int >(val1);
42080 Py_BEGIN_ALLOW_THREADS
42084 PyEval_RestoreThread(_save);
42085 PyErr_SetString(PyExc_RuntimeError, e.
what());
42088 Py_END_ALLOW_THREADS
42090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW, SWIG_POINTER_NEW | 0 );
42097 SWIGINTERN PyObject *_wrap_new_HNSW__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42098 PyObject *resultobj = 0;
42101 if (!PyArg_ParseTuple(args,(
char *)
":new_HNSW")) SWIG_fail;
42103 Py_BEGIN_ALLOW_THREADS
42107 PyEval_RestoreThread(_save);
42108 PyErr_SetString(PyExc_RuntimeError, e.
what());
42111 Py_END_ALLOW_THREADS
42113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW, SWIG_POINTER_NEW | 0 );
42120 SWIGINTERN PyObject *_wrap_new_HNSW(PyObject *
self, PyObject *args) {
42122 PyObject *argv[2] = {
42127 if (!PyTuple_Check(args)) SWIG_fail;
42128 argc = args ? PyObject_Length(args) : 0;
42129 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
42130 argv[ii] = PyTuple_GET_ITEM(args,ii);
42133 return _wrap_new_HNSW__SWIG_1(
self, args);
42138 int res = SWIG_AsVal_int(argv[0], NULL);
42139 _v = SWIG_CheckState(res);
42142 return _wrap_new_HNSW__SWIG_0(
self, args);
42147 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HNSW'.\n"
42148 " Possible C/C++ prototypes are:\n"
42149 " faiss::HNSW::HNSW(int)\n"
42150 " faiss::HNSW::HNSW()\n");
42155 SWIGINTERN PyObject *_wrap_HNSW_random_level(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42156 PyObject *resultobj = 0;
42160 PyObject * obj0 = 0 ;
42163 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_random_level",&obj0)) SWIG_fail;
42164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42165 if (!SWIG_IsOK(res1)) {
42166 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_random_level" "', argument " "1"" of type '" "faiss::HNSW *""'");
42170 Py_BEGIN_ALLOW_THREADS
42174 PyEval_RestoreThread(_save);
42175 PyErr_SetString(PyExc_RuntimeError, e.
what());
42178 Py_END_ALLOW_THREADS
42180 resultobj = SWIG_From_int(static_cast< int >(result));
42187 SWIGINTERN PyObject *_wrap_HNSW_fill_with_random_links(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42188 PyObject *resultobj = 0;
42195 PyObject * obj0 = 0 ;
42196 PyObject * obj1 = 0 ;
42198 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_fill_with_random_links",&obj0,&obj1)) SWIG_fail;
42199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42200 if (!SWIG_IsOK(res1)) {
42201 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_fill_with_random_links" "', argument " "1"" of type '" "faiss::HNSW *""'");
42204 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42205 if (!SWIG_IsOK(ecode2)) {
42206 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_fill_with_random_links" "', argument " "2"" of type '" "size_t""'");
42208 arg2 =
static_cast< size_t >(val2);
42210 Py_BEGIN_ALLOW_THREADS
42212 (arg1)->fill_with_random_links(arg2);
42214 PyEval_RestoreThread(_save);
42215 PyErr_SetString(PyExc_RuntimeError, e.
what());
42218 Py_END_ALLOW_THREADS
42220 resultobj = SWIG_Py_Void();
42227 SWIGINTERN PyObject *_wrap_HNSW_add_links_starting_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42228 PyObject *resultobj = 0;
42235 omp_lock_t *arg7 = (omp_lock_t *) 0 ;
42253 PyObject * obj0 = 0 ;
42254 PyObject * obj1 = 0 ;
42255 PyObject * obj2 = 0 ;
42256 PyObject * obj3 = 0 ;
42257 PyObject * obj4 = 0 ;
42258 PyObject * obj5 = 0 ;
42259 PyObject * obj6 = 0 ;
42260 PyObject * obj7 = 0 ;
42262 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:HNSW_add_links_starting_from",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42264 if (!SWIG_IsOK(res1)) {
42265 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_add_links_starting_from" "', argument " "1"" of type '" "faiss::HNSW *""'");
42268 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 );
42269 if (!SWIG_IsOK(res2)) {
42270 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_add_links_starting_from" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
42273 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_add_links_starting_from" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
42276 ecode3 = SWIG_AsVal_int(obj2, &val3);
42277 if (!SWIG_IsOK(ecode3)) {
42278 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_add_links_starting_from" "', argument " "3"" of type '" "faiss::HNSW::storage_idx_t""'");
42281 ecode4 = SWIG_AsVal_int(obj3, &val4);
42282 if (!SWIG_IsOK(ecode4)) {
42283 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "HNSW_add_links_starting_from" "', argument " "4"" of type '" "faiss::HNSW::storage_idx_t""'");
42286 ecode5 = SWIG_AsVal_float(obj4, &val5);
42287 if (!SWIG_IsOK(ecode5)) {
42288 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "HNSW_add_links_starting_from" "', argument " "5"" of type '" "float""'");
42290 arg5 =
static_cast< float >(val5);
42291 ecode6 = SWIG_AsVal_int(obj5, &val6);
42292 if (!SWIG_IsOK(ecode6)) {
42293 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "HNSW_add_links_starting_from" "', argument " "6"" of type '" "int""'");
42295 arg6 =
static_cast< int >(val6);
42296 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_omp_lock_t, 0 | 0 );
42297 if (!SWIG_IsOK(res7)) {
42298 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "HNSW_add_links_starting_from" "', argument " "7"" of type '" "omp_lock_t *""'");
42300 arg7 =
reinterpret_cast< omp_lock_t *
>(argp7);
42301 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_faiss__VisitedTable, 0 );
42302 if (!SWIG_IsOK(res8)) {
42303 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "HNSW_add_links_starting_from" "', argument " "8"" of type '" "faiss::VisitedTable &""'");
42306 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_add_links_starting_from" "', argument " "8"" of type '" "faiss::VisitedTable &""'");
42310 Py_BEGIN_ALLOW_THREADS
42312 (arg1)->add_links_starting_from(*arg2,arg3,arg4,arg5,arg6,arg7,*arg8);
42314 PyEval_RestoreThread(_save);
42315 PyErr_SetString(PyExc_RuntimeError, e.
what());
42318 Py_END_ALLOW_THREADS
42320 resultobj = SWIG_Py_Void();
42327 SWIGINTERN PyObject *_wrap_HNSW_add_with_locks(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42328 PyObject *resultobj = 0;
42333 std::vector< omp_lock_t > *arg5 = 0 ;
42347 PyObject * obj0 = 0 ;
42348 PyObject * obj1 = 0 ;
42349 PyObject * obj2 = 0 ;
42350 PyObject * obj3 = 0 ;
42351 PyObject * obj4 = 0 ;
42352 PyObject * obj5 = 0 ;
42354 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:HNSW_add_with_locks",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
42355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42356 if (!SWIG_IsOK(res1)) {
42357 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_add_with_locks" "', argument " "1"" of type '" "faiss::HNSW *""'");
42360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 );
42361 if (!SWIG_IsOK(res2)) {
42362 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_add_with_locks" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
42365 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_add_with_locks" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
42368 ecode3 = SWIG_AsVal_int(obj2, &val3);
42369 if (!SWIG_IsOK(ecode3)) {
42370 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_add_with_locks" "', argument " "3"" of type '" "int""'");
42372 arg3 =
static_cast< int >(val3);
42373 ecode4 = SWIG_AsVal_int(obj3, &val4);
42374 if (!SWIG_IsOK(ecode4)) {
42375 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "HNSW_add_with_locks" "', argument " "4"" of type '" "int""'");
42377 arg4 =
static_cast< int >(val4);
42378 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_std__vectorT_omp_lock_t_t, 0 );
42379 if (!SWIG_IsOK(res5)) {
42380 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "HNSW_add_with_locks" "', argument " "5"" of type '" "std::vector< omp_lock_t > &""'");
42383 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_add_with_locks" "', argument " "5"" of type '" "std::vector< omp_lock_t > &""'");
42385 arg5 =
reinterpret_cast< std::vector< omp_lock_t > *
>(argp5);
42386 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_faiss__VisitedTable, 0 );
42387 if (!SWIG_IsOK(res6)) {
42388 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "HNSW_add_with_locks" "', argument " "6"" of type '" "faiss::VisitedTable &""'");
42391 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_add_with_locks" "', argument " "6"" of type '" "faiss::VisitedTable &""'");
42395 Py_BEGIN_ALLOW_THREADS
42397 (arg1)->add_with_locks(*arg2,arg3,arg4,*arg5,*arg6);
42399 PyEval_RestoreThread(_save);
42400 PyErr_SetString(PyExc_RuntimeError, e.
what());
42403 Py_END_ALLOW_THREADS
42405 resultobj = SWIG_Py_Void();
42412 SWIGINTERN PyObject *_wrap_HNSW_search_from_candidates__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42413 PyObject *resultobj = 0;
42418 float *arg5 = (
float *) 0 ;
42441 PyObject * obj0 = 0 ;
42442 PyObject * obj1 = 0 ;
42443 PyObject * obj2 = 0 ;
42444 PyObject * obj3 = 0 ;
42445 PyObject * obj4 = 0 ;
42446 PyObject * obj5 = 0 ;
42447 PyObject * obj6 = 0 ;
42448 PyObject * obj7 = 0 ;
42449 PyObject * obj8 = 0 ;
42452 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOO:HNSW_search_from_candidates",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42454 if (!SWIG_IsOK(res1)) {
42455 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_search_from_candidates" "', argument " "1"" of type '" "faiss::HNSW const *""'");
42458 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 );
42459 if (!SWIG_IsOK(res2)) {
42460 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_search_from_candidates" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
42463 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from_candidates" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
42466 ecode3 = SWIG_AsVal_int(obj2, &val3);
42467 if (!SWIG_IsOK(ecode3)) {
42468 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_search_from_candidates" "', argument " "3"" of type '" "int""'");
42470 arg3 =
static_cast< int >(val3);
42471 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
42472 if (!SWIG_IsOK(res4)) {
42473 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "HNSW_search_from_candidates" "', argument " "4"" of type '" "faiss::HNSW::idx_t *""'");
42476 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
42477 if (!SWIG_IsOK(res5)) {
42478 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "HNSW_search_from_candidates" "', argument " "5"" of type '" "float *""'");
42480 arg5 =
reinterpret_cast< float *
>(argp5);
42481 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_faiss__HNSW__MinimaxHeap, 0 );
42482 if (!SWIG_IsOK(res6)) {
42483 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "HNSW_search_from_candidates" "', argument " "6"" of type '" "faiss::HNSW::MinimaxHeap &""'");
42486 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from_candidates" "', argument " "6"" of type '" "faiss::HNSW::MinimaxHeap &""'");
42489 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_faiss__VisitedTable, 0 );
42490 if (!SWIG_IsOK(res7)) {
42491 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "HNSW_search_from_candidates" "', argument " "7"" of type '" "faiss::VisitedTable &""'");
42494 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from_candidates" "', argument " "7"" of type '" "faiss::VisitedTable &""'");
42497 ecode8 = SWIG_AsVal_int(obj7, &val8);
42498 if (!SWIG_IsOK(ecode8)) {
42499 SWIG_exception_fail(SWIG_ArgError(ecode8),
"in method '" "HNSW_search_from_candidates" "', argument " "8"" of type '" "int""'");
42501 arg8 =
static_cast< int >(val8);
42502 ecode9 = SWIG_AsVal_int(obj8, &val9);
42503 if (!SWIG_IsOK(ecode9)) {
42504 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "HNSW_search_from_candidates" "', argument " "9"" of type '" "int""'");
42506 arg9 =
static_cast< int >(val9);
42508 Py_BEGIN_ALLOW_THREADS
42510 result = (int)((
faiss::HNSW const *)arg1)->search_from_candidates(*arg2,arg3,arg4,arg5,*arg6,*arg7,arg8,arg9);
42512 PyEval_RestoreThread(_save);
42513 PyErr_SetString(PyExc_RuntimeError, e.
what());
42516 Py_END_ALLOW_THREADS
42518 resultobj = SWIG_From_int(static_cast< int >(result));
42525 SWIGINTERN PyObject *_wrap_HNSW_search_from_candidates__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42526 PyObject *resultobj = 0;
42531 float *arg5 = (
float *) 0 ;
42551 PyObject * obj0 = 0 ;
42552 PyObject * obj1 = 0 ;
42553 PyObject * obj2 = 0 ;
42554 PyObject * obj3 = 0 ;
42555 PyObject * obj4 = 0 ;
42556 PyObject * obj5 = 0 ;
42557 PyObject * obj6 = 0 ;
42558 PyObject * obj7 = 0 ;
42561 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:HNSW_search_from_candidates",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42563 if (!SWIG_IsOK(res1)) {
42564 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_search_from_candidates" "', argument " "1"" of type '" "faiss::HNSW const *""'");
42567 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 );
42568 if (!SWIG_IsOK(res2)) {
42569 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_search_from_candidates" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
42572 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from_candidates" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
42575 ecode3 = SWIG_AsVal_int(obj2, &val3);
42576 if (!SWIG_IsOK(ecode3)) {
42577 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_search_from_candidates" "', argument " "3"" of type '" "int""'");
42579 arg3 =
static_cast< int >(val3);
42580 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
42581 if (!SWIG_IsOK(res4)) {
42582 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "HNSW_search_from_candidates" "', argument " "4"" of type '" "faiss::HNSW::idx_t *""'");
42585 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
42586 if (!SWIG_IsOK(res5)) {
42587 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "HNSW_search_from_candidates" "', argument " "5"" of type '" "float *""'");
42589 arg5 =
reinterpret_cast< float *
>(argp5);
42590 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_faiss__HNSW__MinimaxHeap, 0 );
42591 if (!SWIG_IsOK(res6)) {
42592 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "HNSW_search_from_candidates" "', argument " "6"" of type '" "faiss::HNSW::MinimaxHeap &""'");
42595 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from_candidates" "', argument " "6"" of type '" "faiss::HNSW::MinimaxHeap &""'");
42598 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_faiss__VisitedTable, 0 );
42599 if (!SWIG_IsOK(res7)) {
42600 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "HNSW_search_from_candidates" "', argument " "7"" of type '" "faiss::VisitedTable &""'");
42603 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from_candidates" "', argument " "7"" of type '" "faiss::VisitedTable &""'");
42606 ecode8 = SWIG_AsVal_int(obj7, &val8);
42607 if (!SWIG_IsOK(ecode8)) {
42608 SWIG_exception_fail(SWIG_ArgError(ecode8),
"in method '" "HNSW_search_from_candidates" "', argument " "8"" of type '" "int""'");
42610 arg8 =
static_cast< int >(val8);
42612 Py_BEGIN_ALLOW_THREADS
42614 result = (int)((
faiss::HNSW const *)arg1)->search_from_candidates(*arg2,arg3,arg4,arg5,*arg6,*arg7,arg8);
42616 PyEval_RestoreThread(_save);
42617 PyErr_SetString(PyExc_RuntimeError, e.
what());
42620 Py_END_ALLOW_THREADS
42622 resultobj = SWIG_From_int(static_cast< int >(result));
42629 SWIGINTERN PyObject *_wrap_HNSW_search_from_candidates(PyObject *
self, PyObject *args) {
42631 PyObject *argv[10] = {
42636 if (!PyTuple_Check(args)) SWIG_fail;
42637 argc = args ? PyObject_Length(args) : 0;
42638 for (ii = 0; (ii < 9) && (ii < argc); ii++) {
42639 argv[ii] = PyTuple_GET_ITEM(args,ii);
42644 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HNSW, 0);
42645 _v = SWIG_CheckState(res);
42648 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0);
42649 _v = SWIG_CheckState(res);
42652 int res = SWIG_AsVal_int(argv[2], NULL);
42653 _v = SWIG_CheckState(res);
42657 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
42658 _v = SWIG_CheckState(res);
42661 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
42662 _v = SWIG_CheckState(res);
42665 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HNSW__MinimaxHeap, 0);
42666 _v = SWIG_CheckState(res);
42669 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_faiss__VisitedTable, 0);
42670 _v = SWIG_CheckState(res);
42673 int res = SWIG_AsVal_int(argv[7], NULL);
42674 _v = SWIG_CheckState(res);
42677 return _wrap_HNSW_search_from_candidates__SWIG_1(
self, args);
42690 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HNSW, 0);
42691 _v = SWIG_CheckState(res);
42694 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0);
42695 _v = SWIG_CheckState(res);
42698 int res = SWIG_AsVal_int(argv[2], NULL);
42699 _v = SWIG_CheckState(res);
42703 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
42704 _v = SWIG_CheckState(res);
42707 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
42708 _v = SWIG_CheckState(res);
42711 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HNSW__MinimaxHeap, 0);
42712 _v = SWIG_CheckState(res);
42715 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_faiss__VisitedTable, 0);
42716 _v = SWIG_CheckState(res);
42719 int res = SWIG_AsVal_int(argv[7], NULL);
42720 _v = SWIG_CheckState(res);
42724 int res = SWIG_AsVal_int(argv[8], NULL);
42725 _v = SWIG_CheckState(res);
42728 return _wrap_HNSW_search_from_candidates__SWIG_0(
self, args);
42741 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'HNSW_search_from_candidates'.\n"
42742 " Possible C/C++ prototypes are:\n"
42743 " faiss::HNSW::search_from_candidates(faiss::HNSW::DistanceComputer &,int,faiss::HNSW::idx_t *,float *,faiss::HNSW::MinimaxHeap &,faiss::VisitedTable &,int,int) const\n"
42744 " faiss::HNSW::search_from_candidates(faiss::HNSW::DistanceComputer &,int,faiss::HNSW::idx_t *,float *,faiss::HNSW::MinimaxHeap &,faiss::VisitedTable &,int) const\n");
42749 SWIGINTERN PyObject *_wrap_HNSW_search_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42750 PyObject *resultobj = 0;
42752 faiss::HNSW::Node *arg2 = 0 ;
42766 PyObject * obj0 = 0 ;
42767 PyObject * obj1 = 0 ;
42768 PyObject * obj2 = 0 ;
42769 PyObject * obj3 = 0 ;
42770 PyObject * obj4 = 0 ;
42771 std::priority_queue< faiss::HNSW::Node > result;
42773 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:HNSW_search_from",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
42774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42775 if (!SWIG_IsOK(res1)) {
42776 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_search_from" "', argument " "1"" of type '" "faiss::HNSW const *""'");
42779 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__pairT_float_int_t, 0 | 0);
42780 if (!SWIG_IsOK(res2)) {
42781 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_search_from" "', argument " "2"" of type '" "faiss::HNSW::Node const &""'");
42784 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from" "', argument " "2"" of type '" "faiss::HNSW::Node const &""'");
42786 arg2 =
reinterpret_cast< faiss::HNSW::Node *
>(argp2);
42787 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 );
42788 if (!SWIG_IsOK(res3)) {
42789 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "HNSW_search_from" "', argument " "3"" of type '" "faiss::HNSW::DistanceComputer &""'");
42792 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from" "', argument " "3"" of type '" "faiss::HNSW::DistanceComputer &""'");
42795 ecode4 = SWIG_AsVal_int(obj3, &val4);
42796 if (!SWIG_IsOK(ecode4)) {
42797 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "HNSW_search_from" "', argument " "4"" of type '" "int""'");
42799 arg4 =
static_cast< int >(val4);
42800 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
42801 if (!SWIG_IsOK(res5)) {
42802 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "HNSW_search_from" "', argument " "5"" of type '" "faiss::VisitedTable *""'");
42806 Py_BEGIN_ALLOW_THREADS
42808 result = ((
faiss::HNSW const *)arg1)->search_from((faiss::HNSW::Node
const &)*arg2,*arg3,arg4,arg5);
42810 PyEval_RestoreThread(_save);
42811 PyErr_SetString(PyExc_RuntimeError, e.
what());
42814 Py_END_ALLOW_THREADS
42816 resultobj = SWIG_NewPointerObj((
new std::priority_queue< faiss::HNSW::Node >(
static_cast< const std::priority_queue< faiss::HNSW::Node >&
>(result))), SWIGTYPE_p_std__priority_queueT_std__pairT_float_int_t_t, SWIG_POINTER_OWN | 0 );
42823 SWIGINTERN PyObject *_wrap_HNSW_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42824 PyObject *resultobj = 0;
42829 float *arg5 = (
float *) 0 ;
42843 PyObject * obj0 = 0 ;
42844 PyObject * obj1 = 0 ;
42845 PyObject * obj2 = 0 ;
42846 PyObject * obj3 = 0 ;
42847 PyObject * obj4 = 0 ;
42848 PyObject * obj5 = 0 ;
42850 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:HNSW_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
42851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42852 if (!SWIG_IsOK(res1)) {
42853 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_search" "', argument " "1"" of type '" "faiss::HNSW const *""'");
42856 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 );
42857 if (!SWIG_IsOK(res2)) {
42858 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_search" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
42861 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
42864 ecode3 = SWIG_AsVal_int(obj2, &val3);
42865 if (!SWIG_IsOK(ecode3)) {
42866 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_search" "', argument " "3"" of type '" "int""'");
42868 arg3 =
static_cast< int >(val3);
42869 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
42870 if (!SWIG_IsOK(res4)) {
42871 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "HNSW_search" "', argument " "4"" of type '" "faiss::HNSW::idx_t *""'");
42874 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
42875 if (!SWIG_IsOK(res5)) {
42876 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "HNSW_search" "', argument " "5"" of type '" "float *""'");
42878 arg5 =
reinterpret_cast< float *
>(argp5);
42879 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_faiss__VisitedTable, 0 );
42880 if (!SWIG_IsOK(res6)) {
42881 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "HNSW_search" "', argument " "6"" of type '" "faiss::VisitedTable &""'");
42884 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search" "', argument " "6"" of type '" "faiss::VisitedTable &""'");
42888 Py_BEGIN_ALLOW_THREADS
42890 ((
faiss::HNSW const *)arg1)->search(*arg2,arg3,arg4,arg5,*arg6);
42892 PyEval_RestoreThread(_save);
42893 PyErr_SetString(PyExc_RuntimeError, e.
what());
42896 Py_END_ALLOW_THREADS
42898 resultobj = SWIG_Py_Void();
42905 SWIGINTERN PyObject *_wrap_HNSW_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42906 PyObject *resultobj = 0;
42910 PyObject * obj0 = 0 ;
42912 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_reset",&obj0)) SWIG_fail;
42913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42914 if (!SWIG_IsOK(res1)) {
42915 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_reset" "', argument " "1"" of type '" "faiss::HNSW *""'");
42919 Py_BEGIN_ALLOW_THREADS
42923 PyEval_RestoreThread(_save);
42924 PyErr_SetString(PyExc_RuntimeError, e.
what());
42927 Py_END_ALLOW_THREADS
42929 resultobj = SWIG_Py_Void();
42936 SWIGINTERN PyObject *_wrap_HNSW_clear_neighbor_tables(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42937 PyObject *resultobj = 0;
42944 PyObject * obj0 = 0 ;
42945 PyObject * obj1 = 0 ;
42947 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_clear_neighbor_tables",&obj0,&obj1)) SWIG_fail;
42948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42949 if (!SWIG_IsOK(res1)) {
42950 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_clear_neighbor_tables" "', argument " "1"" of type '" "faiss::HNSW *""'");
42953 ecode2 = SWIG_AsVal_int(obj1, &val2);
42954 if (!SWIG_IsOK(ecode2)) {
42955 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_clear_neighbor_tables" "', argument " "2"" of type '" "int""'");
42957 arg2 =
static_cast< int >(val2);
42959 Py_BEGIN_ALLOW_THREADS
42961 (arg1)->clear_neighbor_tables(arg2);
42963 PyEval_RestoreThread(_save);
42964 PyErr_SetString(PyExc_RuntimeError, e.
what());
42967 Py_END_ALLOW_THREADS
42969 resultobj = SWIG_Py_Void();
42976 SWIGINTERN PyObject *_wrap_HNSW_print_neighbor_stats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42977 PyObject *resultobj = 0;
42984 PyObject * obj0 = 0 ;
42985 PyObject * obj1 = 0 ;
42987 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_print_neighbor_stats",&obj0,&obj1)) SWIG_fail;
42988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42989 if (!SWIG_IsOK(res1)) {
42990 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_print_neighbor_stats" "', argument " "1"" of type '" "faiss::HNSW const *""'");
42993 ecode2 = SWIG_AsVal_int(obj1, &val2);
42994 if (!SWIG_IsOK(ecode2)) {
42995 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_print_neighbor_stats" "', argument " "2"" of type '" "int""'");
42997 arg2 =
static_cast< int >(val2);
42999 Py_BEGIN_ALLOW_THREADS
43001 ((
faiss::HNSW const *)arg1)->print_neighbor_stats(arg2);
43003 PyEval_RestoreThread(_save);
43004 PyErr_SetString(PyExc_RuntimeError, e.
what());
43007 Py_END_ALLOW_THREADS
43009 resultobj = SWIG_Py_Void();
43016 SWIGINTERN PyObject *_wrap_HNSW_prepare_level_tab__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43017 PyObject *resultobj = 0;
43027 PyObject * obj0 = 0 ;
43028 PyObject * obj1 = 0 ;
43029 PyObject * obj2 = 0 ;
43032 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HNSW_prepare_level_tab",&obj0,&obj1,&obj2)) SWIG_fail;
43033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43034 if (!SWIG_IsOK(res1)) {
43035 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_prepare_level_tab" "', argument " "1"" of type '" "faiss::HNSW *""'");
43038 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
43039 if (!SWIG_IsOK(ecode2)) {
43040 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_prepare_level_tab" "', argument " "2"" of type '" "size_t""'");
43042 arg2 =
static_cast< size_t >(val2);
43043 ecode3 = SWIG_AsVal_bool(obj2, &val3);
43044 if (!SWIG_IsOK(ecode3)) {
43045 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_prepare_level_tab" "', argument " "3"" of type '" "bool""'");
43047 arg3 =
static_cast< bool >(val3);
43049 Py_BEGIN_ALLOW_THREADS
43051 result = (int)(arg1)->prepare_level_tab(arg2,arg3);
43053 PyEval_RestoreThread(_save);
43054 PyErr_SetString(PyExc_RuntimeError, e.
what());
43057 Py_END_ALLOW_THREADS
43059 resultobj = SWIG_From_int(static_cast< int >(result));
43066 SWIGINTERN PyObject *_wrap_HNSW_prepare_level_tab__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43067 PyObject *resultobj = 0;
43074 PyObject * obj0 = 0 ;
43075 PyObject * obj1 = 0 ;
43078 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_prepare_level_tab",&obj0,&obj1)) SWIG_fail;
43079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43080 if (!SWIG_IsOK(res1)) {
43081 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_prepare_level_tab" "', argument " "1"" of type '" "faiss::HNSW *""'");
43084 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
43085 if (!SWIG_IsOK(ecode2)) {
43086 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_prepare_level_tab" "', argument " "2"" of type '" "size_t""'");
43088 arg2 =
static_cast< size_t >(val2);
43090 Py_BEGIN_ALLOW_THREADS
43092 result = (int)(arg1)->prepare_level_tab(arg2);
43094 PyEval_RestoreThread(_save);
43095 PyErr_SetString(PyExc_RuntimeError, e.
what());
43098 Py_END_ALLOW_THREADS
43100 resultobj = SWIG_From_int(static_cast< int >(result));
43107 SWIGINTERN PyObject *_wrap_HNSW_prepare_level_tab(PyObject *
self, PyObject *args) {
43109 PyObject *argv[4] = {
43114 if (!PyTuple_Check(args)) SWIG_fail;
43115 argc = args ? PyObject_Length(args) : 0;
43116 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
43117 argv[ii] = PyTuple_GET_ITEM(args,ii);
43122 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HNSW, 0);
43123 _v = SWIG_CheckState(res);
43126 int res = SWIG_AsVal_size_t(argv[1], NULL);
43127 _v = SWIG_CheckState(res);
43130 return _wrap_HNSW_prepare_level_tab__SWIG_1(
self, args);
43137 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HNSW, 0);
43138 _v = SWIG_CheckState(res);
43141 int res = SWIG_AsVal_size_t(argv[1], NULL);
43142 _v = SWIG_CheckState(res);
43146 int res = SWIG_AsVal_bool(argv[2], NULL);
43147 _v = SWIG_CheckState(res);
43150 return _wrap_HNSW_prepare_level_tab__SWIG_0(
self, args);
43157 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'HNSW_prepare_level_tab'.\n"
43158 " Possible C/C++ prototypes are:\n"
43159 " faiss::HNSW::prepare_level_tab(size_t,bool)\n"
43160 " faiss::HNSW::prepare_level_tab(size_t)\n");
43165 SWIGINTERN PyObject *_wrap_HNSW_shrink_neighbor_list(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43166 PyObject *resultobj = 0;
43168 std::priority_queue< faiss::HNSW::NodeDistFarther > *arg2 = 0 ;
43169 std::vector< faiss::HNSW::NodeDistFarther > *arg3 = 0 ;
43179 PyObject * obj0 = 0 ;
43180 PyObject * obj1 = 0 ;
43181 PyObject * obj2 = 0 ;
43182 PyObject * obj3 = 0 ;
43184 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:HNSW_shrink_neighbor_list",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
43185 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 );
43186 if (!SWIG_IsOK(res1)) {
43187 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_shrink_neighbor_list" "', argument " "1"" of type '" "faiss::HNSW::DistanceComputer &""'");
43190 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_shrink_neighbor_list" "', argument " "1"" of type '" "faiss::HNSW::DistanceComputer &""'");
43193 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t, 0 );
43194 if (!SWIG_IsOK(res2)) {
43195 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_shrink_neighbor_list" "', argument " "2"" of type '" "std::priority_queue< faiss::HNSW::NodeDistFarther > &""'");
43198 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_shrink_neighbor_list" "', argument " "2"" of type '" "std::priority_queue< faiss::HNSW::NodeDistFarther > &""'");
43200 arg2 =
reinterpret_cast< std::priority_queue< faiss::HNSW::NodeDistFarther > *
>(argp2);
43201 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_faiss__HNSW__NodeDistFarther_t, 0 );
43202 if (!SWIG_IsOK(res3)) {
43203 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "HNSW_shrink_neighbor_list" "', argument " "3"" of type '" "std::vector< faiss::HNSW::NodeDistFarther > &""'");
43206 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_shrink_neighbor_list" "', argument " "3"" of type '" "std::vector< faiss::HNSW::NodeDistFarther > &""'");
43208 arg3 =
reinterpret_cast< std::vector< faiss::HNSW::NodeDistFarther > *
>(argp3);
43209 ecode4 = SWIG_AsVal_int(obj3, &val4);
43210 if (!SWIG_IsOK(ecode4)) {
43211 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "HNSW_shrink_neighbor_list" "', argument " "4"" of type '" "int""'");
43213 arg4 =
static_cast< int >(val4);
43215 Py_BEGIN_ALLOW_THREADS
43219 PyEval_RestoreThread(_save);
43220 PyErr_SetString(PyExc_RuntimeError, e.
what());
43223 Py_END_ALLOW_THREADS
43225 resultobj = SWIG_Py_Void();
43232 SWIGINTERN PyObject *_wrap_delete_HNSW(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43233 PyObject *resultobj = 0;
43237 PyObject * obj0 = 0 ;
43239 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HNSW",&obj0)) SWIG_fail;
43240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, SWIG_POINTER_DISOWN | 0 );
43241 if (!SWIG_IsOK(res1)) {
43242 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HNSW" "', argument " "1"" of type '" "faiss::HNSW *""'");
43246 resultobj = SWIG_Py_Void();
43253 SWIGINTERN PyObject *HNSW_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43255 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
43256 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HNSW, SWIG_NewClientData(obj));
43257 return SWIG_Py_Void();
43260 SWIGINTERN PyObject *_wrap_VisitedTable_visited_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43261 PyObject *resultobj = 0;
43263 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
43268 PyObject * obj0 = 0 ;
43269 PyObject * obj1 = 0 ;
43271 if (!PyArg_ParseTuple(args,(
char *)
"OO:VisitedTable_visited_set",&obj0,&obj1)) SWIG_fail;
43272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
43273 if (!SWIG_IsOK(res1)) {
43274 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VisitedTable_visited_set" "', argument " "1"" of type '" "faiss::VisitedTable *""'");
43277 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
43278 if (!SWIG_IsOK(res2)) {
43279 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "VisitedTable_visited_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
43281 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
43282 if (arg1) (arg1)->visited = *arg2;
43283 resultobj = SWIG_Py_Void();
43290 SWIGINTERN PyObject *_wrap_VisitedTable_visited_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43291 PyObject *resultobj = 0;
43295 PyObject * obj0 = 0 ;
43296 std::vector< uint8_t > *result = 0 ;
43298 if (!PyArg_ParseTuple(args,(
char *)
"O:VisitedTable_visited_get",&obj0)) SWIG_fail;
43299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
43300 if (!SWIG_IsOK(res1)) {
43301 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VisitedTable_visited_get" "', argument " "1"" of type '" "faiss::VisitedTable *""'");
43304 result = (std::vector< uint8_t > *)& ((arg1)->visited);
43305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
43312 SWIGINTERN PyObject *_wrap_VisitedTable_visno_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43313 PyObject *resultobj = 0;
43320 PyObject * obj0 = 0 ;
43321 PyObject * obj1 = 0 ;
43323 if (!PyArg_ParseTuple(args,(
char *)
"OO:VisitedTable_visno_set",&obj0,&obj1)) SWIG_fail;
43324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
43325 if (!SWIG_IsOK(res1)) {
43326 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VisitedTable_visno_set" "', argument " "1"" of type '" "faiss::VisitedTable *""'");
43329 ecode2 = SWIG_AsVal_int(obj1, &val2);
43330 if (!SWIG_IsOK(ecode2)) {
43331 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VisitedTable_visno_set" "', argument " "2"" of type '" "int""'");
43333 arg2 =
static_cast< int >(val2);
43334 if (arg1) (arg1)->visno = arg2;
43335 resultobj = SWIG_Py_Void();
43342 SWIGINTERN PyObject *_wrap_VisitedTable_visno_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43343 PyObject *resultobj = 0;
43347 PyObject * obj0 = 0 ;
43350 if (!PyArg_ParseTuple(args,(
char *)
"O:VisitedTable_visno_get",&obj0)) SWIG_fail;
43351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
43352 if (!SWIG_IsOK(res1)) {
43353 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VisitedTable_visno_get" "', argument " "1"" of type '" "faiss::VisitedTable *""'");
43356 result = (int) ((arg1)->visno);
43357 resultobj = SWIG_From_int(static_cast< int >(result));
43364 SWIGINTERN PyObject *_wrap_new_VisitedTable(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43365 PyObject *resultobj = 0;
43369 PyObject * obj0 = 0 ;
43372 if (!PyArg_ParseTuple(args,(
char *)
"O:new_VisitedTable",&obj0)) SWIG_fail;
43373 ecode1 = SWIG_AsVal_int(obj0, &val1);
43374 if (!SWIG_IsOK(ecode1)) {
43375 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_VisitedTable" "', argument " "1"" of type '" "int""'");
43377 arg1 =
static_cast< int >(val1);
43379 Py_BEGIN_ALLOW_THREADS
43383 PyEval_RestoreThread(_save);
43384 PyErr_SetString(PyExc_RuntimeError, e.
what());
43387 Py_END_ALLOW_THREADS
43389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__VisitedTable, SWIG_POINTER_NEW | 0 );
43396 SWIGINTERN PyObject *_wrap_VisitedTable_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43397 PyObject *resultobj = 0;
43404 PyObject * obj0 = 0 ;
43405 PyObject * obj1 = 0 ;
43407 if (!PyArg_ParseTuple(args,(
char *)
"OO:VisitedTable_set",&obj0,&obj1)) SWIG_fail;
43408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
43409 if (!SWIG_IsOK(res1)) {
43410 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VisitedTable_set" "', argument " "1"" of type '" "faiss::VisitedTable *""'");
43413 ecode2 = SWIG_AsVal_int(obj1, &val2);
43414 if (!SWIG_IsOK(ecode2)) {
43415 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VisitedTable_set" "', argument " "2"" of type '" "int""'");
43417 arg2 =
static_cast< int >(val2);
43419 Py_BEGIN_ALLOW_THREADS
43423 PyEval_RestoreThread(_save);
43424 PyErr_SetString(PyExc_RuntimeError, e.
what());
43427 Py_END_ALLOW_THREADS
43429 resultobj = SWIG_Py_Void();
43436 SWIGINTERN PyObject *_wrap_VisitedTable_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43437 PyObject *resultobj = 0;
43444 PyObject * obj0 = 0 ;
43445 PyObject * obj1 = 0 ;
43448 if (!PyArg_ParseTuple(args,(
char *)
"OO:VisitedTable_get",&obj0,&obj1)) SWIG_fail;
43449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
43450 if (!SWIG_IsOK(res1)) {
43451 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VisitedTable_get" "', argument " "1"" of type '" "faiss::VisitedTable const *""'");
43454 ecode2 = SWIG_AsVal_int(obj1, &val2);
43455 if (!SWIG_IsOK(ecode2)) {
43456 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VisitedTable_get" "', argument " "2"" of type '" "int""'");
43458 arg2 =
static_cast< int >(val2);
43460 Py_BEGIN_ALLOW_THREADS
43464 PyEval_RestoreThread(_save);
43465 PyErr_SetString(PyExc_RuntimeError, e.
what());
43468 Py_END_ALLOW_THREADS
43470 resultobj = SWIG_From_bool(static_cast< bool >(result));
43477 SWIGINTERN PyObject *_wrap_VisitedTable_advance(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43478 PyObject *resultobj = 0;
43482 PyObject * obj0 = 0 ;
43484 if (!PyArg_ParseTuple(args,(
char *)
"O:VisitedTable_advance",&obj0)) SWIG_fail;
43485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
43486 if (!SWIG_IsOK(res1)) {
43487 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VisitedTable_advance" "', argument " "1"" of type '" "faiss::VisitedTable *""'");
43491 Py_BEGIN_ALLOW_THREADS
43495 PyEval_RestoreThread(_save);
43496 PyErr_SetString(PyExc_RuntimeError, e.
what());
43499 Py_END_ALLOW_THREADS
43501 resultobj = SWIG_Py_Void();
43508 SWIGINTERN PyObject *_wrap_delete_VisitedTable(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43509 PyObject *resultobj = 0;
43513 PyObject * obj0 = 0 ;
43515 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_VisitedTable",&obj0)) SWIG_fail;
43516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, SWIG_POINTER_DISOWN | 0 );
43517 if (!SWIG_IsOK(res1)) {
43518 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_VisitedTable" "', argument " "1"" of type '" "faiss::VisitedTable *""'");
43522 resultobj = SWIG_Py_Void();
43529 SWIGINTERN PyObject *VisitedTable_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43531 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
43532 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__VisitedTable, SWIG_NewClientData(obj));
43533 return SWIG_Py_Void();
43536 SWIGINTERN PyObject *_wrap_HNSWStats_n1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43537 PyObject *resultobj = 0;
43544 PyObject * obj0 = 0 ;
43545 PyObject * obj1 = 0 ;
43547 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSWStats_n1_set",&obj0,&obj1)) SWIG_fail;
43548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
43549 if (!SWIG_IsOK(res1)) {
43550 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_n1_set" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
43553 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
43554 if (!SWIG_IsOK(ecode2)) {
43555 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSWStats_n1_set" "', argument " "2"" of type '" "size_t""'");
43557 arg2 =
static_cast< size_t >(val2);
43558 if (arg1) (arg1)->n1 = arg2;
43559 resultobj = SWIG_Py_Void();
43566 SWIGINTERN PyObject *_wrap_HNSWStats_n1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43567 PyObject *resultobj = 0;
43571 PyObject * obj0 = 0 ;
43574 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSWStats_n1_get",&obj0)) SWIG_fail;
43575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
43576 if (!SWIG_IsOK(res1)) {
43577 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_n1_get" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
43580 result = (size_t) ((arg1)->n1);
43581 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
43588 SWIGINTERN PyObject *_wrap_HNSWStats_n2_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43589 PyObject *resultobj = 0;
43596 PyObject * obj0 = 0 ;
43597 PyObject * obj1 = 0 ;
43599 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSWStats_n2_set",&obj0,&obj1)) SWIG_fail;
43600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
43601 if (!SWIG_IsOK(res1)) {
43602 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_n2_set" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
43605 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
43606 if (!SWIG_IsOK(ecode2)) {
43607 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSWStats_n2_set" "', argument " "2"" of type '" "size_t""'");
43609 arg2 =
static_cast< size_t >(val2);
43610 if (arg1) (arg1)->n2 = arg2;
43611 resultobj = SWIG_Py_Void();
43618 SWIGINTERN PyObject *_wrap_HNSWStats_n2_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43619 PyObject *resultobj = 0;
43623 PyObject * obj0 = 0 ;
43626 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSWStats_n2_get",&obj0)) SWIG_fail;
43627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
43628 if (!SWIG_IsOK(res1)) {
43629 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_n2_get" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
43632 result = (size_t) ((arg1)->n2);
43633 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
43640 SWIGINTERN PyObject *_wrap_HNSWStats_n3_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43641 PyObject *resultobj = 0;
43648 PyObject * obj0 = 0 ;
43649 PyObject * obj1 = 0 ;
43651 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSWStats_n3_set",&obj0,&obj1)) SWIG_fail;
43652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
43653 if (!SWIG_IsOK(res1)) {
43654 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_n3_set" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
43657 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
43658 if (!SWIG_IsOK(ecode2)) {
43659 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSWStats_n3_set" "', argument " "2"" of type '" "size_t""'");
43661 arg2 =
static_cast< size_t >(val2);
43662 if (arg1) (arg1)->n3 = arg2;
43663 resultobj = SWIG_Py_Void();
43670 SWIGINTERN PyObject *_wrap_HNSWStats_n3_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43671 PyObject *resultobj = 0;
43675 PyObject * obj0 = 0 ;
43678 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSWStats_n3_get",&obj0)) SWIG_fail;
43679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
43680 if (!SWIG_IsOK(res1)) {
43681 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_n3_get" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
43684 result = (size_t) ((arg1)->n3);
43685 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
43692 SWIGINTERN PyObject *_wrap_HNSWStats_ndis_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43693 PyObject *resultobj = 0;
43700 PyObject * obj0 = 0 ;
43701 PyObject * obj1 = 0 ;
43703 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSWStats_ndis_set",&obj0,&obj1)) SWIG_fail;
43704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
43705 if (!SWIG_IsOK(res1)) {
43706 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_ndis_set" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
43709 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
43710 if (!SWIG_IsOK(ecode2)) {
43711 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSWStats_ndis_set" "', argument " "2"" of type '" "size_t""'");
43713 arg2 =
static_cast< size_t >(val2);
43714 if (arg1) (arg1)->ndis = arg2;
43715 resultobj = SWIG_Py_Void();
43722 SWIGINTERN PyObject *_wrap_HNSWStats_ndis_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43723 PyObject *resultobj = 0;
43727 PyObject * obj0 = 0 ;
43730 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSWStats_ndis_get",&obj0)) SWIG_fail;
43731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
43732 if (!SWIG_IsOK(res1)) {
43733 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_ndis_get" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
43736 result = (size_t) ((arg1)->ndis);
43737 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
43744 SWIGINTERN PyObject *_wrap_HNSWStats_nreorder_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43745 PyObject *resultobj = 0;
43752 PyObject * obj0 = 0 ;
43753 PyObject * obj1 = 0 ;
43755 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSWStats_nreorder_set",&obj0,&obj1)) SWIG_fail;
43756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
43757 if (!SWIG_IsOK(res1)) {
43758 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_nreorder_set" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
43761 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
43762 if (!SWIG_IsOK(ecode2)) {
43763 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSWStats_nreorder_set" "', argument " "2"" of type '" "size_t""'");
43765 arg2 =
static_cast< size_t >(val2);
43766 if (arg1) (arg1)->nreorder = arg2;
43767 resultobj = SWIG_Py_Void();
43774 SWIGINTERN PyObject *_wrap_HNSWStats_nreorder_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43775 PyObject *resultobj = 0;
43779 PyObject * obj0 = 0 ;
43782 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSWStats_nreorder_get",&obj0)) SWIG_fail;
43783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
43784 if (!SWIG_IsOK(res1)) {
43785 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_nreorder_get" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
43788 result = (size_t) ((arg1)->nreorder);
43789 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
43796 SWIGINTERN PyObject *_wrap_HNSWStats_view_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43797 PyObject *resultobj = 0;
43804 PyObject * obj0 = 0 ;
43805 PyObject * obj1 = 0 ;
43807 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSWStats_view_set",&obj0,&obj1)) SWIG_fail;
43808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
43809 if (!SWIG_IsOK(res1)) {
43810 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_view_set" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
43813 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43814 if (!SWIG_IsOK(ecode2)) {
43815 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSWStats_view_set" "', argument " "2"" of type '" "bool""'");
43817 arg2 =
static_cast< bool >(val2);
43818 if (arg1) (arg1)->view = arg2;
43819 resultobj = SWIG_Py_Void();
43826 SWIGINTERN PyObject *_wrap_HNSWStats_view_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43827 PyObject *resultobj = 0;
43831 PyObject * obj0 = 0 ;
43834 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSWStats_view_get",&obj0)) SWIG_fail;
43835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
43836 if (!SWIG_IsOK(res1)) {
43837 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_view_get" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
43840 result = (bool) ((arg1)->view);
43841 resultobj = SWIG_From_bool(static_cast< bool >(result));
43848 SWIGINTERN PyObject *_wrap_new_HNSWStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43849 PyObject *resultobj = 0;
43852 if (!PyArg_ParseTuple(args,(
char *)
":new_HNSWStats")) SWIG_fail;
43854 Py_BEGIN_ALLOW_THREADS
43858 PyEval_RestoreThread(_save);
43859 PyErr_SetString(PyExc_RuntimeError, e.
what());
43862 Py_END_ALLOW_THREADS
43864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSWStats, SWIG_POINTER_NEW | 0 );
43871 SWIGINTERN PyObject *_wrap_HNSWStats_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43872 PyObject *resultobj = 0;
43876 PyObject * obj0 = 0 ;
43878 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSWStats_reset",&obj0)) SWIG_fail;
43879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
43880 if (!SWIG_IsOK(res1)) {
43881 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_reset" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
43885 Py_BEGIN_ALLOW_THREADS
43889 PyEval_RestoreThread(_save);
43890 PyErr_SetString(PyExc_RuntimeError, e.
what());
43893 Py_END_ALLOW_THREADS
43895 resultobj = SWIG_Py_Void();
43902 SWIGINTERN PyObject *_wrap_delete_HNSWStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43903 PyObject *resultobj = 0;
43907 PyObject * obj0 = 0 ;
43909 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HNSWStats",&obj0)) SWIG_fail;
43910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, SWIG_POINTER_DISOWN | 0 );
43911 if (!SWIG_IsOK(res1)) {
43912 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HNSWStats" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
43916 resultobj = SWIG_Py_Void();
43923 SWIGINTERN PyObject *HNSWStats_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43925 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
43926 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HNSWStats, SWIG_NewClientData(obj));
43927 return SWIG_Py_Void();
43930 SWIGINTERN
int Swig_var_hnsw_stats_set(PyObject *_val) {
43933 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_faiss__HNSWStats, 0 | 0);
43934 if (!SWIG_IsOK(res)) {
43935 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""faiss::hnsw_stats""' of type '""faiss::HNSWStats""'");
43938 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""faiss::hnsw_stats""' of type '""faiss::HNSWStats""'");
43942 faiss::hnsw_stats = *temp;
43943 if (SWIG_IsNewObj(res))
delete temp;
43952 SWIGINTERN PyObject *Swig_var_hnsw_stats_get(
void) {
43953 PyObject *pyobj = 0;
43955 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&faiss::hnsw_stats), SWIGTYPE_p_faiss__HNSWStats, 0 );
43960 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43961 PyObject *resultobj = 0;
43965 PyObject * obj0 = 0 ;
43968 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_index_get",&obj0)) SWIG_fail;
43969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
43970 if (!SWIG_IsOK(res1)) {
43971 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_index_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
43975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
43982 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_M_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43983 PyObject *resultobj = 0;
43990 PyObject * obj0 = 0 ;
43991 PyObject * obj1 = 0 ;
43993 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_M_set",&obj0,&obj1)) SWIG_fail;
43994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
43995 if (!SWIG_IsOK(res1)) {
43996 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_M_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
43999 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44000 if (!SWIG_IsOK(ecode2)) {
44001 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_M_set" "', argument " "2"" of type '" "size_t""'");
44003 arg2 =
static_cast< size_t >(val2);
44004 if (arg1) (arg1)->M = arg2;
44005 resultobj = SWIG_Py_Void();
44012 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_M_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44013 PyObject *resultobj = 0;
44017 PyObject * obj0 = 0 ;
44020 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_M_get",&obj0)) SWIG_fail;
44021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44022 if (!SWIG_IsOK(res1)) {
44023 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_M_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44026 result = (size_t) ((arg1)->M);
44027 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
44034 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_k_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44035 PyObject *resultobj = 0;
44042 PyObject * obj0 = 0 ;
44043 PyObject * obj1 = 0 ;
44045 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_k_set",&obj0,&obj1)) SWIG_fail;
44046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44047 if (!SWIG_IsOK(res1)) {
44048 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_k_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44051 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44052 if (!SWIG_IsOK(ecode2)) {
44053 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_k_set" "', argument " "2"" of type '" "size_t""'");
44055 arg2 =
static_cast< size_t >(val2);
44056 if (arg1) (arg1)->k = arg2;
44057 resultobj = SWIG_Py_Void();
44064 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_k_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44065 PyObject *resultobj = 0;
44069 PyObject * obj0 = 0 ;
44072 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_k_get",&obj0)) SWIG_fail;
44073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44074 if (!SWIG_IsOK(res1)) {
44075 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_k_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44078 result = (size_t) ((arg1)->k);
44079 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
44086 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_nsq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44087 PyObject *resultobj = 0;
44094 PyObject * obj0 = 0 ;
44095 PyObject * obj1 = 0 ;
44097 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_nsq_set",&obj0,&obj1)) SWIG_fail;
44098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44099 if (!SWIG_IsOK(res1)) {
44100 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_nsq_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44103 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44104 if (!SWIG_IsOK(ecode2)) {
44105 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_nsq_set" "', argument " "2"" of type '" "size_t""'");
44107 arg2 =
static_cast< size_t >(val2);
44108 if (arg1) (arg1)->nsq = arg2;
44109 resultobj = SWIG_Py_Void();
44116 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_nsq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44117 PyObject *resultobj = 0;
44121 PyObject * obj0 = 0 ;
44124 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_nsq_get",&obj0)) SWIG_fail;
44125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44126 if (!SWIG_IsOK(res1)) {
44127 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_nsq_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44130 result = (size_t) ((arg1)->nsq);
44131 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
44138 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44139 PyObject *resultobj = 0;
44146 PyObject * obj0 = 0 ;
44147 PyObject * obj1 = 0 ;
44149 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_code_size_set",&obj0,&obj1)) SWIG_fail;
44150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44151 if (!SWIG_IsOK(res1)) {
44152 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_code_size_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44155 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44156 if (!SWIG_IsOK(ecode2)) {
44157 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_code_size_set" "', argument " "2"" of type '" "size_t""'");
44159 arg2 =
static_cast< size_t >(val2);
44160 if (arg1) (arg1)->code_size = arg2;
44161 resultobj = SWIG_Py_Void();
44168 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44169 PyObject *resultobj = 0;
44173 PyObject * obj0 = 0 ;
44176 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_code_size_get",&obj0)) SWIG_fail;
44177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44178 if (!SWIG_IsOK(res1)) {
44179 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_code_size_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44182 result = (size_t) ((arg1)->code_size);
44183 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
44190 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_k_reorder_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44191 PyObject *resultobj = 0;
44198 PyObject * obj0 = 0 ;
44199 PyObject * obj1 = 0 ;
44201 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_k_reorder_set",&obj0,&obj1)) SWIG_fail;
44202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44203 if (!SWIG_IsOK(res1)) {
44204 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_k_reorder_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44207 ecode2 = SWIG_AsVal_int(obj1, &val2);
44208 if (!SWIG_IsOK(ecode2)) {
44209 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_k_reorder_set" "', argument " "2"" of type '" "int""'");
44211 arg2 =
static_cast< int >(val2);
44212 if (arg1) (arg1)->k_reorder = arg2;
44213 resultobj = SWIG_Py_Void();
44220 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_k_reorder_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44221 PyObject *resultobj = 0;
44225 PyObject * obj0 = 0 ;
44228 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_k_reorder_get",&obj0)) SWIG_fail;
44229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44230 if (!SWIG_IsOK(res1)) {
44231 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_k_reorder_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44234 result = (int) ((arg1)->k_reorder);
44235 resultobj = SWIG_From_int(static_cast< int >(result));
44242 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_codebook_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44243 PyObject *resultobj = 0;
44245 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
44250 PyObject * obj0 = 0 ;
44251 PyObject * obj1 = 0 ;
44253 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_codebook_set",&obj0,&obj1)) SWIG_fail;
44254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44255 if (!SWIG_IsOK(res1)) {
44256 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_codebook_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44259 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
44260 if (!SWIG_IsOK(res2)) {
44261 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReconstructFromNeighbors_codebook_set" "', argument " "2"" of type '" "std::vector< float > *""'");
44263 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
44264 if (arg1) (arg1)->codebook = *arg2;
44265 resultobj = SWIG_Py_Void();
44272 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_codebook_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44273 PyObject *resultobj = 0;
44277 PyObject * obj0 = 0 ;
44278 std::vector< float > *result = 0 ;
44280 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_codebook_get",&obj0)) SWIG_fail;
44281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44282 if (!SWIG_IsOK(res1)) {
44283 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_codebook_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44286 result = (std::vector< float > *)& ((arg1)->codebook);
44287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
44294 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44295 PyObject *resultobj = 0;
44297 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
44302 PyObject * obj0 = 0 ;
44303 PyObject * obj1 = 0 ;
44305 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_codes_set",&obj0,&obj1)) SWIG_fail;
44306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44307 if (!SWIG_IsOK(res1)) {
44308 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_codes_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44311 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
44312 if (!SWIG_IsOK(res2)) {
44313 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReconstructFromNeighbors_codes_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
44315 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
44316 if (arg1) (arg1)->codes = *arg2;
44317 resultobj = SWIG_Py_Void();
44324 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44325 PyObject *resultobj = 0;
44329 PyObject * obj0 = 0 ;
44330 std::vector< uint8_t > *result = 0 ;
44332 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_codes_get",&obj0)) SWIG_fail;
44333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44334 if (!SWIG_IsOK(res1)) {
44335 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_codes_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44338 result = (std::vector< uint8_t > *)& ((arg1)->codes);
44339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
44346 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_ntotal_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44347 PyObject *resultobj = 0;
44354 PyObject * obj0 = 0 ;
44355 PyObject * obj1 = 0 ;
44357 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_ntotal_set",&obj0,&obj1)) SWIG_fail;
44358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44359 if (!SWIG_IsOK(res1)) {
44360 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_ntotal_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44363 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44364 if (!SWIG_IsOK(ecode2)) {
44365 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_ntotal_set" "', argument " "2"" of type '" "size_t""'");
44367 arg2 =
static_cast< size_t >(val2);
44368 if (arg1) (arg1)->ntotal = arg2;
44369 resultobj = SWIG_Py_Void();
44376 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_ntotal_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44377 PyObject *resultobj = 0;
44381 PyObject * obj0 = 0 ;
44384 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_ntotal_get",&obj0)) SWIG_fail;
44385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44386 if (!SWIG_IsOK(res1)) {
44387 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_ntotal_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44390 result = (size_t) ((arg1)->ntotal);
44391 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
44398 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44399 PyObject *resultobj = 0;
44406 PyObject * obj0 = 0 ;
44407 PyObject * obj1 = 0 ;
44409 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_d_set",&obj0,&obj1)) SWIG_fail;
44410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44411 if (!SWIG_IsOK(res1)) {
44412 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_d_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44415 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44416 if (!SWIG_IsOK(ecode2)) {
44417 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_d_set" "', argument " "2"" of type '" "size_t""'");
44419 arg2 =
static_cast< size_t >(val2);
44420 if (arg1) (arg1)->d = arg2;
44421 resultobj = SWIG_Py_Void();
44428 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44429 PyObject *resultobj = 0;
44433 PyObject * obj0 = 0 ;
44436 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_d_get",&obj0)) SWIG_fail;
44437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44438 if (!SWIG_IsOK(res1)) {
44439 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_d_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44442 result = (size_t) ((arg1)->d);
44443 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
44450 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_dsub_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44451 PyObject *resultobj = 0;
44458 PyObject * obj0 = 0 ;
44459 PyObject * obj1 = 0 ;
44461 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_dsub_set",&obj0,&obj1)) SWIG_fail;
44462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44463 if (!SWIG_IsOK(res1)) {
44464 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_dsub_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44467 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44468 if (!SWIG_IsOK(ecode2)) {
44469 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_dsub_set" "', argument " "2"" of type '" "size_t""'");
44471 arg2 =
static_cast< size_t >(val2);
44472 if (arg1) (arg1)->dsub = arg2;
44473 resultobj = SWIG_Py_Void();
44480 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_dsub_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44481 PyObject *resultobj = 0;
44485 PyObject * obj0 = 0 ;
44488 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_dsub_get",&obj0)) SWIG_fail;
44489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44490 if (!SWIG_IsOK(res1)) {
44491 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_dsub_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44494 result = (size_t) ((arg1)->dsub);
44495 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
44502 SWIGINTERN PyObject *_wrap_new_ReconstructFromNeighbors__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44503 PyObject *resultobj = 0;
44513 PyObject * obj0 = 0 ;
44514 PyObject * obj1 = 0 ;
44515 PyObject * obj2 = 0 ;
44518 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_ReconstructFromNeighbors",&obj0,&obj1,&obj2)) SWIG_fail;
44519 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_faiss__IndexHNSW, 0 | 0);
44520 if (!SWIG_IsOK(res1)) {
44521 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_ReconstructFromNeighbors" "', argument " "1"" of type '" "faiss::IndexHNSW const &""'");
44524 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_ReconstructFromNeighbors" "', argument " "1"" of type '" "faiss::IndexHNSW const &""'");
44527 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44528 if (!SWIG_IsOK(ecode2)) {
44529 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_ReconstructFromNeighbors" "', argument " "2"" of type '" "size_t""'");
44531 arg2 =
static_cast< size_t >(val2);
44532 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
44533 if (!SWIG_IsOK(ecode3)) {
44534 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_ReconstructFromNeighbors" "', argument " "3"" of type '" "size_t""'");
44536 arg3 =
static_cast< size_t >(val3);
44538 Py_BEGIN_ALLOW_THREADS
44542 PyEval_RestoreThread(_save);
44543 PyErr_SetString(PyExc_RuntimeError, e.
what());
44546 Py_END_ALLOW_THREADS
44548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ReconstructFromNeighbors, SWIG_POINTER_NEW | 0 );
44555 SWIGINTERN PyObject *_wrap_new_ReconstructFromNeighbors__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44556 PyObject *resultobj = 0;
44563 PyObject * obj0 = 0 ;
44564 PyObject * obj1 = 0 ;
44567 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_ReconstructFromNeighbors",&obj0,&obj1)) SWIG_fail;
44568 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_faiss__IndexHNSW, 0 | 0);
44569 if (!SWIG_IsOK(res1)) {
44570 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_ReconstructFromNeighbors" "', argument " "1"" of type '" "faiss::IndexHNSW const &""'");
44573 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_ReconstructFromNeighbors" "', argument " "1"" of type '" "faiss::IndexHNSW const &""'");
44576 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44577 if (!SWIG_IsOK(ecode2)) {
44578 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_ReconstructFromNeighbors" "', argument " "2"" of type '" "size_t""'");
44580 arg2 =
static_cast< size_t >(val2);
44582 Py_BEGIN_ALLOW_THREADS
44586 PyEval_RestoreThread(_save);
44587 PyErr_SetString(PyExc_RuntimeError, e.
what());
44590 Py_END_ALLOW_THREADS
44592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ReconstructFromNeighbors, SWIG_POINTER_NEW | 0 );
44599 SWIGINTERN PyObject *_wrap_new_ReconstructFromNeighbors__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44600 PyObject *resultobj = 0;
44604 PyObject * obj0 = 0 ;
44607 if (!PyArg_ParseTuple(args,(
char *)
"O:new_ReconstructFromNeighbors",&obj0)) SWIG_fail;
44608 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_faiss__IndexHNSW, 0 | 0);
44609 if (!SWIG_IsOK(res1)) {
44610 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_ReconstructFromNeighbors" "', argument " "1"" of type '" "faiss::IndexHNSW const &""'");
44613 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_ReconstructFromNeighbors" "', argument " "1"" of type '" "faiss::IndexHNSW const &""'");
44617 Py_BEGIN_ALLOW_THREADS
44621 PyEval_RestoreThread(_save);
44622 PyErr_SetString(PyExc_RuntimeError, e.
what());
44625 Py_END_ALLOW_THREADS
44627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ReconstructFromNeighbors, SWIG_POINTER_NEW | 0 );
44634 SWIGINTERN PyObject *_wrap_new_ReconstructFromNeighbors(PyObject *
self, PyObject *args) {
44636 PyObject *argv[4] = {
44641 if (!PyTuple_Check(args)) SWIG_fail;
44642 argc = args ? PyObject_Length(args) : 0;
44643 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
44644 argv[ii] = PyTuple_GET_ITEM(args,ii);
44648 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_faiss__IndexHNSW, 0);
44649 _v = SWIG_CheckState(res);
44651 return _wrap_new_ReconstructFromNeighbors__SWIG_2(
self, args);
44656 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_faiss__IndexHNSW, 0);
44657 _v = SWIG_CheckState(res);
44660 int res = SWIG_AsVal_size_t(argv[1], NULL);
44661 _v = SWIG_CheckState(res);
44664 return _wrap_new_ReconstructFromNeighbors__SWIG_1(
self, args);
44670 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_faiss__IndexHNSW, 0);
44671 _v = SWIG_CheckState(res);
44674 int res = SWIG_AsVal_size_t(argv[1], NULL);
44675 _v = SWIG_CheckState(res);
44679 int res = SWIG_AsVal_size_t(argv[2], NULL);
44680 _v = SWIG_CheckState(res);
44683 return _wrap_new_ReconstructFromNeighbors__SWIG_0(
self, args);
44690 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_ReconstructFromNeighbors'.\n"
44691 " Possible C/C++ prototypes are:\n"
44692 " faiss::ReconstructFromNeighbors::ReconstructFromNeighbors(faiss::IndexHNSW const &,size_t,size_t)\n"
44693 " faiss::ReconstructFromNeighbors::ReconstructFromNeighbors(faiss::IndexHNSW const &,size_t)\n"
44694 " faiss::ReconstructFromNeighbors::ReconstructFromNeighbors(faiss::IndexHNSW const &)\n");
44699 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_add_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44700 PyObject *resultobj = 0;
44703 float *arg3 = (
float *) 0 ;
44710 PyObject * obj0 = 0 ;
44711 PyObject * obj1 = 0 ;
44712 PyObject * obj2 = 0 ;
44714 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ReconstructFromNeighbors_add_codes",&obj0,&obj1,&obj2)) SWIG_fail;
44715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44716 if (!SWIG_IsOK(res1)) {
44717 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_add_codes" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
44720 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44721 if (!SWIG_IsOK(ecode2)) {
44722 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_add_codes" "', argument " "2"" of type '" "size_t""'");
44724 arg2 =
static_cast< size_t >(val2);
44725 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
44726 if (!SWIG_IsOK(res3)) {
44727 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ReconstructFromNeighbors_add_codes" "', argument " "3"" of type '" "float const *""'");
44729 arg3 =
reinterpret_cast< float *
>(argp3);
44731 Py_BEGIN_ALLOW_THREADS
44733 (arg1)->add_codes(arg2,(
float const *)arg3);
44735 PyEval_RestoreThread(_save);
44736 PyErr_SetString(PyExc_RuntimeError, e.
what());
44739 Py_END_ALLOW_THREADS
44741 resultobj = SWIG_Py_Void();
44748 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_compute_distances(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44749 PyObject *resultobj = 0;
44752 faiss::ReconstructFromNeighbors::idx_t *arg3 = (faiss::ReconstructFromNeighbors::idx_t *) 0 ;
44753 float *arg4 = (
float *) 0 ;
44754 float *arg5 = (
float *) 0 ;
44765 PyObject * obj0 = 0 ;
44766 PyObject * obj1 = 0 ;
44767 PyObject * obj2 = 0 ;
44768 PyObject * obj3 = 0 ;
44769 PyObject * obj4 = 0 ;
44772 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:ReconstructFromNeighbors_compute_distances",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
44773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44774 if (!SWIG_IsOK(res1)) {
44775 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_compute_distances" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors const *""'");
44778 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44779 if (!SWIG_IsOK(ecode2)) {
44780 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_compute_distances" "', argument " "2"" of type '" "size_t""'");
44782 arg2 =
static_cast< size_t >(val2);
44783 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
44784 if (!SWIG_IsOK(res3)) {
44785 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ReconstructFromNeighbors_compute_distances" "', argument " "3"" of type '" "faiss::ReconstructFromNeighbors::idx_t const *""'");
44787 arg3 =
reinterpret_cast< faiss::ReconstructFromNeighbors::idx_t *
>(argp3);
44788 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
44789 if (!SWIG_IsOK(res4)) {
44790 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ReconstructFromNeighbors_compute_distances" "', argument " "4"" of type '" "float const *""'");
44792 arg4 =
reinterpret_cast< float *
>(argp4);
44793 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
44794 if (!SWIG_IsOK(res5)) {
44795 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "ReconstructFromNeighbors_compute_distances" "', argument " "5"" of type '" "float *""'");
44797 arg5 =
reinterpret_cast< float *
>(argp5);
44799 Py_BEGIN_ALLOW_THREADS
44801 result = (size_t)((
faiss::ReconstructFromNeighbors const *)arg1)->compute_distances(arg2,(faiss::ReconstructFromNeighbors::idx_t
const *)arg3,(
float const *)arg4,arg5);
44803 PyEval_RestoreThread(_save);
44804 PyErr_SetString(PyExc_RuntimeError, e.
what());
44807 Py_END_ALLOW_THREADS
44809 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
44816 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_estimate_code(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44817 PyObject *resultobj = 0;
44819 float *arg2 = (
float *) 0 ;
44820 faiss::ReconstructFromNeighbors::storage_idx_t arg3 ;
44821 uint8_t *arg4 = (uint8_t *) 0 ;
44830 PyObject * obj0 = 0 ;
44831 PyObject * obj1 = 0 ;
44832 PyObject * obj2 = 0 ;
44833 PyObject * obj3 = 0 ;
44835 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ReconstructFromNeighbors_estimate_code",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44837 if (!SWIG_IsOK(res1)) {
44838 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_estimate_code" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors const *""'");
44841 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
44842 if (!SWIG_IsOK(res2)) {
44843 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReconstructFromNeighbors_estimate_code" "', argument " "2"" of type '" "float const *""'");
44845 arg2 =
reinterpret_cast< float *
>(argp2);
44846 ecode3 = SWIG_AsVal_int(obj2, &val3);
44847 if (!SWIG_IsOK(ecode3)) {
44848 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ReconstructFromNeighbors_estimate_code" "', argument " "3"" of type '" "faiss::ReconstructFromNeighbors::storage_idx_t""'");
44850 arg3 =
static_cast< faiss::ReconstructFromNeighbors::storage_idx_t
>(val3);
44851 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
44852 if (!SWIG_IsOK(res4)) {
44853 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ReconstructFromNeighbors_estimate_code" "', argument " "4"" of type '" "uint8_t *""'");
44855 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
44857 Py_BEGIN_ALLOW_THREADS
44861 PyEval_RestoreThread(_save);
44862 PyErr_SetString(PyExc_RuntimeError, e.
what());
44865 Py_END_ALLOW_THREADS
44867 resultobj = SWIG_Py_Void();
44874 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44875 PyObject *resultobj = 0;
44877 faiss::ReconstructFromNeighbors::storage_idx_t arg2 ;
44878 float *arg3 = (
float *) 0 ;
44879 float *arg4 = (
float *) 0 ;
44888 PyObject * obj0 = 0 ;
44889 PyObject * obj1 = 0 ;
44890 PyObject * obj2 = 0 ;
44891 PyObject * obj3 = 0 ;
44893 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ReconstructFromNeighbors_reconstruct",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44895 if (!SWIG_IsOK(res1)) {
44896 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_reconstruct" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors const *""'");
44899 ecode2 = SWIG_AsVal_int(obj1, &val2);
44900 if (!SWIG_IsOK(ecode2)) {
44901 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_reconstruct" "', argument " "2"" of type '" "faiss::ReconstructFromNeighbors::storage_idx_t""'");
44903 arg2 =
static_cast< faiss::ReconstructFromNeighbors::storage_idx_t
>(val2);
44904 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
44905 if (!SWIG_IsOK(res3)) {
44906 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ReconstructFromNeighbors_reconstruct" "', argument " "3"" of type '" "float *""'");
44908 arg3 =
reinterpret_cast< float *
>(argp3);
44909 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
44910 if (!SWIG_IsOK(res4)) {
44911 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ReconstructFromNeighbors_reconstruct" "', argument " "4"" of type '" "float *""'");
44913 arg4 =
reinterpret_cast< float *
>(argp4);
44915 Py_BEGIN_ALLOW_THREADS
44919 PyEval_RestoreThread(_save);
44920 PyErr_SetString(PyExc_RuntimeError, e.
what());
44923 Py_END_ALLOW_THREADS
44925 resultobj = SWIG_Py_Void();
44932 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44933 PyObject *resultobj = 0;
44935 faiss::ReconstructFromNeighbors::storage_idx_t arg2 ;
44936 faiss::ReconstructFromNeighbors::storage_idx_t arg3 ;
44937 float *arg4 = (
float *) 0 ;
44946 PyObject * obj0 = 0 ;
44947 PyObject * obj1 = 0 ;
44948 PyObject * obj2 = 0 ;
44949 PyObject * obj3 = 0 ;
44951 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ReconstructFromNeighbors_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
44953 if (!SWIG_IsOK(res1)) {
44954 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_reconstruct_n" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors const *""'");
44957 ecode2 = SWIG_AsVal_int(obj1, &val2);
44958 if (!SWIG_IsOK(ecode2)) {
44959 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_reconstruct_n" "', argument " "2"" of type '" "faiss::ReconstructFromNeighbors::storage_idx_t""'");
44961 arg2 =
static_cast< faiss::ReconstructFromNeighbors::storage_idx_t
>(val2);
44962 ecode3 = SWIG_AsVal_int(obj2, &val3);
44963 if (!SWIG_IsOK(ecode3)) {
44964 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ReconstructFromNeighbors_reconstruct_n" "', argument " "3"" of type '" "faiss::ReconstructFromNeighbors::storage_idx_t""'");
44966 arg3 =
static_cast< faiss::ReconstructFromNeighbors::storage_idx_t
>(val3);
44967 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
44968 if (!SWIG_IsOK(res4)) {
44969 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ReconstructFromNeighbors_reconstruct_n" "', argument " "4"" of type '" "float *""'");
44971 arg4 =
reinterpret_cast< float *
>(argp4);
44973 Py_BEGIN_ALLOW_THREADS
44977 PyEval_RestoreThread(_save);
44978 PyErr_SetString(PyExc_RuntimeError, e.
what());
44981 Py_END_ALLOW_THREADS
44983 resultobj = SWIG_Py_Void();
44990 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_get_neighbor_table(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44991 PyObject *resultobj = 0;
44993 faiss::ReconstructFromNeighbors::storage_idx_t arg2 ;
44994 float *arg3 = (
float *) 0 ;
45001 PyObject * obj0 = 0 ;
45002 PyObject * obj1 = 0 ;
45003 PyObject * obj2 = 0 ;
45005 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ReconstructFromNeighbors_get_neighbor_table",&obj0,&obj1,&obj2)) SWIG_fail;
45006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45007 if (!SWIG_IsOK(res1)) {
45008 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_get_neighbor_table" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors const *""'");
45011 ecode2 = SWIG_AsVal_int(obj1, &val2);
45012 if (!SWIG_IsOK(ecode2)) {
45013 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_get_neighbor_table" "', argument " "2"" of type '" "faiss::ReconstructFromNeighbors::storage_idx_t""'");
45015 arg2 =
static_cast< faiss::ReconstructFromNeighbors::storage_idx_t
>(val2);
45016 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
45017 if (!SWIG_IsOK(res3)) {
45018 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ReconstructFromNeighbors_get_neighbor_table" "', argument " "3"" of type '" "float *""'");
45020 arg3 =
reinterpret_cast< float *
>(argp3);
45022 Py_BEGIN_ALLOW_THREADS
45026 PyEval_RestoreThread(_save);
45027 PyErr_SetString(PyExc_RuntimeError, e.
what());
45030 Py_END_ALLOW_THREADS
45032 resultobj = SWIG_Py_Void();
45039 SWIGINTERN PyObject *_wrap_delete_ReconstructFromNeighbors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45040 PyObject *resultobj = 0;
45044 PyObject * obj0 = 0 ;
45046 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ReconstructFromNeighbors",&obj0)) SWIG_fail;
45047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, SWIG_POINTER_DISOWN | 0 );
45048 if (!SWIG_IsOK(res1)) {
45049 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ReconstructFromNeighbors" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45053 resultobj = SWIG_Py_Void();
45060 SWIGINTERN PyObject *ReconstructFromNeighbors_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45062 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
45063 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ReconstructFromNeighbors, SWIG_NewClientData(obj));
45064 return SWIG_Py_Void();
45067 SWIGINTERN PyObject *_wrap_IndexHNSW_hnsw_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45068 PyObject *resultobj = 0;
45075 PyObject * obj0 = 0 ;
45076 PyObject * obj1 = 0 ;
45078 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexHNSW_hnsw_set",&obj0,&obj1)) SWIG_fail;
45079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45080 if (!SWIG_IsOK(res1)) {
45081 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_hnsw_set" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
45084 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
45085 if (!SWIG_IsOK(res2)) {
45086 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexHNSW_hnsw_set" "', argument " "2"" of type '" "faiss::HNSW *""'");
45089 if (arg1) (arg1)->hnsw = *arg2;
45090 resultobj = SWIG_Py_Void();
45097 SWIGINTERN PyObject *_wrap_IndexHNSW_hnsw_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45098 PyObject *resultobj = 0;
45102 PyObject * obj0 = 0 ;
45105 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_hnsw_get",&obj0)) SWIG_fail;
45106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45107 if (!SWIG_IsOK(res1)) {
45108 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_hnsw_get" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
45112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW, 0 | 0 );
45119 SWIGINTERN PyObject *_wrap_IndexHNSW_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45120 PyObject *resultobj = 0;
45127 PyObject * obj0 = 0 ;
45128 PyObject * obj1 = 0 ;
45130 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexHNSW_own_fields_set",&obj0,&obj1)) SWIG_fail;
45131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45132 if (!SWIG_IsOK(res1)) {
45133 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_own_fields_set" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
45136 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45137 if (!SWIG_IsOK(ecode2)) {
45138 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_own_fields_set" "', argument " "2"" of type '" "bool""'");
45140 arg2 =
static_cast< bool >(val2);
45141 if (arg1) (arg1)->own_fields = arg2;
45142 resultobj = SWIG_Py_Void();
45149 SWIGINTERN PyObject *_wrap_IndexHNSW_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45150 PyObject *resultobj = 0;
45154 PyObject * obj0 = 0 ;
45157 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_own_fields_get",&obj0)) SWIG_fail;
45158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45159 if (!SWIG_IsOK(res1)) {
45160 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_own_fields_get" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
45163 result = (bool) ((arg1)->own_fields);
45164 resultobj = SWIG_From_bool(static_cast< bool >(result));
45171 SWIGINTERN PyObject *_wrap_IndexHNSW_storage_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45172 PyObject *resultobj = 0;
45179 PyObject * obj0 = 0 ;
45180 PyObject * obj1 = 0 ;
45182 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexHNSW_storage_set",&obj0,&obj1)) SWIG_fail;
45183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45184 if (!SWIG_IsOK(res1)) {
45185 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_storage_set" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
45188 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
45189 if (!SWIG_IsOK(res2)) {
45190 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexHNSW_storage_set" "', argument " "2"" of type '" "faiss::Index *""'");
45193 if (arg1) (arg1)->storage = arg2;
45194 resultobj = SWIG_Py_Void();
45201 SWIGINTERN PyObject *_wrap_IndexHNSW_storage_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45202 PyObject *resultobj = 0;
45206 PyObject * obj0 = 0 ;
45209 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_storage_get",&obj0)) SWIG_fail;
45210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45211 if (!SWIG_IsOK(res1)) {
45212 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_storage_get" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
45216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
45223 SWIGINTERN PyObject *_wrap_IndexHNSW_reconstruct_from_neighbors_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45224 PyObject *resultobj = 0;
45231 PyObject * obj0 = 0 ;
45232 PyObject * obj1 = 0 ;
45234 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexHNSW_reconstruct_from_neighbors_set",&obj0,&obj1)) SWIG_fail;
45235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45236 if (!SWIG_IsOK(res1)) {
45237 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_reconstruct_from_neighbors_set" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
45240 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ReconstructFromNeighbors, SWIG_POINTER_DISOWN | 0 );
45241 if (!SWIG_IsOK(res2)) {
45242 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexHNSW_reconstruct_from_neighbors_set" "', argument " "2"" of type '" "faiss::ReconstructFromNeighbors *""'");
45245 if (arg1) (arg1)->reconstruct_from_neighbors = arg2;
45246 resultobj = SWIG_Py_Void();
45253 SWIGINTERN PyObject *_wrap_IndexHNSW_reconstruct_from_neighbors_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45254 PyObject *resultobj = 0;
45258 PyObject * obj0 = 0 ;
45261 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_reconstruct_from_neighbors_get",&obj0)) SWIG_fail;
45262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45263 if (!SWIG_IsOK(res1)) {
45264 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_reconstruct_from_neighbors_get" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
45268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45275 SWIGINTERN PyObject *_wrap_delete_IndexHNSW(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45276 PyObject *resultobj = 0;
45280 PyObject * obj0 = 0 ;
45282 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexHNSW",&obj0)) SWIG_fail;
45283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, SWIG_POINTER_DISOWN | 0 );
45284 if (!SWIG_IsOK(res1)) {
45285 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexHNSW" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
45289 Py_BEGIN_ALLOW_THREADS
45293 PyEval_RestoreThread(_save);
45294 PyErr_SetString(PyExc_RuntimeError, e.
what());
45297 Py_END_ALLOW_THREADS
45299 resultobj = SWIG_Py_Void();
45306 SWIGINTERN PyObject *_wrap_IndexHNSW_get_distance_computer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45307 PyObject *resultobj = 0;
45311 PyObject * obj0 = 0 ;
45314 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_get_distance_computer",&obj0)) SWIG_fail;
45315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45316 if (!SWIG_IsOK(res1)) {
45317 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_get_distance_computer" "', argument " "1"" of type '" "faiss::IndexHNSW const *""'");
45321 Py_BEGIN_ALLOW_THREADS
45325 PyEval_RestoreThread(_save);
45326 PyErr_SetString(PyExc_RuntimeError, e.
what());
45329 Py_END_ALLOW_THREADS
45331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 | 0 );
45338 SWIGINTERN PyObject *_wrap_IndexHNSW_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45339 PyObject *resultobj = 0;
45342 float *arg3 = (
float *) 0 ;
45349 PyObject * obj0 = 0 ;
45350 PyObject * obj1 = 0 ;
45351 PyObject * obj2 = 0 ;
45353 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexHNSW_add",&obj0,&obj1,&obj2)) SWIG_fail;
45354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45355 if (!SWIG_IsOK(res1)) {
45356 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_add" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
45359 ecode2 = SWIG_AsVal_long(obj1, &val2);
45360 if (!SWIG_IsOK(ecode2)) {
45361 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
45364 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
45365 if (!SWIG_IsOK(res3)) {
45366 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_add" "', argument " "3"" of type '" "float const *""'");
45368 arg3 =
reinterpret_cast< float *
>(argp3);
45370 Py_BEGIN_ALLOW_THREADS
45372 (arg1)->add(arg2,(
float const *)arg3);
45374 PyEval_RestoreThread(_save);
45375 PyErr_SetString(PyExc_RuntimeError, e.
what());
45378 Py_END_ALLOW_THREADS
45380 resultobj = SWIG_Py_Void();
45387 SWIGINTERN PyObject *_wrap_IndexHNSW_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45388 PyObject *resultobj = 0;
45391 float *arg3 = (
float *) 0 ;
45398 PyObject * obj0 = 0 ;
45399 PyObject * obj1 = 0 ;
45400 PyObject * obj2 = 0 ;
45402 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexHNSW_train",&obj0,&obj1,&obj2)) SWIG_fail;
45403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45404 if (!SWIG_IsOK(res1)) {
45405 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_train" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
45408 ecode2 = SWIG_AsVal_long(obj1, &val2);
45409 if (!SWIG_IsOK(ecode2)) {
45410 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
45413 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
45414 if (!SWIG_IsOK(res3)) {
45415 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_train" "', argument " "3"" of type '" "float const *""'");
45417 arg3 =
reinterpret_cast< float *
>(argp3);
45419 Py_BEGIN_ALLOW_THREADS
45421 (arg1)->train(arg2,(
float const *)arg3);
45423 PyEval_RestoreThread(_save);
45424 PyErr_SetString(PyExc_RuntimeError, e.
what());
45427 Py_END_ALLOW_THREADS
45429 resultobj = SWIG_Py_Void();
45436 SWIGINTERN PyObject *_wrap_IndexHNSW_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45437 PyObject *resultobj = 0;
45440 float *arg3 = (
float *) 0 ;
45442 float *arg5 = (
float *) 0 ;
45456 PyObject * obj0 = 0 ;
45457 PyObject * obj1 = 0 ;
45458 PyObject * obj2 = 0 ;
45459 PyObject * obj3 = 0 ;
45460 PyObject * obj4 = 0 ;
45461 PyObject * obj5 = 0 ;
45463 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexHNSW_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
45464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45465 if (!SWIG_IsOK(res1)) {
45466 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_search" "', argument " "1"" of type '" "faiss::IndexHNSW const *""'");
45469 ecode2 = SWIG_AsVal_long(obj1, &val2);
45470 if (!SWIG_IsOK(ecode2)) {
45471 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
45474 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
45475 if (!SWIG_IsOK(res3)) {
45476 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_search" "', argument " "3"" of type '" "float const *""'");
45478 arg3 =
reinterpret_cast< float *
>(argp3);
45479 ecode4 = SWIG_AsVal_long(obj3, &val4);
45480 if (!SWIG_IsOK(ecode4)) {
45481 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexHNSW_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
45484 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
45485 if (!SWIG_IsOK(res5)) {
45486 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexHNSW_search" "', argument " "5"" of type '" "float *""'");
45488 arg5 =
reinterpret_cast< float *
>(argp5);
45489 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
45490 if (!SWIG_IsOK(res6)) {
45491 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexHNSW_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
45495 Py_BEGIN_ALLOW_THREADS
45497 ((
faiss::IndexHNSW const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
45499 PyEval_RestoreThread(_save);
45500 PyErr_SetString(PyExc_RuntimeError, e.
what());
45503 Py_END_ALLOW_THREADS
45505 resultobj = SWIG_Py_Void();
45512 SWIGINTERN PyObject *_wrap_IndexHNSW_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45513 PyObject *resultobj = 0;
45516 float *arg3 = (
float *) 0 ;
45523 PyObject * obj0 = 0 ;
45524 PyObject * obj1 = 0 ;
45525 PyObject * obj2 = 0 ;
45527 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexHNSW_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
45528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45529 if (!SWIG_IsOK(res1)) {
45530 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_reconstruct" "', argument " "1"" of type '" "faiss::IndexHNSW const *""'");
45533 ecode2 = SWIG_AsVal_long(obj1, &val2);
45534 if (!SWIG_IsOK(ecode2)) {
45535 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
45538 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
45539 if (!SWIG_IsOK(res3)) {
45540 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_reconstruct" "', argument " "3"" of type '" "float *""'");
45542 arg3 =
reinterpret_cast< float *
>(argp3);
45544 Py_BEGIN_ALLOW_THREADS
45548 PyEval_RestoreThread(_save);
45549 PyErr_SetString(PyExc_RuntimeError, e.
what());
45552 Py_END_ALLOW_THREADS
45554 resultobj = SWIG_Py_Void();
45561 SWIGINTERN PyObject *_wrap_IndexHNSW_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45562 PyObject *resultobj = 0;
45566 PyObject * obj0 = 0 ;
45568 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_reset",&obj0)) SWIG_fail;
45569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45570 if (!SWIG_IsOK(res1)) {
45571 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_reset" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
45575 Py_BEGIN_ALLOW_THREADS
45579 PyEval_RestoreThread(_save);
45580 PyErr_SetString(PyExc_RuntimeError, e.
what());
45583 Py_END_ALLOW_THREADS
45585 resultobj = SWIG_Py_Void();
45592 SWIGINTERN PyObject *_wrap_IndexHNSW_shrink_level_0_neighbors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45593 PyObject *resultobj = 0;
45600 PyObject * obj0 = 0 ;
45601 PyObject * obj1 = 0 ;
45603 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexHNSW_shrink_level_0_neighbors",&obj0,&obj1)) SWIG_fail;
45604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45605 if (!SWIG_IsOK(res1)) {
45606 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_shrink_level_0_neighbors" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
45609 ecode2 = SWIG_AsVal_int(obj1, &val2);
45610 if (!SWIG_IsOK(ecode2)) {
45611 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_shrink_level_0_neighbors" "', argument " "2"" of type '" "int""'");
45613 arg2 =
static_cast< int >(val2);
45615 Py_BEGIN_ALLOW_THREADS
45617 (arg1)->shrink_level_0_neighbors(arg2);
45619 PyEval_RestoreThread(_save);
45620 PyErr_SetString(PyExc_RuntimeError, e.
what());
45623 Py_END_ALLOW_THREADS
45625 resultobj = SWIG_Py_Void();
45632 SWIGINTERN PyObject *_wrap_IndexHNSW_search_level_0__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45633 PyObject *resultobj = 0;
45636 float *arg3 = (
float *) 0 ;
45638 faiss::IndexHNSW::storage_idx_t *arg5 = (faiss::IndexHNSW::storage_idx_t *) 0 ;
45639 float *arg6 = (
float *) 0 ;
45640 float *arg7 = (
float *) 0 ;
45664 PyObject * obj0 = 0 ;
45665 PyObject * obj1 = 0 ;
45666 PyObject * obj2 = 0 ;
45667 PyObject * obj3 = 0 ;
45668 PyObject * obj4 = 0 ;
45669 PyObject * obj5 = 0 ;
45670 PyObject * obj6 = 0 ;
45671 PyObject * obj7 = 0 ;
45672 PyObject * obj8 = 0 ;
45673 PyObject * obj9 = 0 ;
45675 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOOO:IndexHNSW_search_level_0",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
45676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45677 if (!SWIG_IsOK(res1)) {
45678 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_search_level_0" "', argument " "1"" of type '" "faiss::IndexHNSW const *""'");
45681 ecode2 = SWIG_AsVal_long(obj1, &val2);
45682 if (!SWIG_IsOK(ecode2)) {
45683 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_search_level_0" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
45686 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
45687 if (!SWIG_IsOK(res3)) {
45688 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_search_level_0" "', argument " "3"" of type '" "float const *""'");
45690 arg3 =
reinterpret_cast< float *
>(argp3);
45691 ecode4 = SWIG_AsVal_long(obj3, &val4);
45692 if (!SWIG_IsOK(ecode4)) {
45693 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexHNSW_search_level_0" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
45696 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
45697 if (!SWIG_IsOK(res5)) {
45698 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexHNSW_search_level_0" "', argument " "5"" of type '" "faiss::IndexHNSW::storage_idx_t const *""'");
45700 arg5 =
reinterpret_cast< faiss::IndexHNSW::storage_idx_t *
>(argp5);
45701 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
45702 if (!SWIG_IsOK(res6)) {
45703 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexHNSW_search_level_0" "', argument " "6"" of type '" "float const *""'");
45705 arg6 =
reinterpret_cast< float *
>(argp6);
45706 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
45707 if (!SWIG_IsOK(res7)) {
45708 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexHNSW_search_level_0" "', argument " "7"" of type '" "float *""'");
45710 arg7 =
reinterpret_cast< float *
>(argp7);
45711 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
45712 if (!SWIG_IsOK(res8)) {
45713 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexHNSW_search_level_0" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
45716 ecode9 = SWIG_AsVal_int(obj8, &val9);
45717 if (!SWIG_IsOK(ecode9)) {
45718 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexHNSW_search_level_0" "', argument " "9"" of type '" "int""'");
45720 arg9 =
static_cast< int >(val9);
45721 ecode10 = SWIG_AsVal_int(obj9, &val10);
45722 if (!SWIG_IsOK(ecode10)) {
45723 SWIG_exception_fail(SWIG_ArgError(ecode10),
"in method '" "IndexHNSW_search_level_0" "', argument " "10"" of type '" "int""'");
45725 arg10 =
static_cast< int >(val10);
45727 Py_BEGIN_ALLOW_THREADS
45729 ((
faiss::IndexHNSW const *)arg1)->search_level_0(arg2,(
float const *)arg3,arg4,(faiss::IndexHNSW::storage_idx_t
const *)arg5,(
float const *)arg6,arg7,arg8,arg9,arg10);
45731 PyEval_RestoreThread(_save);
45732 PyErr_SetString(PyExc_RuntimeError, e.
what());
45735 Py_END_ALLOW_THREADS
45737 resultobj = SWIG_Py_Void();
45744 SWIGINTERN PyObject *_wrap_IndexHNSW_search_level_0__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45745 PyObject *resultobj = 0;
45748 float *arg3 = (
float *) 0 ;
45750 faiss::IndexHNSW::storage_idx_t *arg5 = (faiss::IndexHNSW::storage_idx_t *) 0 ;
45751 float *arg6 = (
float *) 0 ;
45752 float *arg7 = (
float *) 0 ;
45773 PyObject * obj0 = 0 ;
45774 PyObject * obj1 = 0 ;
45775 PyObject * obj2 = 0 ;
45776 PyObject * obj3 = 0 ;
45777 PyObject * obj4 = 0 ;
45778 PyObject * obj5 = 0 ;
45779 PyObject * obj6 = 0 ;
45780 PyObject * obj7 = 0 ;
45781 PyObject * obj8 = 0 ;
45783 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOO:IndexHNSW_search_level_0",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45785 if (!SWIG_IsOK(res1)) {
45786 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_search_level_0" "', argument " "1"" of type '" "faiss::IndexHNSW const *""'");
45789 ecode2 = SWIG_AsVal_long(obj1, &val2);
45790 if (!SWIG_IsOK(ecode2)) {
45791 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_search_level_0" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
45794 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
45795 if (!SWIG_IsOK(res3)) {
45796 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_search_level_0" "', argument " "3"" of type '" "float const *""'");
45798 arg3 =
reinterpret_cast< float *
>(argp3);
45799 ecode4 = SWIG_AsVal_long(obj3, &val4);
45800 if (!SWIG_IsOK(ecode4)) {
45801 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexHNSW_search_level_0" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
45804 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
45805 if (!SWIG_IsOK(res5)) {
45806 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexHNSW_search_level_0" "', argument " "5"" of type '" "faiss::IndexHNSW::storage_idx_t const *""'");
45808 arg5 =
reinterpret_cast< faiss::IndexHNSW::storage_idx_t *
>(argp5);
45809 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
45810 if (!SWIG_IsOK(res6)) {
45811 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexHNSW_search_level_0" "', argument " "6"" of type '" "float const *""'");
45813 arg6 =
reinterpret_cast< float *
>(argp6);
45814 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
45815 if (!SWIG_IsOK(res7)) {
45816 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexHNSW_search_level_0" "', argument " "7"" of type '" "float *""'");
45818 arg7 =
reinterpret_cast< float *
>(argp7);
45819 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
45820 if (!SWIG_IsOK(res8)) {
45821 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexHNSW_search_level_0" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
45824 ecode9 = SWIG_AsVal_int(obj8, &val9);
45825 if (!SWIG_IsOK(ecode9)) {
45826 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexHNSW_search_level_0" "', argument " "9"" of type '" "int""'");
45828 arg9 =
static_cast< int >(val9);
45830 Py_BEGIN_ALLOW_THREADS
45832 ((
faiss::IndexHNSW const *)arg1)->search_level_0(arg2,(
float const *)arg3,arg4,(faiss::IndexHNSW::storage_idx_t
const *)arg5,(
float const *)arg6,arg7,arg8,arg9);
45834 PyEval_RestoreThread(_save);
45835 PyErr_SetString(PyExc_RuntimeError, e.
what());
45838 Py_END_ALLOW_THREADS
45840 resultobj = SWIG_Py_Void();
45847 SWIGINTERN PyObject *_wrap_IndexHNSW_search_level_0__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45848 PyObject *resultobj = 0;
45851 float *arg3 = (
float *) 0 ;
45853 faiss::IndexHNSW::storage_idx_t *arg5 = (faiss::IndexHNSW::storage_idx_t *) 0 ;
45854 float *arg6 = (
float *) 0 ;
45855 float *arg7 = (
float *) 0 ;
45873 PyObject * obj0 = 0 ;
45874 PyObject * obj1 = 0 ;
45875 PyObject * obj2 = 0 ;
45876 PyObject * obj3 = 0 ;
45877 PyObject * obj4 = 0 ;
45878 PyObject * obj5 = 0 ;
45879 PyObject * obj6 = 0 ;
45880 PyObject * obj7 = 0 ;
45882 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:IndexHNSW_search_level_0",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45884 if (!SWIG_IsOK(res1)) {
45885 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_search_level_0" "', argument " "1"" of type '" "faiss::IndexHNSW const *""'");
45888 ecode2 = SWIG_AsVal_long(obj1, &val2);
45889 if (!SWIG_IsOK(ecode2)) {
45890 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_search_level_0" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
45893 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
45894 if (!SWIG_IsOK(res3)) {
45895 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_search_level_0" "', argument " "3"" of type '" "float const *""'");
45897 arg3 =
reinterpret_cast< float *
>(argp3);
45898 ecode4 = SWIG_AsVal_long(obj3, &val4);
45899 if (!SWIG_IsOK(ecode4)) {
45900 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexHNSW_search_level_0" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
45903 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
45904 if (!SWIG_IsOK(res5)) {
45905 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexHNSW_search_level_0" "', argument " "5"" of type '" "faiss::IndexHNSW::storage_idx_t const *""'");
45907 arg5 =
reinterpret_cast< faiss::IndexHNSW::storage_idx_t *
>(argp5);
45908 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
45909 if (!SWIG_IsOK(res6)) {
45910 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexHNSW_search_level_0" "', argument " "6"" of type '" "float const *""'");
45912 arg6 =
reinterpret_cast< float *
>(argp6);
45913 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
45914 if (!SWIG_IsOK(res7)) {
45915 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexHNSW_search_level_0" "', argument " "7"" of type '" "float *""'");
45917 arg7 =
reinterpret_cast< float *
>(argp7);
45918 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
45919 if (!SWIG_IsOK(res8)) {
45920 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexHNSW_search_level_0" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
45924 Py_BEGIN_ALLOW_THREADS
45926 ((
faiss::IndexHNSW const *)arg1)->search_level_0(arg2,(
float const *)arg3,arg4,(faiss::IndexHNSW::storage_idx_t
const *)arg5,(
float const *)arg6,arg7,arg8);
45928 PyEval_RestoreThread(_save);
45929 PyErr_SetString(PyExc_RuntimeError, e.
what());
45932 Py_END_ALLOW_THREADS
45934 resultobj = SWIG_Py_Void();
45941 SWIGINTERN PyObject *_wrap_IndexHNSW_search_level_0(PyObject *
self, PyObject *args) {
45943 PyObject *argv[11] = {
45948 if (!PyTuple_Check(args)) SWIG_fail;
45949 argc = args ? PyObject_Length(args) : 0;
45950 for (ii = 0; (ii < 10) && (ii < argc); ii++) {
45951 argv[ii] = PyTuple_GET_ITEM(args,ii);
45956 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexHNSW, 0);
45957 _v = SWIG_CheckState(res);
45960 int res = SWIG_AsVal_long(argv[1], NULL);
45961 _v = SWIG_CheckState(res);
45965 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
45966 _v = SWIG_CheckState(res);
45969 int res = SWIG_AsVal_long(argv[3], NULL);
45970 _v = SWIG_CheckState(res);
45974 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0);
45975 _v = SWIG_CheckState(res);
45978 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
45979 _v = SWIG_CheckState(res);
45982 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
45983 _v = SWIG_CheckState(res);
45986 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
45987 _v = SWIG_CheckState(res);
45989 return _wrap_IndexHNSW_search_level_0__SWIG_2(
self, args);
46002 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexHNSW, 0);
46003 _v = SWIG_CheckState(res);
46006 int res = SWIG_AsVal_long(argv[1], NULL);
46007 _v = SWIG_CheckState(res);
46011 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
46012 _v = SWIG_CheckState(res);
46015 int res = SWIG_AsVal_long(argv[3], NULL);
46016 _v = SWIG_CheckState(res);
46020 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0);
46021 _v = SWIG_CheckState(res);
46024 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
46025 _v = SWIG_CheckState(res);
46028 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
46029 _v = SWIG_CheckState(res);
46032 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
46033 _v = SWIG_CheckState(res);
46036 int res = SWIG_AsVal_int(argv[8], NULL);
46037 _v = SWIG_CheckState(res);
46040 return _wrap_IndexHNSW_search_level_0__SWIG_1(
self, args);
46054 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexHNSW, 0);
46055 _v = SWIG_CheckState(res);
46058 int res = SWIG_AsVal_long(argv[1], NULL);
46059 _v = SWIG_CheckState(res);
46063 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
46064 _v = SWIG_CheckState(res);
46067 int res = SWIG_AsVal_long(argv[3], NULL);
46068 _v = SWIG_CheckState(res);
46072 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0);
46073 _v = SWIG_CheckState(res);
46076 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
46077 _v = SWIG_CheckState(res);
46080 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
46081 _v = SWIG_CheckState(res);
46084 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
46085 _v = SWIG_CheckState(res);
46088 int res = SWIG_AsVal_int(argv[8], NULL);
46089 _v = SWIG_CheckState(res);
46093 int res = SWIG_AsVal_int(argv[9], NULL);
46094 _v = SWIG_CheckState(res);
46097 return _wrap_IndexHNSW_search_level_0__SWIG_0(
self, args);
46111 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexHNSW_search_level_0'.\n"
46112 " Possible C/C++ prototypes are:\n"
46113 " faiss::IndexHNSW::search_level_0(faiss::Index::idx_t,float const *,faiss::Index::idx_t,faiss::IndexHNSW::storage_idx_t const *,float const *,float *,faiss::Index::idx_t *,int,int) const\n"
46114 " faiss::IndexHNSW::search_level_0(faiss::Index::idx_t,float const *,faiss::Index::idx_t,faiss::IndexHNSW::storage_idx_t const *,float const *,float *,faiss::Index::idx_t *,int) const\n"
46115 " faiss::IndexHNSW::search_level_0(faiss::Index::idx_t,float const *,faiss::Index::idx_t,faiss::IndexHNSW::storage_idx_t const *,float const *,float *,faiss::Index::idx_t *) const\n");
46120 SWIGINTERN PyObject *_wrap_IndexHNSW_init_level_0_from_knngraph(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46121 PyObject *resultobj = 0;
46124 float *arg3 = (
float *) 0 ;
46134 PyObject * obj0 = 0 ;
46135 PyObject * obj1 = 0 ;
46136 PyObject * obj2 = 0 ;
46137 PyObject * obj3 = 0 ;
46139 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexHNSW_init_level_0_from_knngraph",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
46140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46141 if (!SWIG_IsOK(res1)) {
46142 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_init_level_0_from_knngraph" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46145 ecode2 = SWIG_AsVal_int(obj1, &val2);
46146 if (!SWIG_IsOK(ecode2)) {
46147 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_init_level_0_from_knngraph" "', argument " "2"" of type '" "int""'");
46149 arg2 =
static_cast< int >(val2);
46150 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
46151 if (!SWIG_IsOK(res3)) {
46152 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_init_level_0_from_knngraph" "', argument " "3"" of type '" "float const *""'");
46154 arg3 =
reinterpret_cast< float *
>(argp3);
46155 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
46156 if (!SWIG_IsOK(res4)) {
46157 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexHNSW_init_level_0_from_knngraph" "', argument " "4"" of type '" "faiss::Index::idx_t const *""'");
46161 Py_BEGIN_ALLOW_THREADS
46163 (arg1)->init_level_0_from_knngraph(arg2,(
float const *)arg3,(
faiss::Index::idx_t const *)arg4);
46165 PyEval_RestoreThread(_save);
46166 PyErr_SetString(PyExc_RuntimeError, e.
what());
46169 Py_END_ALLOW_THREADS
46171 resultobj = SWIG_Py_Void();
46178 SWIGINTERN PyObject *_wrap_IndexHNSW_init_level_0_from_entry_points(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46179 PyObject *resultobj = 0;
46182 faiss::IndexHNSW::storage_idx_t *arg3 = (faiss::IndexHNSW::storage_idx_t *) 0 ;
46183 faiss::IndexHNSW::storage_idx_t *arg4 = (faiss::IndexHNSW::storage_idx_t *) 0 ;
46192 PyObject * obj0 = 0 ;
46193 PyObject * obj1 = 0 ;
46194 PyObject * obj2 = 0 ;
46195 PyObject * obj3 = 0 ;
46197 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexHNSW_init_level_0_from_entry_points",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
46198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46199 if (!SWIG_IsOK(res1)) {
46200 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_init_level_0_from_entry_points" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46203 ecode2 = SWIG_AsVal_int(obj1, &val2);
46204 if (!SWIG_IsOK(ecode2)) {
46205 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_init_level_0_from_entry_points" "', argument " "2"" of type '" "int""'");
46207 arg2 =
static_cast< int >(val2);
46208 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
46209 if (!SWIG_IsOK(res3)) {
46210 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_init_level_0_from_entry_points" "', argument " "3"" of type '" "faiss::IndexHNSW::storage_idx_t const *""'");
46212 arg3 =
reinterpret_cast< faiss::IndexHNSW::storage_idx_t *
>(argp3);
46213 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 );
46214 if (!SWIG_IsOK(res4)) {
46215 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexHNSW_init_level_0_from_entry_points" "', argument " "4"" of type '" "faiss::IndexHNSW::storage_idx_t const *""'");
46217 arg4 =
reinterpret_cast< faiss::IndexHNSW::storage_idx_t *
>(argp4);
46219 Py_BEGIN_ALLOW_THREADS
46221 (arg1)->init_level_0_from_entry_points(arg2,(faiss::IndexHNSW::storage_idx_t
const *)arg3,(faiss::IndexHNSW::storage_idx_t
const *)arg4);
46223 PyEval_RestoreThread(_save);
46224 PyErr_SetString(PyExc_RuntimeError, e.
what());
46227 Py_END_ALLOW_THREADS
46229 resultobj = SWIG_Py_Void();
46236 SWIGINTERN PyObject *_wrap_IndexHNSW_reorder_links(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46237 PyObject *resultobj = 0;
46241 PyObject * obj0 = 0 ;
46243 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_reorder_links",&obj0)) SWIG_fail;
46244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46245 if (!SWIG_IsOK(res1)) {
46246 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_reorder_links" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46250 Py_BEGIN_ALLOW_THREADS
46252 (arg1)->reorder_links();
46254 PyEval_RestoreThread(_save);
46255 PyErr_SetString(PyExc_RuntimeError, e.
what());
46258 Py_END_ALLOW_THREADS
46260 resultobj = SWIG_Py_Void();
46267 SWIGINTERN PyObject *_wrap_IndexHNSW_link_singletons(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46268 PyObject *resultobj = 0;
46272 PyObject * obj0 = 0 ;
46274 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_link_singletons",&obj0)) SWIG_fail;
46275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46276 if (!SWIG_IsOK(res1)) {
46277 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_link_singletons" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46281 Py_BEGIN_ALLOW_THREADS
46283 (arg1)->link_singletons();
46285 PyEval_RestoreThread(_save);
46286 PyErr_SetString(PyExc_RuntimeError, e.
what());
46289 Py_END_ALLOW_THREADS
46291 resultobj = SWIG_Py_Void();
46298 SWIGINTERN PyObject *IndexHNSW_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46300 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
46301 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexHNSW, SWIG_NewClientData(obj));
46302 return SWIG_Py_Void();
46305 SWIGINTERN PyObject *_wrap_new_IndexHNSWFlat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46306 PyObject *resultobj = 0;
46309 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexHNSWFlat")) SWIG_fail;
46311 Py_BEGIN_ALLOW_THREADS
46315 PyEval_RestoreThread(_save);
46316 PyErr_SetString(PyExc_RuntimeError, e.
what());
46319 Py_END_ALLOW_THREADS
46321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSWFlat, SWIG_POINTER_NEW | 0 );
46328 SWIGINTERN PyObject *_wrap_new_IndexHNSWFlat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46329 PyObject *resultobj = 0;
46336 PyObject * obj0 = 0 ;
46337 PyObject * obj1 = 0 ;
46340 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexHNSWFlat",&obj0,&obj1)) SWIG_fail;
46341 ecode1 = SWIG_AsVal_int(obj0, &val1);
46342 if (!SWIG_IsOK(ecode1)) {
46343 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexHNSWFlat" "', argument " "1"" of type '" "int""'");
46345 arg1 =
static_cast< int >(val1);
46346 ecode2 = SWIG_AsVal_int(obj1, &val2);
46347 if (!SWIG_IsOK(ecode2)) {
46348 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexHNSWFlat" "', argument " "2"" of type '" "int""'");
46350 arg2 =
static_cast< int >(val2);
46352 Py_BEGIN_ALLOW_THREADS
46356 PyEval_RestoreThread(_save);
46357 PyErr_SetString(PyExc_RuntimeError, e.
what());
46360 Py_END_ALLOW_THREADS
46362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSWFlat, SWIG_POINTER_NEW | 0 );
46369 SWIGINTERN PyObject *_wrap_new_IndexHNSWFlat(PyObject *
self, PyObject *args) {
46371 PyObject *argv[3] = {
46376 if (!PyTuple_Check(args)) SWIG_fail;
46377 argc = args ? PyObject_Length(args) : 0;
46378 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
46379 argv[ii] = PyTuple_GET_ITEM(args,ii);
46382 return _wrap_new_IndexHNSWFlat__SWIG_0(
self, args);
46387 int res = SWIG_AsVal_int(argv[0], NULL);
46388 _v = SWIG_CheckState(res);
46392 int res = SWIG_AsVal_int(argv[1], NULL);
46393 _v = SWIG_CheckState(res);
46396 return _wrap_new_IndexHNSWFlat__SWIG_1(
self, args);
46402 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexHNSWFlat'.\n"
46403 " Possible C/C++ prototypes are:\n"
46404 " faiss::IndexHNSWFlat::IndexHNSWFlat()\n"
46405 " faiss::IndexHNSWFlat::IndexHNSWFlat(int,int)\n");
46410 SWIGINTERN PyObject *_wrap_IndexHNSWFlat_get_distance_computer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46411 PyObject *resultobj = 0;
46415 PyObject * obj0 = 0 ;
46418 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSWFlat_get_distance_computer",&obj0)) SWIG_fail;
46419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSWFlat, 0 | 0 );
46420 if (!SWIG_IsOK(res1)) {
46421 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSWFlat_get_distance_computer" "', argument " "1"" of type '" "faiss::IndexHNSWFlat const *""'");
46425 Py_BEGIN_ALLOW_THREADS
46429 PyEval_RestoreThread(_save);
46430 PyErr_SetString(PyExc_RuntimeError, e.
what());
46433 Py_END_ALLOW_THREADS
46435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 | 0 );
46442 SWIGINTERN PyObject *_wrap_delete_IndexHNSWFlat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46443 PyObject *resultobj = 0;
46447 PyObject * obj0 = 0 ;
46449 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexHNSWFlat",&obj0)) SWIG_fail;
46450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSWFlat, SWIG_POINTER_DISOWN | 0 );
46451 if (!SWIG_IsOK(res1)) {
46452 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexHNSWFlat" "', argument " "1"" of type '" "faiss::IndexHNSWFlat *""'");
46456 resultobj = SWIG_Py_Void();
46463 SWIGINTERN PyObject *IndexHNSWFlat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46465 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
46466 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexHNSWFlat, SWIG_NewClientData(obj));
46467 return SWIG_Py_Void();
46470 SWIGINTERN PyObject *_wrap_new_IndexHNSWPQ__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46471 PyObject *resultobj = 0;
46474 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexHNSWPQ")) SWIG_fail;
46476 Py_BEGIN_ALLOW_THREADS
46480 PyEval_RestoreThread(_save);
46481 PyErr_SetString(PyExc_RuntimeError, e.
what());
46484 Py_END_ALLOW_THREADS
46486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSWPQ, SWIG_POINTER_NEW | 0 );
46493 SWIGINTERN PyObject *_wrap_new_IndexHNSWPQ__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46494 PyObject *resultobj = 0;
46504 PyObject * obj0 = 0 ;
46505 PyObject * obj1 = 0 ;
46506 PyObject * obj2 = 0 ;
46509 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexHNSWPQ",&obj0,&obj1,&obj2)) SWIG_fail;
46510 ecode1 = SWIG_AsVal_int(obj0, &val1);
46511 if (!SWIG_IsOK(ecode1)) {
46512 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexHNSWPQ" "', argument " "1"" of type '" "int""'");
46514 arg1 =
static_cast< int >(val1);
46515 ecode2 = SWIG_AsVal_int(obj1, &val2);
46516 if (!SWIG_IsOK(ecode2)) {
46517 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexHNSWPQ" "', argument " "2"" of type '" "int""'");
46519 arg2 =
static_cast< int >(val2);
46520 ecode3 = SWIG_AsVal_int(obj2, &val3);
46521 if (!SWIG_IsOK(ecode3)) {
46522 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexHNSWPQ" "', argument " "3"" of type '" "int""'");
46524 arg3 =
static_cast< int >(val3);
46526 Py_BEGIN_ALLOW_THREADS
46530 PyEval_RestoreThread(_save);
46531 PyErr_SetString(PyExc_RuntimeError, e.
what());
46534 Py_END_ALLOW_THREADS
46536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSWPQ, SWIG_POINTER_NEW | 0 );
46543 SWIGINTERN PyObject *_wrap_new_IndexHNSWPQ(PyObject *
self, PyObject *args) {
46545 PyObject *argv[4] = {
46550 if (!PyTuple_Check(args)) SWIG_fail;
46551 argc = args ? PyObject_Length(args) : 0;
46552 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
46553 argv[ii] = PyTuple_GET_ITEM(args,ii);
46556 return _wrap_new_IndexHNSWPQ__SWIG_0(
self, args);
46561 int res = SWIG_AsVal_int(argv[0], NULL);
46562 _v = SWIG_CheckState(res);
46566 int res = SWIG_AsVal_int(argv[1], NULL);
46567 _v = SWIG_CheckState(res);
46571 int res = SWIG_AsVal_int(argv[2], NULL);
46572 _v = SWIG_CheckState(res);
46575 return _wrap_new_IndexHNSWPQ__SWIG_1(
self, args);
46582 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexHNSWPQ'.\n"
46583 " Possible C/C++ prototypes are:\n"
46584 " faiss::IndexHNSWPQ::IndexHNSWPQ()\n"
46585 " faiss::IndexHNSWPQ::IndexHNSWPQ(int,int,int)\n");
46590 SWIGINTERN PyObject *_wrap_IndexHNSWPQ_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46591 PyObject *resultobj = 0;
46594 float *arg3 = (
float *) 0 ;
46601 PyObject * obj0 = 0 ;
46602 PyObject * obj1 = 0 ;
46603 PyObject * obj2 = 0 ;
46605 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexHNSWPQ_train",&obj0,&obj1,&obj2)) SWIG_fail;
46606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSWPQ, 0 | 0 );
46607 if (!SWIG_IsOK(res1)) {
46608 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSWPQ_train" "', argument " "1"" of type '" "faiss::IndexHNSWPQ *""'");
46611 ecode2 = SWIG_AsVal_long(obj1, &val2);
46612 if (!SWIG_IsOK(ecode2)) {
46613 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSWPQ_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
46616 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
46617 if (!SWIG_IsOK(res3)) {
46618 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSWPQ_train" "', argument " "3"" of type '" "float const *""'");
46620 arg3 =
reinterpret_cast< float *
>(argp3);
46622 Py_BEGIN_ALLOW_THREADS
46624 (arg1)->train(arg2,(
float const *)arg3);
46626 PyEval_RestoreThread(_save);
46627 PyErr_SetString(PyExc_RuntimeError, e.
what());
46630 Py_END_ALLOW_THREADS
46632 resultobj = SWIG_Py_Void();
46639 SWIGINTERN PyObject *_wrap_IndexHNSWPQ_get_distance_computer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46640 PyObject *resultobj = 0;
46644 PyObject * obj0 = 0 ;
46647 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSWPQ_get_distance_computer",&obj0)) SWIG_fail;
46648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSWPQ, 0 | 0 );
46649 if (!SWIG_IsOK(res1)) {
46650 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSWPQ_get_distance_computer" "', argument " "1"" of type '" "faiss::IndexHNSWPQ const *""'");
46654 Py_BEGIN_ALLOW_THREADS
46658 PyEval_RestoreThread(_save);
46659 PyErr_SetString(PyExc_RuntimeError, e.
what());
46662 Py_END_ALLOW_THREADS
46664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 | 0 );
46671 SWIGINTERN PyObject *_wrap_delete_IndexHNSWPQ(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46672 PyObject *resultobj = 0;
46676 PyObject * obj0 = 0 ;
46678 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexHNSWPQ",&obj0)) SWIG_fail;
46679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSWPQ, SWIG_POINTER_DISOWN | 0 );
46680 if (!SWIG_IsOK(res1)) {
46681 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexHNSWPQ" "', argument " "1"" of type '" "faiss::IndexHNSWPQ *""'");
46685 resultobj = SWIG_Py_Void();
46692 SWIGINTERN PyObject *IndexHNSWPQ_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46694 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
46695 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexHNSWPQ, SWIG_NewClientData(obj));
46696 return SWIG_Py_Void();
46699 SWIGINTERN PyObject *_wrap_new_IndexHNSWSQ__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46700 PyObject *resultobj = 0;
46703 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexHNSWSQ")) SWIG_fail;
46705 Py_BEGIN_ALLOW_THREADS
46709 PyEval_RestoreThread(_save);
46710 PyErr_SetString(PyExc_RuntimeError, e.
what());
46713 Py_END_ALLOW_THREADS
46715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSWSQ, SWIG_POINTER_NEW | 0 );
46722 SWIGINTERN PyObject *_wrap_new_IndexHNSWSQ__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46723 PyObject *resultobj = 0;
46733 PyObject * obj0 = 0 ;
46734 PyObject * obj1 = 0 ;
46735 PyObject * obj2 = 0 ;
46738 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexHNSWSQ",&obj0,&obj1,&obj2)) SWIG_fail;
46739 ecode1 = SWIG_AsVal_int(obj0, &val1);
46740 if (!SWIG_IsOK(ecode1)) {
46741 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexHNSWSQ" "', argument " "1"" of type '" "int""'");
46743 arg1 =
static_cast< int >(val1);
46744 ecode2 = SWIG_AsVal_int(obj1, &val2);
46745 if (!SWIG_IsOK(ecode2)) {
46746 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexHNSWSQ" "', argument " "2"" of type '" "faiss::ScalarQuantizer::QuantizerType""'");
46749 ecode3 = SWIG_AsVal_int(obj2, &val3);
46750 if (!SWIG_IsOK(ecode3)) {
46751 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexHNSWSQ" "', argument " "3"" of type '" "int""'");
46753 arg3 =
static_cast< int >(val3);
46755 Py_BEGIN_ALLOW_THREADS
46759 PyEval_RestoreThread(_save);
46760 PyErr_SetString(PyExc_RuntimeError, e.
what());
46763 Py_END_ALLOW_THREADS
46765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSWSQ, SWIG_POINTER_NEW | 0 );
46772 SWIGINTERN PyObject *_wrap_new_IndexHNSWSQ(PyObject *
self, PyObject *args) {
46774 PyObject *argv[4] = {
46779 if (!PyTuple_Check(args)) SWIG_fail;
46780 argc = args ? PyObject_Length(args) : 0;
46781 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
46782 argv[ii] = PyTuple_GET_ITEM(args,ii);
46785 return _wrap_new_IndexHNSWSQ__SWIG_0(
self, args);
46790 int res = SWIG_AsVal_int(argv[0], NULL);
46791 _v = SWIG_CheckState(res);
46795 int res = SWIG_AsVal_int(argv[1], NULL);
46796 _v = SWIG_CheckState(res);
46800 int res = SWIG_AsVal_int(argv[2], NULL);
46801 _v = SWIG_CheckState(res);
46804 return _wrap_new_IndexHNSWSQ__SWIG_1(
self, args);
46811 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexHNSWSQ'.\n"
46812 " Possible C/C++ prototypes are:\n"
46813 " faiss::IndexHNSWSQ::IndexHNSWSQ()\n"
46814 " faiss::IndexHNSWSQ::IndexHNSWSQ(int,faiss::ScalarQuantizer::QuantizerType,int)\n");
46819 SWIGINTERN PyObject *_wrap_IndexHNSWSQ_get_distance_computer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46820 PyObject *resultobj = 0;
46824 PyObject * obj0 = 0 ;
46827 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSWSQ_get_distance_computer",&obj0)) SWIG_fail;
46828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSWSQ, 0 | 0 );
46829 if (!SWIG_IsOK(res1)) {
46830 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSWSQ_get_distance_computer" "', argument " "1"" of type '" "faiss::IndexHNSWSQ const *""'");
46834 Py_BEGIN_ALLOW_THREADS
46838 PyEval_RestoreThread(_save);
46839 PyErr_SetString(PyExc_RuntimeError, e.
what());
46842 Py_END_ALLOW_THREADS
46844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 | 0 );
46851 SWIGINTERN PyObject *_wrap_delete_IndexHNSWSQ(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46852 PyObject *resultobj = 0;
46856 PyObject * obj0 = 0 ;
46858 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexHNSWSQ",&obj0)) SWIG_fail;
46859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSWSQ, SWIG_POINTER_DISOWN | 0 );
46860 if (!SWIG_IsOK(res1)) {
46861 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexHNSWSQ" "', argument " "1"" of type '" "faiss::IndexHNSWSQ *""'");
46865 resultobj = SWIG_Py_Void();
46872 SWIGINTERN PyObject *IndexHNSWSQ_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46874 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
46875 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexHNSWSQ, SWIG_NewClientData(obj));
46876 return SWIG_Py_Void();
46879 SWIGINTERN PyObject *_wrap_new_IndexHNSW2Level__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46880 PyObject *resultobj = 0;
46883 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexHNSW2Level")) SWIG_fail;
46885 Py_BEGIN_ALLOW_THREADS
46889 PyEval_RestoreThread(_save);
46890 PyErr_SetString(PyExc_RuntimeError, e.
what());
46893 Py_END_ALLOW_THREADS
46895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSW2Level, SWIG_POINTER_NEW | 0 );
46902 SWIGINTERN PyObject *_wrap_new_IndexHNSW2Level__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46903 PyObject *resultobj = 0;
46916 PyObject * obj0 = 0 ;
46917 PyObject * obj1 = 0 ;
46918 PyObject * obj2 = 0 ;
46919 PyObject * obj3 = 0 ;
46922 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_IndexHNSW2Level",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
46923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
46924 if (!SWIG_IsOK(res1)) {
46925 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexHNSW2Level" "', argument " "1"" of type '" "faiss::Index *""'");
46928 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
46929 if (!SWIG_IsOK(ecode2)) {
46930 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexHNSW2Level" "', argument " "2"" of type '" "size_t""'");
46932 arg2 =
static_cast< size_t >(val2);
46933 ecode3 = SWIG_AsVal_int(obj2, &val3);
46934 if (!SWIG_IsOK(ecode3)) {
46935 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexHNSW2Level" "', argument " "3"" of type '" "int""'");
46937 arg3 =
static_cast< int >(val3);
46938 ecode4 = SWIG_AsVal_int(obj3, &val4);
46939 if (!SWIG_IsOK(ecode4)) {
46940 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexHNSW2Level" "', argument " "4"" of type '" "int""'");
46942 arg4 =
static_cast< int >(val4);
46944 Py_BEGIN_ALLOW_THREADS
46948 PyEval_RestoreThread(_save);
46949 PyErr_SetString(PyExc_RuntimeError, e.
what());
46952 Py_END_ALLOW_THREADS
46954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSW2Level, SWIG_POINTER_NEW | 0 );
46961 SWIGINTERN PyObject *_wrap_new_IndexHNSW2Level(PyObject *
self, PyObject *args) {
46963 PyObject *argv[5] = {
46968 if (!PyTuple_Check(args)) SWIG_fail;
46969 argc = args ? PyObject_Length(args) : 0;
46970 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
46971 argv[ii] = PyTuple_GET_ITEM(args,ii);
46974 return _wrap_new_IndexHNSW2Level__SWIG_0(
self, args);
46979 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
46980 _v = SWIG_CheckState(res);
46983 int res = SWIG_AsVal_size_t(argv[1], NULL);
46984 _v = SWIG_CheckState(res);
46988 int res = SWIG_AsVal_int(argv[2], NULL);
46989 _v = SWIG_CheckState(res);
46993 int res = SWIG_AsVal_int(argv[3], NULL);
46994 _v = SWIG_CheckState(res);
46997 return _wrap_new_IndexHNSW2Level__SWIG_1(
self, args);
47005 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexHNSW2Level'.\n"
47006 " Possible C/C++ prototypes are:\n"
47007 " faiss::IndexHNSW2Level::IndexHNSW2Level()\n"
47008 " faiss::IndexHNSW2Level::IndexHNSW2Level(faiss::Index *,size_t,int,int)\n");
47013 SWIGINTERN PyObject *_wrap_IndexHNSW2Level_get_distance_computer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47014 PyObject *resultobj = 0;
47018 PyObject * obj0 = 0 ;
47021 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW2Level_get_distance_computer",&obj0)) SWIG_fail;
47022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW2Level, 0 | 0 );
47023 if (!SWIG_IsOK(res1)) {
47024 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW2Level_get_distance_computer" "', argument " "1"" of type '" "faiss::IndexHNSW2Level const *""'");
47028 Py_BEGIN_ALLOW_THREADS
47032 PyEval_RestoreThread(_save);
47033 PyErr_SetString(PyExc_RuntimeError, e.
what());
47036 Py_END_ALLOW_THREADS
47038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 | 0 );
47045 SWIGINTERN PyObject *_wrap_IndexHNSW2Level_flip_to_ivf(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47046 PyObject *resultobj = 0;
47050 PyObject * obj0 = 0 ;
47052 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW2Level_flip_to_ivf",&obj0)) SWIG_fail;
47053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW2Level, 0 | 0 );
47054 if (!SWIG_IsOK(res1)) {
47055 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW2Level_flip_to_ivf" "', argument " "1"" of type '" "faiss::IndexHNSW2Level *""'");
47059 Py_BEGIN_ALLOW_THREADS
47061 (arg1)->flip_to_ivf();
47063 PyEval_RestoreThread(_save);
47064 PyErr_SetString(PyExc_RuntimeError, e.
what());
47067 Py_END_ALLOW_THREADS
47069 resultobj = SWIG_Py_Void();
47076 SWIGINTERN PyObject *_wrap_IndexHNSW2Level_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47077 PyObject *resultobj = 0;
47080 float *arg3 = (
float *) 0 ;
47082 float *arg5 = (
float *) 0 ;
47096 PyObject * obj0 = 0 ;
47097 PyObject * obj1 = 0 ;
47098 PyObject * obj2 = 0 ;
47099 PyObject * obj3 = 0 ;
47100 PyObject * obj4 = 0 ;
47101 PyObject * obj5 = 0 ;
47103 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexHNSW2Level_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
47104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW2Level, 0 | 0 );
47105 if (!SWIG_IsOK(res1)) {
47106 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW2Level_search" "', argument " "1"" of type '" "faiss::IndexHNSW2Level const *""'");
47109 ecode2 = SWIG_AsVal_long(obj1, &val2);
47110 if (!SWIG_IsOK(ecode2)) {
47111 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW2Level_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
47114 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
47115 if (!SWIG_IsOK(res3)) {
47116 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW2Level_search" "', argument " "3"" of type '" "float const *""'");
47118 arg3 =
reinterpret_cast< float *
>(argp3);
47119 ecode4 = SWIG_AsVal_long(obj3, &val4);
47120 if (!SWIG_IsOK(ecode4)) {
47121 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexHNSW2Level_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
47124 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
47125 if (!SWIG_IsOK(res5)) {
47126 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexHNSW2Level_search" "', argument " "5"" of type '" "float *""'");
47128 arg5 =
reinterpret_cast< float *
>(argp5);
47129 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
47130 if (!SWIG_IsOK(res6)) {
47131 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexHNSW2Level_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
47135 Py_BEGIN_ALLOW_THREADS
47139 PyEval_RestoreThread(_save);
47140 PyErr_SetString(PyExc_RuntimeError, e.
what());
47143 Py_END_ALLOW_THREADS
47145 resultobj = SWIG_Py_Void();
47152 SWIGINTERN PyObject *_wrap_delete_IndexHNSW2Level(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47153 PyObject *resultobj = 0;
47157 PyObject * obj0 = 0 ;
47159 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexHNSW2Level",&obj0)) SWIG_fail;
47160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW2Level, SWIG_POINTER_DISOWN | 0 );
47161 if (!SWIG_IsOK(res1)) {
47162 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexHNSW2Level" "', argument " "1"" of type '" "faiss::IndexHNSW2Level *""'");
47166 resultobj = SWIG_Py_Void();
47173 SWIGINTERN PyObject *IndexHNSW2Level_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47175 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
47176 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexHNSW2Level, SWIG_NewClientData(obj));
47177 return SWIG_Py_Void();
47180 SWIGINTERN PyObject *_wrap_new_IndexIVFFlat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47181 PyObject *resultobj = 0;
47194 PyObject * obj0 = 0 ;
47195 PyObject * obj1 = 0 ;
47196 PyObject * obj2 = 0 ;
47197 PyObject * obj3 = 0 ;
47200 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_IndexIVFFlat",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
47201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
47202 if (!SWIG_IsOK(res1)) {
47203 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFFlat" "', argument " "1"" of type '" "faiss::Index *""'");
47206 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
47207 if (!SWIG_IsOK(ecode2)) {
47208 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFFlat" "', argument " "2"" of type '" "size_t""'");
47210 arg2 =
static_cast< size_t >(val2);
47211 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
47212 if (!SWIG_IsOK(ecode3)) {
47213 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFFlat" "', argument " "3"" of type '" "size_t""'");
47215 arg3 =
static_cast< size_t >(val3);
47216 ecode4 = SWIG_AsVal_int(obj3, &val4);
47217 if (!SWIG_IsOK(ecode4)) {
47218 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexIVFFlat" "', argument " "4"" of type '" "faiss::MetricType""'");
47222 Py_BEGIN_ALLOW_THREADS
47226 PyEval_RestoreThread(_save);
47227 PyErr_SetString(PyExc_RuntimeError, e.
what());
47230 Py_END_ALLOW_THREADS
47232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFFlat, SWIG_POINTER_NEW | 0 );
47239 SWIGINTERN PyObject *_wrap_new_IndexIVFFlat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47240 PyObject *resultobj = 0;
47250 PyObject * obj0 = 0 ;
47251 PyObject * obj1 = 0 ;
47252 PyObject * obj2 = 0 ;
47255 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexIVFFlat",&obj0,&obj1,&obj2)) SWIG_fail;
47256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
47257 if (!SWIG_IsOK(res1)) {
47258 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFFlat" "', argument " "1"" of type '" "faiss::Index *""'");
47261 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
47262 if (!SWIG_IsOK(ecode2)) {
47263 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFFlat" "', argument " "2"" of type '" "size_t""'");
47265 arg2 =
static_cast< size_t >(val2);
47266 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
47267 if (!SWIG_IsOK(ecode3)) {
47268 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFFlat" "', argument " "3"" of type '" "size_t""'");
47270 arg3 =
static_cast< size_t >(val3);
47272 Py_BEGIN_ALLOW_THREADS
47276 PyEval_RestoreThread(_save);
47277 PyErr_SetString(PyExc_RuntimeError, e.
what());
47280 Py_END_ALLOW_THREADS
47282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFFlat, SWIG_POINTER_NEW | 0 );
47289 SWIGINTERN PyObject *_wrap_IndexIVFFlat_add_core(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47290 PyObject *resultobj = 0;
47293 float *arg3 = (
float *) 0 ;
47294 long *arg4 = (
long *) 0 ;
47295 long *arg5 = (
long *) 0 ;
47306 PyObject * obj0 = 0 ;
47307 PyObject * obj1 = 0 ;
47308 PyObject * obj2 = 0 ;
47309 PyObject * obj3 = 0 ;
47310 PyObject * obj4 = 0 ;
47312 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFFlat_add_core",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
47313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
47314 if (!SWIG_IsOK(res1)) {
47315 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlat_add_core" "', argument " "1"" of type '" "faiss::IndexIVFFlat *""'");
47318 ecode2 = SWIG_AsVal_long(obj1, &val2);
47319 if (!SWIG_IsOK(ecode2)) {
47320 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlat_add_core" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
47323 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
47324 if (!SWIG_IsOK(res3)) {
47325 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlat_add_core" "', argument " "3"" of type '" "float const *""'");
47327 arg3 =
reinterpret_cast< float *
>(argp3);
47328 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
47329 if (!SWIG_IsOK(res4)) {
47330 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlat_add_core" "', argument " "4"" of type '" "long const *""'");
47332 arg4 =
reinterpret_cast< long *
>(argp4);
47333 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
47334 if (!SWIG_IsOK(res5)) {
47335 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFFlat_add_core" "', argument " "5"" of type '" "long const *""'");
47337 arg5 =
reinterpret_cast< long *
>(argp5);
47339 Py_BEGIN_ALLOW_THREADS
47341 (arg1)->add_core(arg2,(
float const *)arg3,(
long const *)arg4,(
long const *)arg5);
47342 } catch(faiss::FaissException & e) {
47343 PyEval_RestoreThread(_save);
47344 PyErr_SetString(PyExc_RuntimeError, e.what());
47347 Py_END_ALLOW_THREADS
47349 resultobj = SWIG_Py_Void();
47356 SWIGINTERN PyObject *_wrap_IndexIVFFlat_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47357 PyObject *resultobj = 0;
47360 float *arg3 = (
float *) 0 ;
47361 long *arg4 = (
long *) 0 ;
47370 PyObject * obj0 = 0 ;
47371 PyObject * obj1 = 0 ;
47372 PyObject * obj2 = 0 ;
47373 PyObject * obj3 = 0 ;
47375 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFFlat_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
47376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
47377 if (!SWIG_IsOK(res1)) {
47378 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlat_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIVFFlat *""'");
47381 ecode2 = SWIG_AsVal_long(obj1, &val2);
47382 if (!SWIG_IsOK(ecode2)) {
47383 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlat_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
47386 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
47387 if (!SWIG_IsOK(res3)) {
47388 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlat_add_with_ids" "', argument " "3"" of type '" "float const *""'");
47390 arg3 =
reinterpret_cast< float *
>(argp3);
47391 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
47392 if (!SWIG_IsOK(res4)) {
47393 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlat_add_with_ids" "', argument " "4"" of type '" "long const *""'");
47395 arg4 =
reinterpret_cast< long *
>(argp4);
47397 Py_BEGIN_ALLOW_THREADS
47399 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
47401 PyEval_RestoreThread(_save);
47402 PyErr_SetString(PyExc_RuntimeError, e.
what());
47405 Py_END_ALLOW_THREADS
47407 resultobj = SWIG_Py_Void();
47414 SWIGINTERN PyObject *_wrap_IndexIVFFlat_encode_vectors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47415 PyObject *resultobj = 0;
47418 float *arg3 = (
float *) 0 ;
47420 uint8_t *arg5 = (uint8_t *) 0 ;
47431 PyObject * obj0 = 0 ;
47432 PyObject * obj1 = 0 ;
47433 PyObject * obj2 = 0 ;
47434 PyObject * obj3 = 0 ;
47435 PyObject * obj4 = 0 ;
47437 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFFlat_encode_vectors",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
47438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
47439 if (!SWIG_IsOK(res1)) {
47440 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlat_encode_vectors" "', argument " "1"" of type '" "faiss::IndexIVFFlat const *""'");
47443 ecode2 = SWIG_AsVal_long(obj1, &val2);
47444 if (!SWIG_IsOK(ecode2)) {
47445 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlat_encode_vectors" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
47448 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
47449 if (!SWIG_IsOK(res3)) {
47450 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlat_encode_vectors" "', argument " "3"" of type '" "float const *""'");
47452 arg3 =
reinterpret_cast< float *
>(argp3);
47453 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
47454 if (!SWIG_IsOK(res4)) {
47455 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlat_encode_vectors" "', argument " "4"" of type '" "faiss::Index::idx_t const *""'");
47458 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
47459 if (!SWIG_IsOK(res5)) {
47460 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFFlat_encode_vectors" "', argument " "5"" of type '" "uint8_t *""'");
47462 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
47464 Py_BEGIN_ALLOW_THREADS
47468 PyEval_RestoreThread(_save);
47469 PyErr_SetString(PyExc_RuntimeError, e.
what());
47472 Py_END_ALLOW_THREADS
47474 resultobj = SWIG_Py_Void();
47481 SWIGINTERN PyObject *_wrap_IndexIVFFlat_get_InvertedListScanner(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47482 PyObject *resultobj = 0;
47489 PyObject * obj0 = 0 ;
47490 PyObject * obj1 = 0 ;
47493 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFFlat_get_InvertedListScanner",&obj0,&obj1)) SWIG_fail;
47494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
47495 if (!SWIG_IsOK(res1)) {
47496 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlat_get_InvertedListScanner" "', argument " "1"" of type '" "faiss::IndexIVFFlat const *""'");
47499 ecode2 = SWIG_AsVal_bool(obj1, &val2);
47500 if (!SWIG_IsOK(ecode2)) {
47501 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlat_get_InvertedListScanner" "', argument " "2"" of type '" "bool""'");
47503 arg2 =
static_cast< bool >(val2);
47505 Py_BEGIN_ALLOW_THREADS
47509 PyEval_RestoreThread(_save);
47510 PyErr_SetString(PyExc_RuntimeError, e.
what());
47513 Py_END_ALLOW_THREADS
47515 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedListScanner, 0 | 0 );
47522 SWIGINTERN PyObject *_wrap_IndexIVFFlat_range_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47523 PyObject *resultobj = 0;
47526 float *arg3 = (
float *) 0 ;
47539 PyObject * obj0 = 0 ;
47540 PyObject * obj1 = 0 ;
47541 PyObject * obj2 = 0 ;
47542 PyObject * obj3 = 0 ;
47543 PyObject * obj4 = 0 ;
47545 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFFlat_range_search",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
47546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
47547 if (!SWIG_IsOK(res1)) {
47548 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlat_range_search" "', argument " "1"" of type '" "faiss::IndexIVFFlat const *""'");
47551 ecode2 = SWIG_AsVal_long(obj1, &val2);
47552 if (!SWIG_IsOK(ecode2)) {
47553 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlat_range_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
47556 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
47557 if (!SWIG_IsOK(res3)) {
47558 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlat_range_search" "', argument " "3"" of type '" "float const *""'");
47560 arg3 =
reinterpret_cast< float *
>(argp3);
47561 ecode4 = SWIG_AsVal_float(obj3, &val4);
47562 if (!SWIG_IsOK(ecode4)) {
47563 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVFFlat_range_search" "', argument " "4"" of type '" "float""'");
47565 arg4 =
static_cast< float >(val4);
47566 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
47567 if (!SWIG_IsOK(res5)) {
47568 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFFlat_range_search" "', argument " "5"" of type '" "faiss::RangeSearchResult *""'");
47572 Py_BEGIN_ALLOW_THREADS
47576 PyEval_RestoreThread(_save);
47577 PyErr_SetString(PyExc_RuntimeError, e.
what());
47580 Py_END_ALLOW_THREADS
47582 resultobj = SWIG_Py_Void();
47589 SWIGINTERN PyObject *_wrap_IndexIVFFlat_update_vectors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47590 PyObject *resultobj = 0;
47594 float *arg4 = (
float *) 0 ;
47603 PyObject * obj0 = 0 ;
47604 PyObject * obj1 = 0 ;
47605 PyObject * obj2 = 0 ;
47606 PyObject * obj3 = 0 ;
47608 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFFlat_update_vectors",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
47609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
47610 if (!SWIG_IsOK(res1)) {
47611 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlat_update_vectors" "', argument " "1"" of type '" "faiss::IndexIVFFlat *""'");
47614 ecode2 = SWIG_AsVal_int(obj1, &val2);
47615 if (!SWIG_IsOK(ecode2)) {
47616 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlat_update_vectors" "', argument " "2"" of type '" "int""'");
47618 arg2 =
static_cast< int >(val2);
47619 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
47620 if (!SWIG_IsOK(res3)) {
47621 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlat_update_vectors" "', argument " "3"" of type '" "faiss::Index::idx_t *""'");
47624 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
47625 if (!SWIG_IsOK(res4)) {
47626 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlat_update_vectors" "', argument " "4"" of type '" "float const *""'");
47628 arg4 =
reinterpret_cast< float *
>(argp4);
47630 Py_BEGIN_ALLOW_THREADS
47632 (arg1)->update_vectors(arg2,arg3,(
float const *)arg4);
47634 PyEval_RestoreThread(_save);
47635 PyErr_SetString(PyExc_RuntimeError, e.
what());
47638 Py_END_ALLOW_THREADS
47640 resultobj = SWIG_Py_Void();
47647 SWIGINTERN PyObject *_wrap_IndexIVFFlat_reconstruct_from_offset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47648 PyObject *resultobj = 0;
47652 float *arg4 = (
float *) 0 ;
47661 PyObject * obj0 = 0 ;
47662 PyObject * obj1 = 0 ;
47663 PyObject * obj2 = 0 ;
47664 PyObject * obj3 = 0 ;
47666 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFFlat_reconstruct_from_offset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
47667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
47668 if (!SWIG_IsOK(res1)) {
47669 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlat_reconstruct_from_offset" "', argument " "1"" of type '" "faiss::IndexIVFFlat const *""'");
47672 ecode2 = SWIG_AsVal_long(obj1, &val2);
47673 if (!SWIG_IsOK(ecode2)) {
47674 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlat_reconstruct_from_offset" "', argument " "2"" of type '" "long""'");
47676 arg2 =
static_cast< long >(val2);
47677 ecode3 = SWIG_AsVal_long(obj2, &val3);
47678 if (!SWIG_IsOK(ecode3)) {
47679 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVFFlat_reconstruct_from_offset" "', argument " "3"" of type '" "long""'");
47681 arg3 =
static_cast< long >(val3);
47682 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
47683 if (!SWIG_IsOK(res4)) {
47684 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlat_reconstruct_from_offset" "', argument " "4"" of type '" "float *""'");
47686 arg4 =
reinterpret_cast< float *
>(argp4);
47688 Py_BEGIN_ALLOW_THREADS
47692 PyEval_RestoreThread(_save);
47693 PyErr_SetString(PyExc_RuntimeError, e.
what());
47696 Py_END_ALLOW_THREADS
47698 resultobj = SWIG_Py_Void();
47705 SWIGINTERN PyObject *_wrap_new_IndexIVFFlat__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47706 PyObject *resultobj = 0;
47709 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIVFFlat")) SWIG_fail;
47711 Py_BEGIN_ALLOW_THREADS
47715 PyEval_RestoreThread(_save);
47716 PyErr_SetString(PyExc_RuntimeError, e.
what());
47719 Py_END_ALLOW_THREADS
47721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFFlat, SWIG_POINTER_NEW | 0 );
47728 SWIGINTERN PyObject *_wrap_new_IndexIVFFlat(PyObject *
self, PyObject *args) {
47730 PyObject *argv[5] = {
47735 if (!PyTuple_Check(args)) SWIG_fail;
47736 argc = args ? PyObject_Length(args) : 0;
47737 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
47738 argv[ii] = PyTuple_GET_ITEM(args,ii);
47741 return _wrap_new_IndexIVFFlat__SWIG_2(
self, args);
47746 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
47747 _v = SWIG_CheckState(res);
47750 int res = SWIG_AsVal_size_t(argv[1], NULL);
47751 _v = SWIG_CheckState(res);
47755 int res = SWIG_AsVal_size_t(argv[2], NULL);
47756 _v = SWIG_CheckState(res);
47759 return _wrap_new_IndexIVFFlat__SWIG_1(
self, args);
47767 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
47768 _v = SWIG_CheckState(res);
47771 int res = SWIG_AsVal_size_t(argv[1], NULL);
47772 _v = SWIG_CheckState(res);
47776 int res = SWIG_AsVal_size_t(argv[2], NULL);
47777 _v = SWIG_CheckState(res);
47781 int res = SWIG_AsVal_int(argv[3], NULL);
47782 _v = SWIG_CheckState(res);
47785 return _wrap_new_IndexIVFFlat__SWIG_0(
self, args);
47793 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexIVFFlat'.\n"
47794 " Possible C/C++ prototypes are:\n"
47795 " faiss::IndexIVFFlat::IndexIVFFlat(faiss::Index *,size_t,size_t,faiss::MetricType)\n"
47796 " faiss::IndexIVFFlat::IndexIVFFlat(faiss::Index *,size_t,size_t)\n"
47797 " faiss::IndexIVFFlat::IndexIVFFlat()\n");
47802 SWIGINTERN PyObject *_wrap_delete_IndexIVFFlat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47803 PyObject *resultobj = 0;
47807 PyObject * obj0 = 0 ;
47809 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVFFlat",&obj0)) SWIG_fail;
47810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, SWIG_POINTER_DISOWN | 0 );
47811 if (!SWIG_IsOK(res1)) {
47812 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVFFlat" "', argument " "1"" of type '" "faiss::IndexIVFFlat *""'");
47816 resultobj = SWIG_Py_Void();
47823 SWIGINTERN PyObject *IndexIVFFlat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47825 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
47826 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVFFlat, SWIG_NewClientData(obj));
47827 return SWIG_Py_Void();
47830 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_instances_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47831 PyObject *resultobj = 0;
47833 std::unordered_multimap< faiss::Index::idx_t,faiss::Index::idx_t > arg2 ;
47838 PyObject * obj0 = 0 ;
47839 PyObject * obj1 = 0 ;
47841 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFFlatDedup_instances_set",&obj0,&obj1)) SWIG_fail;
47842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
47843 if (!SWIG_IsOK(res1)) {
47844 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_instances_set" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup *""'");
47848 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__unordered_multimapT_long_long_t, 0 | 0);
47849 if (!SWIG_IsOK(res2)) {
47850 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFFlatDedup_instances_set" "', argument " "2"" of type '" "std::unordered_multimap< faiss::Index::idx_t,faiss::Index::idx_t >""'");
47853 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVFFlatDedup_instances_set" "', argument " "2"" of type '" "std::unordered_multimap< faiss::Index::idx_t,faiss::Index::idx_t >""'");
47855 std::unordered_multimap< faiss::Index::idx_t,faiss::Index::idx_t > * temp =
reinterpret_cast< std::unordered_multimap< faiss::Index::idx_t,faiss::Index::idx_t > *
>(argp2);
47857 if (SWIG_IsNewObj(res2))
delete temp;
47860 if (arg1) (arg1)->instances = arg2;
47861 resultobj = SWIG_Py_Void();
47868 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_instances_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47869 PyObject *resultobj = 0;
47873 PyObject * obj0 = 0 ;
47874 std::unordered_multimap< faiss::Index::idx_t,faiss::Index::idx_t > result;
47876 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFFlatDedup_instances_get",&obj0)) SWIG_fail;
47877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
47878 if (!SWIG_IsOK(res1)) {
47879 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_instances_get" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup *""'");
47882 result = ((arg1)->instances);
47883 resultobj = SWIG_NewPointerObj((
new std::unordered_multimap< faiss::Index::idx_t,faiss::Index::idx_t >(
static_cast< const std::unordered_multimap< faiss::Index::idx_t,faiss::Index::idx_t >&
>(result))), SWIGTYPE_p_std__unordered_multimapT_long_long_t, SWIG_POINTER_OWN | 0 );
47890 SWIGINTERN PyObject *_wrap_new_IndexIVFFlatDedup__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47891 PyObject *resultobj = 0;
47904 PyObject * obj0 = 0 ;
47905 PyObject * obj1 = 0 ;
47906 PyObject * obj2 = 0 ;
47907 PyObject * obj3 = 0 ;
47910 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_IndexIVFFlatDedup",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
47911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
47912 if (!SWIG_IsOK(res1)) {
47913 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFFlatDedup" "', argument " "1"" of type '" "faiss::Index *""'");
47916 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
47917 if (!SWIG_IsOK(ecode2)) {
47918 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFFlatDedup" "', argument " "2"" of type '" "size_t""'");
47920 arg2 =
static_cast< size_t >(val2);
47921 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
47922 if (!SWIG_IsOK(ecode3)) {
47923 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFFlatDedup" "', argument " "3"" of type '" "size_t""'");
47925 arg3 =
static_cast< size_t >(val3);
47926 ecode4 = SWIG_AsVal_int(obj3, &val4);
47927 if (!SWIG_IsOK(ecode4)) {
47928 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexIVFFlatDedup" "', argument " "4"" of type '" "faiss::MetricType""'");
47932 Py_BEGIN_ALLOW_THREADS
47936 PyEval_RestoreThread(_save);
47937 PyErr_SetString(PyExc_RuntimeError, e.
what());
47940 Py_END_ALLOW_THREADS
47942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFFlatDedup, SWIG_POINTER_NEW | 0 );
47949 SWIGINTERN PyObject *_wrap_new_IndexIVFFlatDedup__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47950 PyObject *resultobj = 0;
47960 PyObject * obj0 = 0 ;
47961 PyObject * obj1 = 0 ;
47962 PyObject * obj2 = 0 ;
47965 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexIVFFlatDedup",&obj0,&obj1,&obj2)) SWIG_fail;
47966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
47967 if (!SWIG_IsOK(res1)) {
47968 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFFlatDedup" "', argument " "1"" of type '" "faiss::Index *""'");
47971 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
47972 if (!SWIG_IsOK(ecode2)) {
47973 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFFlatDedup" "', argument " "2"" of type '" "size_t""'");
47975 arg2 =
static_cast< size_t >(val2);
47976 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
47977 if (!SWIG_IsOK(ecode3)) {
47978 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFFlatDedup" "', argument " "3"" of type '" "size_t""'");
47980 arg3 =
static_cast< size_t >(val3);
47982 Py_BEGIN_ALLOW_THREADS
47986 PyEval_RestoreThread(_save);
47987 PyErr_SetString(PyExc_RuntimeError, e.
what());
47990 Py_END_ALLOW_THREADS
47992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFFlatDedup, SWIG_POINTER_NEW | 0 );
47999 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48000 PyObject *resultobj = 0;
48003 float *arg3 = (
float *) 0 ;
48010 PyObject * obj0 = 0 ;
48011 PyObject * obj1 = 0 ;
48012 PyObject * obj2 = 0 ;
48014 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVFFlatDedup_train",&obj0,&obj1,&obj2)) SWIG_fail;
48015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
48016 if (!SWIG_IsOK(res1)) {
48017 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_train" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup *""'");
48020 ecode2 = SWIG_AsVal_long(obj1, &val2);
48021 if (!SWIG_IsOK(ecode2)) {
48022 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlatDedup_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
48025 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
48026 if (!SWIG_IsOK(res3)) {
48027 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlatDedup_train" "', argument " "3"" of type '" "float const *""'");
48029 arg3 =
reinterpret_cast< float *
>(argp3);
48031 Py_BEGIN_ALLOW_THREADS
48033 (arg1)->train(arg2,(
float const *)arg3);
48035 PyEval_RestoreThread(_save);
48036 PyErr_SetString(PyExc_RuntimeError, e.
what());
48039 Py_END_ALLOW_THREADS
48041 resultobj = SWIG_Py_Void();
48048 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48049 PyObject *resultobj = 0;
48052 float *arg3 = (
float *) 0 ;
48053 long *arg4 = (
long *) 0 ;
48062 PyObject * obj0 = 0 ;
48063 PyObject * obj1 = 0 ;
48064 PyObject * obj2 = 0 ;
48065 PyObject * obj3 = 0 ;
48067 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFFlatDedup_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
48068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
48069 if (!SWIG_IsOK(res1)) {
48070 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup *""'");
48073 ecode2 = SWIG_AsVal_long(obj1, &val2);
48074 if (!SWIG_IsOK(ecode2)) {
48075 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlatDedup_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
48078 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
48079 if (!SWIG_IsOK(res3)) {
48080 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlatDedup_add_with_ids" "', argument " "3"" of type '" "float const *""'");
48082 arg3 =
reinterpret_cast< float *
>(argp3);
48083 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
48084 if (!SWIG_IsOK(res4)) {
48085 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlatDedup_add_with_ids" "', argument " "4"" of type '" "long const *""'");
48087 arg4 =
reinterpret_cast< long *
>(argp4);
48089 Py_BEGIN_ALLOW_THREADS
48091 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
48093 PyEval_RestoreThread(_save);
48094 PyErr_SetString(PyExc_RuntimeError, e.
what());
48097 Py_END_ALLOW_THREADS
48099 resultobj = SWIG_Py_Void();
48106 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_search_preassigned__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48107 PyObject *resultobj = 0;
48110 float *arg3 = (
float *) 0 ;
48113 float *arg6 = (
float *) 0 ;
48114 float *arg7 = (
float *) 0 ;
48138 PyObject * obj0 = 0 ;
48139 PyObject * obj1 = 0 ;
48140 PyObject * obj2 = 0 ;
48141 PyObject * obj3 = 0 ;
48142 PyObject * obj4 = 0 ;
48143 PyObject * obj5 = 0 ;
48144 PyObject * obj6 = 0 ;
48145 PyObject * obj7 = 0 ;
48146 PyObject * obj8 = 0 ;
48147 PyObject * obj9 = 0 ;
48149 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOOO:IndexIVFFlatDedup_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
48150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
48151 if (!SWIG_IsOK(res1)) {
48152 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup const *""'");
48155 ecode2 = SWIG_AsVal_long(obj1, &val2);
48156 if (!SWIG_IsOK(ecode2)) {
48157 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
48160 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
48161 if (!SWIG_IsOK(res3)) {
48162 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "3"" of type '" "float const *""'");
48164 arg3 =
reinterpret_cast< float *
>(argp3);
48165 ecode4 = SWIG_AsVal_long(obj3, &val4);
48166 if (!SWIG_IsOK(ecode4)) {
48167 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
48170 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
48171 if (!SWIG_IsOK(res5)) {
48172 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "5"" of type '" "faiss::Index::idx_t const *""'");
48175 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
48176 if (!SWIG_IsOK(res6)) {
48177 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "6"" of type '" "float const *""'");
48179 arg6 =
reinterpret_cast< float *
>(argp6);
48180 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
48181 if (!SWIG_IsOK(res7)) {
48182 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "7"" of type '" "float *""'");
48184 arg7 =
reinterpret_cast< float *
>(argp7);
48185 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
48186 if (!SWIG_IsOK(res8)) {
48187 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
48190 ecode9 = SWIG_AsVal_bool(obj8, &val9);
48191 if (!SWIG_IsOK(ecode9)) {
48192 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "9"" of type '" "bool""'");
48194 arg9 =
static_cast< bool >(val9);
48195 res10 = SWIG_ConvertPtr(obj9, &argp10,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
48196 if (!SWIG_IsOK(res10)) {
48197 SWIG_exception_fail(SWIG_ArgError(res10),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "10"" of type '" "faiss::IVFSearchParameters const *""'");
48201 Py_BEGIN_ALLOW_THREADS
48205 PyEval_RestoreThread(_save);
48206 PyErr_SetString(PyExc_RuntimeError, e.
what());
48209 Py_END_ALLOW_THREADS
48211 resultobj = SWIG_Py_Void();
48218 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_search_preassigned__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48219 PyObject *resultobj = 0;
48222 float *arg3 = (
float *) 0 ;
48225 float *arg6 = (
float *) 0 ;
48226 float *arg7 = (
float *) 0 ;
48247 PyObject * obj0 = 0 ;
48248 PyObject * obj1 = 0 ;
48249 PyObject * obj2 = 0 ;
48250 PyObject * obj3 = 0 ;
48251 PyObject * obj4 = 0 ;
48252 PyObject * obj5 = 0 ;
48253 PyObject * obj6 = 0 ;
48254 PyObject * obj7 = 0 ;
48255 PyObject * obj8 = 0 ;
48257 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOO:IndexIVFFlatDedup_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
48258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
48259 if (!SWIG_IsOK(res1)) {
48260 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup const *""'");
48263 ecode2 = SWIG_AsVal_long(obj1, &val2);
48264 if (!SWIG_IsOK(ecode2)) {
48265 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
48268 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
48269 if (!SWIG_IsOK(res3)) {
48270 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "3"" of type '" "float const *""'");
48272 arg3 =
reinterpret_cast< float *
>(argp3);
48273 ecode4 = SWIG_AsVal_long(obj3, &val4);
48274 if (!SWIG_IsOK(ecode4)) {
48275 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
48278 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
48279 if (!SWIG_IsOK(res5)) {
48280 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "5"" of type '" "faiss::Index::idx_t const *""'");
48283 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
48284 if (!SWIG_IsOK(res6)) {
48285 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "6"" of type '" "float const *""'");
48287 arg6 =
reinterpret_cast< float *
>(argp6);
48288 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
48289 if (!SWIG_IsOK(res7)) {
48290 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "7"" of type '" "float *""'");
48292 arg7 =
reinterpret_cast< float *
>(argp7);
48293 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
48294 if (!SWIG_IsOK(res8)) {
48295 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
48298 ecode9 = SWIG_AsVal_bool(obj8, &val9);
48299 if (!SWIG_IsOK(ecode9)) {
48300 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "9"" of type '" "bool""'");
48302 arg9 =
static_cast< bool >(val9);
48304 Py_BEGIN_ALLOW_THREADS
48308 PyEval_RestoreThread(_save);
48309 PyErr_SetString(PyExc_RuntimeError, e.
what());
48312 Py_END_ALLOW_THREADS
48314 resultobj = SWIG_Py_Void();
48321 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_search_preassigned(PyObject *
self, PyObject *args) {
48323 PyObject *argv[11] = {
48328 if (!PyTuple_Check(args)) SWIG_fail;
48329 argc = args ? PyObject_Length(args) : 0;
48330 for (ii = 0; (ii < 10) && (ii < argc); ii++) {
48331 argv[ii] = PyTuple_GET_ITEM(args,ii);
48336 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0);
48337 _v = SWIG_CheckState(res);
48340 int res = SWIG_AsVal_long(argv[1], NULL);
48341 _v = SWIG_CheckState(res);
48345 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
48346 _v = SWIG_CheckState(res);
48349 int res = SWIG_AsVal_long(argv[3], NULL);
48350 _v = SWIG_CheckState(res);
48354 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
48355 _v = SWIG_CheckState(res);
48358 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
48359 _v = SWIG_CheckState(res);
48362 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
48363 _v = SWIG_CheckState(res);
48366 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
48367 _v = SWIG_CheckState(res);
48370 int res = SWIG_AsVal_bool(argv[8], NULL);
48371 _v = SWIG_CheckState(res);
48374 return _wrap_IndexIVFFlatDedup_search_preassigned__SWIG_1(
self, args);
48388 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0);
48389 _v = SWIG_CheckState(res);
48392 int res = SWIG_AsVal_long(argv[1], NULL);
48393 _v = SWIG_CheckState(res);
48397 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
48398 _v = SWIG_CheckState(res);
48401 int res = SWIG_AsVal_long(argv[3], NULL);
48402 _v = SWIG_CheckState(res);
48406 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
48407 _v = SWIG_CheckState(res);
48410 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
48411 _v = SWIG_CheckState(res);
48414 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
48415 _v = SWIG_CheckState(res);
48418 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
48419 _v = SWIG_CheckState(res);
48422 int res = SWIG_AsVal_bool(argv[8], NULL);
48423 _v = SWIG_CheckState(res);
48427 int res = SWIG_ConvertPtr(argv[9], &vptr, SWIGTYPE_p_faiss__IVFSearchParameters, 0);
48428 _v = SWIG_CheckState(res);
48430 return _wrap_IndexIVFFlatDedup_search_preassigned__SWIG_0(
self, args);
48444 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVFFlatDedup_search_preassigned'.\n"
48445 " Possible C/C++ prototypes are:\n"
48446 " faiss::IndexIVFFlatDedup::search_preassigned(faiss::Index::idx_t,float const *,faiss::Index::idx_t,faiss::Index::idx_t const *,float const *,float *,faiss::Index::idx_t *,bool,faiss::IVFSearchParameters const *) const\n"
48447 " faiss::IndexIVFFlatDedup::search_preassigned(faiss::Index::idx_t,float const *,faiss::Index::idx_t,faiss::Index::idx_t const *,float const *,float *,faiss::Index::idx_t *,bool) const\n");
48452 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48453 PyObject *resultobj = 0;
48460 PyObject * obj0 = 0 ;
48461 PyObject * obj1 = 0 ;
48464 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFFlatDedup_remove_ids",&obj0,&obj1)) SWIG_fail;
48465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
48466 if (!SWIG_IsOK(res1)) {
48467 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_remove_ids" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup *""'");
48470 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
48471 if (!SWIG_IsOK(res2)) {
48472 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFFlatDedup_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
48475 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVFFlatDedup_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
48479 Py_BEGIN_ALLOW_THREADS
48483 PyEval_RestoreThread(_save);
48484 PyErr_SetString(PyExc_RuntimeError, e.
what());
48487 Py_END_ALLOW_THREADS
48489 resultobj = SWIG_From_long(static_cast< long >(result));
48496 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_range_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48497 PyObject *resultobj = 0;
48500 float *arg3 = (
float *) 0 ;
48513 PyObject * obj0 = 0 ;
48514 PyObject * obj1 = 0 ;
48515 PyObject * obj2 = 0 ;
48516 PyObject * obj3 = 0 ;
48517 PyObject * obj4 = 0 ;
48519 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFFlatDedup_range_search",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
48520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
48521 if (!SWIG_IsOK(res1)) {
48522 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_range_search" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup const *""'");
48525 ecode2 = SWIG_AsVal_long(obj1, &val2);
48526 if (!SWIG_IsOK(ecode2)) {
48527 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlatDedup_range_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
48530 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
48531 if (!SWIG_IsOK(res3)) {
48532 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlatDedup_range_search" "', argument " "3"" of type '" "float const *""'");
48534 arg3 =
reinterpret_cast< float *
>(argp3);
48535 ecode4 = SWIG_AsVal_float(obj3, &val4);
48536 if (!SWIG_IsOK(ecode4)) {
48537 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVFFlatDedup_range_search" "', argument " "4"" of type '" "float""'");
48539 arg4 =
static_cast< float >(val4);
48540 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
48541 if (!SWIG_IsOK(res5)) {
48542 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFFlatDedup_range_search" "', argument " "5"" of type '" "faiss::RangeSearchResult *""'");
48546 Py_BEGIN_ALLOW_THREADS
48550 PyEval_RestoreThread(_save);
48551 PyErr_SetString(PyExc_RuntimeError, e.
what());
48554 Py_END_ALLOW_THREADS
48556 resultobj = SWIG_Py_Void();
48563 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_update_vectors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48564 PyObject *resultobj = 0;
48568 float *arg4 = (
float *) 0 ;
48577 PyObject * obj0 = 0 ;
48578 PyObject * obj1 = 0 ;
48579 PyObject * obj2 = 0 ;
48580 PyObject * obj3 = 0 ;
48582 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFFlatDedup_update_vectors",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
48583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
48584 if (!SWIG_IsOK(res1)) {
48585 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_update_vectors" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup *""'");
48588 ecode2 = SWIG_AsVal_int(obj1, &val2);
48589 if (!SWIG_IsOK(ecode2)) {
48590 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlatDedup_update_vectors" "', argument " "2"" of type '" "int""'");
48592 arg2 =
static_cast< int >(val2);
48593 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
48594 if (!SWIG_IsOK(res3)) {
48595 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlatDedup_update_vectors" "', argument " "3"" of type '" "faiss::Index::idx_t *""'");
48598 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
48599 if (!SWIG_IsOK(res4)) {
48600 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlatDedup_update_vectors" "', argument " "4"" of type '" "float const *""'");
48602 arg4 =
reinterpret_cast< float *
>(argp4);
48604 Py_BEGIN_ALLOW_THREADS
48606 (arg1)->update_vectors(arg2,arg3,(
float const *)arg4);
48608 PyEval_RestoreThread(_save);
48609 PyErr_SetString(PyExc_RuntimeError, e.
what());
48612 Py_END_ALLOW_THREADS
48614 resultobj = SWIG_Py_Void();
48621 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_reconstruct_from_offset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48622 PyObject *resultobj = 0;
48626 float *arg4 = (
float *) 0 ;
48635 PyObject * obj0 = 0 ;
48636 PyObject * obj1 = 0 ;
48637 PyObject * obj2 = 0 ;
48638 PyObject * obj3 = 0 ;
48640 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFFlatDedup_reconstruct_from_offset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
48641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
48642 if (!SWIG_IsOK(res1)) {
48643 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_reconstruct_from_offset" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup const *""'");
48646 ecode2 = SWIG_AsVal_long(obj1, &val2);
48647 if (!SWIG_IsOK(ecode2)) {
48648 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlatDedup_reconstruct_from_offset" "', argument " "2"" of type '" "long""'");
48650 arg2 =
static_cast< long >(val2);
48651 ecode3 = SWIG_AsVal_long(obj2, &val3);
48652 if (!SWIG_IsOK(ecode3)) {
48653 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVFFlatDedup_reconstruct_from_offset" "', argument " "3"" of type '" "long""'");
48655 arg3 =
static_cast< long >(val3);
48656 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
48657 if (!SWIG_IsOK(res4)) {
48658 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlatDedup_reconstruct_from_offset" "', argument " "4"" of type '" "float *""'");
48660 arg4 =
reinterpret_cast< float *
>(argp4);
48662 Py_BEGIN_ALLOW_THREADS
48666 PyEval_RestoreThread(_save);
48667 PyErr_SetString(PyExc_RuntimeError, e.
what());
48670 Py_END_ALLOW_THREADS
48672 resultobj = SWIG_Py_Void();
48679 SWIGINTERN PyObject *_wrap_new_IndexIVFFlatDedup__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48680 PyObject *resultobj = 0;
48683 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIVFFlatDedup")) SWIG_fail;
48685 Py_BEGIN_ALLOW_THREADS
48689 PyEval_RestoreThread(_save);
48690 PyErr_SetString(PyExc_RuntimeError, e.
what());
48693 Py_END_ALLOW_THREADS
48695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFFlatDedup, SWIG_POINTER_NEW | 0 );
48702 SWIGINTERN PyObject *_wrap_new_IndexIVFFlatDedup(PyObject *
self, PyObject *args) {
48704 PyObject *argv[5] = {
48709 if (!PyTuple_Check(args)) SWIG_fail;
48710 argc = args ? PyObject_Length(args) : 0;
48711 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
48712 argv[ii] = PyTuple_GET_ITEM(args,ii);
48715 return _wrap_new_IndexIVFFlatDedup__SWIG_2(
self, args);
48720 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
48721 _v = SWIG_CheckState(res);
48724 int res = SWIG_AsVal_size_t(argv[1], NULL);
48725 _v = SWIG_CheckState(res);
48729 int res = SWIG_AsVal_size_t(argv[2], NULL);
48730 _v = SWIG_CheckState(res);
48733 return _wrap_new_IndexIVFFlatDedup__SWIG_1(
self, args);
48741 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
48742 _v = SWIG_CheckState(res);
48745 int res = SWIG_AsVal_size_t(argv[1], NULL);
48746 _v = SWIG_CheckState(res);
48750 int res = SWIG_AsVal_size_t(argv[2], NULL);
48751 _v = SWIG_CheckState(res);
48755 int res = SWIG_AsVal_int(argv[3], NULL);
48756 _v = SWIG_CheckState(res);
48759 return _wrap_new_IndexIVFFlatDedup__SWIG_0(
self, args);
48767 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexIVFFlatDedup'.\n"
48768 " Possible C/C++ prototypes are:\n"
48769 " faiss::IndexIVFFlatDedup::IndexIVFFlatDedup(faiss::Index *,size_t,size_t,faiss::MetricType)\n"
48770 " faiss::IndexIVFFlatDedup::IndexIVFFlatDedup(faiss::Index *,size_t,size_t)\n"
48771 " faiss::IndexIVFFlatDedup::IndexIVFFlatDedup()\n");
48776 SWIGINTERN PyObject *_wrap_delete_IndexIVFFlatDedup(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48777 PyObject *resultobj = 0;
48781 PyObject * obj0 = 0 ;
48783 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVFFlatDedup",&obj0)) SWIG_fail;
48784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, SWIG_POINTER_DISOWN | 0 );
48785 if (!SWIG_IsOK(res1)) {
48786 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVFFlatDedup" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup *""'");
48790 resultobj = SWIG_Py_Void();
48797 SWIGINTERN PyObject *IndexIVFFlatDedup_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48799 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
48800 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVFFlatDedup, SWIG_NewClientData(obj));
48801 return SWIG_Py_Void();
48804 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_lists_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48805 PyObject *resultobj = 0;
48807 std::vector< faiss::OnDiskInvertedLists::List > *arg2 = (std::vector< faiss::OnDiskInvertedLists::List > *) 0 ;
48812 PyObject * obj0 = 0 ;
48813 PyObject * obj1 = 0 ;
48815 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_lists_set",&obj0,&obj1)) SWIG_fail;
48816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
48817 if (!SWIG_IsOK(res1)) {
48818 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_lists_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
48821 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__OnDiskInvertedLists__List_t, 0 | 0 );
48822 if (!SWIG_IsOK(res2)) {
48823 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_lists_set" "', argument " "2"" of type '" "std::vector< faiss::OnDiskInvertedLists::List > *""'");
48825 arg2 =
reinterpret_cast< std::vector< faiss::OnDiskInvertedLists::List > *
>(argp2);
48826 if (arg1) (arg1)->lists = *arg2;
48827 resultobj = SWIG_Py_Void();
48834 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_lists_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48835 PyObject *resultobj = 0;
48839 PyObject * obj0 = 0 ;
48840 std::vector< faiss::OnDiskInvertedLists::List > *result = 0 ;
48842 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_lists_get",&obj0)) SWIG_fail;
48843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
48844 if (!SWIG_IsOK(res1)) {
48845 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_lists_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
48848 result = (std::vector< faiss::OnDiskInvertedLists::List > *)& ((arg1)->lists);
48849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__OnDiskInvertedLists__List_t, 0 | 0 );
48856 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_slots_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48857 PyObject *resultobj = 0;
48859 std::list< faiss::OnDiskInvertedLists::Slot > *arg2 = (std::list< faiss::OnDiskInvertedLists::Slot > *) 0 ;
48864 PyObject * obj0 = 0 ;
48865 PyObject * obj1 = 0 ;
48867 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_slots_set",&obj0,&obj1)) SWIG_fail;
48868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
48869 if (!SWIG_IsOK(res1)) {
48870 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_slots_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
48873 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t, 0 | 0 );
48874 if (!SWIG_IsOK(res2)) {
48875 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_slots_set" "', argument " "2"" of type '" "std::list< faiss::OnDiskInvertedLists::Slot > *""'");
48877 arg2 =
reinterpret_cast< std::list< faiss::OnDiskInvertedLists::Slot > *
>(argp2);
48878 if (arg1) (arg1)->slots = *arg2;
48879 resultobj = SWIG_Py_Void();
48886 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_slots_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48887 PyObject *resultobj = 0;
48891 PyObject * obj0 = 0 ;
48892 std::list< faiss::OnDiskInvertedLists::Slot > *result = 0 ;
48894 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_slots_get",&obj0)) SWIG_fail;
48895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
48896 if (!SWIG_IsOK(res1)) {
48897 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_slots_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
48900 result = (std::list< faiss::OnDiskInvertedLists::Slot > *)& ((arg1)->slots);
48901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t, 0 | 0 );
48908 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_filename_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48909 PyObject *resultobj = 0;
48911 std::string *arg2 = 0 ;
48914 int res2 = SWIG_OLDOBJ ;
48915 PyObject * obj0 = 0 ;
48916 PyObject * obj1 = 0 ;
48918 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_filename_set",&obj0,&obj1)) SWIG_fail;
48919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
48920 if (!SWIG_IsOK(res1)) {
48921 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_filename_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
48925 std::string *ptr = (std::string *)0;
48926 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
48927 if (!SWIG_IsOK(res2)) {
48928 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_filename_set" "', argument " "2"" of type '" "std::string const &""'");
48931 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OnDiskInvertedLists_filename_set" "', argument " "2"" of type '" "std::string const &""'");
48935 if (arg1) (arg1)->filename = *arg2;
48936 resultobj = SWIG_Py_Void();
48937 if (SWIG_IsNewObj(res2))
delete arg2;
48940 if (SWIG_IsNewObj(res2))
delete arg2;
48945 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_filename_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48946 PyObject *resultobj = 0;
48950 PyObject * obj0 = 0 ;
48951 std::string *result = 0 ;
48953 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_filename_get",&obj0)) SWIG_fail;
48954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
48955 if (!SWIG_IsOK(res1)) {
48956 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_filename_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
48959 result = (std::string *) & ((arg1)->filename);
48960 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
48967 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_totsize_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48968 PyObject *resultobj = 0;
48975 PyObject * obj0 = 0 ;
48976 PyObject * obj1 = 0 ;
48978 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_totsize_set",&obj0,&obj1)) SWIG_fail;
48979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
48980 if (!SWIG_IsOK(res1)) {
48981 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_totsize_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
48984 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
48985 if (!SWIG_IsOK(ecode2)) {
48986 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_totsize_set" "', argument " "2"" of type '" "size_t""'");
48988 arg2 =
static_cast< size_t >(val2);
48989 if (arg1) (arg1)->totsize = arg2;
48990 resultobj = SWIG_Py_Void();
48997 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_totsize_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48998 PyObject *resultobj = 0;
49002 PyObject * obj0 = 0 ;
49005 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_totsize_get",&obj0)) SWIG_fail;
49006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49007 if (!SWIG_IsOK(res1)) {
49008 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_totsize_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49011 result = (size_t) ((arg1)->totsize);
49012 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
49019 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_ptr_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49020 PyObject *resultobj = 0;
49022 uint8_t *arg2 = (uint8_t *) 0 ;
49027 PyObject * obj0 = 0 ;
49028 PyObject * obj1 = 0 ;
49030 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_ptr_set",&obj0,&obj1)) SWIG_fail;
49031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49032 if (!SWIG_IsOK(res1)) {
49033 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_ptr_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49036 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, SWIG_POINTER_DISOWN | 0 );
49037 if (!SWIG_IsOK(res2)) {
49038 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_ptr_set" "', argument " "2"" of type '" "uint8_t *""'");
49040 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
49041 if (arg1) (arg1)->ptr = arg2;
49042 resultobj = SWIG_Py_Void();
49049 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_ptr_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49050 PyObject *resultobj = 0;
49054 PyObject * obj0 = 0 ;
49055 uint8_t *result = 0 ;
49057 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_ptr_get",&obj0)) SWIG_fail;
49058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49059 if (!SWIG_IsOK(res1)) {
49060 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_ptr_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49063 result = (uint8_t *) ((arg1)->ptr);
49064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
49071 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_read_only_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49072 PyObject *resultobj = 0;
49079 PyObject * obj0 = 0 ;
49080 PyObject * obj1 = 0 ;
49082 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_read_only_set",&obj0,&obj1)) SWIG_fail;
49083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49084 if (!SWIG_IsOK(res1)) {
49085 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_read_only_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49088 ecode2 = SWIG_AsVal_bool(obj1, &val2);
49089 if (!SWIG_IsOK(ecode2)) {
49090 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_read_only_set" "', argument " "2"" of type '" "bool""'");
49092 arg2 =
static_cast< bool >(val2);
49093 if (arg1) (arg1)->read_only = arg2;
49094 resultobj = SWIG_Py_Void();
49101 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_read_only_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49102 PyObject *resultobj = 0;
49106 PyObject * obj0 = 0 ;
49109 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_read_only_get",&obj0)) SWIG_fail;
49110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49111 if (!SWIG_IsOK(res1)) {
49112 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_read_only_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49115 result = (bool) ((arg1)->read_only);
49116 resultobj = SWIG_From_bool(static_cast< bool >(result));
49123 SWIGINTERN PyObject *_wrap_new_OnDiskInvertedLists__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49124 PyObject *resultobj = 0;
49127 char *arg3 = (
char *) 0 ;
49135 PyObject * obj0 = 0 ;
49136 PyObject * obj1 = 0 ;
49137 PyObject * obj2 = 0 ;
49140 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_OnDiskInvertedLists",&obj0,&obj1,&obj2)) SWIG_fail;
49141 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
49142 if (!SWIG_IsOK(ecode1)) {
49143 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_OnDiskInvertedLists" "', argument " "1"" of type '" "size_t""'");
49145 arg1 =
static_cast< size_t >(val1);
49146 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
49147 if (!SWIG_IsOK(ecode2)) {
49148 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_OnDiskInvertedLists" "', argument " "2"" of type '" "size_t""'");
49150 arg2 =
static_cast< size_t >(val2);
49151 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
49152 if (!SWIG_IsOK(res3)) {
49153 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_OnDiskInvertedLists" "', argument " "3"" of type '" "char const *""'");
49155 arg3 =
reinterpret_cast< char *
>(buf3);
49157 Py_BEGIN_ALLOW_THREADS
49161 PyEval_RestoreThread(_save);
49162 PyErr_SetString(PyExc_RuntimeError, e.
what());
49165 Py_END_ALLOW_THREADS
49167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OnDiskInvertedLists, SWIG_POINTER_NEW | 0 );
49168 if (alloc3 == SWIG_NEWOBJ)
delete[] buf3;
49171 if (alloc3 == SWIG_NEWOBJ)
delete[] buf3;
49176 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_list_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49177 PyObject *resultobj = 0;
49184 PyObject * obj0 = 0 ;
49185 PyObject * obj1 = 0 ;
49188 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_list_size",&obj0,&obj1)) SWIG_fail;
49189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49190 if (!SWIG_IsOK(res1)) {
49191 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_list_size" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists const *""'");
49194 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
49195 if (!SWIG_IsOK(ecode2)) {
49196 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_list_size" "', argument " "2"" of type '" "size_t""'");
49198 arg2 =
static_cast< size_t >(val2);
49200 Py_BEGIN_ALLOW_THREADS
49204 PyEval_RestoreThread(_save);
49205 PyErr_SetString(PyExc_RuntimeError, e.
what());
49208 Py_END_ALLOW_THREADS
49210 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
49217 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_get_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49218 PyObject *resultobj = 0;
49225 PyObject * obj0 = 0 ;
49226 PyObject * obj1 = 0 ;
49227 uint8_t *result = 0 ;
49229 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_get_codes",&obj0,&obj1)) SWIG_fail;
49230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49231 if (!SWIG_IsOK(res1)) {
49232 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_get_codes" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists const *""'");
49235 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
49236 if (!SWIG_IsOK(ecode2)) {
49237 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_get_codes" "', argument " "2"" of type '" "size_t""'");
49239 arg2 =
static_cast< size_t >(val2);
49241 Py_BEGIN_ALLOW_THREADS
49245 PyEval_RestoreThread(_save);
49246 PyErr_SetString(PyExc_RuntimeError, e.
what());
49249 Py_END_ALLOW_THREADS
49251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
49258 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49259 PyObject *resultobj = 0;
49266 PyObject * obj0 = 0 ;
49267 PyObject * obj1 = 0 ;
49268 faiss::InvertedLists::idx_t *result = 0 ;
49270 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_get_ids",&obj0,&obj1)) SWIG_fail;
49271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49272 if (!SWIG_IsOK(res1)) {
49273 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_get_ids" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists const *""'");
49276 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
49277 if (!SWIG_IsOK(ecode2)) {
49278 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_get_ids" "', argument " "2"" of type '" "size_t""'");
49280 arg2 =
static_cast< size_t >(val2);
49282 Py_BEGIN_ALLOW_THREADS
49286 PyEval_RestoreThread(_save);
49287 PyErr_SetString(PyExc_RuntimeError, e.
what());
49290 Py_END_ALLOW_THREADS
49292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
49299 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_add_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49300 PyObject *resultobj = 0;
49304 faiss::InvertedLists::idx_t *arg4 = (faiss::InvertedLists::idx_t *) 0 ;
49305 uint8_t *arg5 = (uint8_t *) 0 ;
49316 PyObject * obj0 = 0 ;
49317 PyObject * obj1 = 0 ;
49318 PyObject * obj2 = 0 ;
49319 PyObject * obj3 = 0 ;
49320 PyObject * obj4 = 0 ;
49323 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:OnDiskInvertedLists_add_entries",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
49324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49325 if (!SWIG_IsOK(res1)) {
49326 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_add_entries" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49329 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
49330 if (!SWIG_IsOK(ecode2)) {
49331 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_add_entries" "', argument " "2"" of type '" "size_t""'");
49333 arg2 =
static_cast< size_t >(val2);
49334 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
49335 if (!SWIG_IsOK(ecode3)) {
49336 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OnDiskInvertedLists_add_entries" "', argument " "3"" of type '" "size_t""'");
49338 arg3 =
static_cast< size_t >(val3);
49339 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
49340 if (!SWIG_IsOK(res4)) {
49341 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "OnDiskInvertedLists_add_entries" "', argument " "4"" of type '" "faiss::InvertedLists::idx_t const *""'");
49343 arg4 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp4);
49344 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
49345 if (!SWIG_IsOK(res5)) {
49346 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "OnDiskInvertedLists_add_entries" "', argument " "5"" of type '" "uint8_t const *""'");
49348 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
49350 Py_BEGIN_ALLOW_THREADS
49352 result = (size_t)(arg1)->add_entries(arg2,arg3,(faiss::InvertedLists::idx_t
const *)arg4,(uint8_t
const *)arg5);
49354 PyEval_RestoreThread(_save);
49355 PyErr_SetString(PyExc_RuntimeError, e.
what());
49358 Py_END_ALLOW_THREADS
49360 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
49367 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_update_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49368 PyObject *resultobj = 0;
49373 faiss::InvertedLists::idx_t *arg5 = (faiss::InvertedLists::idx_t *) 0 ;
49374 uint8_t *arg6 = (uint8_t *) 0 ;
49387 PyObject * obj0 = 0 ;
49388 PyObject * obj1 = 0 ;
49389 PyObject * obj2 = 0 ;
49390 PyObject * obj3 = 0 ;
49391 PyObject * obj4 = 0 ;
49392 PyObject * obj5 = 0 ;
49394 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:OnDiskInvertedLists_update_entries",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
49395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49396 if (!SWIG_IsOK(res1)) {
49397 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_update_entries" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49400 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
49401 if (!SWIG_IsOK(ecode2)) {
49402 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_update_entries" "', argument " "2"" of type '" "size_t""'");
49404 arg2 =
static_cast< size_t >(val2);
49405 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
49406 if (!SWIG_IsOK(ecode3)) {
49407 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OnDiskInvertedLists_update_entries" "', argument " "3"" of type '" "size_t""'");
49409 arg3 =
static_cast< size_t >(val3);
49410 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
49411 if (!SWIG_IsOK(ecode4)) {
49412 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "OnDiskInvertedLists_update_entries" "', argument " "4"" of type '" "size_t""'");
49414 arg4 =
static_cast< size_t >(val4);
49415 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
49416 if (!SWIG_IsOK(res5)) {
49417 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "OnDiskInvertedLists_update_entries" "', argument " "5"" of type '" "faiss::InvertedLists::idx_t const *""'");
49419 arg5 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp5);
49420 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_unsigned_char, 0 | 0 );
49421 if (!SWIG_IsOK(res6)) {
49422 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "OnDiskInvertedLists_update_entries" "', argument " "6"" of type '" "uint8_t const *""'");
49424 arg6 =
reinterpret_cast< uint8_t *
>(argp6);
49426 Py_BEGIN_ALLOW_THREADS
49428 (arg1)->update_entries(arg2,arg3,arg4,(faiss::InvertedLists::idx_t
const *)arg5,(uint8_t
const *)arg6);
49430 PyEval_RestoreThread(_save);
49431 PyErr_SetString(PyExc_RuntimeError, e.
what());
49434 Py_END_ALLOW_THREADS
49436 resultobj = SWIG_Py_Void();
49443 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49444 PyObject *resultobj = 0;
49454 PyObject * obj0 = 0 ;
49455 PyObject * obj1 = 0 ;
49456 PyObject * obj2 = 0 ;
49458 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OnDiskInvertedLists_resize",&obj0,&obj1,&obj2)) SWIG_fail;
49459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49460 if (!SWIG_IsOK(res1)) {
49461 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_resize" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49464 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
49465 if (!SWIG_IsOK(ecode2)) {
49466 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_resize" "', argument " "2"" of type '" "size_t""'");
49468 arg2 =
static_cast< size_t >(val2);
49469 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
49470 if (!SWIG_IsOK(ecode3)) {
49471 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OnDiskInvertedLists_resize" "', argument " "3"" of type '" "size_t""'");
49473 arg3 =
static_cast< size_t >(val3);
49475 Py_BEGIN_ALLOW_THREADS
49477 (arg1)->resize(arg2,arg3);
49479 PyEval_RestoreThread(_save);
49480 PyErr_SetString(PyExc_RuntimeError, e.
what());
49483 Py_END_ALLOW_THREADS
49485 resultobj = SWIG_Py_Void();
49492 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_merge_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49493 PyObject *resultobj = 0;
49503 PyObject * obj0 = 0 ;
49504 PyObject * obj1 = 0 ;
49505 PyObject * obj2 = 0 ;
49508 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OnDiskInvertedLists_merge_from",&obj0,&obj1,&obj2)) SWIG_fail;
49509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49510 if (!SWIG_IsOK(res1)) {
49511 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_merge_from" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49514 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_faiss__InvertedLists, 0 | 0 );
49515 if (!SWIG_IsOK(res2)) {
49516 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_merge_from" "', argument " "2"" of type '" "faiss::InvertedLists const **""'");
49519 ecode3 = SWIG_AsVal_int(obj2, &val3);
49520 if (!SWIG_IsOK(ecode3)) {
49521 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OnDiskInvertedLists_merge_from" "', argument " "3"" of type '" "int""'");
49523 arg3 =
static_cast< int >(val3);
49525 Py_BEGIN_ALLOW_THREADS
49529 PyEval_RestoreThread(_save);
49530 PyErr_SetString(PyExc_RuntimeError, e.
what());
49533 Py_END_ALLOW_THREADS
49535 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
49542 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_prefetch_lists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49543 PyObject *resultobj = 0;
49545 long *arg2 = (
long *) 0 ;
49553 PyObject * obj0 = 0 ;
49554 PyObject * obj1 = 0 ;
49555 PyObject * obj2 = 0 ;
49557 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OnDiskInvertedLists_prefetch_lists",&obj0,&obj1,&obj2)) SWIG_fail;
49558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49559 if (!SWIG_IsOK(res1)) {
49560 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_prefetch_lists" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists const *""'");
49563 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
49564 if (!SWIG_IsOK(res2)) {
49565 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_prefetch_lists" "', argument " "2"" of type '" "long const *""'");
49567 arg2 =
reinterpret_cast< long *
>(argp2);
49568 ecode3 = SWIG_AsVal_int(obj2, &val3);
49569 if (!SWIG_IsOK(ecode3)) {
49570 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OnDiskInvertedLists_prefetch_lists" "', argument " "3"" of type '" "int""'");
49572 arg3 =
static_cast< int >(val3);
49574 Py_BEGIN_ALLOW_THREADS
49578 PyEval_RestoreThread(_save);
49579 PyErr_SetString(PyExc_RuntimeError, e.
what());
49582 Py_END_ALLOW_THREADS
49584 resultobj = SWIG_Py_Void();
49591 SWIGINTERN PyObject *_wrap_delete_OnDiskInvertedLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49592 PyObject *resultobj = 0;
49596 PyObject * obj0 = 0 ;
49598 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_OnDiskInvertedLists",&obj0)) SWIG_fail;
49599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, SWIG_POINTER_DISOWN | 0 );
49600 if (!SWIG_IsOK(res1)) {
49601 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_OnDiskInvertedLists" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49605 Py_BEGIN_ALLOW_THREADS
49609 PyEval_RestoreThread(_save);
49610 PyErr_SetString(PyExc_RuntimeError, e.
what());
49613 Py_END_ALLOW_THREADS
49615 resultobj = SWIG_Py_Void();
49622 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_locks_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49623 PyObject *resultobj = 0;
49630 PyObject * obj0 = 0 ;
49631 PyObject * obj1 = 0 ;
49633 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_locks_set",&obj0,&obj1)) SWIG_fail;
49634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49635 if (!SWIG_IsOK(res1)) {
49636 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_locks_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49639 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__LockLevels, SWIG_POINTER_DISOWN | 0 );
49640 if (!SWIG_IsOK(res2)) {
49641 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_locks_set" "', argument " "2"" of type '" "faiss::LockLevels *""'");
49644 if (arg1) (arg1)->locks = arg2;
49645 resultobj = SWIG_Py_Void();
49652 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_locks_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49653 PyObject *resultobj = 0;
49657 PyObject * obj0 = 0 ;
49660 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_locks_get",&obj0)) SWIG_fail;
49661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49662 if (!SWIG_IsOK(res1)) {
49663 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_locks_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__LockLevels, 0 | 0 );
49674 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_pf_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49675 PyObject *resultobj = 0;
49682 PyObject * obj0 = 0 ;
49683 PyObject * obj1 = 0 ;
49685 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_pf_set",&obj0,&obj1)) SWIG_fail;
49686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49687 if (!SWIG_IsOK(res1)) {
49688 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_pf_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49691 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch, SWIG_POINTER_DISOWN | 0 );
49692 if (!SWIG_IsOK(res2)) {
49693 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_pf_set" "', argument " "2"" of type '" "faiss::OnDiskInvertedLists::OngoingPrefetch *""'");
49696 if (arg1) (arg1)->pf = arg2;
49697 resultobj = SWIG_Py_Void();
49704 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_pf_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49705 PyObject *resultobj = 0;
49709 PyObject * obj0 = 0 ;
49712 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_pf_get",&obj0)) SWIG_fail;
49713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49714 if (!SWIG_IsOK(res1)) {
49715 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_pf_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch, 0 | 0 );
49726 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_do_mmap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49727 PyObject *resultobj = 0;
49731 PyObject * obj0 = 0 ;
49733 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_do_mmap",&obj0)) SWIG_fail;
49734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49735 if (!SWIG_IsOK(res1)) {
49736 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_do_mmap" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49740 Py_BEGIN_ALLOW_THREADS
49744 PyEval_RestoreThread(_save);
49745 PyErr_SetString(PyExc_RuntimeError, e.
what());
49748 Py_END_ALLOW_THREADS
49750 resultobj = SWIG_Py_Void();
49757 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_update_totsize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49758 PyObject *resultobj = 0;
49765 PyObject * obj0 = 0 ;
49766 PyObject * obj1 = 0 ;
49768 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_update_totsize",&obj0,&obj1)) SWIG_fail;
49769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49770 if (!SWIG_IsOK(res1)) {
49771 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_update_totsize" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49774 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
49775 if (!SWIG_IsOK(ecode2)) {
49776 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_update_totsize" "', argument " "2"" of type '" "size_t""'");
49778 arg2 =
static_cast< size_t >(val2);
49780 Py_BEGIN_ALLOW_THREADS
49782 (arg1)->update_totsize(arg2);
49784 PyEval_RestoreThread(_save);
49785 PyErr_SetString(PyExc_RuntimeError, e.
what());
49788 Py_END_ALLOW_THREADS
49790 resultobj = SWIG_Py_Void();
49797 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_resize_locked(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49798 PyObject *resultobj = 0;
49808 PyObject * obj0 = 0 ;
49809 PyObject * obj1 = 0 ;
49810 PyObject * obj2 = 0 ;
49812 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OnDiskInvertedLists_resize_locked",&obj0,&obj1,&obj2)) SWIG_fail;
49813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49814 if (!SWIG_IsOK(res1)) {
49815 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_resize_locked" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49818 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
49819 if (!SWIG_IsOK(ecode2)) {
49820 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_resize_locked" "', argument " "2"" of type '" "size_t""'");
49822 arg2 =
static_cast< size_t >(val2);
49823 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
49824 if (!SWIG_IsOK(ecode3)) {
49825 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OnDiskInvertedLists_resize_locked" "', argument " "3"" of type '" "size_t""'");
49827 arg3 =
static_cast< size_t >(val3);
49829 Py_BEGIN_ALLOW_THREADS
49831 (arg1)->resize_locked(arg2,arg3);
49833 PyEval_RestoreThread(_save);
49834 PyErr_SetString(PyExc_RuntimeError, e.
what());
49837 Py_END_ALLOW_THREADS
49839 resultobj = SWIG_Py_Void();
49846 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_allocate_slot(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49847 PyObject *resultobj = 0;
49854 PyObject * obj0 = 0 ;
49855 PyObject * obj1 = 0 ;
49858 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_allocate_slot",&obj0,&obj1)) SWIG_fail;
49859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49860 if (!SWIG_IsOK(res1)) {
49861 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_allocate_slot" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49864 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
49865 if (!SWIG_IsOK(ecode2)) {
49866 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_allocate_slot" "', argument " "2"" of type '" "size_t""'");
49868 arg2 =
static_cast< size_t >(val2);
49870 Py_BEGIN_ALLOW_THREADS
49872 result = (size_t)(arg1)->allocate_slot(arg2);
49874 PyEval_RestoreThread(_save);
49875 PyErr_SetString(PyExc_RuntimeError, e.
what());
49878 Py_END_ALLOW_THREADS
49880 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
49887 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_free_slot(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49888 PyObject *resultobj = 0;
49898 PyObject * obj0 = 0 ;
49899 PyObject * obj1 = 0 ;
49900 PyObject * obj2 = 0 ;
49902 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OnDiskInvertedLists_free_slot",&obj0,&obj1,&obj2)) SWIG_fail;
49903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
49904 if (!SWIG_IsOK(res1)) {
49905 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_free_slot" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
49908 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
49909 if (!SWIG_IsOK(ecode2)) {
49910 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_free_slot" "', argument " "2"" of type '" "size_t""'");
49912 arg2 =
static_cast< size_t >(val2);
49913 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
49914 if (!SWIG_IsOK(ecode3)) {
49915 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OnDiskInvertedLists_free_slot" "', argument " "3"" of type '" "size_t""'");
49917 arg3 =
static_cast< size_t >(val3);
49919 Py_BEGIN_ALLOW_THREADS
49921 (arg1)->free_slot(arg2,arg3);
49923 PyEval_RestoreThread(_save);
49924 PyErr_SetString(PyExc_RuntimeError, e.
what());
49927 Py_END_ALLOW_THREADS
49929 resultobj = SWIG_Py_Void();
49936 SWIGINTERN PyObject *_wrap_new_OnDiskInvertedLists__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49937 PyObject *resultobj = 0;
49940 if (!PyArg_ParseTuple(args,(
char *)
":new_OnDiskInvertedLists")) SWIG_fail;
49942 Py_BEGIN_ALLOW_THREADS
49946 PyEval_RestoreThread(_save);
49947 PyErr_SetString(PyExc_RuntimeError, e.
what());
49950 Py_END_ALLOW_THREADS
49952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OnDiskInvertedLists, SWIG_POINTER_NEW | 0 );
49959 SWIGINTERN PyObject *_wrap_new_OnDiskInvertedLists(PyObject *
self, PyObject *args) {
49961 PyObject *argv[4] = {
49966 if (!PyTuple_Check(args)) SWIG_fail;
49967 argc = args ? PyObject_Length(args) : 0;
49968 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
49969 argv[ii] = PyTuple_GET_ITEM(args,ii);
49972 return _wrap_new_OnDiskInvertedLists__SWIG_1(
self, args);
49977 int res = SWIG_AsVal_size_t(argv[0], NULL);
49978 _v = SWIG_CheckState(res);
49982 int res = SWIG_AsVal_size_t(argv[1], NULL);
49983 _v = SWIG_CheckState(res);
49986 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
49987 _v = SWIG_CheckState(res);
49989 return _wrap_new_OnDiskInvertedLists__SWIG_0(
self, args);
49996 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_OnDiskInvertedLists'.\n"
49997 " Possible C/C++ prototypes are:\n"
49998 " faiss::OnDiskInvertedLists::OnDiskInvertedLists(size_t,size_t,char const *)\n"
49999 " faiss::OnDiskInvertedLists::OnDiskInvertedLists()\n");
50004 SWIGINTERN PyObject *OnDiskInvertedLists_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50006 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
50007 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__OnDiskInvertedLists, SWIG_NewClientData(obj));
50008 return SWIG_Py_Void();
50011 SWIGINTERN PyObject *_wrap_IVFPQSearchParameters_scan_table_threshold_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50012 PyObject *resultobj = 0;
50019 PyObject * obj0 = 0 ;
50020 PyObject * obj1 = 0 ;
50022 if (!PyArg_ParseTuple(args,(
char *)
"OO:IVFPQSearchParameters_scan_table_threshold_set",&obj0,&obj1)) SWIG_fail;
50023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFPQSearchParameters, 0 | 0 );
50024 if (!SWIG_IsOK(res1)) {
50025 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFPQSearchParameters_scan_table_threshold_set" "', argument " "1"" of type '" "faiss::IVFPQSearchParameters *""'");
50028 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50029 if (!SWIG_IsOK(ecode2)) {
50030 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IVFPQSearchParameters_scan_table_threshold_set" "', argument " "2"" of type '" "size_t""'");
50032 arg2 =
static_cast< size_t >(val2);
50033 if (arg1) (arg1)->scan_table_threshold = arg2;
50034 resultobj = SWIG_Py_Void();
50041 SWIGINTERN PyObject *_wrap_IVFPQSearchParameters_scan_table_threshold_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50042 PyObject *resultobj = 0;
50046 PyObject * obj0 = 0 ;
50049 if (!PyArg_ParseTuple(args,(
char *)
"O:IVFPQSearchParameters_scan_table_threshold_get",&obj0)) SWIG_fail;
50050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFPQSearchParameters, 0 | 0 );
50051 if (!SWIG_IsOK(res1)) {
50052 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFPQSearchParameters_scan_table_threshold_get" "', argument " "1"" of type '" "faiss::IVFPQSearchParameters *""'");
50055 result = (size_t) ((arg1)->scan_table_threshold);
50056 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
50063 SWIGINTERN PyObject *_wrap_IVFPQSearchParameters_polysemous_ht_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50064 PyObject *resultobj = 0;
50071 PyObject * obj0 = 0 ;
50072 PyObject * obj1 = 0 ;
50074 if (!PyArg_ParseTuple(args,(
char *)
"OO:IVFPQSearchParameters_polysemous_ht_set",&obj0,&obj1)) SWIG_fail;
50075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFPQSearchParameters, 0 | 0 );
50076 if (!SWIG_IsOK(res1)) {
50077 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFPQSearchParameters_polysemous_ht_set" "', argument " "1"" of type '" "faiss::IVFPQSearchParameters *""'");
50080 ecode2 = SWIG_AsVal_int(obj1, &val2);
50081 if (!SWIG_IsOK(ecode2)) {
50082 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IVFPQSearchParameters_polysemous_ht_set" "', argument " "2"" of type '" "int""'");
50084 arg2 =
static_cast< int >(val2);
50085 if (arg1) (arg1)->polysemous_ht = arg2;
50086 resultobj = SWIG_Py_Void();
50093 SWIGINTERN PyObject *_wrap_IVFPQSearchParameters_polysemous_ht_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50094 PyObject *resultobj = 0;
50098 PyObject * obj0 = 0 ;
50101 if (!PyArg_ParseTuple(args,(
char *)
"O:IVFPQSearchParameters_polysemous_ht_get",&obj0)) SWIG_fail;
50102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFPQSearchParameters, 0 | 0 );
50103 if (!SWIG_IsOK(res1)) {
50104 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFPQSearchParameters_polysemous_ht_get" "', argument " "1"" of type '" "faiss::IVFPQSearchParameters *""'");
50107 result = (int) ((arg1)->polysemous_ht);
50108 resultobj = SWIG_From_int(static_cast< int >(result));
50115 SWIGINTERN PyObject *_wrap_delete_IVFPQSearchParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50116 PyObject *resultobj = 0;
50120 PyObject * obj0 = 0 ;
50122 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IVFPQSearchParameters",&obj0)) SWIG_fail;
50123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFPQSearchParameters, SWIG_POINTER_DISOWN | 0 );
50124 if (!SWIG_IsOK(res1)) {
50125 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IVFPQSearchParameters" "', argument " "1"" of type '" "faiss::IVFPQSearchParameters *""'");
50129 Py_BEGIN_ALLOW_THREADS
50133 PyEval_RestoreThread(_save);
50134 PyErr_SetString(PyExc_RuntimeError, e.
what());
50137 Py_END_ALLOW_THREADS
50139 resultobj = SWIG_Py_Void();
50146 SWIGINTERN PyObject *_wrap_new_IVFPQSearchParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50147 PyObject *resultobj = 0;
50150 if (!PyArg_ParseTuple(args,(
char *)
":new_IVFPQSearchParameters")) SWIG_fail;
50152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IVFPQSearchParameters, SWIG_POINTER_NEW | 0 );
50159 SWIGINTERN PyObject *IVFPQSearchParameters_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50161 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
50162 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IVFPQSearchParameters, SWIG_NewClientData(obj));
50163 return SWIG_Py_Void();
50166 SWIGINTERN PyObject *_wrap_IndexIVFPQ_by_residual_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50167 PyObject *resultobj = 0;
50174 PyObject * obj0 = 0 ;
50175 PyObject * obj1 = 0 ;
50177 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_by_residual_set",&obj0,&obj1)) SWIG_fail;
50178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50179 if (!SWIG_IsOK(res1)) {
50180 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_by_residual_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50183 ecode2 = SWIG_AsVal_bool(obj1, &val2);
50184 if (!SWIG_IsOK(ecode2)) {
50185 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_by_residual_set" "', argument " "2"" of type '" "bool""'");
50187 arg2 =
static_cast< bool >(val2);
50188 if (arg1) (arg1)->by_residual = arg2;
50189 resultobj = SWIG_Py_Void();
50196 SWIGINTERN PyObject *_wrap_IndexIVFPQ_by_residual_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50197 PyObject *resultobj = 0;
50201 PyObject * obj0 = 0 ;
50204 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_by_residual_get",&obj0)) SWIG_fail;
50205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50206 if (!SWIG_IsOK(res1)) {
50207 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_by_residual_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50210 result = (bool) ((arg1)->by_residual);
50211 resultobj = SWIG_From_bool(static_cast< bool >(result));
50218 SWIGINTERN PyObject *_wrap_IndexIVFPQ_pq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50219 PyObject *resultobj = 0;
50226 PyObject * obj0 = 0 ;
50227 PyObject * obj1 = 0 ;
50229 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_pq_set",&obj0,&obj1)) SWIG_fail;
50230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50231 if (!SWIG_IsOK(res1)) {
50232 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_pq_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50235 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
50236 if (!SWIG_IsOK(res2)) {
50237 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQ_pq_set" "', argument " "2"" of type '" "faiss::ProductQuantizer *""'");
50240 if (arg1) (arg1)->pq = *arg2;
50241 resultobj = SWIG_Py_Void();
50248 SWIGINTERN PyObject *_wrap_IndexIVFPQ_pq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50249 PyObject *resultobj = 0;
50253 PyObject * obj0 = 0 ;
50256 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_pq_get",&obj0)) SWIG_fail;
50257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50258 if (!SWIG_IsOK(res1)) {
50259 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_pq_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
50270 SWIGINTERN PyObject *_wrap_IndexIVFPQ_do_polysemous_training_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50271 PyObject *resultobj = 0;
50278 PyObject * obj0 = 0 ;
50279 PyObject * obj1 = 0 ;
50281 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_do_polysemous_training_set",&obj0,&obj1)) SWIG_fail;
50282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50283 if (!SWIG_IsOK(res1)) {
50284 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_do_polysemous_training_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50287 ecode2 = SWIG_AsVal_bool(obj1, &val2);
50288 if (!SWIG_IsOK(ecode2)) {
50289 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_do_polysemous_training_set" "', argument " "2"" of type '" "bool""'");
50291 arg2 =
static_cast< bool >(val2);
50292 if (arg1) (arg1)->do_polysemous_training = arg2;
50293 resultobj = SWIG_Py_Void();
50300 SWIGINTERN PyObject *_wrap_IndexIVFPQ_do_polysemous_training_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50301 PyObject *resultobj = 0;
50305 PyObject * obj0 = 0 ;
50308 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_do_polysemous_training_get",&obj0)) SWIG_fail;
50309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50310 if (!SWIG_IsOK(res1)) {
50311 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_do_polysemous_training_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50314 result = (bool) ((arg1)->do_polysemous_training);
50315 resultobj = SWIG_From_bool(static_cast< bool >(result));
50322 SWIGINTERN PyObject *_wrap_IndexIVFPQ_polysemous_training_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50323 PyObject *resultobj = 0;
50330 PyObject * obj0 = 0 ;
50331 PyObject * obj1 = 0 ;
50333 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_polysemous_training_set",&obj0,&obj1)) SWIG_fail;
50334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50335 if (!SWIG_IsOK(res1)) {
50336 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_polysemous_training_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50339 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__PolysemousTraining, SWIG_POINTER_DISOWN | 0 );
50340 if (!SWIG_IsOK(res2)) {
50341 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQ_polysemous_training_set" "', argument " "2"" of type '" "faiss::PolysemousTraining *""'");
50344 if (arg1) (arg1)->polysemous_training = arg2;
50345 resultobj = SWIG_Py_Void();
50352 SWIGINTERN PyObject *_wrap_IndexIVFPQ_polysemous_training_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50353 PyObject *resultobj = 0;
50357 PyObject * obj0 = 0 ;
50360 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_polysemous_training_get",&obj0)) SWIG_fail;
50361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50362 if (!SWIG_IsOK(res1)) {
50363 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_polysemous_training_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50367 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
50374 SWIGINTERN PyObject *_wrap_IndexIVFPQ_scan_table_threshold_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50375 PyObject *resultobj = 0;
50382 PyObject * obj0 = 0 ;
50383 PyObject * obj1 = 0 ;
50385 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_scan_table_threshold_set",&obj0,&obj1)) SWIG_fail;
50386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50387 if (!SWIG_IsOK(res1)) {
50388 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_scan_table_threshold_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50391 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50392 if (!SWIG_IsOK(ecode2)) {
50393 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_scan_table_threshold_set" "', argument " "2"" of type '" "size_t""'");
50395 arg2 =
static_cast< size_t >(val2);
50396 if (arg1) (arg1)->scan_table_threshold = arg2;
50397 resultobj = SWIG_Py_Void();
50404 SWIGINTERN PyObject *_wrap_IndexIVFPQ_scan_table_threshold_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50405 PyObject *resultobj = 0;
50409 PyObject * obj0 = 0 ;
50412 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_scan_table_threshold_get",&obj0)) SWIG_fail;
50413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50414 if (!SWIG_IsOK(res1)) {
50415 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_scan_table_threshold_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50418 result = (size_t) ((arg1)->scan_table_threshold);
50419 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
50426 SWIGINTERN PyObject *_wrap_IndexIVFPQ_polysemous_ht_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50427 PyObject *resultobj = 0;
50434 PyObject * obj0 = 0 ;
50435 PyObject * obj1 = 0 ;
50437 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_polysemous_ht_set",&obj0,&obj1)) SWIG_fail;
50438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50439 if (!SWIG_IsOK(res1)) {
50440 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_polysemous_ht_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50443 ecode2 = SWIG_AsVal_int(obj1, &val2);
50444 if (!SWIG_IsOK(ecode2)) {
50445 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_polysemous_ht_set" "', argument " "2"" of type '" "int""'");
50447 arg2 =
static_cast< int >(val2);
50448 if (arg1) (arg1)->polysemous_ht = arg2;
50449 resultobj = SWIG_Py_Void();
50456 SWIGINTERN PyObject *_wrap_IndexIVFPQ_polysemous_ht_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50457 PyObject *resultobj = 0;
50461 PyObject * obj0 = 0 ;
50464 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_polysemous_ht_get",&obj0)) SWIG_fail;
50465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50466 if (!SWIG_IsOK(res1)) {
50467 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_polysemous_ht_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50470 result = (int) ((arg1)->polysemous_ht);
50471 resultobj = SWIG_From_int(static_cast< int >(result));
50478 SWIGINTERN PyObject *_wrap_IndexIVFPQ_use_precomputed_table_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50479 PyObject *resultobj = 0;
50486 PyObject * obj0 = 0 ;
50487 PyObject * obj1 = 0 ;
50489 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_use_precomputed_table_set",&obj0,&obj1)) SWIG_fail;
50490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50491 if (!SWIG_IsOK(res1)) {
50492 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_use_precomputed_table_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50495 ecode2 = SWIG_AsVal_int(obj1, &val2);
50496 if (!SWIG_IsOK(ecode2)) {
50497 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_use_precomputed_table_set" "', argument " "2"" of type '" "int""'");
50499 arg2 =
static_cast< int >(val2);
50500 if (arg1) (arg1)->use_precomputed_table = arg2;
50501 resultobj = SWIG_Py_Void();
50508 SWIGINTERN PyObject *_wrap_IndexIVFPQ_use_precomputed_table_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50509 PyObject *resultobj = 0;
50513 PyObject * obj0 = 0 ;
50516 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_use_precomputed_table_get",&obj0)) SWIG_fail;
50517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50518 if (!SWIG_IsOK(res1)) {
50519 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_use_precomputed_table_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50522 result = (int) ((arg1)->use_precomputed_table);
50523 resultobj = SWIG_From_int(static_cast< int >(result));
50530 SWIGINTERN
int Swig_var_IndexIVFPQ_precomputed_table_max_bytes_set(PyObject *_val) {
50533 int res = SWIG_AsVal_size_t(_val, &val);
50534 if (!SWIG_IsOK(res)) {
50535 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""faiss::IndexIVFPQ::precomputed_table_max_bytes""' of type '""size_t""'");
50545 SWIGINTERN PyObject *Swig_var_IndexIVFPQ_precomputed_table_max_bytes_get(
void) {
50546 PyObject *pyobj = 0;
50553 SWIGINTERN PyObject *_wrap_IndexIVFPQ_precomputed_table_max_bytes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *SWIGUNUSEDPARM(args)) {
50554 return Swig_var_IndexIVFPQ_precomputed_table_max_bytes_get();
50558 SWIGINTERN PyObject *_wrap_IndexIVFPQ_precomputed_table_max_bytes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50562 if (!PyArg_ParseTuple(args,(
char *)
"O:set",&value))
return NULL;
50563 res = Swig_var_IndexIVFPQ_precomputed_table_max_bytes_set(value);
50564 return !res ? SWIG_Py_Void() : NULL;
50568 SWIGINTERN PyObject *_wrap_IndexIVFPQ_precomputed_table_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50569 PyObject *resultobj = 0;
50571 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
50576 PyObject * obj0 = 0 ;
50577 PyObject * obj1 = 0 ;
50579 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_precomputed_table_set",&obj0,&obj1)) SWIG_fail;
50580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50581 if (!SWIG_IsOK(res1)) {
50582 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_precomputed_table_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50585 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
50586 if (!SWIG_IsOK(res2)) {
50587 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQ_precomputed_table_set" "', argument " "2"" of type '" "std::vector< float > *""'");
50589 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
50590 if (arg1) (arg1)->precomputed_table = *arg2;
50591 resultobj = SWIG_Py_Void();
50598 SWIGINTERN PyObject *_wrap_IndexIVFPQ_precomputed_table_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50599 PyObject *resultobj = 0;
50603 PyObject * obj0 = 0 ;
50604 std::vector< float > *result = 0 ;
50606 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_precomputed_table_get",&obj0)) SWIG_fail;
50607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50608 if (!SWIG_IsOK(res1)) {
50609 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_precomputed_table_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50612 result = (std::vector< float > *)& ((arg1)->precomputed_table);
50613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
50620 SWIGINTERN PyObject *_wrap_new_IndexIVFPQ__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50621 PyObject *resultobj = 0;
50637 PyObject * obj0 = 0 ;
50638 PyObject * obj1 = 0 ;
50639 PyObject * obj2 = 0 ;
50640 PyObject * obj3 = 0 ;
50641 PyObject * obj4 = 0 ;
50644 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:new_IndexIVFPQ",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
50646 if (!SWIG_IsOK(res1)) {
50647 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFPQ" "', argument " "1"" of type '" "faiss::Index *""'");
50650 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50651 if (!SWIG_IsOK(ecode2)) {
50652 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFPQ" "', argument " "2"" of type '" "size_t""'");
50654 arg2 =
static_cast< size_t >(val2);
50655 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
50656 if (!SWIG_IsOK(ecode3)) {
50657 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFPQ" "', argument " "3"" of type '" "size_t""'");
50659 arg3 =
static_cast< size_t >(val3);
50660 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
50661 if (!SWIG_IsOK(ecode4)) {
50662 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexIVFPQ" "', argument " "4"" of type '" "size_t""'");
50664 arg4 =
static_cast< size_t >(val4);
50665 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
50666 if (!SWIG_IsOK(ecode5)) {
50667 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "new_IndexIVFPQ" "', argument " "5"" of type '" "size_t""'");
50669 arg5 =
static_cast< size_t >(val5);
50671 Py_BEGIN_ALLOW_THREADS
50675 PyEval_RestoreThread(_save);
50676 PyErr_SetString(PyExc_RuntimeError, e.
what());
50679 Py_END_ALLOW_THREADS
50681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFPQ, SWIG_POINTER_NEW | 0 );
50688 SWIGINTERN PyObject *_wrap_IndexIVFPQ_add_with_ids__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50689 PyObject *resultobj = 0;
50692 float *arg3 = (
float *) 0 ;
50693 long *arg4 = (
long *) 0 ;
50702 PyObject * obj0 = 0 ;
50703 PyObject * obj1 = 0 ;
50704 PyObject * obj2 = 0 ;
50705 PyObject * obj3 = 0 ;
50707 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFPQ_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
50708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50709 if (!SWIG_IsOK(res1)) {
50710 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50713 ecode2 = SWIG_AsVal_long(obj1, &val2);
50714 if (!SWIG_IsOK(ecode2)) {
50715 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
50718 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
50719 if (!SWIG_IsOK(res3)) {
50720 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_add_with_ids" "', argument " "3"" of type '" "float const *""'");
50722 arg3 =
reinterpret_cast< float *
>(argp3);
50723 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
50724 if (!SWIG_IsOK(res4)) {
50725 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_add_with_ids" "', argument " "4"" of type '" "long const *""'");
50727 arg4 =
reinterpret_cast< long *
>(argp4);
50729 Py_BEGIN_ALLOW_THREADS
50731 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
50733 PyEval_RestoreThread(_save);
50734 PyErr_SetString(PyExc_RuntimeError, e.
what());
50737 Py_END_ALLOW_THREADS
50739 resultobj = SWIG_Py_Void();
50746 SWIGINTERN PyObject *_wrap_IndexIVFPQ_add_with_ids__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50747 PyObject *resultobj = 0;
50750 float *arg3 = (
float *) 0 ;
50757 PyObject * obj0 = 0 ;
50758 PyObject * obj1 = 0 ;
50759 PyObject * obj2 = 0 ;
50761 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVFPQ_add_with_ids",&obj0,&obj1,&obj2)) SWIG_fail;
50762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50763 if (!SWIG_IsOK(res1)) {
50764 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50767 ecode2 = SWIG_AsVal_long(obj1, &val2);
50768 if (!SWIG_IsOK(ecode2)) {
50769 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
50772 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
50773 if (!SWIG_IsOK(res3)) {
50774 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_add_with_ids" "', argument " "3"" of type '" "float const *""'");
50776 arg3 =
reinterpret_cast< float *
>(argp3);
50778 Py_BEGIN_ALLOW_THREADS
50780 (arg1)->add_with_ids(arg2,(
float const *)arg3);
50782 PyEval_RestoreThread(_save);
50783 PyErr_SetString(PyExc_RuntimeError, e.
what());
50786 Py_END_ALLOW_THREADS
50788 resultobj = SWIG_Py_Void();
50795 SWIGINTERN PyObject *_wrap_IndexIVFPQ_add_with_ids(PyObject *
self, PyObject *args) {
50797 PyObject *argv[5] = {
50802 if (!PyTuple_Check(args)) SWIG_fail;
50803 argc = args ? PyObject_Length(args) : 0;
50804 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
50805 argv[ii] = PyTuple_GET_ITEM(args,ii);
50810 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQ, 0);
50811 _v = SWIG_CheckState(res);
50814 int res = SWIG_AsVal_long(argv[1], NULL);
50815 _v = SWIG_CheckState(res);
50819 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
50820 _v = SWIG_CheckState(res);
50822 return _wrap_IndexIVFPQ_add_with_ids__SWIG_1(
self, args);
50830 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQ, 0);
50831 _v = SWIG_CheckState(res);
50834 int res = SWIG_AsVal_long(argv[1], NULL);
50835 _v = SWIG_CheckState(res);
50839 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
50840 _v = SWIG_CheckState(res);
50843 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
50844 _v = SWIG_CheckState(res);
50846 return _wrap_IndexIVFPQ_add_with_ids__SWIG_0(
self, args);
50854 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVFPQ_add_with_ids'.\n"
50855 " Possible C/C++ prototypes are:\n"
50856 " faiss::IndexIVFPQ::add_with_ids(faiss::Index::idx_t,float const *,long const *)\n"
50857 " faiss::IndexIVFPQ::add_with_ids(faiss::Index::idx_t,float const *)\n");
50862 SWIGINTERN PyObject *_wrap_IndexIVFPQ_encode_vectors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50863 PyObject *resultobj = 0;
50866 float *arg3 = (
float *) 0 ;
50868 uint8_t *arg5 = (uint8_t *) 0 ;
50879 PyObject * obj0 = 0 ;
50880 PyObject * obj1 = 0 ;
50881 PyObject * obj2 = 0 ;
50882 PyObject * obj3 = 0 ;
50883 PyObject * obj4 = 0 ;
50885 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFPQ_encode_vectors",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50887 if (!SWIG_IsOK(res1)) {
50888 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_encode_vectors" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
50891 ecode2 = SWIG_AsVal_long(obj1, &val2);
50892 if (!SWIG_IsOK(ecode2)) {
50893 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_encode_vectors" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
50896 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
50897 if (!SWIG_IsOK(res3)) {
50898 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_encode_vectors" "', argument " "3"" of type '" "float const *""'");
50900 arg3 =
reinterpret_cast< float *
>(argp3);
50901 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
50902 if (!SWIG_IsOK(res4)) {
50903 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_encode_vectors" "', argument " "4"" of type '" "faiss::Index::idx_t const *""'");
50906 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
50907 if (!SWIG_IsOK(res5)) {
50908 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQ_encode_vectors" "', argument " "5"" of type '" "uint8_t *""'");
50910 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
50912 Py_BEGIN_ALLOW_THREADS
50916 PyEval_RestoreThread(_save);
50917 PyErr_SetString(PyExc_RuntimeError, e.
what());
50920 Py_END_ALLOW_THREADS
50922 resultobj = SWIG_Py_Void();
50929 SWIGINTERN PyObject *_wrap_IndexIVFPQ_add_core_o__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50930 PyObject *resultobj = 0;
50933 float *arg3 = (
float *) 0 ;
50934 long *arg4 = (
long *) 0 ;
50935 float *arg5 = (
float *) 0 ;
50936 long *arg6 = (
long *) 0 ;
50949 PyObject * obj0 = 0 ;
50950 PyObject * obj1 = 0 ;
50951 PyObject * obj2 = 0 ;
50952 PyObject * obj3 = 0 ;
50953 PyObject * obj4 = 0 ;
50954 PyObject * obj5 = 0 ;
50956 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexIVFPQ_add_core_o",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
50957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
50958 if (!SWIG_IsOK(res1)) {
50959 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
50962 ecode2 = SWIG_AsVal_long(obj1, &val2);
50963 if (!SWIG_IsOK(ecode2)) {
50964 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
50967 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
50968 if (!SWIG_IsOK(res3)) {
50969 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "3"" of type '" "float const *""'");
50971 arg3 =
reinterpret_cast< float *
>(argp3);
50972 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
50973 if (!SWIG_IsOK(res4)) {
50974 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "4"" of type '" "long const *""'");
50976 arg4 =
reinterpret_cast< long *
>(argp4);
50977 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
50978 if (!SWIG_IsOK(res5)) {
50979 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "5"" of type '" "float *""'");
50981 arg5 =
reinterpret_cast< float *
>(argp5);
50982 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
50983 if (!SWIG_IsOK(res6)) {
50984 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "6"" of type '" "long const *""'");
50986 arg6 =
reinterpret_cast< long *
>(argp6);
50988 Py_BEGIN_ALLOW_THREADS
50990 (arg1)->add_core_o(arg2,(
float const *)arg3,(
long const *)arg4,arg5,(
long const *)arg6);
50991 } catch(faiss::FaissException & e) {
50992 PyEval_RestoreThread(_save);
50993 PyErr_SetString(PyExc_RuntimeError, e.what());
50996 Py_END_ALLOW_THREADS
50998 resultobj = SWIG_Py_Void();
51005 SWIGINTERN PyObject *_wrap_IndexIVFPQ_add_core_o__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51006 PyObject *resultobj = 0;
51009 float *arg3 = (
float *) 0 ;
51010 long *arg4 = (
long *) 0 ;
51011 float *arg5 = (
float *) 0 ;
51022 PyObject * obj0 = 0 ;
51023 PyObject * obj1 = 0 ;
51024 PyObject * obj2 = 0 ;
51025 PyObject * obj3 = 0 ;
51026 PyObject * obj4 = 0 ;
51028 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFPQ_add_core_o",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
51029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51030 if (!SWIG_IsOK(res1)) {
51031 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51034 ecode2 = SWIG_AsVal_long(obj1, &val2);
51035 if (!SWIG_IsOK(ecode2)) {
51036 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
51039 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
51040 if (!SWIG_IsOK(res3)) {
51041 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "3"" of type '" "float const *""'");
51043 arg3 =
reinterpret_cast< float *
>(argp3);
51044 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
51045 if (!SWIG_IsOK(res4)) {
51046 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "4"" of type '" "long const *""'");
51048 arg4 =
reinterpret_cast< long *
>(argp4);
51049 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
51050 if (!SWIG_IsOK(res5)) {
51051 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "5"" of type '" "float *""'");
51053 arg5 =
reinterpret_cast< float *
>(argp5);
51055 Py_BEGIN_ALLOW_THREADS
51057 (arg1)->add_core_o(arg2,(
float const *)arg3,(
long const *)arg4,arg5);
51059 PyEval_RestoreThread(_save);
51060 PyErr_SetString(PyExc_RuntimeError, e.
what());
51063 Py_END_ALLOW_THREADS
51065 resultobj = SWIG_Py_Void();
51072 SWIGINTERN PyObject *_wrap_IndexIVFPQ_add_core_o(PyObject *
self, PyObject *args) {
51074 PyObject *argv[7] = {
51079 if (!PyTuple_Check(args)) SWIG_fail;
51080 argc = args ? PyObject_Length(args) : 0;
51081 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
51082 argv[ii] = PyTuple_GET_ITEM(args,ii);
51087 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQ, 0);
51088 _v = SWIG_CheckState(res);
51091 int res = SWIG_AsVal_long(argv[1], NULL);
51092 _v = SWIG_CheckState(res);
51096 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
51097 _v = SWIG_CheckState(res);
51100 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
51101 _v = SWIG_CheckState(res);
51104 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
51105 _v = SWIG_CheckState(res);
51107 return _wrap_IndexIVFPQ_add_core_o__SWIG_1(
self, args);
51117 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQ, 0);
51118 _v = SWIG_CheckState(res);
51121 int res = SWIG_AsVal_long(argv[1], NULL);
51122 _v = SWIG_CheckState(res);
51126 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
51127 _v = SWIG_CheckState(res);
51130 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
51131 _v = SWIG_CheckState(res);
51134 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
51135 _v = SWIG_CheckState(res);
51138 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_long, 0);
51139 _v = SWIG_CheckState(res);
51141 return _wrap_IndexIVFPQ_add_core_o__SWIG_0(
self, args);
51151 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVFPQ_add_core_o'.\n"
51152 " Possible C/C++ prototypes are:\n"
51153 " faiss::IndexIVFPQ::add_core_o(faiss::Index::idx_t,float const *,long const *,float *,long const *)\n"
51154 " faiss::IndexIVFPQ::add_core_o(faiss::Index::idx_t,float const *,long const *,float *)\n");
51159 SWIGINTERN PyObject *_wrap_IndexIVFPQ_train_residual(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51160 PyObject *resultobj = 0;
51163 float *arg3 = (
float *) 0 ;
51170 PyObject * obj0 = 0 ;
51171 PyObject * obj1 = 0 ;
51172 PyObject * obj2 = 0 ;
51174 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVFPQ_train_residual",&obj0,&obj1,&obj2)) SWIG_fail;
51175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51176 if (!SWIG_IsOK(res1)) {
51177 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_train_residual" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51180 ecode2 = SWIG_AsVal_long(obj1, &val2);
51181 if (!SWIG_IsOK(ecode2)) {
51182 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_train_residual" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
51185 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
51186 if (!SWIG_IsOK(res3)) {
51187 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_train_residual" "', argument " "3"" of type '" "float const *""'");
51189 arg3 =
reinterpret_cast< float *
>(argp3);
51191 Py_BEGIN_ALLOW_THREADS
51193 (arg1)->train_residual(arg2,(
float const *)arg3);
51195 PyEval_RestoreThread(_save);
51196 PyErr_SetString(PyExc_RuntimeError, e.
what());
51199 Py_END_ALLOW_THREADS
51201 resultobj = SWIG_Py_Void();
51208 SWIGINTERN PyObject *_wrap_IndexIVFPQ_train_residual_o(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51209 PyObject *resultobj = 0;
51212 float *arg3 = (
float *) 0 ;
51213 float *arg4 = (
float *) 0 ;
51222 PyObject * obj0 = 0 ;
51223 PyObject * obj1 = 0 ;
51224 PyObject * obj2 = 0 ;
51225 PyObject * obj3 = 0 ;
51227 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFPQ_train_residual_o",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
51228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51229 if (!SWIG_IsOK(res1)) {
51230 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_train_residual_o" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51233 ecode2 = SWIG_AsVal_long(obj1, &val2);
51234 if (!SWIG_IsOK(ecode2)) {
51235 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_train_residual_o" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
51238 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
51239 if (!SWIG_IsOK(res3)) {
51240 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_train_residual_o" "', argument " "3"" of type '" "float const *""'");
51242 arg3 =
reinterpret_cast< float *
>(argp3);
51243 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
51244 if (!SWIG_IsOK(res4)) {
51245 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_train_residual_o" "', argument " "4"" of type '" "float *""'");
51247 arg4 =
reinterpret_cast< float *
>(argp4);
51249 Py_BEGIN_ALLOW_THREADS
51251 (arg1)->train_residual_o(arg2,(
float const *)arg3,arg4);
51253 PyEval_RestoreThread(_save);
51254 PyErr_SetString(PyExc_RuntimeError, e.
what());
51257 Py_END_ALLOW_THREADS
51259 resultobj = SWIG_Py_Void();
51266 SWIGINTERN PyObject *_wrap_IndexIVFPQ_reconstruct_from_offset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51267 PyObject *resultobj = 0;
51271 float *arg4 = (
float *) 0 ;
51280 PyObject * obj0 = 0 ;
51281 PyObject * obj1 = 0 ;
51282 PyObject * obj2 = 0 ;
51283 PyObject * obj3 = 0 ;
51285 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFPQ_reconstruct_from_offset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
51286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51287 if (!SWIG_IsOK(res1)) {
51288 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_reconstruct_from_offset" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
51291 ecode2 = SWIG_AsVal_long(obj1, &val2);
51292 if (!SWIG_IsOK(ecode2)) {
51293 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_reconstruct_from_offset" "', argument " "2"" of type '" "long""'");
51295 arg2 =
static_cast< long >(val2);
51296 ecode3 = SWIG_AsVal_long(obj2, &val3);
51297 if (!SWIG_IsOK(ecode3)) {
51298 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVFPQ_reconstruct_from_offset" "', argument " "3"" of type '" "long""'");
51300 arg3 =
static_cast< long >(val3);
51301 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
51302 if (!SWIG_IsOK(res4)) {
51303 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_reconstruct_from_offset" "', argument " "4"" of type '" "float *""'");
51305 arg4 =
reinterpret_cast< float *
>(argp4);
51307 Py_BEGIN_ALLOW_THREADS
51311 PyEval_RestoreThread(_save);
51312 PyErr_SetString(PyExc_RuntimeError, e.
what());
51315 Py_END_ALLOW_THREADS
51317 resultobj = SWIG_Py_Void();
51324 SWIGINTERN PyObject *_wrap_IndexIVFPQ_find_duplicates(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51325 PyObject *resultobj = 0;
51328 size_t *arg3 = (
size_t *) 0 ;
51335 PyObject * obj0 = 0 ;
51336 PyObject * obj1 = 0 ;
51337 PyObject * obj2 = 0 ;
51340 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVFPQ_find_duplicates",&obj0,&obj1,&obj2)) SWIG_fail;
51341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51342 if (!SWIG_IsOK(res1)) {
51343 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_find_duplicates" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
51346 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
51347 if (!SWIG_IsOK(res2)) {
51348 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQ_find_duplicates" "', argument " "2"" of type '" "faiss::Index::idx_t *""'");
51351 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_long, 0 | 0 );
51352 if (!SWIG_IsOK(res3)) {
51353 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_find_duplicates" "', argument " "3"" of type '" "size_t *""'");
51355 arg3 =
reinterpret_cast< size_t *
>(argp3);
51357 Py_BEGIN_ALLOW_THREADS
51359 result = (size_t)((
faiss::IndexIVFPQ const *)arg1)->find_duplicates(arg2,arg3);
51361 PyEval_RestoreThread(_save);
51362 PyErr_SetString(PyExc_RuntimeError, e.
what());
51365 Py_END_ALLOW_THREADS
51367 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
51374 SWIGINTERN PyObject *_wrap_IndexIVFPQ_encode(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51375 PyObject *resultobj = 0;
51378 float *arg3 = (
float *) 0 ;
51379 uint8_t *arg4 = (uint8_t *) 0 ;
51388 PyObject * obj0 = 0 ;
51389 PyObject * obj1 = 0 ;
51390 PyObject * obj2 = 0 ;
51391 PyObject * obj3 = 0 ;
51393 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFPQ_encode",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
51394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51395 if (!SWIG_IsOK(res1)) {
51396 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_encode" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
51399 ecode2 = SWIG_AsVal_long(obj1, &val2);
51400 if (!SWIG_IsOK(ecode2)) {
51401 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_encode" "', argument " "2"" of type '" "long""'");
51403 arg2 =
static_cast< long >(val2);
51404 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
51405 if (!SWIG_IsOK(res3)) {
51406 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_encode" "', argument " "3"" of type '" "float const *""'");
51408 arg3 =
reinterpret_cast< float *
>(argp3);
51409 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
51410 if (!SWIG_IsOK(res4)) {
51411 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_encode" "', argument " "4"" of type '" "uint8_t *""'");
51413 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
51415 Py_BEGIN_ALLOW_THREADS
51419 PyEval_RestoreThread(_save);
51420 PyErr_SetString(PyExc_RuntimeError, e.
what());
51423 Py_END_ALLOW_THREADS
51425 resultobj = SWIG_Py_Void();
51432 SWIGINTERN PyObject *_wrap_IndexIVFPQ_encode_multiple__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51433 PyObject *resultobj = 0;
51436 long *arg3 = (
long *) 0 ;
51437 float *arg4 = (
float *) 0 ;
51438 uint8_t *arg5 = (uint8_t *) 0 ;
51452 PyObject * obj0 = 0 ;
51453 PyObject * obj1 = 0 ;
51454 PyObject * obj2 = 0 ;
51455 PyObject * obj3 = 0 ;
51456 PyObject * obj4 = 0 ;
51457 PyObject * obj5 = 0 ;
51459 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexIVFPQ_encode_multiple",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
51460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51461 if (!SWIG_IsOK(res1)) {
51462 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
51465 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51466 if (!SWIG_IsOK(ecode2)) {
51467 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "2"" of type '" "size_t""'");
51469 arg2 =
static_cast< size_t >(val2);
51470 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
51471 if (!SWIG_IsOK(res3)) {
51472 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "3"" of type '" "long *""'");
51474 arg3 =
reinterpret_cast< long *
>(argp3);
51475 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
51476 if (!SWIG_IsOK(res4)) {
51477 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "4"" of type '" "float const *""'");
51479 arg4 =
reinterpret_cast< float *
>(argp4);
51480 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
51481 if (!SWIG_IsOK(res5)) {
51482 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "5"" of type '" "uint8_t *""'");
51484 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
51485 ecode6 = SWIG_AsVal_bool(obj5, &val6);
51486 if (!SWIG_IsOK(ecode6)) {
51487 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "6"" of type '" "bool""'");
51489 arg6 =
static_cast< bool >(val6);
51491 Py_BEGIN_ALLOW_THREADS
51493 ((
faiss::IndexIVFPQ const *)arg1)->encode_multiple(arg2,arg3,(
float const *)arg4,arg5,arg6);
51495 PyEval_RestoreThread(_save);
51496 PyErr_SetString(PyExc_RuntimeError, e.
what());
51499 Py_END_ALLOW_THREADS
51501 resultobj = SWIG_Py_Void();
51508 SWIGINTERN PyObject *_wrap_IndexIVFPQ_encode_multiple__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51509 PyObject *resultobj = 0;
51512 long *arg3 = (
long *) 0 ;
51513 float *arg4 = (
float *) 0 ;
51514 uint8_t *arg5 = (uint8_t *) 0 ;
51525 PyObject * obj0 = 0 ;
51526 PyObject * obj1 = 0 ;
51527 PyObject * obj2 = 0 ;
51528 PyObject * obj3 = 0 ;
51529 PyObject * obj4 = 0 ;
51531 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFPQ_encode_multiple",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
51532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51533 if (!SWIG_IsOK(res1)) {
51534 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
51537 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51538 if (!SWIG_IsOK(ecode2)) {
51539 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "2"" of type '" "size_t""'");
51541 arg2 =
static_cast< size_t >(val2);
51542 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
51543 if (!SWIG_IsOK(res3)) {
51544 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "3"" of type '" "long *""'");
51546 arg3 =
reinterpret_cast< long *
>(argp3);
51547 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
51548 if (!SWIG_IsOK(res4)) {
51549 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "4"" of type '" "float const *""'");
51551 arg4 =
reinterpret_cast< float *
>(argp4);
51552 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
51553 if (!SWIG_IsOK(res5)) {
51554 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "5"" of type '" "uint8_t *""'");
51556 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
51558 Py_BEGIN_ALLOW_THREADS
51560 ((
faiss::IndexIVFPQ const *)arg1)->encode_multiple(arg2,arg3,(
float const *)arg4,arg5);
51562 PyEval_RestoreThread(_save);
51563 PyErr_SetString(PyExc_RuntimeError, e.
what());
51566 Py_END_ALLOW_THREADS
51568 resultobj = SWIG_Py_Void();
51575 SWIGINTERN PyObject *_wrap_IndexIVFPQ_encode_multiple(PyObject *
self, PyObject *args) {
51577 PyObject *argv[7] = {
51582 if (!PyTuple_Check(args)) SWIG_fail;
51583 argc = args ? PyObject_Length(args) : 0;
51584 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
51585 argv[ii] = PyTuple_GET_ITEM(args,ii);
51590 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQ, 0);
51591 _v = SWIG_CheckState(res);
51594 int res = SWIG_AsVal_size_t(argv[1], NULL);
51595 _v = SWIG_CheckState(res);
51599 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_long, 0);
51600 _v = SWIG_CheckState(res);
51603 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
51604 _v = SWIG_CheckState(res);
51607 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0);
51608 _v = SWIG_CheckState(res);
51610 return _wrap_IndexIVFPQ_encode_multiple__SWIG_1(
self, args);
51620 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQ, 0);
51621 _v = SWIG_CheckState(res);
51624 int res = SWIG_AsVal_size_t(argv[1], NULL);
51625 _v = SWIG_CheckState(res);
51629 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_long, 0);
51630 _v = SWIG_CheckState(res);
51633 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
51634 _v = SWIG_CheckState(res);
51637 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0);
51638 _v = SWIG_CheckState(res);
51641 int res = SWIG_AsVal_bool(argv[5], NULL);
51642 _v = SWIG_CheckState(res);
51645 return _wrap_IndexIVFPQ_encode_multiple__SWIG_0(
self, args);
51655 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVFPQ_encode_multiple'.\n"
51656 " Possible C/C++ prototypes are:\n"
51657 " faiss::IndexIVFPQ::encode_multiple(size_t,long *,float const *,uint8_t *,bool) const\n"
51658 " faiss::IndexIVFPQ::encode_multiple(size_t,long *,float const *,uint8_t *) const\n");
51663 SWIGINTERN PyObject *_wrap_IndexIVFPQ_decode_multiple(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51664 PyObject *resultobj = 0;
51667 long *arg3 = (
long *) 0 ;
51668 uint8_t *arg4 = (uint8_t *) 0 ;
51669 float *arg5 = (
float *) 0 ;
51680 PyObject * obj0 = 0 ;
51681 PyObject * obj1 = 0 ;
51682 PyObject * obj2 = 0 ;
51683 PyObject * obj3 = 0 ;
51684 PyObject * obj4 = 0 ;
51686 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFPQ_decode_multiple",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
51687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51688 if (!SWIG_IsOK(res1)) {
51689 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_decode_multiple" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
51692 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51693 if (!SWIG_IsOK(ecode2)) {
51694 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_decode_multiple" "', argument " "2"" of type '" "size_t""'");
51696 arg2 =
static_cast< size_t >(val2);
51697 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
51698 if (!SWIG_IsOK(res3)) {
51699 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_decode_multiple" "', argument " "3"" of type '" "long const *""'");
51701 arg3 =
reinterpret_cast< long *
>(argp3);
51702 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
51703 if (!SWIG_IsOK(res4)) {
51704 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_decode_multiple" "', argument " "4"" of type '" "uint8_t const *""'");
51706 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
51707 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
51708 if (!SWIG_IsOK(res5)) {
51709 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQ_decode_multiple" "', argument " "5"" of type '" "float *""'");
51711 arg5 =
reinterpret_cast< float *
>(argp5);
51713 Py_BEGIN_ALLOW_THREADS
51715 ((
faiss::IndexIVFPQ const *)arg1)->decode_multiple(arg2,(
long const *)arg3,(uint8_t
const *)arg4,arg5);
51717 PyEval_RestoreThread(_save);
51718 PyErr_SetString(PyExc_RuntimeError, e.
what());
51721 Py_END_ALLOW_THREADS
51723 resultobj = SWIG_Py_Void();
51730 SWIGINTERN PyObject *_wrap_IndexIVFPQ_get_InvertedListScanner(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51731 PyObject *resultobj = 0;
51738 PyObject * obj0 = 0 ;
51739 PyObject * obj1 = 0 ;
51742 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_get_InvertedListScanner",&obj0,&obj1)) SWIG_fail;
51743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51744 if (!SWIG_IsOK(res1)) {
51745 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_get_InvertedListScanner" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
51748 ecode2 = SWIG_AsVal_bool(obj1, &val2);
51749 if (!SWIG_IsOK(ecode2)) {
51750 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_get_InvertedListScanner" "', argument " "2"" of type '" "bool""'");
51752 arg2 =
static_cast< bool >(val2);
51754 Py_BEGIN_ALLOW_THREADS
51758 PyEval_RestoreThread(_save);
51759 PyErr_SetString(PyExc_RuntimeError, e.
what());
51762 Py_END_ALLOW_THREADS
51764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedListScanner, 0 | 0 );
51771 SWIGINTERN PyObject *_wrap_IndexIVFPQ_precompute_table(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51772 PyObject *resultobj = 0;
51776 PyObject * obj0 = 0 ;
51778 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_precompute_table",&obj0)) SWIG_fail;
51779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51780 if (!SWIG_IsOK(res1)) {
51781 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_precompute_table" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51785 Py_BEGIN_ALLOW_THREADS
51787 (arg1)->precompute_table();
51789 PyEval_RestoreThread(_save);
51790 PyErr_SetString(PyExc_RuntimeError, e.
what());
51793 Py_END_ALLOW_THREADS
51795 resultobj = SWIG_Py_Void();
51802 SWIGINTERN PyObject *_wrap_new_IndexIVFPQ__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51803 PyObject *resultobj = 0;
51806 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIVFPQ")) SWIG_fail;
51808 Py_BEGIN_ALLOW_THREADS
51812 PyEval_RestoreThread(_save);
51813 PyErr_SetString(PyExc_RuntimeError, e.
what());
51816 Py_END_ALLOW_THREADS
51818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFPQ, SWIG_POINTER_NEW | 0 );
51825 SWIGINTERN PyObject *_wrap_new_IndexIVFPQ(PyObject *
self, PyObject *args) {
51827 PyObject *argv[6] = {
51832 if (!PyTuple_Check(args)) SWIG_fail;
51833 argc = args ? PyObject_Length(args) : 0;
51834 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
51835 argv[ii] = PyTuple_GET_ITEM(args,ii);
51838 return _wrap_new_IndexIVFPQ__SWIG_1(
self, args);
51843 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
51844 _v = SWIG_CheckState(res);
51847 int res = SWIG_AsVal_size_t(argv[1], NULL);
51848 _v = SWIG_CheckState(res);
51852 int res = SWIG_AsVal_size_t(argv[2], NULL);
51853 _v = SWIG_CheckState(res);
51857 int res = SWIG_AsVal_size_t(argv[3], NULL);
51858 _v = SWIG_CheckState(res);
51862 int res = SWIG_AsVal_size_t(argv[4], NULL);
51863 _v = SWIG_CheckState(res);
51866 return _wrap_new_IndexIVFPQ__SWIG_0(
self, args);
51875 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexIVFPQ'.\n"
51876 " Possible C/C++ prototypes are:\n"
51877 " faiss::IndexIVFPQ::IndexIVFPQ(faiss::Index *,size_t,size_t,size_t,size_t)\n"
51878 " faiss::IndexIVFPQ::IndexIVFPQ()\n");
51883 SWIGINTERN PyObject *_wrap_delete_IndexIVFPQ(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51884 PyObject *resultobj = 0;
51888 PyObject * obj0 = 0 ;
51890 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVFPQ",&obj0)) SWIG_fail;
51891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, SWIG_POINTER_DISOWN | 0 );
51892 if (!SWIG_IsOK(res1)) {
51893 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVFPQ" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51897 resultobj = SWIG_Py_Void();
51904 SWIGINTERN PyObject *IndexIVFPQ_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51906 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
51907 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVFPQ, SWIG_NewClientData(obj));
51908 return SWIG_Py_Void();
51911 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_nrefine_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51912 PyObject *resultobj = 0;
51919 PyObject * obj0 = 0 ;
51920 PyObject * obj1 = 0 ;
51922 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQStats_nrefine_set",&obj0,&obj1)) SWIG_fail;
51923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
51924 if (!SWIG_IsOK(res1)) {
51925 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_nrefine_set" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
51928 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51929 if (!SWIG_IsOK(ecode2)) {
51930 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQStats_nrefine_set" "', argument " "2"" of type '" "size_t""'");
51932 arg2 =
static_cast< size_t >(val2);
51933 if (arg1) (arg1)->nrefine = arg2;
51934 resultobj = SWIG_Py_Void();
51941 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_nrefine_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51942 PyObject *resultobj = 0;
51946 PyObject * obj0 = 0 ;
51949 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQStats_nrefine_get",&obj0)) SWIG_fail;
51950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
51951 if (!SWIG_IsOK(res1)) {
51952 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_nrefine_get" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
51955 result = (size_t) ((arg1)->nrefine);
51956 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
51963 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_n_hamming_pass_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51964 PyObject *resultobj = 0;
51971 PyObject * obj0 = 0 ;
51972 PyObject * obj1 = 0 ;
51974 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQStats_n_hamming_pass_set",&obj0,&obj1)) SWIG_fail;
51975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
51976 if (!SWIG_IsOK(res1)) {
51977 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_n_hamming_pass_set" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
51980 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51981 if (!SWIG_IsOK(ecode2)) {
51982 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQStats_n_hamming_pass_set" "', argument " "2"" of type '" "size_t""'");
51984 arg2 =
static_cast< size_t >(val2);
51985 if (arg1) (arg1)->n_hamming_pass = arg2;
51986 resultobj = SWIG_Py_Void();
51993 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_n_hamming_pass_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51994 PyObject *resultobj = 0;
51998 PyObject * obj0 = 0 ;
52001 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQStats_n_hamming_pass_get",&obj0)) SWIG_fail;
52002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
52003 if (!SWIG_IsOK(res1)) {
52004 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_n_hamming_pass_get" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
52007 result = (size_t) ((arg1)->n_hamming_pass);
52008 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
52015 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_search_cycles_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52016 PyObject *resultobj = 0;
52023 PyObject * obj0 = 0 ;
52024 PyObject * obj1 = 0 ;
52026 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQStats_search_cycles_set",&obj0,&obj1)) SWIG_fail;
52027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
52028 if (!SWIG_IsOK(res1)) {
52029 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_search_cycles_set" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
52032 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
52033 if (!SWIG_IsOK(ecode2)) {
52034 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQStats_search_cycles_set" "', argument " "2"" of type '" "size_t""'");
52036 arg2 =
static_cast< size_t >(val2);
52037 if (arg1) (arg1)->search_cycles = arg2;
52038 resultobj = SWIG_Py_Void();
52045 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_search_cycles_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52046 PyObject *resultobj = 0;
52050 PyObject * obj0 = 0 ;
52053 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQStats_search_cycles_get",&obj0)) SWIG_fail;
52054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
52055 if (!SWIG_IsOK(res1)) {
52056 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_search_cycles_get" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
52059 result = (size_t) ((arg1)->search_cycles);
52060 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
52067 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_refine_cycles_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52068 PyObject *resultobj = 0;
52075 PyObject * obj0 = 0 ;
52076 PyObject * obj1 = 0 ;
52078 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQStats_refine_cycles_set",&obj0,&obj1)) SWIG_fail;
52079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
52080 if (!SWIG_IsOK(res1)) {
52081 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_refine_cycles_set" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
52084 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
52085 if (!SWIG_IsOK(ecode2)) {
52086 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQStats_refine_cycles_set" "', argument " "2"" of type '" "size_t""'");
52088 arg2 =
static_cast< size_t >(val2);
52089 if (arg1) (arg1)->refine_cycles = arg2;
52090 resultobj = SWIG_Py_Void();
52097 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_refine_cycles_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52098 PyObject *resultobj = 0;
52102 PyObject * obj0 = 0 ;
52105 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQStats_refine_cycles_get",&obj0)) SWIG_fail;
52106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
52107 if (!SWIG_IsOK(res1)) {
52108 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_refine_cycles_get" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
52111 result = (size_t) ((arg1)->refine_cycles);
52112 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
52119 SWIGINTERN PyObject *_wrap_new_IndexIVFPQStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52120 PyObject *resultobj = 0;
52123 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIVFPQStats")) SWIG_fail;
52125 Py_BEGIN_ALLOW_THREADS
52129 PyEval_RestoreThread(_save);
52130 PyErr_SetString(PyExc_RuntimeError, e.
what());
52133 Py_END_ALLOW_THREADS
52135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFPQStats, SWIG_POINTER_NEW | 0 );
52142 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52143 PyObject *resultobj = 0;
52147 PyObject * obj0 = 0 ;
52149 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQStats_reset",&obj0)) SWIG_fail;
52150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
52151 if (!SWIG_IsOK(res1)) {
52152 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_reset" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
52156 Py_BEGIN_ALLOW_THREADS
52160 PyEval_RestoreThread(_save);
52161 PyErr_SetString(PyExc_RuntimeError, e.
what());
52164 Py_END_ALLOW_THREADS
52166 resultobj = SWIG_Py_Void();
52173 SWIGINTERN PyObject *_wrap_delete_IndexIVFPQStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52174 PyObject *resultobj = 0;
52178 PyObject * obj0 = 0 ;
52180 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVFPQStats",&obj0)) SWIG_fail;
52181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, SWIG_POINTER_DISOWN | 0 );
52182 if (!SWIG_IsOK(res1)) {
52183 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVFPQStats" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
52187 resultobj = SWIG_Py_Void();
52194 SWIGINTERN PyObject *IndexIVFPQStats_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52196 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
52197 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVFPQStats, SWIG_NewClientData(obj));
52198 return SWIG_Py_Void();
52201 SWIGINTERN
int Swig_var_indexIVFPQ_stats_set(PyObject *_val) {
52204 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0);
52205 if (!SWIG_IsOK(res)) {
52206 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""faiss::indexIVFPQ_stats""' of type '""faiss::IndexIVFPQStats""'");
52209 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""faiss::indexIVFPQ_stats""' of type '""faiss::IndexIVFPQStats""'");
52213 faiss::indexIVFPQ_stats = *temp;
52214 if (SWIG_IsNewObj(res))
delete temp;
52223 SWIGINTERN PyObject *Swig_var_indexIVFPQ_stats_get(
void) {
52224 PyObject *pyobj = 0;
52226 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&faiss::indexIVFPQ_stats), SWIGTYPE_p_faiss__IndexIVFPQStats, 0 );
52231 SWIGINTERN PyObject *_wrap_IndexIVFPQR_refine_pq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52232 PyObject *resultobj = 0;
52239 PyObject * obj0 = 0 ;
52240 PyObject * obj1 = 0 ;
52242 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQR_refine_pq_set",&obj0,&obj1)) SWIG_fail;
52243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
52244 if (!SWIG_IsOK(res1)) {
52245 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_refine_pq_set" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
52248 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
52249 if (!SWIG_IsOK(res2)) {
52250 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQR_refine_pq_set" "', argument " "2"" of type '" "faiss::ProductQuantizer *""'");
52253 if (arg1) (arg1)->refine_pq = *arg2;
52254 resultobj = SWIG_Py_Void();
52261 SWIGINTERN PyObject *_wrap_IndexIVFPQR_refine_pq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52262 PyObject *resultobj = 0;
52266 PyObject * obj0 = 0 ;
52269 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQR_refine_pq_get",&obj0)) SWIG_fail;
52270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
52271 if (!SWIG_IsOK(res1)) {
52272 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_refine_pq_get" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
52276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
52283 SWIGINTERN PyObject *_wrap_IndexIVFPQR_refine_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52284 PyObject *resultobj = 0;
52286 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
52291 PyObject * obj0 = 0 ;
52292 PyObject * obj1 = 0 ;
52294 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQR_refine_codes_set",&obj0,&obj1)) SWIG_fail;
52295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
52296 if (!SWIG_IsOK(res1)) {
52297 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_refine_codes_set" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
52300 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
52301 if (!SWIG_IsOK(res2)) {
52302 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQR_refine_codes_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
52304 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
52305 if (arg1) (arg1)->refine_codes = *arg2;
52306 resultobj = SWIG_Py_Void();
52313 SWIGINTERN PyObject *_wrap_IndexIVFPQR_refine_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52314 PyObject *resultobj = 0;
52318 PyObject * obj0 = 0 ;
52319 std::vector< uint8_t > *result = 0 ;
52321 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQR_refine_codes_get",&obj0)) SWIG_fail;
52322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
52323 if (!SWIG_IsOK(res1)) {
52324 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_refine_codes_get" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
52327 result = (std::vector< uint8_t > *)& ((arg1)->refine_codes);
52328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
52335 SWIGINTERN PyObject *_wrap_IndexIVFPQR_k_factor_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52336 PyObject *resultobj = 0;
52343 PyObject * obj0 = 0 ;
52344 PyObject * obj1 = 0 ;
52346 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQR_k_factor_set",&obj0,&obj1)) SWIG_fail;
52347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
52348 if (!SWIG_IsOK(res1)) {
52349 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_k_factor_set" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
52352 ecode2 = SWIG_AsVal_float(obj1, &val2);
52353 if (!SWIG_IsOK(ecode2)) {
52354 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_k_factor_set" "', argument " "2"" of type '" "float""'");
52356 arg2 =
static_cast< float >(val2);
52357 if (arg1) (arg1)->k_factor = arg2;
52358 resultobj = SWIG_Py_Void();
52365 SWIGINTERN PyObject *_wrap_IndexIVFPQR_k_factor_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52366 PyObject *resultobj = 0;
52370 PyObject * obj0 = 0 ;
52373 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQR_k_factor_get",&obj0)) SWIG_fail;
52374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
52375 if (!SWIG_IsOK(res1)) {
52376 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_k_factor_get" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
52379 result = (float) ((arg1)->k_factor);
52380 resultobj = SWIG_From_float(static_cast< float >(result));
52387 SWIGINTERN PyObject *_wrap_new_IndexIVFPQR__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52388 PyObject *resultobj = 0;
52410 PyObject * obj0 = 0 ;
52411 PyObject * obj1 = 0 ;
52412 PyObject * obj2 = 0 ;
52413 PyObject * obj3 = 0 ;
52414 PyObject * obj4 = 0 ;
52415 PyObject * obj5 = 0 ;
52416 PyObject * obj6 = 0 ;
52419 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:new_IndexIVFPQR",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
52420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
52421 if (!SWIG_IsOK(res1)) {
52422 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFPQR" "', argument " "1"" of type '" "faiss::Index *""'");
52425 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
52426 if (!SWIG_IsOK(ecode2)) {
52427 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFPQR" "', argument " "2"" of type '" "size_t""'");
52429 arg2 =
static_cast< size_t >(val2);
52430 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
52431 if (!SWIG_IsOK(ecode3)) {
52432 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFPQR" "', argument " "3"" of type '" "size_t""'");
52434 arg3 =
static_cast< size_t >(val3);
52435 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
52436 if (!SWIG_IsOK(ecode4)) {
52437 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexIVFPQR" "', argument " "4"" of type '" "size_t""'");
52439 arg4 =
static_cast< size_t >(val4);
52440 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
52441 if (!SWIG_IsOK(ecode5)) {
52442 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "new_IndexIVFPQR" "', argument " "5"" of type '" "size_t""'");
52444 arg5 =
static_cast< size_t >(val5);
52445 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
52446 if (!SWIG_IsOK(ecode6)) {
52447 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "new_IndexIVFPQR" "', argument " "6"" of type '" "size_t""'");
52449 arg6 =
static_cast< size_t >(val6);
52450 ecode7 = SWIG_AsVal_size_t(obj6, &val7);
52451 if (!SWIG_IsOK(ecode7)) {
52452 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "new_IndexIVFPQR" "', argument " "7"" of type '" "size_t""'");
52454 arg7 =
static_cast< size_t >(val7);
52456 Py_BEGIN_ALLOW_THREADS
52460 PyEval_RestoreThread(_save);
52461 PyErr_SetString(PyExc_RuntimeError, e.
what());
52464 Py_END_ALLOW_THREADS
52466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFPQR, SWIG_POINTER_NEW | 0 );
52473 SWIGINTERN PyObject *_wrap_IndexIVFPQR_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52474 PyObject *resultobj = 0;
52478 PyObject * obj0 = 0 ;
52480 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQR_reset",&obj0)) SWIG_fail;
52481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
52482 if (!SWIG_IsOK(res1)) {
52483 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_reset" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
52487 Py_BEGIN_ALLOW_THREADS
52491 PyEval_RestoreThread(_save);
52492 PyErr_SetString(PyExc_RuntimeError, e.
what());
52495 Py_END_ALLOW_THREADS
52497 resultobj = SWIG_Py_Void();
52504 SWIGINTERN PyObject *_wrap_IndexIVFPQR_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52505 PyObject *resultobj = 0;
52512 PyObject * obj0 = 0 ;
52513 PyObject * obj1 = 0 ;
52516 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQR_remove_ids",&obj0,&obj1)) SWIG_fail;
52517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
52518 if (!SWIG_IsOK(res1)) {
52519 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_remove_ids" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
52522 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
52523 if (!SWIG_IsOK(res2)) {
52524 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQR_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
52527 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVFPQR_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
52531 Py_BEGIN_ALLOW_THREADS
52535 PyEval_RestoreThread(_save);
52536 PyErr_SetString(PyExc_RuntimeError, e.
what());
52539 Py_END_ALLOW_THREADS
52541 resultobj = SWIG_From_long(static_cast< long >(result));
52548 SWIGINTERN PyObject *_wrap_IndexIVFPQR_train_residual(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52549 PyObject *resultobj = 0;
52552 float *arg3 = (
float *) 0 ;
52559 PyObject * obj0 = 0 ;
52560 PyObject * obj1 = 0 ;
52561 PyObject * obj2 = 0 ;
52563 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVFPQR_train_residual",&obj0,&obj1,&obj2)) SWIG_fail;
52564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
52565 if (!SWIG_IsOK(res1)) {
52566 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_train_residual" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
52569 ecode2 = SWIG_AsVal_long(obj1, &val2);
52570 if (!SWIG_IsOK(ecode2)) {
52571 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_train_residual" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
52574 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
52575 if (!SWIG_IsOK(res3)) {
52576 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQR_train_residual" "', argument " "3"" of type '" "float const *""'");
52578 arg3 =
reinterpret_cast< float *
>(argp3);
52580 Py_BEGIN_ALLOW_THREADS
52582 (arg1)->train_residual(arg2,(
float const *)arg3);
52584 PyEval_RestoreThread(_save);
52585 PyErr_SetString(PyExc_RuntimeError, e.
what());
52588 Py_END_ALLOW_THREADS
52590 resultobj = SWIG_Py_Void();
52597 SWIGINTERN PyObject *_wrap_IndexIVFPQR_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52598 PyObject *resultobj = 0;
52601 float *arg3 = (
float *) 0 ;
52602 long *arg4 = (
long *) 0 ;
52611 PyObject * obj0 = 0 ;
52612 PyObject * obj1 = 0 ;
52613 PyObject * obj2 = 0 ;
52614 PyObject * obj3 = 0 ;
52616 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFPQR_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
52617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
52618 if (!SWIG_IsOK(res1)) {
52619 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
52622 ecode2 = SWIG_AsVal_long(obj1, &val2);
52623 if (!SWIG_IsOK(ecode2)) {
52624 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
52627 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
52628 if (!SWIG_IsOK(res3)) {
52629 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQR_add_with_ids" "', argument " "3"" of type '" "float const *""'");
52631 arg3 =
reinterpret_cast< float *
>(argp3);
52632 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
52633 if (!SWIG_IsOK(res4)) {
52634 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQR_add_with_ids" "', argument " "4"" of type '" "long const *""'");
52636 arg4 =
reinterpret_cast< long *
>(argp4);
52638 Py_BEGIN_ALLOW_THREADS
52640 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
52642 PyEval_RestoreThread(_save);
52643 PyErr_SetString(PyExc_RuntimeError, e.
what());
52646 Py_END_ALLOW_THREADS
52648 resultobj = SWIG_Py_Void();
52655 SWIGINTERN PyObject *_wrap_IndexIVFPQR_add_core__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52656 PyObject *resultobj = 0;
52659 float *arg3 = (
float *) 0 ;
52660 long *arg4 = (
long *) 0 ;
52661 long *arg5 = (
long *) 0 ;
52672 PyObject * obj0 = 0 ;
52673 PyObject * obj1 = 0 ;
52674 PyObject * obj2 = 0 ;
52675 PyObject * obj3 = 0 ;
52676 PyObject * obj4 = 0 ;
52678 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFPQR_add_core",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
52679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
52680 if (!SWIG_IsOK(res1)) {
52681 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_add_core" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
52684 ecode2 = SWIG_AsVal_long(obj1, &val2);
52685 if (!SWIG_IsOK(ecode2)) {
52686 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_add_core" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
52689 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
52690 if (!SWIG_IsOK(res3)) {
52691 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQR_add_core" "', argument " "3"" of type '" "float const *""'");
52693 arg3 =
reinterpret_cast< float *
>(argp3);
52694 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
52695 if (!SWIG_IsOK(res4)) {
52696 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQR_add_core" "', argument " "4"" of type '" "long const *""'");
52698 arg4 =
reinterpret_cast< long *
>(argp4);
52699 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
52700 if (!SWIG_IsOK(res5)) {
52701 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQR_add_core" "', argument " "5"" of type '" "long const *""'");
52703 arg5 =
reinterpret_cast< long *
>(argp5);
52705 Py_BEGIN_ALLOW_THREADS
52707 (arg1)->add_core(arg2,(
float const *)arg3,(
long const *)arg4,(
long const *)arg5);
52708 } catch(faiss::FaissException & e) {
52709 PyEval_RestoreThread(_save);
52710 PyErr_SetString(PyExc_RuntimeError, e.what());
52713 Py_END_ALLOW_THREADS
52715 resultobj = SWIG_Py_Void();
52722 SWIGINTERN PyObject *_wrap_IndexIVFPQR_add_core__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52723 PyObject *resultobj = 0;
52726 float *arg3 = (
float *) 0 ;
52727 long *arg4 = (
long *) 0 ;
52736 PyObject * obj0 = 0 ;
52737 PyObject * obj1 = 0 ;
52738 PyObject * obj2 = 0 ;
52739 PyObject * obj3 = 0 ;
52741 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFPQR_add_core",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
52742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
52743 if (!SWIG_IsOK(res1)) {
52744 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_add_core" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
52747 ecode2 = SWIG_AsVal_long(obj1, &val2);
52748 if (!SWIG_IsOK(ecode2)) {
52749 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_add_core" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
52752 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
52753 if (!SWIG_IsOK(res3)) {
52754 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQR_add_core" "', argument " "3"" of type '" "float const *""'");
52756 arg3 =
reinterpret_cast< float *
>(argp3);
52757 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
52758 if (!SWIG_IsOK(res4)) {
52759 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQR_add_core" "', argument " "4"" of type '" "long const *""'");
52761 arg4 =
reinterpret_cast< long *
>(argp4);
52763 Py_BEGIN_ALLOW_THREADS
52765 (arg1)->add_core(arg2,(
float const *)arg3,(
long const *)arg4);
52767 PyEval_RestoreThread(_save);
52768 PyErr_SetString(PyExc_RuntimeError, e.
what());
52771 Py_END_ALLOW_THREADS
52773 resultobj = SWIG_Py_Void();
52780 SWIGINTERN PyObject *_wrap_IndexIVFPQR_add_core(PyObject *
self, PyObject *args) {
52782 PyObject *argv[6] = {
52787 if (!PyTuple_Check(args)) SWIG_fail;
52788 argc = args ? PyObject_Length(args) : 0;
52789 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
52790 argv[ii] = PyTuple_GET_ITEM(args,ii);
52795 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQR, 0);
52796 _v = SWIG_CheckState(res);
52799 int res = SWIG_AsVal_long(argv[1], NULL);
52800 _v = SWIG_CheckState(res);
52804 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
52805 _v = SWIG_CheckState(res);
52808 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
52809 _v = SWIG_CheckState(res);
52811 return _wrap_IndexIVFPQR_add_core__SWIG_1(
self, args);
52820 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQR, 0);
52821 _v = SWIG_CheckState(res);
52824 int res = SWIG_AsVal_long(argv[1], NULL);
52825 _v = SWIG_CheckState(res);
52829 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
52830 _v = SWIG_CheckState(res);
52833 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
52834 _v = SWIG_CheckState(res);
52837 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
52838 _v = SWIG_CheckState(res);
52840 return _wrap_IndexIVFPQR_add_core__SWIG_0(
self, args);
52849 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVFPQR_add_core'.\n"
52850 " Possible C/C++ prototypes are:\n"
52851 " faiss::IndexIVFPQR::add_core(faiss::Index::idx_t,float const *,long const *,long const *)\n"
52852 " faiss::IndexIVFPQR::add_core(faiss::Index::idx_t,float const *,long const *)\n");
52857 SWIGINTERN PyObject *_wrap_IndexIVFPQR_reconstruct_from_offset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52858 PyObject *resultobj = 0;
52862 float *arg4 = (
float *) 0 ;
52871 PyObject * obj0 = 0 ;
52872 PyObject * obj1 = 0 ;
52873 PyObject * obj2 = 0 ;
52874 PyObject * obj3 = 0 ;
52876 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFPQR_reconstruct_from_offset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
52877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
52878 if (!SWIG_IsOK(res1)) {
52879 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_reconstruct_from_offset" "', argument " "1"" of type '" "faiss::IndexIVFPQR const *""'");
52882 ecode2 = SWIG_AsVal_long(obj1, &val2);
52883 if (!SWIG_IsOK(ecode2)) {
52884 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_reconstruct_from_offset" "', argument " "2"" of type '" "long""'");
52886 arg2 =
static_cast< long >(val2);
52887 ecode3 = SWIG_AsVal_long(obj2, &val3);
52888 if (!SWIG_IsOK(ecode3)) {
52889 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVFPQR_reconstruct_from_offset" "', argument " "3"" of type '" "long""'");
52891 arg3 =
static_cast< long >(val3);
52892 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
52893 if (!SWIG_IsOK(res4)) {
52894 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQR_reconstruct_from_offset" "', argument " "4"" of type '" "float *""'");
52896 arg4 =
reinterpret_cast< float *
>(argp4);
52898 Py_BEGIN_ALLOW_THREADS
52902 PyEval_RestoreThread(_save);
52903 PyErr_SetString(PyExc_RuntimeError, e.
what());
52906 Py_END_ALLOW_THREADS
52908 resultobj = SWIG_Py_Void();
52915 SWIGINTERN PyObject *_wrap_IndexIVFPQR_merge_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52916 PyObject *resultobj = 0;
52926 PyObject * obj0 = 0 ;
52927 PyObject * obj1 = 0 ;
52928 PyObject * obj2 = 0 ;
52930 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVFPQR_merge_from",&obj0,&obj1,&obj2)) SWIG_fail;
52931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
52932 if (!SWIG_IsOK(res1)) {
52933 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_merge_from" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
52936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IndexIVF, 0 );
52937 if (!SWIG_IsOK(res2)) {
52938 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQR_merge_from" "', argument " "2"" of type '" "faiss::IndexIVF &""'");
52941 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVFPQR_merge_from" "', argument " "2"" of type '" "faiss::IndexIVF &""'");
52944 ecode3 = SWIG_AsVal_long(obj2, &val3);
52945 if (!SWIG_IsOK(ecode3)) {
52946 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVFPQR_merge_from" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
52950 Py_BEGIN_ALLOW_THREADS
52952 (arg1)->merge_from(*arg2,arg3);
52954 PyEval_RestoreThread(_save);
52955 PyErr_SetString(PyExc_RuntimeError, e.
what());
52958 Py_END_ALLOW_THREADS
52960 resultobj = SWIG_Py_Void();
52967 SWIGINTERN PyObject *_wrap_IndexIVFPQR_search_preassigned__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52968 PyObject *resultobj = 0;
52971 float *arg3 = (
float *) 0 ;
52974 float *arg6 = (
float *) 0 ;
52975 float *arg7 = (
float *) 0 ;
52999 PyObject * obj0 = 0 ;
53000 PyObject * obj1 = 0 ;
53001 PyObject * obj2 = 0 ;
53002 PyObject * obj3 = 0 ;
53003 PyObject * obj4 = 0 ;
53004 PyObject * obj5 = 0 ;
53005 PyObject * obj6 = 0 ;
53006 PyObject * obj7 = 0 ;
53007 PyObject * obj8 = 0 ;
53008 PyObject * obj9 = 0 ;
53010 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOOO:IndexIVFPQR_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
53011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
53012 if (!SWIG_IsOK(res1)) {
53013 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "1"" of type '" "faiss::IndexIVFPQR const *""'");
53016 ecode2 = SWIG_AsVal_long(obj1, &val2);
53017 if (!SWIG_IsOK(ecode2)) {
53018 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
53021 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
53022 if (!SWIG_IsOK(res3)) {
53023 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "3"" of type '" "float const *""'");
53025 arg3 =
reinterpret_cast< float *
>(argp3);
53026 ecode4 = SWIG_AsVal_long(obj3, &val4);
53027 if (!SWIG_IsOK(ecode4)) {
53028 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
53031 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
53032 if (!SWIG_IsOK(res5)) {
53033 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "5"" of type '" "faiss::Index::idx_t const *""'");
53036 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
53037 if (!SWIG_IsOK(res6)) {
53038 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "6"" of type '" "float const *""'");
53040 arg6 =
reinterpret_cast< float *
>(argp6);
53041 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
53042 if (!SWIG_IsOK(res7)) {
53043 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "7"" of type '" "float *""'");
53045 arg7 =
reinterpret_cast< float *
>(argp7);
53046 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
53047 if (!SWIG_IsOK(res8)) {
53048 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
53051 ecode9 = SWIG_AsVal_bool(obj8, &val9);
53052 if (!SWIG_IsOK(ecode9)) {
53053 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "9"" of type '" "bool""'");
53055 arg9 =
static_cast< bool >(val9);
53056 res10 = SWIG_ConvertPtr(obj9, &argp10,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
53057 if (!SWIG_IsOK(res10)) {
53058 SWIG_exception_fail(SWIG_ArgError(res10),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "10"" of type '" "faiss::IVFSearchParameters const *""'");
53062 Py_BEGIN_ALLOW_THREADS
53066 PyEval_RestoreThread(_save);
53067 PyErr_SetString(PyExc_RuntimeError, e.
what());
53070 Py_END_ALLOW_THREADS
53072 resultobj = SWIG_Py_Void();
53079 SWIGINTERN PyObject *_wrap_IndexIVFPQR_search_preassigned__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53080 PyObject *resultobj = 0;
53083 float *arg3 = (
float *) 0 ;
53086 float *arg6 = (
float *) 0 ;
53087 float *arg7 = (
float *) 0 ;
53108 PyObject * obj0 = 0 ;
53109 PyObject * obj1 = 0 ;
53110 PyObject * obj2 = 0 ;
53111 PyObject * obj3 = 0 ;
53112 PyObject * obj4 = 0 ;
53113 PyObject * obj5 = 0 ;
53114 PyObject * obj6 = 0 ;
53115 PyObject * obj7 = 0 ;
53116 PyObject * obj8 = 0 ;
53118 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOO:IndexIVFPQR_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
53119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
53120 if (!SWIG_IsOK(res1)) {
53121 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "1"" of type '" "faiss::IndexIVFPQR const *""'");
53124 ecode2 = SWIG_AsVal_long(obj1, &val2);
53125 if (!SWIG_IsOK(ecode2)) {
53126 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
53129 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
53130 if (!SWIG_IsOK(res3)) {
53131 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "3"" of type '" "float const *""'");
53133 arg3 =
reinterpret_cast< float *
>(argp3);
53134 ecode4 = SWIG_AsVal_long(obj3, &val4);
53135 if (!SWIG_IsOK(ecode4)) {
53136 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
53139 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
53140 if (!SWIG_IsOK(res5)) {
53141 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "5"" of type '" "faiss::Index::idx_t const *""'");
53144 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
53145 if (!SWIG_IsOK(res6)) {
53146 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "6"" of type '" "float const *""'");
53148 arg6 =
reinterpret_cast< float *
>(argp6);
53149 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
53150 if (!SWIG_IsOK(res7)) {
53151 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "7"" of type '" "float *""'");
53153 arg7 =
reinterpret_cast< float *
>(argp7);
53154 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
53155 if (!SWIG_IsOK(res8)) {
53156 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
53159 ecode9 = SWIG_AsVal_bool(obj8, &val9);
53160 if (!SWIG_IsOK(ecode9)) {
53161 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "9"" of type '" "bool""'");
53163 arg9 =
static_cast< bool >(val9);
53165 Py_BEGIN_ALLOW_THREADS
53169 PyEval_RestoreThread(_save);
53170 PyErr_SetString(PyExc_RuntimeError, e.
what());
53173 Py_END_ALLOW_THREADS
53175 resultobj = SWIG_Py_Void();
53182 SWIGINTERN PyObject *_wrap_IndexIVFPQR_search_preassigned(PyObject *
self, PyObject *args) {
53184 PyObject *argv[11] = {
53189 if (!PyTuple_Check(args)) SWIG_fail;
53190 argc = args ? PyObject_Length(args) : 0;
53191 for (ii = 0; (ii < 10) && (ii < argc); ii++) {
53192 argv[ii] = PyTuple_GET_ITEM(args,ii);
53197 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQR, 0);
53198 _v = SWIG_CheckState(res);
53201 int res = SWIG_AsVal_long(argv[1], NULL);
53202 _v = SWIG_CheckState(res);
53206 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
53207 _v = SWIG_CheckState(res);
53210 int res = SWIG_AsVal_long(argv[3], NULL);
53211 _v = SWIG_CheckState(res);
53215 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
53216 _v = SWIG_CheckState(res);
53219 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
53220 _v = SWIG_CheckState(res);
53223 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
53224 _v = SWIG_CheckState(res);
53227 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
53228 _v = SWIG_CheckState(res);
53231 int res = SWIG_AsVal_bool(argv[8], NULL);
53232 _v = SWIG_CheckState(res);
53235 return _wrap_IndexIVFPQR_search_preassigned__SWIG_1(
self, args);
53249 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQR, 0);
53250 _v = SWIG_CheckState(res);
53253 int res = SWIG_AsVal_long(argv[1], NULL);
53254 _v = SWIG_CheckState(res);
53258 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
53259 _v = SWIG_CheckState(res);
53262 int res = SWIG_AsVal_long(argv[3], NULL);
53263 _v = SWIG_CheckState(res);
53267 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
53268 _v = SWIG_CheckState(res);
53271 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
53272 _v = SWIG_CheckState(res);
53275 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
53276 _v = SWIG_CheckState(res);
53279 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
53280 _v = SWIG_CheckState(res);
53283 int res = SWIG_AsVal_bool(argv[8], NULL);
53284 _v = SWIG_CheckState(res);
53288 int res = SWIG_ConvertPtr(argv[9], &vptr, SWIGTYPE_p_faiss__IVFSearchParameters, 0);
53289 _v = SWIG_CheckState(res);
53291 return _wrap_IndexIVFPQR_search_preassigned__SWIG_0(
self, args);
53305 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVFPQR_search_preassigned'.\n"
53306 " Possible C/C++ prototypes are:\n"
53307 " faiss::IndexIVFPQR::search_preassigned(faiss::Index::idx_t,float const *,faiss::Index::idx_t,faiss::Index::idx_t const *,float const *,float *,faiss::Index::idx_t *,bool,faiss::IVFSearchParameters const *) const\n"
53308 " faiss::IndexIVFPQR::search_preassigned(faiss::Index::idx_t,float const *,faiss::Index::idx_t,faiss::Index::idx_t const *,float const *,float *,faiss::Index::idx_t *,bool) const\n");
53313 SWIGINTERN PyObject *_wrap_new_IndexIVFPQR__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53314 PyObject *resultobj = 0;
53317 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIVFPQR")) SWIG_fail;
53319 Py_BEGIN_ALLOW_THREADS
53323 PyEval_RestoreThread(_save);
53324 PyErr_SetString(PyExc_RuntimeError, e.
what());
53327 Py_END_ALLOW_THREADS
53329 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFPQR, SWIG_POINTER_NEW | 0 );
53336 SWIGINTERN PyObject *_wrap_new_IndexIVFPQR(PyObject *
self, PyObject *args) {
53338 PyObject *argv[8] = {
53343 if (!PyTuple_Check(args)) SWIG_fail;
53344 argc = args ? PyObject_Length(args) : 0;
53345 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
53346 argv[ii] = PyTuple_GET_ITEM(args,ii);
53349 return _wrap_new_IndexIVFPQR__SWIG_1(
self, args);
53354 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
53355 _v = SWIG_CheckState(res);
53358 int res = SWIG_AsVal_size_t(argv[1], NULL);
53359 _v = SWIG_CheckState(res);
53363 int res = SWIG_AsVal_size_t(argv[2], NULL);
53364 _v = SWIG_CheckState(res);
53368 int res = SWIG_AsVal_size_t(argv[3], NULL);
53369 _v = SWIG_CheckState(res);
53373 int res = SWIG_AsVal_size_t(argv[4], NULL);
53374 _v = SWIG_CheckState(res);
53378 int res = SWIG_AsVal_size_t(argv[5], NULL);
53379 _v = SWIG_CheckState(res);
53383 int res = SWIG_AsVal_size_t(argv[6], NULL);
53384 _v = SWIG_CheckState(res);
53387 return _wrap_new_IndexIVFPQR__SWIG_0(
self, args);
53398 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexIVFPQR'.\n"
53399 " Possible C/C++ prototypes are:\n"
53400 " faiss::IndexIVFPQR::IndexIVFPQR(faiss::Index *,size_t,size_t,size_t,size_t,size_t,size_t)\n"
53401 " faiss::IndexIVFPQR::IndexIVFPQR()\n");
53406 SWIGINTERN PyObject *_wrap_delete_IndexIVFPQR(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53407 PyObject *resultobj = 0;
53411 PyObject * obj0 = 0 ;
53413 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVFPQR",&obj0)) SWIG_fail;
53414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, SWIG_POINTER_DISOWN | 0 );
53415 if (!SWIG_IsOK(res1)) {
53416 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVFPQR" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
53420 resultobj = SWIG_Py_Void();
53427 SWIGINTERN PyObject *IndexIVFPQR_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53429 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
53430 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVFPQR, SWIG_NewClientData(obj));
53431 return SWIG_Py_Void();
53434 SWIGINTERN PyObject *_wrap_Index2Layer_q1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53435 PyObject *resultobj = 0;
53442 PyObject * obj0 = 0 ;
53443 PyObject * obj1 = 0 ;
53445 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index2Layer_q1_set",&obj0,&obj1)) SWIG_fail;
53446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
53447 if (!SWIG_IsOK(res1)) {
53448 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_q1_set" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
53451 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
53452 if (!SWIG_IsOK(res2)) {
53453 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Index2Layer_q1_set" "', argument " "2"" of type '" "faiss::Level1Quantizer *""'");
53456 if (arg1) (arg1)->q1 = *arg2;
53457 resultobj = SWIG_Py_Void();
53464 SWIGINTERN PyObject *_wrap_Index2Layer_q1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53465 PyObject *resultobj = 0;
53469 PyObject * obj0 = 0 ;
53472 if (!PyArg_ParseTuple(args,(
char *)
"O:Index2Layer_q1_get",&obj0)) SWIG_fail;
53473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
53474 if (!SWIG_IsOK(res1)) {
53475 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_q1_get" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
53479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
53486 SWIGINTERN PyObject *_wrap_Index2Layer_pq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53487 PyObject *resultobj = 0;
53494 PyObject * obj0 = 0 ;
53495 PyObject * obj1 = 0 ;
53497 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index2Layer_pq_set",&obj0,&obj1)) SWIG_fail;
53498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
53499 if (!SWIG_IsOK(res1)) {
53500 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_pq_set" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
53503 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
53504 if (!SWIG_IsOK(res2)) {
53505 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Index2Layer_pq_set" "', argument " "2"" of type '" "faiss::ProductQuantizer *""'");
53508 if (arg1) (arg1)->pq = *arg2;
53509 resultobj = SWIG_Py_Void();
53516 SWIGINTERN PyObject *_wrap_Index2Layer_pq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53517 PyObject *resultobj = 0;
53521 PyObject * obj0 = 0 ;
53524 if (!PyArg_ParseTuple(args,(
char *)
"O:Index2Layer_pq_get",&obj0)) SWIG_fail;
53525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
53526 if (!SWIG_IsOK(res1)) {
53527 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_pq_get" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
53531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
53538 SWIGINTERN PyObject *_wrap_Index2Layer_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53539 PyObject *resultobj = 0;
53541 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
53546 PyObject * obj0 = 0 ;
53547 PyObject * obj1 = 0 ;
53549 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index2Layer_codes_set",&obj0,&obj1)) SWIG_fail;
53550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
53551 if (!SWIG_IsOK(res1)) {
53552 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_codes_set" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
53555 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
53556 if (!SWIG_IsOK(res2)) {
53557 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Index2Layer_codes_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
53559 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
53560 if (arg1) (arg1)->codes = *arg2;
53561 resultobj = SWIG_Py_Void();
53568 SWIGINTERN PyObject *_wrap_Index2Layer_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53569 PyObject *resultobj = 0;
53573 PyObject * obj0 = 0 ;
53574 std::vector< uint8_t > *result = 0 ;
53576 if (!PyArg_ParseTuple(args,(
char *)
"O:Index2Layer_codes_get",&obj0)) SWIG_fail;
53577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
53578 if (!SWIG_IsOK(res1)) {
53579 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_codes_get" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
53582 result = (std::vector< uint8_t > *)& ((arg1)->codes);
53583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
53590 SWIGINTERN PyObject *_wrap_Index2Layer_code_size_1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53591 PyObject *resultobj = 0;
53598 PyObject * obj0 = 0 ;
53599 PyObject * obj1 = 0 ;
53601 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index2Layer_code_size_1_set",&obj0,&obj1)) SWIG_fail;
53602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
53603 if (!SWIG_IsOK(res1)) {
53604 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_code_size_1_set" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
53607 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
53608 if (!SWIG_IsOK(ecode2)) {
53609 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_code_size_1_set" "', argument " "2"" of type '" "size_t""'");
53611 arg2 =
static_cast< size_t >(val2);
53612 if (arg1) (arg1)->code_size_1 = arg2;
53613 resultobj = SWIG_Py_Void();
53620 SWIGINTERN PyObject *_wrap_Index2Layer_code_size_1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53621 PyObject *resultobj = 0;
53625 PyObject * obj0 = 0 ;
53628 if (!PyArg_ParseTuple(args,(
char *)
"O:Index2Layer_code_size_1_get",&obj0)) SWIG_fail;
53629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
53630 if (!SWIG_IsOK(res1)) {
53631 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_code_size_1_get" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
53634 result = (size_t) ((arg1)->code_size_1);
53635 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
53642 SWIGINTERN PyObject *_wrap_Index2Layer_code_size_2_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53643 PyObject *resultobj = 0;
53650 PyObject * obj0 = 0 ;
53651 PyObject * obj1 = 0 ;
53653 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index2Layer_code_size_2_set",&obj0,&obj1)) SWIG_fail;
53654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
53655 if (!SWIG_IsOK(res1)) {
53656 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_code_size_2_set" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
53659 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
53660 if (!SWIG_IsOK(ecode2)) {
53661 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_code_size_2_set" "', argument " "2"" of type '" "size_t""'");
53663 arg2 =
static_cast< size_t >(val2);
53664 if (arg1) (arg1)->code_size_2 = arg2;
53665 resultobj = SWIG_Py_Void();
53672 SWIGINTERN PyObject *_wrap_Index2Layer_code_size_2_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53673 PyObject *resultobj = 0;
53677 PyObject * obj0 = 0 ;
53680 if (!PyArg_ParseTuple(args,(
char *)
"O:Index2Layer_code_size_2_get",&obj0)) SWIG_fail;
53681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
53682 if (!SWIG_IsOK(res1)) {
53683 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_code_size_2_get" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
53686 result = (size_t) ((arg1)->code_size_2);
53687 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
53694 SWIGINTERN PyObject *_wrap_Index2Layer_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53695 PyObject *resultobj = 0;
53702 PyObject * obj0 = 0 ;
53703 PyObject * obj1 = 0 ;
53705 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index2Layer_code_size_set",&obj0,&obj1)) SWIG_fail;
53706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
53707 if (!SWIG_IsOK(res1)) {
53708 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_code_size_set" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
53711 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
53712 if (!SWIG_IsOK(ecode2)) {
53713 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_code_size_set" "', argument " "2"" of type '" "size_t""'");
53715 arg2 =
static_cast< size_t >(val2);
53716 if (arg1) (arg1)->code_size = arg2;
53717 resultobj = SWIG_Py_Void();
53724 SWIGINTERN PyObject *_wrap_Index2Layer_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53725 PyObject *resultobj = 0;
53729 PyObject * obj0 = 0 ;
53732 if (!PyArg_ParseTuple(args,(
char *)
"O:Index2Layer_code_size_get",&obj0)) SWIG_fail;
53733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
53734 if (!SWIG_IsOK(res1)) {
53735 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_code_size_get" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
53738 result = (size_t) ((arg1)->code_size);
53739 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
53746 SWIGINTERN PyObject *_wrap_new_Index2Layer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53747 PyObject *resultobj = 0;
53760 PyObject * obj0 = 0 ;
53761 PyObject * obj1 = 0 ;
53762 PyObject * obj2 = 0 ;
53763 PyObject * obj3 = 0 ;
53766 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_Index2Layer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
53767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
53768 if (!SWIG_IsOK(res1)) {
53769 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_Index2Layer" "', argument " "1"" of type '" "faiss::Index *""'");
53772 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
53773 if (!SWIG_IsOK(ecode2)) {
53774 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_Index2Layer" "', argument " "2"" of type '" "size_t""'");
53776 arg2 =
static_cast< size_t >(val2);
53777 ecode3 = SWIG_AsVal_int(obj2, &val3);
53778 if (!SWIG_IsOK(ecode3)) {
53779 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_Index2Layer" "', argument " "3"" of type '" "int""'");
53781 arg3 =
static_cast< int >(val3);
53782 ecode4 = SWIG_AsVal_int(obj3, &val4);
53783 if (!SWIG_IsOK(ecode4)) {
53784 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_Index2Layer" "', argument " "4"" of type '" "faiss::MetricType""'");
53788 Py_BEGIN_ALLOW_THREADS
53792 PyEval_RestoreThread(_save);
53793 PyErr_SetString(PyExc_RuntimeError, e.
what());
53796 Py_END_ALLOW_THREADS
53798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index2Layer, SWIG_POINTER_NEW | 0 );
53805 SWIGINTERN PyObject *_wrap_new_Index2Layer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53806 PyObject *resultobj = 0;
53816 PyObject * obj0 = 0 ;
53817 PyObject * obj1 = 0 ;
53818 PyObject * obj2 = 0 ;
53821 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_Index2Layer",&obj0,&obj1,&obj2)) SWIG_fail;
53822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
53823 if (!SWIG_IsOK(res1)) {
53824 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_Index2Layer" "', argument " "1"" of type '" "faiss::Index *""'");
53827 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
53828 if (!SWIG_IsOK(ecode2)) {
53829 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_Index2Layer" "', argument " "2"" of type '" "size_t""'");
53831 arg2 =
static_cast< size_t >(val2);
53832 ecode3 = SWIG_AsVal_int(obj2, &val3);
53833 if (!SWIG_IsOK(ecode3)) {
53834 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_Index2Layer" "', argument " "3"" of type '" "int""'");
53836 arg3 =
static_cast< int >(val3);
53838 Py_BEGIN_ALLOW_THREADS
53842 PyEval_RestoreThread(_save);
53843 PyErr_SetString(PyExc_RuntimeError, e.
what());
53846 Py_END_ALLOW_THREADS
53848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index2Layer, SWIG_POINTER_NEW | 0 );
53855 SWIGINTERN PyObject *_wrap_new_Index2Layer__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53856 PyObject *resultobj = 0;
53859 if (!PyArg_ParseTuple(args,(
char *)
":new_Index2Layer")) SWIG_fail;
53861 Py_BEGIN_ALLOW_THREADS
53865 PyEval_RestoreThread(_save);
53866 PyErr_SetString(PyExc_RuntimeError, e.
what());
53869 Py_END_ALLOW_THREADS
53871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index2Layer, SWIG_POINTER_NEW | 0 );
53878 SWIGINTERN PyObject *_wrap_new_Index2Layer(PyObject *
self, PyObject *args) {
53880 PyObject *argv[5] = {
53885 if (!PyTuple_Check(args)) SWIG_fail;
53886 argc = args ? PyObject_Length(args) : 0;
53887 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
53888 argv[ii] = PyTuple_GET_ITEM(args,ii);
53891 return _wrap_new_Index2Layer__SWIG_2(
self, args);
53896 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
53897 _v = SWIG_CheckState(res);
53900 int res = SWIG_AsVal_size_t(argv[1], NULL);
53901 _v = SWIG_CheckState(res);
53905 int res = SWIG_AsVal_int(argv[2], NULL);
53906 _v = SWIG_CheckState(res);
53909 return _wrap_new_Index2Layer__SWIG_1(
self, args);
53917 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
53918 _v = SWIG_CheckState(res);
53921 int res = SWIG_AsVal_size_t(argv[1], NULL);
53922 _v = SWIG_CheckState(res);
53926 int res = SWIG_AsVal_int(argv[2], NULL);
53927 _v = SWIG_CheckState(res);
53931 int res = SWIG_AsVal_int(argv[3], NULL);
53932 _v = SWIG_CheckState(res);
53935 return _wrap_new_Index2Layer__SWIG_0(
self, args);
53943 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_Index2Layer'.\n"
53944 " Possible C/C++ prototypes are:\n"
53945 " faiss::Index2Layer::Index2Layer(faiss::Index *,size_t,int,faiss::MetricType)\n"
53946 " faiss::Index2Layer::Index2Layer(faiss::Index *,size_t,int)\n"
53947 " faiss::Index2Layer::Index2Layer()\n");
53952 SWIGINTERN PyObject *_wrap_delete_Index2Layer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53953 PyObject *resultobj = 0;
53957 PyObject * obj0 = 0 ;
53959 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Index2Layer",&obj0)) SWIG_fail;
53960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, SWIG_POINTER_DISOWN | 0 );
53961 if (!SWIG_IsOK(res1)) {
53962 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Index2Layer" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
53966 Py_BEGIN_ALLOW_THREADS
53970 PyEval_RestoreThread(_save);
53971 PyErr_SetString(PyExc_RuntimeError, e.
what());
53974 Py_END_ALLOW_THREADS
53976 resultobj = SWIG_Py_Void();
53983 SWIGINTERN PyObject *_wrap_Index2Layer_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53984 PyObject *resultobj = 0;
53987 float *arg3 = (
float *) 0 ;
53994 PyObject * obj0 = 0 ;
53995 PyObject * obj1 = 0 ;
53996 PyObject * obj2 = 0 ;
53998 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Index2Layer_train",&obj0,&obj1,&obj2)) SWIG_fail;
53999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54000 if (!SWIG_IsOK(res1)) {
54001 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_train" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
54004 ecode2 = SWIG_AsVal_long(obj1, &val2);
54005 if (!SWIG_IsOK(ecode2)) {
54006 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
54009 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
54010 if (!SWIG_IsOK(res3)) {
54011 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index2Layer_train" "', argument " "3"" of type '" "float const *""'");
54013 arg3 =
reinterpret_cast< float *
>(argp3);
54015 Py_BEGIN_ALLOW_THREADS
54017 (arg1)->train(arg2,(
float const *)arg3);
54019 PyEval_RestoreThread(_save);
54020 PyErr_SetString(PyExc_RuntimeError, e.
what());
54023 Py_END_ALLOW_THREADS
54025 resultobj = SWIG_Py_Void();
54032 SWIGINTERN PyObject *_wrap_Index2Layer_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54033 PyObject *resultobj = 0;
54036 float *arg3 = (
float *) 0 ;
54043 PyObject * obj0 = 0 ;
54044 PyObject * obj1 = 0 ;
54045 PyObject * obj2 = 0 ;
54047 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Index2Layer_add",&obj0,&obj1,&obj2)) SWIG_fail;
54048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54049 if (!SWIG_IsOK(res1)) {
54050 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_add" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
54053 ecode2 = SWIG_AsVal_long(obj1, &val2);
54054 if (!SWIG_IsOK(ecode2)) {
54055 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
54058 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
54059 if (!SWIG_IsOK(res3)) {
54060 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index2Layer_add" "', argument " "3"" of type '" "float const *""'");
54062 arg3 =
reinterpret_cast< float *
>(argp3);
54064 Py_BEGIN_ALLOW_THREADS
54066 (arg1)->add(arg2,(
float const *)arg3);
54068 PyEval_RestoreThread(_save);
54069 PyErr_SetString(PyExc_RuntimeError, e.
what());
54072 Py_END_ALLOW_THREADS
54074 resultobj = SWIG_Py_Void();
54081 SWIGINTERN PyObject *_wrap_Index2Layer_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54082 PyObject *resultobj = 0;
54085 float *arg3 = (
float *) 0 ;
54087 float *arg5 = (
float *) 0 ;
54101 PyObject * obj0 = 0 ;
54102 PyObject * obj1 = 0 ;
54103 PyObject * obj2 = 0 ;
54104 PyObject * obj3 = 0 ;
54105 PyObject * obj4 = 0 ;
54106 PyObject * obj5 = 0 ;
54108 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:Index2Layer_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
54109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54110 if (!SWIG_IsOK(res1)) {
54111 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_search" "', argument " "1"" of type '" "faiss::Index2Layer const *""'");
54114 ecode2 = SWIG_AsVal_long(obj1, &val2);
54115 if (!SWIG_IsOK(ecode2)) {
54116 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
54119 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
54120 if (!SWIG_IsOK(res3)) {
54121 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index2Layer_search" "', argument " "3"" of type '" "float const *""'");
54123 arg3 =
reinterpret_cast< float *
>(argp3);
54124 ecode4 = SWIG_AsVal_long(obj3, &val4);
54125 if (!SWIG_IsOK(ecode4)) {
54126 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Index2Layer_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
54129 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
54130 if (!SWIG_IsOK(res5)) {
54131 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "Index2Layer_search" "', argument " "5"" of type '" "float *""'");
54133 arg5 =
reinterpret_cast< float *
>(argp5);
54134 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
54135 if (!SWIG_IsOK(res6)) {
54136 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "Index2Layer_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
54140 Py_BEGIN_ALLOW_THREADS
54142 ((
faiss::Index2Layer const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
54144 PyEval_RestoreThread(_save);
54145 PyErr_SetString(PyExc_RuntimeError, e.
what());
54148 Py_END_ALLOW_THREADS
54150 resultobj = SWIG_Py_Void();
54157 SWIGINTERN PyObject *_wrap_Index2Layer_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54158 PyObject *resultobj = 0;
54162 float *arg4 = (
float *) 0 ;
54171 PyObject * obj0 = 0 ;
54172 PyObject * obj1 = 0 ;
54173 PyObject * obj2 = 0 ;
54174 PyObject * obj3 = 0 ;
54176 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Index2Layer_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
54177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54178 if (!SWIG_IsOK(res1)) {
54179 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_reconstruct_n" "', argument " "1"" of type '" "faiss::Index2Layer const *""'");
54182 ecode2 = SWIG_AsVal_long(obj1, &val2);
54183 if (!SWIG_IsOK(ecode2)) {
54184 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_reconstruct_n" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
54187 ecode3 = SWIG_AsVal_long(obj2, &val3);
54188 if (!SWIG_IsOK(ecode3)) {
54189 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Index2Layer_reconstruct_n" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
54192 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
54193 if (!SWIG_IsOK(res4)) {
54194 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "Index2Layer_reconstruct_n" "', argument " "4"" of type '" "float *""'");
54196 arg4 =
reinterpret_cast< float *
>(argp4);
54198 Py_BEGIN_ALLOW_THREADS
54202 PyEval_RestoreThread(_save);
54203 PyErr_SetString(PyExc_RuntimeError, e.
what());
54206 Py_END_ALLOW_THREADS
54208 resultobj = SWIG_Py_Void();
54215 SWIGINTERN PyObject *_wrap_Index2Layer_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54216 PyObject *resultobj = 0;
54219 float *arg3 = (
float *) 0 ;
54226 PyObject * obj0 = 0 ;
54227 PyObject * obj1 = 0 ;
54228 PyObject * obj2 = 0 ;
54230 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Index2Layer_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
54231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54232 if (!SWIG_IsOK(res1)) {
54233 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_reconstruct" "', argument " "1"" of type '" "faiss::Index2Layer const *""'");
54236 ecode2 = SWIG_AsVal_long(obj1, &val2);
54237 if (!SWIG_IsOK(ecode2)) {
54238 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
54241 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
54242 if (!SWIG_IsOK(res3)) {
54243 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index2Layer_reconstruct" "', argument " "3"" of type '" "float *""'");
54245 arg3 =
reinterpret_cast< float *
>(argp3);
54247 Py_BEGIN_ALLOW_THREADS
54251 PyEval_RestoreThread(_save);
54252 PyErr_SetString(PyExc_RuntimeError, e.
what());
54255 Py_END_ALLOW_THREADS
54257 resultobj = SWIG_Py_Void();
54264 SWIGINTERN PyObject *_wrap_Index2Layer_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54265 PyObject *resultobj = 0;
54269 PyObject * obj0 = 0 ;
54271 if (!PyArg_ParseTuple(args,(
char *)
"O:Index2Layer_reset",&obj0)) SWIG_fail;
54272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54273 if (!SWIG_IsOK(res1)) {
54274 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_reset" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
54278 Py_BEGIN_ALLOW_THREADS
54282 PyEval_RestoreThread(_save);
54283 PyErr_SetString(PyExc_RuntimeError, e.
what());
54286 Py_END_ALLOW_THREADS
54288 resultobj = SWIG_Py_Void();
54295 SWIGINTERN PyObject *_wrap_Index2Layer_transfer_to_IVFPQ(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54296 PyObject *resultobj = 0;
54303 PyObject * obj0 = 0 ;
54304 PyObject * obj1 = 0 ;
54306 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index2Layer_transfer_to_IVFPQ",&obj0,&obj1)) SWIG_fail;
54307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54308 if (!SWIG_IsOK(res1)) {
54309 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_transfer_to_IVFPQ" "', argument " "1"" of type '" "faiss::Index2Layer const *""'");
54312 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IndexIVFPQ, 0 );
54313 if (!SWIG_IsOK(res2)) {
54314 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Index2Layer_transfer_to_IVFPQ" "', argument " "2"" of type '" "faiss::IndexIVFPQ &""'");
54317 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Index2Layer_transfer_to_IVFPQ" "', argument " "2"" of type '" "faiss::IndexIVFPQ &""'");
54321 Py_BEGIN_ALLOW_THREADS
54325 PyEval_RestoreThread(_save);
54326 PyErr_SetString(PyExc_RuntimeError, e.
what());
54329 Py_END_ALLOW_THREADS
54331 resultobj = SWIG_Py_Void();
54338 SWIGINTERN PyObject *Index2Layer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54340 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
54341 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__Index2Layer, SWIG_NewClientData(obj));
54342 return SWIG_Py_Void();
54345 SWIGINTERN PyObject *_wrap_IndexBinary_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54346 PyObject *resultobj = 0;
54353 PyObject * obj0 = 0 ;
54354 PyObject * obj1 = 0 ;
54356 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinary_d_set",&obj0,&obj1)) SWIG_fail;
54357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54358 if (!SWIG_IsOK(res1)) {
54359 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_d_set" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54362 ecode2 = SWIG_AsVal_int(obj1, &val2);
54363 if (!SWIG_IsOK(ecode2)) {
54364 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_d_set" "', argument " "2"" of type '" "int""'");
54366 arg2 =
static_cast< int >(val2);
54367 if (arg1) (arg1)->d = arg2;
54368 resultobj = SWIG_Py_Void();
54375 SWIGINTERN PyObject *_wrap_IndexBinary_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54376 PyObject *resultobj = 0;
54380 PyObject * obj0 = 0 ;
54383 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_d_get",&obj0)) SWIG_fail;
54384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54385 if (!SWIG_IsOK(res1)) {
54386 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_d_get" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54389 result = (int) ((arg1)->d);
54390 resultobj = SWIG_From_int(static_cast< int >(result));
54397 SWIGINTERN PyObject *_wrap_IndexBinary_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54398 PyObject *resultobj = 0;
54405 PyObject * obj0 = 0 ;
54406 PyObject * obj1 = 0 ;
54408 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinary_code_size_set",&obj0,&obj1)) SWIG_fail;
54409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54410 if (!SWIG_IsOK(res1)) {
54411 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_code_size_set" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54414 ecode2 = SWIG_AsVal_int(obj1, &val2);
54415 if (!SWIG_IsOK(ecode2)) {
54416 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_code_size_set" "', argument " "2"" of type '" "int""'");
54418 arg2 =
static_cast< int >(val2);
54419 if (arg1) (arg1)->code_size = arg2;
54420 resultobj = SWIG_Py_Void();
54427 SWIGINTERN PyObject *_wrap_IndexBinary_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54428 PyObject *resultobj = 0;
54432 PyObject * obj0 = 0 ;
54435 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_code_size_get",&obj0)) SWIG_fail;
54436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54437 if (!SWIG_IsOK(res1)) {
54438 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_code_size_get" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54441 result = (int) ((arg1)->code_size);
54442 resultobj = SWIG_From_int(static_cast< int >(result));
54449 SWIGINTERN PyObject *_wrap_IndexBinary_ntotal_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54450 PyObject *resultobj = 0;
54457 PyObject * obj0 = 0 ;
54458 PyObject * obj1 = 0 ;
54460 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinary_ntotal_set",&obj0,&obj1)) SWIG_fail;
54461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54462 if (!SWIG_IsOK(res1)) {
54463 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_ntotal_set" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54466 ecode2 = SWIG_AsVal_long(obj1, &val2);
54467 if (!SWIG_IsOK(ecode2)) {
54468 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_ntotal_set" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
54471 if (arg1) (arg1)->ntotal = arg2;
54472 resultobj = SWIG_Py_Void();
54479 SWIGINTERN PyObject *_wrap_IndexBinary_ntotal_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54480 PyObject *resultobj = 0;
54484 PyObject * obj0 = 0 ;
54487 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_ntotal_get",&obj0)) SWIG_fail;
54488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54489 if (!SWIG_IsOK(res1)) {
54490 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_ntotal_get" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54494 resultobj = SWIG_From_long(static_cast< long >(result));
54501 SWIGINTERN PyObject *_wrap_IndexBinary_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54502 PyObject *resultobj = 0;
54509 PyObject * obj0 = 0 ;
54510 PyObject * obj1 = 0 ;
54512 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinary_verbose_set",&obj0,&obj1)) SWIG_fail;
54513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54514 if (!SWIG_IsOK(res1)) {
54515 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_verbose_set" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54518 ecode2 = SWIG_AsVal_bool(obj1, &val2);
54519 if (!SWIG_IsOK(ecode2)) {
54520 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_verbose_set" "', argument " "2"" of type '" "bool""'");
54522 arg2 =
static_cast< bool >(val2);
54523 if (arg1) (arg1)->verbose = arg2;
54524 resultobj = SWIG_Py_Void();
54531 SWIGINTERN PyObject *_wrap_IndexBinary_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54532 PyObject *resultobj = 0;
54536 PyObject * obj0 = 0 ;
54539 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_verbose_get",&obj0)) SWIG_fail;
54540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54541 if (!SWIG_IsOK(res1)) {
54542 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_verbose_get" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54545 result = (bool) ((arg1)->verbose);
54546 resultobj = SWIG_From_bool(static_cast< bool >(result));
54553 SWIGINTERN PyObject *_wrap_IndexBinary_is_trained_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54554 PyObject *resultobj = 0;
54561 PyObject * obj0 = 0 ;
54562 PyObject * obj1 = 0 ;
54564 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinary_is_trained_set",&obj0,&obj1)) SWIG_fail;
54565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54566 if (!SWIG_IsOK(res1)) {
54567 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_is_trained_set" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54570 ecode2 = SWIG_AsVal_bool(obj1, &val2);
54571 if (!SWIG_IsOK(ecode2)) {
54572 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_is_trained_set" "', argument " "2"" of type '" "bool""'");
54574 arg2 =
static_cast< bool >(val2);
54575 if (arg1) (arg1)->is_trained = arg2;
54576 resultobj = SWIG_Py_Void();
54583 SWIGINTERN PyObject *_wrap_IndexBinary_is_trained_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54584 PyObject *resultobj = 0;
54588 PyObject * obj0 = 0 ;
54591 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_is_trained_get",&obj0)) SWIG_fail;
54592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54593 if (!SWIG_IsOK(res1)) {
54594 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_is_trained_get" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54597 result = (bool) ((arg1)->is_trained);
54598 resultobj = SWIG_From_bool(static_cast< bool >(result));
54605 SWIGINTERN PyObject *_wrap_IndexBinary_metric_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54606 PyObject *resultobj = 0;
54613 PyObject * obj0 = 0 ;
54614 PyObject * obj1 = 0 ;
54616 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinary_metric_type_set",&obj0,&obj1)) SWIG_fail;
54617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54618 if (!SWIG_IsOK(res1)) {
54619 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_metric_type_set" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54622 ecode2 = SWIG_AsVal_int(obj1, &val2);
54623 if (!SWIG_IsOK(ecode2)) {
54624 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_metric_type_set" "', argument " "2"" of type '" "faiss::MetricType""'");
54627 if (arg1) (arg1)->metric_type = arg2;
54628 resultobj = SWIG_Py_Void();
54635 SWIGINTERN PyObject *_wrap_IndexBinary_metric_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54636 PyObject *resultobj = 0;
54640 PyObject * obj0 = 0 ;
54643 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_metric_type_get",&obj0)) SWIG_fail;
54644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54645 if (!SWIG_IsOK(res1)) {
54646 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_metric_type_get" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54650 resultobj = SWIG_From_int(static_cast< int >(result));
54657 SWIGINTERN PyObject *_wrap_delete_IndexBinary(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54658 PyObject *resultobj = 0;
54662 PyObject * obj0 = 0 ;
54664 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexBinary",&obj0)) SWIG_fail;
54665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, SWIG_POINTER_DISOWN | 0 );
54666 if (!SWIG_IsOK(res1)) {
54667 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexBinary" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54671 Py_BEGIN_ALLOW_THREADS
54675 PyEval_RestoreThread(_save);
54676 PyErr_SetString(PyExc_RuntimeError, e.
what());
54679 Py_END_ALLOW_THREADS
54681 resultobj = SWIG_Py_Void();
54688 SWIGINTERN PyObject *_wrap_IndexBinary_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54689 PyObject *resultobj = 0;
54692 uint8_t *arg3 = (uint8_t *) 0 ;
54699 PyObject * obj0 = 0 ;
54700 PyObject * obj1 = 0 ;
54701 PyObject * obj2 = 0 ;
54703 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinary_train",&obj0,&obj1,&obj2)) SWIG_fail;
54704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54705 if (!SWIG_IsOK(res1)) {
54706 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_train" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54709 ecode2 = SWIG_AsVal_long(obj1, &val2);
54710 if (!SWIG_IsOK(ecode2)) {
54711 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_train" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
54714 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
54715 if (!SWIG_IsOK(res3)) {
54716 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_train" "', argument " "3"" of type '" "uint8_t const *""'");
54718 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
54720 Py_BEGIN_ALLOW_THREADS
54722 (arg1)->train(arg2,(uint8_t
const *)arg3);
54724 PyEval_RestoreThread(_save);
54725 PyErr_SetString(PyExc_RuntimeError, e.
what());
54728 Py_END_ALLOW_THREADS
54730 resultobj = SWIG_Py_Void();
54737 SWIGINTERN PyObject *_wrap_IndexBinary_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54738 PyObject *resultobj = 0;
54741 uint8_t *arg3 = (uint8_t *) 0 ;
54748 PyObject * obj0 = 0 ;
54749 PyObject * obj1 = 0 ;
54750 PyObject * obj2 = 0 ;
54752 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinary_add",&obj0,&obj1,&obj2)) SWIG_fail;
54753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54754 if (!SWIG_IsOK(res1)) {
54755 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_add" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54758 ecode2 = SWIG_AsVal_long(obj1, &val2);
54759 if (!SWIG_IsOK(ecode2)) {
54760 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_add" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
54763 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
54764 if (!SWIG_IsOK(res3)) {
54765 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_add" "', argument " "3"" of type '" "uint8_t const *""'");
54767 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
54769 Py_BEGIN_ALLOW_THREADS
54771 (arg1)->add(arg2,(uint8_t
const *)arg3);
54773 PyEval_RestoreThread(_save);
54774 PyErr_SetString(PyExc_RuntimeError, e.
what());
54777 Py_END_ALLOW_THREADS
54779 resultobj = SWIG_Py_Void();
54786 SWIGINTERN PyObject *_wrap_IndexBinary_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54787 PyObject *resultobj = 0;
54790 uint8_t *arg3 = (uint8_t *) 0 ;
54791 long *arg4 = (
long *) 0 ;
54800 PyObject * obj0 = 0 ;
54801 PyObject * obj1 = 0 ;
54802 PyObject * obj2 = 0 ;
54803 PyObject * obj3 = 0 ;
54805 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexBinary_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
54806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54807 if (!SWIG_IsOK(res1)) {
54808 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_add_with_ids" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
54811 ecode2 = SWIG_AsVal_long(obj1, &val2);
54812 if (!SWIG_IsOK(ecode2)) {
54813 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_add_with_ids" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
54816 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
54817 if (!SWIG_IsOK(res3)) {
54818 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_add_with_ids" "', argument " "3"" of type '" "uint8_t const *""'");
54820 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
54821 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
54822 if (!SWIG_IsOK(res4)) {
54823 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinary_add_with_ids" "', argument " "4"" of type '" "long const *""'");
54825 arg4 =
reinterpret_cast< long *
>(argp4);
54827 Py_BEGIN_ALLOW_THREADS
54829 (arg1)->add_with_ids(arg2,(uint8_t
const *)arg3,(
long const *)arg4);
54831 PyEval_RestoreThread(_save);
54832 PyErr_SetString(PyExc_RuntimeError, e.
what());
54835 Py_END_ALLOW_THREADS
54837 resultobj = SWIG_Py_Void();
54844 SWIGINTERN PyObject *_wrap_IndexBinary_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54845 PyObject *resultobj = 0;
54848 uint8_t *arg3 = (uint8_t *) 0 ;
54850 int32_t *arg5 = (int32_t *) 0 ;
54864 PyObject * obj0 = 0 ;
54865 PyObject * obj1 = 0 ;
54866 PyObject * obj2 = 0 ;
54867 PyObject * obj3 = 0 ;
54868 PyObject * obj4 = 0 ;
54869 PyObject * obj5 = 0 ;
54871 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexBinary_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
54872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54873 if (!SWIG_IsOK(res1)) {
54874 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_search" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
54877 ecode2 = SWIG_AsVal_long(obj1, &val2);
54878 if (!SWIG_IsOK(ecode2)) {
54879 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_search" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
54882 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
54883 if (!SWIG_IsOK(res3)) {
54884 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_search" "', argument " "3"" of type '" "uint8_t const *""'");
54886 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
54887 ecode4 = SWIG_AsVal_long(obj3, &val4);
54888 if (!SWIG_IsOK(ecode4)) {
54889 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinary_search" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
54892 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
54893 if (!SWIG_IsOK(res5)) {
54894 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinary_search" "', argument " "5"" of type '" "int32_t *""'");
54896 arg5 =
reinterpret_cast< int32_t *
>(argp5);
54897 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
54898 if (!SWIG_IsOK(res6)) {
54899 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinary_search" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
54903 Py_BEGIN_ALLOW_THREADS
54905 ((
faiss::IndexBinary const *)arg1)->search(arg2,(uint8_t
const *)arg3,arg4,arg5,arg6);
54907 PyEval_RestoreThread(_save);
54908 PyErr_SetString(PyExc_RuntimeError, e.
what());
54911 Py_END_ALLOW_THREADS
54913 resultobj = SWIG_Py_Void();
54920 SWIGINTERN PyObject *_wrap_IndexBinary_range_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54921 PyObject *resultobj = 0;
54924 uint8_t *arg3 = (uint8_t *) 0 ;
54937 PyObject * obj0 = 0 ;
54938 PyObject * obj1 = 0 ;
54939 PyObject * obj2 = 0 ;
54940 PyObject * obj3 = 0 ;
54941 PyObject * obj4 = 0 ;
54943 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexBinary_range_search",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
54944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
54945 if (!SWIG_IsOK(res1)) {
54946 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_range_search" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
54949 ecode2 = SWIG_AsVal_long(obj1, &val2);
54950 if (!SWIG_IsOK(ecode2)) {
54951 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_range_search" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
54954 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
54955 if (!SWIG_IsOK(res3)) {
54956 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_range_search" "', argument " "3"" of type '" "uint8_t const *""'");
54958 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
54959 ecode4 = SWIG_AsVal_int(obj3, &val4);
54960 if (!SWIG_IsOK(ecode4)) {
54961 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinary_range_search" "', argument " "4"" of type '" "int""'");
54963 arg4 =
static_cast< int >(val4);
54964 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
54965 if (!SWIG_IsOK(res5)) {
54966 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinary_range_search" "', argument " "5"" of type '" "faiss::RangeSearchResult *""'");
54970 Py_BEGIN_ALLOW_THREADS
54972 ((
faiss::IndexBinary const *)arg1)->range_search(arg2,(uint8_t
const *)arg3,arg4,arg5);
54974 PyEval_RestoreThread(_save);
54975 PyErr_SetString(PyExc_RuntimeError, e.
what());
54978 Py_END_ALLOW_THREADS
54980 resultobj = SWIG_Py_Void();
54987 SWIGINTERN PyObject *_wrap_IndexBinary_assign__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54988 PyObject *resultobj = 0;
54991 uint8_t *arg3 = (uint8_t *) 0 ;
55004 PyObject * obj0 = 0 ;
55005 PyObject * obj1 = 0 ;
55006 PyObject * obj2 = 0 ;
55007 PyObject * obj3 = 0 ;
55008 PyObject * obj4 = 0 ;
55010 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexBinary_assign",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
55011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55012 if (!SWIG_IsOK(res1)) {
55013 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_assign" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55016 ecode2 = SWIG_AsVal_long(obj1, &val2);
55017 if (!SWIG_IsOK(ecode2)) {
55018 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_assign" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
55021 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
55022 if (!SWIG_IsOK(res3)) {
55023 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_assign" "', argument " "3"" of type '" "uint8_t const *""'");
55025 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
55026 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
55027 if (!SWIG_IsOK(res4)) {
55028 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinary_assign" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t *""'");
55031 ecode5 = SWIG_AsVal_long(obj4, &val5);
55032 if (!SWIG_IsOK(ecode5)) {
55033 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "IndexBinary_assign" "', argument " "5"" of type '" "faiss::IndexBinary::idx_t""'");
55037 Py_BEGIN_ALLOW_THREADS
55039 (arg1)->assign(arg2,(uint8_t
const *)arg3,arg4,arg5);
55041 PyEval_RestoreThread(_save);
55042 PyErr_SetString(PyExc_RuntimeError, e.
what());
55045 Py_END_ALLOW_THREADS
55047 resultobj = SWIG_Py_Void();
55054 SWIGINTERN PyObject *_wrap_IndexBinary_assign__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55055 PyObject *resultobj = 0;
55058 uint8_t *arg3 = (uint8_t *) 0 ;
55068 PyObject * obj0 = 0 ;
55069 PyObject * obj1 = 0 ;
55070 PyObject * obj2 = 0 ;
55071 PyObject * obj3 = 0 ;
55073 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexBinary_assign",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
55074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55075 if (!SWIG_IsOK(res1)) {
55076 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_assign" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55079 ecode2 = SWIG_AsVal_long(obj1, &val2);
55080 if (!SWIG_IsOK(ecode2)) {
55081 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_assign" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
55084 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
55085 if (!SWIG_IsOK(res3)) {
55086 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_assign" "', argument " "3"" of type '" "uint8_t const *""'");
55088 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
55089 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
55090 if (!SWIG_IsOK(res4)) {
55091 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinary_assign" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t *""'");
55095 Py_BEGIN_ALLOW_THREADS
55097 (arg1)->assign(arg2,(uint8_t
const *)arg3,arg4);
55099 PyEval_RestoreThread(_save);
55100 PyErr_SetString(PyExc_RuntimeError, e.
what());
55103 Py_END_ALLOW_THREADS
55105 resultobj = SWIG_Py_Void();
55112 SWIGINTERN PyObject *_wrap_IndexBinary_assign(PyObject *
self, PyObject *args) {
55114 PyObject *argv[6] = {
55119 if (!PyTuple_Check(args)) SWIG_fail;
55120 argc = args ? PyObject_Length(args) : 0;
55121 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
55122 argv[ii] = PyTuple_GET_ITEM(args,ii);
55127 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
55128 _v = SWIG_CheckState(res);
55131 int res = SWIG_AsVal_long(argv[1], NULL);
55132 _v = SWIG_CheckState(res);
55136 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
55137 _v = SWIG_CheckState(res);
55140 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
55141 _v = SWIG_CheckState(res);
55143 return _wrap_IndexBinary_assign__SWIG_1(
self, args);
55152 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
55153 _v = SWIG_CheckState(res);
55156 int res = SWIG_AsVal_long(argv[1], NULL);
55157 _v = SWIG_CheckState(res);
55161 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
55162 _v = SWIG_CheckState(res);
55165 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
55166 _v = SWIG_CheckState(res);
55169 int res = SWIG_AsVal_long(argv[4], NULL);
55170 _v = SWIG_CheckState(res);
55173 return _wrap_IndexBinary_assign__SWIG_0(
self, args);
55182 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexBinary_assign'.\n"
55183 " Possible C/C++ prototypes are:\n"
55184 " faiss::IndexBinary::assign(faiss::IndexBinary::idx_t,uint8_t const *,faiss::IndexBinary::idx_t *,faiss::IndexBinary::idx_t)\n"
55185 " faiss::IndexBinary::assign(faiss::IndexBinary::idx_t,uint8_t const *,faiss::IndexBinary::idx_t *)\n");
55190 SWIGINTERN PyObject *_wrap_IndexBinary_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55191 PyObject *resultobj = 0;
55195 PyObject * obj0 = 0 ;
55197 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_reset",&obj0)) SWIG_fail;
55198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55199 if (!SWIG_IsOK(res1)) {
55200 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_reset" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55204 Py_BEGIN_ALLOW_THREADS
55208 PyEval_RestoreThread(_save);
55209 PyErr_SetString(PyExc_RuntimeError, e.
what());
55212 Py_END_ALLOW_THREADS
55214 resultobj = SWIG_Py_Void();
55221 SWIGINTERN PyObject *_wrap_IndexBinary_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55222 PyObject *resultobj = 0;
55229 PyObject * obj0 = 0 ;
55230 PyObject * obj1 = 0 ;
55233 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinary_remove_ids",&obj0,&obj1)) SWIG_fail;
55234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55235 if (!SWIG_IsOK(res1)) {
55236 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_remove_ids" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55239 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
55240 if (!SWIG_IsOK(res2)) {
55241 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinary_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
55244 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexBinary_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
55248 Py_BEGIN_ALLOW_THREADS
55252 PyEval_RestoreThread(_save);
55253 PyErr_SetString(PyExc_RuntimeError, e.
what());
55256 Py_END_ALLOW_THREADS
55258 resultobj = SWIG_From_long(static_cast< long >(result));
55265 SWIGINTERN PyObject *_wrap_IndexBinary_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55266 PyObject *resultobj = 0;
55269 uint8_t *arg3 = (uint8_t *) 0 ;
55276 PyObject * obj0 = 0 ;
55277 PyObject * obj1 = 0 ;
55278 PyObject * obj2 = 0 ;
55280 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinary_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
55281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55282 if (!SWIG_IsOK(res1)) {
55283 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_reconstruct" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
55286 ecode2 = SWIG_AsVal_long(obj1, &val2);
55287 if (!SWIG_IsOK(ecode2)) {
55288 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_reconstruct" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
55291 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
55292 if (!SWIG_IsOK(res3)) {
55293 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_reconstruct" "', argument " "3"" of type '" "uint8_t *""'");
55295 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
55297 Py_BEGIN_ALLOW_THREADS
55301 PyEval_RestoreThread(_save);
55302 PyErr_SetString(PyExc_RuntimeError, e.
what());
55305 Py_END_ALLOW_THREADS
55307 resultobj = SWIG_Py_Void();
55314 SWIGINTERN PyObject *_wrap_IndexBinary_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55315 PyObject *resultobj = 0;
55319 uint8_t *arg4 = (uint8_t *) 0 ;
55328 PyObject * obj0 = 0 ;
55329 PyObject * obj1 = 0 ;
55330 PyObject * obj2 = 0 ;
55331 PyObject * obj3 = 0 ;
55333 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexBinary_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
55334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55335 if (!SWIG_IsOK(res1)) {
55336 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_reconstruct_n" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
55339 ecode2 = SWIG_AsVal_long(obj1, &val2);
55340 if (!SWIG_IsOK(ecode2)) {
55341 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_reconstruct_n" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
55344 ecode3 = SWIG_AsVal_long(obj2, &val3);
55345 if (!SWIG_IsOK(ecode3)) {
55346 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexBinary_reconstruct_n" "', argument " "3"" of type '" "faiss::IndexBinary::idx_t""'");
55349 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
55350 if (!SWIG_IsOK(res4)) {
55351 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinary_reconstruct_n" "', argument " "4"" of type '" "uint8_t *""'");
55353 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
55355 Py_BEGIN_ALLOW_THREADS
55359 PyEval_RestoreThread(_save);
55360 PyErr_SetString(PyExc_RuntimeError, e.
what());
55363 Py_END_ALLOW_THREADS
55365 resultobj = SWIG_Py_Void();
55372 SWIGINTERN PyObject *_wrap_IndexBinary_search_and_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55373 PyObject *resultobj = 0;
55376 uint8_t *arg3 = (uint8_t *) 0 ;
55378 int32_t *arg5 = (int32_t *) 0 ;
55380 uint8_t *arg7 = (uint8_t *) 0 ;
55395 PyObject * obj0 = 0 ;
55396 PyObject * obj1 = 0 ;
55397 PyObject * obj2 = 0 ;
55398 PyObject * obj3 = 0 ;
55399 PyObject * obj4 = 0 ;
55400 PyObject * obj5 = 0 ;
55401 PyObject * obj6 = 0 ;
55403 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:IndexBinary_search_and_reconstruct",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
55404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55405 if (!SWIG_IsOK(res1)) {
55406 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_search_and_reconstruct" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
55409 ecode2 = SWIG_AsVal_long(obj1, &val2);
55410 if (!SWIG_IsOK(ecode2)) {
55411 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_search_and_reconstruct" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
55414 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
55415 if (!SWIG_IsOK(res3)) {
55416 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_search_and_reconstruct" "', argument " "3"" of type '" "uint8_t const *""'");
55418 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
55419 ecode4 = SWIG_AsVal_long(obj3, &val4);
55420 if (!SWIG_IsOK(ecode4)) {
55421 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinary_search_and_reconstruct" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
55424 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
55425 if (!SWIG_IsOK(res5)) {
55426 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinary_search_and_reconstruct" "', argument " "5"" of type '" "int32_t *""'");
55428 arg5 =
reinterpret_cast< int32_t *
>(argp5);
55429 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
55430 if (!SWIG_IsOK(res6)) {
55431 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinary_search_and_reconstruct" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
55434 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_char, 0 | 0 );
55435 if (!SWIG_IsOK(res7)) {
55436 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexBinary_search_and_reconstruct" "', argument " "7"" of type '" "uint8_t *""'");
55438 arg7 =
reinterpret_cast< uint8_t *
>(argp7);
55440 Py_BEGIN_ALLOW_THREADS
55442 ((
faiss::IndexBinary const *)arg1)->search_and_reconstruct(arg2,(uint8_t
const *)arg3,arg4,arg5,arg6,arg7);
55444 PyEval_RestoreThread(_save);
55445 PyErr_SetString(PyExc_RuntimeError, e.
what());
55448 Py_END_ALLOW_THREADS
55450 resultobj = SWIG_Py_Void();
55457 SWIGINTERN PyObject *_wrap_IndexBinary_display(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55458 PyObject *resultobj = 0;
55462 PyObject * obj0 = 0 ;
55464 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_display",&obj0)) SWIG_fail;
55465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55466 if (!SWIG_IsOK(res1)) {
55467 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_display" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
55471 Py_BEGIN_ALLOW_THREADS
55475 PyEval_RestoreThread(_save);
55476 PyErr_SetString(PyExc_RuntimeError, e.
what());
55479 Py_END_ALLOW_THREADS
55481 resultobj = SWIG_Py_Void();
55488 SWIGINTERN PyObject *IndexBinary_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55490 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
55491 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexBinary, SWIG_NewClientData(obj));
55492 return SWIG_Py_Void();
55495 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_xb_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55496 PyObject *resultobj = 0;
55498 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
55503 PyObject * obj0 = 0 ;
55504 PyObject * obj1 = 0 ;
55506 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryFlat_xb_set",&obj0,&obj1)) SWIG_fail;
55507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
55508 if (!SWIG_IsOK(res1)) {
55509 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_xb_set" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
55512 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
55513 if (!SWIG_IsOK(res2)) {
55514 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryFlat_xb_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
55516 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
55517 if (arg1) (arg1)->xb = *arg2;
55518 resultobj = SWIG_Py_Void();
55525 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_xb_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55526 PyObject *resultobj = 0;
55530 PyObject * obj0 = 0 ;
55531 std::vector< uint8_t > *result = 0 ;
55533 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryFlat_xb_get",&obj0)) SWIG_fail;
55534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
55535 if (!SWIG_IsOK(res1)) {
55536 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_xb_get" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
55539 result = (std::vector< uint8_t > *)& ((arg1)->xb);
55540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
55547 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_use_heap_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55548 PyObject *resultobj = 0;
55555 PyObject * obj0 = 0 ;
55556 PyObject * obj1 = 0 ;
55558 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryFlat_use_heap_set",&obj0,&obj1)) SWIG_fail;
55559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
55560 if (!SWIG_IsOK(res1)) {
55561 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_use_heap_set" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
55564 ecode2 = SWIG_AsVal_bool(obj1, &val2);
55565 if (!SWIG_IsOK(ecode2)) {
55566 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFlat_use_heap_set" "', argument " "2"" of type '" "bool""'");
55568 arg2 =
static_cast< bool >(val2);
55569 if (arg1) (arg1)->use_heap = arg2;
55570 resultobj = SWIG_Py_Void();
55577 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_use_heap_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55578 PyObject *resultobj = 0;
55582 PyObject * obj0 = 0 ;
55585 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryFlat_use_heap_get",&obj0)) SWIG_fail;
55586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
55587 if (!SWIG_IsOK(res1)) {
55588 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_use_heap_get" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
55591 result = (bool) ((arg1)->use_heap);
55592 resultobj = SWIG_From_bool(static_cast< bool >(result));
55599 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_query_batch_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55600 PyObject *resultobj = 0;
55607 PyObject * obj0 = 0 ;
55608 PyObject * obj1 = 0 ;
55610 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryFlat_query_batch_size_set",&obj0,&obj1)) SWIG_fail;
55611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
55612 if (!SWIG_IsOK(res1)) {
55613 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_query_batch_size_set" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
55616 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
55617 if (!SWIG_IsOK(ecode2)) {
55618 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFlat_query_batch_size_set" "', argument " "2"" of type '" "size_t""'");
55620 arg2 =
static_cast< size_t >(val2);
55621 if (arg1) (arg1)->query_batch_size = arg2;
55622 resultobj = SWIG_Py_Void();
55629 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_query_batch_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55630 PyObject *resultobj = 0;
55634 PyObject * obj0 = 0 ;
55637 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryFlat_query_batch_size_get",&obj0)) SWIG_fail;
55638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
55639 if (!SWIG_IsOK(res1)) {
55640 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_query_batch_size_get" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
55643 result = (size_t) ((arg1)->query_batch_size);
55644 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
55651 SWIGINTERN PyObject *_wrap_new_IndexBinaryFlat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55652 PyObject *resultobj = 0;
55656 PyObject * obj0 = 0 ;
55659 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexBinaryFlat",&obj0)) SWIG_fail;
55660 ecode1 = SWIG_AsVal_long(obj0, &val1);
55661 if (!SWIG_IsOK(ecode1)) {
55662 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexBinaryFlat" "', argument " "1"" of type '" "faiss::IndexBinary::idx_t""'");
55666 Py_BEGIN_ALLOW_THREADS
55670 PyEval_RestoreThread(_save);
55671 PyErr_SetString(PyExc_RuntimeError, e.
what());
55674 Py_END_ALLOW_THREADS
55676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryFlat, SWIG_POINTER_NEW | 0 );
55683 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55684 PyObject *resultobj = 0;
55687 uint8_t *arg3 = (uint8_t *) 0 ;
55694 PyObject * obj0 = 0 ;
55695 PyObject * obj1 = 0 ;
55696 PyObject * obj2 = 0 ;
55698 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryFlat_add",&obj0,&obj1,&obj2)) SWIG_fail;
55699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
55700 if (!SWIG_IsOK(res1)) {
55701 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_add" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
55704 ecode2 = SWIG_AsVal_long(obj1, &val2);
55705 if (!SWIG_IsOK(ecode2)) {
55706 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFlat_add" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
55709 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
55710 if (!SWIG_IsOK(res3)) {
55711 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryFlat_add" "', argument " "3"" of type '" "uint8_t const *""'");
55713 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
55715 Py_BEGIN_ALLOW_THREADS
55717 (arg1)->add(arg2,(uint8_t
const *)arg3);
55719 PyEval_RestoreThread(_save);
55720 PyErr_SetString(PyExc_RuntimeError, e.
what());
55723 Py_END_ALLOW_THREADS
55725 resultobj = SWIG_Py_Void();
55732 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55733 PyObject *resultobj = 0;
55737 PyObject * obj0 = 0 ;
55739 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryFlat_reset",&obj0)) SWIG_fail;
55740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
55741 if (!SWIG_IsOK(res1)) {
55742 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_reset" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
55746 Py_BEGIN_ALLOW_THREADS
55750 PyEval_RestoreThread(_save);
55751 PyErr_SetString(PyExc_RuntimeError, e.
what());
55754 Py_END_ALLOW_THREADS
55756 resultobj = SWIG_Py_Void();
55763 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55764 PyObject *resultobj = 0;
55767 uint8_t *arg3 = (uint8_t *) 0 ;
55769 int32_t *arg5 = (int32_t *) 0 ;
55783 PyObject * obj0 = 0 ;
55784 PyObject * obj1 = 0 ;
55785 PyObject * obj2 = 0 ;
55786 PyObject * obj3 = 0 ;
55787 PyObject * obj4 = 0 ;
55788 PyObject * obj5 = 0 ;
55790 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexBinaryFlat_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
55791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
55792 if (!SWIG_IsOK(res1)) {
55793 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_search" "', argument " "1"" of type '" "faiss::IndexBinaryFlat const *""'");
55796 ecode2 = SWIG_AsVal_long(obj1, &val2);
55797 if (!SWIG_IsOK(ecode2)) {
55798 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFlat_search" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
55801 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
55802 if (!SWIG_IsOK(res3)) {
55803 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryFlat_search" "', argument " "3"" of type '" "uint8_t const *""'");
55805 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
55806 ecode4 = SWIG_AsVal_long(obj3, &val4);
55807 if (!SWIG_IsOK(ecode4)) {
55808 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryFlat_search" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
55811 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
55812 if (!SWIG_IsOK(res5)) {
55813 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryFlat_search" "', argument " "5"" of type '" "int32_t *""'");
55815 arg5 =
reinterpret_cast< int32_t *
>(argp5);
55816 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
55817 if (!SWIG_IsOK(res6)) {
55818 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinaryFlat_search" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
55822 Py_BEGIN_ALLOW_THREADS
55826 PyEval_RestoreThread(_save);
55827 PyErr_SetString(PyExc_RuntimeError, e.
what());
55830 Py_END_ALLOW_THREADS
55832 resultobj = SWIG_Py_Void();
55839 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55840 PyObject *resultobj = 0;
55843 uint8_t *arg3 = (uint8_t *) 0 ;
55850 PyObject * obj0 = 0 ;
55851 PyObject * obj1 = 0 ;
55852 PyObject * obj2 = 0 ;
55854 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryFlat_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
55855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
55856 if (!SWIG_IsOK(res1)) {
55857 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_reconstruct" "', argument " "1"" of type '" "faiss::IndexBinaryFlat const *""'");
55860 ecode2 = SWIG_AsVal_long(obj1, &val2);
55861 if (!SWIG_IsOK(ecode2)) {
55862 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFlat_reconstruct" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
55865 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
55866 if (!SWIG_IsOK(res3)) {
55867 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryFlat_reconstruct" "', argument " "3"" of type '" "uint8_t *""'");
55869 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
55871 Py_BEGIN_ALLOW_THREADS
55875 PyEval_RestoreThread(_save);
55876 PyErr_SetString(PyExc_RuntimeError, e.
what());
55879 Py_END_ALLOW_THREADS
55881 resultobj = SWIG_Py_Void();
55888 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55889 PyObject *resultobj = 0;
55896 PyObject * obj0 = 0 ;
55897 PyObject * obj1 = 0 ;
55900 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryFlat_remove_ids",&obj0,&obj1)) SWIG_fail;
55901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
55902 if (!SWIG_IsOK(res1)) {
55903 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_remove_ids" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
55906 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
55907 if (!SWIG_IsOK(res2)) {
55908 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryFlat_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
55911 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexBinaryFlat_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
55915 Py_BEGIN_ALLOW_THREADS
55919 PyEval_RestoreThread(_save);
55920 PyErr_SetString(PyExc_RuntimeError, e.
what());
55923 Py_END_ALLOW_THREADS
55925 resultobj = SWIG_From_long(static_cast< long >(result));
55932 SWIGINTERN PyObject *_wrap_new_IndexBinaryFlat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55933 PyObject *resultobj = 0;
55936 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexBinaryFlat")) SWIG_fail;
55938 Py_BEGIN_ALLOW_THREADS
55942 PyEval_RestoreThread(_save);
55943 PyErr_SetString(PyExc_RuntimeError, e.
what());
55946 Py_END_ALLOW_THREADS
55948 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryFlat, SWIG_POINTER_NEW | 0 );
55955 SWIGINTERN PyObject *_wrap_new_IndexBinaryFlat(PyObject *
self, PyObject *args) {
55957 PyObject *argv[2] = {
55962 if (!PyTuple_Check(args)) SWIG_fail;
55963 argc = args ? PyObject_Length(args) : 0;
55964 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
55965 argv[ii] = PyTuple_GET_ITEM(args,ii);
55968 return _wrap_new_IndexBinaryFlat__SWIG_1(
self, args);
55973 int res = SWIG_AsVal_long(argv[0], NULL);
55974 _v = SWIG_CheckState(res);
55977 return _wrap_new_IndexBinaryFlat__SWIG_0(
self, args);
55982 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexBinaryFlat'.\n"
55983 " Possible C/C++ prototypes are:\n"
55984 " faiss::IndexBinaryFlat::IndexBinaryFlat(faiss::IndexBinary::idx_t)\n"
55985 " faiss::IndexBinaryFlat::IndexBinaryFlat()\n");
55990 SWIGINTERN PyObject *_wrap_delete_IndexBinaryFlat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55991 PyObject *resultobj = 0;
55995 PyObject * obj0 = 0 ;
55997 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexBinaryFlat",&obj0)) SWIG_fail;
55998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, SWIG_POINTER_DISOWN | 0 );
55999 if (!SWIG_IsOK(res1)) {
56000 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexBinaryFlat" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
56004 resultobj = SWIG_Py_Void();
56011 SWIGINTERN PyObject *IndexBinaryFlat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56013 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
56014 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexBinaryFlat, SWIG_NewClientData(obj));
56015 return SWIG_Py_Void();
56018 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_invlists_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56019 PyObject *resultobj = 0;
56026 PyObject * obj0 = 0 ;
56027 PyObject * obj1 = 0 ;
56029 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_invlists_set",&obj0,&obj1)) SWIG_fail;
56030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56031 if (!SWIG_IsOK(res1)) {
56032 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_invlists_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56035 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, SWIG_POINTER_DISOWN | 0 );
56036 if (!SWIG_IsOK(res2)) {
56037 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_invlists_set" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
56040 if (arg1) (arg1)->invlists = arg2;
56041 resultobj = SWIG_Py_Void();
56048 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_invlists_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56049 PyObject *resultobj = 0;
56053 PyObject * obj0 = 0 ;
56056 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_invlists_get",&obj0)) SWIG_fail;
56057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56058 if (!SWIG_IsOK(res1)) {
56059 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_invlists_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
56070 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_own_invlists_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56071 PyObject *resultobj = 0;
56078 PyObject * obj0 = 0 ;
56079 PyObject * obj1 = 0 ;
56081 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_own_invlists_set",&obj0,&obj1)) SWIG_fail;
56082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56083 if (!SWIG_IsOK(res1)) {
56084 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_own_invlists_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56087 ecode2 = SWIG_AsVal_bool(obj1, &val2);
56088 if (!SWIG_IsOK(ecode2)) {
56089 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_own_invlists_set" "', argument " "2"" of type '" "bool""'");
56091 arg2 =
static_cast< bool >(val2);
56092 if (arg1) (arg1)->own_invlists = arg2;
56093 resultobj = SWIG_Py_Void();
56100 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_own_invlists_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56101 PyObject *resultobj = 0;
56105 PyObject * obj0 = 0 ;
56108 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_own_invlists_get",&obj0)) SWIG_fail;
56109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56110 if (!SWIG_IsOK(res1)) {
56111 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_own_invlists_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56114 result = (bool) ((arg1)->own_invlists);
56115 resultobj = SWIG_From_bool(static_cast< bool >(result));
56122 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_nprobe_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56123 PyObject *resultobj = 0;
56130 PyObject * obj0 = 0 ;
56131 PyObject * obj1 = 0 ;
56133 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_nprobe_set",&obj0,&obj1)) SWIG_fail;
56134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56135 if (!SWIG_IsOK(res1)) {
56136 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_nprobe_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56139 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
56140 if (!SWIG_IsOK(ecode2)) {
56141 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_nprobe_set" "', argument " "2"" of type '" "size_t""'");
56143 arg2 =
static_cast< size_t >(val2);
56144 if (arg1) (arg1)->nprobe = arg2;
56145 resultobj = SWIG_Py_Void();
56152 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_nprobe_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56153 PyObject *resultobj = 0;
56157 PyObject * obj0 = 0 ;
56160 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_nprobe_get",&obj0)) SWIG_fail;
56161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56162 if (!SWIG_IsOK(res1)) {
56163 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_nprobe_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56166 result = (size_t) ((arg1)->nprobe);
56167 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
56174 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_max_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56175 PyObject *resultobj = 0;
56182 PyObject * obj0 = 0 ;
56183 PyObject * obj1 = 0 ;
56185 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_max_codes_set",&obj0,&obj1)) SWIG_fail;
56186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56187 if (!SWIG_IsOK(res1)) {
56188 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_max_codes_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56191 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
56192 if (!SWIG_IsOK(ecode2)) {
56193 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_max_codes_set" "', argument " "2"" of type '" "size_t""'");
56195 arg2 =
static_cast< size_t >(val2);
56196 if (arg1) (arg1)->max_codes = arg2;
56197 resultobj = SWIG_Py_Void();
56204 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_max_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56205 PyObject *resultobj = 0;
56209 PyObject * obj0 = 0 ;
56212 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_max_codes_get",&obj0)) SWIG_fail;
56213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56214 if (!SWIG_IsOK(res1)) {
56215 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_max_codes_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56218 result = (size_t) ((arg1)->max_codes);
56219 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
56226 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_use_heap_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56227 PyObject *resultobj = 0;
56234 PyObject * obj0 = 0 ;
56235 PyObject * obj1 = 0 ;
56237 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_use_heap_set",&obj0,&obj1)) SWIG_fail;
56238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56239 if (!SWIG_IsOK(res1)) {
56240 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_use_heap_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56243 ecode2 = SWIG_AsVal_bool(obj1, &val2);
56244 if (!SWIG_IsOK(ecode2)) {
56245 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_use_heap_set" "', argument " "2"" of type '" "bool""'");
56247 arg2 =
static_cast< bool >(val2);
56248 if (arg1) (arg1)->use_heap = arg2;
56249 resultobj = SWIG_Py_Void();
56256 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_use_heap_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56257 PyObject *resultobj = 0;
56261 PyObject * obj0 = 0 ;
56264 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_use_heap_get",&obj0)) SWIG_fail;
56265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56266 if (!SWIG_IsOK(res1)) {
56267 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_use_heap_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56270 result = (bool) ((arg1)->use_heap);
56271 resultobj = SWIG_From_bool(static_cast< bool >(result));
56278 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_maintain_direct_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56279 PyObject *resultobj = 0;
56286 PyObject * obj0 = 0 ;
56287 PyObject * obj1 = 0 ;
56289 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_maintain_direct_map_set",&obj0,&obj1)) SWIG_fail;
56290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56291 if (!SWIG_IsOK(res1)) {
56292 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_maintain_direct_map_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56295 ecode2 = SWIG_AsVal_bool(obj1, &val2);
56296 if (!SWIG_IsOK(ecode2)) {
56297 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_maintain_direct_map_set" "', argument " "2"" of type '" "bool""'");
56299 arg2 =
static_cast< bool >(val2);
56300 if (arg1) (arg1)->maintain_direct_map = arg2;
56301 resultobj = SWIG_Py_Void();
56308 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_maintain_direct_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56309 PyObject *resultobj = 0;
56313 PyObject * obj0 = 0 ;
56316 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_maintain_direct_map_get",&obj0)) SWIG_fail;
56317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56318 if (!SWIG_IsOK(res1)) {
56319 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_maintain_direct_map_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56322 result = (bool) ((arg1)->maintain_direct_map);
56323 resultobj = SWIG_From_bool(static_cast< bool >(result));
56330 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_direct_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56331 PyObject *resultobj = 0;
56333 std::vector< long > *arg2 = (std::vector< long > *) 0 ;
56338 PyObject * obj0 = 0 ;
56339 PyObject * obj1 = 0 ;
56341 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_direct_map_set",&obj0,&obj1)) SWIG_fail;
56342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56343 if (!SWIG_IsOK(res1)) {
56344 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_direct_map_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56347 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
56348 if (!SWIG_IsOK(res2)) {
56349 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_direct_map_set" "', argument " "2"" of type '" "std::vector< long > *""'");
56351 arg2 =
reinterpret_cast< std::vector< long > *
>(argp2);
56352 if (arg1) (arg1)->direct_map = *arg2;
56353 resultobj = SWIG_Py_Void();
56360 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_direct_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56361 PyObject *resultobj = 0;
56365 PyObject * obj0 = 0 ;
56366 std::vector< long > *result = 0 ;
56368 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_direct_map_get",&obj0)) SWIG_fail;
56369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56370 if (!SWIG_IsOK(res1)) {
56371 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_direct_map_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56374 result = (std::vector< long > *)& ((arg1)->direct_map);
56375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
56382 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_quantizer_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56383 PyObject *resultobj = 0;
56390 PyObject * obj0 = 0 ;
56391 PyObject * obj1 = 0 ;
56393 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_quantizer_set",&obj0,&obj1)) SWIG_fail;
56394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56395 if (!SWIG_IsOK(res1)) {
56396 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_quantizer_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56399 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexBinary, SWIG_POINTER_DISOWN | 0 );
56400 if (!SWIG_IsOK(res2)) {
56401 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_quantizer_set" "', argument " "2"" of type '" "faiss::IndexBinary *""'");
56404 if (arg1) (arg1)->quantizer = arg2;
56405 resultobj = SWIG_Py_Void();
56412 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_quantizer_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56413 PyObject *resultobj = 0;
56417 PyObject * obj0 = 0 ;
56420 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_quantizer_get",&obj0)) SWIG_fail;
56421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56422 if (!SWIG_IsOK(res1)) {
56423 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_quantizer_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56434 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_nlist_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56435 PyObject *resultobj = 0;
56442 PyObject * obj0 = 0 ;
56443 PyObject * obj1 = 0 ;
56445 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_nlist_set",&obj0,&obj1)) SWIG_fail;
56446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56447 if (!SWIG_IsOK(res1)) {
56448 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_nlist_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56451 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
56452 if (!SWIG_IsOK(ecode2)) {
56453 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_nlist_set" "', argument " "2"" of type '" "size_t""'");
56455 arg2 =
static_cast< size_t >(val2);
56456 if (arg1) (arg1)->nlist = arg2;
56457 resultobj = SWIG_Py_Void();
56464 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_nlist_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56465 PyObject *resultobj = 0;
56469 PyObject * obj0 = 0 ;
56472 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_nlist_get",&obj0)) SWIG_fail;
56473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56474 if (!SWIG_IsOK(res1)) {
56475 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_nlist_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56478 result = (size_t) ((arg1)->nlist);
56479 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
56486 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56487 PyObject *resultobj = 0;
56494 PyObject * obj0 = 0 ;
56495 PyObject * obj1 = 0 ;
56497 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_own_fields_set",&obj0,&obj1)) SWIG_fail;
56498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56499 if (!SWIG_IsOK(res1)) {
56500 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_own_fields_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56503 ecode2 = SWIG_AsVal_bool(obj1, &val2);
56504 if (!SWIG_IsOK(ecode2)) {
56505 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_own_fields_set" "', argument " "2"" of type '" "bool""'");
56507 arg2 =
static_cast< bool >(val2);
56508 if (arg1) (arg1)->own_fields = arg2;
56509 resultobj = SWIG_Py_Void();
56516 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56517 PyObject *resultobj = 0;
56521 PyObject * obj0 = 0 ;
56524 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_own_fields_get",&obj0)) SWIG_fail;
56525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56526 if (!SWIG_IsOK(res1)) {
56527 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_own_fields_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56530 result = (bool) ((arg1)->own_fields);
56531 resultobj = SWIG_From_bool(static_cast< bool >(result));
56538 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_cp_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56539 PyObject *resultobj = 0;
56546 PyObject * obj0 = 0 ;
56547 PyObject * obj1 = 0 ;
56549 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_cp_set",&obj0,&obj1)) SWIG_fail;
56550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56551 if (!SWIG_IsOK(res1)) {
56552 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_cp_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56555 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
56556 if (!SWIG_IsOK(res2)) {
56557 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_cp_set" "', argument " "2"" of type '" "faiss::ClusteringParameters *""'");
56560 if (arg1) (arg1)->cp = *arg2;
56561 resultobj = SWIG_Py_Void();
56568 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_cp_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56569 PyObject *resultobj = 0;
56573 PyObject * obj0 = 0 ;
56576 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_cp_get",&obj0)) SWIG_fail;
56577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56578 if (!SWIG_IsOK(res1)) {
56579 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_cp_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
56590 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_clustering_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56591 PyObject *resultobj = 0;
56598 PyObject * obj0 = 0 ;
56599 PyObject * obj1 = 0 ;
56601 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_clustering_index_set",&obj0,&obj1)) SWIG_fail;
56602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56603 if (!SWIG_IsOK(res1)) {
56604 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_clustering_index_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56607 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
56608 if (!SWIG_IsOK(res2)) {
56609 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_clustering_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
56612 if (arg1) (arg1)->clustering_index = arg2;
56613 resultobj = SWIG_Py_Void();
56620 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_clustering_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56621 PyObject *resultobj = 0;
56625 PyObject * obj0 = 0 ;
56628 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_clustering_index_get",&obj0)) SWIG_fail;
56629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56630 if (!SWIG_IsOK(res1)) {
56631 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_clustering_index_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
56642 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_train_q1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56643 PyObject *resultobj = 0;
56646 uint8_t *arg3 = (uint8_t *) 0 ;
56656 PyObject * obj0 = 0 ;
56657 PyObject * obj1 = 0 ;
56658 PyObject * obj2 = 0 ;
56659 PyObject * obj3 = 0 ;
56661 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexBinaryIVF_train_q1",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
56662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56663 if (!SWIG_IsOK(res1)) {
56664 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_train_q1" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56667 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
56668 if (!SWIG_IsOK(ecode2)) {
56669 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_train_q1" "', argument " "2"" of type '" "size_t""'");
56671 arg2 =
static_cast< size_t >(val2);
56672 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
56673 if (!SWIG_IsOK(res3)) {
56674 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_train_q1" "', argument " "3"" of type '" "uint8_t const *""'");
56676 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
56677 ecode4 = SWIG_AsVal_bool(obj3, &val4);
56678 if (!SWIG_IsOK(ecode4)) {
56679 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryIVF_train_q1" "', argument " "4"" of type '" "bool""'");
56681 arg4 =
static_cast< bool >(val4);
56683 Py_BEGIN_ALLOW_THREADS
56685 (arg1)->train_q1(arg2,(uint8_t
const *)arg3,arg4);
56687 PyEval_RestoreThread(_save);
56688 PyErr_SetString(PyExc_RuntimeError, e.
what());
56691 Py_END_ALLOW_THREADS
56693 resultobj = SWIG_Py_Void();
56700 SWIGINTERN PyObject *_wrap_new_IndexBinaryIVF__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56701 PyObject *resultobj = 0;
56711 PyObject * obj0 = 0 ;
56712 PyObject * obj1 = 0 ;
56713 PyObject * obj2 = 0 ;
56716 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexBinaryIVF",&obj0,&obj1,&obj2)) SWIG_fail;
56717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56718 if (!SWIG_IsOK(res1)) {
56719 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexBinaryIVF" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
56722 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
56723 if (!SWIG_IsOK(ecode2)) {
56724 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexBinaryIVF" "', argument " "2"" of type '" "size_t""'");
56726 arg2 =
static_cast< size_t >(val2);
56727 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
56728 if (!SWIG_IsOK(ecode3)) {
56729 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexBinaryIVF" "', argument " "3"" of type '" "size_t""'");
56731 arg3 =
static_cast< size_t >(val3);
56733 Py_BEGIN_ALLOW_THREADS
56737 PyEval_RestoreThread(_save);
56738 PyErr_SetString(PyExc_RuntimeError, e.
what());
56741 Py_END_ALLOW_THREADS
56743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryIVF, SWIG_POINTER_NEW | 0 );
56750 SWIGINTERN PyObject *_wrap_new_IndexBinaryIVF__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56751 PyObject *resultobj = 0;
56754 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexBinaryIVF")) SWIG_fail;
56756 Py_BEGIN_ALLOW_THREADS
56760 PyEval_RestoreThread(_save);
56761 PyErr_SetString(PyExc_RuntimeError, e.
what());
56764 Py_END_ALLOW_THREADS
56766 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryIVF, SWIG_POINTER_NEW | 0 );
56773 SWIGINTERN PyObject *_wrap_new_IndexBinaryIVF(PyObject *
self, PyObject *args) {
56775 PyObject *argv[4] = {
56780 if (!PyTuple_Check(args)) SWIG_fail;
56781 argc = args ? PyObject_Length(args) : 0;
56782 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
56783 argv[ii] = PyTuple_GET_ITEM(args,ii);
56786 return _wrap_new_IndexBinaryIVF__SWIG_1(
self, args);
56791 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
56792 _v = SWIG_CheckState(res);
56795 int res = SWIG_AsVal_size_t(argv[1], NULL);
56796 _v = SWIG_CheckState(res);
56800 int res = SWIG_AsVal_size_t(argv[2], NULL);
56801 _v = SWIG_CheckState(res);
56804 return _wrap_new_IndexBinaryIVF__SWIG_0(
self, args);
56811 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexBinaryIVF'.\n"
56812 " Possible C/C++ prototypes are:\n"
56813 " faiss::IndexBinaryIVF::IndexBinaryIVF(faiss::IndexBinary *,size_t,size_t)\n"
56814 " faiss::IndexBinaryIVF::IndexBinaryIVF()\n");
56819 SWIGINTERN PyObject *_wrap_delete_IndexBinaryIVF(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56820 PyObject *resultobj = 0;
56824 PyObject * obj0 = 0 ;
56826 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexBinaryIVF",&obj0)) SWIG_fail;
56827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, SWIG_POINTER_DISOWN | 0 );
56828 if (!SWIG_IsOK(res1)) {
56829 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexBinaryIVF" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56833 Py_BEGIN_ALLOW_THREADS
56837 PyEval_RestoreThread(_save);
56838 PyErr_SetString(PyExc_RuntimeError, e.
what());
56841 Py_END_ALLOW_THREADS
56843 resultobj = SWIG_Py_Void();
56850 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56851 PyObject *resultobj = 0;
56855 PyObject * obj0 = 0 ;
56857 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_reset",&obj0)) SWIG_fail;
56858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56859 if (!SWIG_IsOK(res1)) {
56860 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_reset" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56864 Py_BEGIN_ALLOW_THREADS
56868 PyEval_RestoreThread(_save);
56869 PyErr_SetString(PyExc_RuntimeError, e.
what());
56872 Py_END_ALLOW_THREADS
56874 resultobj = SWIG_Py_Void();
56881 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56882 PyObject *resultobj = 0;
56885 uint8_t *arg3 = (uint8_t *) 0 ;
56892 PyObject * obj0 = 0 ;
56893 PyObject * obj1 = 0 ;
56894 PyObject * obj2 = 0 ;
56896 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryIVF_train",&obj0,&obj1,&obj2)) SWIG_fail;
56897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56898 if (!SWIG_IsOK(res1)) {
56899 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_train" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56902 ecode2 = SWIG_AsVal_long(obj1, &val2);
56903 if (!SWIG_IsOK(ecode2)) {
56904 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_train" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
56907 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
56908 if (!SWIG_IsOK(res3)) {
56909 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_train" "', argument " "3"" of type '" "uint8_t const *""'");
56911 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
56913 Py_BEGIN_ALLOW_THREADS
56915 (arg1)->train(arg2,(uint8_t
const *)arg3);
56917 PyEval_RestoreThread(_save);
56918 PyErr_SetString(PyExc_RuntimeError, e.
what());
56921 Py_END_ALLOW_THREADS
56923 resultobj = SWIG_Py_Void();
56930 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56931 PyObject *resultobj = 0;
56934 uint8_t *arg3 = (uint8_t *) 0 ;
56941 PyObject * obj0 = 0 ;
56942 PyObject * obj1 = 0 ;
56943 PyObject * obj2 = 0 ;
56945 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryIVF_add",&obj0,&obj1,&obj2)) SWIG_fail;
56946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
56947 if (!SWIG_IsOK(res1)) {
56948 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_add" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
56951 ecode2 = SWIG_AsVal_long(obj1, &val2);
56952 if (!SWIG_IsOK(ecode2)) {
56953 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_add" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
56956 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
56957 if (!SWIG_IsOK(res3)) {
56958 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_add" "', argument " "3"" of type '" "uint8_t const *""'");
56960 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
56962 Py_BEGIN_ALLOW_THREADS
56964 (arg1)->add(arg2,(uint8_t
const *)arg3);
56966 PyEval_RestoreThread(_save);
56967 PyErr_SetString(PyExc_RuntimeError, e.
what());
56970 Py_END_ALLOW_THREADS
56972 resultobj = SWIG_Py_Void();
56979 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56980 PyObject *resultobj = 0;
56983 uint8_t *arg3 = (uint8_t *) 0 ;
56984 long *arg4 = (
long *) 0 ;
56993 PyObject * obj0 = 0 ;
56994 PyObject * obj1 = 0 ;
56995 PyObject * obj2 = 0 ;
56996 PyObject * obj3 = 0 ;
56998 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexBinaryIVF_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
56999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57000 if (!SWIG_IsOK(res1)) {
57001 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_add_with_ids" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57004 ecode2 = SWIG_AsVal_long(obj1, &val2);
57005 if (!SWIG_IsOK(ecode2)) {
57006 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_add_with_ids" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
57009 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
57010 if (!SWIG_IsOK(res3)) {
57011 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_add_with_ids" "', argument " "3"" of type '" "uint8_t const *""'");
57013 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
57014 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
57015 if (!SWIG_IsOK(res4)) {
57016 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinaryIVF_add_with_ids" "', argument " "4"" of type '" "long const *""'");
57018 arg4 =
reinterpret_cast< long *
>(argp4);
57020 Py_BEGIN_ALLOW_THREADS
57022 (arg1)->add_with_ids(arg2,(uint8_t
const *)arg3,(
long const *)arg4);
57024 PyEval_RestoreThread(_save);
57025 PyErr_SetString(PyExc_RuntimeError, e.
what());
57028 Py_END_ALLOW_THREADS
57030 resultobj = SWIG_Py_Void();
57037 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_add_core(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57038 PyObject *resultobj = 0;
57041 uint8_t *arg3 = (uint8_t *) 0 ;
57042 long *arg4 = (
long *) 0 ;
57043 long *arg5 = (
long *) 0 ;
57054 PyObject * obj0 = 0 ;
57055 PyObject * obj1 = 0 ;
57056 PyObject * obj2 = 0 ;
57057 PyObject * obj3 = 0 ;
57058 PyObject * obj4 = 0 ;
57060 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexBinaryIVF_add_core",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
57061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57062 if (!SWIG_IsOK(res1)) {
57063 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_add_core" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57066 ecode2 = SWIG_AsVal_long(obj1, &val2);
57067 if (!SWIG_IsOK(ecode2)) {
57068 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_add_core" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
57071 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
57072 if (!SWIG_IsOK(res3)) {
57073 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_add_core" "', argument " "3"" of type '" "uint8_t const *""'");
57075 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
57076 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
57077 if (!SWIG_IsOK(res4)) {
57078 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinaryIVF_add_core" "', argument " "4"" of type '" "long const *""'");
57080 arg4 =
reinterpret_cast< long *
>(argp4);
57081 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
57082 if (!SWIG_IsOK(res5)) {
57083 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryIVF_add_core" "', argument " "5"" of type '" "long const *""'");
57085 arg5 =
reinterpret_cast< long *
>(argp5);
57087 Py_BEGIN_ALLOW_THREADS
57089 (arg1)->add_core(arg2,(uint8_t
const *)arg3,(
long const *)arg4,(
long const *)arg5);
57090 } catch(faiss::FaissException & e) {
57091 PyEval_RestoreThread(_save);
57092 PyErr_SetString(PyExc_RuntimeError, e.what());
57095 Py_END_ALLOW_THREADS
57097 resultobj = SWIG_Py_Void();
57104 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_search_preassigned__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57105 PyObject *resultobj = 0;
57108 uint8_t *arg3 = (uint8_t *) 0 ;
57111 int32_t *arg6 = (int32_t *) 0 ;
57112 int32_t *arg7 = (int32_t *) 0 ;
57136 PyObject * obj0 = 0 ;
57137 PyObject * obj1 = 0 ;
57138 PyObject * obj2 = 0 ;
57139 PyObject * obj3 = 0 ;
57140 PyObject * obj4 = 0 ;
57141 PyObject * obj5 = 0 ;
57142 PyObject * obj6 = 0 ;
57143 PyObject * obj7 = 0 ;
57144 PyObject * obj8 = 0 ;
57145 PyObject * obj9 = 0 ;
57147 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOOO:IndexBinaryIVF_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
57148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57149 if (!SWIG_IsOK(res1)) {
57150 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
57153 ecode2 = SWIG_AsVal_long(obj1, &val2);
57154 if (!SWIG_IsOK(ecode2)) {
57155 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
57158 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
57159 if (!SWIG_IsOK(res3)) {
57160 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "3"" of type '" "uint8_t const *""'");
57162 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
57163 ecode4 = SWIG_AsVal_long(obj3, &val4);
57164 if (!SWIG_IsOK(ecode4)) {
57165 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
57168 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
57169 if (!SWIG_IsOK(res5)) {
57170 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "5"" of type '" "faiss::IndexBinary::idx_t const *""'");
57173 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 | 0 );
57174 if (!SWIG_IsOK(res6)) {
57175 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "6"" of type '" "int32_t const *""'");
57177 arg6 =
reinterpret_cast< int32_t *
>(argp6);
57178 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_int, 0 | 0 );
57179 if (!SWIG_IsOK(res7)) {
57180 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "7"" of type '" "int32_t *""'");
57182 arg7 =
reinterpret_cast< int32_t *
>(argp7);
57183 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
57184 if (!SWIG_IsOK(res8)) {
57185 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "8"" of type '" "faiss::IndexBinary::idx_t *""'");
57188 ecode9 = SWIG_AsVal_bool(obj8, &val9);
57189 if (!SWIG_IsOK(ecode9)) {
57190 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "9"" of type '" "bool""'");
57192 arg9 =
static_cast< bool >(val9);
57193 res10 = SWIG_ConvertPtr(obj9, &argp10,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
57194 if (!SWIG_IsOK(res10)) {
57195 SWIG_exception_fail(SWIG_ArgError(res10),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "10"" of type '" "faiss::IVFSearchParameters const *""'");
57199 Py_BEGIN_ALLOW_THREADS
57203 PyEval_RestoreThread(_save);
57204 PyErr_SetString(PyExc_RuntimeError, e.
what());
57207 Py_END_ALLOW_THREADS
57209 resultobj = SWIG_Py_Void();
57216 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_search_preassigned__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57217 PyObject *resultobj = 0;
57220 uint8_t *arg3 = (uint8_t *) 0 ;
57223 int32_t *arg6 = (int32_t *) 0 ;
57224 int32_t *arg7 = (int32_t *) 0 ;
57245 PyObject * obj0 = 0 ;
57246 PyObject * obj1 = 0 ;
57247 PyObject * obj2 = 0 ;
57248 PyObject * obj3 = 0 ;
57249 PyObject * obj4 = 0 ;
57250 PyObject * obj5 = 0 ;
57251 PyObject * obj6 = 0 ;
57252 PyObject * obj7 = 0 ;
57253 PyObject * obj8 = 0 ;
57255 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOO:IndexBinaryIVF_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
57256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57257 if (!SWIG_IsOK(res1)) {
57258 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
57261 ecode2 = SWIG_AsVal_long(obj1, &val2);
57262 if (!SWIG_IsOK(ecode2)) {
57263 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
57266 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
57267 if (!SWIG_IsOK(res3)) {
57268 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "3"" of type '" "uint8_t const *""'");
57270 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
57271 ecode4 = SWIG_AsVal_long(obj3, &val4);
57272 if (!SWIG_IsOK(ecode4)) {
57273 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
57276 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
57277 if (!SWIG_IsOK(res5)) {
57278 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "5"" of type '" "faiss::IndexBinary::idx_t const *""'");
57281 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 | 0 );
57282 if (!SWIG_IsOK(res6)) {
57283 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "6"" of type '" "int32_t const *""'");
57285 arg6 =
reinterpret_cast< int32_t *
>(argp6);
57286 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_int, 0 | 0 );
57287 if (!SWIG_IsOK(res7)) {
57288 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "7"" of type '" "int32_t *""'");
57290 arg7 =
reinterpret_cast< int32_t *
>(argp7);
57291 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
57292 if (!SWIG_IsOK(res8)) {
57293 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "8"" of type '" "faiss::IndexBinary::idx_t *""'");
57296 ecode9 = SWIG_AsVal_bool(obj8, &val9);
57297 if (!SWIG_IsOK(ecode9)) {
57298 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "9"" of type '" "bool""'");
57300 arg9 =
static_cast< bool >(val9);
57302 Py_BEGIN_ALLOW_THREADS
57306 PyEval_RestoreThread(_save);
57307 PyErr_SetString(PyExc_RuntimeError, e.
what());
57310 Py_END_ALLOW_THREADS
57312 resultobj = SWIG_Py_Void();
57319 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_search_preassigned(PyObject *
self, PyObject *args) {
57321 PyObject *argv[11] = {
57326 if (!PyTuple_Check(args)) SWIG_fail;
57327 argc = args ? PyObject_Length(args) : 0;
57328 for (ii = 0; (ii < 10) && (ii < argc); ii++) {
57329 argv[ii] = PyTuple_GET_ITEM(args,ii);
57334 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
57335 _v = SWIG_CheckState(res);
57338 int res = SWIG_AsVal_long(argv[1], NULL);
57339 _v = SWIG_CheckState(res);
57343 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
57344 _v = SWIG_CheckState(res);
57347 int res = SWIG_AsVal_long(argv[3], NULL);
57348 _v = SWIG_CheckState(res);
57352 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
57353 _v = SWIG_CheckState(res);
57356 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0);
57357 _v = SWIG_CheckState(res);
57360 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_int, 0);
57361 _v = SWIG_CheckState(res);
57364 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
57365 _v = SWIG_CheckState(res);
57368 int res = SWIG_AsVal_bool(argv[8], NULL);
57369 _v = SWIG_CheckState(res);
57372 return _wrap_IndexBinaryIVF_search_preassigned__SWIG_1(
self, args);
57386 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
57387 _v = SWIG_CheckState(res);
57390 int res = SWIG_AsVal_long(argv[1], NULL);
57391 _v = SWIG_CheckState(res);
57395 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
57396 _v = SWIG_CheckState(res);
57399 int res = SWIG_AsVal_long(argv[3], NULL);
57400 _v = SWIG_CheckState(res);
57404 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
57405 _v = SWIG_CheckState(res);
57408 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0);
57409 _v = SWIG_CheckState(res);
57412 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_int, 0);
57413 _v = SWIG_CheckState(res);
57416 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
57417 _v = SWIG_CheckState(res);
57420 int res = SWIG_AsVal_bool(argv[8], NULL);
57421 _v = SWIG_CheckState(res);
57425 int res = SWIG_ConvertPtr(argv[9], &vptr, SWIGTYPE_p_faiss__IVFSearchParameters, 0);
57426 _v = SWIG_CheckState(res);
57428 return _wrap_IndexBinaryIVF_search_preassigned__SWIG_0(
self, args);
57442 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexBinaryIVF_search_preassigned'.\n"
57443 " Possible C/C++ prototypes are:\n"
57444 " faiss::IndexBinaryIVF::search_preassigned(faiss::IndexBinary::idx_t,uint8_t const *,faiss::IndexBinary::idx_t,faiss::IndexBinary::idx_t const *,int32_t const *,int32_t *,faiss::IndexBinary::idx_t *,bool,faiss::IVFSearchParameters const *) const\n"
57445 " faiss::IndexBinaryIVF::search_preassigned(faiss::IndexBinary::idx_t,uint8_t const *,faiss::IndexBinary::idx_t,faiss::IndexBinary::idx_t const *,int32_t const *,int32_t *,faiss::IndexBinary::idx_t *,bool) const\n");
57450 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_get_InvertedListScanner__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57451 PyObject *resultobj = 0;
57458 PyObject * obj0 = 0 ;
57459 PyObject * obj1 = 0 ;
57462 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_get_InvertedListScanner",&obj0,&obj1)) SWIG_fail;
57463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57464 if (!SWIG_IsOK(res1)) {
57465 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_get_InvertedListScanner" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
57468 ecode2 = SWIG_AsVal_bool(obj1, &val2);
57469 if (!SWIG_IsOK(ecode2)) {
57470 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_get_InvertedListScanner" "', argument " "2"" of type '" "bool""'");
57472 arg2 =
static_cast< bool >(val2);
57474 Py_BEGIN_ALLOW_THREADS
57478 PyEval_RestoreThread(_save);
57479 PyErr_SetString(PyExc_RuntimeError, e.
what());
57482 Py_END_ALLOW_THREADS
57484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__BinaryInvertedListScanner, 0 | 0 );
57491 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_get_InvertedListScanner__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57492 PyObject *resultobj = 0;
57496 PyObject * obj0 = 0 ;
57499 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_get_InvertedListScanner",&obj0)) SWIG_fail;
57500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57501 if (!SWIG_IsOK(res1)) {
57502 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_get_InvertedListScanner" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
57506 Py_BEGIN_ALLOW_THREADS
57510 PyEval_RestoreThread(_save);
57511 PyErr_SetString(PyExc_RuntimeError, e.
what());
57514 Py_END_ALLOW_THREADS
57516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__BinaryInvertedListScanner, 0 | 0 );
57523 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_get_InvertedListScanner(PyObject *
self, PyObject *args) {
57525 PyObject *argv[3] = {
57530 if (!PyTuple_Check(args)) SWIG_fail;
57531 argc = args ? PyObject_Length(args) : 0;
57532 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
57533 argv[ii] = PyTuple_GET_ITEM(args,ii);
57538 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
57539 _v = SWIG_CheckState(res);
57541 return _wrap_IndexBinaryIVF_get_InvertedListScanner__SWIG_1(
self, args);
57547 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
57548 _v = SWIG_CheckState(res);
57551 int res = SWIG_AsVal_bool(argv[1], NULL);
57552 _v = SWIG_CheckState(res);
57555 return _wrap_IndexBinaryIVF_get_InvertedListScanner__SWIG_0(
self, args);
57561 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexBinaryIVF_get_InvertedListScanner'.\n"
57562 " Possible C/C++ prototypes are:\n"
57563 " faiss::IndexBinaryIVF::get_InvertedListScanner(bool) const\n"
57564 " faiss::IndexBinaryIVF::get_InvertedListScanner() const\n");
57569 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57570 PyObject *resultobj = 0;
57573 uint8_t *arg3 = (uint8_t *) 0 ;
57575 int32_t *arg5 = (int32_t *) 0 ;
57589 PyObject * obj0 = 0 ;
57590 PyObject * obj1 = 0 ;
57591 PyObject * obj2 = 0 ;
57592 PyObject * obj3 = 0 ;
57593 PyObject * obj4 = 0 ;
57594 PyObject * obj5 = 0 ;
57596 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexBinaryIVF_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
57597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57598 if (!SWIG_IsOK(res1)) {
57599 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_search" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
57602 ecode2 = SWIG_AsVal_long(obj1, &val2);
57603 if (!SWIG_IsOK(ecode2)) {
57604 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_search" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
57607 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
57608 if (!SWIG_IsOK(res3)) {
57609 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_search" "', argument " "3"" of type '" "uint8_t const *""'");
57611 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
57612 ecode4 = SWIG_AsVal_long(obj3, &val4);
57613 if (!SWIG_IsOK(ecode4)) {
57614 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryIVF_search" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
57617 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
57618 if (!SWIG_IsOK(res5)) {
57619 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryIVF_search" "', argument " "5"" of type '" "int32_t *""'");
57621 arg5 =
reinterpret_cast< int32_t *
>(argp5);
57622 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
57623 if (!SWIG_IsOK(res6)) {
57624 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinaryIVF_search" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
57628 Py_BEGIN_ALLOW_THREADS
57632 PyEval_RestoreThread(_save);
57633 PyErr_SetString(PyExc_RuntimeError, e.
what());
57636 Py_END_ALLOW_THREADS
57638 resultobj = SWIG_Py_Void();
57645 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57646 PyObject *resultobj = 0;
57649 uint8_t *arg3 = (uint8_t *) 0 ;
57656 PyObject * obj0 = 0 ;
57657 PyObject * obj1 = 0 ;
57658 PyObject * obj2 = 0 ;
57660 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryIVF_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
57661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57662 if (!SWIG_IsOK(res1)) {
57663 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_reconstruct" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
57666 ecode2 = SWIG_AsVal_long(obj1, &val2);
57667 if (!SWIG_IsOK(ecode2)) {
57668 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_reconstruct" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
57671 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
57672 if (!SWIG_IsOK(res3)) {
57673 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_reconstruct" "', argument " "3"" of type '" "uint8_t *""'");
57675 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
57677 Py_BEGIN_ALLOW_THREADS
57681 PyEval_RestoreThread(_save);
57682 PyErr_SetString(PyExc_RuntimeError, e.
what());
57685 Py_END_ALLOW_THREADS
57687 resultobj = SWIG_Py_Void();
57694 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57695 PyObject *resultobj = 0;
57699 uint8_t *arg4 = (uint8_t *) 0 ;
57708 PyObject * obj0 = 0 ;
57709 PyObject * obj1 = 0 ;
57710 PyObject * obj2 = 0 ;
57711 PyObject * obj3 = 0 ;
57713 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexBinaryIVF_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
57714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57715 if (!SWIG_IsOK(res1)) {
57716 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_reconstruct_n" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
57719 ecode2 = SWIG_AsVal_long(obj1, &val2);
57720 if (!SWIG_IsOK(ecode2)) {
57721 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_reconstruct_n" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
57724 ecode3 = SWIG_AsVal_long(obj2, &val3);
57725 if (!SWIG_IsOK(ecode3)) {
57726 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexBinaryIVF_reconstruct_n" "', argument " "3"" of type '" "faiss::IndexBinary::idx_t""'");
57729 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
57730 if (!SWIG_IsOK(res4)) {
57731 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinaryIVF_reconstruct_n" "', argument " "4"" of type '" "uint8_t *""'");
57733 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
57735 Py_BEGIN_ALLOW_THREADS
57739 PyEval_RestoreThread(_save);
57740 PyErr_SetString(PyExc_RuntimeError, e.
what());
57743 Py_END_ALLOW_THREADS
57745 resultobj = SWIG_Py_Void();
57752 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_search_and_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57753 PyObject *resultobj = 0;
57756 uint8_t *arg3 = (uint8_t *) 0 ;
57758 int32_t *arg5 = (int32_t *) 0 ;
57760 uint8_t *arg7 = (uint8_t *) 0 ;
57775 PyObject * obj0 = 0 ;
57776 PyObject * obj1 = 0 ;
57777 PyObject * obj2 = 0 ;
57778 PyObject * obj3 = 0 ;
57779 PyObject * obj4 = 0 ;
57780 PyObject * obj5 = 0 ;
57781 PyObject * obj6 = 0 ;
57783 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:IndexBinaryIVF_search_and_reconstruct",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
57784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57785 if (!SWIG_IsOK(res1)) {
57786 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_search_and_reconstruct" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
57789 ecode2 = SWIG_AsVal_long(obj1, &val2);
57790 if (!SWIG_IsOK(ecode2)) {
57791 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_search_and_reconstruct" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
57794 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
57795 if (!SWIG_IsOK(res3)) {
57796 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_search_and_reconstruct" "', argument " "3"" of type '" "uint8_t const *""'");
57798 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
57799 ecode4 = SWIG_AsVal_long(obj3, &val4);
57800 if (!SWIG_IsOK(ecode4)) {
57801 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryIVF_search_and_reconstruct" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
57804 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
57805 if (!SWIG_IsOK(res5)) {
57806 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryIVF_search_and_reconstruct" "', argument " "5"" of type '" "int32_t *""'");
57808 arg5 =
reinterpret_cast< int32_t *
>(argp5);
57809 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
57810 if (!SWIG_IsOK(res6)) {
57811 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinaryIVF_search_and_reconstruct" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
57814 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_char, 0 | 0 );
57815 if (!SWIG_IsOK(res7)) {
57816 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexBinaryIVF_search_and_reconstruct" "', argument " "7"" of type '" "uint8_t *""'");
57818 arg7 =
reinterpret_cast< uint8_t *
>(argp7);
57820 Py_BEGIN_ALLOW_THREADS
57822 ((
faiss::IndexBinaryIVF const *)arg1)->search_and_reconstruct(arg2,(uint8_t
const *)arg3,arg4,arg5,arg6,arg7);
57824 PyEval_RestoreThread(_save);
57825 PyErr_SetString(PyExc_RuntimeError, e.
what());
57828 Py_END_ALLOW_THREADS
57830 resultobj = SWIG_Py_Void();
57837 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_reconstruct_from_offset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57838 PyObject *resultobj = 0;
57842 uint8_t *arg4 = (uint8_t *) 0 ;
57851 PyObject * obj0 = 0 ;
57852 PyObject * obj1 = 0 ;
57853 PyObject * obj2 = 0 ;
57854 PyObject * obj3 = 0 ;
57856 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexBinaryIVF_reconstruct_from_offset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
57857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57858 if (!SWIG_IsOK(res1)) {
57859 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_reconstruct_from_offset" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
57862 ecode2 = SWIG_AsVal_long(obj1, &val2);
57863 if (!SWIG_IsOK(ecode2)) {
57864 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_reconstruct_from_offset" "', argument " "2"" of type '" "long""'");
57866 arg2 =
static_cast< long >(val2);
57867 ecode3 = SWIG_AsVal_long(obj2, &val3);
57868 if (!SWIG_IsOK(ecode3)) {
57869 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexBinaryIVF_reconstruct_from_offset" "', argument " "3"" of type '" "long""'");
57871 arg3 =
static_cast< long >(val3);
57872 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
57873 if (!SWIG_IsOK(res4)) {
57874 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinaryIVF_reconstruct_from_offset" "', argument " "4"" of type '" "uint8_t *""'");
57876 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
57878 Py_BEGIN_ALLOW_THREADS
57882 PyEval_RestoreThread(_save);
57883 PyErr_SetString(PyExc_RuntimeError, e.
what());
57886 Py_END_ALLOW_THREADS
57888 resultobj = SWIG_Py_Void();
57895 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57896 PyObject *resultobj = 0;
57903 PyObject * obj0 = 0 ;
57904 PyObject * obj1 = 0 ;
57907 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_remove_ids",&obj0,&obj1)) SWIG_fail;
57908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57909 if (!SWIG_IsOK(res1)) {
57910 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_remove_ids" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57913 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
57914 if (!SWIG_IsOK(res2)) {
57915 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
57918 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexBinaryIVF_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
57922 Py_BEGIN_ALLOW_THREADS
57926 PyEval_RestoreThread(_save);
57927 PyErr_SetString(PyExc_RuntimeError, e.
what());
57930 Py_END_ALLOW_THREADS
57932 resultobj = SWIG_From_long(static_cast< long >(result));
57939 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_merge_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57940 PyObject *resultobj = 0;
57950 PyObject * obj0 = 0 ;
57951 PyObject * obj1 = 0 ;
57952 PyObject * obj2 = 0 ;
57954 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryIVF_merge_from",&obj0,&obj1,&obj2)) SWIG_fail;
57955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57956 if (!SWIG_IsOK(res1)) {
57957 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_merge_from" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IndexBinaryIVF, 0 );
57961 if (!SWIG_IsOK(res2)) {
57962 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_merge_from" "', argument " "2"" of type '" "faiss::IndexBinaryIVF &""'");
57965 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexBinaryIVF_merge_from" "', argument " "2"" of type '" "faiss::IndexBinaryIVF &""'");
57968 ecode3 = SWIG_AsVal_long(obj2, &val3);
57969 if (!SWIG_IsOK(ecode3)) {
57970 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexBinaryIVF_merge_from" "', argument " "3"" of type '" "faiss::IndexBinary::idx_t""'");
57974 Py_BEGIN_ALLOW_THREADS
57976 (arg1)->merge_from(*arg2,arg3);
57978 PyEval_RestoreThread(_save);
57979 PyErr_SetString(PyExc_RuntimeError, e.
what());
57982 Py_END_ALLOW_THREADS
57984 resultobj = SWIG_Py_Void();
57991 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_get_list_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57992 PyObject *resultobj = 0;
57999 PyObject * obj0 = 0 ;
58000 PyObject * obj1 = 0 ;
58003 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_get_list_size",&obj0,&obj1)) SWIG_fail;
58004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58005 if (!SWIG_IsOK(res1)) {
58006 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_get_list_size" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
58009 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
58010 if (!SWIG_IsOK(ecode2)) {
58011 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_get_list_size" "', argument " "2"" of type '" "size_t""'");
58013 arg2 =
static_cast< size_t >(val2);
58015 Py_BEGIN_ALLOW_THREADS
58019 PyEval_RestoreThread(_save);
58020 PyErr_SetString(PyExc_RuntimeError, e.
what());
58023 Py_END_ALLOW_THREADS
58025 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
58032 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_make_direct_map__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58033 PyObject *resultobj = 0;
58040 PyObject * obj0 = 0 ;
58041 PyObject * obj1 = 0 ;
58043 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_make_direct_map",&obj0,&obj1)) SWIG_fail;
58044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58045 if (!SWIG_IsOK(res1)) {
58046 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_make_direct_map" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
58049 ecode2 = SWIG_AsVal_bool(obj1, &val2);
58050 if (!SWIG_IsOK(ecode2)) {
58051 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_make_direct_map" "', argument " "2"" of type '" "bool""'");
58053 arg2 =
static_cast< bool >(val2);
58055 Py_BEGIN_ALLOW_THREADS
58057 (arg1)->make_direct_map(arg2);
58059 PyEval_RestoreThread(_save);
58060 PyErr_SetString(PyExc_RuntimeError, e.
what());
58063 Py_END_ALLOW_THREADS
58065 resultobj = SWIG_Py_Void();
58072 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_make_direct_map__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58073 PyObject *resultobj = 0;
58077 PyObject * obj0 = 0 ;
58079 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_make_direct_map",&obj0)) SWIG_fail;
58080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58081 if (!SWIG_IsOK(res1)) {
58082 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_make_direct_map" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
58086 Py_BEGIN_ALLOW_THREADS
58088 (arg1)->make_direct_map();
58090 PyEval_RestoreThread(_save);
58091 PyErr_SetString(PyExc_RuntimeError, e.
what());
58094 Py_END_ALLOW_THREADS
58096 resultobj = SWIG_Py_Void();
58103 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_make_direct_map(PyObject *
self, PyObject *args) {
58105 PyObject *argv[3] = {
58110 if (!PyTuple_Check(args)) SWIG_fail;
58111 argc = args ? PyObject_Length(args) : 0;
58112 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
58113 argv[ii] = PyTuple_GET_ITEM(args,ii);
58118 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
58119 _v = SWIG_CheckState(res);
58121 return _wrap_IndexBinaryIVF_make_direct_map__SWIG_1(
self, args);
58127 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
58128 _v = SWIG_CheckState(res);
58131 int res = SWIG_AsVal_bool(argv[1], NULL);
58132 _v = SWIG_CheckState(res);
58135 return _wrap_IndexBinaryIVF_make_direct_map__SWIG_0(
self, args);
58141 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexBinaryIVF_make_direct_map'.\n"
58142 " Possible C/C++ prototypes are:\n"
58143 " faiss::IndexBinaryIVF::make_direct_map(bool)\n"
58144 " faiss::IndexBinaryIVF::make_direct_map()\n");
58149 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_imbalance_factor(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58150 PyObject *resultobj = 0;
58154 PyObject * obj0 = 0 ;
58157 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_imbalance_factor",&obj0)) SWIG_fail;
58158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58159 if (!SWIG_IsOK(res1)) {
58160 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_imbalance_factor" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
58164 Py_BEGIN_ALLOW_THREADS
58168 PyEval_RestoreThread(_save);
58169 PyErr_SetString(PyExc_RuntimeError, e.
what());
58172 Py_END_ALLOW_THREADS
58174 resultobj = SWIG_From_double(static_cast< double >(result));
58181 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_print_stats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58182 PyObject *resultobj = 0;
58186 PyObject * obj0 = 0 ;
58188 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_print_stats",&obj0)) SWIG_fail;
58189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58190 if (!SWIG_IsOK(res1)) {
58191 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_print_stats" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
58195 Py_BEGIN_ALLOW_THREADS
58199 PyEval_RestoreThread(_save);
58200 PyErr_SetString(PyExc_RuntimeError, e.
what());
58203 Py_END_ALLOW_THREADS
58205 resultobj = SWIG_Py_Void();
58212 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_replace_invlists__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58213 PyObject *resultobj = 0;
58223 PyObject * obj0 = 0 ;
58224 PyObject * obj1 = 0 ;
58225 PyObject * obj2 = 0 ;
58227 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryIVF_replace_invlists",&obj0,&obj1,&obj2)) SWIG_fail;
58228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58229 if (!SWIG_IsOK(res1)) {
58230 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_replace_invlists" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
58233 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
58234 if (!SWIG_IsOK(res2)) {
58235 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_replace_invlists" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
58238 ecode3 = SWIG_AsVal_bool(obj2, &val3);
58239 if (!SWIG_IsOK(ecode3)) {
58240 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexBinaryIVF_replace_invlists" "', argument " "3"" of type '" "bool""'");
58242 arg3 =
static_cast< bool >(val3);
58244 Py_BEGIN_ALLOW_THREADS
58246 (arg1)->replace_invlists(arg2,arg3);
58248 PyEval_RestoreThread(_save);
58249 PyErr_SetString(PyExc_RuntimeError, e.
what());
58252 Py_END_ALLOW_THREADS
58254 resultobj = SWIG_Py_Void();
58261 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_replace_invlists__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58262 PyObject *resultobj = 0;
58269 PyObject * obj0 = 0 ;
58270 PyObject * obj1 = 0 ;
58272 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_replace_invlists",&obj0,&obj1)) SWIG_fail;
58273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58274 if (!SWIG_IsOK(res1)) {
58275 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_replace_invlists" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
58278 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
58279 if (!SWIG_IsOK(res2)) {
58280 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_replace_invlists" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
58284 Py_BEGIN_ALLOW_THREADS
58286 (arg1)->replace_invlists(arg2);
58288 PyEval_RestoreThread(_save);
58289 PyErr_SetString(PyExc_RuntimeError, e.
what());
58292 Py_END_ALLOW_THREADS
58294 resultobj = SWIG_Py_Void();
58301 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_replace_invlists(PyObject *
self, PyObject *args) {
58303 PyObject *argv[4] = {
58308 if (!PyTuple_Check(args)) SWIG_fail;
58309 argc = args ? PyObject_Length(args) : 0;
58310 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
58311 argv[ii] = PyTuple_GET_ITEM(args,ii);
58316 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
58317 _v = SWIG_CheckState(res);
58320 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__InvertedLists, 0);
58321 _v = SWIG_CheckState(res);
58323 return _wrap_IndexBinaryIVF_replace_invlists__SWIG_1(
self, args);
58330 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
58331 _v = SWIG_CheckState(res);
58334 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__InvertedLists, 0);
58335 _v = SWIG_CheckState(res);
58338 int res = SWIG_AsVal_bool(argv[2], NULL);
58339 _v = SWIG_CheckState(res);
58342 return _wrap_IndexBinaryIVF_replace_invlists__SWIG_0(
self, args);
58349 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexBinaryIVF_replace_invlists'.\n"
58350 " Possible C/C++ prototypes are:\n"
58351 " faiss::IndexBinaryIVF::replace_invlists(faiss::InvertedLists *,bool)\n"
58352 " faiss::IndexBinaryIVF::replace_invlists(faiss::InvertedLists *)\n");
58357 SWIGINTERN PyObject *IndexBinaryIVF_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58359 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
58360 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexBinaryIVF, SWIG_NewClientData(obj));
58361 return SWIG_Py_Void();
58364 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58365 PyObject *resultobj = 0;
58372 PyObject * obj0 = 0 ;
58373 PyObject * obj1 = 0 ;
58375 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryFromFloat_index_set",&obj0,&obj1)) SWIG_fail;
58376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
58377 if (!SWIG_IsOK(res1)) {
58378 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_index_set" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
58381 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
58382 if (!SWIG_IsOK(res2)) {
58383 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryFromFloat_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
58386 if (arg1) (arg1)->index = arg2;
58387 resultobj = SWIG_Py_Void();
58394 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58395 PyObject *resultobj = 0;
58399 PyObject * obj0 = 0 ;
58402 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryFromFloat_index_get",&obj0)) SWIG_fail;
58403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
58404 if (!SWIG_IsOK(res1)) {
58405 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_index_get" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
58409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
58416 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58417 PyObject *resultobj = 0;
58424 PyObject * obj0 = 0 ;
58425 PyObject * obj1 = 0 ;
58427 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryFromFloat_own_fields_set",&obj0,&obj1)) SWIG_fail;
58428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
58429 if (!SWIG_IsOK(res1)) {
58430 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_own_fields_set" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
58433 ecode2 = SWIG_AsVal_bool(obj1, &val2);
58434 if (!SWIG_IsOK(ecode2)) {
58435 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFromFloat_own_fields_set" "', argument " "2"" of type '" "bool""'");
58437 arg2 =
static_cast< bool >(val2);
58438 if (arg1) (arg1)->own_fields = arg2;
58439 resultobj = SWIG_Py_Void();
58446 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58447 PyObject *resultobj = 0;
58451 PyObject * obj0 = 0 ;
58454 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryFromFloat_own_fields_get",&obj0)) SWIG_fail;
58455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
58456 if (!SWIG_IsOK(res1)) {
58457 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_own_fields_get" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
58460 result = (bool) ((arg1)->own_fields);
58461 resultobj = SWIG_From_bool(static_cast< bool >(result));
58468 SWIGINTERN PyObject *_wrap_new_IndexBinaryFromFloat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58469 PyObject *resultobj = 0;
58472 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexBinaryFromFloat")) SWIG_fail;
58474 Py_BEGIN_ALLOW_THREADS
58478 PyEval_RestoreThread(_save);
58479 PyErr_SetString(PyExc_RuntimeError, e.
what());
58482 Py_END_ALLOW_THREADS
58484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryFromFloat, SWIG_POINTER_NEW | 0 );
58491 SWIGINTERN PyObject *_wrap_new_IndexBinaryFromFloat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58492 PyObject *resultobj = 0;
58496 PyObject * obj0 = 0 ;
58499 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexBinaryFromFloat",&obj0)) SWIG_fail;
58500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
58501 if (!SWIG_IsOK(res1)) {
58502 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexBinaryFromFloat" "', argument " "1"" of type '" "faiss::Index *""'");
58506 Py_BEGIN_ALLOW_THREADS
58510 PyEval_RestoreThread(_save);
58511 PyErr_SetString(PyExc_RuntimeError, e.
what());
58514 Py_END_ALLOW_THREADS
58516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryFromFloat, SWIG_POINTER_NEW | 0 );
58523 SWIGINTERN PyObject *_wrap_new_IndexBinaryFromFloat(PyObject *
self, PyObject *args) {
58525 PyObject *argv[2] = {
58530 if (!PyTuple_Check(args)) SWIG_fail;
58531 argc = args ? PyObject_Length(args) : 0;
58532 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
58533 argv[ii] = PyTuple_GET_ITEM(args,ii);
58536 return _wrap_new_IndexBinaryFromFloat__SWIG_0(
self, args);
58541 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
58542 _v = SWIG_CheckState(res);
58544 return _wrap_new_IndexBinaryFromFloat__SWIG_1(
self, args);
58549 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexBinaryFromFloat'.\n"
58550 " Possible C/C++ prototypes are:\n"
58551 " faiss::IndexBinaryFromFloat::IndexBinaryFromFloat()\n"
58552 " faiss::IndexBinaryFromFloat::IndexBinaryFromFloat(faiss::Index *)\n");
58557 SWIGINTERN PyObject *_wrap_delete_IndexBinaryFromFloat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58558 PyObject *resultobj = 0;
58562 PyObject * obj0 = 0 ;
58564 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexBinaryFromFloat",&obj0)) SWIG_fail;
58565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, SWIG_POINTER_DISOWN | 0 );
58566 if (!SWIG_IsOK(res1)) {
58567 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexBinaryFromFloat" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
58571 Py_BEGIN_ALLOW_THREADS
58575 PyEval_RestoreThread(_save);
58576 PyErr_SetString(PyExc_RuntimeError, e.
what());
58579 Py_END_ALLOW_THREADS
58581 resultobj = SWIG_Py_Void();
58588 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58589 PyObject *resultobj = 0;
58592 uint8_t *arg3 = (uint8_t *) 0 ;
58599 PyObject * obj0 = 0 ;
58600 PyObject * obj1 = 0 ;
58601 PyObject * obj2 = 0 ;
58603 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryFromFloat_add",&obj0,&obj1,&obj2)) SWIG_fail;
58604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
58605 if (!SWIG_IsOK(res1)) {
58606 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_add" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
58609 ecode2 = SWIG_AsVal_long(obj1, &val2);
58610 if (!SWIG_IsOK(ecode2)) {
58611 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFromFloat_add" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
58614 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
58615 if (!SWIG_IsOK(res3)) {
58616 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryFromFloat_add" "', argument " "3"" of type '" "uint8_t const *""'");
58618 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
58620 Py_BEGIN_ALLOW_THREADS
58622 (arg1)->add(arg2,(uint8_t
const *)arg3);
58624 PyEval_RestoreThread(_save);
58625 PyErr_SetString(PyExc_RuntimeError, e.
what());
58628 Py_END_ALLOW_THREADS
58630 resultobj = SWIG_Py_Void();
58637 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58638 PyObject *resultobj = 0;
58642 PyObject * obj0 = 0 ;
58644 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryFromFloat_reset",&obj0)) SWIG_fail;
58645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
58646 if (!SWIG_IsOK(res1)) {
58647 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_reset" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
58651 Py_BEGIN_ALLOW_THREADS
58655 PyEval_RestoreThread(_save);
58656 PyErr_SetString(PyExc_RuntimeError, e.
what());
58659 Py_END_ALLOW_THREADS
58661 resultobj = SWIG_Py_Void();
58668 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58669 PyObject *resultobj = 0;
58672 uint8_t *arg3 = (uint8_t *) 0 ;
58674 int32_t *arg5 = (int32_t *) 0 ;
58688 PyObject * obj0 = 0 ;
58689 PyObject * obj1 = 0 ;
58690 PyObject * obj2 = 0 ;
58691 PyObject * obj3 = 0 ;
58692 PyObject * obj4 = 0 ;
58693 PyObject * obj5 = 0 ;
58695 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexBinaryFromFloat_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
58696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
58697 if (!SWIG_IsOK(res1)) {
58698 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_search" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat const *""'");
58701 ecode2 = SWIG_AsVal_long(obj1, &val2);
58702 if (!SWIG_IsOK(ecode2)) {
58703 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFromFloat_search" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
58706 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
58707 if (!SWIG_IsOK(res3)) {
58708 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryFromFloat_search" "', argument " "3"" of type '" "uint8_t const *""'");
58710 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
58711 ecode4 = SWIG_AsVal_long(obj3, &val4);
58712 if (!SWIG_IsOK(ecode4)) {
58713 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryFromFloat_search" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
58716 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
58717 if (!SWIG_IsOK(res5)) {
58718 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryFromFloat_search" "', argument " "5"" of type '" "int32_t *""'");
58720 arg5 =
reinterpret_cast< int32_t *
>(argp5);
58721 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
58722 if (!SWIG_IsOK(res6)) {
58723 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinaryFromFloat_search" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
58727 Py_BEGIN_ALLOW_THREADS
58731 PyEval_RestoreThread(_save);
58732 PyErr_SetString(PyExc_RuntimeError, e.
what());
58735 Py_END_ALLOW_THREADS
58737 resultobj = SWIG_Py_Void();
58744 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58745 PyObject *resultobj = 0;
58748 uint8_t *arg3 = (uint8_t *) 0 ;
58755 PyObject * obj0 = 0 ;
58756 PyObject * obj1 = 0 ;
58757 PyObject * obj2 = 0 ;
58759 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryFromFloat_train",&obj0,&obj1,&obj2)) SWIG_fail;
58760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
58761 if (!SWIG_IsOK(res1)) {
58762 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_train" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
58765 ecode2 = SWIG_AsVal_long(obj1, &val2);
58766 if (!SWIG_IsOK(ecode2)) {
58767 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFromFloat_train" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
58770 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
58771 if (!SWIG_IsOK(res3)) {
58772 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryFromFloat_train" "', argument " "3"" of type '" "uint8_t const *""'");
58774 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
58776 Py_BEGIN_ALLOW_THREADS
58778 (arg1)->train(arg2,(uint8_t
const *)arg3);
58780 PyEval_RestoreThread(_save);
58781 PyErr_SetString(PyExc_RuntimeError, e.
what());
58784 Py_END_ALLOW_THREADS
58786 resultobj = SWIG_Py_Void();
58793 SWIGINTERN PyObject *IndexBinaryFromFloat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58795 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
58796 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexBinaryFromFloat, SWIG_NewClientData(obj));
58797 return SWIG_Py_Void();
58800 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_hnsw_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58801 PyObject *resultobj = 0;
58808 PyObject * obj0 = 0 ;
58809 PyObject * obj1 = 0 ;
58811 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryHNSW_hnsw_set",&obj0,&obj1)) SWIG_fail;
58812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
58813 if (!SWIG_IsOK(res1)) {
58814 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_hnsw_set" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
58817 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
58818 if (!SWIG_IsOK(res2)) {
58819 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryHNSW_hnsw_set" "', argument " "2"" of type '" "faiss::HNSW *""'");
58822 if (arg1) (arg1)->hnsw = *arg2;
58823 resultobj = SWIG_Py_Void();
58830 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_hnsw_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58831 PyObject *resultobj = 0;
58835 PyObject * obj0 = 0 ;
58838 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryHNSW_hnsw_get",&obj0)) SWIG_fail;
58839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
58840 if (!SWIG_IsOK(res1)) {
58841 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_hnsw_get" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
58845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW, 0 | 0 );
58852 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58853 PyObject *resultobj = 0;
58860 PyObject * obj0 = 0 ;
58861 PyObject * obj1 = 0 ;
58863 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryHNSW_own_fields_set",&obj0,&obj1)) SWIG_fail;
58864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
58865 if (!SWIG_IsOK(res1)) {
58866 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_own_fields_set" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
58869 ecode2 = SWIG_AsVal_bool(obj1, &val2);
58870 if (!SWIG_IsOK(ecode2)) {
58871 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryHNSW_own_fields_set" "', argument " "2"" of type '" "bool""'");
58873 arg2 =
static_cast< bool >(val2);
58874 if (arg1) (arg1)->own_fields = arg2;
58875 resultobj = SWIG_Py_Void();
58882 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58883 PyObject *resultobj = 0;
58887 PyObject * obj0 = 0 ;
58890 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryHNSW_own_fields_get",&obj0)) SWIG_fail;
58891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
58892 if (!SWIG_IsOK(res1)) {
58893 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_own_fields_get" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
58896 result = (bool) ((arg1)->own_fields);
58897 resultobj = SWIG_From_bool(static_cast< bool >(result));
58904 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_storage_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58905 PyObject *resultobj = 0;
58912 PyObject * obj0 = 0 ;
58913 PyObject * obj1 = 0 ;
58915 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryHNSW_storage_set",&obj0,&obj1)) SWIG_fail;
58916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
58917 if (!SWIG_IsOK(res1)) {
58918 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_storage_set" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
58921 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexBinary, SWIG_POINTER_DISOWN | 0 );
58922 if (!SWIG_IsOK(res2)) {
58923 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryHNSW_storage_set" "', argument " "2"" of type '" "faiss::IndexBinary *""'");
58926 if (arg1) (arg1)->storage = arg2;
58927 resultobj = SWIG_Py_Void();
58934 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_storage_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58935 PyObject *resultobj = 0;
58939 PyObject * obj0 = 0 ;
58942 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryHNSW_storage_get",&obj0)) SWIG_fail;
58943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
58944 if (!SWIG_IsOK(res1)) {
58945 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_storage_get" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
58949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
58956 SWIGINTERN PyObject *_wrap_new_IndexBinaryHNSW__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58957 PyObject *resultobj = 0;
58960 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexBinaryHNSW")) SWIG_fail;
58962 Py_BEGIN_ALLOW_THREADS
58966 PyEval_RestoreThread(_save);
58967 PyErr_SetString(PyExc_RuntimeError, e.
what());
58970 Py_END_ALLOW_THREADS
58972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryHNSW, SWIG_POINTER_NEW | 0 );
58979 SWIGINTERN PyObject *_wrap_new_IndexBinaryHNSW__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58980 PyObject *resultobj = 0;
58987 PyObject * obj0 = 0 ;
58988 PyObject * obj1 = 0 ;
58991 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexBinaryHNSW",&obj0,&obj1)) SWIG_fail;
58992 ecode1 = SWIG_AsVal_int(obj0, &val1);
58993 if (!SWIG_IsOK(ecode1)) {
58994 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexBinaryHNSW" "', argument " "1"" of type '" "int""'");
58996 arg1 =
static_cast< int >(val1);
58997 ecode2 = SWIG_AsVal_int(obj1, &val2);
58998 if (!SWIG_IsOK(ecode2)) {
58999 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexBinaryHNSW" "', argument " "2"" of type '" "int""'");
59001 arg2 =
static_cast< int >(val2);
59003 Py_BEGIN_ALLOW_THREADS
59007 PyEval_RestoreThread(_save);
59008 PyErr_SetString(PyExc_RuntimeError, e.
what());
59011 Py_END_ALLOW_THREADS
59013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryHNSW, SWIG_POINTER_NEW | 0 );
59020 SWIGINTERN PyObject *_wrap_new_IndexBinaryHNSW__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59021 PyObject *resultobj = 0;
59025 PyObject * obj0 = 0 ;
59028 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexBinaryHNSW",&obj0)) SWIG_fail;
59029 ecode1 = SWIG_AsVal_int(obj0, &val1);
59030 if (!SWIG_IsOK(ecode1)) {
59031 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexBinaryHNSW" "', argument " "1"" of type '" "int""'");
59033 arg1 =
static_cast< int >(val1);
59035 Py_BEGIN_ALLOW_THREADS
59039 PyEval_RestoreThread(_save);
59040 PyErr_SetString(PyExc_RuntimeError, e.
what());
59043 Py_END_ALLOW_THREADS
59045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryHNSW, SWIG_POINTER_NEW | 0 );
59052 SWIGINTERN PyObject *_wrap_new_IndexBinaryHNSW__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59053 PyObject *resultobj = 0;
59060 PyObject * obj0 = 0 ;
59061 PyObject * obj1 = 0 ;
59064 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexBinaryHNSW",&obj0,&obj1)) SWIG_fail;
59065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
59066 if (!SWIG_IsOK(res1)) {
59067 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexBinaryHNSW" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
59070 ecode2 = SWIG_AsVal_int(obj1, &val2);
59071 if (!SWIG_IsOK(ecode2)) {
59072 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexBinaryHNSW" "', argument " "2"" of type '" "int""'");
59074 arg2 =
static_cast< int >(val2);
59076 Py_BEGIN_ALLOW_THREADS
59080 PyEval_RestoreThread(_save);
59081 PyErr_SetString(PyExc_RuntimeError, e.
what());
59084 Py_END_ALLOW_THREADS
59086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryHNSW, SWIG_POINTER_NEW | 0 );
59093 SWIGINTERN PyObject *_wrap_new_IndexBinaryHNSW__SWIG_4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59094 PyObject *resultobj = 0;
59098 PyObject * obj0 = 0 ;
59101 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexBinaryHNSW",&obj0)) SWIG_fail;
59102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
59103 if (!SWIG_IsOK(res1)) {
59104 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexBinaryHNSW" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
59108 Py_BEGIN_ALLOW_THREADS
59112 PyEval_RestoreThread(_save);
59113 PyErr_SetString(PyExc_RuntimeError, e.
what());
59116 Py_END_ALLOW_THREADS
59118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryHNSW, SWIG_POINTER_NEW | 0 );
59125 SWIGINTERN PyObject *_wrap_new_IndexBinaryHNSW(PyObject *
self, PyObject *args) {
59127 PyObject *argv[3] = {
59132 if (!PyTuple_Check(args)) SWIG_fail;
59133 argc = args ? PyObject_Length(args) : 0;
59134 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
59135 argv[ii] = PyTuple_GET_ITEM(args,ii);
59138 return _wrap_new_IndexBinaryHNSW__SWIG_0(
self, args);
59143 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
59144 _v = SWIG_CheckState(res);
59146 return _wrap_new_IndexBinaryHNSW__SWIG_4(
self, args);
59152 int res = SWIG_AsVal_int(argv[0], NULL);
59153 _v = SWIG_CheckState(res);
59156 return _wrap_new_IndexBinaryHNSW__SWIG_2(
self, args);
59162 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
59163 _v = SWIG_CheckState(res);
59166 int res = SWIG_AsVal_int(argv[1], NULL);
59167 _v = SWIG_CheckState(res);
59170 return _wrap_new_IndexBinaryHNSW__SWIG_3(
self, args);
59177 int res = SWIG_AsVal_int(argv[0], NULL);
59178 _v = SWIG_CheckState(res);
59182 int res = SWIG_AsVal_int(argv[1], NULL);
59183 _v = SWIG_CheckState(res);
59186 return _wrap_new_IndexBinaryHNSW__SWIG_1(
self, args);
59192 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexBinaryHNSW'.\n"
59193 " Possible C/C++ prototypes are:\n"
59194 " faiss::IndexBinaryHNSW::IndexBinaryHNSW()\n"
59195 " faiss::IndexBinaryHNSW::IndexBinaryHNSW(int,int)\n"
59196 " faiss::IndexBinaryHNSW::IndexBinaryHNSW(int)\n"
59197 " faiss::IndexBinaryHNSW::IndexBinaryHNSW(faiss::IndexBinary *,int)\n"
59198 " faiss::IndexBinaryHNSW::IndexBinaryHNSW(faiss::IndexBinary *)\n");
59203 SWIGINTERN PyObject *_wrap_delete_IndexBinaryHNSW(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59204 PyObject *resultobj = 0;
59208 PyObject * obj0 = 0 ;
59210 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexBinaryHNSW",&obj0)) SWIG_fail;
59211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, SWIG_POINTER_DISOWN | 0 );
59212 if (!SWIG_IsOK(res1)) {
59213 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexBinaryHNSW" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
59217 Py_BEGIN_ALLOW_THREADS
59221 PyEval_RestoreThread(_save);
59222 PyErr_SetString(PyExc_RuntimeError, e.
what());
59225 Py_END_ALLOW_THREADS
59227 resultobj = SWIG_Py_Void();
59234 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_get_distance_computer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59235 PyObject *resultobj = 0;
59239 PyObject * obj0 = 0 ;
59242 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryHNSW_get_distance_computer",&obj0)) SWIG_fail;
59243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
59244 if (!SWIG_IsOK(res1)) {
59245 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_get_distance_computer" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW const *""'");
59249 Py_BEGIN_ALLOW_THREADS
59253 PyEval_RestoreThread(_save);
59254 PyErr_SetString(PyExc_RuntimeError, e.
what());
59257 Py_END_ALLOW_THREADS
59259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 | 0 );
59266 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59267 PyObject *resultobj = 0;
59270 uint8_t *arg3 = (uint8_t *) 0 ;
59277 PyObject * obj0 = 0 ;
59278 PyObject * obj1 = 0 ;
59279 PyObject * obj2 = 0 ;
59281 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryHNSW_add",&obj0,&obj1,&obj2)) SWIG_fail;
59282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
59283 if (!SWIG_IsOK(res1)) {
59284 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_add" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
59287 ecode2 = SWIG_AsVal_long(obj1, &val2);
59288 if (!SWIG_IsOK(ecode2)) {
59289 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryHNSW_add" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
59292 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
59293 if (!SWIG_IsOK(res3)) {
59294 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryHNSW_add" "', argument " "3"" of type '" "uint8_t const *""'");
59296 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
59298 Py_BEGIN_ALLOW_THREADS
59300 (arg1)->add(arg2,(uint8_t
const *)arg3);
59302 PyEval_RestoreThread(_save);
59303 PyErr_SetString(PyExc_RuntimeError, e.
what());
59306 Py_END_ALLOW_THREADS
59308 resultobj = SWIG_Py_Void();
59315 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59316 PyObject *resultobj = 0;
59319 uint8_t *arg3 = (uint8_t *) 0 ;
59326 PyObject * obj0 = 0 ;
59327 PyObject * obj1 = 0 ;
59328 PyObject * obj2 = 0 ;
59330 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryHNSW_train",&obj0,&obj1,&obj2)) SWIG_fail;
59331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
59332 if (!SWIG_IsOK(res1)) {
59333 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_train" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
59336 ecode2 = SWIG_AsVal_long(obj1, &val2);
59337 if (!SWIG_IsOK(ecode2)) {
59338 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryHNSW_train" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
59341 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
59342 if (!SWIG_IsOK(res3)) {
59343 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryHNSW_train" "', argument " "3"" of type '" "uint8_t const *""'");
59345 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
59347 Py_BEGIN_ALLOW_THREADS
59349 (arg1)->train(arg2,(uint8_t
const *)arg3);
59351 PyEval_RestoreThread(_save);
59352 PyErr_SetString(PyExc_RuntimeError, e.
what());
59355 Py_END_ALLOW_THREADS
59357 resultobj = SWIG_Py_Void();
59364 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59365 PyObject *resultobj = 0;
59368 uint8_t *arg3 = (uint8_t *) 0 ;
59370 int32_t *arg5 = (int32_t *) 0 ;
59384 PyObject * obj0 = 0 ;
59385 PyObject * obj1 = 0 ;
59386 PyObject * obj2 = 0 ;
59387 PyObject * obj3 = 0 ;
59388 PyObject * obj4 = 0 ;
59389 PyObject * obj5 = 0 ;
59391 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexBinaryHNSW_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
59392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
59393 if (!SWIG_IsOK(res1)) {
59394 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_search" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW const *""'");
59397 ecode2 = SWIG_AsVal_long(obj1, &val2);
59398 if (!SWIG_IsOK(ecode2)) {
59399 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryHNSW_search" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
59402 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
59403 if (!SWIG_IsOK(res3)) {
59404 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryHNSW_search" "', argument " "3"" of type '" "uint8_t const *""'");
59406 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
59407 ecode4 = SWIG_AsVal_long(obj3, &val4);
59408 if (!SWIG_IsOK(ecode4)) {
59409 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryHNSW_search" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
59412 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
59413 if (!SWIG_IsOK(res5)) {
59414 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryHNSW_search" "', argument " "5"" of type '" "int32_t *""'");
59416 arg5 =
reinterpret_cast< int32_t *
>(argp5);
59417 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
59418 if (!SWIG_IsOK(res6)) {
59419 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinaryHNSW_search" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
59423 Py_BEGIN_ALLOW_THREADS
59427 PyEval_RestoreThread(_save);
59428 PyErr_SetString(PyExc_RuntimeError, e.
what());
59431 Py_END_ALLOW_THREADS
59433 resultobj = SWIG_Py_Void();
59440 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59441 PyObject *resultobj = 0;
59444 uint8_t *arg3 = (uint8_t *) 0 ;
59451 PyObject * obj0 = 0 ;
59452 PyObject * obj1 = 0 ;
59453 PyObject * obj2 = 0 ;
59455 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryHNSW_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
59456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
59457 if (!SWIG_IsOK(res1)) {
59458 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_reconstruct" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW const *""'");
59461 ecode2 = SWIG_AsVal_long(obj1, &val2);
59462 if (!SWIG_IsOK(ecode2)) {
59463 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryHNSW_reconstruct" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
59466 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
59467 if (!SWIG_IsOK(res3)) {
59468 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryHNSW_reconstruct" "', argument " "3"" of type '" "uint8_t *""'");
59470 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
59472 Py_BEGIN_ALLOW_THREADS
59476 PyEval_RestoreThread(_save);
59477 PyErr_SetString(PyExc_RuntimeError, e.
what());
59480 Py_END_ALLOW_THREADS
59482 resultobj = SWIG_Py_Void();
59489 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59490 PyObject *resultobj = 0;
59494 PyObject * obj0 = 0 ;
59496 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryHNSW_reset",&obj0)) SWIG_fail;
59497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
59498 if (!SWIG_IsOK(res1)) {
59499 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_reset" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
59503 Py_BEGIN_ALLOW_THREADS
59507 PyEval_RestoreThread(_save);
59508 PyErr_SetString(PyExc_RuntimeError, e.
what());
59511 Py_END_ALLOW_THREADS
59513 resultobj = SWIG_Py_Void();
59520 SWIGINTERN PyObject *IndexBinaryHNSW_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59522 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
59523 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexBinaryHNSW, SWIG_NewClientData(obj));
59524 return SWIG_Py_Void();
59527 SWIGINTERN PyObject *_wrap_IndexIDMap_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59528 PyObject *resultobj = 0;
59535 PyObject * obj0 = 0 ;
59536 PyObject * obj1 = 0 ;
59538 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIDMap_index_set",&obj0,&obj1)) SWIG_fail;
59539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
59540 if (!SWIG_IsOK(res1)) {
59541 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_index_set" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
59544 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
59545 if (!SWIG_IsOK(res2)) {
59546 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIDMap_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
59549 if (arg1) (arg1)->index = arg2;
59550 resultobj = SWIG_Py_Void();
59557 SWIGINTERN PyObject *_wrap_IndexIDMap_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59558 PyObject *resultobj = 0;
59562 PyObject * obj0 = 0 ;
59565 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIDMap_index_get",&obj0)) SWIG_fail;
59566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
59567 if (!SWIG_IsOK(res1)) {
59568 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_index_get" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
59572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
59579 SWIGINTERN PyObject *_wrap_IndexIDMap_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59580 PyObject *resultobj = 0;
59587 PyObject * obj0 = 0 ;
59588 PyObject * obj1 = 0 ;
59590 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIDMap_own_fields_set",&obj0,&obj1)) SWIG_fail;
59591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
59592 if (!SWIG_IsOK(res1)) {
59593 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_own_fields_set" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
59596 ecode2 = SWIG_AsVal_bool(obj1, &val2);
59597 if (!SWIG_IsOK(ecode2)) {
59598 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap_own_fields_set" "', argument " "2"" of type '" "bool""'");
59600 arg2 =
static_cast< bool >(val2);
59601 if (arg1) (arg1)->own_fields = arg2;
59602 resultobj = SWIG_Py_Void();
59609 SWIGINTERN PyObject *_wrap_IndexIDMap_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59610 PyObject *resultobj = 0;
59614 PyObject * obj0 = 0 ;
59617 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIDMap_own_fields_get",&obj0)) SWIG_fail;
59618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
59619 if (!SWIG_IsOK(res1)) {
59620 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_own_fields_get" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
59623 result = (bool) ((arg1)->own_fields);
59624 resultobj = SWIG_From_bool(static_cast< bool >(result));
59631 SWIGINTERN PyObject *_wrap_IndexIDMap_id_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59632 PyObject *resultobj = 0;
59634 std::vector< long > *arg2 = (std::vector< long > *) 0 ;
59639 PyObject * obj0 = 0 ;
59640 PyObject * obj1 = 0 ;
59642 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIDMap_id_map_set",&obj0,&obj1)) SWIG_fail;
59643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
59644 if (!SWIG_IsOK(res1)) {
59645 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_id_map_set" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
59648 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
59649 if (!SWIG_IsOK(res2)) {
59650 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIDMap_id_map_set" "', argument " "2"" of type '" "std::vector< long > *""'");
59652 arg2 =
reinterpret_cast< std::vector< long > *
>(argp2);
59653 if (arg1) (arg1)->id_map = *arg2;
59654 resultobj = SWIG_Py_Void();
59661 SWIGINTERN PyObject *_wrap_IndexIDMap_id_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59662 PyObject *resultobj = 0;
59666 PyObject * obj0 = 0 ;
59667 std::vector< long > *result = 0 ;
59669 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIDMap_id_map_get",&obj0)) SWIG_fail;
59670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
59671 if (!SWIG_IsOK(res1)) {
59672 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_id_map_get" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
59675 result = (std::vector< long > *)& ((arg1)->id_map);
59676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
59683 SWIGINTERN PyObject *_wrap_new_IndexIDMap__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59684 PyObject *resultobj = 0;
59688 PyObject * obj0 = 0 ;
59691 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexIDMap",&obj0)) SWIG_fail;
59692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
59693 if (!SWIG_IsOK(res1)) {
59694 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIDMap" "', argument " "1"" of type '" "faiss::Index *""'");
59698 Py_BEGIN_ALLOW_THREADS
59702 PyEval_RestoreThread(_save);
59703 PyErr_SetString(PyExc_RuntimeError, e.
what());
59706 Py_END_ALLOW_THREADS
59708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIDMap, SWIG_POINTER_NEW | 0 );
59715 SWIGINTERN PyObject *_wrap_IndexIDMap_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59716 PyObject *resultobj = 0;
59719 float *arg3 = (
float *) 0 ;
59720 long *arg4 = (
long *) 0 ;
59729 PyObject * obj0 = 0 ;
59730 PyObject * obj1 = 0 ;
59731 PyObject * obj2 = 0 ;
59732 PyObject * obj3 = 0 ;
59734 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIDMap_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
59735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
59736 if (!SWIG_IsOK(res1)) {
59737 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
59740 ecode2 = SWIG_AsVal_long(obj1, &val2);
59741 if (!SWIG_IsOK(ecode2)) {
59742 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
59745 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
59746 if (!SWIG_IsOK(res3)) {
59747 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIDMap_add_with_ids" "', argument " "3"" of type '" "float const *""'");
59749 arg3 =
reinterpret_cast< float *
>(argp3);
59750 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
59751 if (!SWIG_IsOK(res4)) {
59752 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIDMap_add_with_ids" "', argument " "4"" of type '" "long const *""'");
59754 arg4 =
reinterpret_cast< long *
>(argp4);
59756 Py_BEGIN_ALLOW_THREADS
59758 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
59760 PyEval_RestoreThread(_save);
59761 PyErr_SetString(PyExc_RuntimeError, e.
what());
59764 Py_END_ALLOW_THREADS
59766 resultobj = SWIG_Py_Void();
59773 SWIGINTERN PyObject *_wrap_IndexIDMap_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59774 PyObject *resultobj = 0;
59777 float *arg3 = (
float *) 0 ;
59784 PyObject * obj0 = 0 ;
59785 PyObject * obj1 = 0 ;
59786 PyObject * obj2 = 0 ;
59788 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIDMap_add",&obj0,&obj1,&obj2)) SWIG_fail;
59789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
59790 if (!SWIG_IsOK(res1)) {
59791 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_add" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
59794 ecode2 = SWIG_AsVal_long(obj1, &val2);
59795 if (!SWIG_IsOK(ecode2)) {
59796 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
59799 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
59800 if (!SWIG_IsOK(res3)) {
59801 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIDMap_add" "', argument " "3"" of type '" "float const *""'");
59803 arg3 =
reinterpret_cast< float *
>(argp3);
59805 Py_BEGIN_ALLOW_THREADS
59807 (arg1)->add(arg2,(
float const *)arg3);
59809 PyEval_RestoreThread(_save);
59810 PyErr_SetString(PyExc_RuntimeError, e.
what());
59813 Py_END_ALLOW_THREADS
59815 resultobj = SWIG_Py_Void();
59822 SWIGINTERN PyObject *_wrap_IndexIDMap_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59823 PyObject *resultobj = 0;
59826 float *arg3 = (
float *) 0 ;
59828 float *arg5 = (
float *) 0 ;
59842 PyObject * obj0 = 0 ;
59843 PyObject * obj1 = 0 ;
59844 PyObject * obj2 = 0 ;
59845 PyObject * obj3 = 0 ;
59846 PyObject * obj4 = 0 ;
59847 PyObject * obj5 = 0 ;
59849 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexIDMap_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
59850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
59851 if (!SWIG_IsOK(res1)) {
59852 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_search" "', argument " "1"" of type '" "faiss::IndexIDMap const *""'");
59855 ecode2 = SWIG_AsVal_long(obj1, &val2);
59856 if (!SWIG_IsOK(ecode2)) {
59857 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
59860 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
59861 if (!SWIG_IsOK(res3)) {
59862 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIDMap_search" "', argument " "3"" of type '" "float const *""'");
59864 arg3 =
reinterpret_cast< float *
>(argp3);
59865 ecode4 = SWIG_AsVal_long(obj3, &val4);
59866 if (!SWIG_IsOK(ecode4)) {
59867 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIDMap_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
59870 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
59871 if (!SWIG_IsOK(res5)) {
59872 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIDMap_search" "', argument " "5"" of type '" "float *""'");
59874 arg5 =
reinterpret_cast< float *
>(argp5);
59875 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
59876 if (!SWIG_IsOK(res6)) {
59877 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIDMap_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
59881 Py_BEGIN_ALLOW_THREADS
59883 ((
faiss::IndexIDMap const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
59885 PyEval_RestoreThread(_save);
59886 PyErr_SetString(PyExc_RuntimeError, e.
what());
59889 Py_END_ALLOW_THREADS
59891 resultobj = SWIG_Py_Void();
59898 SWIGINTERN PyObject *_wrap_IndexIDMap_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59899 PyObject *resultobj = 0;
59902 float *arg3 = (
float *) 0 ;
59909 PyObject * obj0 = 0 ;
59910 PyObject * obj1 = 0 ;
59911 PyObject * obj2 = 0 ;
59913 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIDMap_train",&obj0,&obj1,&obj2)) SWIG_fail;
59914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
59915 if (!SWIG_IsOK(res1)) {
59916 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_train" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
59919 ecode2 = SWIG_AsVal_long(obj1, &val2);
59920 if (!SWIG_IsOK(ecode2)) {
59921 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
59924 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
59925 if (!SWIG_IsOK(res3)) {
59926 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIDMap_train" "', argument " "3"" of type '" "float const *""'");
59928 arg3 =
reinterpret_cast< float *
>(argp3);
59930 Py_BEGIN_ALLOW_THREADS
59932 (arg1)->train(arg2,(
float const *)arg3);
59934 PyEval_RestoreThread(_save);
59935 PyErr_SetString(PyExc_RuntimeError, e.
what());
59938 Py_END_ALLOW_THREADS
59940 resultobj = SWIG_Py_Void();
59947 SWIGINTERN PyObject *_wrap_IndexIDMap_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59948 PyObject *resultobj = 0;
59952 PyObject * obj0 = 0 ;
59954 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIDMap_reset",&obj0)) SWIG_fail;
59955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
59956 if (!SWIG_IsOK(res1)) {
59957 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_reset" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
59961 Py_BEGIN_ALLOW_THREADS
59965 PyEval_RestoreThread(_save);
59966 PyErr_SetString(PyExc_RuntimeError, e.
what());
59969 Py_END_ALLOW_THREADS
59971 resultobj = SWIG_Py_Void();
59978 SWIGINTERN PyObject *_wrap_IndexIDMap_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59979 PyObject *resultobj = 0;
59986 PyObject * obj0 = 0 ;
59987 PyObject * obj1 = 0 ;
59990 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIDMap_remove_ids",&obj0,&obj1)) SWIG_fail;
59991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
59992 if (!SWIG_IsOK(res1)) {
59993 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_remove_ids" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
59996 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
59997 if (!SWIG_IsOK(res2)) {
59998 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIDMap_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
60001 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIDMap_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
60005 Py_BEGIN_ALLOW_THREADS
60009 PyEval_RestoreThread(_save);
60010 PyErr_SetString(PyExc_RuntimeError, e.
what());
60013 Py_END_ALLOW_THREADS
60015 resultobj = SWIG_From_long(static_cast< long >(result));
60022 SWIGINTERN PyObject *_wrap_IndexIDMap_range_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60023 PyObject *resultobj = 0;
60026 float *arg3 = (
float *) 0 ;
60039 PyObject * obj0 = 0 ;
60040 PyObject * obj1 = 0 ;
60041 PyObject * obj2 = 0 ;
60042 PyObject * obj3 = 0 ;
60043 PyObject * obj4 = 0 ;
60045 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIDMap_range_search",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
60046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
60047 if (!SWIG_IsOK(res1)) {
60048 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_range_search" "', argument " "1"" of type '" "faiss::IndexIDMap const *""'");
60051 ecode2 = SWIG_AsVal_long(obj1, &val2);
60052 if (!SWIG_IsOK(ecode2)) {
60053 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap_range_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
60056 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
60057 if (!SWIG_IsOK(res3)) {
60058 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIDMap_range_search" "', argument " "3"" of type '" "float const *""'");
60060 arg3 =
reinterpret_cast< float *
>(argp3);
60061 ecode4 = SWIG_AsVal_float(obj3, &val4);
60062 if (!SWIG_IsOK(ecode4)) {
60063 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIDMap_range_search" "', argument " "4"" of type '" "float""'");
60065 arg4 =
static_cast< float >(val4);
60066 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
60067 if (!SWIG_IsOK(res5)) {
60068 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIDMap_range_search" "', argument " "5"" of type '" "faiss::RangeSearchResult *""'");
60072 Py_BEGIN_ALLOW_THREADS
60074 ((
faiss::IndexIDMap const *)arg1)->range_search(arg2,(
float const *)arg3,arg4,arg5);
60076 PyEval_RestoreThread(_save);
60077 PyErr_SetString(PyExc_RuntimeError, e.
what());
60080 Py_END_ALLOW_THREADS
60082 resultobj = SWIG_Py_Void();
60089 SWIGINTERN PyObject *_wrap_delete_IndexIDMap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60090 PyObject *resultobj = 0;
60094 PyObject * obj0 = 0 ;
60096 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIDMap",&obj0)) SWIG_fail;
60097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, SWIG_POINTER_DISOWN | 0 );
60098 if (!SWIG_IsOK(res1)) {
60099 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIDMap" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
60103 Py_BEGIN_ALLOW_THREADS
60107 PyEval_RestoreThread(_save);
60108 PyErr_SetString(PyExc_RuntimeError, e.
what());
60111 Py_END_ALLOW_THREADS
60113 resultobj = SWIG_Py_Void();
60120 SWIGINTERN PyObject *_wrap_new_IndexIDMap__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60121 PyObject *resultobj = 0;
60124 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIDMap")) SWIG_fail;
60126 Py_BEGIN_ALLOW_THREADS
60130 PyEval_RestoreThread(_save);
60131 PyErr_SetString(PyExc_RuntimeError, e.
what());
60134 Py_END_ALLOW_THREADS
60136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIDMap, SWIG_POINTER_NEW | 0 );
60143 SWIGINTERN PyObject *_wrap_new_IndexIDMap(PyObject *
self, PyObject *args) {
60145 PyObject *argv[2] = {
60150 if (!PyTuple_Check(args)) SWIG_fail;
60151 argc = args ? PyObject_Length(args) : 0;
60152 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
60153 argv[ii] = PyTuple_GET_ITEM(args,ii);
60156 return _wrap_new_IndexIDMap__SWIG_1(
self, args);
60161 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
60162 _v = SWIG_CheckState(res);
60164 return _wrap_new_IndexIDMap__SWIG_0(
self, args);
60169 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexIDMap'.\n"
60170 " Possible C/C++ prototypes are:\n"
60171 " faiss::IndexIDMap::IndexIDMap(faiss::Index *)\n"
60172 " faiss::IndexIDMap::IndexIDMap()\n");
60177 SWIGINTERN PyObject *IndexIDMap_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60179 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
60180 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIDMap, SWIG_NewClientData(obj));
60181 return SWIG_Py_Void();
60184 SWIGINTERN PyObject *_wrap_IndexIDMap2_rev_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60185 PyObject *resultobj = 0;
60187 std::unordered_map< faiss::Index::idx_t,faiss::Index::idx_t > arg2 ;
60192 PyObject * obj0 = 0 ;
60193 PyObject * obj1 = 0 ;
60195 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIDMap2_rev_map_set",&obj0,&obj1)) SWIG_fail;
60196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap2, 0 | 0 );
60197 if (!SWIG_IsOK(res1)) {
60198 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap2_rev_map_set" "', argument " "1"" of type '" "faiss::IndexIDMap2 *""'");
60202 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__unordered_mapT_long_long_t, 0 | 0);
60203 if (!SWIG_IsOK(res2)) {
60204 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIDMap2_rev_map_set" "', argument " "2"" of type '" "std::unordered_map< faiss::Index::idx_t,faiss::Index::idx_t >""'");
60207 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIDMap2_rev_map_set" "', argument " "2"" of type '" "std::unordered_map< faiss::Index::idx_t,faiss::Index::idx_t >""'");
60209 std::unordered_map< faiss::Index::idx_t,faiss::Index::idx_t > * temp =
reinterpret_cast< std::unordered_map< faiss::Index::idx_t,faiss::Index::idx_t > *
>(argp2);
60211 if (SWIG_IsNewObj(res2))
delete temp;
60214 if (arg1) (arg1)->rev_map = arg2;
60215 resultobj = SWIG_Py_Void();
60222 SWIGINTERN PyObject *_wrap_IndexIDMap2_rev_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60223 PyObject *resultobj = 0;
60227 PyObject * obj0 = 0 ;
60228 std::unordered_map< faiss::Index::idx_t,faiss::Index::idx_t > result;
60230 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIDMap2_rev_map_get",&obj0)) SWIG_fail;
60231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap2, 0 | 0 );
60232 if (!SWIG_IsOK(res1)) {
60233 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap2_rev_map_get" "', argument " "1"" of type '" "faiss::IndexIDMap2 *""'");
60236 result = ((arg1)->rev_map);
60237 resultobj = SWIG_NewPointerObj((
new std::unordered_map< faiss::Index::idx_t,faiss::Index::idx_t >(
static_cast< const std::unordered_map< faiss::Index::idx_t,faiss::Index::idx_t >&
>(result))), SWIGTYPE_p_std__unordered_mapT_long_long_t, SWIG_POINTER_OWN | 0 );
60244 SWIGINTERN PyObject *_wrap_new_IndexIDMap2__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60245 PyObject *resultobj = 0;
60249 PyObject * obj0 = 0 ;
60252 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexIDMap2",&obj0)) SWIG_fail;
60253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
60254 if (!SWIG_IsOK(res1)) {
60255 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIDMap2" "', argument " "1"" of type '" "faiss::Index *""'");
60259 Py_BEGIN_ALLOW_THREADS
60263 PyEval_RestoreThread(_save);
60264 PyErr_SetString(PyExc_RuntimeError, e.
what());
60267 Py_END_ALLOW_THREADS
60269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIDMap2, SWIG_POINTER_NEW | 0 );
60276 SWIGINTERN PyObject *_wrap_IndexIDMap2_construct_rev_map(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60277 PyObject *resultobj = 0;
60281 PyObject * obj0 = 0 ;
60283 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIDMap2_construct_rev_map",&obj0)) SWIG_fail;
60284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap2, 0 | 0 );
60285 if (!SWIG_IsOK(res1)) {
60286 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap2_construct_rev_map" "', argument " "1"" of type '" "faiss::IndexIDMap2 *""'");
60290 Py_BEGIN_ALLOW_THREADS
60292 (arg1)->construct_rev_map();
60294 PyEval_RestoreThread(_save);
60295 PyErr_SetString(PyExc_RuntimeError, e.
what());
60298 Py_END_ALLOW_THREADS
60300 resultobj = SWIG_Py_Void();
60307 SWIGINTERN PyObject *_wrap_IndexIDMap2_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60308 PyObject *resultobj = 0;
60311 float *arg3 = (
float *) 0 ;
60312 long *arg4 = (
long *) 0 ;
60321 PyObject * obj0 = 0 ;
60322 PyObject * obj1 = 0 ;
60323 PyObject * obj2 = 0 ;
60324 PyObject * obj3 = 0 ;
60326 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIDMap2_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
60327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap2, 0 | 0 );
60328 if (!SWIG_IsOK(res1)) {
60329 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap2_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIDMap2 *""'");
60332 ecode2 = SWIG_AsVal_long(obj1, &val2);
60333 if (!SWIG_IsOK(ecode2)) {
60334 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap2_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
60337 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
60338 if (!SWIG_IsOK(res3)) {
60339 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIDMap2_add_with_ids" "', argument " "3"" of type '" "float const *""'");
60341 arg3 =
reinterpret_cast< float *
>(argp3);
60342 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
60343 if (!SWIG_IsOK(res4)) {
60344 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIDMap2_add_with_ids" "', argument " "4"" of type '" "long const *""'");
60346 arg4 =
reinterpret_cast< long *
>(argp4);
60348 Py_BEGIN_ALLOW_THREADS
60350 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
60352 PyEval_RestoreThread(_save);
60353 PyErr_SetString(PyExc_RuntimeError, e.
what());
60356 Py_END_ALLOW_THREADS
60358 resultobj = SWIG_Py_Void();
60365 SWIGINTERN PyObject *_wrap_IndexIDMap2_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60366 PyObject *resultobj = 0;
60373 PyObject * obj0 = 0 ;
60374 PyObject * obj1 = 0 ;
60377 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIDMap2_remove_ids",&obj0,&obj1)) SWIG_fail;
60378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap2, 0 | 0 );
60379 if (!SWIG_IsOK(res1)) {
60380 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap2_remove_ids" "', argument " "1"" of type '" "faiss::IndexIDMap2 *""'");
60383 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
60384 if (!SWIG_IsOK(res2)) {
60385 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIDMap2_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
60388 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIDMap2_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
60392 Py_BEGIN_ALLOW_THREADS
60396 PyEval_RestoreThread(_save);
60397 PyErr_SetString(PyExc_RuntimeError, e.
what());
60400 Py_END_ALLOW_THREADS
60402 resultobj = SWIG_From_long(static_cast< long >(result));
60409 SWIGINTERN PyObject *_wrap_IndexIDMap2_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60410 PyObject *resultobj = 0;
60413 float *arg3 = (
float *) 0 ;
60420 PyObject * obj0 = 0 ;
60421 PyObject * obj1 = 0 ;
60422 PyObject * obj2 = 0 ;
60424 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIDMap2_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
60425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap2, 0 | 0 );
60426 if (!SWIG_IsOK(res1)) {
60427 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap2_reconstruct" "', argument " "1"" of type '" "faiss::IndexIDMap2 const *""'");
60430 ecode2 = SWIG_AsVal_long(obj1, &val2);
60431 if (!SWIG_IsOK(ecode2)) {
60432 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap2_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
60435 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
60436 if (!SWIG_IsOK(res3)) {
60437 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIDMap2_reconstruct" "', argument " "3"" of type '" "float *""'");
60439 arg3 =
reinterpret_cast< float *
>(argp3);
60441 Py_BEGIN_ALLOW_THREADS
60445 PyEval_RestoreThread(_save);
60446 PyErr_SetString(PyExc_RuntimeError, e.
what());
60449 Py_END_ALLOW_THREADS
60451 resultobj = SWIG_Py_Void();
60458 SWIGINTERN PyObject *_wrap_delete_IndexIDMap2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60459 PyObject *resultobj = 0;
60463 PyObject * obj0 = 0 ;
60465 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIDMap2",&obj0)) SWIG_fail;
60466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap2, SWIG_POINTER_DISOWN | 0 );
60467 if (!SWIG_IsOK(res1)) {
60468 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIDMap2" "', argument " "1"" of type '" "faiss::IndexIDMap2 *""'");
60472 Py_BEGIN_ALLOW_THREADS
60476 PyEval_RestoreThread(_save);
60477 PyErr_SetString(PyExc_RuntimeError, e.
what());
60480 Py_END_ALLOW_THREADS
60482 resultobj = SWIG_Py_Void();
60489 SWIGINTERN PyObject *_wrap_new_IndexIDMap2__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60490 PyObject *resultobj = 0;
60493 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIDMap2")) SWIG_fail;
60495 Py_BEGIN_ALLOW_THREADS
60499 PyEval_RestoreThread(_save);
60500 PyErr_SetString(PyExc_RuntimeError, e.
what());
60503 Py_END_ALLOW_THREADS
60505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIDMap2, SWIG_POINTER_NEW | 0 );
60512 SWIGINTERN PyObject *_wrap_new_IndexIDMap2(PyObject *
self, PyObject *args) {
60514 PyObject *argv[2] = {
60519 if (!PyTuple_Check(args)) SWIG_fail;
60520 argc = args ? PyObject_Length(args) : 0;
60521 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
60522 argv[ii] = PyTuple_GET_ITEM(args,ii);
60525 return _wrap_new_IndexIDMap2__SWIG_1(
self, args);
60530 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
60531 _v = SWIG_CheckState(res);
60533 return _wrap_new_IndexIDMap2__SWIG_0(
self, args);
60538 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexIDMap2'.\n"
60539 " Possible C/C++ prototypes are:\n"
60540 " faiss::IndexIDMap2::IndexIDMap2(faiss::Index *)\n"
60541 " faiss::IndexIDMap2::IndexIDMap2()\n");
60546 SWIGINTERN PyObject *IndexIDMap2_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60548 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
60549 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIDMap2, SWIG_NewClientData(obj));
60550 return SWIG_Py_Void();
60553 SWIGINTERN PyObject *_wrap_IndexShards_shard_indexes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60554 PyObject *resultobj = 0;
60556 std::vector< faiss::Index * > *arg2 = (std::vector< faiss::Index * > *) 0 ;
60561 PyObject * obj0 = 0 ;
60562 PyObject * obj1 = 0 ;
60564 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexShards_shard_indexes_set",&obj0,&obj1)) SWIG_fail;
60565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
60566 if (!SWIG_IsOK(res1)) {
60567 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_shard_indexes_set" "', argument " "1"" of type '" "faiss::IndexShards *""'");
60570 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__Index_p_t, 0 | 0 );
60571 if (!SWIG_IsOK(res2)) {
60572 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexShards_shard_indexes_set" "', argument " "2"" of type '" "std::vector< faiss::Index * > *""'");
60574 arg2 =
reinterpret_cast< std::vector< faiss::Index * > *
>(argp2);
60575 if (arg1) (arg1)->shard_indexes = *arg2;
60576 resultobj = SWIG_Py_Void();
60583 SWIGINTERN PyObject *_wrap_IndexShards_shard_indexes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60584 PyObject *resultobj = 0;
60588 PyObject * obj0 = 0 ;
60589 std::vector< faiss::Index * > *result = 0 ;
60591 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexShards_shard_indexes_get",&obj0)) SWIG_fail;
60592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
60593 if (!SWIG_IsOK(res1)) {
60594 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_shard_indexes_get" "', argument " "1"" of type '" "faiss::IndexShards *""'");
60597 result = (std::vector< faiss::Index * > *)& ((arg1)->shard_indexes);
60598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__Index_p_t, 0 | 0 );
60605 SWIGINTERN PyObject *_wrap_IndexShards_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60606 PyObject *resultobj = 0;
60613 PyObject * obj0 = 0 ;
60614 PyObject * obj1 = 0 ;
60616 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexShards_own_fields_set",&obj0,&obj1)) SWIG_fail;
60617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
60618 if (!SWIG_IsOK(res1)) {
60619 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_own_fields_set" "', argument " "1"" of type '" "faiss::IndexShards *""'");
60622 ecode2 = SWIG_AsVal_bool(obj1, &val2);
60623 if (!SWIG_IsOK(ecode2)) {
60624 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_own_fields_set" "', argument " "2"" of type '" "bool""'");
60626 arg2 =
static_cast< bool >(val2);
60627 if (arg1) (arg1)->own_fields = arg2;
60628 resultobj = SWIG_Py_Void();
60635 SWIGINTERN PyObject *_wrap_IndexShards_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60636 PyObject *resultobj = 0;
60640 PyObject * obj0 = 0 ;
60643 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexShards_own_fields_get",&obj0)) SWIG_fail;
60644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
60645 if (!SWIG_IsOK(res1)) {
60646 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_own_fields_get" "', argument " "1"" of type '" "faiss::IndexShards *""'");
60649 result = (bool) ((arg1)->own_fields);
60650 resultobj = SWIG_From_bool(static_cast< bool >(result));
60657 SWIGINTERN PyObject *_wrap_IndexShards_threaded_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60658 PyObject *resultobj = 0;
60665 PyObject * obj0 = 0 ;
60666 PyObject * obj1 = 0 ;
60668 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexShards_threaded_set",&obj0,&obj1)) SWIG_fail;
60669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
60670 if (!SWIG_IsOK(res1)) {
60671 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_threaded_set" "', argument " "1"" of type '" "faiss::IndexShards *""'");
60674 ecode2 = SWIG_AsVal_bool(obj1, &val2);
60675 if (!SWIG_IsOK(ecode2)) {
60676 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_threaded_set" "', argument " "2"" of type '" "bool""'");
60678 arg2 =
static_cast< bool >(val2);
60679 if (arg1) (arg1)->threaded = arg2;
60680 resultobj = SWIG_Py_Void();
60687 SWIGINTERN PyObject *_wrap_IndexShards_threaded_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60688 PyObject *resultobj = 0;
60692 PyObject * obj0 = 0 ;
60695 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexShards_threaded_get",&obj0)) SWIG_fail;
60696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
60697 if (!SWIG_IsOK(res1)) {
60698 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_threaded_get" "', argument " "1"" of type '" "faiss::IndexShards *""'");
60701 result = (bool) ((arg1)->threaded);
60702 resultobj = SWIG_From_bool(static_cast< bool >(result));
60709 SWIGINTERN PyObject *_wrap_IndexShards_successive_ids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60710 PyObject *resultobj = 0;
60717 PyObject * obj0 = 0 ;
60718 PyObject * obj1 = 0 ;
60720 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexShards_successive_ids_set",&obj0,&obj1)) SWIG_fail;
60721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
60722 if (!SWIG_IsOK(res1)) {
60723 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_successive_ids_set" "', argument " "1"" of type '" "faiss::IndexShards *""'");
60726 ecode2 = SWIG_AsVal_bool(obj1, &val2);
60727 if (!SWIG_IsOK(ecode2)) {
60728 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_successive_ids_set" "', argument " "2"" of type '" "bool""'");
60730 arg2 =
static_cast< bool >(val2);
60731 if (arg1) (arg1)->successive_ids = arg2;
60732 resultobj = SWIG_Py_Void();
60739 SWIGINTERN PyObject *_wrap_IndexShards_successive_ids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60740 PyObject *resultobj = 0;
60744 PyObject * obj0 = 0 ;
60747 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexShards_successive_ids_get",&obj0)) SWIG_fail;
60748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
60749 if (!SWIG_IsOK(res1)) {
60750 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_successive_ids_get" "', argument " "1"" of type '" "faiss::IndexShards *""'");
60753 result = (bool) ((arg1)->successive_ids);
60754 resultobj = SWIG_From_bool(static_cast< bool >(result));
60761 SWIGINTERN PyObject *_wrap_new_IndexShards__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60762 PyObject *resultobj = 0;
60772 PyObject * obj0 = 0 ;
60773 PyObject * obj1 = 0 ;
60774 PyObject * obj2 = 0 ;
60777 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexShards",&obj0,&obj1,&obj2)) SWIG_fail;
60778 ecode1 = SWIG_AsVal_long(obj0, &val1);
60779 if (!SWIG_IsOK(ecode1)) {
60780 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexShards" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
60783 ecode2 = SWIG_AsVal_bool(obj1, &val2);
60784 if (!SWIG_IsOK(ecode2)) {
60785 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexShards" "', argument " "2"" of type '" "bool""'");
60787 arg2 =
static_cast< bool >(val2);
60788 ecode3 = SWIG_AsVal_bool(obj2, &val3);
60789 if (!SWIG_IsOK(ecode3)) {
60790 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexShards" "', argument " "3"" of type '" "bool""'");
60792 arg3 =
static_cast< bool >(val3);
60794 Py_BEGIN_ALLOW_THREADS
60798 PyEval_RestoreThread(_save);
60799 PyErr_SetString(PyExc_RuntimeError, e.
what());
60802 Py_END_ALLOW_THREADS
60804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexShards, SWIG_POINTER_NEW | 0 );
60811 SWIGINTERN PyObject *_wrap_new_IndexShards__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60812 PyObject *resultobj = 0;
60819 PyObject * obj0 = 0 ;
60820 PyObject * obj1 = 0 ;
60823 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexShards",&obj0,&obj1)) SWIG_fail;
60824 ecode1 = SWIG_AsVal_long(obj0, &val1);
60825 if (!SWIG_IsOK(ecode1)) {
60826 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexShards" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
60829 ecode2 = SWIG_AsVal_bool(obj1, &val2);
60830 if (!SWIG_IsOK(ecode2)) {
60831 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexShards" "', argument " "2"" of type '" "bool""'");
60833 arg2 =
static_cast< bool >(val2);
60835 Py_BEGIN_ALLOW_THREADS
60839 PyEval_RestoreThread(_save);
60840 PyErr_SetString(PyExc_RuntimeError, e.
what());
60843 Py_END_ALLOW_THREADS
60845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexShards, SWIG_POINTER_NEW | 0 );
60852 SWIGINTERN PyObject *_wrap_new_IndexShards__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60853 PyObject *resultobj = 0;
60857 PyObject * obj0 = 0 ;
60860 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexShards",&obj0)) SWIG_fail;
60861 ecode1 = SWIG_AsVal_long(obj0, &val1);
60862 if (!SWIG_IsOK(ecode1)) {
60863 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexShards" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
60867 Py_BEGIN_ALLOW_THREADS
60871 PyEval_RestoreThread(_save);
60872 PyErr_SetString(PyExc_RuntimeError, e.
what());
60875 Py_END_ALLOW_THREADS
60877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexShards, SWIG_POINTER_NEW | 0 );
60884 SWIGINTERN PyObject *_wrap_new_IndexShards(PyObject *
self, PyObject *args) {
60886 PyObject *argv[4] = {
60891 if (!PyTuple_Check(args)) SWIG_fail;
60892 argc = args ? PyObject_Length(args) : 0;
60893 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
60894 argv[ii] = PyTuple_GET_ITEM(args,ii);
60899 int res = SWIG_AsVal_long(argv[0], NULL);
60900 _v = SWIG_CheckState(res);
60903 return _wrap_new_IndexShards__SWIG_2(
self, args);
60909 int res = SWIG_AsVal_long(argv[0], NULL);
60910 _v = SWIG_CheckState(res);
60914 int res = SWIG_AsVal_bool(argv[1], NULL);
60915 _v = SWIG_CheckState(res);
60918 return _wrap_new_IndexShards__SWIG_1(
self, args);
60925 int res = SWIG_AsVal_long(argv[0], NULL);
60926 _v = SWIG_CheckState(res);
60930 int res = SWIG_AsVal_bool(argv[1], NULL);
60931 _v = SWIG_CheckState(res);
60935 int res = SWIG_AsVal_bool(argv[2], NULL);
60936 _v = SWIG_CheckState(res);
60939 return _wrap_new_IndexShards__SWIG_0(
self, args);
60946 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexShards'.\n"
60947 " Possible C/C++ prototypes are:\n"
60948 " faiss::IndexShards::IndexShards(faiss::Index::idx_t,bool,bool)\n"
60949 " faiss::IndexShards::IndexShards(faiss::Index::idx_t,bool)\n"
60950 " faiss::IndexShards::IndexShards(faiss::Index::idx_t)\n");
60955 SWIGINTERN PyObject *_wrap_IndexShards_add_shard(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60956 PyObject *resultobj = 0;
60963 PyObject * obj0 = 0 ;
60964 PyObject * obj1 = 0 ;
60966 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexShards_add_shard",&obj0,&obj1)) SWIG_fail;
60967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
60968 if (!SWIG_IsOK(res1)) {
60969 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_add_shard" "', argument " "1"" of type '" "faiss::IndexShards *""'");
60972 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
60973 if (!SWIG_IsOK(res2)) {
60974 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexShards_add_shard" "', argument " "2"" of type '" "faiss::Index *""'");
60978 Py_BEGIN_ALLOW_THREADS
60980 (arg1)->add_shard(arg2);
60982 PyEval_RestoreThread(_save);
60983 PyErr_SetString(PyExc_RuntimeError, e.
what());
60986 Py_END_ALLOW_THREADS
60988 resultobj = SWIG_Py_Void();
60995 SWIGINTERN PyObject *_wrap_IndexShards_sync_with_shard_indexes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60996 PyObject *resultobj = 0;
61000 PyObject * obj0 = 0 ;
61002 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexShards_sync_with_shard_indexes",&obj0)) SWIG_fail;
61003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
61004 if (!SWIG_IsOK(res1)) {
61005 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_sync_with_shard_indexes" "', argument " "1"" of type '" "faiss::IndexShards *""'");
61009 Py_BEGIN_ALLOW_THREADS
61011 (arg1)->sync_with_shard_indexes();
61013 PyEval_RestoreThread(_save);
61014 PyErr_SetString(PyExc_RuntimeError, e.
what());
61017 Py_END_ALLOW_THREADS
61019 resultobj = SWIG_Py_Void();
61026 SWIGINTERN PyObject *_wrap_IndexShards_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61027 PyObject *resultobj = 0;
61034 PyObject * obj0 = 0 ;
61035 PyObject * obj1 = 0 ;
61038 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexShards_at",&obj0,&obj1)) SWIG_fail;
61039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
61040 if (!SWIG_IsOK(res1)) {
61041 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_at" "', argument " "1"" of type '" "faiss::IndexShards *""'");
61044 ecode2 = SWIG_AsVal_int(obj1, &val2);
61045 if (!SWIG_IsOK(ecode2)) {
61046 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_at" "', argument " "2"" of type '" "int""'");
61048 arg2 =
static_cast< int >(val2);
61050 Py_BEGIN_ALLOW_THREADS
61054 PyEval_RestoreThread(_save);
61055 PyErr_SetString(PyExc_RuntimeError, e.
what());
61058 Py_END_ALLOW_THREADS
61060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
61067 SWIGINTERN PyObject *_wrap_IndexShards_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61068 PyObject *resultobj = 0;
61071 float *arg3 = (
float *) 0 ;
61078 PyObject * obj0 = 0 ;
61079 PyObject * obj1 = 0 ;
61080 PyObject * obj2 = 0 ;
61082 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexShards_add",&obj0,&obj1,&obj2)) SWIG_fail;
61083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
61084 if (!SWIG_IsOK(res1)) {
61085 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_add" "', argument " "1"" of type '" "faiss::IndexShards *""'");
61088 ecode2 = SWIG_AsVal_long(obj1, &val2);
61089 if (!SWIG_IsOK(ecode2)) {
61090 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61093 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
61094 if (!SWIG_IsOK(res3)) {
61095 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexShards_add" "', argument " "3"" of type '" "float const *""'");
61097 arg3 =
reinterpret_cast< float *
>(argp3);
61099 Py_BEGIN_ALLOW_THREADS
61101 (arg1)->add(arg2,(
float const *)arg3);
61103 PyEval_RestoreThread(_save);
61104 PyErr_SetString(PyExc_RuntimeError, e.
what());
61107 Py_END_ALLOW_THREADS
61109 resultobj = SWIG_Py_Void();
61116 SWIGINTERN PyObject *_wrap_IndexShards_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61117 PyObject *resultobj = 0;
61120 float *arg3 = (
float *) 0 ;
61121 long *arg4 = (
long *) 0 ;
61130 PyObject * obj0 = 0 ;
61131 PyObject * obj1 = 0 ;
61132 PyObject * obj2 = 0 ;
61133 PyObject * obj3 = 0 ;
61135 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexShards_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
61136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
61137 if (!SWIG_IsOK(res1)) {
61138 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_add_with_ids" "', argument " "1"" of type '" "faiss::IndexShards *""'");
61141 ecode2 = SWIG_AsVal_long(obj1, &val2);
61142 if (!SWIG_IsOK(ecode2)) {
61143 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61146 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
61147 if (!SWIG_IsOK(res3)) {
61148 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexShards_add_with_ids" "', argument " "3"" of type '" "float const *""'");
61150 arg3 =
reinterpret_cast< float *
>(argp3);
61151 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
61152 if (!SWIG_IsOK(res4)) {
61153 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexShards_add_with_ids" "', argument " "4"" of type '" "long const *""'");
61155 arg4 =
reinterpret_cast< long *
>(argp4);
61157 Py_BEGIN_ALLOW_THREADS
61159 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
61161 PyEval_RestoreThread(_save);
61162 PyErr_SetString(PyExc_RuntimeError, e.
what());
61165 Py_END_ALLOW_THREADS
61167 resultobj = SWIG_Py_Void();
61174 SWIGINTERN PyObject *_wrap_IndexShards_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61175 PyObject *resultobj = 0;
61178 float *arg3 = (
float *) 0 ;
61180 float *arg5 = (
float *) 0 ;
61194 PyObject * obj0 = 0 ;
61195 PyObject * obj1 = 0 ;
61196 PyObject * obj2 = 0 ;
61197 PyObject * obj3 = 0 ;
61198 PyObject * obj4 = 0 ;
61199 PyObject * obj5 = 0 ;
61201 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexShards_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
61202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
61203 if (!SWIG_IsOK(res1)) {
61204 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_search" "', argument " "1"" of type '" "faiss::IndexShards const *""'");
61207 ecode2 = SWIG_AsVal_long(obj1, &val2);
61208 if (!SWIG_IsOK(ecode2)) {
61209 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61212 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
61213 if (!SWIG_IsOK(res3)) {
61214 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexShards_search" "', argument " "3"" of type '" "float const *""'");
61216 arg3 =
reinterpret_cast< float *
>(argp3);
61217 ecode4 = SWIG_AsVal_long(obj3, &val4);
61218 if (!SWIG_IsOK(ecode4)) {
61219 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexShards_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
61222 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
61223 if (!SWIG_IsOK(res5)) {
61224 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexShards_search" "', argument " "5"" of type '" "float *""'");
61226 arg5 =
reinterpret_cast< float *
>(argp5);
61227 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
61228 if (!SWIG_IsOK(res6)) {
61229 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexShards_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
61233 Py_BEGIN_ALLOW_THREADS
61235 ((
faiss::IndexShards const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
61237 PyEval_RestoreThread(_save);
61238 PyErr_SetString(PyExc_RuntimeError, e.
what());
61241 Py_END_ALLOW_THREADS
61243 resultobj = SWIG_Py_Void();
61250 SWIGINTERN PyObject *_wrap_IndexShards_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61251 PyObject *resultobj = 0;
61254 float *arg3 = (
float *) 0 ;
61261 PyObject * obj0 = 0 ;
61262 PyObject * obj1 = 0 ;
61263 PyObject * obj2 = 0 ;
61265 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexShards_train",&obj0,&obj1,&obj2)) SWIG_fail;
61266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
61267 if (!SWIG_IsOK(res1)) {
61268 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_train" "', argument " "1"" of type '" "faiss::IndexShards *""'");
61271 ecode2 = SWIG_AsVal_long(obj1, &val2);
61272 if (!SWIG_IsOK(ecode2)) {
61273 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61276 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
61277 if (!SWIG_IsOK(res3)) {
61278 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexShards_train" "', argument " "3"" of type '" "float const *""'");
61280 arg3 =
reinterpret_cast< float *
>(argp3);
61282 Py_BEGIN_ALLOW_THREADS
61284 (arg1)->train(arg2,(
float const *)arg3);
61286 PyEval_RestoreThread(_save);
61287 PyErr_SetString(PyExc_RuntimeError, e.
what());
61290 Py_END_ALLOW_THREADS
61292 resultobj = SWIG_Py_Void();
61299 SWIGINTERN PyObject *_wrap_IndexShards_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61300 PyObject *resultobj = 0;
61304 PyObject * obj0 = 0 ;
61306 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexShards_reset",&obj0)) SWIG_fail;
61307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
61308 if (!SWIG_IsOK(res1)) {
61309 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_reset" "', argument " "1"" of type '" "faiss::IndexShards *""'");
61313 Py_BEGIN_ALLOW_THREADS
61317 PyEval_RestoreThread(_save);
61318 PyErr_SetString(PyExc_RuntimeError, e.
what());
61321 Py_END_ALLOW_THREADS
61323 resultobj = SWIG_Py_Void();
61330 SWIGINTERN PyObject *_wrap_delete_IndexShards(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61331 PyObject *resultobj = 0;
61335 PyObject * obj0 = 0 ;
61337 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexShards",&obj0)) SWIG_fail;
61338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, SWIG_POINTER_DISOWN | 0 );
61339 if (!SWIG_IsOK(res1)) {
61340 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexShards" "', argument " "1"" of type '" "faiss::IndexShards *""'");
61344 Py_BEGIN_ALLOW_THREADS
61348 PyEval_RestoreThread(_save);
61349 PyErr_SetString(PyExc_RuntimeError, e.
what());
61352 Py_END_ALLOW_THREADS
61354 resultobj = SWIG_Py_Void();
61361 SWIGINTERN PyObject *IndexShards_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61363 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
61364 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexShards, SWIG_NewClientData(obj));
61365 return SWIG_Py_Void();
61368 SWIGINTERN PyObject *_wrap_IndexSplitVectors_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61369 PyObject *resultobj = 0;
61376 PyObject * obj0 = 0 ;
61377 PyObject * obj1 = 0 ;
61379 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexSplitVectors_own_fields_set",&obj0,&obj1)) SWIG_fail;
61380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
61381 if (!SWIG_IsOK(res1)) {
61382 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_own_fields_set" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
61385 ecode2 = SWIG_AsVal_bool(obj1, &val2);
61386 if (!SWIG_IsOK(ecode2)) {
61387 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexSplitVectors_own_fields_set" "', argument " "2"" of type '" "bool""'");
61389 arg2 =
static_cast< bool >(val2);
61390 if (arg1) (arg1)->own_fields = arg2;
61391 resultobj = SWIG_Py_Void();
61398 SWIGINTERN PyObject *_wrap_IndexSplitVectors_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61399 PyObject *resultobj = 0;
61403 PyObject * obj0 = 0 ;
61406 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexSplitVectors_own_fields_get",&obj0)) SWIG_fail;
61407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
61408 if (!SWIG_IsOK(res1)) {
61409 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_own_fields_get" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
61412 result = (bool) ((arg1)->own_fields);
61413 resultobj = SWIG_From_bool(static_cast< bool >(result));
61420 SWIGINTERN PyObject *_wrap_IndexSplitVectors_threaded_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61421 PyObject *resultobj = 0;
61428 PyObject * obj0 = 0 ;
61429 PyObject * obj1 = 0 ;
61431 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexSplitVectors_threaded_set",&obj0,&obj1)) SWIG_fail;
61432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
61433 if (!SWIG_IsOK(res1)) {
61434 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_threaded_set" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
61437 ecode2 = SWIG_AsVal_bool(obj1, &val2);
61438 if (!SWIG_IsOK(ecode2)) {
61439 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexSplitVectors_threaded_set" "', argument " "2"" of type '" "bool""'");
61441 arg2 =
static_cast< bool >(val2);
61442 if (arg1) (arg1)->threaded = arg2;
61443 resultobj = SWIG_Py_Void();
61450 SWIGINTERN PyObject *_wrap_IndexSplitVectors_threaded_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61451 PyObject *resultobj = 0;
61455 PyObject * obj0 = 0 ;
61458 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexSplitVectors_threaded_get",&obj0)) SWIG_fail;
61459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
61460 if (!SWIG_IsOK(res1)) {
61461 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_threaded_get" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
61464 result = (bool) ((arg1)->threaded);
61465 resultobj = SWIG_From_bool(static_cast< bool >(result));
61472 SWIGINTERN PyObject *_wrap_IndexSplitVectors_sub_indexes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61473 PyObject *resultobj = 0;
61475 std::vector< faiss::Index * > *arg2 = (std::vector< faiss::Index * > *) 0 ;
61480 PyObject * obj0 = 0 ;
61481 PyObject * obj1 = 0 ;
61483 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexSplitVectors_sub_indexes_set",&obj0,&obj1)) SWIG_fail;
61484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
61485 if (!SWIG_IsOK(res1)) {
61486 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_sub_indexes_set" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
61489 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__Index_p_t, 0 | 0 );
61490 if (!SWIG_IsOK(res2)) {
61491 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexSplitVectors_sub_indexes_set" "', argument " "2"" of type '" "std::vector< faiss::Index * > *""'");
61493 arg2 =
reinterpret_cast< std::vector< faiss::Index * > *
>(argp2);
61494 if (arg1) (arg1)->sub_indexes = *arg2;
61495 resultobj = SWIG_Py_Void();
61502 SWIGINTERN PyObject *_wrap_IndexSplitVectors_sub_indexes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61503 PyObject *resultobj = 0;
61507 PyObject * obj0 = 0 ;
61508 std::vector< faiss::Index * > *result = 0 ;
61510 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexSplitVectors_sub_indexes_get",&obj0)) SWIG_fail;
61511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
61512 if (!SWIG_IsOK(res1)) {
61513 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_sub_indexes_get" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
61516 result = (std::vector< faiss::Index * > *)& ((arg1)->sub_indexes);
61517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__Index_p_t, 0 | 0 );
61524 SWIGINTERN PyObject *_wrap_IndexSplitVectors_sum_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61525 PyObject *resultobj = 0;
61532 PyObject * obj0 = 0 ;
61533 PyObject * obj1 = 0 ;
61535 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexSplitVectors_sum_d_set",&obj0,&obj1)) SWIG_fail;
61536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
61537 if (!SWIG_IsOK(res1)) {
61538 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_sum_d_set" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
61541 ecode2 = SWIG_AsVal_long(obj1, &val2);
61542 if (!SWIG_IsOK(ecode2)) {
61543 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexSplitVectors_sum_d_set" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61546 if (arg1) (arg1)->sum_d = arg2;
61547 resultobj = SWIG_Py_Void();
61554 SWIGINTERN PyObject *_wrap_IndexSplitVectors_sum_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61555 PyObject *resultobj = 0;
61559 PyObject * obj0 = 0 ;
61562 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexSplitVectors_sum_d_get",&obj0)) SWIG_fail;
61563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
61564 if (!SWIG_IsOK(res1)) {
61565 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_sum_d_get" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
61569 resultobj = SWIG_From_long(static_cast< long >(result));
61576 SWIGINTERN PyObject *_wrap_new_IndexSplitVectors__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61577 PyObject *resultobj = 0;
61584 PyObject * obj0 = 0 ;
61585 PyObject * obj1 = 0 ;
61588 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexSplitVectors",&obj0,&obj1)) SWIG_fail;
61589 ecode1 = SWIG_AsVal_long(obj0, &val1);
61590 if (!SWIG_IsOK(ecode1)) {
61591 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexSplitVectors" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
61594 ecode2 = SWIG_AsVal_bool(obj1, &val2);
61595 if (!SWIG_IsOK(ecode2)) {
61596 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexSplitVectors" "', argument " "2"" of type '" "bool""'");
61598 arg2 =
static_cast< bool >(val2);
61600 Py_BEGIN_ALLOW_THREADS
61604 PyEval_RestoreThread(_save);
61605 PyErr_SetString(PyExc_RuntimeError, e.
what());
61608 Py_END_ALLOW_THREADS
61610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexSplitVectors, SWIG_POINTER_NEW | 0 );
61617 SWIGINTERN PyObject *_wrap_new_IndexSplitVectors__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61618 PyObject *resultobj = 0;
61622 PyObject * obj0 = 0 ;
61625 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexSplitVectors",&obj0)) SWIG_fail;
61626 ecode1 = SWIG_AsVal_long(obj0, &val1);
61627 if (!SWIG_IsOK(ecode1)) {
61628 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexSplitVectors" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
61632 Py_BEGIN_ALLOW_THREADS
61636 PyEval_RestoreThread(_save);
61637 PyErr_SetString(PyExc_RuntimeError, e.
what());
61640 Py_END_ALLOW_THREADS
61642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexSplitVectors, SWIG_POINTER_NEW | 0 );
61649 SWIGINTERN PyObject *_wrap_new_IndexSplitVectors(PyObject *
self, PyObject *args) {
61651 PyObject *argv[3] = {
61656 if (!PyTuple_Check(args)) SWIG_fail;
61657 argc = args ? PyObject_Length(args) : 0;
61658 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
61659 argv[ii] = PyTuple_GET_ITEM(args,ii);
61664 int res = SWIG_AsVal_long(argv[0], NULL);
61665 _v = SWIG_CheckState(res);
61668 return _wrap_new_IndexSplitVectors__SWIG_1(
self, args);
61674 int res = SWIG_AsVal_long(argv[0], NULL);
61675 _v = SWIG_CheckState(res);
61679 int res = SWIG_AsVal_bool(argv[1], NULL);
61680 _v = SWIG_CheckState(res);
61683 return _wrap_new_IndexSplitVectors__SWIG_0(
self, args);
61689 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexSplitVectors'.\n"
61690 " Possible C/C++ prototypes are:\n"
61691 " faiss::IndexSplitVectors::IndexSplitVectors(faiss::Index::idx_t,bool)\n"
61692 " faiss::IndexSplitVectors::IndexSplitVectors(faiss::Index::idx_t)\n");
61697 SWIGINTERN PyObject *_wrap_IndexSplitVectors_add_sub_index(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61698 PyObject *resultobj = 0;
61705 PyObject * obj0 = 0 ;
61706 PyObject * obj1 = 0 ;
61708 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexSplitVectors_add_sub_index",&obj0,&obj1)) SWIG_fail;
61709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
61710 if (!SWIG_IsOK(res1)) {
61711 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_add_sub_index" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
61714 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
61715 if (!SWIG_IsOK(res2)) {
61716 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexSplitVectors_add_sub_index" "', argument " "2"" of type '" "faiss::Index *""'");
61720 Py_BEGIN_ALLOW_THREADS
61722 (arg1)->add_sub_index(arg2);
61724 PyEval_RestoreThread(_save);
61725 PyErr_SetString(PyExc_RuntimeError, e.
what());
61728 Py_END_ALLOW_THREADS
61730 resultobj = SWIG_Py_Void();
61737 SWIGINTERN PyObject *_wrap_IndexSplitVectors_sync_with_sub_indexes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61738 PyObject *resultobj = 0;
61742 PyObject * obj0 = 0 ;
61744 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexSplitVectors_sync_with_sub_indexes",&obj0)) SWIG_fail;
61745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
61746 if (!SWIG_IsOK(res1)) {
61747 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_sync_with_sub_indexes" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
61751 Py_BEGIN_ALLOW_THREADS
61753 (arg1)->sync_with_sub_indexes();
61755 PyEval_RestoreThread(_save);
61756 PyErr_SetString(PyExc_RuntimeError, e.
what());
61759 Py_END_ALLOW_THREADS
61761 resultobj = SWIG_Py_Void();
61768 SWIGINTERN PyObject *_wrap_IndexSplitVectors_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61769 PyObject *resultobj = 0;
61772 float *arg3 = (
float *) 0 ;
61779 PyObject * obj0 = 0 ;
61780 PyObject * obj1 = 0 ;
61781 PyObject * obj2 = 0 ;
61783 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexSplitVectors_add",&obj0,&obj1,&obj2)) SWIG_fail;
61784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
61785 if (!SWIG_IsOK(res1)) {
61786 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_add" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
61789 ecode2 = SWIG_AsVal_long(obj1, &val2);
61790 if (!SWIG_IsOK(ecode2)) {
61791 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexSplitVectors_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61794 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
61795 if (!SWIG_IsOK(res3)) {
61796 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexSplitVectors_add" "', argument " "3"" of type '" "float const *""'");
61798 arg3 =
reinterpret_cast< float *
>(argp3);
61800 Py_BEGIN_ALLOW_THREADS
61802 (arg1)->add(arg2,(
float const *)arg3);
61804 PyEval_RestoreThread(_save);
61805 PyErr_SetString(PyExc_RuntimeError, e.
what());
61808 Py_END_ALLOW_THREADS
61810 resultobj = SWIG_Py_Void();
61817 SWIGINTERN PyObject *_wrap_IndexSplitVectors_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61818 PyObject *resultobj = 0;
61821 float *arg3 = (
float *) 0 ;
61823 float *arg5 = (
float *) 0 ;
61837 PyObject * obj0 = 0 ;
61838 PyObject * obj1 = 0 ;
61839 PyObject * obj2 = 0 ;
61840 PyObject * obj3 = 0 ;
61841 PyObject * obj4 = 0 ;
61842 PyObject * obj5 = 0 ;
61844 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexSplitVectors_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
61845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
61846 if (!SWIG_IsOK(res1)) {
61847 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_search" "', argument " "1"" of type '" "faiss::IndexSplitVectors const *""'");
61850 ecode2 = SWIG_AsVal_long(obj1, &val2);
61851 if (!SWIG_IsOK(ecode2)) {
61852 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexSplitVectors_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61855 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
61856 if (!SWIG_IsOK(res3)) {
61857 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexSplitVectors_search" "', argument " "3"" of type '" "float const *""'");
61859 arg3 =
reinterpret_cast< float *
>(argp3);
61860 ecode4 = SWIG_AsVal_long(obj3, &val4);
61861 if (!SWIG_IsOK(ecode4)) {
61862 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexSplitVectors_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
61865 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
61866 if (!SWIG_IsOK(res5)) {
61867 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexSplitVectors_search" "', argument " "5"" of type '" "float *""'");
61869 arg5 =
reinterpret_cast< float *
>(argp5);
61870 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
61871 if (!SWIG_IsOK(res6)) {
61872 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexSplitVectors_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
61876 Py_BEGIN_ALLOW_THREADS
61880 PyEval_RestoreThread(_save);
61881 PyErr_SetString(PyExc_RuntimeError, e.
what());
61884 Py_END_ALLOW_THREADS
61886 resultobj = SWIG_Py_Void();
61893 SWIGINTERN PyObject *_wrap_IndexSplitVectors_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61894 PyObject *resultobj = 0;
61897 float *arg3 = (
float *) 0 ;
61904 PyObject * obj0 = 0 ;
61905 PyObject * obj1 = 0 ;
61906 PyObject * obj2 = 0 ;
61908 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexSplitVectors_train",&obj0,&obj1,&obj2)) SWIG_fail;
61909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
61910 if (!SWIG_IsOK(res1)) {
61911 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_train" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
61914 ecode2 = SWIG_AsVal_long(obj1, &val2);
61915 if (!SWIG_IsOK(ecode2)) {
61916 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexSplitVectors_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61919 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
61920 if (!SWIG_IsOK(res3)) {
61921 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexSplitVectors_train" "', argument " "3"" of type '" "float const *""'");
61923 arg3 =
reinterpret_cast< float *
>(argp3);
61925 Py_BEGIN_ALLOW_THREADS
61927 (arg1)->train(arg2,(
float const *)arg3);
61929 PyEval_RestoreThread(_save);
61930 PyErr_SetString(PyExc_RuntimeError, e.
what());
61933 Py_END_ALLOW_THREADS
61935 resultobj = SWIG_Py_Void();
61942 SWIGINTERN PyObject *_wrap_IndexSplitVectors_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61943 PyObject *resultobj = 0;
61947 PyObject * obj0 = 0 ;
61949 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexSplitVectors_reset",&obj0)) SWIG_fail;
61950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
61951 if (!SWIG_IsOK(res1)) {
61952 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_reset" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
61956 Py_BEGIN_ALLOW_THREADS
61960 PyEval_RestoreThread(_save);
61961 PyErr_SetString(PyExc_RuntimeError, e.
what());
61964 Py_END_ALLOW_THREADS
61966 resultobj = SWIG_Py_Void();
61973 SWIGINTERN PyObject *_wrap_delete_IndexSplitVectors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61974 PyObject *resultobj = 0;
61978 PyObject * obj0 = 0 ;
61980 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexSplitVectors",&obj0)) SWIG_fail;
61981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, SWIG_POINTER_DISOWN | 0 );
61982 if (!SWIG_IsOK(res1)) {
61983 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexSplitVectors" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
61987 Py_BEGIN_ALLOW_THREADS
61991 PyEval_RestoreThread(_save);
61992 PyErr_SetString(PyExc_RuntimeError, e.
what());
61995 Py_END_ALLOW_THREADS
61997 resultobj = SWIG_Py_Void();
62004 SWIGINTERN PyObject *IndexSplitVectors_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62006 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
62007 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexSplitVectors, SWIG_NewClientData(obj));
62008 return SWIG_Py_Void();
62011 SWIGINTERN PyObject *_wrap_downcast_index(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62012 PyObject *resultobj = 0;
62016 PyObject * obj0 = 0 ;
62019 if (!PyArg_ParseTuple(args,(
char *)
"O:downcast_index",&obj0)) SWIG_fail;
62020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
62021 if (!SWIG_IsOK(res1)) {
62022 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "downcast_index" "', argument " "1"" of type '" "faiss::Index *""'");
62026 Py_BEGIN_ALLOW_THREADS
62030 PyEval_RestoreThread(_save);
62031 PyErr_SetString(PyExc_RuntimeError, e.
what());
62034 Py_END_ALLOW_THREADS
62038 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
62039 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,0);
62043 if (dynamic_cast<faiss::IndexShards *> (result)) {
62044 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,0);
62048 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
62049 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,0);
62053 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
62054 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,0);
62058 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
62059 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,0);
62063 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
62064 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,0);
62068 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
62069 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,0);
62073 if (dynamic_cast<faiss::IndexIVF *> (result)) {
62074 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,0);
62078 if (dynamic_cast<faiss::IndexFlat *> (result)) {
62079 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,0);
62083 if (dynamic_cast<faiss::IndexPQ *> (result)) {
62084 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,0);
62088 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
62089 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,0);
62093 if (dynamic_cast<faiss::IndexLSH *> (result)) {
62094 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,0);
62098 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
62099 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,0);
62103 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
62104 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,0);
62108 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
62109 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,0);
62113 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
62114 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,0);
62118 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
62119 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,0);
62123 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
62124 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,0);
62128 if (dynamic_cast<faiss::Index2Layer *> (result)) {
62129 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,0);
62140 if (dynamic_cast<faiss::Index *> (result)) {
62141 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,0);
62144 if (result == NULL)
62146 resultobj = SWIG_Py_Void();
62162 SWIGINTERN PyObject *_wrap_downcast_VectorTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62163 PyObject *resultobj = 0;
62167 PyObject * obj0 = 0 ;
62170 if (!PyArg_ParseTuple(args,(
char *)
"O:downcast_VectorTransform",&obj0)) SWIG_fail;
62171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
62172 if (!SWIG_IsOK(res1)) {
62173 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "downcast_VectorTransform" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
62177 Py_BEGIN_ALLOW_THREADS
62181 PyEval_RestoreThread(_save);
62182 PyErr_SetString(PyExc_RuntimeError, e.
what());
62185 Py_END_ALLOW_THREADS
62189 if (dynamic_cast<faiss::RemapDimensionsTransform *> (result)) {
62190 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__RemapDimensionsTransform,0);
62194 if (dynamic_cast<faiss::OPQMatrix *> (result)) {
62195 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__OPQMatrix,0);
62199 if (dynamic_cast<faiss::PCAMatrix *> (result)) {
62200 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__PCAMatrix,0);
62204 if (dynamic_cast<faiss::RandomRotationMatrix *> (result)) {
62205 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__RandomRotationMatrix,0);
62209 if (dynamic_cast<faiss::LinearTransform *> (result)) {
62210 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__LinearTransform,0);
62214 if (dynamic_cast<faiss::NormalizationTransform *> (result)) {
62215 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__NormalizationTransform,0);
62219 if (dynamic_cast<faiss::VectorTransform *> (result)) {
62220 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__VectorTransform,0);
62236 SWIGINTERN PyObject *_wrap_downcast_IndexBinary(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62237 PyObject *resultobj = 0;
62241 PyObject * obj0 = 0 ;
62244 if (!PyArg_ParseTuple(args,(
char *)
"O:downcast_IndexBinary",&obj0)) SWIG_fail;
62245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
62246 if (!SWIG_IsOK(res1)) {
62247 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "downcast_IndexBinary" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
62251 Py_BEGIN_ALLOW_THREADS
62255 PyEval_RestoreThread(_save);
62256 PyErr_SetString(PyExc_RuntimeError, e.
what());
62259 Py_END_ALLOW_THREADS
62263 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
62264 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,0);
62268 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
62269 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,0);
62273 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
62274 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,0);
62278 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
62279 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,0);
62287 if (dynamic_cast<faiss::IndexBinary *> (result)) {
62288 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,0);
62291 if (result == NULL)
62293 resultobj = SWIG_Py_Void();
62309 SWIGINTERN PyObject *_wrap_write_index__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62310 PyObject *resultobj = 0;
62312 char *arg2 = (
char *) 0 ;
62318 PyObject * obj0 = 0 ;
62319 PyObject * obj1 = 0 ;
62321 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_index",&obj0,&obj1)) SWIG_fail;
62322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
62323 if (!SWIG_IsOK(res1)) {
62324 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_index" "', argument " "1"" of type '" "faiss::Index const *""'");
62327 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
62328 if (!SWIG_IsOK(res2)) {
62329 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_index" "', argument " "2"" of type '" "char const *""'");
62331 arg2 =
reinterpret_cast< char *
>(buf2);
62333 Py_BEGIN_ALLOW_THREADS
62335 faiss::write_index((
faiss::Index const *)arg1,(
char const *)arg2);
62337 PyEval_RestoreThread(_save);
62338 PyErr_SetString(PyExc_RuntimeError, e.
what());
62341 Py_END_ALLOW_THREADS
62343 resultobj = SWIG_Py_Void();
62344 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
62347 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
62352 SWIGINTERN PyObject *_wrap_write_index__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62353 PyObject *resultobj = 0;
62355 FILE *arg2 = (FILE *) 0 ;
62360 PyObject * obj0 = 0 ;
62361 PyObject * obj1 = 0 ;
62363 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_index",&obj0,&obj1)) SWIG_fail;
62364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
62365 if (!SWIG_IsOK(res1)) {
62366 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_index" "', argument " "1"" of type '" "faiss::Index const *""'");
62369 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_FILE, 0 | 0 );
62370 if (!SWIG_IsOK(res2)) {
62371 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_index" "', argument " "2"" of type '" "FILE *""'");
62373 arg2 =
reinterpret_cast< FILE *
>(argp2);
62375 Py_BEGIN_ALLOW_THREADS
62379 PyEval_RestoreThread(_save);
62380 PyErr_SetString(PyExc_RuntimeError, e.
what());
62383 Py_END_ALLOW_THREADS
62385 resultobj = SWIG_Py_Void();
62392 SWIGINTERN PyObject *_wrap_write_index__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62393 PyObject *resultobj = 0;
62400 PyObject * obj0 = 0 ;
62401 PyObject * obj1 = 0 ;
62403 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_index",&obj0,&obj1)) SWIG_fail;
62404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
62405 if (!SWIG_IsOK(res1)) {
62406 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_index" "', argument " "1"" of type '" "faiss::Index const *""'");
62409 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
62410 if (!SWIG_IsOK(res2)) {
62411 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_index" "', argument " "2"" of type '" "faiss::IOWriter *""'");
62415 Py_BEGIN_ALLOW_THREADS
62419 PyEval_RestoreThread(_save);
62420 PyErr_SetString(PyExc_RuntimeError, e.
what());
62423 Py_END_ALLOW_THREADS
62425 resultobj = SWIG_Py_Void();
62432 SWIGINTERN PyObject *_wrap_write_index(PyObject *
self, PyObject *args) {
62434 PyObject *argv[3] = {
62439 if (!PyTuple_Check(args)) SWIG_fail;
62440 argc = args ? PyObject_Length(args) : 0;
62441 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
62442 argv[ii] = PyTuple_GET_ITEM(args,ii);
62447 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
62448 _v = SWIG_CheckState(res);
62451 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FILE, 0);
62452 _v = SWIG_CheckState(res);
62454 return _wrap_write_index__SWIG_1(
self, args);
62461 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
62462 _v = SWIG_CheckState(res);
62465 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IOWriter, 0);
62466 _v = SWIG_CheckState(res);
62468 return _wrap_write_index__SWIG_2(
self, args);
62475 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
62476 _v = SWIG_CheckState(res);
62478 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
62479 _v = SWIG_CheckState(res);
62481 return _wrap_write_index__SWIG_0(
self, args);
62487 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'write_index'.\n"
62488 " Possible C/C++ prototypes are:\n"
62489 " faiss::write_index(faiss::Index const *,char const *)\n"
62490 " faiss::write_index(faiss::Index const *,FILE *)\n"
62491 " faiss::write_index(faiss::Index const *,faiss::IOWriter *)\n");
62496 SWIGINTERN PyObject *_wrap_write_index_binary__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62497 PyObject *resultobj = 0;
62499 char *arg2 = (
char *) 0 ;
62505 PyObject * obj0 = 0 ;
62506 PyObject * obj1 = 0 ;
62508 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_index_binary",&obj0,&obj1)) SWIG_fail;
62509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
62510 if (!SWIG_IsOK(res1)) {
62511 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_index_binary" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
62514 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
62515 if (!SWIG_IsOK(res2)) {
62516 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_index_binary" "', argument " "2"" of type '" "char const *""'");
62518 arg2 =
reinterpret_cast< char *
>(buf2);
62520 Py_BEGIN_ALLOW_THREADS
62524 PyEval_RestoreThread(_save);
62525 PyErr_SetString(PyExc_RuntimeError, e.
what());
62528 Py_END_ALLOW_THREADS
62530 resultobj = SWIG_Py_Void();
62531 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
62534 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
62539 SWIGINTERN PyObject *_wrap_write_index_binary__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62540 PyObject *resultobj = 0;
62542 FILE *arg2 = (FILE *) 0 ;
62547 PyObject * obj0 = 0 ;
62548 PyObject * obj1 = 0 ;
62550 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_index_binary",&obj0,&obj1)) SWIG_fail;
62551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
62552 if (!SWIG_IsOK(res1)) {
62553 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_index_binary" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
62556 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_FILE, 0 | 0 );
62557 if (!SWIG_IsOK(res2)) {
62558 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_index_binary" "', argument " "2"" of type '" "FILE *""'");
62560 arg2 =
reinterpret_cast< FILE *
>(argp2);
62562 Py_BEGIN_ALLOW_THREADS
62566 PyEval_RestoreThread(_save);
62567 PyErr_SetString(PyExc_RuntimeError, e.
what());
62570 Py_END_ALLOW_THREADS
62572 resultobj = SWIG_Py_Void();
62579 SWIGINTERN PyObject *_wrap_write_index_binary__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62580 PyObject *resultobj = 0;
62587 PyObject * obj0 = 0 ;
62588 PyObject * obj1 = 0 ;
62590 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_index_binary",&obj0,&obj1)) SWIG_fail;
62591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
62592 if (!SWIG_IsOK(res1)) {
62593 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_index_binary" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
62596 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
62597 if (!SWIG_IsOK(res2)) {
62598 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_index_binary" "', argument " "2"" of type '" "faiss::IOWriter *""'");
62602 Py_BEGIN_ALLOW_THREADS
62606 PyEval_RestoreThread(_save);
62607 PyErr_SetString(PyExc_RuntimeError, e.
what());
62610 Py_END_ALLOW_THREADS
62612 resultobj = SWIG_Py_Void();
62619 SWIGINTERN PyObject *_wrap_write_index_binary(PyObject *
self, PyObject *args) {
62621 PyObject *argv[3] = {
62626 if (!PyTuple_Check(args)) SWIG_fail;
62627 argc = args ? PyObject_Length(args) : 0;
62628 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
62629 argv[ii] = PyTuple_GET_ITEM(args,ii);
62634 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
62635 _v = SWIG_CheckState(res);
62638 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FILE, 0);
62639 _v = SWIG_CheckState(res);
62641 return _wrap_write_index_binary__SWIG_1(
self, args);
62648 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
62649 _v = SWIG_CheckState(res);
62652 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IOWriter, 0);
62653 _v = SWIG_CheckState(res);
62655 return _wrap_write_index_binary__SWIG_2(
self, args);
62662 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
62663 _v = SWIG_CheckState(res);
62665 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
62666 _v = SWIG_CheckState(res);
62668 return _wrap_write_index_binary__SWIG_0(
self, args);
62674 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'write_index_binary'.\n"
62675 " Possible C/C++ prototypes are:\n"
62676 " faiss::write_index_binary(faiss::IndexBinary const *,char const *)\n"
62677 " faiss::write_index_binary(faiss::IndexBinary const *,FILE *)\n"
62678 " faiss::write_index_binary(faiss::IndexBinary const *,faiss::IOWriter *)\n");
62683 SWIGINTERN
int Swig_var_IO_FLAG_MMAP_set(PyObject *) {
62684 SWIG_Error(SWIG_AttributeError,
"Variable IO_FLAG_MMAP is read-only.");
62689 SWIGINTERN PyObject *Swig_var_IO_FLAG_MMAP_get(
void) {
62690 PyObject *pyobj = 0;
62692 pyobj = SWIG_From_int(static_cast< int >(faiss::IO_FLAG_MMAP));
62697 SWIGINTERN
int Swig_var_IO_FLAG_READ_ONLY_set(PyObject *) {
62698 SWIG_Error(SWIG_AttributeError,
"Variable IO_FLAG_READ_ONLY is read-only.");
62703 SWIGINTERN PyObject *Swig_var_IO_FLAG_READ_ONLY_get(
void) {
62704 PyObject *pyobj = 0;
62706 pyobj = SWIG_From_int(static_cast< int >(faiss::IO_FLAG_READ_ONLY));
62711 SWIGINTERN PyObject *_wrap_read_index__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62712 PyObject *resultobj = 0;
62713 char *arg1 = (
char *) 0 ;
62720 PyObject * obj0 = 0 ;
62721 PyObject * obj1 = 0 ;
62724 if (!PyArg_ParseTuple(args,(
char *)
"OO:read_index",&obj0,&obj1)) SWIG_fail;
62725 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
62726 if (!SWIG_IsOK(res1)) {
62727 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index" "', argument " "1"" of type '" "char const *""'");
62729 arg1 =
reinterpret_cast< char *
>(buf1);
62730 ecode2 = SWIG_AsVal_int(obj1, &val2);
62731 if (!SWIG_IsOK(ecode2)) {
62732 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "read_index" "', argument " "2"" of type '" "int""'");
62734 arg2 =
static_cast< int >(val2);
62736 Py_BEGIN_ALLOW_THREADS
62738 result = (
faiss::Index *)faiss::read_index((
char const *)arg1,arg2);
62740 PyEval_RestoreThread(_save);
62741 PyErr_SetString(PyExc_RuntimeError, e.
what());
62744 Py_END_ALLOW_THREADS
62748 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
62749 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
62753 if (dynamic_cast<faiss::IndexShards *> (result)) {
62754 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
62758 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
62759 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
62763 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
62764 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
62768 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
62769 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
62773 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
62774 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
62778 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
62779 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
62783 if (dynamic_cast<faiss::IndexIVF *> (result)) {
62784 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
62788 if (dynamic_cast<faiss::IndexFlat *> (result)) {
62789 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
62793 if (dynamic_cast<faiss::IndexPQ *> (result)) {
62794 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
62798 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
62799 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
62803 if (dynamic_cast<faiss::IndexLSH *> (result)) {
62804 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
62808 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
62809 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
62813 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
62814 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
62818 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
62819 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
62823 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
62824 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
62828 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
62829 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
62833 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
62834 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
62838 if (dynamic_cast<faiss::Index2Layer *> (result)) {
62839 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
62850 if (dynamic_cast<faiss::Index *> (result)) {
62851 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
62854 if (result == NULL)
62856 resultobj = SWIG_Py_Void();
62866 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
62869 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
62874 SWIGINTERN PyObject *_wrap_read_index__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62875 PyObject *resultobj = 0;
62876 char *arg1 = (
char *) 0 ;
62880 PyObject * obj0 = 0 ;
62883 if (!PyArg_ParseTuple(args,(
char *)
"O:read_index",&obj0)) SWIG_fail;
62884 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
62885 if (!SWIG_IsOK(res1)) {
62886 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index" "', argument " "1"" of type '" "char const *""'");
62888 arg1 =
reinterpret_cast< char *
>(buf1);
62890 Py_BEGIN_ALLOW_THREADS
62892 result = (
faiss::Index *)faiss::read_index((
char const *)arg1);
62894 PyEval_RestoreThread(_save);
62895 PyErr_SetString(PyExc_RuntimeError, e.
what());
62898 Py_END_ALLOW_THREADS
62902 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
62903 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
62907 if (dynamic_cast<faiss::IndexShards *> (result)) {
62908 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
62912 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
62913 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
62917 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
62918 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
62922 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
62923 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
62927 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
62928 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
62932 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
62933 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
62937 if (dynamic_cast<faiss::IndexIVF *> (result)) {
62938 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
62942 if (dynamic_cast<faiss::IndexFlat *> (result)) {
62943 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
62947 if (dynamic_cast<faiss::IndexPQ *> (result)) {
62948 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
62952 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
62953 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
62957 if (dynamic_cast<faiss::IndexLSH *> (result)) {
62958 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
62962 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
62963 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
62967 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
62968 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
62972 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
62973 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
62977 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
62978 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
62982 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
62983 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
62987 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
62988 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
62992 if (dynamic_cast<faiss::Index2Layer *> (result)) {
62993 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
63004 if (dynamic_cast<faiss::Index *> (result)) {
63005 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
63008 if (result == NULL)
63010 resultobj = SWIG_Py_Void();
63020 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
63023 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
63028 SWIGINTERN PyObject *_wrap_read_index__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63029 PyObject *resultobj = 0;
63030 FILE *arg1 = (FILE *) 0 ;
63036 PyObject * obj0 = 0 ;
63037 PyObject * obj1 = 0 ;
63040 if (!PyArg_ParseTuple(args,(
char *)
"OO:read_index",&obj0,&obj1)) SWIG_fail;
63041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FILE, 0 | 0 );
63042 if (!SWIG_IsOK(res1)) {
63043 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index" "', argument " "1"" of type '" "FILE *""'");
63045 arg1 =
reinterpret_cast< FILE *
>(argp1);
63046 ecode2 = SWIG_AsVal_int(obj1, &val2);
63047 if (!SWIG_IsOK(ecode2)) {
63048 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "read_index" "', argument " "2"" of type '" "int""'");
63050 arg2 =
static_cast< int >(val2);
63052 Py_BEGIN_ALLOW_THREADS
63054 result = (
faiss::Index *)faiss::read_index(arg1,arg2);
63056 PyEval_RestoreThread(_save);
63057 PyErr_SetString(PyExc_RuntimeError, e.
what());
63060 Py_END_ALLOW_THREADS
63064 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
63065 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
63069 if (dynamic_cast<faiss::IndexShards *> (result)) {
63070 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
63074 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
63075 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
63079 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
63080 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
63084 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
63085 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
63089 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
63090 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
63094 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
63095 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
63099 if (dynamic_cast<faiss::IndexIVF *> (result)) {
63100 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
63104 if (dynamic_cast<faiss::IndexFlat *> (result)) {
63105 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
63109 if (dynamic_cast<faiss::IndexPQ *> (result)) {
63110 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
63114 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
63115 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
63119 if (dynamic_cast<faiss::IndexLSH *> (result)) {
63120 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
63124 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
63125 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
63129 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
63130 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
63134 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
63135 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
63139 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
63140 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
63144 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
63145 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
63149 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
63150 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
63154 if (dynamic_cast<faiss::Index2Layer *> (result)) {
63155 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
63166 if (dynamic_cast<faiss::Index *> (result)) {
63167 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
63170 if (result == NULL)
63172 resultobj = SWIG_Py_Void();
63188 SWIGINTERN PyObject *_wrap_read_index__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63189 PyObject *resultobj = 0;
63190 FILE *arg1 = (FILE *) 0 ;
63193 PyObject * obj0 = 0 ;
63196 if (!PyArg_ParseTuple(args,(
char *)
"O:read_index",&obj0)) SWIG_fail;
63197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FILE, 0 | 0 );
63198 if (!SWIG_IsOK(res1)) {
63199 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index" "', argument " "1"" of type '" "FILE *""'");
63201 arg1 =
reinterpret_cast< FILE *
>(argp1);
63203 Py_BEGIN_ALLOW_THREADS
63207 PyEval_RestoreThread(_save);
63208 PyErr_SetString(PyExc_RuntimeError, e.
what());
63211 Py_END_ALLOW_THREADS
63215 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
63216 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
63220 if (dynamic_cast<faiss::IndexShards *> (result)) {
63221 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
63225 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
63226 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
63230 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
63231 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
63235 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
63236 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
63240 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
63241 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
63245 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
63246 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
63250 if (dynamic_cast<faiss::IndexIVF *> (result)) {
63251 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
63255 if (dynamic_cast<faiss::IndexFlat *> (result)) {
63256 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
63260 if (dynamic_cast<faiss::IndexPQ *> (result)) {
63261 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
63265 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
63266 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
63270 if (dynamic_cast<faiss::IndexLSH *> (result)) {
63271 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
63275 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
63276 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
63280 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
63281 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
63285 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
63286 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
63290 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
63291 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
63295 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
63296 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
63300 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
63301 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
63305 if (dynamic_cast<faiss::Index2Layer *> (result)) {
63306 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
63317 if (dynamic_cast<faiss::Index *> (result)) {
63318 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
63321 if (result == NULL)
63323 resultobj = SWIG_Py_Void();
63339 SWIGINTERN PyObject *_wrap_read_index__SWIG_4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63340 PyObject *resultobj = 0;
63347 PyObject * obj0 = 0 ;
63348 PyObject * obj1 = 0 ;
63351 if (!PyArg_ParseTuple(args,(
char *)
"OO:read_index",&obj0,&obj1)) SWIG_fail;
63352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
63353 if (!SWIG_IsOK(res1)) {
63354 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index" "', argument " "1"" of type '" "faiss::IOReader *""'");
63357 ecode2 = SWIG_AsVal_int(obj1, &val2);
63358 if (!SWIG_IsOK(ecode2)) {
63359 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "read_index" "', argument " "2"" of type '" "int""'");
63361 arg2 =
static_cast< int >(val2);
63363 Py_BEGIN_ALLOW_THREADS
63365 result = (
faiss::Index *)faiss::read_index(arg1,arg2);
63367 PyEval_RestoreThread(_save);
63368 PyErr_SetString(PyExc_RuntimeError, e.
what());
63371 Py_END_ALLOW_THREADS
63375 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
63376 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
63380 if (dynamic_cast<faiss::IndexShards *> (result)) {
63381 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
63385 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
63386 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
63390 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
63391 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
63395 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
63396 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
63400 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
63401 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
63405 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
63406 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
63410 if (dynamic_cast<faiss::IndexIVF *> (result)) {
63411 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
63415 if (dynamic_cast<faiss::IndexFlat *> (result)) {
63416 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
63420 if (dynamic_cast<faiss::IndexPQ *> (result)) {
63421 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
63425 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
63426 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
63430 if (dynamic_cast<faiss::IndexLSH *> (result)) {
63431 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
63435 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
63436 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
63440 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
63441 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
63445 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
63446 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
63450 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
63451 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
63455 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
63456 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
63460 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
63461 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
63465 if (dynamic_cast<faiss::Index2Layer *> (result)) {
63466 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
63477 if (dynamic_cast<faiss::Index *> (result)) {
63478 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
63481 if (result == NULL)
63483 resultobj = SWIG_Py_Void();
63499 SWIGINTERN PyObject *_wrap_read_index__SWIG_5(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63500 PyObject *resultobj = 0;
63504 PyObject * obj0 = 0 ;
63507 if (!PyArg_ParseTuple(args,(
char *)
"O:read_index",&obj0)) SWIG_fail;
63508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
63509 if (!SWIG_IsOK(res1)) {
63510 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index" "', argument " "1"" of type '" "faiss::IOReader *""'");
63514 Py_BEGIN_ALLOW_THREADS
63518 PyEval_RestoreThread(_save);
63519 PyErr_SetString(PyExc_RuntimeError, e.
what());
63522 Py_END_ALLOW_THREADS
63526 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
63527 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
63531 if (dynamic_cast<faiss::IndexShards *> (result)) {
63532 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
63536 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
63537 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
63541 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
63542 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
63546 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
63547 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
63551 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
63552 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
63556 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
63557 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
63561 if (dynamic_cast<faiss::IndexIVF *> (result)) {
63562 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
63566 if (dynamic_cast<faiss::IndexFlat *> (result)) {
63567 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
63571 if (dynamic_cast<faiss::IndexPQ *> (result)) {
63572 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
63576 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
63577 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
63581 if (dynamic_cast<faiss::IndexLSH *> (result)) {
63582 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
63586 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
63587 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
63591 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
63592 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
63596 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
63597 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
63601 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
63602 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
63606 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
63607 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
63611 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
63612 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
63616 if (dynamic_cast<faiss::Index2Layer *> (result)) {
63617 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
63628 if (dynamic_cast<faiss::Index *> (result)) {
63629 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
63632 if (result == NULL)
63634 resultobj = SWIG_Py_Void();
63650 SWIGINTERN PyObject *_wrap_read_index(PyObject *
self, PyObject *args) {
63652 PyObject *argv[3] = {
63657 if (!PyTuple_Check(args)) SWIG_fail;
63658 argc = args ? PyObject_Length(args) : 0;
63659 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
63660 argv[ii] = PyTuple_GET_ITEM(args,ii);
63665 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FILE, 0);
63666 _v = SWIG_CheckState(res);
63668 return _wrap_read_index__SWIG_3(
self, args);
63674 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IOReader, 0);
63675 _v = SWIG_CheckState(res);
63677 return _wrap_read_index__SWIG_5(
self, args);
63682 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
63683 _v = SWIG_CheckState(res);
63685 return _wrap_read_index__SWIG_1(
self, args);
63691 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IOReader, 0);
63692 _v = SWIG_CheckState(res);
63695 int res = SWIG_AsVal_int(argv[1], NULL);
63696 _v = SWIG_CheckState(res);
63699 return _wrap_read_index__SWIG_4(
self, args);
63706 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FILE, 0);
63707 _v = SWIG_CheckState(res);
63710 int res = SWIG_AsVal_int(argv[1], NULL);
63711 _v = SWIG_CheckState(res);
63714 return _wrap_read_index__SWIG_2(
self, args);
63720 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
63721 _v = SWIG_CheckState(res);
63724 int res = SWIG_AsVal_int(argv[1], NULL);
63725 _v = SWIG_CheckState(res);
63728 return _wrap_read_index__SWIG_0(
self, args);
63734 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'read_index'.\n"
63735 " Possible C/C++ prototypes are:\n"
63736 " faiss::read_index(char const *,int)\n"
63737 " faiss::read_index(char const *)\n"
63738 " faiss::read_index(FILE *,int)\n"
63739 " faiss::read_index(FILE *)\n"
63740 " faiss::read_index(faiss::IOReader *,int)\n"
63741 " faiss::read_index(faiss::IOReader *)\n");
63746 SWIGINTERN PyObject *_wrap_read_index_binary__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63747 PyObject *resultobj = 0;
63748 char *arg1 = (
char *) 0 ;
63755 PyObject * obj0 = 0 ;
63756 PyObject * obj1 = 0 ;
63759 if (!PyArg_ParseTuple(args,(
char *)
"OO:read_index_binary",&obj0,&obj1)) SWIG_fail;
63760 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
63761 if (!SWIG_IsOK(res1)) {
63762 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index_binary" "', argument " "1"" of type '" "char const *""'");
63764 arg1 =
reinterpret_cast< char *
>(buf1);
63765 ecode2 = SWIG_AsVal_int(obj1, &val2);
63766 if (!SWIG_IsOK(ecode2)) {
63767 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "read_index_binary" "', argument " "2"" of type '" "int""'");
63769 arg2 =
static_cast< int >(val2);
63771 Py_BEGIN_ALLOW_THREADS
63775 PyEval_RestoreThread(_save);
63776 PyErr_SetString(PyExc_RuntimeError, e.
what());
63779 Py_END_ALLOW_THREADS
63783 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
63784 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,SWIG_POINTER_OWN);
63788 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
63789 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,SWIG_POINTER_OWN);
63793 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
63794 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,SWIG_POINTER_OWN);
63798 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
63799 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,SWIG_POINTER_OWN);
63807 if (dynamic_cast<faiss::IndexBinary *> (result)) {
63808 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,SWIG_POINTER_OWN);
63811 if (result == NULL)
63813 resultobj = SWIG_Py_Void();
63823 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
63826 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
63831 SWIGINTERN PyObject *_wrap_read_index_binary__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63832 PyObject *resultobj = 0;
63833 char *arg1 = (
char *) 0 ;
63837 PyObject * obj0 = 0 ;
63840 if (!PyArg_ParseTuple(args,(
char *)
"O:read_index_binary",&obj0)) SWIG_fail;
63841 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
63842 if (!SWIG_IsOK(res1)) {
63843 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index_binary" "', argument " "1"" of type '" "char const *""'");
63845 arg1 =
reinterpret_cast< char *
>(buf1);
63847 Py_BEGIN_ALLOW_THREADS
63851 PyEval_RestoreThread(_save);
63852 PyErr_SetString(PyExc_RuntimeError, e.
what());
63855 Py_END_ALLOW_THREADS
63859 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
63860 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,SWIG_POINTER_OWN);
63864 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
63865 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,SWIG_POINTER_OWN);
63869 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
63870 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,SWIG_POINTER_OWN);
63874 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
63875 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,SWIG_POINTER_OWN);
63883 if (dynamic_cast<faiss::IndexBinary *> (result)) {
63884 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,SWIG_POINTER_OWN);
63887 if (result == NULL)
63889 resultobj = SWIG_Py_Void();
63899 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
63902 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
63907 SWIGINTERN PyObject *_wrap_read_index_binary__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63908 PyObject *resultobj = 0;
63909 FILE *arg1 = (FILE *) 0 ;
63915 PyObject * obj0 = 0 ;
63916 PyObject * obj1 = 0 ;
63919 if (!PyArg_ParseTuple(args,(
char *)
"OO:read_index_binary",&obj0,&obj1)) SWIG_fail;
63920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FILE, 0 | 0 );
63921 if (!SWIG_IsOK(res1)) {
63922 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index_binary" "', argument " "1"" of type '" "FILE *""'");
63924 arg1 =
reinterpret_cast< FILE *
>(argp1);
63925 ecode2 = SWIG_AsVal_int(obj1, &val2);
63926 if (!SWIG_IsOK(ecode2)) {
63927 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "read_index_binary" "', argument " "2"" of type '" "int""'");
63929 arg2 =
static_cast< int >(val2);
63931 Py_BEGIN_ALLOW_THREADS
63935 PyEval_RestoreThread(_save);
63936 PyErr_SetString(PyExc_RuntimeError, e.
what());
63939 Py_END_ALLOW_THREADS
63943 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
63944 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,SWIG_POINTER_OWN);
63948 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
63949 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,SWIG_POINTER_OWN);
63953 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
63954 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,SWIG_POINTER_OWN);
63958 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
63959 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,SWIG_POINTER_OWN);
63967 if (dynamic_cast<faiss::IndexBinary *> (result)) {
63968 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,SWIG_POINTER_OWN);
63971 if (result == NULL)
63973 resultobj = SWIG_Py_Void();
63989 SWIGINTERN PyObject *_wrap_read_index_binary__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63990 PyObject *resultobj = 0;
63991 FILE *arg1 = (FILE *) 0 ;
63994 PyObject * obj0 = 0 ;
63997 if (!PyArg_ParseTuple(args,(
char *)
"O:read_index_binary",&obj0)) SWIG_fail;
63998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FILE, 0 | 0 );
63999 if (!SWIG_IsOK(res1)) {
64000 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index_binary" "', argument " "1"" of type '" "FILE *""'");
64002 arg1 =
reinterpret_cast< FILE *
>(argp1);
64004 Py_BEGIN_ALLOW_THREADS
64008 PyEval_RestoreThread(_save);
64009 PyErr_SetString(PyExc_RuntimeError, e.
what());
64012 Py_END_ALLOW_THREADS
64016 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
64017 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,SWIG_POINTER_OWN);
64021 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
64022 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,SWIG_POINTER_OWN);
64026 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
64027 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,SWIG_POINTER_OWN);
64031 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
64032 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,SWIG_POINTER_OWN);
64040 if (dynamic_cast<faiss::IndexBinary *> (result)) {
64041 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,SWIG_POINTER_OWN);
64044 if (result == NULL)
64046 resultobj = SWIG_Py_Void();
64062 SWIGINTERN PyObject *_wrap_read_index_binary__SWIG_4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64063 PyObject *resultobj = 0;
64070 PyObject * obj0 = 0 ;
64071 PyObject * obj1 = 0 ;
64074 if (!PyArg_ParseTuple(args,(
char *)
"OO:read_index_binary",&obj0,&obj1)) SWIG_fail;
64075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
64076 if (!SWIG_IsOK(res1)) {
64077 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index_binary" "', argument " "1"" of type '" "faiss::IOReader *""'");
64080 ecode2 = SWIG_AsVal_int(obj1, &val2);
64081 if (!SWIG_IsOK(ecode2)) {
64082 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "read_index_binary" "', argument " "2"" of type '" "int""'");
64084 arg2 =
static_cast< int >(val2);
64086 Py_BEGIN_ALLOW_THREADS
64090 PyEval_RestoreThread(_save);
64091 PyErr_SetString(PyExc_RuntimeError, e.
what());
64094 Py_END_ALLOW_THREADS
64098 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
64099 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,SWIG_POINTER_OWN);
64103 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
64104 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,SWIG_POINTER_OWN);
64108 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
64109 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,SWIG_POINTER_OWN);
64113 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
64114 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,SWIG_POINTER_OWN);
64122 if (dynamic_cast<faiss::IndexBinary *> (result)) {
64123 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,SWIG_POINTER_OWN);
64126 if (result == NULL)
64128 resultobj = SWIG_Py_Void();
64144 SWIGINTERN PyObject *_wrap_read_index_binary__SWIG_5(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64145 PyObject *resultobj = 0;
64149 PyObject * obj0 = 0 ;
64152 if (!PyArg_ParseTuple(args,(
char *)
"O:read_index_binary",&obj0)) SWIG_fail;
64153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
64154 if (!SWIG_IsOK(res1)) {
64155 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index_binary" "', argument " "1"" of type '" "faiss::IOReader *""'");
64159 Py_BEGIN_ALLOW_THREADS
64163 PyEval_RestoreThread(_save);
64164 PyErr_SetString(PyExc_RuntimeError, e.
what());
64167 Py_END_ALLOW_THREADS
64171 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
64172 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,SWIG_POINTER_OWN);
64176 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
64177 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,SWIG_POINTER_OWN);
64181 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
64182 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,SWIG_POINTER_OWN);
64186 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
64187 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,SWIG_POINTER_OWN);
64195 if (dynamic_cast<faiss::IndexBinary *> (result)) {
64196 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,SWIG_POINTER_OWN);
64199 if (result == NULL)
64201 resultobj = SWIG_Py_Void();
64217 SWIGINTERN PyObject *_wrap_read_index_binary(PyObject *
self, PyObject *args) {
64219 PyObject *argv[3] = {
64224 if (!PyTuple_Check(args)) SWIG_fail;
64225 argc = args ? PyObject_Length(args) : 0;
64226 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
64227 argv[ii] = PyTuple_GET_ITEM(args,ii);
64232 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FILE, 0);
64233 _v = SWIG_CheckState(res);
64235 return _wrap_read_index_binary__SWIG_3(
self, args);
64241 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IOReader, 0);
64242 _v = SWIG_CheckState(res);
64244 return _wrap_read_index_binary__SWIG_5(
self, args);
64249 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
64250 _v = SWIG_CheckState(res);
64252 return _wrap_read_index_binary__SWIG_1(
self, args);
64258 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IOReader, 0);
64259 _v = SWIG_CheckState(res);
64262 int res = SWIG_AsVal_int(argv[1], NULL);
64263 _v = SWIG_CheckState(res);
64266 return _wrap_read_index_binary__SWIG_4(
self, args);
64273 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FILE, 0);
64274 _v = SWIG_CheckState(res);
64277 int res = SWIG_AsVal_int(argv[1], NULL);
64278 _v = SWIG_CheckState(res);
64281 return _wrap_read_index_binary__SWIG_2(
self, args);
64287 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
64288 _v = SWIG_CheckState(res);
64291 int res = SWIG_AsVal_int(argv[1], NULL);
64292 _v = SWIG_CheckState(res);
64295 return _wrap_read_index_binary__SWIG_0(
self, args);
64301 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'read_index_binary'.\n"
64302 " Possible C/C++ prototypes are:\n"
64303 " faiss::read_index_binary(char const *,int)\n"
64304 " faiss::read_index_binary(char const *)\n"
64305 " faiss::read_index_binary(FILE *,int)\n"
64306 " faiss::read_index_binary(FILE *)\n"
64307 " faiss::read_index_binary(faiss::IOReader *,int)\n"
64308 " faiss::read_index_binary(faiss::IOReader *)\n");
64313 SWIGINTERN PyObject *_wrap_write_VectorTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64314 PyObject *resultobj = 0;
64316 char *arg2 = (
char *) 0 ;
64322 PyObject * obj0 = 0 ;
64323 PyObject * obj1 = 0 ;
64325 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_VectorTransform",&obj0,&obj1)) SWIG_fail;
64326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
64327 if (!SWIG_IsOK(res1)) {
64328 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_VectorTransform" "', argument " "1"" of type '" "faiss::VectorTransform const *""'");
64331 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
64332 if (!SWIG_IsOK(res2)) {
64333 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_VectorTransform" "', argument " "2"" of type '" "char const *""'");
64335 arg2 =
reinterpret_cast< char *
>(buf2);
64337 Py_BEGIN_ALLOW_THREADS
64341 PyEval_RestoreThread(_save);
64342 PyErr_SetString(PyExc_RuntimeError, e.
what());
64345 Py_END_ALLOW_THREADS
64347 resultobj = SWIG_Py_Void();
64348 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
64351 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
64356 SWIGINTERN PyObject *_wrap_read_VectorTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64357 PyObject *resultobj = 0;
64358 char *arg1 = (
char *) 0 ;
64362 PyObject * obj0 = 0 ;
64365 if (!PyArg_ParseTuple(args,(
char *)
"O:read_VectorTransform",&obj0)) SWIG_fail;
64366 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
64367 if (!SWIG_IsOK(res1)) {
64368 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_VectorTransform" "', argument " "1"" of type '" "char const *""'");
64370 arg1 =
reinterpret_cast< char *
>(buf1);
64372 Py_BEGIN_ALLOW_THREADS
64376 PyEval_RestoreThread(_save);
64377 PyErr_SetString(PyExc_RuntimeError, e.
what());
64380 Py_END_ALLOW_THREADS
64384 if (dynamic_cast<faiss::RemapDimensionsTransform *> (result)) {
64385 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__RemapDimensionsTransform,SWIG_POINTER_OWN);
64389 if (dynamic_cast<faiss::OPQMatrix *> (result)) {
64390 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__OPQMatrix,SWIG_POINTER_OWN);
64394 if (dynamic_cast<faiss::PCAMatrix *> (result)) {
64395 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__PCAMatrix,SWIG_POINTER_OWN);
64399 if (dynamic_cast<faiss::RandomRotationMatrix *> (result)) {
64400 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__RandomRotationMatrix,SWIG_POINTER_OWN);
64404 if (dynamic_cast<faiss::LinearTransform *> (result)) {
64405 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__LinearTransform,SWIG_POINTER_OWN);
64409 if (dynamic_cast<faiss::NormalizationTransform *> (result)) {
64410 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__NormalizationTransform,SWIG_POINTER_OWN);
64414 if (dynamic_cast<faiss::VectorTransform *> (result)) {
64415 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__VectorTransform,SWIG_POINTER_OWN);
64425 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
64428 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
64433 SWIGINTERN PyObject *_wrap_read_ProductQuantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64434 PyObject *resultobj = 0;
64435 char *arg1 = (
char *) 0 ;
64439 PyObject * obj0 = 0 ;
64442 if (!PyArg_ParseTuple(args,(
char *)
"O:read_ProductQuantizer",&obj0)) SWIG_fail;
64443 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
64444 if (!SWIG_IsOK(res1)) {
64445 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_ProductQuantizer" "', argument " "1"" of type '" "char const *""'");
64447 arg1 =
reinterpret_cast< char *
>(buf1);
64449 Py_BEGIN_ALLOW_THREADS
64453 PyEval_RestoreThread(_save);
64454 PyErr_SetString(PyExc_RuntimeError, e.
what());
64457 Py_END_ALLOW_THREADS
64459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, SWIG_POINTER_OWN | 0 );
64460 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
64463 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
64468 SWIGINTERN PyObject *_wrap_read_ProductQuantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64469 PyObject *resultobj = 0;
64473 PyObject * obj0 = 0 ;
64476 if (!PyArg_ParseTuple(args,(
char *)
"O:read_ProductQuantizer",&obj0)) SWIG_fail;
64477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
64478 if (!SWIG_IsOK(res1)) {
64479 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_ProductQuantizer" "', argument " "1"" of type '" "faiss::IOReader *""'");
64483 Py_BEGIN_ALLOW_THREADS
64487 PyEval_RestoreThread(_save);
64488 PyErr_SetString(PyExc_RuntimeError, e.
what());
64491 Py_END_ALLOW_THREADS
64493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, SWIG_POINTER_OWN | 0 );
64500 SWIGINTERN PyObject *_wrap_read_ProductQuantizer(PyObject *
self, PyObject *args) {
64502 PyObject *argv[2] = {
64507 if (!PyTuple_Check(args)) SWIG_fail;
64508 argc = args ? PyObject_Length(args) : 0;
64509 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
64510 argv[ii] = PyTuple_GET_ITEM(args,ii);
64515 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IOReader, 0);
64516 _v = SWIG_CheckState(res);
64518 return _wrap_read_ProductQuantizer__SWIG_1(
self, args);
64523 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
64524 _v = SWIG_CheckState(res);
64526 return _wrap_read_ProductQuantizer__SWIG_0(
self, args);
64531 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'read_ProductQuantizer'.\n"
64532 " Possible C/C++ prototypes are:\n"
64533 " faiss::read_ProductQuantizer(char const *)\n"
64534 " faiss::read_ProductQuantizer(faiss::IOReader *)\n");
64539 SWIGINTERN PyObject *_wrap_write_ProductQuantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64540 PyObject *resultobj = 0;
64542 char *arg2 = (
char *) 0 ;
64548 PyObject * obj0 = 0 ;
64549 PyObject * obj1 = 0 ;
64551 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_ProductQuantizer",&obj0,&obj1)) SWIG_fail;
64552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
64553 if (!SWIG_IsOK(res1)) {
64554 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_ProductQuantizer" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
64557 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
64558 if (!SWIG_IsOK(res2)) {
64559 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_ProductQuantizer" "', argument " "2"" of type '" "char const *""'");
64561 arg2 =
reinterpret_cast< char *
>(buf2);
64563 Py_BEGIN_ALLOW_THREADS
64567 PyEval_RestoreThread(_save);
64568 PyErr_SetString(PyExc_RuntimeError, e.
what());
64571 Py_END_ALLOW_THREADS
64573 resultobj = SWIG_Py_Void();
64574 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
64577 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
64582 SWIGINTERN PyObject *_wrap_write_ProductQuantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64583 PyObject *resultobj = 0;
64590 PyObject * obj0 = 0 ;
64591 PyObject * obj1 = 0 ;
64593 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_ProductQuantizer",&obj0,&obj1)) SWIG_fail;
64594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
64595 if (!SWIG_IsOK(res1)) {
64596 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_ProductQuantizer" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
64599 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
64600 if (!SWIG_IsOK(res2)) {
64601 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_ProductQuantizer" "', argument " "2"" of type '" "faiss::IOWriter *""'");
64605 Py_BEGIN_ALLOW_THREADS
64609 PyEval_RestoreThread(_save);
64610 PyErr_SetString(PyExc_RuntimeError, e.
what());
64613 Py_END_ALLOW_THREADS
64615 resultobj = SWIG_Py_Void();
64622 SWIGINTERN PyObject *_wrap_write_ProductQuantizer(PyObject *
self, PyObject *args) {
64624 PyObject *argv[3] = {
64629 if (!PyTuple_Check(args)) SWIG_fail;
64630 argc = args ? PyObject_Length(args) : 0;
64631 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
64632 argv[ii] = PyTuple_GET_ITEM(args,ii);
64637 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
64638 _v = SWIG_CheckState(res);
64641 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IOWriter, 0);
64642 _v = SWIG_CheckState(res);
64644 return _wrap_write_ProductQuantizer__SWIG_1(
self, args);
64651 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
64652 _v = SWIG_CheckState(res);
64654 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
64655 _v = SWIG_CheckState(res);
64657 return _wrap_write_ProductQuantizer__SWIG_0(
self, args);
64663 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'write_ProductQuantizer'.\n"
64664 " Possible C/C++ prototypes are:\n"
64665 " faiss::write_ProductQuantizer(faiss::ProductQuantizer const *,char const *)\n"
64666 " faiss::write_ProductQuantizer(faiss::ProductQuantizer const *,faiss::IOWriter *)\n");
64671 SWIGINTERN PyObject *_wrap_write_InvertedLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64672 PyObject *resultobj = 0;
64679 PyObject * obj0 = 0 ;
64680 PyObject * obj1 = 0 ;
64682 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_InvertedLists",&obj0,&obj1)) SWIG_fail;
64683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
64684 if (!SWIG_IsOK(res1)) {
64685 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_InvertedLists" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
64688 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
64689 if (!SWIG_IsOK(res2)) {
64690 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_InvertedLists" "', argument " "2"" of type '" "faiss::IOWriter *""'");
64694 Py_BEGIN_ALLOW_THREADS
64698 PyEval_RestoreThread(_save);
64699 PyErr_SetString(PyExc_RuntimeError, e.
what());
64702 Py_END_ALLOW_THREADS
64704 resultobj = SWIG_Py_Void();
64711 SWIGINTERN PyObject *_wrap_read_InvertedLists__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64712 PyObject *resultobj = 0;
64719 PyObject * obj0 = 0 ;
64720 PyObject * obj1 = 0 ;
64723 if (!PyArg_ParseTuple(args,(
char *)
"OO:read_InvertedLists",&obj0,&obj1)) SWIG_fail;
64724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
64725 if (!SWIG_IsOK(res1)) {
64726 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_InvertedLists" "', argument " "1"" of type '" "faiss::IOReader *""'");
64729 ecode2 = SWIG_AsVal_int(obj1, &val2);
64730 if (!SWIG_IsOK(ecode2)) {
64731 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "read_InvertedLists" "', argument " "2"" of type '" "int""'");
64733 arg2 =
static_cast< int >(val2);
64735 Py_BEGIN_ALLOW_THREADS
64739 PyEval_RestoreThread(_save);
64740 PyErr_SetString(PyExc_RuntimeError, e.
what());
64743 Py_END_ALLOW_THREADS
64745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
64752 SWIGINTERN PyObject *_wrap_read_InvertedLists__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64753 PyObject *resultobj = 0;
64757 PyObject * obj0 = 0 ;
64760 if (!PyArg_ParseTuple(args,(
char *)
"O:read_InvertedLists",&obj0)) SWIG_fail;
64761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
64762 if (!SWIG_IsOK(res1)) {
64763 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_InvertedLists" "', argument " "1"" of type '" "faiss::IOReader *""'");
64767 Py_BEGIN_ALLOW_THREADS
64771 PyEval_RestoreThread(_save);
64772 PyErr_SetString(PyExc_RuntimeError, e.
what());
64775 Py_END_ALLOW_THREADS
64777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
64784 SWIGINTERN PyObject *_wrap_read_InvertedLists(PyObject *
self, PyObject *args) {
64786 PyObject *argv[3] = {
64791 if (!PyTuple_Check(args)) SWIG_fail;
64792 argc = args ? PyObject_Length(args) : 0;
64793 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
64794 argv[ii] = PyTuple_GET_ITEM(args,ii);
64799 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IOReader, 0);
64800 _v = SWIG_CheckState(res);
64802 return _wrap_read_InvertedLists__SWIG_1(
self, args);
64808 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IOReader, 0);
64809 _v = SWIG_CheckState(res);
64812 int res = SWIG_AsVal_int(argv[1], NULL);
64813 _v = SWIG_CheckState(res);
64816 return _wrap_read_InvertedLists__SWIG_0(
self, args);
64822 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'read_InvertedLists'.\n"
64823 " Possible C/C++ prototypes are:\n"
64824 " faiss::read_InvertedLists(faiss::IOReader *,int)\n"
64825 " faiss::read_InvertedLists(faiss::IOReader *)\n");
64830 SWIGINTERN PyObject *_wrap_clone_index(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64831 PyObject *resultobj = 0;
64835 PyObject * obj0 = 0 ;
64838 if (!PyArg_ParseTuple(args,(
char *)
"O:clone_index",&obj0)) SWIG_fail;
64839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
64840 if (!SWIG_IsOK(res1)) {
64841 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "clone_index" "', argument " "1"" of type '" "faiss::Index const *""'");
64845 Py_BEGIN_ALLOW_THREADS
64849 PyEval_RestoreThread(_save);
64850 PyErr_SetString(PyExc_RuntimeError, e.
what());
64853 Py_END_ALLOW_THREADS
64857 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
64858 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
64862 if (dynamic_cast<faiss::IndexShards *> (result)) {
64863 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
64867 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
64868 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
64872 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
64873 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
64877 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
64878 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
64882 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
64883 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
64887 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
64888 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
64892 if (dynamic_cast<faiss::IndexIVF *> (result)) {
64893 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
64897 if (dynamic_cast<faiss::IndexFlat *> (result)) {
64898 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
64902 if (dynamic_cast<faiss::IndexPQ *> (result)) {
64903 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
64907 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
64908 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
64912 if (dynamic_cast<faiss::IndexLSH *> (result)) {
64913 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
64917 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
64918 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
64922 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
64923 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
64927 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
64928 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
64932 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
64933 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
64937 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
64938 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
64942 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
64943 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
64947 if (dynamic_cast<faiss::Index2Layer *> (result)) {
64948 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
64959 if (dynamic_cast<faiss::Index *> (result)) {
64960 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
64963 if (result == NULL)
64965 resultobj = SWIG_Py_Void();
64981 SWIGINTERN PyObject *_wrap_Cloner_clone_VectorTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64982 PyObject *resultobj = 0;
64989 PyObject * obj0 = 0 ;
64990 PyObject * obj1 = 0 ;
64993 if (!PyArg_ParseTuple(args,(
char *)
"OO:Cloner_clone_VectorTransform",&obj0,&obj1)) SWIG_fail;
64994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Cloner, 0 | 0 );
64995 if (!SWIG_IsOK(res1)) {
64996 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Cloner_clone_VectorTransform" "', argument " "1"" of type '" "faiss::Cloner *""'");
64999 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
65000 if (!SWIG_IsOK(res2)) {
65001 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Cloner_clone_VectorTransform" "', argument " "2"" of type '" "faiss::VectorTransform const *""'");
65005 Py_BEGIN_ALLOW_THREADS
65009 PyEval_RestoreThread(_save);
65010 PyErr_SetString(PyExc_RuntimeError, e.
what());
65013 Py_END_ALLOW_THREADS
65017 if (dynamic_cast<faiss::RemapDimensionsTransform *> (result)) {
65018 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__RemapDimensionsTransform,SWIG_POINTER_OWN);
65022 if (dynamic_cast<faiss::OPQMatrix *> (result)) {
65023 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__OPQMatrix,SWIG_POINTER_OWN);
65027 if (dynamic_cast<faiss::PCAMatrix *> (result)) {
65028 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__PCAMatrix,SWIG_POINTER_OWN);
65032 if (dynamic_cast<faiss::RandomRotationMatrix *> (result)) {
65033 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__RandomRotationMatrix,SWIG_POINTER_OWN);
65037 if (dynamic_cast<faiss::LinearTransform *> (result)) {
65038 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__LinearTransform,SWIG_POINTER_OWN);
65042 if (dynamic_cast<faiss::NormalizationTransform *> (result)) {
65043 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__NormalizationTransform,SWIG_POINTER_OWN);
65047 if (dynamic_cast<faiss::VectorTransform *> (result)) {
65048 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__VectorTransform,SWIG_POINTER_OWN);
65064 SWIGINTERN PyObject *_wrap_Cloner_clone_Index(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65065 PyObject *resultobj = 0;
65072 PyObject * obj0 = 0 ;
65073 PyObject * obj1 = 0 ;
65076 if (!PyArg_ParseTuple(args,(
char *)
"OO:Cloner_clone_Index",&obj0,&obj1)) SWIG_fail;
65077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Cloner, 0 | 0 );
65078 if (!SWIG_IsOK(res1)) {
65079 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Cloner_clone_Index" "', argument " "1"" of type '" "faiss::Cloner *""'");
65082 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
65083 if (!SWIG_IsOK(res2)) {
65084 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Cloner_clone_Index" "', argument " "2"" of type '" "faiss::Index const *""'");
65088 Py_BEGIN_ALLOW_THREADS
65092 PyEval_RestoreThread(_save);
65093 PyErr_SetString(PyExc_RuntimeError, e.
what());
65096 Py_END_ALLOW_THREADS
65100 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
65101 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,0);
65105 if (dynamic_cast<faiss::IndexShards *> (result)) {
65106 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,0);
65110 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
65111 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,0);
65115 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
65116 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,0);
65120 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
65121 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,0);
65125 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
65126 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,0);
65130 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
65131 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,0);
65135 if (dynamic_cast<faiss::IndexIVF *> (result)) {
65136 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,0);
65140 if (dynamic_cast<faiss::IndexFlat *> (result)) {
65141 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,0);
65145 if (dynamic_cast<faiss::IndexPQ *> (result)) {
65146 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,0);
65150 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
65151 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,0);
65155 if (dynamic_cast<faiss::IndexLSH *> (result)) {
65156 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,0);
65160 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
65161 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,0);
65165 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
65166 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,0);
65170 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
65171 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,0);
65175 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
65176 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,0);
65180 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
65181 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,0);
65185 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
65186 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,0);
65190 if (dynamic_cast<faiss::Index2Layer *> (result)) {
65191 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,0);
65202 if (dynamic_cast<faiss::Index *> (result)) {
65203 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,0);
65206 if (result == NULL)
65208 resultobj = SWIG_Py_Void();
65224 SWIGINTERN PyObject *_wrap_Cloner_clone_IndexIVF(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65225 PyObject *resultobj = 0;
65232 PyObject * obj0 = 0 ;
65233 PyObject * obj1 = 0 ;
65236 if (!PyArg_ParseTuple(args,(
char *)
"OO:Cloner_clone_IndexIVF",&obj0,&obj1)) SWIG_fail;
65237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Cloner, 0 | 0 );
65238 if (!SWIG_IsOK(res1)) {
65239 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Cloner_clone_IndexIVF" "', argument " "1"" of type '" "faiss::Cloner *""'");
65242 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
65243 if (!SWIG_IsOK(res2)) {
65244 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Cloner_clone_IndexIVF" "', argument " "2"" of type '" "faiss::IndexIVF const *""'");
65248 Py_BEGIN_ALLOW_THREADS
65252 PyEval_RestoreThread(_save);
65253 PyErr_SetString(PyExc_RuntimeError, e.
what());
65256 Py_END_ALLOW_THREADS
65258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
65265 SWIGINTERN PyObject *_wrap_delete_Cloner(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65266 PyObject *resultobj = 0;
65270 PyObject * obj0 = 0 ;
65272 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Cloner",&obj0)) SWIG_fail;
65273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Cloner, SWIG_POINTER_DISOWN | 0 );
65274 if (!SWIG_IsOK(res1)) {
65275 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Cloner" "', argument " "1"" of type '" "faiss::Cloner *""'");
65279 Py_BEGIN_ALLOW_THREADS
65283 PyEval_RestoreThread(_save);
65284 PyErr_SetString(PyExc_RuntimeError, e.
what());
65287 Py_END_ALLOW_THREADS
65289 resultobj = SWIG_Py_Void();
65296 SWIGINTERN PyObject *_wrap_new_Cloner(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65297 PyObject *resultobj = 0;
65300 if (!PyArg_ParseTuple(args,(
char *)
":new_Cloner")) SWIG_fail;
65302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Cloner, SWIG_POINTER_NEW | 0 );
65309 SWIGINTERN PyObject *Cloner_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65311 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
65312 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__Cloner, SWIG_NewClientData(obj));
65313 return SWIG_Py_Void();
65316 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_nq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65317 PyObject *resultobj = 0;
65319 faiss::AutoTuneCriterion::idx_t arg2 ;
65324 PyObject * obj0 = 0 ;
65325 PyObject * obj1 = 0 ;
65327 if (!PyArg_ParseTuple(args,(
char *)
"OO:AutoTuneCriterion_nq_set",&obj0,&obj1)) SWIG_fail;
65328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
65329 if (!SWIG_IsOK(res1)) {
65330 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_nq_set" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
65333 ecode2 = SWIG_AsVal_long(obj1, &val2);
65334 if (!SWIG_IsOK(ecode2)) {
65335 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "AutoTuneCriterion_nq_set" "', argument " "2"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
65337 arg2 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val2);
65338 if (arg1) (arg1)->nq = arg2;
65339 resultobj = SWIG_Py_Void();
65346 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_nq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65347 PyObject *resultobj = 0;
65351 PyObject * obj0 = 0 ;
65352 faiss::AutoTuneCriterion::idx_t result;
65354 if (!PyArg_ParseTuple(args,(
char *)
"O:AutoTuneCriterion_nq_get",&obj0)) SWIG_fail;
65355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
65356 if (!SWIG_IsOK(res1)) {
65357 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_nq_get" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
65360 result = (faiss::AutoTuneCriterion::idx_t) ((arg1)->nq);
65361 resultobj = SWIG_From_long(static_cast< long >(result));
65368 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_nnn_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65369 PyObject *resultobj = 0;
65371 faiss::AutoTuneCriterion::idx_t arg2 ;
65376 PyObject * obj0 = 0 ;
65377 PyObject * obj1 = 0 ;
65379 if (!PyArg_ParseTuple(args,(
char *)
"OO:AutoTuneCriterion_nnn_set",&obj0,&obj1)) SWIG_fail;
65380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
65381 if (!SWIG_IsOK(res1)) {
65382 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_nnn_set" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
65385 ecode2 = SWIG_AsVal_long(obj1, &val2);
65386 if (!SWIG_IsOK(ecode2)) {
65387 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "AutoTuneCriterion_nnn_set" "', argument " "2"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
65389 arg2 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val2);
65390 if (arg1) (arg1)->nnn = arg2;
65391 resultobj = SWIG_Py_Void();
65398 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_nnn_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65399 PyObject *resultobj = 0;
65403 PyObject * obj0 = 0 ;
65404 faiss::AutoTuneCriterion::idx_t result;
65406 if (!PyArg_ParseTuple(args,(
char *)
"O:AutoTuneCriterion_nnn_get",&obj0)) SWIG_fail;
65407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
65408 if (!SWIG_IsOK(res1)) {
65409 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_nnn_get" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
65412 result = (faiss::AutoTuneCriterion::idx_t) ((arg1)->nnn);
65413 resultobj = SWIG_From_long(static_cast< long >(result));
65420 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_gt_nnn_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65421 PyObject *resultobj = 0;
65423 faiss::AutoTuneCriterion::idx_t arg2 ;
65428 PyObject * obj0 = 0 ;
65429 PyObject * obj1 = 0 ;
65431 if (!PyArg_ParseTuple(args,(
char *)
"OO:AutoTuneCriterion_gt_nnn_set",&obj0,&obj1)) SWIG_fail;
65432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
65433 if (!SWIG_IsOK(res1)) {
65434 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_gt_nnn_set" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
65437 ecode2 = SWIG_AsVal_long(obj1, &val2);
65438 if (!SWIG_IsOK(ecode2)) {
65439 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "AutoTuneCriterion_gt_nnn_set" "', argument " "2"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
65441 arg2 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val2);
65442 if (arg1) (arg1)->gt_nnn = arg2;
65443 resultobj = SWIG_Py_Void();
65450 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_gt_nnn_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65451 PyObject *resultobj = 0;
65455 PyObject * obj0 = 0 ;
65456 faiss::AutoTuneCriterion::idx_t result;
65458 if (!PyArg_ParseTuple(args,(
char *)
"O:AutoTuneCriterion_gt_nnn_get",&obj0)) SWIG_fail;
65459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
65460 if (!SWIG_IsOK(res1)) {
65461 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_gt_nnn_get" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
65464 result = (faiss::AutoTuneCriterion::idx_t) ((arg1)->gt_nnn);
65465 resultobj = SWIG_From_long(static_cast< long >(result));
65472 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_gt_D_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65473 PyObject *resultobj = 0;
65475 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
65480 PyObject * obj0 = 0 ;
65481 PyObject * obj1 = 0 ;
65483 if (!PyArg_ParseTuple(args,(
char *)
"OO:AutoTuneCriterion_gt_D_set",&obj0,&obj1)) SWIG_fail;
65484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
65485 if (!SWIG_IsOK(res1)) {
65486 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_gt_D_set" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
65489 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
65490 if (!SWIG_IsOK(res2)) {
65491 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "AutoTuneCriterion_gt_D_set" "', argument " "2"" of type '" "std::vector< float > *""'");
65493 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
65494 if (arg1) (arg1)->gt_D = *arg2;
65495 resultobj = SWIG_Py_Void();
65502 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_gt_D_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65503 PyObject *resultobj = 0;
65507 PyObject * obj0 = 0 ;
65508 std::vector< float > *result = 0 ;
65510 if (!PyArg_ParseTuple(args,(
char *)
"O:AutoTuneCriterion_gt_D_get",&obj0)) SWIG_fail;
65511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
65512 if (!SWIG_IsOK(res1)) {
65513 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_gt_D_get" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
65516 result = (std::vector< float > *)& ((arg1)->gt_D);
65517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
65524 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_gt_I_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65525 PyObject *resultobj = 0;
65527 std::vector< faiss::AutoTuneCriterion::idx_t > *arg2 = (std::vector< faiss::AutoTuneCriterion::idx_t > *) 0 ;
65532 PyObject * obj0 = 0 ;
65533 PyObject * obj1 = 0 ;
65535 if (!PyArg_ParseTuple(args,(
char *)
"OO:AutoTuneCriterion_gt_I_set",&obj0,&obj1)) SWIG_fail;
65536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
65537 if (!SWIG_IsOK(res1)) {
65538 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_gt_I_set" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
65541 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
65542 if (!SWIG_IsOK(res2)) {
65543 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "AutoTuneCriterion_gt_I_set" "', argument " "2"" of type '" "std::vector< faiss::AutoTuneCriterion::idx_t > *""'");
65545 arg2 =
reinterpret_cast< std::vector< faiss::AutoTuneCriterion::idx_t > *
>(argp2);
65546 if (arg1) (arg1)->gt_I = *arg2;
65547 resultobj = SWIG_Py_Void();
65554 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_gt_I_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65555 PyObject *resultobj = 0;
65559 PyObject * obj0 = 0 ;
65560 std::vector< faiss::AutoTuneCriterion::idx_t > *result = 0 ;
65562 if (!PyArg_ParseTuple(args,(
char *)
"O:AutoTuneCriterion_gt_I_get",&obj0)) SWIG_fail;
65563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
65564 if (!SWIG_IsOK(res1)) {
65565 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_gt_I_get" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
65568 result = (std::vector< faiss::AutoTuneCriterion::idx_t > *)& ((arg1)->gt_I);
65569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
65576 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_set_groundtruth(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65577 PyObject *resultobj = 0;
65580 float *arg3 = (
float *) 0 ;
65581 faiss::AutoTuneCriterion::idx_t *arg4 = (faiss::AutoTuneCriterion::idx_t *) 0 ;
65590 PyObject * obj0 = 0 ;
65591 PyObject * obj1 = 0 ;
65592 PyObject * obj2 = 0 ;
65593 PyObject * obj3 = 0 ;
65595 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:AutoTuneCriterion_set_groundtruth",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
65596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
65597 if (!SWIG_IsOK(res1)) {
65598 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_set_groundtruth" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
65601 ecode2 = SWIG_AsVal_int(obj1, &val2);
65602 if (!SWIG_IsOK(ecode2)) {
65603 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "AutoTuneCriterion_set_groundtruth" "', argument " "2"" of type '" "int""'");
65605 arg2 =
static_cast< int >(val2);
65606 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
65607 if (!SWIG_IsOK(res3)) {
65608 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "AutoTuneCriterion_set_groundtruth" "', argument " "3"" of type '" "float const *""'");
65610 arg3 =
reinterpret_cast< float *
>(argp3);
65611 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
65612 if (!SWIG_IsOK(res4)) {
65613 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "AutoTuneCriterion_set_groundtruth" "', argument " "4"" of type '" "faiss::AutoTuneCriterion::idx_t const *""'");
65615 arg4 =
reinterpret_cast< faiss::AutoTuneCriterion::idx_t *
>(argp4);
65617 Py_BEGIN_ALLOW_THREADS
65619 (arg1)->set_groundtruth(arg2,(
float const *)arg3,(faiss::AutoTuneCriterion::idx_t
const *)arg4);
65621 PyEval_RestoreThread(_save);
65622 PyErr_SetString(PyExc_RuntimeError, e.
what());
65625 Py_END_ALLOW_THREADS
65627 resultobj = SWIG_Py_Void();
65634 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_evaluate(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65635 PyObject *resultobj = 0;
65637 float *arg2 = (
float *) 0 ;
65638 faiss::AutoTuneCriterion::idx_t *arg3 = (faiss::AutoTuneCriterion::idx_t *) 0 ;
65645 PyObject * obj0 = 0 ;
65646 PyObject * obj1 = 0 ;
65647 PyObject * obj2 = 0 ;
65650 if (!PyArg_ParseTuple(args,(
char *)
"OOO:AutoTuneCriterion_evaluate",&obj0,&obj1,&obj2)) SWIG_fail;
65651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
65652 if (!SWIG_IsOK(res1)) {
65653 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_evaluate" "', argument " "1"" of type '" "faiss::AutoTuneCriterion const *""'");
65656 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
65657 if (!SWIG_IsOK(res2)) {
65658 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "AutoTuneCriterion_evaluate" "', argument " "2"" of type '" "float const *""'");
65660 arg2 =
reinterpret_cast< float *
>(argp2);
65661 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
65662 if (!SWIG_IsOK(res3)) {
65663 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "AutoTuneCriterion_evaluate" "', argument " "3"" of type '" "faiss::AutoTuneCriterion::idx_t const *""'");
65665 arg3 =
reinterpret_cast< faiss::AutoTuneCriterion::idx_t *
>(argp3);
65667 Py_BEGIN_ALLOW_THREADS
65669 result = (double)((
faiss::AutoTuneCriterion const *)arg1)->evaluate((
float const *)arg2,(faiss::AutoTuneCriterion::idx_t
const *)arg3);
65671 PyEval_RestoreThread(_save);
65672 PyErr_SetString(PyExc_RuntimeError, e.
what());
65675 Py_END_ALLOW_THREADS
65677 resultobj = SWIG_From_double(static_cast< double >(result));
65684 SWIGINTERN PyObject *_wrap_delete_AutoTuneCriterion(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65685 PyObject *resultobj = 0;
65689 PyObject * obj0 = 0 ;
65691 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_AutoTuneCriterion",&obj0)) SWIG_fail;
65692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, SWIG_POINTER_DISOWN | 0 );
65693 if (!SWIG_IsOK(res1)) {
65694 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_AutoTuneCriterion" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
65698 Py_BEGIN_ALLOW_THREADS
65702 PyEval_RestoreThread(_save);
65703 PyErr_SetString(PyExc_RuntimeError, e.
what());
65706 Py_END_ALLOW_THREADS
65708 resultobj = SWIG_Py_Void();
65715 SWIGINTERN PyObject *AutoTuneCriterion_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65717 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
65718 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__AutoTuneCriterion, SWIG_NewClientData(obj));
65719 return SWIG_Py_Void();
65722 SWIGINTERN PyObject *_wrap_OneRecallAtRCriterion_R_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65723 PyObject *resultobj = 0;
65725 faiss::AutoTuneCriterion::idx_t arg2 ;
65730 PyObject * obj0 = 0 ;
65731 PyObject * obj1 = 0 ;
65733 if (!PyArg_ParseTuple(args,(
char *)
"OO:OneRecallAtRCriterion_R_set",&obj0,&obj1)) SWIG_fail;
65734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OneRecallAtRCriterion, 0 | 0 );
65735 if (!SWIG_IsOK(res1)) {
65736 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OneRecallAtRCriterion_R_set" "', argument " "1"" of type '" "faiss::OneRecallAtRCriterion *""'");
65739 ecode2 = SWIG_AsVal_long(obj1, &val2);
65740 if (!SWIG_IsOK(ecode2)) {
65741 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OneRecallAtRCriterion_R_set" "', argument " "2"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
65743 arg2 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val2);
65744 if (arg1) (arg1)->R = arg2;
65745 resultobj = SWIG_Py_Void();
65752 SWIGINTERN PyObject *_wrap_OneRecallAtRCriterion_R_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65753 PyObject *resultobj = 0;
65757 PyObject * obj0 = 0 ;
65758 faiss::AutoTuneCriterion::idx_t result;
65760 if (!PyArg_ParseTuple(args,(
char *)
"O:OneRecallAtRCriterion_R_get",&obj0)) SWIG_fail;
65761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OneRecallAtRCriterion, 0 | 0 );
65762 if (!SWIG_IsOK(res1)) {
65763 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OneRecallAtRCriterion_R_get" "', argument " "1"" of type '" "faiss::OneRecallAtRCriterion *""'");
65766 result = (faiss::AutoTuneCriterion::idx_t) ((arg1)->R);
65767 resultobj = SWIG_From_long(static_cast< long >(result));
65774 SWIGINTERN PyObject *_wrap_new_OneRecallAtRCriterion(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65775 PyObject *resultobj = 0;
65776 faiss::AutoTuneCriterion::idx_t arg1 ;
65777 faiss::AutoTuneCriterion::idx_t arg2 ;
65782 PyObject * obj0 = 0 ;
65783 PyObject * obj1 = 0 ;
65786 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_OneRecallAtRCriterion",&obj0,&obj1)) SWIG_fail;
65787 ecode1 = SWIG_AsVal_long(obj0, &val1);
65788 if (!SWIG_IsOK(ecode1)) {
65789 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_OneRecallAtRCriterion" "', argument " "1"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
65791 arg1 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val1);
65792 ecode2 = SWIG_AsVal_long(obj1, &val2);
65793 if (!SWIG_IsOK(ecode2)) {
65794 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_OneRecallAtRCriterion" "', argument " "2"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
65796 arg2 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val2);
65798 Py_BEGIN_ALLOW_THREADS
65802 PyEval_RestoreThread(_save);
65803 PyErr_SetString(PyExc_RuntimeError, e.
what());
65806 Py_END_ALLOW_THREADS
65808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OneRecallAtRCriterion, SWIG_POINTER_NEW | 0 );
65815 SWIGINTERN PyObject *_wrap_OneRecallAtRCriterion_evaluate(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65816 PyObject *resultobj = 0;
65818 float *arg2 = (
float *) 0 ;
65819 faiss::AutoTuneCriterion::idx_t *arg3 = (faiss::AutoTuneCriterion::idx_t *) 0 ;
65826 PyObject * obj0 = 0 ;
65827 PyObject * obj1 = 0 ;
65828 PyObject * obj2 = 0 ;
65831 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OneRecallAtRCriterion_evaluate",&obj0,&obj1,&obj2)) SWIG_fail;
65832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OneRecallAtRCriterion, 0 | 0 );
65833 if (!SWIG_IsOK(res1)) {
65834 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OneRecallAtRCriterion_evaluate" "', argument " "1"" of type '" "faiss::OneRecallAtRCriterion const *""'");
65837 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
65838 if (!SWIG_IsOK(res2)) {
65839 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OneRecallAtRCriterion_evaluate" "', argument " "2"" of type '" "float const *""'");
65841 arg2 =
reinterpret_cast< float *
>(argp2);
65842 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
65843 if (!SWIG_IsOK(res3)) {
65844 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "OneRecallAtRCriterion_evaluate" "', argument " "3"" of type '" "faiss::AutoTuneCriterion::idx_t const *""'");
65846 arg3 =
reinterpret_cast< faiss::AutoTuneCriterion::idx_t *
>(argp3);
65848 Py_BEGIN_ALLOW_THREADS
65850 result = (double)((
faiss::OneRecallAtRCriterion const *)arg1)->evaluate((
float const *)arg2,(faiss::AutoTuneCriterion::idx_t
const *)arg3);
65852 PyEval_RestoreThread(_save);
65853 PyErr_SetString(PyExc_RuntimeError, e.
what());
65856 Py_END_ALLOW_THREADS
65858 resultobj = SWIG_From_double(static_cast< double >(result));
65865 SWIGINTERN PyObject *_wrap_delete_OneRecallAtRCriterion(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65866 PyObject *resultobj = 0;
65870 PyObject * obj0 = 0 ;
65872 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_OneRecallAtRCriterion",&obj0)) SWIG_fail;
65873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OneRecallAtRCriterion, SWIG_POINTER_DISOWN | 0 );
65874 if (!SWIG_IsOK(res1)) {
65875 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_OneRecallAtRCriterion" "', argument " "1"" of type '" "faiss::OneRecallAtRCriterion *""'");
65879 Py_BEGIN_ALLOW_THREADS
65883 PyEval_RestoreThread(_save);
65884 PyErr_SetString(PyExc_RuntimeError, e.
what());
65887 Py_END_ALLOW_THREADS
65889 resultobj = SWIG_Py_Void();
65896 SWIGINTERN PyObject *OneRecallAtRCriterion_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65898 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
65899 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__OneRecallAtRCriterion, SWIG_NewClientData(obj));
65900 return SWIG_Py_Void();
65903 SWIGINTERN PyObject *_wrap_IntersectionCriterion_R_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65904 PyObject *resultobj = 0;
65906 faiss::AutoTuneCriterion::idx_t arg2 ;
65911 PyObject * obj0 = 0 ;
65912 PyObject * obj1 = 0 ;
65914 if (!PyArg_ParseTuple(args,(
char *)
"OO:IntersectionCriterion_R_set",&obj0,&obj1)) SWIG_fail;
65915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IntersectionCriterion, 0 | 0 );
65916 if (!SWIG_IsOK(res1)) {
65917 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntersectionCriterion_R_set" "', argument " "1"" of type '" "faiss::IntersectionCriterion *""'");
65920 ecode2 = SWIG_AsVal_long(obj1, &val2);
65921 if (!SWIG_IsOK(ecode2)) {
65922 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IntersectionCriterion_R_set" "', argument " "2"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
65924 arg2 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val2);
65925 if (arg1) (arg1)->R = arg2;
65926 resultobj = SWIG_Py_Void();
65933 SWIGINTERN PyObject *_wrap_IntersectionCriterion_R_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65934 PyObject *resultobj = 0;
65938 PyObject * obj0 = 0 ;
65939 faiss::AutoTuneCriterion::idx_t result;
65941 if (!PyArg_ParseTuple(args,(
char *)
"O:IntersectionCriterion_R_get",&obj0)) SWIG_fail;
65942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IntersectionCriterion, 0 | 0 );
65943 if (!SWIG_IsOK(res1)) {
65944 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntersectionCriterion_R_get" "', argument " "1"" of type '" "faiss::IntersectionCriterion *""'");
65947 result = (faiss::AutoTuneCriterion::idx_t) ((arg1)->R);
65948 resultobj = SWIG_From_long(static_cast< long >(result));
65955 SWIGINTERN PyObject *_wrap_new_IntersectionCriterion(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65956 PyObject *resultobj = 0;
65957 faiss::AutoTuneCriterion::idx_t arg1 ;
65958 faiss::AutoTuneCriterion::idx_t arg2 ;
65963 PyObject * obj0 = 0 ;
65964 PyObject * obj1 = 0 ;
65967 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IntersectionCriterion",&obj0,&obj1)) SWIG_fail;
65968 ecode1 = SWIG_AsVal_long(obj0, &val1);
65969 if (!SWIG_IsOK(ecode1)) {
65970 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IntersectionCriterion" "', argument " "1"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
65972 arg1 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val1);
65973 ecode2 = SWIG_AsVal_long(obj1, &val2);
65974 if (!SWIG_IsOK(ecode2)) {
65975 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IntersectionCriterion" "', argument " "2"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
65977 arg2 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val2);
65979 Py_BEGIN_ALLOW_THREADS
65983 PyEval_RestoreThread(_save);
65984 PyErr_SetString(PyExc_RuntimeError, e.
what());
65987 Py_END_ALLOW_THREADS
65989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IntersectionCriterion, SWIG_POINTER_NEW | 0 );
65996 SWIGINTERN PyObject *_wrap_IntersectionCriterion_evaluate(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65997 PyObject *resultobj = 0;
65999 float *arg2 = (
float *) 0 ;
66000 faiss::AutoTuneCriterion::idx_t *arg3 = (faiss::AutoTuneCriterion::idx_t *) 0 ;
66007 PyObject * obj0 = 0 ;
66008 PyObject * obj1 = 0 ;
66009 PyObject * obj2 = 0 ;
66012 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IntersectionCriterion_evaluate",&obj0,&obj1,&obj2)) SWIG_fail;
66013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IntersectionCriterion, 0 | 0 );
66014 if (!SWIG_IsOK(res1)) {
66015 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntersectionCriterion_evaluate" "', argument " "1"" of type '" "faiss::IntersectionCriterion const *""'");
66018 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
66019 if (!SWIG_IsOK(res2)) {
66020 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IntersectionCriterion_evaluate" "', argument " "2"" of type '" "float const *""'");
66022 arg2 =
reinterpret_cast< float *
>(argp2);
66023 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
66024 if (!SWIG_IsOK(res3)) {
66025 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IntersectionCriterion_evaluate" "', argument " "3"" of type '" "faiss::AutoTuneCriterion::idx_t const *""'");
66027 arg3 =
reinterpret_cast< faiss::AutoTuneCriterion::idx_t *
>(argp3);
66029 Py_BEGIN_ALLOW_THREADS
66031 result = (double)((
faiss::IntersectionCriterion const *)arg1)->evaluate((
float const *)arg2,(faiss::AutoTuneCriterion::idx_t
const *)arg3);
66033 PyEval_RestoreThread(_save);
66034 PyErr_SetString(PyExc_RuntimeError, e.
what());
66037 Py_END_ALLOW_THREADS
66039 resultobj = SWIG_From_double(static_cast< double >(result));
66046 SWIGINTERN PyObject *_wrap_delete_IntersectionCriterion(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66047 PyObject *resultobj = 0;
66051 PyObject * obj0 = 0 ;
66053 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IntersectionCriterion",&obj0)) SWIG_fail;
66054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IntersectionCriterion, SWIG_POINTER_DISOWN | 0 );
66055 if (!SWIG_IsOK(res1)) {
66056 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IntersectionCriterion" "', argument " "1"" of type '" "faiss::IntersectionCriterion *""'");
66060 Py_BEGIN_ALLOW_THREADS
66064 PyEval_RestoreThread(_save);
66065 PyErr_SetString(PyExc_RuntimeError, e.
what());
66068 Py_END_ALLOW_THREADS
66070 resultobj = SWIG_Py_Void();
66077 SWIGINTERN PyObject *IntersectionCriterion_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66079 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
66080 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IntersectionCriterion, SWIG_NewClientData(obj));
66081 return SWIG_Py_Void();
66084 SWIGINTERN PyObject *_wrap_OperatingPoint_perf_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66085 PyObject *resultobj = 0;
66092 PyObject * obj0 = 0 ;
66093 PyObject * obj1 = 0 ;
66095 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoint_perf_set",&obj0,&obj1)) SWIG_fail;
66096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
66097 if (!SWIG_IsOK(res1)) {
66098 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_perf_set" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
66101 ecode2 = SWIG_AsVal_double(obj1, &val2);
66102 if (!SWIG_IsOK(ecode2)) {
66103 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPoint_perf_set" "', argument " "2"" of type '" "double""'");
66105 arg2 =
static_cast< double >(val2);
66106 if (arg1) (arg1)->perf = arg2;
66107 resultobj = SWIG_Py_Void();
66114 SWIGINTERN PyObject *_wrap_OperatingPoint_perf_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66115 PyObject *resultobj = 0;
66119 PyObject * obj0 = 0 ;
66122 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoint_perf_get",&obj0)) SWIG_fail;
66123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
66124 if (!SWIG_IsOK(res1)) {
66125 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_perf_get" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
66128 result = (double) ((arg1)->perf);
66129 resultobj = SWIG_From_double(static_cast< double >(result));
66136 SWIGINTERN PyObject *_wrap_OperatingPoint_t_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66137 PyObject *resultobj = 0;
66144 PyObject * obj0 = 0 ;
66145 PyObject * obj1 = 0 ;
66147 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoint_t_set",&obj0,&obj1)) SWIG_fail;
66148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
66149 if (!SWIG_IsOK(res1)) {
66150 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_t_set" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
66153 ecode2 = SWIG_AsVal_double(obj1, &val2);
66154 if (!SWIG_IsOK(ecode2)) {
66155 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPoint_t_set" "', argument " "2"" of type '" "double""'");
66157 arg2 =
static_cast< double >(val2);
66158 if (arg1) (arg1)->t = arg2;
66159 resultobj = SWIG_Py_Void();
66166 SWIGINTERN PyObject *_wrap_OperatingPoint_t_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66167 PyObject *resultobj = 0;
66171 PyObject * obj0 = 0 ;
66174 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoint_t_get",&obj0)) SWIG_fail;
66175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
66176 if (!SWIG_IsOK(res1)) {
66177 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_t_get" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
66180 result = (double) ((arg1)->t);
66181 resultobj = SWIG_From_double(static_cast< double >(result));
66188 SWIGINTERN PyObject *_wrap_OperatingPoint_key_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66189 PyObject *resultobj = 0;
66191 std::string *arg2 = 0 ;
66194 int res2 = SWIG_OLDOBJ ;
66195 PyObject * obj0 = 0 ;
66196 PyObject * obj1 = 0 ;
66198 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoint_key_set",&obj0,&obj1)) SWIG_fail;
66199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
66200 if (!SWIG_IsOK(res1)) {
66201 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_key_set" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
66205 std::string *ptr = (std::string *)0;
66206 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
66207 if (!SWIG_IsOK(res2)) {
66208 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPoint_key_set" "', argument " "2"" of type '" "std::string const &""'");
66211 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPoint_key_set" "', argument " "2"" of type '" "std::string const &""'");
66215 if (arg1) (arg1)->key = *arg2;
66216 resultobj = SWIG_Py_Void();
66217 if (SWIG_IsNewObj(res2))
delete arg2;
66220 if (SWIG_IsNewObj(res2))
delete arg2;
66225 SWIGINTERN PyObject *_wrap_OperatingPoint_key_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66226 PyObject *resultobj = 0;
66230 PyObject * obj0 = 0 ;
66231 std::string *result = 0 ;
66233 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoint_key_get",&obj0)) SWIG_fail;
66234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
66235 if (!SWIG_IsOK(res1)) {
66236 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_key_get" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
66239 result = (std::string *) & ((arg1)->key);
66240 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
66247 SWIGINTERN PyObject *_wrap_OperatingPoint_cno_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66248 PyObject *resultobj = 0;
66255 PyObject * obj0 = 0 ;
66256 PyObject * obj1 = 0 ;
66258 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoint_cno_set",&obj0,&obj1)) SWIG_fail;
66259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
66260 if (!SWIG_IsOK(res1)) {
66261 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_cno_set" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
66264 ecode2 = SWIG_AsVal_long(obj1, &val2);
66265 if (!SWIG_IsOK(ecode2)) {
66266 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPoint_cno_set" "', argument " "2"" of type '" "long""'");
66268 arg2 =
static_cast< long >(val2);
66269 if (arg1) (arg1)->cno = arg2;
66270 resultobj = SWIG_Py_Void();
66277 SWIGINTERN PyObject *_wrap_OperatingPoint_cno_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66278 PyObject *resultobj = 0;
66282 PyObject * obj0 = 0 ;
66285 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoint_cno_get",&obj0)) SWIG_fail;
66286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
66287 if (!SWIG_IsOK(res1)) {
66288 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_cno_get" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
66291 result = (long) ((arg1)->cno);
66292 resultobj = SWIG_From_long(static_cast< long >(result));
66299 SWIGINTERN PyObject *_wrap_new_OperatingPoint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66300 PyObject *resultobj = 0;
66303 if (!PyArg_ParseTuple(args,(
char *)
":new_OperatingPoint")) SWIG_fail;
66305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OperatingPoint, SWIG_POINTER_NEW | 0 );
66312 SWIGINTERN PyObject *_wrap_delete_OperatingPoint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66313 PyObject *resultobj = 0;
66317 PyObject * obj0 = 0 ;
66319 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_OperatingPoint",&obj0)) SWIG_fail;
66320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, SWIG_POINTER_DISOWN | 0 );
66321 if (!SWIG_IsOK(res1)) {
66322 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_OperatingPoint" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
66326 resultobj = SWIG_Py_Void();
66333 SWIGINTERN PyObject *OperatingPoint_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66335 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
66336 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__OperatingPoint, SWIG_NewClientData(obj));
66337 return SWIG_Py_Void();
66340 SWIGINTERN PyObject *_wrap_OperatingPoints_all_pts_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66341 PyObject *resultobj = 0;
66343 std::vector< faiss::OperatingPoint > *arg2 = (std::vector< faiss::OperatingPoint > *) 0 ;
66348 PyObject * obj0 = 0 ;
66349 PyObject * obj1 = 0 ;
66351 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoints_all_pts_set",&obj0,&obj1)) SWIG_fail;
66352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
66353 if (!SWIG_IsOK(res1)) {
66354 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_all_pts_set" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
66357 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
66358 if (!SWIG_IsOK(res2)) {
66359 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPoints_all_pts_set" "', argument " "2"" of type '" "std::vector< faiss::OperatingPoint > *""'");
66361 arg2 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp2);
66362 if (arg1) (arg1)->all_pts = *arg2;
66363 resultobj = SWIG_Py_Void();
66370 SWIGINTERN PyObject *_wrap_OperatingPoints_all_pts_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66371 PyObject *resultobj = 0;
66375 PyObject * obj0 = 0 ;
66376 std::vector< faiss::OperatingPoint > *result = 0 ;
66378 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoints_all_pts_get",&obj0)) SWIG_fail;
66379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
66380 if (!SWIG_IsOK(res1)) {
66381 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_all_pts_get" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
66384 result = (std::vector< faiss::OperatingPoint > *)& ((arg1)->all_pts);
66385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
66392 SWIGINTERN PyObject *_wrap_OperatingPoints_optimal_pts_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66393 PyObject *resultobj = 0;
66395 std::vector< faiss::OperatingPoint > *arg2 = (std::vector< faiss::OperatingPoint > *) 0 ;
66400 PyObject * obj0 = 0 ;
66401 PyObject * obj1 = 0 ;
66403 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoints_optimal_pts_set",&obj0,&obj1)) SWIG_fail;
66404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
66405 if (!SWIG_IsOK(res1)) {
66406 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_optimal_pts_set" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
66409 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
66410 if (!SWIG_IsOK(res2)) {
66411 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPoints_optimal_pts_set" "', argument " "2"" of type '" "std::vector< faiss::OperatingPoint > *""'");
66413 arg2 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp2);
66414 if (arg1) (arg1)->optimal_pts = *arg2;
66415 resultobj = SWIG_Py_Void();
66422 SWIGINTERN PyObject *_wrap_OperatingPoints_optimal_pts_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66423 PyObject *resultobj = 0;
66427 PyObject * obj0 = 0 ;
66428 std::vector< faiss::OperatingPoint > *result = 0 ;
66430 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoints_optimal_pts_get",&obj0)) SWIG_fail;
66431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
66432 if (!SWIG_IsOK(res1)) {
66433 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_optimal_pts_get" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
66436 result = (std::vector< faiss::OperatingPoint > *)& ((arg1)->optimal_pts);
66437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
66444 SWIGINTERN PyObject *_wrap_new_OperatingPoints(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66445 PyObject *resultobj = 0;
66448 if (!PyArg_ParseTuple(args,(
char *)
":new_OperatingPoints")) SWIG_fail;
66450 Py_BEGIN_ALLOW_THREADS
66454 PyEval_RestoreThread(_save);
66455 PyErr_SetString(PyExc_RuntimeError, e.
what());
66458 Py_END_ALLOW_THREADS
66460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OperatingPoints, SWIG_POINTER_NEW | 0 );
66467 SWIGINTERN PyObject *_wrap_OperatingPoints_merge_with__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66468 PyObject *resultobj = 0;
66471 std::string *arg3 = 0 ;
66476 int res3 = SWIG_OLDOBJ ;
66477 PyObject * obj0 = 0 ;
66478 PyObject * obj1 = 0 ;
66479 PyObject * obj2 = 0 ;
66482 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OperatingPoints_merge_with",&obj0,&obj1,&obj2)) SWIG_fail;
66483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
66484 if (!SWIG_IsOK(res1)) {
66485 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_merge_with" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
66488 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__OperatingPoints, 0 | 0);
66489 if (!SWIG_IsOK(res2)) {
66490 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPoints_merge_with" "', argument " "2"" of type '" "faiss::OperatingPoints const &""'");
66493 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPoints_merge_with" "', argument " "2"" of type '" "faiss::OperatingPoints const &""'");
66497 std::string *ptr = (std::string *)0;
66498 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
66499 if (!SWIG_IsOK(res3)) {
66500 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "OperatingPoints_merge_with" "', argument " "3"" of type '" "std::string const &""'");
66503 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPoints_merge_with" "', argument " "3"" of type '" "std::string const &""'");
66508 Py_BEGIN_ALLOW_THREADS
66512 PyEval_RestoreThread(_save);
66513 PyErr_SetString(PyExc_RuntimeError, e.
what());
66516 Py_END_ALLOW_THREADS
66518 resultobj = SWIG_From_int(static_cast< int >(result));
66519 if (SWIG_IsNewObj(res3))
delete arg3;
66522 if (SWIG_IsNewObj(res3))
delete arg3;
66527 SWIGINTERN PyObject *_wrap_OperatingPoints_merge_with__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66528 PyObject *resultobj = 0;
66535 PyObject * obj0 = 0 ;
66536 PyObject * obj1 = 0 ;
66539 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoints_merge_with",&obj0,&obj1)) SWIG_fail;
66540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
66541 if (!SWIG_IsOK(res1)) {
66542 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_merge_with" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
66545 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__OperatingPoints, 0 | 0);
66546 if (!SWIG_IsOK(res2)) {
66547 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPoints_merge_with" "', argument " "2"" of type '" "faiss::OperatingPoints const &""'");
66550 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPoints_merge_with" "', argument " "2"" of type '" "faiss::OperatingPoints const &""'");
66554 Py_BEGIN_ALLOW_THREADS
66558 PyEval_RestoreThread(_save);
66559 PyErr_SetString(PyExc_RuntimeError, e.
what());
66562 Py_END_ALLOW_THREADS
66564 resultobj = SWIG_From_int(static_cast< int >(result));
66571 SWIGINTERN PyObject *_wrap_OperatingPoints_merge_with(PyObject *
self, PyObject *args) {
66573 PyObject *argv[4] = {
66578 if (!PyTuple_Check(args)) SWIG_fail;
66579 argc = args ? PyObject_Length(args) : 0;
66580 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
66581 argv[ii] = PyTuple_GET_ITEM(args,ii);
66586 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__OperatingPoints, 0);
66587 _v = SWIG_CheckState(res);
66589 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_faiss__OperatingPoints, 0);
66590 _v = SWIG_CheckState(res);
66592 return _wrap_OperatingPoints_merge_with__SWIG_1(
self, args);
66599 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__OperatingPoints, 0);
66600 _v = SWIG_CheckState(res);
66602 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_faiss__OperatingPoints, 0);
66603 _v = SWIG_CheckState(res);
66605 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
66606 _v = SWIG_CheckState(res);
66608 return _wrap_OperatingPoints_merge_with__SWIG_0(
self, args);
66615 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'OperatingPoints_merge_with'.\n"
66616 " Possible C/C++ prototypes are:\n"
66617 " faiss::OperatingPoints::merge_with(faiss::OperatingPoints const &,std::string const &)\n"
66618 " faiss::OperatingPoints::merge_with(faiss::OperatingPoints const &)\n");
66623 SWIGINTERN PyObject *_wrap_OperatingPoints_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66624 PyObject *resultobj = 0;
66628 PyObject * obj0 = 0 ;
66630 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoints_clear",&obj0)) SWIG_fail;
66631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
66632 if (!SWIG_IsOK(res1)) {
66633 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_clear" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
66637 Py_BEGIN_ALLOW_THREADS
66641 PyEval_RestoreThread(_save);
66642 PyErr_SetString(PyExc_RuntimeError, e.
what());
66645 Py_END_ALLOW_THREADS
66647 resultobj = SWIG_Py_Void();
66654 SWIGINTERN PyObject *_wrap_OperatingPoints_add__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66655 PyObject *resultobj = 0;
66659 std::string *arg4 = 0 ;
66667 int res4 = SWIG_OLDOBJ ;
66670 PyObject * obj0 = 0 ;
66671 PyObject * obj1 = 0 ;
66672 PyObject * obj2 = 0 ;
66673 PyObject * obj3 = 0 ;
66674 PyObject * obj4 = 0 ;
66677 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:OperatingPoints_add",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
66678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
66679 if (!SWIG_IsOK(res1)) {
66680 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_add" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
66683 ecode2 = SWIG_AsVal_double(obj1, &val2);
66684 if (!SWIG_IsOK(ecode2)) {
66685 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPoints_add" "', argument " "2"" of type '" "double""'");
66687 arg2 =
static_cast< double >(val2);
66688 ecode3 = SWIG_AsVal_double(obj2, &val3);
66689 if (!SWIG_IsOK(ecode3)) {
66690 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OperatingPoints_add" "', argument " "3"" of type '" "double""'");
66692 arg3 =
static_cast< double >(val3);
66694 std::string *ptr = (std::string *)0;
66695 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
66696 if (!SWIG_IsOK(res4)) {
66697 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "OperatingPoints_add" "', argument " "4"" of type '" "std::string const &""'");
66700 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPoints_add" "', argument " "4"" of type '" "std::string const &""'");
66704 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
66705 if (!SWIG_IsOK(ecode5)) {
66706 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "OperatingPoints_add" "', argument " "5"" of type '" "size_t""'");
66708 arg5 =
static_cast< size_t >(val5);
66710 Py_BEGIN_ALLOW_THREADS
66712 result = (bool)(arg1)->add(arg2,arg3,(std::string
const &)*arg4,arg5);
66714 PyEval_RestoreThread(_save);
66715 PyErr_SetString(PyExc_RuntimeError, e.
what());
66718 Py_END_ALLOW_THREADS
66720 resultobj = SWIG_From_bool(static_cast< bool >(result));
66721 if (SWIG_IsNewObj(res4))
delete arg4;
66724 if (SWIG_IsNewObj(res4))
delete arg4;
66729 SWIGINTERN PyObject *_wrap_OperatingPoints_add__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66730 PyObject *resultobj = 0;
66734 std::string *arg4 = 0 ;
66741 int res4 = SWIG_OLDOBJ ;
66742 PyObject * obj0 = 0 ;
66743 PyObject * obj1 = 0 ;
66744 PyObject * obj2 = 0 ;
66745 PyObject * obj3 = 0 ;
66748 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:OperatingPoints_add",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
66749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
66750 if (!SWIG_IsOK(res1)) {
66751 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_add" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
66754 ecode2 = SWIG_AsVal_double(obj1, &val2);
66755 if (!SWIG_IsOK(ecode2)) {
66756 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPoints_add" "', argument " "2"" of type '" "double""'");
66758 arg2 =
static_cast< double >(val2);
66759 ecode3 = SWIG_AsVal_double(obj2, &val3);
66760 if (!SWIG_IsOK(ecode3)) {
66761 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OperatingPoints_add" "', argument " "3"" of type '" "double""'");
66763 arg3 =
static_cast< double >(val3);
66765 std::string *ptr = (std::string *)0;
66766 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
66767 if (!SWIG_IsOK(res4)) {
66768 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "OperatingPoints_add" "', argument " "4"" of type '" "std::string const &""'");
66771 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPoints_add" "', argument " "4"" of type '" "std::string const &""'");
66776 Py_BEGIN_ALLOW_THREADS
66778 result = (bool)(arg1)->add(arg2,arg3,(std::string
const &)*arg4);
66780 PyEval_RestoreThread(_save);
66781 PyErr_SetString(PyExc_RuntimeError, e.
what());
66784 Py_END_ALLOW_THREADS
66786 resultobj = SWIG_From_bool(static_cast< bool >(result));
66787 if (SWIG_IsNewObj(res4))
delete arg4;
66790 if (SWIG_IsNewObj(res4))
delete arg4;
66795 SWIGINTERN PyObject *_wrap_OperatingPoints_add(PyObject *
self, PyObject *args) {
66797 PyObject *argv[6] = {
66802 if (!PyTuple_Check(args)) SWIG_fail;
66803 argc = args ? PyObject_Length(args) : 0;
66804 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
66805 argv[ii] = PyTuple_GET_ITEM(args,ii);
66810 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__OperatingPoints, 0);
66811 _v = SWIG_CheckState(res);
66814 int res = SWIG_AsVal_double(argv[1], NULL);
66815 _v = SWIG_CheckState(res);
66819 int res = SWIG_AsVal_double(argv[2], NULL);
66820 _v = SWIG_CheckState(res);
66823 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
66824 _v = SWIG_CheckState(res);
66826 return _wrap_OperatingPoints_add__SWIG_1(
self, args);
66835 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__OperatingPoints, 0);
66836 _v = SWIG_CheckState(res);
66839 int res = SWIG_AsVal_double(argv[1], NULL);
66840 _v = SWIG_CheckState(res);
66844 int res = SWIG_AsVal_double(argv[2], NULL);
66845 _v = SWIG_CheckState(res);
66848 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
66849 _v = SWIG_CheckState(res);
66852 int res = SWIG_AsVal_size_t(argv[4], NULL);
66853 _v = SWIG_CheckState(res);
66856 return _wrap_OperatingPoints_add__SWIG_0(
self, args);
66865 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'OperatingPoints_add'.\n"
66866 " Possible C/C++ prototypes are:\n"
66867 " faiss::OperatingPoints::add(double,double,std::string const &,size_t)\n"
66868 " faiss::OperatingPoints::add(double,double,std::string const &)\n");
66873 SWIGINTERN PyObject *_wrap_OperatingPoints_t_for_perf(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66874 PyObject *resultobj = 0;
66881 PyObject * obj0 = 0 ;
66882 PyObject * obj1 = 0 ;
66885 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoints_t_for_perf",&obj0,&obj1)) SWIG_fail;
66886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
66887 if (!SWIG_IsOK(res1)) {
66888 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_t_for_perf" "', argument " "1"" of type '" "faiss::OperatingPoints const *""'");
66891 ecode2 = SWIG_AsVal_double(obj1, &val2);
66892 if (!SWIG_IsOK(ecode2)) {
66893 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPoints_t_for_perf" "', argument " "2"" of type '" "double""'");
66895 arg2 =
static_cast< double >(val2);
66897 Py_BEGIN_ALLOW_THREADS
66901 PyEval_RestoreThread(_save);
66902 PyErr_SetString(PyExc_RuntimeError, e.
what());
66905 Py_END_ALLOW_THREADS
66907 resultobj = SWIG_From_double(static_cast< double >(result));
66914 SWIGINTERN PyObject *_wrap_OperatingPoints_display__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66915 PyObject *resultobj = 0;
66922 PyObject * obj0 = 0 ;
66923 PyObject * obj1 = 0 ;
66925 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoints_display",&obj0,&obj1)) SWIG_fail;
66926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
66927 if (!SWIG_IsOK(res1)) {
66928 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_display" "', argument " "1"" of type '" "faiss::OperatingPoints const *""'");
66931 ecode2 = SWIG_AsVal_bool(obj1, &val2);
66932 if (!SWIG_IsOK(ecode2)) {
66933 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPoints_display" "', argument " "2"" of type '" "bool""'");
66935 arg2 =
static_cast< bool >(val2);
66937 Py_BEGIN_ALLOW_THREADS
66941 PyEval_RestoreThread(_save);
66942 PyErr_SetString(PyExc_RuntimeError, e.
what());
66945 Py_END_ALLOW_THREADS
66947 resultobj = SWIG_Py_Void();
66954 SWIGINTERN PyObject *_wrap_OperatingPoints_display__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66955 PyObject *resultobj = 0;
66959 PyObject * obj0 = 0 ;
66961 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoints_display",&obj0)) SWIG_fail;
66962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
66963 if (!SWIG_IsOK(res1)) {
66964 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_display" "', argument " "1"" of type '" "faiss::OperatingPoints const *""'");
66968 Py_BEGIN_ALLOW_THREADS
66972 PyEval_RestoreThread(_save);
66973 PyErr_SetString(PyExc_RuntimeError, e.
what());
66976 Py_END_ALLOW_THREADS
66978 resultobj = SWIG_Py_Void();
66985 SWIGINTERN PyObject *_wrap_OperatingPoints_display(PyObject *
self, PyObject *args) {
66987 PyObject *argv[3] = {
66992 if (!PyTuple_Check(args)) SWIG_fail;
66993 argc = args ? PyObject_Length(args) : 0;
66994 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
66995 argv[ii] = PyTuple_GET_ITEM(args,ii);
67000 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__OperatingPoints, 0);
67001 _v = SWIG_CheckState(res);
67003 return _wrap_OperatingPoints_display__SWIG_1(
self, args);
67009 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__OperatingPoints, 0);
67010 _v = SWIG_CheckState(res);
67013 int res = SWIG_AsVal_bool(argv[1], NULL);
67014 _v = SWIG_CheckState(res);
67017 return _wrap_OperatingPoints_display__SWIG_0(
self, args);
67023 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'OperatingPoints_display'.\n"
67024 " Possible C/C++ prototypes are:\n"
67025 " faiss::OperatingPoints::display(bool) const\n"
67026 " faiss::OperatingPoints::display() const\n");
67031 SWIGINTERN PyObject *_wrap_OperatingPoints_all_to_gnuplot(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67032 PyObject *resultobj = 0;
67034 char *arg2 = (
char *) 0 ;
67040 PyObject * obj0 = 0 ;
67041 PyObject * obj1 = 0 ;
67043 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoints_all_to_gnuplot",&obj0,&obj1)) SWIG_fail;
67044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
67045 if (!SWIG_IsOK(res1)) {
67046 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_all_to_gnuplot" "', argument " "1"" of type '" "faiss::OperatingPoints const *""'");
67049 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
67050 if (!SWIG_IsOK(res2)) {
67051 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPoints_all_to_gnuplot" "', argument " "2"" of type '" "char const *""'");
67053 arg2 =
reinterpret_cast< char *
>(buf2);
67055 Py_BEGIN_ALLOW_THREADS
67059 PyEval_RestoreThread(_save);
67060 PyErr_SetString(PyExc_RuntimeError, e.
what());
67063 Py_END_ALLOW_THREADS
67065 resultobj = SWIG_Py_Void();
67066 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
67069 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
67074 SWIGINTERN PyObject *_wrap_OperatingPoints_optimal_to_gnuplot(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67075 PyObject *resultobj = 0;
67077 char *arg2 = (
char *) 0 ;
67083 PyObject * obj0 = 0 ;
67084 PyObject * obj1 = 0 ;
67086 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoints_optimal_to_gnuplot",&obj0,&obj1)) SWIG_fail;
67087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
67088 if (!SWIG_IsOK(res1)) {
67089 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_optimal_to_gnuplot" "', argument " "1"" of type '" "faiss::OperatingPoints const *""'");
67092 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
67093 if (!SWIG_IsOK(res2)) {
67094 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPoints_optimal_to_gnuplot" "', argument " "2"" of type '" "char const *""'");
67096 arg2 =
reinterpret_cast< char *
>(buf2);
67098 Py_BEGIN_ALLOW_THREADS
67102 PyEval_RestoreThread(_save);
67103 PyErr_SetString(PyExc_RuntimeError, e.
what());
67106 Py_END_ALLOW_THREADS
67108 resultobj = SWIG_Py_Void();
67109 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
67112 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
67117 SWIGINTERN PyObject *_wrap_delete_OperatingPoints(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67118 PyObject *resultobj = 0;
67122 PyObject * obj0 = 0 ;
67124 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_OperatingPoints",&obj0)) SWIG_fail;
67125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, SWIG_POINTER_DISOWN | 0 );
67126 if (!SWIG_IsOK(res1)) {
67127 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_OperatingPoints" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
67131 resultobj = SWIG_Py_Void();
67138 SWIGINTERN PyObject *OperatingPoints_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67140 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
67141 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__OperatingPoints, SWIG_NewClientData(obj));
67142 return SWIG_Py_Void();
67145 SWIGINTERN PyObject *_wrap_ParameterRange_name_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67146 PyObject *resultobj = 0;
67148 std::string *arg2 = 0 ;
67151 int res2 = SWIG_OLDOBJ ;
67152 PyObject * obj0 = 0 ;
67153 PyObject * obj1 = 0 ;
67155 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterRange_name_set",&obj0,&obj1)) SWIG_fail;
67156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterRange, 0 | 0 );
67157 if (!SWIG_IsOK(res1)) {
67158 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterRange_name_set" "', argument " "1"" of type '" "faiss::ParameterRange *""'");
67162 std::string *ptr = (std::string *)0;
67163 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
67164 if (!SWIG_IsOK(res2)) {
67165 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterRange_name_set" "', argument " "2"" of type '" "std::string const &""'");
67168 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "ParameterRange_name_set" "', argument " "2"" of type '" "std::string const &""'");
67172 if (arg1) (arg1)->name = *arg2;
67173 resultobj = SWIG_Py_Void();
67174 if (SWIG_IsNewObj(res2))
delete arg2;
67177 if (SWIG_IsNewObj(res2))
delete arg2;
67182 SWIGINTERN PyObject *_wrap_ParameterRange_name_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67183 PyObject *resultobj = 0;
67187 PyObject * obj0 = 0 ;
67188 std::string *result = 0 ;
67190 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterRange_name_get",&obj0)) SWIG_fail;
67191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterRange, 0 | 0 );
67192 if (!SWIG_IsOK(res1)) {
67193 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterRange_name_get" "', argument " "1"" of type '" "faiss::ParameterRange *""'");
67196 result = (std::string *) & ((arg1)->name);
67197 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
67204 SWIGINTERN PyObject *_wrap_ParameterRange_values_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67205 PyObject *resultobj = 0;
67207 std::vector< double > *arg2 = (std::vector< double > *) 0 ;
67212 PyObject * obj0 = 0 ;
67213 PyObject * obj1 = 0 ;
67215 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterRange_values_set",&obj0,&obj1)) SWIG_fail;
67216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterRange, 0 | 0 );
67217 if (!SWIG_IsOK(res1)) {
67218 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterRange_values_set" "', argument " "1"" of type '" "faiss::ParameterRange *""'");
67221 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
67222 if (!SWIG_IsOK(res2)) {
67223 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterRange_values_set" "', argument " "2"" of type '" "std::vector< double > *""'");
67225 arg2 =
reinterpret_cast< std::vector< double > *
>(argp2);
67226 if (arg1) (arg1)->values = *arg2;
67227 resultobj = SWIG_Py_Void();
67234 SWIGINTERN PyObject *_wrap_ParameterRange_values_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67235 PyObject *resultobj = 0;
67239 PyObject * obj0 = 0 ;
67240 std::vector< double > *result = 0 ;
67242 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterRange_values_get",&obj0)) SWIG_fail;
67243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterRange, 0 | 0 );
67244 if (!SWIG_IsOK(res1)) {
67245 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterRange_values_get" "', argument " "1"" of type '" "faiss::ParameterRange *""'");
67248 result = (std::vector< double > *)& ((arg1)->values);
67249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
67256 SWIGINTERN PyObject *_wrap_new_ParameterRange(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67257 PyObject *resultobj = 0;
67260 if (!PyArg_ParseTuple(args,(
char *)
":new_ParameterRange")) SWIG_fail;
67262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ParameterRange, SWIG_POINTER_NEW | 0 );
67269 SWIGINTERN PyObject *_wrap_delete_ParameterRange(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67270 PyObject *resultobj = 0;
67274 PyObject * obj0 = 0 ;
67276 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ParameterRange",&obj0)) SWIG_fail;
67277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterRange, SWIG_POINTER_DISOWN | 0 );
67278 if (!SWIG_IsOK(res1)) {
67279 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ParameterRange" "', argument " "1"" of type '" "faiss::ParameterRange *""'");
67283 resultobj = SWIG_Py_Void();
67290 SWIGINTERN PyObject *ParameterRange_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67292 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
67293 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ParameterRange, SWIG_NewClientData(obj));
67294 return SWIG_Py_Void();
67297 SWIGINTERN PyObject *_wrap_ParameterSpace_parameter_ranges_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67298 PyObject *resultobj = 0;
67300 std::vector< faiss::ParameterRange > *arg2 = (std::vector< faiss::ParameterRange > *) 0 ;
67305 PyObject * obj0 = 0 ;
67306 PyObject * obj1 = 0 ;
67308 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_parameter_ranges_set",&obj0,&obj1)) SWIG_fail;
67309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67310 if (!SWIG_IsOK(res1)) {
67311 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_parameter_ranges_set" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
67314 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t, 0 | 0 );
67315 if (!SWIG_IsOK(res2)) {
67316 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterSpace_parameter_ranges_set" "', argument " "2"" of type '" "std::vector< faiss::ParameterRange > *""'");
67318 arg2 =
reinterpret_cast< std::vector< faiss::ParameterRange > *
>(argp2);
67319 if (arg1) (arg1)->parameter_ranges = *arg2;
67320 resultobj = SWIG_Py_Void();
67327 SWIGINTERN PyObject *_wrap_ParameterSpace_parameter_ranges_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67328 PyObject *resultobj = 0;
67332 PyObject * obj0 = 0 ;
67333 std::vector< faiss::ParameterRange > *result = 0 ;
67335 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_parameter_ranges_get",&obj0)) SWIG_fail;
67336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67337 if (!SWIG_IsOK(res1)) {
67338 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_parameter_ranges_get" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
67341 result = (std::vector< faiss::ParameterRange > *)& ((arg1)->parameter_ranges);
67342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t, 0 | 0 );
67349 SWIGINTERN PyObject *_wrap_ParameterSpace_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67350 PyObject *resultobj = 0;
67357 PyObject * obj0 = 0 ;
67358 PyObject * obj1 = 0 ;
67360 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_verbose_set",&obj0,&obj1)) SWIG_fail;
67361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67362 if (!SWIG_IsOK(res1)) {
67363 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_verbose_set" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
67366 ecode2 = SWIG_AsVal_int(obj1, &val2);
67367 if (!SWIG_IsOK(ecode2)) {
67368 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_verbose_set" "', argument " "2"" of type '" "int""'");
67370 arg2 =
static_cast< int >(val2);
67371 if (arg1) (arg1)->verbose = arg2;
67372 resultobj = SWIG_Py_Void();
67379 SWIGINTERN PyObject *_wrap_ParameterSpace_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67380 PyObject *resultobj = 0;
67384 PyObject * obj0 = 0 ;
67387 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_verbose_get",&obj0)) SWIG_fail;
67388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67389 if (!SWIG_IsOK(res1)) {
67390 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_verbose_get" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
67393 result = (int) ((arg1)->verbose);
67394 resultobj = SWIG_From_int(static_cast< int >(result));
67401 SWIGINTERN PyObject *_wrap_ParameterSpace_n_experiments_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67402 PyObject *resultobj = 0;
67409 PyObject * obj0 = 0 ;
67410 PyObject * obj1 = 0 ;
67412 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_n_experiments_set",&obj0,&obj1)) SWIG_fail;
67413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67414 if (!SWIG_IsOK(res1)) {
67415 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_n_experiments_set" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
67418 ecode2 = SWIG_AsVal_int(obj1, &val2);
67419 if (!SWIG_IsOK(ecode2)) {
67420 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_n_experiments_set" "', argument " "2"" of type '" "int""'");
67422 arg2 =
static_cast< int >(val2);
67423 if (arg1) (arg1)->n_experiments = arg2;
67424 resultobj = SWIG_Py_Void();
67431 SWIGINTERN PyObject *_wrap_ParameterSpace_n_experiments_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67432 PyObject *resultobj = 0;
67436 PyObject * obj0 = 0 ;
67439 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_n_experiments_get",&obj0)) SWIG_fail;
67440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67441 if (!SWIG_IsOK(res1)) {
67442 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_n_experiments_get" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
67445 result = (int) ((arg1)->n_experiments);
67446 resultobj = SWIG_From_int(static_cast< int >(result));
67453 SWIGINTERN PyObject *_wrap_ParameterSpace_batchsize_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67454 PyObject *resultobj = 0;
67461 PyObject * obj0 = 0 ;
67462 PyObject * obj1 = 0 ;
67464 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_batchsize_set",&obj0,&obj1)) SWIG_fail;
67465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67466 if (!SWIG_IsOK(res1)) {
67467 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_batchsize_set" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
67470 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
67471 if (!SWIG_IsOK(ecode2)) {
67472 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_batchsize_set" "', argument " "2"" of type '" "size_t""'");
67474 arg2 =
static_cast< size_t >(val2);
67475 if (arg1) (arg1)->batchsize = arg2;
67476 resultobj = SWIG_Py_Void();
67483 SWIGINTERN PyObject *_wrap_ParameterSpace_batchsize_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67484 PyObject *resultobj = 0;
67488 PyObject * obj0 = 0 ;
67491 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_batchsize_get",&obj0)) SWIG_fail;
67492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67493 if (!SWIG_IsOK(res1)) {
67494 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_batchsize_get" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
67497 result = (size_t) ((arg1)->batchsize);
67498 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
67505 SWIGINTERN PyObject *_wrap_ParameterSpace_thread_over_batches_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67506 PyObject *resultobj = 0;
67513 PyObject * obj0 = 0 ;
67514 PyObject * obj1 = 0 ;
67516 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_thread_over_batches_set",&obj0,&obj1)) SWIG_fail;
67517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67518 if (!SWIG_IsOK(res1)) {
67519 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_thread_over_batches_set" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
67522 ecode2 = SWIG_AsVal_bool(obj1, &val2);
67523 if (!SWIG_IsOK(ecode2)) {
67524 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_thread_over_batches_set" "', argument " "2"" of type '" "bool""'");
67526 arg2 =
static_cast< bool >(val2);
67527 if (arg1) (arg1)->thread_over_batches = arg2;
67528 resultobj = SWIG_Py_Void();
67535 SWIGINTERN PyObject *_wrap_ParameterSpace_thread_over_batches_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67536 PyObject *resultobj = 0;
67540 PyObject * obj0 = 0 ;
67543 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_thread_over_batches_get",&obj0)) SWIG_fail;
67544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67545 if (!SWIG_IsOK(res1)) {
67546 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_thread_over_batches_get" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
67549 result = (bool) ((arg1)->thread_over_batches);
67550 resultobj = SWIG_From_bool(static_cast< bool >(result));
67557 SWIGINTERN PyObject *_wrap_ParameterSpace_min_test_duration_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67558 PyObject *resultobj = 0;
67565 PyObject * obj0 = 0 ;
67566 PyObject * obj1 = 0 ;
67568 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_min_test_duration_set",&obj0,&obj1)) SWIG_fail;
67569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67570 if (!SWIG_IsOK(res1)) {
67571 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_min_test_duration_set" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
67574 ecode2 = SWIG_AsVal_double(obj1, &val2);
67575 if (!SWIG_IsOK(ecode2)) {
67576 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_min_test_duration_set" "', argument " "2"" of type '" "double""'");
67578 arg2 =
static_cast< double >(val2);
67579 if (arg1) (arg1)->min_test_duration = arg2;
67580 resultobj = SWIG_Py_Void();
67587 SWIGINTERN PyObject *_wrap_ParameterSpace_min_test_duration_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67588 PyObject *resultobj = 0;
67592 PyObject * obj0 = 0 ;
67595 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_min_test_duration_get",&obj0)) SWIG_fail;
67596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67597 if (!SWIG_IsOK(res1)) {
67598 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_min_test_duration_get" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
67601 result = (double) ((arg1)->min_test_duration);
67602 resultobj = SWIG_From_double(static_cast< double >(result));
67609 SWIGINTERN PyObject *_wrap_new_ParameterSpace(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67610 PyObject *resultobj = 0;
67613 if (!PyArg_ParseTuple(args,(
char *)
":new_ParameterSpace")) SWIG_fail;
67615 Py_BEGIN_ALLOW_THREADS
67619 PyEval_RestoreThread(_save);
67620 PyErr_SetString(PyExc_RuntimeError, e.
what());
67623 Py_END_ALLOW_THREADS
67625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ParameterSpace, SWIG_POINTER_NEW | 0 );
67632 SWIGINTERN PyObject *_wrap_ParameterSpace_n_combinations(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67633 PyObject *resultobj = 0;
67637 PyObject * obj0 = 0 ;
67640 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_n_combinations",&obj0)) SWIG_fail;
67641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67642 if (!SWIG_IsOK(res1)) {
67643 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_n_combinations" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
67647 Py_BEGIN_ALLOW_THREADS
67651 PyEval_RestoreThread(_save);
67652 PyErr_SetString(PyExc_RuntimeError, e.
what());
67655 Py_END_ALLOW_THREADS
67657 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
67664 SWIGINTERN PyObject *_wrap_ParameterSpace_combination_ge(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67665 PyObject *resultobj = 0;
67675 PyObject * obj0 = 0 ;
67676 PyObject * obj1 = 0 ;
67677 PyObject * obj2 = 0 ;
67680 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ParameterSpace_combination_ge",&obj0,&obj1,&obj2)) SWIG_fail;
67681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67682 if (!SWIG_IsOK(res1)) {
67683 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_combination_ge" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
67686 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
67687 if (!SWIG_IsOK(ecode2)) {
67688 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_combination_ge" "', argument " "2"" of type '" "size_t""'");
67690 arg2 =
static_cast< size_t >(val2);
67691 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
67692 if (!SWIG_IsOK(ecode3)) {
67693 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ParameterSpace_combination_ge" "', argument " "3"" of type '" "size_t""'");
67695 arg3 =
static_cast< size_t >(val3);
67697 Py_BEGIN_ALLOW_THREADS
67701 PyEval_RestoreThread(_save);
67702 PyErr_SetString(PyExc_RuntimeError, e.
what());
67705 Py_END_ALLOW_THREADS
67707 resultobj = SWIG_From_bool(static_cast< bool >(result));
67714 SWIGINTERN PyObject *_wrap_ParameterSpace_combination_name(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67715 PyObject *resultobj = 0;
67722 PyObject * obj0 = 0 ;
67723 PyObject * obj1 = 0 ;
67724 std::string result;
67726 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_combination_name",&obj0,&obj1)) SWIG_fail;
67727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67728 if (!SWIG_IsOK(res1)) {
67729 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_combination_name" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
67732 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
67733 if (!SWIG_IsOK(ecode2)) {
67734 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_combination_name" "', argument " "2"" of type '" "size_t""'");
67736 arg2 =
static_cast< size_t >(val2);
67738 Py_BEGIN_ALLOW_THREADS
67742 PyEval_RestoreThread(_save);
67743 PyErr_SetString(PyExc_RuntimeError, e.
what());
67746 Py_END_ALLOW_THREADS
67748 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
67755 SWIGINTERN PyObject *_wrap_ParameterSpace_display(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67756 PyObject *resultobj = 0;
67760 PyObject * obj0 = 0 ;
67762 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_display",&obj0)) SWIG_fail;
67763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67764 if (!SWIG_IsOK(res1)) {
67765 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_display" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
67769 Py_BEGIN_ALLOW_THREADS
67773 PyEval_RestoreThread(_save);
67774 PyErr_SetString(PyExc_RuntimeError, e.
what());
67777 Py_END_ALLOW_THREADS
67779 resultobj = SWIG_Py_Void();
67786 SWIGINTERN PyObject *_wrap_ParameterSpace_add_range(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67787 PyObject *resultobj = 0;
67789 char *arg2 = (
char *) 0 ;
67795 PyObject * obj0 = 0 ;
67796 PyObject * obj1 = 0 ;
67799 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_add_range",&obj0,&obj1)) SWIG_fail;
67800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67801 if (!SWIG_IsOK(res1)) {
67802 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_add_range" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
67805 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
67806 if (!SWIG_IsOK(res2)) {
67807 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterSpace_add_range" "', argument " "2"" of type '" "char const *""'");
67809 arg2 =
reinterpret_cast< char *
>(buf2);
67811 Py_BEGIN_ALLOW_THREADS
67815 PyEval_RestoreThread(_save);
67816 PyErr_SetString(PyExc_RuntimeError, e.
what());
67819 Py_END_ALLOW_THREADS
67821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ParameterRange, 0 | 0 );
67822 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
67825 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
67830 SWIGINTERN PyObject *_wrap_ParameterSpace_initialize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67831 PyObject *resultobj = 0;
67838 PyObject * obj0 = 0 ;
67839 PyObject * obj1 = 0 ;
67841 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_initialize",&obj0,&obj1)) SWIG_fail;
67842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67843 if (!SWIG_IsOK(res1)) {
67844 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_initialize" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
67847 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
67848 if (!SWIG_IsOK(res2)) {
67849 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterSpace_initialize" "', argument " "2"" of type '" "faiss::Index const *""'");
67853 Py_BEGIN_ALLOW_THREADS
67857 PyEval_RestoreThread(_save);
67858 PyErr_SetString(PyExc_RuntimeError, e.
what());
67861 Py_END_ALLOW_THREADS
67863 resultobj = SWIG_Py_Void();
67870 SWIGINTERN PyObject *_wrap_ParameterSpace_set_index_parameters__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67871 PyObject *resultobj = 0;
67881 PyObject * obj0 = 0 ;
67882 PyObject * obj1 = 0 ;
67883 PyObject * obj2 = 0 ;
67885 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ParameterSpace_set_index_parameters",&obj0,&obj1,&obj2)) SWIG_fail;
67886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67887 if (!SWIG_IsOK(res1)) {
67888 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_set_index_parameters" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
67891 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
67892 if (!SWIG_IsOK(res2)) {
67893 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterSpace_set_index_parameters" "', argument " "2"" of type '" "faiss::Index *""'");
67896 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
67897 if (!SWIG_IsOK(ecode3)) {
67898 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ParameterSpace_set_index_parameters" "', argument " "3"" of type '" "size_t""'");
67900 arg3 =
static_cast< size_t >(val3);
67902 Py_BEGIN_ALLOW_THREADS
67906 PyEval_RestoreThread(_save);
67907 PyErr_SetString(PyExc_RuntimeError, e.
what());
67910 Py_END_ALLOW_THREADS
67912 resultobj = SWIG_Py_Void();
67919 SWIGINTERN PyObject *_wrap_ParameterSpace_set_index_parameters__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67920 PyObject *resultobj = 0;
67923 char *arg3 = (
char *) 0 ;
67931 PyObject * obj0 = 0 ;
67932 PyObject * obj1 = 0 ;
67933 PyObject * obj2 = 0 ;
67935 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ParameterSpace_set_index_parameters",&obj0,&obj1,&obj2)) SWIG_fail;
67936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
67937 if (!SWIG_IsOK(res1)) {
67938 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_set_index_parameters" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
67941 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
67942 if (!SWIG_IsOK(res2)) {
67943 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterSpace_set_index_parameters" "', argument " "2"" of type '" "faiss::Index *""'");
67946 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
67947 if (!SWIG_IsOK(res3)) {
67948 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ParameterSpace_set_index_parameters" "', argument " "3"" of type '" "char const *""'");
67950 arg3 =
reinterpret_cast< char *
>(buf3);
67952 Py_BEGIN_ALLOW_THREADS
67956 PyEval_RestoreThread(_save);
67957 PyErr_SetString(PyExc_RuntimeError, e.
what());
67960 Py_END_ALLOW_THREADS
67962 resultobj = SWIG_Py_Void();
67963 if (alloc3 == SWIG_NEWOBJ)
delete[] buf3;
67966 if (alloc3 == SWIG_NEWOBJ)
delete[] buf3;
67971 SWIGINTERN PyObject *_wrap_ParameterSpace_set_index_parameters(PyObject *
self, PyObject *args) {
67973 PyObject *argv[4] = {
67978 if (!PyTuple_Check(args)) SWIG_fail;
67979 argc = args ? PyObject_Length(args) : 0;
67980 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
67981 argv[ii] = PyTuple_GET_ITEM(args,ii);
67986 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ParameterSpace, 0);
67987 _v = SWIG_CheckState(res);
67990 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__Index, 0);
67991 _v = SWIG_CheckState(res);
67994 int res = SWIG_AsVal_size_t(argv[2], NULL);
67995 _v = SWIG_CheckState(res);
67998 return _wrap_ParameterSpace_set_index_parameters__SWIG_0(
self, args);
68006 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ParameterSpace, 0);
68007 _v = SWIG_CheckState(res);
68010 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__Index, 0);
68011 _v = SWIG_CheckState(res);
68013 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
68014 _v = SWIG_CheckState(res);
68016 return _wrap_ParameterSpace_set_index_parameters__SWIG_1(
self, args);
68023 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'ParameterSpace_set_index_parameters'.\n"
68024 " Possible C/C++ prototypes are:\n"
68025 " faiss::ParameterSpace::set_index_parameters(faiss::Index *,size_t) const\n"
68026 " faiss::ParameterSpace::set_index_parameters(faiss::Index *,char const *) const\n");
68031 SWIGINTERN PyObject *_wrap_ParameterSpace_set_index_parameter(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68032 PyObject *resultobj = 0;
68035 std::string *arg3 = 0 ;
68041 int res3 = SWIG_OLDOBJ ;
68044 PyObject * obj0 = 0 ;
68045 PyObject * obj1 = 0 ;
68046 PyObject * obj2 = 0 ;
68047 PyObject * obj3 = 0 ;
68049 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ParameterSpace_set_index_parameter",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
68050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
68051 if (!SWIG_IsOK(res1)) {
68052 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_set_index_parameter" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
68055 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
68056 if (!SWIG_IsOK(res2)) {
68057 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterSpace_set_index_parameter" "', argument " "2"" of type '" "faiss::Index *""'");
68061 std::string *ptr = (std::string *)0;
68062 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
68063 if (!SWIG_IsOK(res3)) {
68064 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ParameterSpace_set_index_parameter" "', argument " "3"" of type '" "std::string const &""'");
68067 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "ParameterSpace_set_index_parameter" "', argument " "3"" of type '" "std::string const &""'");
68071 ecode4 = SWIG_AsVal_double(obj3, &val4);
68072 if (!SWIG_IsOK(ecode4)) {
68073 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ParameterSpace_set_index_parameter" "', argument " "4"" of type '" "double""'");
68075 arg4 =
static_cast< double >(val4);
68077 Py_BEGIN_ALLOW_THREADS
68081 PyEval_RestoreThread(_save);
68082 PyErr_SetString(PyExc_RuntimeError, e.
what());
68085 Py_END_ALLOW_THREADS
68087 resultobj = SWIG_Py_Void();
68088 if (SWIG_IsNewObj(res3))
delete arg3;
68091 if (SWIG_IsNewObj(res3))
delete arg3;
68096 SWIGINTERN PyObject *_wrap_ParameterSpace_update_bounds(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68097 PyObject *resultobj = 0;
68101 double *arg4 = (
double *) 0 ;
68102 double *arg5 = (
double *) 0 ;
68113 PyObject * obj0 = 0 ;
68114 PyObject * obj1 = 0 ;
68115 PyObject * obj2 = 0 ;
68116 PyObject * obj3 = 0 ;
68117 PyObject * obj4 = 0 ;
68119 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:ParameterSpace_update_bounds",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
68120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
68121 if (!SWIG_IsOK(res1)) {
68122 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_update_bounds" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
68125 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
68126 if (!SWIG_IsOK(ecode2)) {
68127 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_update_bounds" "', argument " "2"" of type '" "size_t""'");
68129 arg2 =
static_cast< size_t >(val2);
68130 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__OperatingPoint, 0 | 0);
68131 if (!SWIG_IsOK(res3)) {
68132 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ParameterSpace_update_bounds" "', argument " "3"" of type '" "faiss::OperatingPoint const &""'");
68135 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "ParameterSpace_update_bounds" "', argument " "3"" of type '" "faiss::OperatingPoint const &""'");
68138 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_double, 0 | 0 );
68139 if (!SWIG_IsOK(res4)) {
68140 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ParameterSpace_update_bounds" "', argument " "4"" of type '" "double *""'");
68142 arg4 =
reinterpret_cast< double *
>(argp4);
68143 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_double, 0 | 0 );
68144 if (!SWIG_IsOK(res5)) {
68145 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "ParameterSpace_update_bounds" "', argument " "5"" of type '" "double *""'");
68147 arg5 =
reinterpret_cast< double *
>(argp5);
68149 Py_BEGIN_ALLOW_THREADS
68153 PyEval_RestoreThread(_save);
68154 PyErr_SetString(PyExc_RuntimeError, e.
what());
68157 Py_END_ALLOW_THREADS
68159 resultobj = SWIG_Py_Void();
68166 SWIGINTERN PyObject *_wrap_ParameterSpace_explore(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68167 PyObject *resultobj = 0;
68171 float *arg4 = (
float *) 0 ;
68186 PyObject * obj0 = 0 ;
68187 PyObject * obj1 = 0 ;
68188 PyObject * obj2 = 0 ;
68189 PyObject * obj3 = 0 ;
68190 PyObject * obj4 = 0 ;
68191 PyObject * obj5 = 0 ;
68193 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:ParameterSpace_explore",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
68194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
68195 if (!SWIG_IsOK(res1)) {
68196 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_explore" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
68199 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
68200 if (!SWIG_IsOK(res2)) {
68201 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterSpace_explore" "', argument " "2"" of type '" "faiss::Index *""'");
68204 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
68205 if (!SWIG_IsOK(ecode3)) {
68206 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ParameterSpace_explore" "', argument " "3"" of type '" "size_t""'");
68208 arg3 =
static_cast< size_t >(val3);
68209 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
68210 if (!SWIG_IsOK(res4)) {
68211 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ParameterSpace_explore" "', argument " "4"" of type '" "float const *""'");
68213 arg4 =
reinterpret_cast< float *
>(argp4);
68214 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0);
68215 if (!SWIG_IsOK(res5)) {
68216 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "ParameterSpace_explore" "', argument " "5"" of type '" "faiss::AutoTuneCriterion const &""'");
68219 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "ParameterSpace_explore" "', argument " "5"" of type '" "faiss::AutoTuneCriterion const &""'");
68222 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
68223 if (!SWIG_IsOK(res6)) {
68224 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ParameterSpace_explore" "', argument " "6"" of type '" "faiss::OperatingPoints *""'");
68228 Py_BEGIN_ALLOW_THREADS
68232 PyEval_RestoreThread(_save);
68233 PyErr_SetString(PyExc_RuntimeError, e.
what());
68236 Py_END_ALLOW_THREADS
68238 resultobj = SWIG_Py_Void();
68245 SWIGINTERN PyObject *_wrap_delete_ParameterSpace(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68246 PyObject *resultobj = 0;
68250 PyObject * obj0 = 0 ;
68252 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ParameterSpace",&obj0)) SWIG_fail;
68253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, SWIG_POINTER_DISOWN | 0 );
68254 if (!SWIG_IsOK(res1)) {
68255 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ParameterSpace" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
68259 Py_BEGIN_ALLOW_THREADS
68263 PyEval_RestoreThread(_save);
68264 PyErr_SetString(PyExc_RuntimeError, e.
what());
68267 Py_END_ALLOW_THREADS
68269 resultobj = SWIG_Py_Void();
68276 SWIGINTERN PyObject *ParameterSpace_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68278 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
68279 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ParameterSpace, SWIG_NewClientData(obj));
68280 return SWIG_Py_Void();
68283 SWIGINTERN PyObject *_wrap_index_factory__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68284 PyObject *resultobj = 0;
68286 char *arg2 = (
char *) 0 ;
68295 PyObject * obj0 = 0 ;
68296 PyObject * obj1 = 0 ;
68297 PyObject * obj2 = 0 ;
68300 if (!PyArg_ParseTuple(args,(
char *)
"OOO:index_factory",&obj0,&obj1,&obj2)) SWIG_fail;
68301 ecode1 = SWIG_AsVal_int(obj0, &val1);
68302 if (!SWIG_IsOK(ecode1)) {
68303 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "index_factory" "', argument " "1"" of type '" "int""'");
68305 arg1 =
static_cast< int >(val1);
68306 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
68307 if (!SWIG_IsOK(res2)) {
68308 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "index_factory" "', argument " "2"" of type '" "char const *""'");
68310 arg2 =
reinterpret_cast< char *
>(buf2);
68311 ecode3 = SWIG_AsVal_int(obj2, &val3);
68312 if (!SWIG_IsOK(ecode3)) {
68313 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "index_factory" "', argument " "3"" of type '" "faiss::MetricType""'");
68317 Py_BEGIN_ALLOW_THREADS
68321 PyEval_RestoreThread(_save);
68322 PyErr_SetString(PyExc_RuntimeError, e.
what());
68325 Py_END_ALLOW_THREADS
68329 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
68330 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
68334 if (dynamic_cast<faiss::IndexShards *> (result)) {
68335 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
68339 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
68340 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
68344 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
68345 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
68349 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
68350 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
68354 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
68355 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
68359 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
68360 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
68364 if (dynamic_cast<faiss::IndexIVF *> (result)) {
68365 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
68369 if (dynamic_cast<faiss::IndexFlat *> (result)) {
68370 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
68374 if (dynamic_cast<faiss::IndexPQ *> (result)) {
68375 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
68379 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
68380 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
68384 if (dynamic_cast<faiss::IndexLSH *> (result)) {
68385 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
68389 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
68390 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
68394 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
68395 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
68399 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
68400 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
68404 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
68405 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
68409 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
68410 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
68414 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
68415 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
68419 if (dynamic_cast<faiss::Index2Layer *> (result)) {
68420 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
68431 if (dynamic_cast<faiss::Index *> (result)) {
68432 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
68435 if (result == NULL)
68437 resultobj = SWIG_Py_Void();
68447 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
68450 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
68455 SWIGINTERN PyObject *_wrap_index_factory__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68456 PyObject *resultobj = 0;
68458 char *arg2 = (
char *) 0 ;
68464 PyObject * obj0 = 0 ;
68465 PyObject * obj1 = 0 ;
68468 if (!PyArg_ParseTuple(args,(
char *)
"OO:index_factory",&obj0,&obj1)) SWIG_fail;
68469 ecode1 = SWIG_AsVal_int(obj0, &val1);
68470 if (!SWIG_IsOK(ecode1)) {
68471 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "index_factory" "', argument " "1"" of type '" "int""'");
68473 arg1 =
static_cast< int >(val1);
68474 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
68475 if (!SWIG_IsOK(res2)) {
68476 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "index_factory" "', argument " "2"" of type '" "char const *""'");
68478 arg2 =
reinterpret_cast< char *
>(buf2);
68480 Py_BEGIN_ALLOW_THREADS
68484 PyEval_RestoreThread(_save);
68485 PyErr_SetString(PyExc_RuntimeError, e.
what());
68488 Py_END_ALLOW_THREADS
68492 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
68493 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
68497 if (dynamic_cast<faiss::IndexShards *> (result)) {
68498 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
68502 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
68503 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
68507 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
68508 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
68512 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
68513 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
68517 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
68518 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
68522 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
68523 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
68527 if (dynamic_cast<faiss::IndexIVF *> (result)) {
68528 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
68532 if (dynamic_cast<faiss::IndexFlat *> (result)) {
68533 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
68537 if (dynamic_cast<faiss::IndexPQ *> (result)) {
68538 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
68542 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
68543 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
68547 if (dynamic_cast<faiss::IndexLSH *> (result)) {
68548 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
68552 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
68553 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
68557 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
68558 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
68562 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
68563 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
68567 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
68568 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
68572 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
68573 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
68577 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
68578 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
68582 if (dynamic_cast<faiss::Index2Layer *> (result)) {
68583 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
68594 if (dynamic_cast<faiss::Index *> (result)) {
68595 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
68598 if (result == NULL)
68600 resultobj = SWIG_Py_Void();
68610 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
68613 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
68618 SWIGINTERN PyObject *_wrap_index_factory(PyObject *
self, PyObject *args) {
68620 PyObject *argv[4] = {
68625 if (!PyTuple_Check(args)) SWIG_fail;
68626 argc = args ? PyObject_Length(args) : 0;
68627 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
68628 argv[ii] = PyTuple_GET_ITEM(args,ii);
68633 int res = SWIG_AsVal_int(argv[0], NULL);
68634 _v = SWIG_CheckState(res);
68637 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
68638 _v = SWIG_CheckState(res);
68640 return _wrap_index_factory__SWIG_1(
self, args);
68647 int res = SWIG_AsVal_int(argv[0], NULL);
68648 _v = SWIG_CheckState(res);
68651 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
68652 _v = SWIG_CheckState(res);
68655 int res = SWIG_AsVal_int(argv[2], NULL);
68656 _v = SWIG_CheckState(res);
68659 return _wrap_index_factory__SWIG_0(
self, args);
68666 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'index_factory'.\n"
68667 " Possible C/C++ prototypes are:\n"
68668 " faiss::index_factory(int,char const *,faiss::MetricType)\n"
68669 " faiss::index_factory(int,char const *)\n");
68674 SWIGINTERN PyObject *_wrap_index_binary_factory(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68675 PyObject *resultobj = 0;
68677 char *arg2 = (
char *) 0 ;
68683 PyObject * obj0 = 0 ;
68684 PyObject * obj1 = 0 ;
68687 if (!PyArg_ParseTuple(args,(
char *)
"OO:index_binary_factory",&obj0,&obj1)) SWIG_fail;
68688 ecode1 = SWIG_AsVal_int(obj0, &val1);
68689 if (!SWIG_IsOK(ecode1)) {
68690 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "index_binary_factory" "', argument " "1"" of type '" "int""'");
68692 arg1 =
static_cast< int >(val1);
68693 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
68694 if (!SWIG_IsOK(res2)) {
68695 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "index_binary_factory" "', argument " "2"" of type '" "char const *""'");
68697 arg2 =
reinterpret_cast< char *
>(buf2);
68699 Py_BEGIN_ALLOW_THREADS
68701 result = (
faiss::IndexBinary *)faiss::index_binary_factory(arg1,(
char const *)arg2);
68703 PyEval_RestoreThread(_save);
68704 PyErr_SetString(PyExc_RuntimeError, e.
what());
68707 Py_END_ALLOW_THREADS
68711 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
68712 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,SWIG_POINTER_OWN);
68716 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
68717 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,SWIG_POINTER_OWN);
68721 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
68722 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,SWIG_POINTER_OWN);
68726 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
68727 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,SWIG_POINTER_OWN);
68735 if (dynamic_cast<faiss::IndexBinary *> (result)) {
68736 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,SWIG_POINTER_OWN);
68739 if (result == NULL)
68741 resultobj = SWIG_Py_Void();
68751 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
68754 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
68759 SWIGINTERN PyObject *_wrap_swig_ptr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68760 PyObject *resultobj = 0;
68761 PyObject *arg1 = (PyObject *) 0 ;
68762 PyObject * obj0 = 0 ;
68763 PyObject *result = 0 ;
68765 if (!PyArg_ParseTuple(args,(
char *)
"O:swig_ptr",&obj0)) SWIG_fail;
68767 result = (PyObject *)swig_ptr(arg1);
68768 resultobj = result;
68775 SWIGINTERN PyObject *_wrap_rev_swig_ptr__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68776 PyObject *resultobj = 0;
68777 float *arg1 = (
float *) 0 ;
68783 PyObject * obj0 = 0 ;
68784 PyObject * obj1 = 0 ;
68785 PyObject *result = 0 ;
68787 if (!PyArg_ParseTuple(args,(
char *)
"OO:rev_swig_ptr",&obj0,&obj1)) SWIG_fail;
68788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
68789 if (!SWIG_IsOK(res1)) {
68790 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "rev_swig_ptr" "', argument " "1"" of type '" "float *""'");
68792 arg1 =
reinterpret_cast< float *
>(argp1);
68793 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
68794 if (!SWIG_IsOK(ecode2)) {
68795 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "rev_swig_ptr" "', argument " "2"" of type '" "size_t""'");
68797 arg2 =
static_cast< size_t >(val2);
68798 result = (PyObject *)rev_swig_ptr(arg1,arg2);
68799 resultobj = result;
68806 SWIGINTERN PyObject *_wrap_rev_swig_ptr__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68807 PyObject *resultobj = 0;
68808 int *arg1 = (
int *) 0 ;
68814 PyObject * obj0 = 0 ;
68815 PyObject * obj1 = 0 ;
68816 PyObject *result = 0 ;
68818 if (!PyArg_ParseTuple(args,(
char *)
"OO:rev_swig_ptr",&obj0,&obj1)) SWIG_fail;
68819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 | 0 );
68820 if (!SWIG_IsOK(res1)) {
68821 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "rev_swig_ptr" "', argument " "1"" of type '" "int *""'");
68823 arg1 =
reinterpret_cast< int *
>(argp1);
68824 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
68825 if (!SWIG_IsOK(ecode2)) {
68826 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "rev_swig_ptr" "', argument " "2"" of type '" "size_t""'");
68828 arg2 =
static_cast< size_t >(val2);
68829 result = (PyObject *)rev_swig_ptr(arg1,arg2);
68830 resultobj = result;
68837 SWIGINTERN PyObject *_wrap_rev_swig_ptr__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68838 PyObject *resultobj = 0;
68839 unsigned char *arg1 = (
unsigned char *) 0 ;
68845 PyObject * obj0 = 0 ;
68846 PyObject * obj1 = 0 ;
68847 PyObject *result = 0 ;
68849 if (!PyArg_ParseTuple(args,(
char *)
"OO:rev_swig_ptr",&obj0,&obj1)) SWIG_fail;
68850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
68851 if (!SWIG_IsOK(res1)) {
68852 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "rev_swig_ptr" "', argument " "1"" of type '" "unsigned char *""'");
68854 arg1 =
reinterpret_cast< unsigned char *
>(argp1);
68855 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
68856 if (!SWIG_IsOK(ecode2)) {
68857 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "rev_swig_ptr" "', argument " "2"" of type '" "size_t""'");
68859 arg2 =
static_cast< size_t >(val2);
68860 result = (PyObject *)rev_swig_ptr(arg1,arg2);
68861 resultobj = result;
68868 SWIGINTERN PyObject *_wrap_rev_swig_ptr__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68869 PyObject *resultobj = 0;
68870 unsigned long *arg1 = (
unsigned long *) 0 ;
68876 PyObject * obj0 = 0 ;
68877 PyObject * obj1 = 0 ;
68878 PyObject *result = 0 ;
68880 if (!PyArg_ParseTuple(args,(
char *)
"OO:rev_swig_ptr",&obj0,&obj1)) SWIG_fail;
68881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_long, 0 | 0 );
68882 if (!SWIG_IsOK(res1)) {
68883 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "rev_swig_ptr" "', argument " "1"" of type '" "unsigned long *""'");
68885 arg1 =
reinterpret_cast< unsigned long *
>(argp1);
68886 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
68887 if (!SWIG_IsOK(ecode2)) {
68888 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "rev_swig_ptr" "', argument " "2"" of type '" "size_t""'");
68890 arg2 =
static_cast< size_t >(val2);
68891 result = (PyObject *)rev_swig_ptr(arg1,arg2);
68892 resultobj = result;
68899 SWIGINTERN PyObject *_wrap_rev_swig_ptr__SWIG_4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68900 PyObject *resultobj = 0;
68901 long *arg1 = (
long *) 0 ;
68907 PyObject * obj0 = 0 ;
68908 PyObject * obj1 = 0 ;
68909 PyObject *result = 0 ;
68911 if (!PyArg_ParseTuple(args,(
char *)
"OO:rev_swig_ptr",&obj0,&obj1)) SWIG_fail;
68912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_long, 0 | 0 );
68913 if (!SWIG_IsOK(res1)) {
68914 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "rev_swig_ptr" "', argument " "1"" of type '" "long *""'");
68916 arg1 =
reinterpret_cast< long *
>(argp1);
68917 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
68918 if (!SWIG_IsOK(ecode2)) {
68919 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "rev_swig_ptr" "', argument " "2"" of type '" "size_t""'");
68921 arg2 =
static_cast< size_t >(val2);
68922 result = (PyObject *)rev_swig_ptr(arg1,arg2);
68923 resultobj = result;
68930 SWIGINTERN PyObject *_wrap_rev_swig_ptr(PyObject *
self, PyObject *args) {
68932 PyObject *argv[3] = {
68937 if (!PyTuple_Check(args)) SWIG_fail;
68938 argc = args ? PyObject_Length(args) : 0;
68939 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
68940 argv[ii] = PyTuple_GET_ITEM(args,ii);
68945 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_float, 0);
68946 _v = SWIG_CheckState(res);
68949 int res = SWIG_AsVal_size_t(argv[1], NULL);
68950 _v = SWIG_CheckState(res);
68953 return _wrap_rev_swig_ptr__SWIG_0(
self, args);
68960 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_int, 0);
68961 _v = SWIG_CheckState(res);
68964 int res = SWIG_AsVal_size_t(argv[1], NULL);
68965 _v = SWIG_CheckState(res);
68968 return _wrap_rev_swig_ptr__SWIG_1(
self, args);
68975 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
68976 _v = SWIG_CheckState(res);
68979 int res = SWIG_AsVal_size_t(argv[1], NULL);
68980 _v = SWIG_CheckState(res);
68983 return _wrap_rev_swig_ptr__SWIG_2(
self, args);
68990 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_long, 0);
68991 _v = SWIG_CheckState(res);
68994 int res = SWIG_AsVal_size_t(argv[1], NULL);
68995 _v = SWIG_CheckState(res);
68998 return _wrap_rev_swig_ptr__SWIG_3(
self, args);
69005 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_long, 0);
69006 _v = SWIG_CheckState(res);
69009 int res = SWIG_AsVal_size_t(argv[1], NULL);
69010 _v = SWIG_CheckState(res);
69013 return _wrap_rev_swig_ptr__SWIG_4(
self, args);
69019 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'rev_swig_ptr'.\n"
69020 " Possible C/C++ prototypes are:\n"
69021 " rev_swig_ptr(float *,size_t)\n"
69022 " rev_swig_ptr(int *,size_t)\n"
69023 " rev_swig_ptr(unsigned char *,size_t)\n"
69024 " rev_swig_ptr(unsigned long *,size_t)\n"
69025 " rev_swig_ptr(long *,size_t)\n");
69030 SWIGINTERN PyObject *_wrap_float_minheap_array_t_nh_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69031 PyObject *resultobj = 0;
69038 PyObject * obj0 = 0 ;
69039 PyObject * obj1 = 0 ;
69041 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_minheap_array_t_nh_set",&obj0,&obj1)) SWIG_fail;
69042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69043 if (!SWIG_IsOK(res1)) {
69044 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_nh_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69047 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
69048 if (!SWIG_IsOK(ecode2)) {
69049 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_nh_set" "', argument " "2"" of type '" "size_t""'");
69051 arg2 =
static_cast< size_t >(val2);
69052 if (arg1) (arg1)->nh = arg2;
69053 resultobj = SWIG_Py_Void();
69060 SWIGINTERN PyObject *_wrap_float_minheap_array_t_nh_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69061 PyObject *resultobj = 0;
69065 PyObject * obj0 = 0 ;
69068 if (!PyArg_ParseTuple(args,(
char *)
"O:float_minheap_array_t_nh_get",&obj0)) SWIG_fail;
69069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69070 if (!SWIG_IsOK(res1)) {
69071 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_nh_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69074 result = (size_t) ((arg1)->nh);
69075 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
69082 SWIGINTERN PyObject *_wrap_float_minheap_array_t_k_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69083 PyObject *resultobj = 0;
69090 PyObject * obj0 = 0 ;
69091 PyObject * obj1 = 0 ;
69093 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_minheap_array_t_k_set",&obj0,&obj1)) SWIG_fail;
69094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69095 if (!SWIG_IsOK(res1)) {
69096 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_k_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69099 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
69100 if (!SWIG_IsOK(ecode2)) {
69101 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_k_set" "', argument " "2"" of type '" "size_t""'");
69103 arg2 =
static_cast< size_t >(val2);
69104 if (arg1) (arg1)->k = arg2;
69105 resultobj = SWIG_Py_Void();
69112 SWIGINTERN PyObject *_wrap_float_minheap_array_t_k_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69113 PyObject *resultobj = 0;
69117 PyObject * obj0 = 0 ;
69120 if (!PyArg_ParseTuple(args,(
char *)
"O:float_minheap_array_t_k_get",&obj0)) SWIG_fail;
69121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69122 if (!SWIG_IsOK(res1)) {
69123 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_k_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69126 result = (size_t) ((arg1)->k);
69127 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
69134 SWIGINTERN PyObject *_wrap_float_minheap_array_t_ids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69135 PyObject *resultobj = 0;
69142 PyObject * obj0 = 0 ;
69143 PyObject * obj1 = 0 ;
69145 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_minheap_array_t_ids_set",&obj0,&obj1)) SWIG_fail;
69146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69147 if (!SWIG_IsOK(res1)) {
69148 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_ids_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69151 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, SWIG_POINTER_DISOWN | 0 );
69152 if (!SWIG_IsOK(res2)) {
69153 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "float_minheap_array_t_ids_set" "', argument " "2"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::TI *""'");
69156 if (arg1) (arg1)->ids = arg2;
69157 resultobj = SWIG_Py_Void();
69164 SWIGINTERN PyObject *_wrap_float_minheap_array_t_ids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69165 PyObject *resultobj = 0;
69169 PyObject * obj0 = 0 ;
69172 if (!PyArg_ParseTuple(args,(
char *)
"O:float_minheap_array_t_ids_get",&obj0)) SWIG_fail;
69173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69174 if (!SWIG_IsOK(res1)) {
69175 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_ids_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
69186 SWIGINTERN PyObject *_wrap_float_minheap_array_t_val_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69187 PyObject *resultobj = 0;
69194 PyObject * obj0 = 0 ;
69195 PyObject * obj1 = 0 ;
69197 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_minheap_array_t_val_set",&obj0,&obj1)) SWIG_fail;
69198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69199 if (!SWIG_IsOK(res1)) {
69200 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_val_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69203 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
69204 if (!SWIG_IsOK(res2)) {
69205 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "float_minheap_array_t_val_set" "', argument " "2"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::T *""'");
69208 if (arg1) (arg1)->val = arg2;
69209 resultobj = SWIG_Py_Void();
69216 SWIGINTERN PyObject *_wrap_float_minheap_array_t_val_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69217 PyObject *resultobj = 0;
69221 PyObject * obj0 = 0 ;
69224 if (!PyArg_ParseTuple(args,(
char *)
"O:float_minheap_array_t_val_get",&obj0)) SWIG_fail;
69225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69226 if (!SWIG_IsOK(res1)) {
69227 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_val_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
69238 SWIGINTERN PyObject *_wrap_float_minheap_array_t_get_val(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69239 PyObject *resultobj = 0;
69246 PyObject * obj0 = 0 ;
69247 PyObject * obj1 = 0 ;
69250 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_minheap_array_t_get_val",&obj0,&obj1)) SWIG_fail;
69251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69252 if (!SWIG_IsOK(res1)) {
69253 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_get_val" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69256 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
69257 if (!SWIG_IsOK(ecode2)) {
69258 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_get_val" "', argument " "2"" of type '" "size_t""'");
69260 arg2 =
static_cast< size_t >(val2);
69262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
69269 SWIGINTERN PyObject *_wrap_float_minheap_array_t_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69270 PyObject *resultobj = 0;
69277 PyObject * obj0 = 0 ;
69278 PyObject * obj1 = 0 ;
69281 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_minheap_array_t_get_ids",&obj0,&obj1)) SWIG_fail;
69282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69283 if (!SWIG_IsOK(res1)) {
69284 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_get_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69287 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
69288 if (!SWIG_IsOK(ecode2)) {
69289 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_get_ids" "', argument " "2"" of type '" "size_t""'");
69291 arg2 =
static_cast< size_t >(val2);
69293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
69300 SWIGINTERN PyObject *_wrap_float_minheap_array_t_heapify(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69301 PyObject *resultobj = 0;
69305 PyObject * obj0 = 0 ;
69307 if (!PyArg_ParseTuple(args,(
char *)
"O:float_minheap_array_t_heapify",&obj0)) SWIG_fail;
69308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69309 if (!SWIG_IsOK(res1)) {
69310 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_heapify" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69314 resultobj = SWIG_Py_Void();
69321 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69322 PyObject *resultobj = 0;
69341 PyObject * obj0 = 0 ;
69342 PyObject * obj1 = 0 ;
69343 PyObject * obj2 = 0 ;
69344 PyObject * obj3 = 0 ;
69345 PyObject * obj4 = 0 ;
69346 PyObject * obj5 = 0 ;
69348 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:float_minheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
69349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69350 if (!SWIG_IsOK(res1)) {
69351 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69354 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
69355 if (!SWIG_IsOK(ecode2)) {
69356 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
69358 arg2 =
static_cast< size_t >(val2);
69359 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
69360 if (!SWIG_IsOK(res3)) {
69361 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_minheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::T const *""'");
69364 ecode4 = SWIG_AsVal_long(obj3, &val4);
69365 if (!SWIG_IsOK(ecode4)) {
69366 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "float_minheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::TI""'");
69369 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
69370 if (!SWIG_IsOK(ecode5)) {
69371 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_minheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
69373 arg5 =
static_cast< size_t >(val5);
69374 ecode6 = SWIG_AsVal_long(obj5, &val6);
69375 if (!SWIG_IsOK(ecode6)) {
69376 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "float_minheap_array_t_addn" "', argument " "6"" of type '" "long""'");
69378 arg6 =
static_cast< long >(val6);
69380 resultobj = SWIG_Py_Void();
69387 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69388 PyObject *resultobj = 0;
69404 PyObject * obj0 = 0 ;
69405 PyObject * obj1 = 0 ;
69406 PyObject * obj2 = 0 ;
69407 PyObject * obj3 = 0 ;
69408 PyObject * obj4 = 0 ;
69410 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:float_minheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
69411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69412 if (!SWIG_IsOK(res1)) {
69413 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69416 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
69417 if (!SWIG_IsOK(ecode2)) {
69418 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
69420 arg2 =
static_cast< size_t >(val2);
69421 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
69422 if (!SWIG_IsOK(res3)) {
69423 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_minheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::T const *""'");
69426 ecode4 = SWIG_AsVal_long(obj3, &val4);
69427 if (!SWIG_IsOK(ecode4)) {
69428 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "float_minheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::TI""'");
69431 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
69432 if (!SWIG_IsOK(ecode5)) {
69433 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_minheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
69435 arg5 =
static_cast< size_t >(val5);
69437 resultobj = SWIG_Py_Void();
69444 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69445 PyObject *resultobj = 0;
69458 PyObject * obj0 = 0 ;
69459 PyObject * obj1 = 0 ;
69460 PyObject * obj2 = 0 ;
69461 PyObject * obj3 = 0 ;
69463 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:float_minheap_array_t_addn",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
69464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69465 if (!SWIG_IsOK(res1)) {
69466 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69469 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
69470 if (!SWIG_IsOK(ecode2)) {
69471 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
69473 arg2 =
static_cast< size_t >(val2);
69474 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
69475 if (!SWIG_IsOK(res3)) {
69476 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_minheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::T const *""'");
69479 ecode4 = SWIG_AsVal_long(obj3, &val4);
69480 if (!SWIG_IsOK(ecode4)) {
69481 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "float_minheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::TI""'");
69485 resultobj = SWIG_Py_Void();
69492 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
69493 PyObject *resultobj = 0;
69503 PyObject * obj0 = 0 ;
69504 PyObject * obj1 = 0 ;
69505 PyObject * obj2 = 0 ;
69507 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_minheap_array_t_addn",&obj0,&obj1,&obj2)) SWIG_fail;
69508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69509 if (!SWIG_IsOK(res1)) {
69510 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69513 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
69514 if (!SWIG_IsOK(ecode2)) {
69515 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
69517 arg2 =
static_cast< size_t >(val2);
69518 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
69519 if (!SWIG_IsOK(res3)) {
69520 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_minheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::T const *""'");
69524 resultobj = SWIG_Py_Void();
69531 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn(PyObject *self, PyObject *args) {
69533 PyObject *argv[7] = {
69538 if (!PyTuple_Check(args)) SWIG_fail;
69539 argc = args ? PyObject_Length(args) : 0;
69540 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
69541 argv[ii] = PyTuple_GET_ITEM(args,ii);
69546 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
69547 _v = SWIG_CheckState(res);
69550 int res = SWIG_AsVal_size_t(argv[1], NULL);
69551 _v = SWIG_CheckState(res);
69555 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
69556 _v = SWIG_CheckState(res);
69558 return _wrap_float_minheap_array_t_addn__SWIG_3(
self, args);
69566 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
69567 _v = SWIG_CheckState(res);
69570 int res = SWIG_AsVal_size_t(argv[1], NULL);
69571 _v = SWIG_CheckState(res);
69575 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
69576 _v = SWIG_CheckState(res);
69579 int res = SWIG_AsVal_long(argv[3], NULL);
69580 _v = SWIG_CheckState(res);
69583 return _wrap_float_minheap_array_t_addn__SWIG_2(
self, args);
69592 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
69593 _v = SWIG_CheckState(res);
69596 int res = SWIG_AsVal_size_t(argv[1], NULL);
69597 _v = SWIG_CheckState(res);
69601 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
69602 _v = SWIG_CheckState(res);
69605 int res = SWIG_AsVal_long(argv[3], NULL);
69606 _v = SWIG_CheckState(res);
69610 int res = SWIG_AsVal_size_t(argv[4], NULL);
69611 _v = SWIG_CheckState(res);
69614 return _wrap_float_minheap_array_t_addn__SWIG_1(
self, args);
69624 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
69625 _v = SWIG_CheckState(res);
69628 int res = SWIG_AsVal_size_t(argv[1], NULL);
69629 _v = SWIG_CheckState(res);
69633 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
69634 _v = SWIG_CheckState(res);
69637 int res = SWIG_AsVal_long(argv[3], NULL);
69638 _v = SWIG_CheckState(res);
69642 int res = SWIG_AsVal_size_t(argv[4], NULL);
69643 _v = SWIG_CheckState(res);
69647 int res = SWIG_AsVal_long(argv[5], NULL);
69648 _v = SWIG_CheckState(res);
69651 return _wrap_float_minheap_array_t_addn__SWIG_0(
self, args);
69661 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'float_minheap_array_t_addn'.\n"
69662 " Possible C/C++ prototypes are:\n"
69663 " faiss::HeapArray< faiss::CMin< float,long > >::addn(size_t,faiss::HeapArray< faiss::CMin< float,long > >::T const *,faiss::HeapArray< faiss::CMin< float,long > >::TI,size_t,long)\n"
69664 " faiss::HeapArray< faiss::CMin< float,long > >::addn(size_t,faiss::HeapArray< faiss::CMin< float,long > >::T const *,faiss::HeapArray< faiss::CMin< float,long > >::TI,size_t)\n"
69665 " faiss::HeapArray< faiss::CMin< float,long > >::addn(size_t,faiss::HeapArray< faiss::CMin< float,long > >::T const *,faiss::HeapArray< faiss::CMin< float,long > >::TI)\n"
69666 " faiss::HeapArray< faiss::CMin< float,long > >::addn(size_t,faiss::HeapArray< faiss::CMin< float,long > >::T const *)\n");
69671 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn_with_ids__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69672 PyObject *resultobj = 0;
69694 PyObject * obj0 = 0 ;
69695 PyObject * obj1 = 0 ;
69696 PyObject * obj2 = 0 ;
69697 PyObject * obj3 = 0 ;
69698 PyObject * obj4 = 0 ;
69699 PyObject * obj5 = 0 ;
69700 PyObject * obj6 = 0 ;
69702 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:float_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
69703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69704 if (!SWIG_IsOK(res1)) {
69705 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69708 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
69709 if (!SWIG_IsOK(ecode2)) {
69710 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
69712 arg2 =
static_cast< size_t >(val2);
69713 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
69714 if (!SWIG_IsOK(res3)) {
69715 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::T const *""'");
69718 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
69719 if (!SWIG_IsOK(res4)) {
69720 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::TI const *""'");
69723 ecode5 = SWIG_AsVal_long(obj4, &val5);
69724 if (!SWIG_IsOK(ecode5)) {
69725 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
69727 arg5 =
static_cast< long >(val5);
69728 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
69729 if (!SWIG_IsOK(ecode6)) {
69730 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
69732 arg6 =
static_cast< size_t >(val6);
69733 ecode7 = SWIG_AsVal_long(obj6, &val7);
69734 if (!SWIG_IsOK(ecode7)) {
69735 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "7"" of type '" "long""'");
69737 arg7 =
static_cast< long >(val7);
69739 resultobj = SWIG_Py_Void();
69746 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn_with_ids__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69747 PyObject *resultobj = 0;
69766 PyObject * obj0 = 0 ;
69767 PyObject * obj1 = 0 ;
69768 PyObject * obj2 = 0 ;
69769 PyObject * obj3 = 0 ;
69770 PyObject * obj4 = 0 ;
69771 PyObject * obj5 = 0 ;
69773 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:float_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
69774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69775 if (!SWIG_IsOK(res1)) {
69776 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69779 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
69780 if (!SWIG_IsOK(ecode2)) {
69781 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
69783 arg2 =
static_cast< size_t >(val2);
69784 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
69785 if (!SWIG_IsOK(res3)) {
69786 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::T const *""'");
69789 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
69790 if (!SWIG_IsOK(res4)) {
69791 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::TI const *""'");
69794 ecode5 = SWIG_AsVal_long(obj4, &val5);
69795 if (!SWIG_IsOK(ecode5)) {
69796 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
69798 arg5 =
static_cast< long >(val5);
69799 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
69800 if (!SWIG_IsOK(ecode6)) {
69801 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
69803 arg6 =
static_cast< size_t >(val6);
69805 resultobj = SWIG_Py_Void();
69812 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn_with_ids__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69813 PyObject *resultobj = 0;
69829 PyObject * obj0 = 0 ;
69830 PyObject * obj1 = 0 ;
69831 PyObject * obj2 = 0 ;
69832 PyObject * obj3 = 0 ;
69833 PyObject * obj4 = 0 ;
69835 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:float_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
69836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69837 if (!SWIG_IsOK(res1)) {
69838 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69841 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
69842 if (!SWIG_IsOK(ecode2)) {
69843 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
69845 arg2 =
static_cast< size_t >(val2);
69846 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
69847 if (!SWIG_IsOK(res3)) {
69848 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::T const *""'");
69851 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
69852 if (!SWIG_IsOK(res4)) {
69853 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::TI const *""'");
69856 ecode5 = SWIG_AsVal_long(obj4, &val5);
69857 if (!SWIG_IsOK(ecode5)) {
69858 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
69860 arg5 =
static_cast< long >(val5);
69862 resultobj = SWIG_Py_Void();
69869 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn_with_ids__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69870 PyObject *resultobj = 0;
69883 PyObject * obj0 = 0 ;
69884 PyObject * obj1 = 0 ;
69885 PyObject * obj2 = 0 ;
69886 PyObject * obj3 = 0 ;
69888 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:float_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
69889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69890 if (!SWIG_IsOK(res1)) {
69891 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69894 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
69895 if (!SWIG_IsOK(ecode2)) {
69896 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
69898 arg2 =
static_cast< size_t >(val2);
69899 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
69900 if (!SWIG_IsOK(res3)) {
69901 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::T const *""'");
69904 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
69905 if (!SWIG_IsOK(res4)) {
69906 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::TI const *""'");
69910 resultobj = SWIG_Py_Void();
69917 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn_with_ids__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
69918 PyObject *resultobj = 0;
69928 PyObject * obj0 = 0 ;
69929 PyObject * obj1 = 0 ;
69930 PyObject * obj2 = 0 ;
69932 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2)) SWIG_fail;
69933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
69934 if (!SWIG_IsOK(res1)) {
69935 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
69938 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
69939 if (!SWIG_IsOK(ecode2)) {
69940 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
69942 arg2 =
static_cast< size_t >(val2);
69943 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
69944 if (!SWIG_IsOK(res3)) {
69945 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::T const *""'");
69949 resultobj = SWIG_Py_Void();
69956 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn_with_ids(PyObject *self, PyObject *args) {
69958 PyObject *argv[8] = {
69963 if (!PyTuple_Check(args)) SWIG_fail;
69964 argc = args ? PyObject_Length(args) : 0;
69965 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
69966 argv[ii] = PyTuple_GET_ITEM(args,ii);
69971 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
69972 _v = SWIG_CheckState(res);
69975 int res = SWIG_AsVal_size_t(argv[1], NULL);
69976 _v = SWIG_CheckState(res);
69980 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
69981 _v = SWIG_CheckState(res);
69983 return _wrap_float_minheap_array_t_addn_with_ids__SWIG_4(
self, args);
69991 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
69992 _v = SWIG_CheckState(res);
69995 int res = SWIG_AsVal_size_t(argv[1], NULL);
69996 _v = SWIG_CheckState(res);
70000 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
70001 _v = SWIG_CheckState(res);
70004 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
70005 _v = SWIG_CheckState(res);
70007 return _wrap_float_minheap_array_t_addn_with_ids__SWIG_3(
self, args);
70016 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
70017 _v = SWIG_CheckState(res);
70020 int res = SWIG_AsVal_size_t(argv[1], NULL);
70021 _v = SWIG_CheckState(res);
70025 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
70026 _v = SWIG_CheckState(res);
70029 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
70030 _v = SWIG_CheckState(res);
70033 int res = SWIG_AsVal_long(argv[4], NULL);
70034 _v = SWIG_CheckState(res);
70037 return _wrap_float_minheap_array_t_addn_with_ids__SWIG_2(
self, args);
70047 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
70048 _v = SWIG_CheckState(res);
70051 int res = SWIG_AsVal_size_t(argv[1], NULL);
70052 _v = SWIG_CheckState(res);
70056 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
70057 _v = SWIG_CheckState(res);
70060 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
70061 _v = SWIG_CheckState(res);
70064 int res = SWIG_AsVal_long(argv[4], NULL);
70065 _v = SWIG_CheckState(res);
70069 int res = SWIG_AsVal_size_t(argv[5], NULL);
70070 _v = SWIG_CheckState(res);
70073 return _wrap_float_minheap_array_t_addn_with_ids__SWIG_1(
self, args);
70084 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
70085 _v = SWIG_CheckState(res);
70088 int res = SWIG_AsVal_size_t(argv[1], NULL);
70089 _v = SWIG_CheckState(res);
70093 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
70094 _v = SWIG_CheckState(res);
70097 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
70098 _v = SWIG_CheckState(res);
70101 int res = SWIG_AsVal_long(argv[4], NULL);
70102 _v = SWIG_CheckState(res);
70106 int res = SWIG_AsVal_size_t(argv[5], NULL);
70107 _v = SWIG_CheckState(res);
70111 int res = SWIG_AsVal_long(argv[6], NULL);
70112 _v = SWIG_CheckState(res);
70115 return _wrap_float_minheap_array_t_addn_with_ids__SWIG_0(
self, args);
70126 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'float_minheap_array_t_addn_with_ids'.\n"
70127 " Possible C/C++ prototypes are:\n"
70128 " faiss::HeapArray< faiss::CMin< float,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMin< float,long > >::T const *,faiss::HeapArray< faiss::CMin< float,long > >::TI const *,long,size_t,long)\n"
70129 " faiss::HeapArray< faiss::CMin< float,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMin< float,long > >::T const *,faiss::HeapArray< faiss::CMin< float,long > >::TI const *,long,size_t)\n"
70130 " faiss::HeapArray< faiss::CMin< float,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMin< float,long > >::T const *,faiss::HeapArray< faiss::CMin< float,long > >::TI const *,long)\n"
70131 " faiss::HeapArray< faiss::CMin< float,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMin< float,long > >::T const *,faiss::HeapArray< faiss::CMin< float,long > >::TI const *)\n"
70132 " faiss::HeapArray< faiss::CMin< float,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMin< float,long > >::T const *)\n");
70137 SWIGINTERN PyObject *_wrap_float_minheap_array_t_reorder(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70138 PyObject *resultobj = 0;
70142 PyObject * obj0 = 0 ;
70144 if (!PyArg_ParseTuple(args,(
char *)
"O:float_minheap_array_t_reorder",&obj0)) SWIG_fail;
70145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
70146 if (!SWIG_IsOK(res1)) {
70147 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_reorder" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
70151 resultobj = SWIG_Py_Void();
70158 SWIGINTERN PyObject *_wrap_float_minheap_array_t_per_line_extrema(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70159 PyObject *resultobj = 0;
70169 PyObject * obj0 = 0 ;
70170 PyObject * obj1 = 0 ;
70171 PyObject * obj2 = 0 ;
70173 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_minheap_array_t_per_line_extrema",&obj0,&obj1,&obj2)) SWIG_fail;
70174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
70175 if (!SWIG_IsOK(res1)) {
70176 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_per_line_extrema" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > const *""'");
70179 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
70180 if (!SWIG_IsOK(res2)) {
70181 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "float_minheap_array_t_per_line_extrema" "', argument " "2"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::T *""'");
70184 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
70185 if (!SWIG_IsOK(res3)) {
70186 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_minheap_array_t_per_line_extrema" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::TI *""'");
70190 resultobj = SWIG_Py_Void();
70197 SWIGINTERN PyObject *_wrap_new_float_minheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70198 PyObject *resultobj = 0;
70201 if (!PyArg_ParseTuple(args,(
char *)
":new_float_minheap_array_t")) SWIG_fail;
70203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, SWIG_POINTER_NEW | 0 );
70210 SWIGINTERN PyObject *_wrap_delete_float_minheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70211 PyObject *resultobj = 0;
70215 PyObject * obj0 = 0 ;
70217 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_float_minheap_array_t",&obj0)) SWIG_fail;
70218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, SWIG_POINTER_DISOWN | 0 );
70219 if (!SWIG_IsOK(res1)) {
70220 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_float_minheap_array_t" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
70224 resultobj = SWIG_Py_Void();
70231 SWIGINTERN PyObject *float_minheap_array_t_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70233 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
70234 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, SWIG_NewClientData(obj));
70235 return SWIG_Py_Void();
70238 SWIGINTERN PyObject *_wrap_int_minheap_array_t_nh_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70239 PyObject *resultobj = 0;
70246 PyObject * obj0 = 0 ;
70247 PyObject * obj1 = 0 ;
70249 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_minheap_array_t_nh_set",&obj0,&obj1)) SWIG_fail;
70250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70251 if (!SWIG_IsOK(res1)) {
70252 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_nh_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70255 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
70256 if (!SWIG_IsOK(ecode2)) {
70257 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_nh_set" "', argument " "2"" of type '" "size_t""'");
70259 arg2 =
static_cast< size_t >(val2);
70260 if (arg1) (arg1)->nh = arg2;
70261 resultobj = SWIG_Py_Void();
70268 SWIGINTERN PyObject *_wrap_int_minheap_array_t_nh_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70269 PyObject *resultobj = 0;
70273 PyObject * obj0 = 0 ;
70276 if (!PyArg_ParseTuple(args,(
char *)
"O:int_minheap_array_t_nh_get",&obj0)) SWIG_fail;
70277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70278 if (!SWIG_IsOK(res1)) {
70279 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_nh_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70282 result = (size_t) ((arg1)->nh);
70283 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
70290 SWIGINTERN PyObject *_wrap_int_minheap_array_t_k_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70291 PyObject *resultobj = 0;
70298 PyObject * obj0 = 0 ;
70299 PyObject * obj1 = 0 ;
70301 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_minheap_array_t_k_set",&obj0,&obj1)) SWIG_fail;
70302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70303 if (!SWIG_IsOK(res1)) {
70304 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_k_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70307 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
70308 if (!SWIG_IsOK(ecode2)) {
70309 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_k_set" "', argument " "2"" of type '" "size_t""'");
70311 arg2 =
static_cast< size_t >(val2);
70312 if (arg1) (arg1)->k = arg2;
70313 resultobj = SWIG_Py_Void();
70320 SWIGINTERN PyObject *_wrap_int_minheap_array_t_k_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70321 PyObject *resultobj = 0;
70325 PyObject * obj0 = 0 ;
70328 if (!PyArg_ParseTuple(args,(
char *)
"O:int_minheap_array_t_k_get",&obj0)) SWIG_fail;
70329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70330 if (!SWIG_IsOK(res1)) {
70331 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_k_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70334 result = (size_t) ((arg1)->k);
70335 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
70342 SWIGINTERN PyObject *_wrap_int_minheap_array_t_ids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70343 PyObject *resultobj = 0;
70350 PyObject * obj0 = 0 ;
70351 PyObject * obj1 = 0 ;
70353 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_minheap_array_t_ids_set",&obj0,&obj1)) SWIG_fail;
70354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70355 if (!SWIG_IsOK(res1)) {
70356 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_ids_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70359 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, SWIG_POINTER_DISOWN | 0 );
70360 if (!SWIG_IsOK(res2)) {
70361 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "int_minheap_array_t_ids_set" "', argument " "2"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::TI *""'");
70364 if (arg1) (arg1)->ids = arg2;
70365 resultobj = SWIG_Py_Void();
70372 SWIGINTERN PyObject *_wrap_int_minheap_array_t_ids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70373 PyObject *resultobj = 0;
70377 PyObject * obj0 = 0 ;
70380 if (!PyArg_ParseTuple(args,(
char *)
"O:int_minheap_array_t_ids_get",&obj0)) SWIG_fail;
70381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70382 if (!SWIG_IsOK(res1)) {
70383 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_ids_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
70394 SWIGINTERN PyObject *_wrap_int_minheap_array_t_val_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70395 PyObject *resultobj = 0;
70402 PyObject * obj0 = 0 ;
70403 PyObject * obj1 = 0 ;
70405 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_minheap_array_t_val_set",&obj0,&obj1)) SWIG_fail;
70406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70407 if (!SWIG_IsOK(res1)) {
70408 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_val_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70411 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
70412 if (!SWIG_IsOK(res2)) {
70413 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "int_minheap_array_t_val_set" "', argument " "2"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::T *""'");
70416 if (arg1) (arg1)->val = arg2;
70417 resultobj = SWIG_Py_Void();
70424 SWIGINTERN PyObject *_wrap_int_minheap_array_t_val_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70425 PyObject *resultobj = 0;
70429 PyObject * obj0 = 0 ;
70432 if (!PyArg_ParseTuple(args,(
char *)
"O:int_minheap_array_t_val_get",&obj0)) SWIG_fail;
70433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70434 if (!SWIG_IsOK(res1)) {
70435 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_val_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
70446 SWIGINTERN PyObject *_wrap_int_minheap_array_t_get_val(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70447 PyObject *resultobj = 0;
70454 PyObject * obj0 = 0 ;
70455 PyObject * obj1 = 0 ;
70458 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_minheap_array_t_get_val",&obj0,&obj1)) SWIG_fail;
70459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70460 if (!SWIG_IsOK(res1)) {
70461 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_get_val" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70464 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
70465 if (!SWIG_IsOK(ecode2)) {
70466 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_get_val" "', argument " "2"" of type '" "size_t""'");
70468 arg2 =
static_cast< size_t >(val2);
70470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
70477 SWIGINTERN PyObject *_wrap_int_minheap_array_t_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70478 PyObject *resultobj = 0;
70485 PyObject * obj0 = 0 ;
70486 PyObject * obj1 = 0 ;
70489 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_minheap_array_t_get_ids",&obj0,&obj1)) SWIG_fail;
70490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70491 if (!SWIG_IsOK(res1)) {
70492 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_get_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70495 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
70496 if (!SWIG_IsOK(ecode2)) {
70497 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_get_ids" "', argument " "2"" of type '" "size_t""'");
70499 arg2 =
static_cast< size_t >(val2);
70501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
70508 SWIGINTERN PyObject *_wrap_int_minheap_array_t_heapify(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70509 PyObject *resultobj = 0;
70513 PyObject * obj0 = 0 ;
70515 if (!PyArg_ParseTuple(args,(
char *)
"O:int_minheap_array_t_heapify",&obj0)) SWIG_fail;
70516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70517 if (!SWIG_IsOK(res1)) {
70518 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_heapify" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70522 resultobj = SWIG_Py_Void();
70529 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70530 PyObject *resultobj = 0;
70549 PyObject * obj0 = 0 ;
70550 PyObject * obj1 = 0 ;
70551 PyObject * obj2 = 0 ;
70552 PyObject * obj3 = 0 ;
70553 PyObject * obj4 = 0 ;
70554 PyObject * obj5 = 0 ;
70556 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:int_minheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
70557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70558 if (!SWIG_IsOK(res1)) {
70559 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70562 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
70563 if (!SWIG_IsOK(ecode2)) {
70564 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
70566 arg2 =
static_cast< size_t >(val2);
70567 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
70568 if (!SWIG_IsOK(res3)) {
70569 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_minheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::T const *""'");
70572 ecode4 = SWIG_AsVal_long(obj3, &val4);
70573 if (!SWIG_IsOK(ecode4)) {
70574 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "int_minheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::TI""'");
70577 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
70578 if (!SWIG_IsOK(ecode5)) {
70579 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_minheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
70581 arg5 =
static_cast< size_t >(val5);
70582 ecode6 = SWIG_AsVal_long(obj5, &val6);
70583 if (!SWIG_IsOK(ecode6)) {
70584 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "int_minheap_array_t_addn" "', argument " "6"" of type '" "long""'");
70586 arg6 =
static_cast< long >(val6);
70588 resultobj = SWIG_Py_Void();
70595 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70596 PyObject *resultobj = 0;
70612 PyObject * obj0 = 0 ;
70613 PyObject * obj1 = 0 ;
70614 PyObject * obj2 = 0 ;
70615 PyObject * obj3 = 0 ;
70616 PyObject * obj4 = 0 ;
70618 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:int_minheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
70619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70620 if (!SWIG_IsOK(res1)) {
70621 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70624 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
70625 if (!SWIG_IsOK(ecode2)) {
70626 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
70628 arg2 =
static_cast< size_t >(val2);
70629 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
70630 if (!SWIG_IsOK(res3)) {
70631 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_minheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::T const *""'");
70634 ecode4 = SWIG_AsVal_long(obj3, &val4);
70635 if (!SWIG_IsOK(ecode4)) {
70636 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "int_minheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::TI""'");
70639 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
70640 if (!SWIG_IsOK(ecode5)) {
70641 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_minheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
70643 arg5 =
static_cast< size_t >(val5);
70645 resultobj = SWIG_Py_Void();
70652 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70653 PyObject *resultobj = 0;
70666 PyObject * obj0 = 0 ;
70667 PyObject * obj1 = 0 ;
70668 PyObject * obj2 = 0 ;
70669 PyObject * obj3 = 0 ;
70671 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:int_minheap_array_t_addn",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
70672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70673 if (!SWIG_IsOK(res1)) {
70674 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70677 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
70678 if (!SWIG_IsOK(ecode2)) {
70679 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
70681 arg2 =
static_cast< size_t >(val2);
70682 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
70683 if (!SWIG_IsOK(res3)) {
70684 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_minheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::T const *""'");
70687 ecode4 = SWIG_AsVal_long(obj3, &val4);
70688 if (!SWIG_IsOK(ecode4)) {
70689 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "int_minheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::TI""'");
70693 resultobj = SWIG_Py_Void();
70700 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70701 PyObject *resultobj = 0;
70711 PyObject * obj0 = 0 ;
70712 PyObject * obj1 = 0 ;
70713 PyObject * obj2 = 0 ;
70715 if (!PyArg_ParseTuple(args,(
char *)
"OOO:int_minheap_array_t_addn",&obj0,&obj1,&obj2)) SWIG_fail;
70716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70717 if (!SWIG_IsOK(res1)) {
70718 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70721 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
70722 if (!SWIG_IsOK(ecode2)) {
70723 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
70725 arg2 =
static_cast< size_t >(val2);
70726 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
70727 if (!SWIG_IsOK(res3)) {
70728 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_minheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::T const *""'");
70732 resultobj = SWIG_Py_Void();
70739 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn(PyObject *self, PyObject *args) {
70741 PyObject *argv[7] = {
70746 if (!PyTuple_Check(args)) SWIG_fail;
70747 argc = args ? PyObject_Length(args) : 0;
70748 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
70749 argv[ii] = PyTuple_GET_ITEM(args,ii);
70754 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
70755 _v = SWIG_CheckState(res);
70758 int res = SWIG_AsVal_size_t(argv[1], NULL);
70759 _v = SWIG_CheckState(res);
70763 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
70764 _v = SWIG_CheckState(res);
70766 return _wrap_int_minheap_array_t_addn__SWIG_3(
self, args);
70774 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
70775 _v = SWIG_CheckState(res);
70778 int res = SWIG_AsVal_size_t(argv[1], NULL);
70779 _v = SWIG_CheckState(res);
70783 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
70784 _v = SWIG_CheckState(res);
70787 int res = SWIG_AsVal_long(argv[3], NULL);
70788 _v = SWIG_CheckState(res);
70791 return _wrap_int_minheap_array_t_addn__SWIG_2(
self, args);
70800 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
70801 _v = SWIG_CheckState(res);
70804 int res = SWIG_AsVal_size_t(argv[1], NULL);
70805 _v = SWIG_CheckState(res);
70809 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
70810 _v = SWIG_CheckState(res);
70813 int res = SWIG_AsVal_long(argv[3], NULL);
70814 _v = SWIG_CheckState(res);
70818 int res = SWIG_AsVal_size_t(argv[4], NULL);
70819 _v = SWIG_CheckState(res);
70822 return _wrap_int_minheap_array_t_addn__SWIG_1(
self, args);
70832 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
70833 _v = SWIG_CheckState(res);
70836 int res = SWIG_AsVal_size_t(argv[1], NULL);
70837 _v = SWIG_CheckState(res);
70841 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
70842 _v = SWIG_CheckState(res);
70845 int res = SWIG_AsVal_long(argv[3], NULL);
70846 _v = SWIG_CheckState(res);
70850 int res = SWIG_AsVal_size_t(argv[4], NULL);
70851 _v = SWIG_CheckState(res);
70855 int res = SWIG_AsVal_long(argv[5], NULL);
70856 _v = SWIG_CheckState(res);
70859 return _wrap_int_minheap_array_t_addn__SWIG_0(
self, args);
70869 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'int_minheap_array_t_addn'.\n"
70870 " Possible C/C++ prototypes are:\n"
70871 " faiss::HeapArray< faiss::CMin< int,long > >::addn(size_t,faiss::HeapArray< faiss::CMin< int,long > >::T const *,faiss::HeapArray< faiss::CMin< int,long > >::TI,size_t,long)\n"
70872 " faiss::HeapArray< faiss::CMin< int,long > >::addn(size_t,faiss::HeapArray< faiss::CMin< int,long > >::T const *,faiss::HeapArray< faiss::CMin< int,long > >::TI,size_t)\n"
70873 " faiss::HeapArray< faiss::CMin< int,long > >::addn(size_t,faiss::HeapArray< faiss::CMin< int,long > >::T const *,faiss::HeapArray< faiss::CMin< int,long > >::TI)\n"
70874 " faiss::HeapArray< faiss::CMin< int,long > >::addn(size_t,faiss::HeapArray< faiss::CMin< int,long > >::T const *)\n");
70879 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn_with_ids__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70880 PyObject *resultobj = 0;
70902 PyObject * obj0 = 0 ;
70903 PyObject * obj1 = 0 ;
70904 PyObject * obj2 = 0 ;
70905 PyObject * obj3 = 0 ;
70906 PyObject * obj4 = 0 ;
70907 PyObject * obj5 = 0 ;
70908 PyObject * obj6 = 0 ;
70910 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:int_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
70911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70912 if (!SWIG_IsOK(res1)) {
70913 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70916 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
70917 if (!SWIG_IsOK(ecode2)) {
70918 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
70920 arg2 =
static_cast< size_t >(val2);
70921 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
70922 if (!SWIG_IsOK(res3)) {
70923 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::T const *""'");
70926 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
70927 if (!SWIG_IsOK(res4)) {
70928 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::TI const *""'");
70931 ecode5 = SWIG_AsVal_long(obj4, &val5);
70932 if (!SWIG_IsOK(ecode5)) {
70933 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
70935 arg5 =
static_cast< long >(val5);
70936 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
70937 if (!SWIG_IsOK(ecode6)) {
70938 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
70940 arg6 =
static_cast< size_t >(val6);
70941 ecode7 = SWIG_AsVal_long(obj6, &val7);
70942 if (!SWIG_IsOK(ecode7)) {
70943 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "7"" of type '" "long""'");
70945 arg7 =
static_cast< long >(val7);
70947 resultobj = SWIG_Py_Void();
70954 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn_with_ids__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70955 PyObject *resultobj = 0;
70974 PyObject * obj0 = 0 ;
70975 PyObject * obj1 = 0 ;
70976 PyObject * obj2 = 0 ;
70977 PyObject * obj3 = 0 ;
70978 PyObject * obj4 = 0 ;
70979 PyObject * obj5 = 0 ;
70981 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:int_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
70982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
70983 if (!SWIG_IsOK(res1)) {
70984 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
70987 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
70988 if (!SWIG_IsOK(ecode2)) {
70989 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
70991 arg2 =
static_cast< size_t >(val2);
70992 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
70993 if (!SWIG_IsOK(res3)) {
70994 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::T const *""'");
70997 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
70998 if (!SWIG_IsOK(res4)) {
70999 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::TI const *""'");
71002 ecode5 = SWIG_AsVal_long(obj4, &val5);
71003 if (!SWIG_IsOK(ecode5)) {
71004 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
71006 arg5 =
static_cast< long >(val5);
71007 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
71008 if (!SWIG_IsOK(ecode6)) {
71009 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
71011 arg6 =
static_cast< size_t >(val6);
71013 resultobj = SWIG_Py_Void();
71020 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn_with_ids__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71021 PyObject *resultobj = 0;
71037 PyObject * obj0 = 0 ;
71038 PyObject * obj1 = 0 ;
71039 PyObject * obj2 = 0 ;
71040 PyObject * obj3 = 0 ;
71041 PyObject * obj4 = 0 ;
71043 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:int_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
71044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
71045 if (!SWIG_IsOK(res1)) {
71046 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
71049 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
71050 if (!SWIG_IsOK(ecode2)) {
71051 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
71053 arg2 =
static_cast< size_t >(val2);
71054 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
71055 if (!SWIG_IsOK(res3)) {
71056 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::T const *""'");
71059 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
71060 if (!SWIG_IsOK(res4)) {
71061 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::TI const *""'");
71064 ecode5 = SWIG_AsVal_long(obj4, &val5);
71065 if (!SWIG_IsOK(ecode5)) {
71066 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
71068 arg5 =
static_cast< long >(val5);
71070 resultobj = SWIG_Py_Void();
71077 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn_with_ids__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71078 PyObject *resultobj = 0;
71091 PyObject * obj0 = 0 ;
71092 PyObject * obj1 = 0 ;
71093 PyObject * obj2 = 0 ;
71094 PyObject * obj3 = 0 ;
71096 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:int_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
71097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
71098 if (!SWIG_IsOK(res1)) {
71099 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
71102 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
71103 if (!SWIG_IsOK(ecode2)) {
71104 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
71106 arg2 =
static_cast< size_t >(val2);
71107 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
71108 if (!SWIG_IsOK(res3)) {
71109 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::T const *""'");
71112 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
71113 if (!SWIG_IsOK(res4)) {
71114 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::TI const *""'");
71118 resultobj = SWIG_Py_Void();
71125 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn_with_ids__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
71126 PyObject *resultobj = 0;
71136 PyObject * obj0 = 0 ;
71137 PyObject * obj1 = 0 ;
71138 PyObject * obj2 = 0 ;
71140 if (!PyArg_ParseTuple(args,(
char *)
"OOO:int_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2)) SWIG_fail;
71141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
71142 if (!SWIG_IsOK(res1)) {
71143 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
71146 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
71147 if (!SWIG_IsOK(ecode2)) {
71148 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
71150 arg2 =
static_cast< size_t >(val2);
71151 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
71152 if (!SWIG_IsOK(res3)) {
71153 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::T const *""'");
71157 resultobj = SWIG_Py_Void();
71164 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn_with_ids(PyObject *self, PyObject *args) {
71166 PyObject *argv[8] = {
71171 if (!PyTuple_Check(args)) SWIG_fail;
71172 argc = args ? PyObject_Length(args) : 0;
71173 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
71174 argv[ii] = PyTuple_GET_ITEM(args,ii);
71179 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
71180 _v = SWIG_CheckState(res);
71183 int res = SWIG_AsVal_size_t(argv[1], NULL);
71184 _v = SWIG_CheckState(res);
71188 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
71189 _v = SWIG_CheckState(res);
71191 return _wrap_int_minheap_array_t_addn_with_ids__SWIG_4(
self, args);
71199 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
71200 _v = SWIG_CheckState(res);
71203 int res = SWIG_AsVal_size_t(argv[1], NULL);
71204 _v = SWIG_CheckState(res);
71208 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
71209 _v = SWIG_CheckState(res);
71212 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
71213 _v = SWIG_CheckState(res);
71215 return _wrap_int_minheap_array_t_addn_with_ids__SWIG_3(
self, args);
71224 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
71225 _v = SWIG_CheckState(res);
71228 int res = SWIG_AsVal_size_t(argv[1], NULL);
71229 _v = SWIG_CheckState(res);
71233 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
71234 _v = SWIG_CheckState(res);
71237 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
71238 _v = SWIG_CheckState(res);
71241 int res = SWIG_AsVal_long(argv[4], NULL);
71242 _v = SWIG_CheckState(res);
71245 return _wrap_int_minheap_array_t_addn_with_ids__SWIG_2(
self, args);
71255 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
71256 _v = SWIG_CheckState(res);
71259 int res = SWIG_AsVal_size_t(argv[1], NULL);
71260 _v = SWIG_CheckState(res);
71264 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
71265 _v = SWIG_CheckState(res);
71268 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
71269 _v = SWIG_CheckState(res);
71272 int res = SWIG_AsVal_long(argv[4], NULL);
71273 _v = SWIG_CheckState(res);
71277 int res = SWIG_AsVal_size_t(argv[5], NULL);
71278 _v = SWIG_CheckState(res);
71281 return _wrap_int_minheap_array_t_addn_with_ids__SWIG_1(
self, args);
71292 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
71293 _v = SWIG_CheckState(res);
71296 int res = SWIG_AsVal_size_t(argv[1], NULL);
71297 _v = SWIG_CheckState(res);
71301 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
71302 _v = SWIG_CheckState(res);
71305 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
71306 _v = SWIG_CheckState(res);
71309 int res = SWIG_AsVal_long(argv[4], NULL);
71310 _v = SWIG_CheckState(res);
71314 int res = SWIG_AsVal_size_t(argv[5], NULL);
71315 _v = SWIG_CheckState(res);
71319 int res = SWIG_AsVal_long(argv[6], NULL);
71320 _v = SWIG_CheckState(res);
71323 return _wrap_int_minheap_array_t_addn_with_ids__SWIG_0(
self, args);
71334 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'int_minheap_array_t_addn_with_ids'.\n"
71335 " Possible C/C++ prototypes are:\n"
71336 " faiss::HeapArray< faiss::CMin< int,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMin< int,long > >::T const *,faiss::HeapArray< faiss::CMin< int,long > >::TI const *,long,size_t,long)\n"
71337 " faiss::HeapArray< faiss::CMin< int,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMin< int,long > >::T const *,faiss::HeapArray< faiss::CMin< int,long > >::TI const *,long,size_t)\n"
71338 " faiss::HeapArray< faiss::CMin< int,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMin< int,long > >::T const *,faiss::HeapArray< faiss::CMin< int,long > >::TI const *,long)\n"
71339 " faiss::HeapArray< faiss::CMin< int,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMin< int,long > >::T const *,faiss::HeapArray< faiss::CMin< int,long > >::TI const *)\n"
71340 " faiss::HeapArray< faiss::CMin< int,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMin< int,long > >::T const *)\n");
71345 SWIGINTERN PyObject *_wrap_int_minheap_array_t_reorder(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71346 PyObject *resultobj = 0;
71350 PyObject * obj0 = 0 ;
71352 if (!PyArg_ParseTuple(args,(
char *)
"O:int_minheap_array_t_reorder",&obj0)) SWIG_fail;
71353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
71354 if (!SWIG_IsOK(res1)) {
71355 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_reorder" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
71359 resultobj = SWIG_Py_Void();
71366 SWIGINTERN PyObject *_wrap_int_minheap_array_t_per_line_extrema(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71367 PyObject *resultobj = 0;
71377 PyObject * obj0 = 0 ;
71378 PyObject * obj1 = 0 ;
71379 PyObject * obj2 = 0 ;
71381 if (!PyArg_ParseTuple(args,(
char *)
"OOO:int_minheap_array_t_per_line_extrema",&obj0,&obj1,&obj2)) SWIG_fail;
71382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
71383 if (!SWIG_IsOK(res1)) {
71384 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_per_line_extrema" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > const *""'");
71387 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
71388 if (!SWIG_IsOK(res2)) {
71389 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "int_minheap_array_t_per_line_extrema" "', argument " "2"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::T *""'");
71392 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
71393 if (!SWIG_IsOK(res3)) {
71394 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_minheap_array_t_per_line_extrema" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::TI *""'");
71398 resultobj = SWIG_Py_Void();
71405 SWIGINTERN PyObject *_wrap_new_int_minheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71406 PyObject *resultobj = 0;
71409 if (!PyArg_ParseTuple(args,(
char *)
":new_int_minheap_array_t")) SWIG_fail;
71411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, SWIG_POINTER_NEW | 0 );
71418 SWIGINTERN PyObject *_wrap_delete_int_minheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71419 PyObject *resultobj = 0;
71423 PyObject * obj0 = 0 ;
71425 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_int_minheap_array_t",&obj0)) SWIG_fail;
71426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, SWIG_POINTER_DISOWN | 0 );
71427 if (!SWIG_IsOK(res1)) {
71428 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_int_minheap_array_t" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
71432 resultobj = SWIG_Py_Void();
71439 SWIGINTERN PyObject *int_minheap_array_t_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71441 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
71442 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, SWIG_NewClientData(obj));
71443 return SWIG_Py_Void();
71446 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_nh_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71447 PyObject *resultobj = 0;
71454 PyObject * obj0 = 0 ;
71455 PyObject * obj1 = 0 ;
71457 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_maxheap_array_t_nh_set",&obj0,&obj1)) SWIG_fail;
71458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71459 if (!SWIG_IsOK(res1)) {
71460 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_nh_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71463 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
71464 if (!SWIG_IsOK(ecode2)) {
71465 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_nh_set" "', argument " "2"" of type '" "size_t""'");
71467 arg2 =
static_cast< size_t >(val2);
71468 if (arg1) (arg1)->nh = arg2;
71469 resultobj = SWIG_Py_Void();
71476 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_nh_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71477 PyObject *resultobj = 0;
71481 PyObject * obj0 = 0 ;
71484 if (!PyArg_ParseTuple(args,(
char *)
"O:float_maxheap_array_t_nh_get",&obj0)) SWIG_fail;
71485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71486 if (!SWIG_IsOK(res1)) {
71487 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_nh_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71490 result = (size_t) ((arg1)->nh);
71491 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
71498 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_k_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71499 PyObject *resultobj = 0;
71506 PyObject * obj0 = 0 ;
71507 PyObject * obj1 = 0 ;
71509 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_maxheap_array_t_k_set",&obj0,&obj1)) SWIG_fail;
71510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71511 if (!SWIG_IsOK(res1)) {
71512 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_k_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71515 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
71516 if (!SWIG_IsOK(ecode2)) {
71517 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_k_set" "', argument " "2"" of type '" "size_t""'");
71519 arg2 =
static_cast< size_t >(val2);
71520 if (arg1) (arg1)->k = arg2;
71521 resultobj = SWIG_Py_Void();
71528 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_k_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71529 PyObject *resultobj = 0;
71533 PyObject * obj0 = 0 ;
71536 if (!PyArg_ParseTuple(args,(
char *)
"O:float_maxheap_array_t_k_get",&obj0)) SWIG_fail;
71537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71538 if (!SWIG_IsOK(res1)) {
71539 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_k_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71542 result = (size_t) ((arg1)->k);
71543 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
71550 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_ids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71551 PyObject *resultobj = 0;
71558 PyObject * obj0 = 0 ;
71559 PyObject * obj1 = 0 ;
71561 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_maxheap_array_t_ids_set",&obj0,&obj1)) SWIG_fail;
71562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71563 if (!SWIG_IsOK(res1)) {
71564 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_ids_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71567 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, SWIG_POINTER_DISOWN | 0 );
71568 if (!SWIG_IsOK(res2)) {
71569 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "float_maxheap_array_t_ids_set" "', argument " "2"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::TI *""'");
71572 if (arg1) (arg1)->ids = arg2;
71573 resultobj = SWIG_Py_Void();
71580 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_ids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71581 PyObject *resultobj = 0;
71585 PyObject * obj0 = 0 ;
71588 if (!PyArg_ParseTuple(args,(
char *)
"O:float_maxheap_array_t_ids_get",&obj0)) SWIG_fail;
71589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71590 if (!SWIG_IsOK(res1)) {
71591 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_ids_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
71602 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_val_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71603 PyObject *resultobj = 0;
71610 PyObject * obj0 = 0 ;
71611 PyObject * obj1 = 0 ;
71613 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_maxheap_array_t_val_set",&obj0,&obj1)) SWIG_fail;
71614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71615 if (!SWIG_IsOK(res1)) {
71616 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_val_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71619 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
71620 if (!SWIG_IsOK(res2)) {
71621 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "float_maxheap_array_t_val_set" "', argument " "2"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::T *""'");
71624 if (arg1) (arg1)->val = arg2;
71625 resultobj = SWIG_Py_Void();
71632 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_val_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71633 PyObject *resultobj = 0;
71637 PyObject * obj0 = 0 ;
71640 if (!PyArg_ParseTuple(args,(
char *)
"O:float_maxheap_array_t_val_get",&obj0)) SWIG_fail;
71641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71642 if (!SWIG_IsOK(res1)) {
71643 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_val_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
71654 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_get_val(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71655 PyObject *resultobj = 0;
71662 PyObject * obj0 = 0 ;
71663 PyObject * obj1 = 0 ;
71666 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_maxheap_array_t_get_val",&obj0,&obj1)) SWIG_fail;
71667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71668 if (!SWIG_IsOK(res1)) {
71669 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_get_val" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71672 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
71673 if (!SWIG_IsOK(ecode2)) {
71674 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_get_val" "', argument " "2"" of type '" "size_t""'");
71676 arg2 =
static_cast< size_t >(val2);
71678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
71685 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71686 PyObject *resultobj = 0;
71693 PyObject * obj0 = 0 ;
71694 PyObject * obj1 = 0 ;
71697 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_maxheap_array_t_get_ids",&obj0,&obj1)) SWIG_fail;
71698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71699 if (!SWIG_IsOK(res1)) {
71700 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_get_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71703 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
71704 if (!SWIG_IsOK(ecode2)) {
71705 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_get_ids" "', argument " "2"" of type '" "size_t""'");
71707 arg2 =
static_cast< size_t >(val2);
71709 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
71716 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_heapify(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71717 PyObject *resultobj = 0;
71721 PyObject * obj0 = 0 ;
71723 if (!PyArg_ParseTuple(args,(
char *)
"O:float_maxheap_array_t_heapify",&obj0)) SWIG_fail;
71724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71725 if (!SWIG_IsOK(res1)) {
71726 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_heapify" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71730 resultobj = SWIG_Py_Void();
71737 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71738 PyObject *resultobj = 0;
71757 PyObject * obj0 = 0 ;
71758 PyObject * obj1 = 0 ;
71759 PyObject * obj2 = 0 ;
71760 PyObject * obj3 = 0 ;
71761 PyObject * obj4 = 0 ;
71762 PyObject * obj5 = 0 ;
71764 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:float_maxheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
71765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71766 if (!SWIG_IsOK(res1)) {
71767 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71770 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
71771 if (!SWIG_IsOK(ecode2)) {
71772 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
71774 arg2 =
static_cast< size_t >(val2);
71775 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
71776 if (!SWIG_IsOK(res3)) {
71777 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_maxheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::T const *""'");
71780 ecode4 = SWIG_AsVal_long(obj3, &val4);
71781 if (!SWIG_IsOK(ecode4)) {
71782 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "float_maxheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::TI""'");
71785 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
71786 if (!SWIG_IsOK(ecode5)) {
71787 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_maxheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
71789 arg5 =
static_cast< size_t >(val5);
71790 ecode6 = SWIG_AsVal_long(obj5, &val6);
71791 if (!SWIG_IsOK(ecode6)) {
71792 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "float_maxheap_array_t_addn" "', argument " "6"" of type '" "long""'");
71794 arg6 =
static_cast< long >(val6);
71796 resultobj = SWIG_Py_Void();
71803 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71804 PyObject *resultobj = 0;
71820 PyObject * obj0 = 0 ;
71821 PyObject * obj1 = 0 ;
71822 PyObject * obj2 = 0 ;
71823 PyObject * obj3 = 0 ;
71824 PyObject * obj4 = 0 ;
71826 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:float_maxheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
71827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71828 if (!SWIG_IsOK(res1)) {
71829 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71832 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
71833 if (!SWIG_IsOK(ecode2)) {
71834 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
71836 arg2 =
static_cast< size_t >(val2);
71837 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
71838 if (!SWIG_IsOK(res3)) {
71839 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_maxheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::T const *""'");
71842 ecode4 = SWIG_AsVal_long(obj3, &val4);
71843 if (!SWIG_IsOK(ecode4)) {
71844 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "float_maxheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::TI""'");
71847 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
71848 if (!SWIG_IsOK(ecode5)) {
71849 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_maxheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
71851 arg5 =
static_cast< size_t >(val5);
71853 resultobj = SWIG_Py_Void();
71860 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71861 PyObject *resultobj = 0;
71874 PyObject * obj0 = 0 ;
71875 PyObject * obj1 = 0 ;
71876 PyObject * obj2 = 0 ;
71877 PyObject * obj3 = 0 ;
71879 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:float_maxheap_array_t_addn",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
71880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71881 if (!SWIG_IsOK(res1)) {
71882 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71885 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
71886 if (!SWIG_IsOK(ecode2)) {
71887 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
71889 arg2 =
static_cast< size_t >(val2);
71890 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
71891 if (!SWIG_IsOK(res3)) {
71892 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_maxheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::T const *""'");
71895 ecode4 = SWIG_AsVal_long(obj3, &val4);
71896 if (!SWIG_IsOK(ecode4)) {
71897 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "float_maxheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::TI""'");
71901 resultobj = SWIG_Py_Void();
71908 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
71909 PyObject *resultobj = 0;
71919 PyObject * obj0 = 0 ;
71920 PyObject * obj1 = 0 ;
71921 PyObject * obj2 = 0 ;
71923 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_maxheap_array_t_addn",&obj0,&obj1,&obj2)) SWIG_fail;
71924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
71925 if (!SWIG_IsOK(res1)) {
71926 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
71929 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
71930 if (!SWIG_IsOK(ecode2)) {
71931 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
71933 arg2 =
static_cast< size_t >(val2);
71934 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
71935 if (!SWIG_IsOK(res3)) {
71936 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_maxheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::T const *""'");
71940 resultobj = SWIG_Py_Void();
71947 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn(PyObject *self, PyObject *args) {
71949 PyObject *argv[7] = {
71954 if (!PyTuple_Check(args)) SWIG_fail;
71955 argc = args ? PyObject_Length(args) : 0;
71956 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
71957 argv[ii] = PyTuple_GET_ITEM(args,ii);
71962 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
71963 _v = SWIG_CheckState(res);
71966 int res = SWIG_AsVal_size_t(argv[1], NULL);
71967 _v = SWIG_CheckState(res);
71971 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
71972 _v = SWIG_CheckState(res);
71974 return _wrap_float_maxheap_array_t_addn__SWIG_3(
self, args);
71982 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
71983 _v = SWIG_CheckState(res);
71986 int res = SWIG_AsVal_size_t(argv[1], NULL);
71987 _v = SWIG_CheckState(res);
71991 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
71992 _v = SWIG_CheckState(res);
71995 int res = SWIG_AsVal_long(argv[3], NULL);
71996 _v = SWIG_CheckState(res);
71999 return _wrap_float_maxheap_array_t_addn__SWIG_2(
self, args);
72008 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
72009 _v = SWIG_CheckState(res);
72012 int res = SWIG_AsVal_size_t(argv[1], NULL);
72013 _v = SWIG_CheckState(res);
72017 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
72018 _v = SWIG_CheckState(res);
72021 int res = SWIG_AsVal_long(argv[3], NULL);
72022 _v = SWIG_CheckState(res);
72026 int res = SWIG_AsVal_size_t(argv[4], NULL);
72027 _v = SWIG_CheckState(res);
72030 return _wrap_float_maxheap_array_t_addn__SWIG_1(
self, args);
72040 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
72041 _v = SWIG_CheckState(res);
72044 int res = SWIG_AsVal_size_t(argv[1], NULL);
72045 _v = SWIG_CheckState(res);
72049 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
72050 _v = SWIG_CheckState(res);
72053 int res = SWIG_AsVal_long(argv[3], NULL);
72054 _v = SWIG_CheckState(res);
72058 int res = SWIG_AsVal_size_t(argv[4], NULL);
72059 _v = SWIG_CheckState(res);
72063 int res = SWIG_AsVal_long(argv[5], NULL);
72064 _v = SWIG_CheckState(res);
72067 return _wrap_float_maxheap_array_t_addn__SWIG_0(
self, args);
72077 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'float_maxheap_array_t_addn'.\n"
72078 " Possible C/C++ prototypes are:\n"
72079 " faiss::HeapArray< faiss::CMax< float,long > >::addn(size_t,faiss::HeapArray< faiss::CMax< float,long > >::T const *,faiss::HeapArray< faiss::CMax< float,long > >::TI,size_t,long)\n"
72080 " faiss::HeapArray< faiss::CMax< float,long > >::addn(size_t,faiss::HeapArray< faiss::CMax< float,long > >::T const *,faiss::HeapArray< faiss::CMax< float,long > >::TI,size_t)\n"
72081 " faiss::HeapArray< faiss::CMax< float,long > >::addn(size_t,faiss::HeapArray< faiss::CMax< float,long > >::T const *,faiss::HeapArray< faiss::CMax< float,long > >::TI)\n"
72082 " faiss::HeapArray< faiss::CMax< float,long > >::addn(size_t,faiss::HeapArray< faiss::CMax< float,long > >::T const *)\n");
72087 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn_with_ids__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72088 PyObject *resultobj = 0;
72110 PyObject * obj0 = 0 ;
72111 PyObject * obj1 = 0 ;
72112 PyObject * obj2 = 0 ;
72113 PyObject * obj3 = 0 ;
72114 PyObject * obj4 = 0 ;
72115 PyObject * obj5 = 0 ;
72116 PyObject * obj6 = 0 ;
72118 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:float_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
72119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
72120 if (!SWIG_IsOK(res1)) {
72121 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
72124 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
72125 if (!SWIG_IsOK(ecode2)) {
72126 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
72128 arg2 =
static_cast< size_t >(val2);
72129 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
72130 if (!SWIG_IsOK(res3)) {
72131 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::T const *""'");
72134 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
72135 if (!SWIG_IsOK(res4)) {
72136 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::TI const *""'");
72139 ecode5 = SWIG_AsVal_long(obj4, &val5);
72140 if (!SWIG_IsOK(ecode5)) {
72141 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
72143 arg5 =
static_cast< long >(val5);
72144 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
72145 if (!SWIG_IsOK(ecode6)) {
72146 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
72148 arg6 =
static_cast< size_t >(val6);
72149 ecode7 = SWIG_AsVal_long(obj6, &val7);
72150 if (!SWIG_IsOK(ecode7)) {
72151 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "7"" of type '" "long""'");
72153 arg7 =
static_cast< long >(val7);
72155 resultobj = SWIG_Py_Void();
72162 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn_with_ids__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72163 PyObject *resultobj = 0;
72182 PyObject * obj0 = 0 ;
72183 PyObject * obj1 = 0 ;
72184 PyObject * obj2 = 0 ;
72185 PyObject * obj3 = 0 ;
72186 PyObject * obj4 = 0 ;
72187 PyObject * obj5 = 0 ;
72189 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:float_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
72191 if (!SWIG_IsOK(res1)) {
72192 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
72195 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
72196 if (!SWIG_IsOK(ecode2)) {
72197 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
72199 arg2 =
static_cast< size_t >(val2);
72200 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
72201 if (!SWIG_IsOK(res3)) {
72202 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::T const *""'");
72205 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
72206 if (!SWIG_IsOK(res4)) {
72207 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::TI const *""'");
72210 ecode5 = SWIG_AsVal_long(obj4, &val5);
72211 if (!SWIG_IsOK(ecode5)) {
72212 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
72214 arg5 =
static_cast< long >(val5);
72215 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
72216 if (!SWIG_IsOK(ecode6)) {
72217 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
72219 arg6 =
static_cast< size_t >(val6);
72221 resultobj = SWIG_Py_Void();
72228 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn_with_ids__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72229 PyObject *resultobj = 0;
72245 PyObject * obj0 = 0 ;
72246 PyObject * obj1 = 0 ;
72247 PyObject * obj2 = 0 ;
72248 PyObject * obj3 = 0 ;
72249 PyObject * obj4 = 0 ;
72251 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:float_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
72253 if (!SWIG_IsOK(res1)) {
72254 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
72257 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
72258 if (!SWIG_IsOK(ecode2)) {
72259 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
72261 arg2 =
static_cast< size_t >(val2);
72262 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
72263 if (!SWIG_IsOK(res3)) {
72264 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::T const *""'");
72267 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
72268 if (!SWIG_IsOK(res4)) {
72269 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::TI const *""'");
72272 ecode5 = SWIG_AsVal_long(obj4, &val5);
72273 if (!SWIG_IsOK(ecode5)) {
72274 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
72276 arg5 =
static_cast< long >(val5);
72278 resultobj = SWIG_Py_Void();
72285 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn_with_ids__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72286 PyObject *resultobj = 0;
72299 PyObject * obj0 = 0 ;
72300 PyObject * obj1 = 0 ;
72301 PyObject * obj2 = 0 ;
72302 PyObject * obj3 = 0 ;
72304 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:float_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
72305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
72306 if (!SWIG_IsOK(res1)) {
72307 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
72310 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
72311 if (!SWIG_IsOK(ecode2)) {
72312 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
72314 arg2 =
static_cast< size_t >(val2);
72315 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
72316 if (!SWIG_IsOK(res3)) {
72317 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::T const *""'");
72320 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
72321 if (!SWIG_IsOK(res4)) {
72322 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::TI const *""'");
72326 resultobj = SWIG_Py_Void();
72333 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn_with_ids__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72334 PyObject *resultobj = 0;
72344 PyObject * obj0 = 0 ;
72345 PyObject * obj1 = 0 ;
72346 PyObject * obj2 = 0 ;
72348 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2)) SWIG_fail;
72349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
72350 if (!SWIG_IsOK(res1)) {
72351 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
72354 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
72355 if (!SWIG_IsOK(ecode2)) {
72356 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
72358 arg2 =
static_cast< size_t >(val2);
72359 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
72360 if (!SWIG_IsOK(res3)) {
72361 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::T const *""'");
72365 resultobj = SWIG_Py_Void();
72372 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn_with_ids(PyObject *self, PyObject *args) {
72374 PyObject *argv[8] = {
72379 if (!PyTuple_Check(args)) SWIG_fail;
72380 argc = args ? PyObject_Length(args) : 0;
72381 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
72382 argv[ii] = PyTuple_GET_ITEM(args,ii);
72387 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
72388 _v = SWIG_CheckState(res);
72391 int res = SWIG_AsVal_size_t(argv[1], NULL);
72392 _v = SWIG_CheckState(res);
72396 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
72397 _v = SWIG_CheckState(res);
72399 return _wrap_float_maxheap_array_t_addn_with_ids__SWIG_4(
self, args);
72407 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
72408 _v = SWIG_CheckState(res);
72411 int res = SWIG_AsVal_size_t(argv[1], NULL);
72412 _v = SWIG_CheckState(res);
72416 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
72417 _v = SWIG_CheckState(res);
72420 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
72421 _v = SWIG_CheckState(res);
72423 return _wrap_float_maxheap_array_t_addn_with_ids__SWIG_3(
self, args);
72432 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
72433 _v = SWIG_CheckState(res);
72436 int res = SWIG_AsVal_size_t(argv[1], NULL);
72437 _v = SWIG_CheckState(res);
72441 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
72442 _v = SWIG_CheckState(res);
72445 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
72446 _v = SWIG_CheckState(res);
72449 int res = SWIG_AsVal_long(argv[4], NULL);
72450 _v = SWIG_CheckState(res);
72453 return _wrap_float_maxheap_array_t_addn_with_ids__SWIG_2(
self, args);
72463 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
72464 _v = SWIG_CheckState(res);
72467 int res = SWIG_AsVal_size_t(argv[1], NULL);
72468 _v = SWIG_CheckState(res);
72472 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
72473 _v = SWIG_CheckState(res);
72476 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
72477 _v = SWIG_CheckState(res);
72480 int res = SWIG_AsVal_long(argv[4], NULL);
72481 _v = SWIG_CheckState(res);
72485 int res = SWIG_AsVal_size_t(argv[5], NULL);
72486 _v = SWIG_CheckState(res);
72489 return _wrap_float_maxheap_array_t_addn_with_ids__SWIG_1(
self, args);
72500 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
72501 _v = SWIG_CheckState(res);
72504 int res = SWIG_AsVal_size_t(argv[1], NULL);
72505 _v = SWIG_CheckState(res);
72509 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
72510 _v = SWIG_CheckState(res);
72513 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
72514 _v = SWIG_CheckState(res);
72517 int res = SWIG_AsVal_long(argv[4], NULL);
72518 _v = SWIG_CheckState(res);
72522 int res = SWIG_AsVal_size_t(argv[5], NULL);
72523 _v = SWIG_CheckState(res);
72527 int res = SWIG_AsVal_long(argv[6], NULL);
72528 _v = SWIG_CheckState(res);
72531 return _wrap_float_maxheap_array_t_addn_with_ids__SWIG_0(
self, args);
72542 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'float_maxheap_array_t_addn_with_ids'.\n"
72543 " Possible C/C++ prototypes are:\n"
72544 " faiss::HeapArray< faiss::CMax< float,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMax< float,long > >::T const *,faiss::HeapArray< faiss::CMax< float,long > >::TI const *,long,size_t,long)\n"
72545 " faiss::HeapArray< faiss::CMax< float,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMax< float,long > >::T const *,faiss::HeapArray< faiss::CMax< float,long > >::TI const *,long,size_t)\n"
72546 " faiss::HeapArray< faiss::CMax< float,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMax< float,long > >::T const *,faiss::HeapArray< faiss::CMax< float,long > >::TI const *,long)\n"
72547 " faiss::HeapArray< faiss::CMax< float,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMax< float,long > >::T const *,faiss::HeapArray< faiss::CMax< float,long > >::TI const *)\n"
72548 " faiss::HeapArray< faiss::CMax< float,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMax< float,long > >::T const *)\n");
72553 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_reorder(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72554 PyObject *resultobj = 0;
72558 PyObject * obj0 = 0 ;
72560 if (!PyArg_ParseTuple(args,(
char *)
"O:float_maxheap_array_t_reorder",&obj0)) SWIG_fail;
72561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
72562 if (!SWIG_IsOK(res1)) {
72563 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_reorder" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
72567 resultobj = SWIG_Py_Void();
72574 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_per_line_extrema(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72575 PyObject *resultobj = 0;
72585 PyObject * obj0 = 0 ;
72586 PyObject * obj1 = 0 ;
72587 PyObject * obj2 = 0 ;
72589 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_maxheap_array_t_per_line_extrema",&obj0,&obj1,&obj2)) SWIG_fail;
72590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
72591 if (!SWIG_IsOK(res1)) {
72592 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_per_line_extrema" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > const *""'");
72595 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
72596 if (!SWIG_IsOK(res2)) {
72597 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "float_maxheap_array_t_per_line_extrema" "', argument " "2"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::T *""'");
72600 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
72601 if (!SWIG_IsOK(res3)) {
72602 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "float_maxheap_array_t_per_line_extrema" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::TI *""'");
72606 resultobj = SWIG_Py_Void();
72613 SWIGINTERN PyObject *_wrap_new_float_maxheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72614 PyObject *resultobj = 0;
72617 if (!PyArg_ParseTuple(args,(
char *)
":new_float_maxheap_array_t")) SWIG_fail;
72619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, SWIG_POINTER_NEW | 0 );
72626 SWIGINTERN PyObject *_wrap_delete_float_maxheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72627 PyObject *resultobj = 0;
72631 PyObject * obj0 = 0 ;
72633 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_float_maxheap_array_t",&obj0)) SWIG_fail;
72634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, SWIG_POINTER_DISOWN | 0 );
72635 if (!SWIG_IsOK(res1)) {
72636 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_float_maxheap_array_t" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
72640 resultobj = SWIG_Py_Void();
72647 SWIGINTERN PyObject *float_maxheap_array_t_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72649 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
72650 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, SWIG_NewClientData(obj));
72651 return SWIG_Py_Void();
72654 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_nh_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72655 PyObject *resultobj = 0;
72662 PyObject * obj0 = 0 ;
72663 PyObject * obj1 = 0 ;
72665 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_maxheap_array_t_nh_set",&obj0,&obj1)) SWIG_fail;
72666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
72667 if (!SWIG_IsOK(res1)) {
72668 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_nh_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
72671 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
72672 if (!SWIG_IsOK(ecode2)) {
72673 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_nh_set" "', argument " "2"" of type '" "size_t""'");
72675 arg2 =
static_cast< size_t >(val2);
72676 if (arg1) (arg1)->nh = arg2;
72677 resultobj = SWIG_Py_Void();
72684 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_nh_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72685 PyObject *resultobj = 0;
72689 PyObject * obj0 = 0 ;
72692 if (!PyArg_ParseTuple(args,(
char *)
"O:int_maxheap_array_t_nh_get",&obj0)) SWIG_fail;
72693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
72694 if (!SWIG_IsOK(res1)) {
72695 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_nh_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
72698 result = (size_t) ((arg1)->nh);
72699 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
72706 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_k_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72707 PyObject *resultobj = 0;
72714 PyObject * obj0 = 0 ;
72715 PyObject * obj1 = 0 ;
72717 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_maxheap_array_t_k_set",&obj0,&obj1)) SWIG_fail;
72718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
72719 if (!SWIG_IsOK(res1)) {
72720 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_k_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
72723 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
72724 if (!SWIG_IsOK(ecode2)) {
72725 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_k_set" "', argument " "2"" of type '" "size_t""'");
72727 arg2 =
static_cast< size_t >(val2);
72728 if (arg1) (arg1)->k = arg2;
72729 resultobj = SWIG_Py_Void();
72736 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_k_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72737 PyObject *resultobj = 0;
72741 PyObject * obj0 = 0 ;
72744 if (!PyArg_ParseTuple(args,(
char *)
"O:int_maxheap_array_t_k_get",&obj0)) SWIG_fail;
72745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
72746 if (!SWIG_IsOK(res1)) {
72747 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_k_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
72750 result = (size_t) ((arg1)->k);
72751 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
72758 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_ids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72759 PyObject *resultobj = 0;
72766 PyObject * obj0 = 0 ;
72767 PyObject * obj1 = 0 ;
72769 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_maxheap_array_t_ids_set",&obj0,&obj1)) SWIG_fail;
72770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
72771 if (!SWIG_IsOK(res1)) {
72772 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_ids_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
72775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, SWIG_POINTER_DISOWN | 0 );
72776 if (!SWIG_IsOK(res2)) {
72777 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "int_maxheap_array_t_ids_set" "', argument " "2"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::TI *""'");
72780 if (arg1) (arg1)->ids = arg2;
72781 resultobj = SWIG_Py_Void();
72788 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_ids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72789 PyObject *resultobj = 0;
72793 PyObject * obj0 = 0 ;
72796 if (!PyArg_ParseTuple(args,(
char *)
"O:int_maxheap_array_t_ids_get",&obj0)) SWIG_fail;
72797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
72798 if (!SWIG_IsOK(res1)) {
72799 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_ids_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
72803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
72810 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_val_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72811 PyObject *resultobj = 0;
72818 PyObject * obj0 = 0 ;
72819 PyObject * obj1 = 0 ;
72821 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_maxheap_array_t_val_set",&obj0,&obj1)) SWIG_fail;
72822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
72823 if (!SWIG_IsOK(res1)) {
72824 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_val_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
72827 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
72828 if (!SWIG_IsOK(res2)) {
72829 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "int_maxheap_array_t_val_set" "', argument " "2"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::T *""'");
72832 if (arg1) (arg1)->val = arg2;
72833 resultobj = SWIG_Py_Void();
72840 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_val_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72841 PyObject *resultobj = 0;
72845 PyObject * obj0 = 0 ;
72848 if (!PyArg_ParseTuple(args,(
char *)
"O:int_maxheap_array_t_val_get",&obj0)) SWIG_fail;
72849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
72850 if (!SWIG_IsOK(res1)) {
72851 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_val_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
72855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
72862 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_get_val(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72863 PyObject *resultobj = 0;
72870 PyObject * obj0 = 0 ;
72871 PyObject * obj1 = 0 ;
72874 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_maxheap_array_t_get_val",&obj0,&obj1)) SWIG_fail;
72875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
72876 if (!SWIG_IsOK(res1)) {
72877 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_get_val" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
72880 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
72881 if (!SWIG_IsOK(ecode2)) {
72882 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_get_val" "', argument " "2"" of type '" "size_t""'");
72884 arg2 =
static_cast< size_t >(val2);
72886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
72893 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72894 PyObject *resultobj = 0;
72901 PyObject * obj0 = 0 ;
72902 PyObject * obj1 = 0 ;
72905 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_maxheap_array_t_get_ids",&obj0,&obj1)) SWIG_fail;
72906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
72907 if (!SWIG_IsOK(res1)) {
72908 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_get_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
72911 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
72912 if (!SWIG_IsOK(ecode2)) {
72913 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_get_ids" "', argument " "2"" of type '" "size_t""'");
72915 arg2 =
static_cast< size_t >(val2);
72917 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
72924 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_heapify(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72925 PyObject *resultobj = 0;
72929 PyObject * obj0 = 0 ;
72931 if (!PyArg_ParseTuple(args,(
char *)
"O:int_maxheap_array_t_heapify",&obj0)) SWIG_fail;
72932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
72933 if (!SWIG_IsOK(res1)) {
72934 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_heapify" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
72938 resultobj = SWIG_Py_Void();
72945 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72946 PyObject *resultobj = 0;
72965 PyObject * obj0 = 0 ;
72966 PyObject * obj1 = 0 ;
72967 PyObject * obj2 = 0 ;
72968 PyObject * obj3 = 0 ;
72969 PyObject * obj4 = 0 ;
72970 PyObject * obj5 = 0 ;
72972 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:int_maxheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
72974 if (!SWIG_IsOK(res1)) {
72975 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
72978 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
72979 if (!SWIG_IsOK(ecode2)) {
72980 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
72982 arg2 =
static_cast< size_t >(val2);
72983 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
72984 if (!SWIG_IsOK(res3)) {
72985 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_maxheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::T const *""'");
72988 ecode4 = SWIG_AsVal_long(obj3, &val4);
72989 if (!SWIG_IsOK(ecode4)) {
72990 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "int_maxheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::TI""'");
72993 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
72994 if (!SWIG_IsOK(ecode5)) {
72995 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_maxheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
72997 arg5 =
static_cast< size_t >(val5);
72998 ecode6 = SWIG_AsVal_long(obj5, &val6);
72999 if (!SWIG_IsOK(ecode6)) {
73000 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "int_maxheap_array_t_addn" "', argument " "6"" of type '" "long""'");
73002 arg6 =
static_cast< long >(val6);
73004 resultobj = SWIG_Py_Void();
73011 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73012 PyObject *resultobj = 0;
73028 PyObject * obj0 = 0 ;
73029 PyObject * obj1 = 0 ;
73030 PyObject * obj2 = 0 ;
73031 PyObject * obj3 = 0 ;
73032 PyObject * obj4 = 0 ;
73034 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:int_maxheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
73035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
73036 if (!SWIG_IsOK(res1)) {
73037 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
73040 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
73041 if (!SWIG_IsOK(ecode2)) {
73042 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
73044 arg2 =
static_cast< size_t >(val2);
73045 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
73046 if (!SWIG_IsOK(res3)) {
73047 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_maxheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::T const *""'");
73050 ecode4 = SWIG_AsVal_long(obj3, &val4);
73051 if (!SWIG_IsOK(ecode4)) {
73052 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "int_maxheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::TI""'");
73055 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
73056 if (!SWIG_IsOK(ecode5)) {
73057 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_maxheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
73059 arg5 =
static_cast< size_t >(val5);
73061 resultobj = SWIG_Py_Void();
73068 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73069 PyObject *resultobj = 0;
73082 PyObject * obj0 = 0 ;
73083 PyObject * obj1 = 0 ;
73084 PyObject * obj2 = 0 ;
73085 PyObject * obj3 = 0 ;
73087 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:int_maxheap_array_t_addn",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
73088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
73089 if (!SWIG_IsOK(res1)) {
73090 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
73093 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
73094 if (!SWIG_IsOK(ecode2)) {
73095 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
73097 arg2 =
static_cast< size_t >(val2);
73098 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
73099 if (!SWIG_IsOK(res3)) {
73100 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_maxheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::T const *""'");
73103 ecode4 = SWIG_AsVal_long(obj3, &val4);
73104 if (!SWIG_IsOK(ecode4)) {
73105 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "int_maxheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::TI""'");
73109 resultobj = SWIG_Py_Void();
73116 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
73117 PyObject *resultobj = 0;
73127 PyObject * obj0 = 0 ;
73128 PyObject * obj1 = 0 ;
73129 PyObject * obj2 = 0 ;
73131 if (!PyArg_ParseTuple(args,(
char *)
"OOO:int_maxheap_array_t_addn",&obj0,&obj1,&obj2)) SWIG_fail;
73132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
73133 if (!SWIG_IsOK(res1)) {
73134 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
73137 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
73138 if (!SWIG_IsOK(ecode2)) {
73139 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
73141 arg2 =
static_cast< size_t >(val2);
73142 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
73143 if (!SWIG_IsOK(res3)) {
73144 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_maxheap_array_t_addn" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::T const *""'");
73148 resultobj = SWIG_Py_Void();
73155 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn(PyObject *self, PyObject *args) {
73157 PyObject *argv[7] = {
73162 if (!PyTuple_Check(args)) SWIG_fail;
73163 argc = args ? PyObject_Length(args) : 0;
73164 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
73165 argv[ii] = PyTuple_GET_ITEM(args,ii);
73170 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
73171 _v = SWIG_CheckState(res);
73174 int res = SWIG_AsVal_size_t(argv[1], NULL);
73175 _v = SWIG_CheckState(res);
73179 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
73180 _v = SWIG_CheckState(res);
73182 return _wrap_int_maxheap_array_t_addn__SWIG_3(
self, args);
73190 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
73191 _v = SWIG_CheckState(res);
73194 int res = SWIG_AsVal_size_t(argv[1], NULL);
73195 _v = SWIG_CheckState(res);
73199 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
73200 _v = SWIG_CheckState(res);
73203 int res = SWIG_AsVal_long(argv[3], NULL);
73204 _v = SWIG_CheckState(res);
73207 return _wrap_int_maxheap_array_t_addn__SWIG_2(
self, args);
73216 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
73217 _v = SWIG_CheckState(res);
73220 int res = SWIG_AsVal_size_t(argv[1], NULL);
73221 _v = SWIG_CheckState(res);
73225 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
73226 _v = SWIG_CheckState(res);
73229 int res = SWIG_AsVal_long(argv[3], NULL);
73230 _v = SWIG_CheckState(res);
73234 int res = SWIG_AsVal_size_t(argv[4], NULL);
73235 _v = SWIG_CheckState(res);
73238 return _wrap_int_maxheap_array_t_addn__SWIG_1(
self, args);
73248 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
73249 _v = SWIG_CheckState(res);
73252 int res = SWIG_AsVal_size_t(argv[1], NULL);
73253 _v = SWIG_CheckState(res);
73257 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
73258 _v = SWIG_CheckState(res);
73261 int res = SWIG_AsVal_long(argv[3], NULL);
73262 _v = SWIG_CheckState(res);
73266 int res = SWIG_AsVal_size_t(argv[4], NULL);
73267 _v = SWIG_CheckState(res);
73271 int res = SWIG_AsVal_long(argv[5], NULL);
73272 _v = SWIG_CheckState(res);
73275 return _wrap_int_maxheap_array_t_addn__SWIG_0(
self, args);
73285 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'int_maxheap_array_t_addn'.\n"
73286 " Possible C/C++ prototypes are:\n"
73287 " faiss::HeapArray< faiss::CMax< int,long > >::addn(size_t,faiss::HeapArray< faiss::CMax< int,long > >::T const *,faiss::HeapArray< faiss::CMax< int,long > >::TI,size_t,long)\n"
73288 " faiss::HeapArray< faiss::CMax< int,long > >::addn(size_t,faiss::HeapArray< faiss::CMax< int,long > >::T const *,faiss::HeapArray< faiss::CMax< int,long > >::TI,size_t)\n"
73289 " faiss::HeapArray< faiss::CMax< int,long > >::addn(size_t,faiss::HeapArray< faiss::CMax< int,long > >::T const *,faiss::HeapArray< faiss::CMax< int,long > >::TI)\n"
73290 " faiss::HeapArray< faiss::CMax< int,long > >::addn(size_t,faiss::HeapArray< faiss::CMax< int,long > >::T const *)\n");
73295 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn_with_ids__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73296 PyObject *resultobj = 0;
73318 PyObject * obj0 = 0 ;
73319 PyObject * obj1 = 0 ;
73320 PyObject * obj2 = 0 ;
73321 PyObject * obj3 = 0 ;
73322 PyObject * obj4 = 0 ;
73323 PyObject * obj5 = 0 ;
73324 PyObject * obj6 = 0 ;
73326 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:int_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
73327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
73328 if (!SWIG_IsOK(res1)) {
73329 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
73332 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
73333 if (!SWIG_IsOK(ecode2)) {
73334 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
73336 arg2 =
static_cast< size_t >(val2);
73337 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
73338 if (!SWIG_IsOK(res3)) {
73339 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::T const *""'");
73342 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
73343 if (!SWIG_IsOK(res4)) {
73344 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::TI const *""'");
73347 ecode5 = SWIG_AsVal_long(obj4, &val5);
73348 if (!SWIG_IsOK(ecode5)) {
73349 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
73351 arg5 =
static_cast< long >(val5);
73352 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
73353 if (!SWIG_IsOK(ecode6)) {
73354 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
73356 arg6 =
static_cast< size_t >(val6);
73357 ecode7 = SWIG_AsVal_long(obj6, &val7);
73358 if (!SWIG_IsOK(ecode7)) {
73359 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "7"" of type '" "long""'");
73361 arg7 =
static_cast< long >(val7);
73363 resultobj = SWIG_Py_Void();
73370 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn_with_ids__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73371 PyObject *resultobj = 0;
73390 PyObject * obj0 = 0 ;
73391 PyObject * obj1 = 0 ;
73392 PyObject * obj2 = 0 ;
73393 PyObject * obj3 = 0 ;
73394 PyObject * obj4 = 0 ;
73395 PyObject * obj5 = 0 ;
73397 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:int_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
73398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
73399 if (!SWIG_IsOK(res1)) {
73400 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
73403 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
73404 if (!SWIG_IsOK(ecode2)) {
73405 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
73407 arg2 =
static_cast< size_t >(val2);
73408 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
73409 if (!SWIG_IsOK(res3)) {
73410 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::T const *""'");
73413 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
73414 if (!SWIG_IsOK(res4)) {
73415 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::TI const *""'");
73418 ecode5 = SWIG_AsVal_long(obj4, &val5);
73419 if (!SWIG_IsOK(ecode5)) {
73420 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
73422 arg5 =
static_cast< long >(val5);
73423 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
73424 if (!SWIG_IsOK(ecode6)) {
73425 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
73427 arg6 =
static_cast< size_t >(val6);
73429 resultobj = SWIG_Py_Void();
73436 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn_with_ids__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73437 PyObject *resultobj = 0;
73453 PyObject * obj0 = 0 ;
73454 PyObject * obj1 = 0 ;
73455 PyObject * obj2 = 0 ;
73456 PyObject * obj3 = 0 ;
73457 PyObject * obj4 = 0 ;
73459 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:int_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
73460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
73461 if (!SWIG_IsOK(res1)) {
73462 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
73465 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
73466 if (!SWIG_IsOK(ecode2)) {
73467 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
73469 arg2 =
static_cast< size_t >(val2);
73470 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
73471 if (!SWIG_IsOK(res3)) {
73472 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::T const *""'");
73475 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
73476 if (!SWIG_IsOK(res4)) {
73477 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::TI const *""'");
73480 ecode5 = SWIG_AsVal_long(obj4, &val5);
73481 if (!SWIG_IsOK(ecode5)) {
73482 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
73484 arg5 =
static_cast< long >(val5);
73486 resultobj = SWIG_Py_Void();
73493 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn_with_ids__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73494 PyObject *resultobj = 0;
73507 PyObject * obj0 = 0 ;
73508 PyObject * obj1 = 0 ;
73509 PyObject * obj2 = 0 ;
73510 PyObject * obj3 = 0 ;
73512 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:int_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
73513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
73514 if (!SWIG_IsOK(res1)) {
73515 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
73518 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
73519 if (!SWIG_IsOK(ecode2)) {
73520 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
73522 arg2 =
static_cast< size_t >(val2);
73523 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
73524 if (!SWIG_IsOK(res3)) {
73525 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::T const *""'");
73528 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
73529 if (!SWIG_IsOK(res4)) {
73530 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::TI const *""'");
73534 resultobj = SWIG_Py_Void();
73541 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn_with_ids__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
73542 PyObject *resultobj = 0;
73552 PyObject * obj0 = 0 ;
73553 PyObject * obj1 = 0 ;
73554 PyObject * obj2 = 0 ;
73556 if (!PyArg_ParseTuple(args,(
char *)
"OOO:int_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2)) SWIG_fail;
73557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
73558 if (!SWIG_IsOK(res1)) {
73559 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
73562 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
73563 if (!SWIG_IsOK(ecode2)) {
73564 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
73566 arg2 =
static_cast< size_t >(val2);
73567 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
73568 if (!SWIG_IsOK(res3)) {
73569 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::T const *""'");
73573 resultobj = SWIG_Py_Void();
73580 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn_with_ids(PyObject *self, PyObject *args) {
73582 PyObject *argv[8] = {
73587 if (!PyTuple_Check(args)) SWIG_fail;
73588 argc = args ? PyObject_Length(args) : 0;
73589 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
73590 argv[ii] = PyTuple_GET_ITEM(args,ii);
73595 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
73596 _v = SWIG_CheckState(res);
73599 int res = SWIG_AsVal_size_t(argv[1], NULL);
73600 _v = SWIG_CheckState(res);
73604 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
73605 _v = SWIG_CheckState(res);
73607 return _wrap_int_maxheap_array_t_addn_with_ids__SWIG_4(
self, args);
73615 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
73616 _v = SWIG_CheckState(res);
73619 int res = SWIG_AsVal_size_t(argv[1], NULL);
73620 _v = SWIG_CheckState(res);
73624 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
73625 _v = SWIG_CheckState(res);
73628 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
73629 _v = SWIG_CheckState(res);
73631 return _wrap_int_maxheap_array_t_addn_with_ids__SWIG_3(
self, args);
73640 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
73641 _v = SWIG_CheckState(res);
73644 int res = SWIG_AsVal_size_t(argv[1], NULL);
73645 _v = SWIG_CheckState(res);
73649 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
73650 _v = SWIG_CheckState(res);
73653 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
73654 _v = SWIG_CheckState(res);
73657 int res = SWIG_AsVal_long(argv[4], NULL);
73658 _v = SWIG_CheckState(res);
73661 return _wrap_int_maxheap_array_t_addn_with_ids__SWIG_2(
self, args);
73671 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
73672 _v = SWIG_CheckState(res);
73675 int res = SWIG_AsVal_size_t(argv[1], NULL);
73676 _v = SWIG_CheckState(res);
73680 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
73681 _v = SWIG_CheckState(res);
73684 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
73685 _v = SWIG_CheckState(res);
73688 int res = SWIG_AsVal_long(argv[4], NULL);
73689 _v = SWIG_CheckState(res);
73693 int res = SWIG_AsVal_size_t(argv[5], NULL);
73694 _v = SWIG_CheckState(res);
73697 return _wrap_int_maxheap_array_t_addn_with_ids__SWIG_1(
self, args);
73708 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
73709 _v = SWIG_CheckState(res);
73712 int res = SWIG_AsVal_size_t(argv[1], NULL);
73713 _v = SWIG_CheckState(res);
73717 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
73718 _v = SWIG_CheckState(res);
73721 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
73722 _v = SWIG_CheckState(res);
73725 int res = SWIG_AsVal_long(argv[4], NULL);
73726 _v = SWIG_CheckState(res);
73730 int res = SWIG_AsVal_size_t(argv[5], NULL);
73731 _v = SWIG_CheckState(res);
73735 int res = SWIG_AsVal_long(argv[6], NULL);
73736 _v = SWIG_CheckState(res);
73739 return _wrap_int_maxheap_array_t_addn_with_ids__SWIG_0(
self, args);
73750 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'int_maxheap_array_t_addn_with_ids'.\n"
73751 " Possible C/C++ prototypes are:\n"
73752 " faiss::HeapArray< faiss::CMax< int,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMax< int,long > >::T const *,faiss::HeapArray< faiss::CMax< int,long > >::TI const *,long,size_t,long)\n"
73753 " faiss::HeapArray< faiss::CMax< int,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMax< int,long > >::T const *,faiss::HeapArray< faiss::CMax< int,long > >::TI const *,long,size_t)\n"
73754 " faiss::HeapArray< faiss::CMax< int,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMax< int,long > >::T const *,faiss::HeapArray< faiss::CMax< int,long > >::TI const *,long)\n"
73755 " faiss::HeapArray< faiss::CMax< int,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMax< int,long > >::T const *,faiss::HeapArray< faiss::CMax< int,long > >::TI const *)\n"
73756 " faiss::HeapArray< faiss::CMax< int,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMax< int,long > >::T const *)\n");
73761 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_reorder(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73762 PyObject *resultobj = 0;
73766 PyObject * obj0 = 0 ;
73768 if (!PyArg_ParseTuple(args,(
char *)
"O:int_maxheap_array_t_reorder",&obj0)) SWIG_fail;
73769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
73770 if (!SWIG_IsOK(res1)) {
73771 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_reorder" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
73775 resultobj = SWIG_Py_Void();
73782 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_per_line_extrema(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73783 PyObject *resultobj = 0;
73793 PyObject * obj0 = 0 ;
73794 PyObject * obj1 = 0 ;
73795 PyObject * obj2 = 0 ;
73797 if (!PyArg_ParseTuple(args,(
char *)
"OOO:int_maxheap_array_t_per_line_extrema",&obj0,&obj1,&obj2)) SWIG_fail;
73798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
73799 if (!SWIG_IsOK(res1)) {
73800 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_per_line_extrema" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > const *""'");
73803 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
73804 if (!SWIG_IsOK(res2)) {
73805 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "int_maxheap_array_t_per_line_extrema" "', argument " "2"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::T *""'");
73808 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
73809 if (!SWIG_IsOK(res3)) {
73810 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "int_maxheap_array_t_per_line_extrema" "', argument " "3"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::TI *""'");
73814 resultobj = SWIG_Py_Void();
73821 SWIGINTERN PyObject *_wrap_new_int_maxheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73822 PyObject *resultobj = 0;
73825 if (!PyArg_ParseTuple(args,(
char *)
":new_int_maxheap_array_t")) SWIG_fail;
73827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, SWIG_POINTER_NEW | 0 );
73834 SWIGINTERN PyObject *_wrap_delete_int_maxheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73835 PyObject *resultobj = 0;
73839 PyObject * obj0 = 0 ;
73841 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_int_maxheap_array_t",&obj0)) SWIG_fail;
73842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, SWIG_POINTER_DISOWN | 0 );
73843 if (!SWIG_IsOK(res1)) {
73844 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_int_maxheap_array_t" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
73848 resultobj = SWIG_Py_Void();
73855 SWIGINTERN PyObject *int_maxheap_array_t_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73857 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
73858 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, SWIG_NewClientData(obj));
73859 return SWIG_Py_Void();
73862 SWIGINTERN PyObject *_wrap_omp_set_num_threads(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73863 PyObject *resultobj = 0;
73867 PyObject * obj0 = 0 ;
73869 if (!PyArg_ParseTuple(args,(
char *)
"O:omp_set_num_threads",&obj0)) SWIG_fail;
73870 ecode1 = SWIG_AsVal_int(obj0, &val1);
73871 if (!SWIG_IsOK(ecode1)) {
73872 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "omp_set_num_threads" "', argument " "1"" of type '" "int""'");
73874 arg1 =
static_cast< int >(val1);
73875 omp_set_num_threads(arg1);
73876 resultobj = SWIG_Py_Void();
73883 SWIGINTERN PyObject *_wrap_omp_get_max_threads(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73884 PyObject *resultobj = 0;
73887 if (!PyArg_ParseTuple(args,(
char *)
":omp_get_max_threads")) SWIG_fail;
73888 result = (int)omp_get_max_threads();
73889 resultobj = SWIG_From_int(static_cast< int >(result));
73896 SWIGINTERN PyObject *_wrap_memcpy(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73897 PyObject *resultobj = 0;
73898 void *arg1 = (
void *) 0 ;
73899 void *arg2 = (
void *) 0 ;
73905 PyObject * obj0 = 0 ;
73906 PyObject * obj1 = 0 ;
73907 PyObject * obj2 = 0 ;
73910 if (!PyArg_ParseTuple(args,(
char *)
"OOO:memcpy",&obj0,&obj1,&obj2)) SWIG_fail;
73911 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
73912 if (!SWIG_IsOK(res1)) {
73913 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "memcpy" "', argument " "1"" of type '" "void *""'");
73915 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
73916 if (!SWIG_IsOK(res2)) {
73917 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "memcpy" "', argument " "2"" of type '" "void const *""'");
73919 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
73920 if (!SWIG_IsOK(ecode3)) {
73921 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "memcpy" "', argument " "3"" of type '" "size_t""'");
73923 arg3 =
static_cast< size_t >(val3);
73924 result = (
void *)memcpy(arg1,(
void const *)arg2,arg3);
73925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
73932 SWIGINTERN PyObject *_wrap_cast_integer_to_float_ptr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73933 PyObject *resultobj = 0;
73937 PyObject * obj0 = 0 ;
73938 float *result = 0 ;
73940 if (!PyArg_ParseTuple(args,(
char *)
"O:cast_integer_to_float_ptr",&obj0)) SWIG_fail;
73941 ecode1 = SWIG_AsVal_long(obj0, &val1);
73942 if (!SWIG_IsOK(ecode1)) {
73943 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "cast_integer_to_float_ptr" "', argument " "1"" of type '" "long""'");
73945 arg1 =
static_cast< long >(val1);
73946 result = (
float *)cast_integer_to_float_ptr(arg1);
73947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
73954 SWIGINTERN PyObject *_wrap_cast_integer_to_long_ptr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73955 PyObject *resultobj = 0;
73959 PyObject * obj0 = 0 ;
73962 if (!PyArg_ParseTuple(args,(
char *)
"O:cast_integer_to_long_ptr",&obj0)) SWIG_fail;
73963 ecode1 = SWIG_AsVal_long(obj0, &val1);
73964 if (!SWIG_IsOK(ecode1)) {
73965 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "cast_integer_to_long_ptr" "', argument " "1"" of type '" "long""'");
73967 arg1 =
static_cast< long >(val1);
73968 result = (
long *)cast_integer_to_long_ptr(arg1);
73969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
73976 SWIGINTERN PyObject *_wrap_cast_integer_to_int_ptr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73977 PyObject *resultobj = 0;
73981 PyObject * obj0 = 0 ;
73984 if (!PyArg_ParseTuple(args,(
char *)
"O:cast_integer_to_int_ptr",&obj0)) SWIG_fail;
73985 ecode1 = SWIG_AsVal_long(obj0, &val1);
73986 if (!SWIG_IsOK(ecode1)) {
73987 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "cast_integer_to_int_ptr" "', argument " "1"" of type '" "long""'");
73989 arg1 =
static_cast< long >(val1);
73990 result = (
int *)cast_integer_to_int_ptr(arg1);
73991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
73998 SWIGINTERN PyObject *_wrap_RangeSearchResult_nq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73999 PyObject *resultobj = 0;
74006 PyObject * obj0 = 0 ;
74007 PyObject * obj1 = 0 ;
74009 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchResult_nq_set",&obj0,&obj1)) SWIG_fail;
74010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
74011 if (!SWIG_IsOK(res1)) {
74012 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_nq_set" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
74015 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
74016 if (!SWIG_IsOK(ecode2)) {
74017 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RangeSearchResult_nq_set" "', argument " "2"" of type '" "size_t""'");
74019 arg2 =
static_cast< size_t >(val2);
74020 if (arg1) (arg1)->nq = arg2;
74021 resultobj = SWIG_Py_Void();
74028 SWIGINTERN PyObject *_wrap_RangeSearchResult_nq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74029 PyObject *resultobj = 0;
74033 PyObject * obj0 = 0 ;
74036 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchResult_nq_get",&obj0)) SWIG_fail;
74037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
74038 if (!SWIG_IsOK(res1)) {
74039 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_nq_get" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
74042 result = (size_t) ((arg1)->nq);
74043 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
74050 SWIGINTERN PyObject *_wrap_RangeSearchResult_lims_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74051 PyObject *resultobj = 0;
74053 size_t *arg2 = (
size_t *) 0 ;
74058 PyObject * obj0 = 0 ;
74059 PyObject * obj1 = 0 ;
74061 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchResult_lims_set",&obj0,&obj1)) SWIG_fail;
74062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
74063 if (!SWIG_IsOK(res1)) {
74064 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_lims_set" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
74067 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_long, SWIG_POINTER_DISOWN | 0 );
74068 if (!SWIG_IsOK(res2)) {
74069 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RangeSearchResult_lims_set" "', argument " "2"" of type '" "size_t *""'");
74071 arg2 =
reinterpret_cast< size_t *
>(argp2);
74072 if (arg1) (arg1)->lims = arg2;
74073 resultobj = SWIG_Py_Void();
74080 SWIGINTERN PyObject *_wrap_RangeSearchResult_lims_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74081 PyObject *resultobj = 0;
74085 PyObject * obj0 = 0 ;
74086 size_t *result = 0 ;
74088 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchResult_lims_get",&obj0)) SWIG_fail;
74089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
74090 if (!SWIG_IsOK(res1)) {
74091 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_lims_get" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
74094 result = (
size_t *) ((arg1)->lims);
74095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long, 0 | 0 );
74102 SWIGINTERN PyObject *_wrap_RangeSearchResult_labels_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74103 PyObject *resultobj = 0;
74105 faiss::RangeSearchResult::idx_t *arg2 = (faiss::RangeSearchResult::idx_t *) 0 ;
74110 PyObject * obj0 = 0 ;
74111 PyObject * obj1 = 0 ;
74113 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchResult_labels_set",&obj0,&obj1)) SWIG_fail;
74114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
74115 if (!SWIG_IsOK(res1)) {
74116 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_labels_set" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
74119 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, SWIG_POINTER_DISOWN | 0 );
74120 if (!SWIG_IsOK(res2)) {
74121 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RangeSearchResult_labels_set" "', argument " "2"" of type '" "faiss::RangeSearchResult::idx_t *""'");
74123 arg2 =
reinterpret_cast< faiss::RangeSearchResult::idx_t *
>(argp2);
74124 if (arg1) (arg1)->labels = arg2;
74125 resultobj = SWIG_Py_Void();
74132 SWIGINTERN PyObject *_wrap_RangeSearchResult_labels_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74133 PyObject *resultobj = 0;
74137 PyObject * obj0 = 0 ;
74138 faiss::RangeSearchResult::idx_t *result = 0 ;
74140 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchResult_labels_get",&obj0)) SWIG_fail;
74141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
74142 if (!SWIG_IsOK(res1)) {
74143 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_labels_get" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
74146 result = (faiss::RangeSearchResult::idx_t *) ((arg1)->labels);
74147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
74154 SWIGINTERN PyObject *_wrap_RangeSearchResult_distances_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74155 PyObject *resultobj = 0;
74157 float *arg2 = (
float *) 0 ;
74162 PyObject * obj0 = 0 ;
74163 PyObject * obj1 = 0 ;
74165 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchResult_distances_set",&obj0,&obj1)) SWIG_fail;
74166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
74167 if (!SWIG_IsOK(res1)) {
74168 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_distances_set" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
74171 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
74172 if (!SWIG_IsOK(res2)) {
74173 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RangeSearchResult_distances_set" "', argument " "2"" of type '" "float *""'");
74175 arg2 =
reinterpret_cast< float *
>(argp2);
74176 if (arg1) (arg1)->distances = arg2;
74177 resultobj = SWIG_Py_Void();
74184 SWIGINTERN PyObject *_wrap_RangeSearchResult_distances_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74185 PyObject *resultobj = 0;
74189 PyObject * obj0 = 0 ;
74190 float *result = 0 ;
74192 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchResult_distances_get",&obj0)) SWIG_fail;
74193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
74194 if (!SWIG_IsOK(res1)) {
74195 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_distances_get" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
74198 result = (
float *) ((arg1)->distances);
74199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
74206 SWIGINTERN PyObject *_wrap_RangeSearchResult_buffer_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74207 PyObject *resultobj = 0;
74214 PyObject * obj0 = 0 ;
74215 PyObject * obj1 = 0 ;
74217 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchResult_buffer_size_set",&obj0,&obj1)) SWIG_fail;
74218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
74219 if (!SWIG_IsOK(res1)) {
74220 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_buffer_size_set" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
74223 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
74224 if (!SWIG_IsOK(ecode2)) {
74225 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RangeSearchResult_buffer_size_set" "', argument " "2"" of type '" "size_t""'");
74227 arg2 =
static_cast< size_t >(val2);
74228 if (arg1) (arg1)->buffer_size = arg2;
74229 resultobj = SWIG_Py_Void();
74236 SWIGINTERN PyObject *_wrap_RangeSearchResult_buffer_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74237 PyObject *resultobj = 0;
74241 PyObject * obj0 = 0 ;
74244 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchResult_buffer_size_get",&obj0)) SWIG_fail;
74245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
74246 if (!SWIG_IsOK(res1)) {
74247 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_buffer_size_get" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
74250 result = (size_t) ((arg1)->buffer_size);
74251 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
74258 SWIGINTERN PyObject *_wrap_new_RangeSearchResult__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74259 PyObject *resultobj = 0;
74260 faiss::RangeSearchResult::idx_t arg1 ;
74266 PyObject * obj0 = 0 ;
74267 PyObject * obj1 = 0 ;
74270 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_RangeSearchResult",&obj0,&obj1)) SWIG_fail;
74271 ecode1 = SWIG_AsVal_long(obj0, &val1);
74272 if (!SWIG_IsOK(ecode1)) {
74273 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_RangeSearchResult" "', argument " "1"" of type '" "faiss::RangeSearchResult::idx_t""'");
74275 arg1 =
static_cast< faiss::RangeSearchResult::idx_t
>(val1);
74276 ecode2 = SWIG_AsVal_bool(obj1, &val2);
74277 if (!SWIG_IsOK(ecode2)) {
74278 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_RangeSearchResult" "', argument " "2"" of type '" "bool""'");
74280 arg2 =
static_cast< bool >(val2);
74282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RangeSearchResult, SWIG_POINTER_NEW | 0 );
74289 SWIGINTERN PyObject *_wrap_new_RangeSearchResult__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74290 PyObject *resultobj = 0;
74291 faiss::RangeSearchResult::idx_t arg1 ;
74294 PyObject * obj0 = 0 ;
74297 if (!PyArg_ParseTuple(args,(
char *)
"O:new_RangeSearchResult",&obj0)) SWIG_fail;
74298 ecode1 = SWIG_AsVal_long(obj0, &val1);
74299 if (!SWIG_IsOK(ecode1)) {
74300 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_RangeSearchResult" "', argument " "1"" of type '" "faiss::RangeSearchResult::idx_t""'");
74302 arg1 =
static_cast< faiss::RangeSearchResult::idx_t
>(val1);
74304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RangeSearchResult, SWIG_POINTER_NEW | 0 );
74311 SWIGINTERN PyObject *_wrap_new_RangeSearchResult(PyObject *
self, PyObject *args) {
74313 PyObject *argv[3] = {
74318 if (!PyTuple_Check(args)) SWIG_fail;
74319 argc = args ? PyObject_Length(args) : 0;
74320 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
74321 argv[ii] = PyTuple_GET_ITEM(args,ii);
74326 int res = SWIG_AsVal_long(argv[0], NULL);
74327 _v = SWIG_CheckState(res);
74330 return _wrap_new_RangeSearchResult__SWIG_1(
self, args);
74336 int res = SWIG_AsVal_long(argv[0], NULL);
74337 _v = SWIG_CheckState(res);
74341 int res = SWIG_AsVal_bool(argv[1], NULL);
74342 _v = SWIG_CheckState(res);
74345 return _wrap_new_RangeSearchResult__SWIG_0(
self, args);
74351 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_RangeSearchResult'.\n"
74352 " Possible C/C++ prototypes are:\n"
74353 " faiss::RangeSearchResult::RangeSearchResult(faiss::RangeSearchResult::idx_t,bool)\n"
74354 " faiss::RangeSearchResult::RangeSearchResult(faiss::RangeSearchResult::idx_t)\n");
74359 SWIGINTERN PyObject *_wrap_RangeSearchResult_do_allocation(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74360 PyObject *resultobj = 0;
74364 PyObject * obj0 = 0 ;
74366 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchResult_do_allocation",&obj0)) SWIG_fail;
74367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
74368 if (!SWIG_IsOK(res1)) {
74369 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_do_allocation" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
74372 (arg1)->do_allocation();
74373 resultobj = SWIG_Py_Void();
74380 SWIGINTERN PyObject *_wrap_delete_RangeSearchResult(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74381 PyObject *resultobj = 0;
74385 PyObject * obj0 = 0 ;
74387 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RangeSearchResult",&obj0)) SWIG_fail;
74388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, SWIG_POINTER_DISOWN | 0 );
74389 if (!SWIG_IsOK(res1)) {
74390 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RangeSearchResult" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
74394 resultobj = SWIG_Py_Void();
74401 SWIGINTERN PyObject *RangeSearchResult_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74403 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
74404 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__RangeSearchResult, SWIG_NewClientData(obj));
74405 return SWIG_Py_Void();
74408 SWIGINTERN PyObject *_wrap_IDSelector_is_member(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74409 PyObject *resultobj = 0;
74411 faiss::IDSelector::idx_t arg2 ;
74416 PyObject * obj0 = 0 ;
74417 PyObject * obj1 = 0 ;
74420 if (!PyArg_ParseTuple(args,(
char *)
"OO:IDSelector_is_member",&obj0,&obj1)) SWIG_fail;
74421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelector, 0 | 0 );
74422 if (!SWIG_IsOK(res1)) {
74423 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelector_is_member" "', argument " "1"" of type '" "faiss::IDSelector const *""'");
74426 ecode2 = SWIG_AsVal_long(obj1, &val2);
74427 if (!SWIG_IsOK(ecode2)) {
74428 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IDSelector_is_member" "', argument " "2"" of type '" "faiss::IDSelector::idx_t""'");
74430 arg2 =
static_cast< faiss::IDSelector::idx_t
>(val2);
74432 resultobj = SWIG_From_bool(static_cast< bool >(result));
74439 SWIGINTERN PyObject *_wrap_delete_IDSelector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74440 PyObject *resultobj = 0;
74444 PyObject * obj0 = 0 ;
74446 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IDSelector",&obj0)) SWIG_fail;
74447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelector, SWIG_POINTER_DISOWN | 0 );
74448 if (!SWIG_IsOK(res1)) {
74449 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IDSelector" "', argument " "1"" of type '" "faiss::IDSelector *""'");
74453 resultobj = SWIG_Py_Void();
74460 SWIGINTERN PyObject *IDSelector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74462 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
74463 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IDSelector, SWIG_NewClientData(obj));
74464 return SWIG_Py_Void();
74467 SWIGINTERN PyObject *_wrap_IDSelectorRange_imin_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74468 PyObject *resultobj = 0;
74470 faiss::IDSelector::idx_t arg2 ;
74475 PyObject * obj0 = 0 ;
74476 PyObject * obj1 = 0 ;
74478 if (!PyArg_ParseTuple(args,(
char *)
"OO:IDSelectorRange_imin_set",&obj0,&obj1)) SWIG_fail;
74479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorRange, 0 | 0 );
74480 if (!SWIG_IsOK(res1)) {
74481 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorRange_imin_set" "', argument " "1"" of type '" "faiss::IDSelectorRange *""'");
74484 ecode2 = SWIG_AsVal_long(obj1, &val2);
74485 if (!SWIG_IsOK(ecode2)) {
74486 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IDSelectorRange_imin_set" "', argument " "2"" of type '" "faiss::IDSelector::idx_t""'");
74488 arg2 =
static_cast< faiss::IDSelector::idx_t
>(val2);
74489 if (arg1) (arg1)->imin = arg2;
74490 resultobj = SWIG_Py_Void();
74497 SWIGINTERN PyObject *_wrap_IDSelectorRange_imin_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74498 PyObject *resultobj = 0;
74502 PyObject * obj0 = 0 ;
74503 faiss::IDSelector::idx_t result;
74505 if (!PyArg_ParseTuple(args,(
char *)
"O:IDSelectorRange_imin_get",&obj0)) SWIG_fail;
74506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorRange, 0 | 0 );
74507 if (!SWIG_IsOK(res1)) {
74508 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorRange_imin_get" "', argument " "1"" of type '" "faiss::IDSelectorRange *""'");
74511 result = (faiss::IDSelector::idx_t) ((arg1)->imin);
74512 resultobj = SWIG_From_long(static_cast< long >(result));
74519 SWIGINTERN PyObject *_wrap_IDSelectorRange_imax_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74520 PyObject *resultobj = 0;
74522 faiss::IDSelector::idx_t arg2 ;
74527 PyObject * obj0 = 0 ;
74528 PyObject * obj1 = 0 ;
74530 if (!PyArg_ParseTuple(args,(
char *)
"OO:IDSelectorRange_imax_set",&obj0,&obj1)) SWIG_fail;
74531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorRange, 0 | 0 );
74532 if (!SWIG_IsOK(res1)) {
74533 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorRange_imax_set" "', argument " "1"" of type '" "faiss::IDSelectorRange *""'");
74536 ecode2 = SWIG_AsVal_long(obj1, &val2);
74537 if (!SWIG_IsOK(ecode2)) {
74538 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IDSelectorRange_imax_set" "', argument " "2"" of type '" "faiss::IDSelector::idx_t""'");
74540 arg2 =
static_cast< faiss::IDSelector::idx_t
>(val2);
74541 if (arg1) (arg1)->imax = arg2;
74542 resultobj = SWIG_Py_Void();
74549 SWIGINTERN PyObject *_wrap_IDSelectorRange_imax_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74550 PyObject *resultobj = 0;
74554 PyObject * obj0 = 0 ;
74555 faiss::IDSelector::idx_t result;
74557 if (!PyArg_ParseTuple(args,(
char *)
"O:IDSelectorRange_imax_get",&obj0)) SWIG_fail;
74558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorRange, 0 | 0 );
74559 if (!SWIG_IsOK(res1)) {
74560 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorRange_imax_get" "', argument " "1"" of type '" "faiss::IDSelectorRange *""'");
74563 result = (faiss::IDSelector::idx_t) ((arg1)->imax);
74564 resultobj = SWIG_From_long(static_cast< long >(result));
74571 SWIGINTERN PyObject *_wrap_new_IDSelectorRange(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74572 PyObject *resultobj = 0;
74573 faiss::IDSelector::idx_t arg1 ;
74574 faiss::IDSelector::idx_t arg2 ;
74579 PyObject * obj0 = 0 ;
74580 PyObject * obj1 = 0 ;
74583 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IDSelectorRange",&obj0,&obj1)) SWIG_fail;
74584 ecode1 = SWIG_AsVal_long(obj0, &val1);
74585 if (!SWIG_IsOK(ecode1)) {
74586 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IDSelectorRange" "', argument " "1"" of type '" "faiss::IDSelector::idx_t""'");
74588 arg1 =
static_cast< faiss::IDSelector::idx_t
>(val1);
74589 ecode2 = SWIG_AsVal_long(obj1, &val2);
74590 if (!SWIG_IsOK(ecode2)) {
74591 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IDSelectorRange" "', argument " "2"" of type '" "faiss::IDSelector::idx_t""'");
74593 arg2 =
static_cast< faiss::IDSelector::idx_t
>(val2);
74595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IDSelectorRange, SWIG_POINTER_NEW | 0 );
74602 SWIGINTERN PyObject *_wrap_IDSelectorRange_is_member(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74603 PyObject *resultobj = 0;
74605 faiss::IDSelector::idx_t arg2 ;
74610 PyObject * obj0 = 0 ;
74611 PyObject * obj1 = 0 ;
74614 if (!PyArg_ParseTuple(args,(
char *)
"OO:IDSelectorRange_is_member",&obj0,&obj1)) SWIG_fail;
74615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorRange, 0 | 0 );
74616 if (!SWIG_IsOK(res1)) {
74617 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorRange_is_member" "', argument " "1"" of type '" "faiss::IDSelectorRange const *""'");
74620 ecode2 = SWIG_AsVal_long(obj1, &val2);
74621 if (!SWIG_IsOK(ecode2)) {
74622 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IDSelectorRange_is_member" "', argument " "2"" of type '" "faiss::IDSelector::idx_t""'");
74624 arg2 =
static_cast< faiss::IDSelector::idx_t
>(val2);
74626 resultobj = SWIG_From_bool(static_cast< bool >(result));
74633 SWIGINTERN PyObject *_wrap_delete_IDSelectorRange(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74634 PyObject *resultobj = 0;
74638 PyObject * obj0 = 0 ;
74640 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IDSelectorRange",&obj0)) SWIG_fail;
74641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorRange, SWIG_POINTER_DISOWN | 0 );
74642 if (!SWIG_IsOK(res1)) {
74643 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IDSelectorRange" "', argument " "1"" of type '" "faiss::IDSelectorRange *""'");
74647 resultobj = SWIG_Py_Void();
74654 SWIGINTERN PyObject *IDSelectorRange_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74656 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
74657 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IDSelectorRange, SWIG_NewClientData(obj));
74658 return SWIG_Py_Void();
74661 SWIGINTERN PyObject *_wrap_IDSelectorBatch_nbits_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74662 PyObject *resultobj = 0;
74669 PyObject * obj0 = 0 ;
74670 PyObject * obj1 = 0 ;
74672 if (!PyArg_ParseTuple(args,(
char *)
"OO:IDSelectorBatch_nbits_set",&obj0,&obj1)) SWIG_fail;
74673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorBatch, 0 | 0 );
74674 if (!SWIG_IsOK(res1)) {
74675 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorBatch_nbits_set" "', argument " "1"" of type '" "faiss::IDSelectorBatch *""'");
74678 ecode2 = SWIG_AsVal_int(obj1, &val2);
74679 if (!SWIG_IsOK(ecode2)) {
74680 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IDSelectorBatch_nbits_set" "', argument " "2"" of type '" "int""'");
74682 arg2 =
static_cast< int >(val2);
74683 if (arg1) (arg1)->nbits = arg2;
74684 resultobj = SWIG_Py_Void();
74691 SWIGINTERN PyObject *_wrap_IDSelectorBatch_nbits_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74692 PyObject *resultobj = 0;
74696 PyObject * obj0 = 0 ;
74699 if (!PyArg_ParseTuple(args,(
char *)
"O:IDSelectorBatch_nbits_get",&obj0)) SWIG_fail;
74700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorBatch, 0 | 0 );
74701 if (!SWIG_IsOK(res1)) {
74702 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorBatch_nbits_get" "', argument " "1"" of type '" "faiss::IDSelectorBatch *""'");
74705 result = (int) ((arg1)->nbits);
74706 resultobj = SWIG_From_int(static_cast< int >(result));
74713 SWIGINTERN PyObject *_wrap_IDSelectorBatch_mask_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74714 PyObject *resultobj = 0;
74716 faiss::IDSelector::idx_t arg2 ;
74721 PyObject * obj0 = 0 ;
74722 PyObject * obj1 = 0 ;
74724 if (!PyArg_ParseTuple(args,(
char *)
"OO:IDSelectorBatch_mask_set",&obj0,&obj1)) SWIG_fail;
74725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorBatch, 0 | 0 );
74726 if (!SWIG_IsOK(res1)) {
74727 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorBatch_mask_set" "', argument " "1"" of type '" "faiss::IDSelectorBatch *""'");
74730 ecode2 = SWIG_AsVal_long(obj1, &val2);
74731 if (!SWIG_IsOK(ecode2)) {
74732 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IDSelectorBatch_mask_set" "', argument " "2"" of type '" "faiss::IDSelector::idx_t""'");
74734 arg2 =
static_cast< faiss::IDSelector::idx_t
>(val2);
74735 if (arg1) (arg1)->mask = arg2;
74736 resultobj = SWIG_Py_Void();
74743 SWIGINTERN PyObject *_wrap_IDSelectorBatch_mask_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74744 PyObject *resultobj = 0;
74748 PyObject * obj0 = 0 ;
74749 faiss::IDSelector::idx_t result;
74751 if (!PyArg_ParseTuple(args,(
char *)
"O:IDSelectorBatch_mask_get",&obj0)) SWIG_fail;
74752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorBatch, 0 | 0 );
74753 if (!SWIG_IsOK(res1)) {
74754 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorBatch_mask_get" "', argument " "1"" of type '" "faiss::IDSelectorBatch *""'");
74757 result = (faiss::IDSelector::idx_t) ((arg1)->mask);
74758 resultobj = SWIG_From_long(static_cast< long >(result));
74765 SWIGINTERN PyObject *_wrap_new_IDSelectorBatch(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74766 PyObject *resultobj = 0;
74768 faiss::IDSelector::idx_t *arg2 = (faiss::IDSelector::idx_t *) 0 ;
74773 PyObject * obj0 = 0 ;
74774 PyObject * obj1 = 0 ;
74777 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IDSelectorBatch",&obj0,&obj1)) SWIG_fail;
74778 ecode1 = SWIG_AsVal_long(obj0, &val1);
74779 if (!SWIG_IsOK(ecode1)) {
74780 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IDSelectorBatch" "', argument " "1"" of type '" "long""'");
74782 arg1 =
static_cast< long >(val1);
74783 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
74784 if (!SWIG_IsOK(res2)) {
74785 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_IDSelectorBatch" "', argument " "2"" of type '" "faiss::IDSelector::idx_t const *""'");
74787 arg2 =
reinterpret_cast< faiss::IDSelector::idx_t *
>(argp2);
74789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IDSelectorBatch, SWIG_POINTER_NEW | 0 );
74796 SWIGINTERN PyObject *_wrap_IDSelectorBatch_is_member(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74797 PyObject *resultobj = 0;
74799 faiss::IDSelector::idx_t arg2 ;
74804 PyObject * obj0 = 0 ;
74805 PyObject * obj1 = 0 ;
74808 if (!PyArg_ParseTuple(args,(
char *)
"OO:IDSelectorBatch_is_member",&obj0,&obj1)) SWIG_fail;
74809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorBatch, 0 | 0 );
74810 if (!SWIG_IsOK(res1)) {
74811 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorBatch_is_member" "', argument " "1"" of type '" "faiss::IDSelectorBatch const *""'");
74814 ecode2 = SWIG_AsVal_long(obj1, &val2);
74815 if (!SWIG_IsOK(ecode2)) {
74816 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IDSelectorBatch_is_member" "', argument " "2"" of type '" "faiss::IDSelector::idx_t""'");
74818 arg2 =
static_cast< faiss::IDSelector::idx_t
>(val2);
74820 resultobj = SWIG_From_bool(static_cast< bool >(result));
74827 SWIGINTERN PyObject *_wrap_delete_IDSelectorBatch(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74828 PyObject *resultobj = 0;
74832 PyObject * obj0 = 0 ;
74834 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IDSelectorBatch",&obj0)) SWIG_fail;
74835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorBatch, SWIG_POINTER_DISOWN | 0 );
74836 if (!SWIG_IsOK(res1)) {
74837 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IDSelectorBatch" "', argument " "1"" of type '" "faiss::IDSelectorBatch *""'");
74841 resultobj = SWIG_Py_Void();
74848 SWIGINTERN PyObject *IDSelectorBatch_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74850 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
74851 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IDSelectorBatch, SWIG_NewClientData(obj));
74852 return SWIG_Py_Void();
74855 SWIGINTERN PyObject *_wrap_BufferList_buffer_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74856 PyObject *resultobj = 0;
74863 PyObject * obj0 = 0 ;
74864 PyObject * obj1 = 0 ;
74866 if (!PyArg_ParseTuple(args,(
char *)
"OO:BufferList_buffer_size_set",&obj0,&obj1)) SWIG_fail;
74867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
74868 if (!SWIG_IsOK(res1)) {
74869 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_buffer_size_set" "', argument " "1"" of type '" "faiss::BufferList *""'");
74872 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
74873 if (!SWIG_IsOK(ecode2)) {
74874 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BufferList_buffer_size_set" "', argument " "2"" of type '" "size_t""'");
74876 arg2 =
static_cast< size_t >(val2);
74877 if (arg1) (arg1)->buffer_size = arg2;
74878 resultobj = SWIG_Py_Void();
74885 SWIGINTERN PyObject *_wrap_BufferList_buffer_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74886 PyObject *resultobj = 0;
74890 PyObject * obj0 = 0 ;
74893 if (!PyArg_ParseTuple(args,(
char *)
"O:BufferList_buffer_size_get",&obj0)) SWIG_fail;
74894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
74895 if (!SWIG_IsOK(res1)) {
74896 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_buffer_size_get" "', argument " "1"" of type '" "faiss::BufferList *""'");
74899 result = (size_t) ((arg1)->buffer_size);
74900 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
74907 SWIGINTERN PyObject *_wrap_BufferList_buffers_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74908 PyObject *resultobj = 0;
74910 std::vector< faiss::BufferList::Buffer > *arg2 = (std::vector< faiss::BufferList::Buffer > *) 0 ;
74915 PyObject * obj0 = 0 ;
74916 PyObject * obj1 = 0 ;
74918 if (!PyArg_ParseTuple(args,(
char *)
"OO:BufferList_buffers_set",&obj0,&obj1)) SWIG_fail;
74919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
74920 if (!SWIG_IsOK(res1)) {
74921 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_buffers_set" "', argument " "1"" of type '" "faiss::BufferList *""'");
74924 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t, 0 | 0 );
74925 if (!SWIG_IsOK(res2)) {
74926 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BufferList_buffers_set" "', argument " "2"" of type '" "std::vector< faiss::BufferList::Buffer > *""'");
74928 arg2 =
reinterpret_cast< std::vector< faiss::BufferList::Buffer > *
>(argp2);
74929 if (arg1) (arg1)->buffers = *arg2;
74930 resultobj = SWIG_Py_Void();
74937 SWIGINTERN PyObject *_wrap_BufferList_buffers_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74938 PyObject *resultobj = 0;
74942 PyObject * obj0 = 0 ;
74943 std::vector< faiss::BufferList::Buffer > *result = 0 ;
74945 if (!PyArg_ParseTuple(args,(
char *)
"O:BufferList_buffers_get",&obj0)) SWIG_fail;
74946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
74947 if (!SWIG_IsOK(res1)) {
74948 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_buffers_get" "', argument " "1"" of type '" "faiss::BufferList *""'");
74951 result = (std::vector< faiss::BufferList::Buffer > *)& ((arg1)->buffers);
74952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t, 0 | 0 );
74959 SWIGINTERN PyObject *_wrap_BufferList_wp_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74960 PyObject *resultobj = 0;
74967 PyObject * obj0 = 0 ;
74968 PyObject * obj1 = 0 ;
74970 if (!PyArg_ParseTuple(args,(
char *)
"OO:BufferList_wp_set",&obj0,&obj1)) SWIG_fail;
74971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
74972 if (!SWIG_IsOK(res1)) {
74973 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_wp_set" "', argument " "1"" of type '" "faiss::BufferList *""'");
74976 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
74977 if (!SWIG_IsOK(ecode2)) {
74978 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BufferList_wp_set" "', argument " "2"" of type '" "size_t""'");
74980 arg2 =
static_cast< size_t >(val2);
74981 if (arg1) (arg1)->wp = arg2;
74982 resultobj = SWIG_Py_Void();
74989 SWIGINTERN PyObject *_wrap_BufferList_wp_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74990 PyObject *resultobj = 0;
74994 PyObject * obj0 = 0 ;
74997 if (!PyArg_ParseTuple(args,(
char *)
"O:BufferList_wp_get",&obj0)) SWIG_fail;
74998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
74999 if (!SWIG_IsOK(res1)) {
75000 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_wp_get" "', argument " "1"" of type '" "faiss::BufferList *""'");
75003 result = (size_t) ((arg1)->wp);
75004 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
75011 SWIGINTERN PyObject *_wrap_new_BufferList(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75012 PyObject *resultobj = 0;
75016 PyObject * obj0 = 0 ;
75019 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BufferList",&obj0)) SWIG_fail;
75020 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
75021 if (!SWIG_IsOK(ecode1)) {
75022 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_BufferList" "', argument " "1"" of type '" "size_t""'");
75024 arg1 =
static_cast< size_t >(val1);
75026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__BufferList, SWIG_POINTER_NEW | 0 );
75033 SWIGINTERN PyObject *_wrap_delete_BufferList(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75034 PyObject *resultobj = 0;
75038 PyObject * obj0 = 0 ;
75040 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BufferList",&obj0)) SWIG_fail;
75041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, SWIG_POINTER_DISOWN | 0 );
75042 if (!SWIG_IsOK(res1)) {
75043 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BufferList" "', argument " "1"" of type '" "faiss::BufferList *""'");
75047 resultobj = SWIG_Py_Void();
75054 SWIGINTERN PyObject *_wrap_BufferList_append_buffer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75055 PyObject *resultobj = 0;
75059 PyObject * obj0 = 0 ;
75061 if (!PyArg_ParseTuple(args,(
char *)
"O:BufferList_append_buffer",&obj0)) SWIG_fail;
75062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
75063 if (!SWIG_IsOK(res1)) {
75064 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_append_buffer" "', argument " "1"" of type '" "faiss::BufferList *""'");
75067 (arg1)->append_buffer();
75068 resultobj = SWIG_Py_Void();
75075 SWIGINTERN PyObject *_wrap_BufferList_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75076 PyObject *resultobj = 0;
75078 faiss::BufferList::idx_t arg2 ;
75086 PyObject * obj0 = 0 ;
75087 PyObject * obj1 = 0 ;
75088 PyObject * obj2 = 0 ;
75090 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BufferList_add",&obj0,&obj1,&obj2)) SWIG_fail;
75091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
75092 if (!SWIG_IsOK(res1)) {
75093 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_add" "', argument " "1"" of type '" "faiss::BufferList *""'");
75096 ecode2 = SWIG_AsVal_long(obj1, &val2);
75097 if (!SWIG_IsOK(ecode2)) {
75098 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BufferList_add" "', argument " "2"" of type '" "faiss::BufferList::idx_t""'");
75100 arg2 =
static_cast< faiss::BufferList::idx_t
>(val2);
75101 ecode3 = SWIG_AsVal_float(obj2, &val3);
75102 if (!SWIG_IsOK(ecode3)) {
75103 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BufferList_add" "', argument " "3"" of type '" "float""'");
75105 arg3 =
static_cast< float >(val3);
75106 (arg1)->add(arg2,arg3);
75107 resultobj = SWIG_Py_Void();
75114 SWIGINTERN PyObject *_wrap_BufferList_copy_range(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75115 PyObject *resultobj = 0;
75119 faiss::BufferList::idx_t *arg4 = (faiss::BufferList::idx_t *) 0 ;
75120 float *arg5 = (
float *) 0 ;
75131 PyObject * obj0 = 0 ;
75132 PyObject * obj1 = 0 ;
75133 PyObject * obj2 = 0 ;
75134 PyObject * obj3 = 0 ;
75135 PyObject * obj4 = 0 ;
75137 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:BufferList_copy_range",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
75138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
75139 if (!SWIG_IsOK(res1)) {
75140 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_copy_range" "', argument " "1"" of type '" "faiss::BufferList *""'");
75143 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
75144 if (!SWIG_IsOK(ecode2)) {
75145 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BufferList_copy_range" "', argument " "2"" of type '" "size_t""'");
75147 arg2 =
static_cast< size_t >(val2);
75148 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
75149 if (!SWIG_IsOK(ecode3)) {
75150 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BufferList_copy_range" "', argument " "3"" of type '" "size_t""'");
75152 arg3 =
static_cast< size_t >(val3);
75153 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
75154 if (!SWIG_IsOK(res4)) {
75155 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BufferList_copy_range" "', argument " "4"" of type '" "faiss::BufferList::idx_t *""'");
75157 arg4 =
reinterpret_cast< faiss::BufferList::idx_t *
>(argp4);
75158 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
75159 if (!SWIG_IsOK(res5)) {
75160 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BufferList_copy_range" "', argument " "5"" of type '" "float *""'");
75162 arg5 =
reinterpret_cast< float *
>(argp5);
75163 (arg1)->copy_range(arg2,arg3,arg4,arg5);
75164 resultobj = SWIG_Py_Void();
75171 SWIGINTERN PyObject *BufferList_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75173 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
75174 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__BufferList, SWIG_NewClientData(obj));
75175 return SWIG_Py_Void();
75178 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_res_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75179 PyObject *resultobj = 0;
75186 PyObject * obj0 = 0 ;
75187 PyObject * obj1 = 0 ;
75189 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchPartialResult_res_set",&obj0,&obj1)) SWIG_fail;
75190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
75191 if (!SWIG_IsOK(res1)) {
75192 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_res_set" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
75195 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__RangeSearchResult, SWIG_POINTER_DISOWN | 0 );
75196 if (!SWIG_IsOK(res2)) {
75197 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RangeSearchPartialResult_res_set" "', argument " "2"" of type '" "faiss::RangeSearchResult *""'");
75200 if (arg1) (arg1)->res = arg2;
75201 resultobj = SWIG_Py_Void();
75208 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_res_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75209 PyObject *resultobj = 0;
75213 PyObject * obj0 = 0 ;
75216 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchPartialResult_res_get",&obj0)) SWIG_fail;
75217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
75218 if (!SWIG_IsOK(res1)) {
75219 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_res_get" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
75223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
75230 SWIGINTERN PyObject *_wrap_new_RangeSearchPartialResult(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75231 PyObject *resultobj = 0;
75235 PyObject * obj0 = 0 ;
75238 if (!PyArg_ParseTuple(args,(
char *)
"O:new_RangeSearchPartialResult",&obj0)) SWIG_fail;
75239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
75240 if (!SWIG_IsOK(res1)) {
75241 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_RangeSearchPartialResult" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
75245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RangeSearchPartialResult, SWIG_POINTER_NEW | 0 );
75252 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_queries_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75253 PyObject *resultobj = 0;
75255 std::vector< faiss::RangeSearchPartialResult::QueryResult > *arg2 = (std::vector< faiss::RangeSearchPartialResult::QueryResult > *) 0 ;
75260 PyObject * obj0 = 0 ;
75261 PyObject * obj1 = 0 ;
75263 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchPartialResult_queries_set",&obj0,&obj1)) SWIG_fail;
75264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
75265 if (!SWIG_IsOK(res1)) {
75266 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_queries_set" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
75269 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult__QueryResult_t, 0 | 0 );
75270 if (!SWIG_IsOK(res2)) {
75271 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RangeSearchPartialResult_queries_set" "', argument " "2"" of type '" "std::vector< faiss::RangeSearchPartialResult::QueryResult > *""'");
75273 arg2 =
reinterpret_cast< std::vector< faiss::RangeSearchPartialResult::QueryResult > *
>(argp2);
75274 if (arg1) (arg1)->queries = *arg2;
75275 resultobj = SWIG_Py_Void();
75282 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_queries_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75283 PyObject *resultobj = 0;
75287 PyObject * obj0 = 0 ;
75288 std::vector< faiss::RangeSearchPartialResult::QueryResult > *result = 0 ;
75290 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchPartialResult_queries_get",&obj0)) SWIG_fail;
75291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
75292 if (!SWIG_IsOK(res1)) {
75293 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_queries_get" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
75296 result = (std::vector< faiss::RangeSearchPartialResult::QueryResult > *)& ((arg1)->queries);
75297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult__QueryResult_t, 0 | 0 );
75304 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_new_result(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75305 PyObject *resultobj = 0;
75307 faiss::BufferList::idx_t arg2 ;
75312 PyObject * obj0 = 0 ;
75313 PyObject * obj1 = 0 ;
75316 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchPartialResult_new_result",&obj0,&obj1)) SWIG_fail;
75317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
75318 if (!SWIG_IsOK(res1)) {
75319 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_new_result" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
75322 ecode2 = SWIG_AsVal_long(obj1, &val2);
75323 if (!SWIG_IsOK(ecode2)) {
75324 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RangeSearchPartialResult_new_result" "', argument " "2"" of type '" "faiss::BufferList::idx_t""'");
75326 arg2 =
static_cast< faiss::BufferList::idx_t
>(val2);
75328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RangeSearchPartialResult__QueryResult, 0 | 0 );
75335 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_finalize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75336 PyObject *resultobj = 0;
75340 PyObject * obj0 = 0 ;
75342 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchPartialResult_finalize",&obj0)) SWIG_fail;
75343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
75344 if (!SWIG_IsOK(res1)) {
75345 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_finalize" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
75348 (arg1)->finalize();
75349 resultobj = SWIG_Py_Void();
75356 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_set_lims(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75357 PyObject *resultobj = 0;
75361 PyObject * obj0 = 0 ;
75363 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchPartialResult_set_lims",&obj0)) SWIG_fail;
75364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
75365 if (!SWIG_IsOK(res1)) {
75366 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_set_lims" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
75369 (arg1)->set_lims();
75370 resultobj = SWIG_Py_Void();
75377 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_set_result__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75378 PyObject *resultobj = 0;
75385 PyObject * obj0 = 0 ;
75386 PyObject * obj1 = 0 ;
75388 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchPartialResult_set_result",&obj0,&obj1)) SWIG_fail;
75389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
75390 if (!SWIG_IsOK(res1)) {
75391 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_set_result" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
75394 ecode2 = SWIG_AsVal_bool(obj1, &val2);
75395 if (!SWIG_IsOK(ecode2)) {
75396 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RangeSearchPartialResult_set_result" "', argument " "2"" of type '" "bool""'");
75398 arg2 =
static_cast< bool >(val2);
75399 (arg1)->set_result(arg2);
75400 resultobj = SWIG_Py_Void();
75407 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_set_result__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75408 PyObject *resultobj = 0;
75412 PyObject * obj0 = 0 ;
75414 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchPartialResult_set_result",&obj0)) SWIG_fail;
75415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
75416 if (!SWIG_IsOK(res1)) {
75417 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_set_result" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
75420 (arg1)->set_result();
75421 resultobj = SWIG_Py_Void();
75428 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_set_result(PyObject *
self, PyObject *args) {
75430 PyObject *argv[3] = {
75435 if (!PyTuple_Check(args)) SWIG_fail;
75436 argc = args ? PyObject_Length(args) : 0;
75437 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
75438 argv[ii] = PyTuple_GET_ITEM(args,ii);
75443 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__RangeSearchPartialResult, 0);
75444 _v = SWIG_CheckState(res);
75446 return _wrap_RangeSearchPartialResult_set_result__SWIG_1(
self, args);
75452 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__RangeSearchPartialResult, 0);
75453 _v = SWIG_CheckState(res);
75456 int res = SWIG_AsVal_bool(argv[1], NULL);
75457 _v = SWIG_CheckState(res);
75460 return _wrap_RangeSearchPartialResult_set_result__SWIG_0(
self, args);
75466 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'RangeSearchPartialResult_set_result'.\n"
75467 " Possible C/C++ prototypes are:\n"
75468 " faiss::RangeSearchPartialResult::set_result(bool)\n"
75469 " faiss::RangeSearchPartialResult::set_result()\n");
75474 SWIGINTERN PyObject *_wrap_delete_RangeSearchPartialResult(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75475 PyObject *resultobj = 0;
75479 PyObject * obj0 = 0 ;
75481 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RangeSearchPartialResult",&obj0)) SWIG_fail;
75482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, SWIG_POINTER_DISOWN | 0 );
75483 if (!SWIG_IsOK(res1)) {
75484 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RangeSearchPartialResult" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
75488 resultobj = SWIG_Py_Void();
75495 SWIGINTERN PyObject *RangeSearchPartialResult_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75497 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
75498 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__RangeSearchPartialResult, SWIG_NewClientData(obj));
75499 return SWIG_Py_Void();
75502 SWIGINTERN PyObject *_wrap_IOReader_name_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75503 PyObject *resultobj = 0;
75505 std::string *arg2 = 0 ;
75508 int res2 = SWIG_OLDOBJ ;
75509 PyObject * obj0 = 0 ;
75510 PyObject * obj1 = 0 ;
75512 if (!PyArg_ParseTuple(args,(
char *)
"OO:IOReader_name_set",&obj0,&obj1)) SWIG_fail;
75513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
75514 if (!SWIG_IsOK(res1)) {
75515 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOReader_name_set" "', argument " "1"" of type '" "faiss::IOReader *""'");
75519 std::string *ptr = (std::string *)0;
75520 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
75521 if (!SWIG_IsOK(res2)) {
75522 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IOReader_name_set" "', argument " "2"" of type '" "std::string const &""'");
75525 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IOReader_name_set" "', argument " "2"" of type '" "std::string const &""'");
75529 if (arg1) (arg1)->name = *arg2;
75530 resultobj = SWIG_Py_Void();
75531 if (SWIG_IsNewObj(res2))
delete arg2;
75534 if (SWIG_IsNewObj(res2))
delete arg2;
75539 SWIGINTERN PyObject *_wrap_IOReader_name_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75540 PyObject *resultobj = 0;
75544 PyObject * obj0 = 0 ;
75545 std::string *result = 0 ;
75547 if (!PyArg_ParseTuple(args,(
char *)
"O:IOReader_name_get",&obj0)) SWIG_fail;
75548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
75549 if (!SWIG_IsOK(res1)) {
75550 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOReader_name_get" "', argument " "1"" of type '" "faiss::IOReader *""'");
75553 result = (std::string *) & ((arg1)->name);
75554 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
75561 SWIGINTERN PyObject *_wrap_IOReader___call__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75562 PyObject *resultobj = 0;
75564 void *arg2 = (
void *) 0 ;
75574 PyObject * obj0 = 0 ;
75575 PyObject * obj1 = 0 ;
75576 PyObject * obj2 = 0 ;
75577 PyObject * obj3 = 0 ;
75580 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IOReader___call__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
75581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
75582 if (!SWIG_IsOK(res1)) {
75583 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOReader___call__" "', argument " "1"" of type '" "faiss::IOReader *""'");
75586 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
75587 if (!SWIG_IsOK(res2)) {
75588 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IOReader___call__" "', argument " "2"" of type '" "void *""'");
75590 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
75591 if (!SWIG_IsOK(ecode3)) {
75592 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IOReader___call__" "', argument " "3"" of type '" "size_t""'");
75594 arg3 =
static_cast< size_t >(val3);
75595 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
75596 if (!SWIG_IsOK(ecode4)) {
75597 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IOReader___call__" "', argument " "4"" of type '" "size_t""'");
75599 arg4 =
static_cast< size_t >(val4);
75600 result = (size_t)(arg1)->operator ()(arg2,arg3,arg4);
75601 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
75608 SWIGINTERN PyObject *_wrap_IOReader_fileno(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75609 PyObject *resultobj = 0;
75613 PyObject * obj0 = 0 ;
75616 if (!PyArg_ParseTuple(args,(
char *)
"O:IOReader_fileno",&obj0)) SWIG_fail;
75617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
75618 if (!SWIG_IsOK(res1)) {
75619 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOReader_fileno" "', argument " "1"" of type '" "faiss::IOReader *""'");
75622 result = (int)(arg1)->fileno();
75623 resultobj = SWIG_From_int(static_cast< int >(result));
75630 SWIGINTERN PyObject *_wrap_delete_IOReader(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75631 PyObject *resultobj = 0;
75635 PyObject * obj0 = 0 ;
75637 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IOReader",&obj0)) SWIG_fail;
75638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, SWIG_POINTER_DISOWN | 0 );
75639 if (!SWIG_IsOK(res1)) {
75640 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IOReader" "', argument " "1"" of type '" "faiss::IOReader *""'");
75644 resultobj = SWIG_Py_Void();
75651 SWIGINTERN PyObject *IOReader_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75653 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
75654 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IOReader, SWIG_NewClientData(obj));
75655 return SWIG_Py_Void();
75658 SWIGINTERN PyObject *_wrap_IOWriter_name_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75659 PyObject *resultobj = 0;
75661 std::string *arg2 = 0 ;
75664 int res2 = SWIG_OLDOBJ ;
75665 PyObject * obj0 = 0 ;
75666 PyObject * obj1 = 0 ;
75668 if (!PyArg_ParseTuple(args,(
char *)
"OO:IOWriter_name_set",&obj0,&obj1)) SWIG_fail;
75669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
75670 if (!SWIG_IsOK(res1)) {
75671 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOWriter_name_set" "', argument " "1"" of type '" "faiss::IOWriter *""'");
75675 std::string *ptr = (std::string *)0;
75676 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
75677 if (!SWIG_IsOK(res2)) {
75678 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IOWriter_name_set" "', argument " "2"" of type '" "std::string const &""'");
75681 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IOWriter_name_set" "', argument " "2"" of type '" "std::string const &""'");
75685 if (arg1) (arg1)->name = *arg2;
75686 resultobj = SWIG_Py_Void();
75687 if (SWIG_IsNewObj(res2))
delete arg2;
75690 if (SWIG_IsNewObj(res2))
delete arg2;
75695 SWIGINTERN PyObject *_wrap_IOWriter_name_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75696 PyObject *resultobj = 0;
75700 PyObject * obj0 = 0 ;
75701 std::string *result = 0 ;
75703 if (!PyArg_ParseTuple(args,(
char *)
"O:IOWriter_name_get",&obj0)) SWIG_fail;
75704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
75705 if (!SWIG_IsOK(res1)) {
75706 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOWriter_name_get" "', argument " "1"" of type '" "faiss::IOWriter *""'");
75709 result = (std::string *) & ((arg1)->name);
75710 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
75717 SWIGINTERN PyObject *_wrap_IOWriter___call__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75718 PyObject *resultobj = 0;
75720 void *arg2 = (
void *) 0 ;
75730 PyObject * obj0 = 0 ;
75731 PyObject * obj1 = 0 ;
75732 PyObject * obj2 = 0 ;
75733 PyObject * obj3 = 0 ;
75736 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IOWriter___call__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
75737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
75738 if (!SWIG_IsOK(res1)) {
75739 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOWriter___call__" "', argument " "1"" of type '" "faiss::IOWriter *""'");
75742 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
75743 if (!SWIG_IsOK(res2)) {
75744 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IOWriter___call__" "', argument " "2"" of type '" "void const *""'");
75746 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
75747 if (!SWIG_IsOK(ecode3)) {
75748 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IOWriter___call__" "', argument " "3"" of type '" "size_t""'");
75750 arg3 =
static_cast< size_t >(val3);
75751 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
75752 if (!SWIG_IsOK(ecode4)) {
75753 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IOWriter___call__" "', argument " "4"" of type '" "size_t""'");
75755 arg4 =
static_cast< size_t >(val4);
75756 result = (size_t)(arg1)->operator ()((
void const *)arg2,arg3,arg4);
75757 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
75764 SWIGINTERN PyObject *_wrap_IOWriter_fileno(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75765 PyObject *resultobj = 0;
75769 PyObject * obj0 = 0 ;
75772 if (!PyArg_ParseTuple(args,(
char *)
"O:IOWriter_fileno",&obj0)) SWIG_fail;
75773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
75774 if (!SWIG_IsOK(res1)) {
75775 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOWriter_fileno" "', argument " "1"" of type '" "faiss::IOWriter *""'");
75778 result = (int)(arg1)->fileno();
75779 resultobj = SWIG_From_int(static_cast< int >(result));
75786 SWIGINTERN PyObject *_wrap_delete_IOWriter(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75787 PyObject *resultobj = 0;
75791 PyObject * obj0 = 0 ;
75793 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IOWriter",&obj0)) SWIG_fail;
75794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOWriter, SWIG_POINTER_DISOWN | 0 );
75795 if (!SWIG_IsOK(res1)) {
75796 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IOWriter" "', argument " "1"" of type '" "faiss::IOWriter *""'");
75800 resultobj = SWIG_Py_Void();
75807 SWIGINTERN PyObject *IOWriter_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75809 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
75810 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IOWriter, SWIG_NewClientData(obj));
75811 return SWIG_Py_Void();
75814 SWIGINTERN PyObject *_wrap_VectorIOReader_data_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75815 PyObject *resultobj = 0;
75817 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
75822 PyObject * obj0 = 0 ;
75823 PyObject * obj1 = 0 ;
75825 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorIOReader_data_set",&obj0,&obj1)) SWIG_fail;
75826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOReader, 0 | 0 );
75827 if (!SWIG_IsOK(res1)) {
75828 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOReader_data_set" "', argument " "1"" of type '" "faiss::VectorIOReader *""'");
75831 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
75832 if (!SWIG_IsOK(res2)) {
75833 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "VectorIOReader_data_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
75835 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
75836 if (arg1) (arg1)->data = *arg2;
75837 resultobj = SWIG_Py_Void();
75844 SWIGINTERN PyObject *_wrap_VectorIOReader_data_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75845 PyObject *resultobj = 0;
75849 PyObject * obj0 = 0 ;
75850 std::vector< uint8_t > *result = 0 ;
75852 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorIOReader_data_get",&obj0)) SWIG_fail;
75853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOReader, 0 | 0 );
75854 if (!SWIG_IsOK(res1)) {
75855 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOReader_data_get" "', argument " "1"" of type '" "faiss::VectorIOReader *""'");
75858 result = (std::vector< uint8_t > *)& ((arg1)->data);
75859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
75866 SWIGINTERN PyObject *_wrap_VectorIOReader_rp_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75867 PyObject *resultobj = 0;
75874 PyObject * obj0 = 0 ;
75875 PyObject * obj1 = 0 ;
75877 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorIOReader_rp_set",&obj0,&obj1)) SWIG_fail;
75878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOReader, 0 | 0 );
75879 if (!SWIG_IsOK(res1)) {
75880 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOReader_rp_set" "', argument " "1"" of type '" "faiss::VectorIOReader *""'");
75883 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
75884 if (!SWIG_IsOK(ecode2)) {
75885 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorIOReader_rp_set" "', argument " "2"" of type '" "size_t""'");
75887 arg2 =
static_cast< size_t >(val2);
75888 if (arg1) (arg1)->rp = arg2;
75889 resultobj = SWIG_Py_Void();
75896 SWIGINTERN PyObject *_wrap_VectorIOReader_rp_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75897 PyObject *resultobj = 0;
75901 PyObject * obj0 = 0 ;
75904 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorIOReader_rp_get",&obj0)) SWIG_fail;
75905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOReader, 0 | 0 );
75906 if (!SWIG_IsOK(res1)) {
75907 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOReader_rp_get" "', argument " "1"" of type '" "faiss::VectorIOReader *""'");
75910 result = (size_t) ((arg1)->rp);
75911 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
75918 SWIGINTERN PyObject *_wrap_VectorIOReader___call__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75919 PyObject *resultobj = 0;
75921 void *arg2 = (
void *) 0 ;
75931 PyObject * obj0 = 0 ;
75932 PyObject * obj1 = 0 ;
75933 PyObject * obj2 = 0 ;
75934 PyObject * obj3 = 0 ;
75937 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:VectorIOReader___call__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
75938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOReader, 0 | 0 );
75939 if (!SWIG_IsOK(res1)) {
75940 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOReader___call__" "', argument " "1"" of type '" "faiss::VectorIOReader *""'");
75943 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
75944 if (!SWIG_IsOK(res2)) {
75945 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "VectorIOReader___call__" "', argument " "2"" of type '" "void *""'");
75947 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
75948 if (!SWIG_IsOK(ecode3)) {
75949 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "VectorIOReader___call__" "', argument " "3"" of type '" "size_t""'");
75951 arg3 =
static_cast< size_t >(val3);
75952 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
75953 if (!SWIG_IsOK(ecode4)) {
75954 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "VectorIOReader___call__" "', argument " "4"" of type '" "size_t""'");
75956 arg4 =
static_cast< size_t >(val4);
75957 result = (size_t)(arg1)->operator ()(arg2,arg3,arg4);
75958 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
75965 SWIGINTERN PyObject *_wrap_new_VectorIOReader(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75966 PyObject *resultobj = 0;
75969 if (!PyArg_ParseTuple(args,(
char *)
":new_VectorIOReader")) SWIG_fail;
75971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__VectorIOReader, SWIG_POINTER_NEW | 0 );
75978 SWIGINTERN PyObject *_wrap_delete_VectorIOReader(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75979 PyObject *resultobj = 0;
75983 PyObject * obj0 = 0 ;
75985 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_VectorIOReader",&obj0)) SWIG_fail;
75986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOReader, SWIG_POINTER_DISOWN | 0 );
75987 if (!SWIG_IsOK(res1)) {
75988 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_VectorIOReader" "', argument " "1"" of type '" "faiss::VectorIOReader *""'");
75992 resultobj = SWIG_Py_Void();
75999 SWIGINTERN PyObject *VectorIOReader_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76001 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
76002 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__VectorIOReader, SWIG_NewClientData(obj));
76003 return SWIG_Py_Void();
76006 SWIGINTERN PyObject *_wrap_VectorIOWriter_data_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76007 PyObject *resultobj = 0;
76009 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
76014 PyObject * obj0 = 0 ;
76015 PyObject * obj1 = 0 ;
76017 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorIOWriter_data_set",&obj0,&obj1)) SWIG_fail;
76018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOWriter, 0 | 0 );
76019 if (!SWIG_IsOK(res1)) {
76020 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOWriter_data_set" "', argument " "1"" of type '" "faiss::VectorIOWriter *""'");
76023 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
76024 if (!SWIG_IsOK(res2)) {
76025 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "VectorIOWriter_data_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
76027 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
76028 if (arg1) (arg1)->data = *arg2;
76029 resultobj = SWIG_Py_Void();
76036 SWIGINTERN PyObject *_wrap_VectorIOWriter_data_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76037 PyObject *resultobj = 0;
76041 PyObject * obj0 = 0 ;
76042 std::vector< uint8_t > *result = 0 ;
76044 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorIOWriter_data_get",&obj0)) SWIG_fail;
76045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOWriter, 0 | 0 );
76046 if (!SWIG_IsOK(res1)) {
76047 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOWriter_data_get" "', argument " "1"" of type '" "faiss::VectorIOWriter *""'");
76050 result = (std::vector< uint8_t > *)& ((arg1)->data);
76051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
76058 SWIGINTERN PyObject *_wrap_VectorIOWriter___call__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76059 PyObject *resultobj = 0;
76061 void *arg2 = (
void *) 0 ;
76071 PyObject * obj0 = 0 ;
76072 PyObject * obj1 = 0 ;
76073 PyObject * obj2 = 0 ;
76074 PyObject * obj3 = 0 ;
76077 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:VectorIOWriter___call__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
76078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOWriter, 0 | 0 );
76079 if (!SWIG_IsOK(res1)) {
76080 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOWriter___call__" "', argument " "1"" of type '" "faiss::VectorIOWriter *""'");
76083 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
76084 if (!SWIG_IsOK(res2)) {
76085 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "VectorIOWriter___call__" "', argument " "2"" of type '" "void const *""'");
76087 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
76088 if (!SWIG_IsOK(ecode3)) {
76089 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "VectorIOWriter___call__" "', argument " "3"" of type '" "size_t""'");
76091 arg3 =
static_cast< size_t >(val3);
76092 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
76093 if (!SWIG_IsOK(ecode4)) {
76094 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "VectorIOWriter___call__" "', argument " "4"" of type '" "size_t""'");
76096 arg4 =
static_cast< size_t >(val4);
76097 result = (size_t)(arg1)->operator ()((
void const *)arg2,arg3,arg4);
76098 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
76105 SWIGINTERN PyObject *_wrap_new_VectorIOWriter(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76106 PyObject *resultobj = 0;
76109 if (!PyArg_ParseTuple(args,(
char *)
":new_VectorIOWriter")) SWIG_fail;
76111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__VectorIOWriter, SWIG_POINTER_NEW | 0 );
76118 SWIGINTERN PyObject *_wrap_delete_VectorIOWriter(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76119 PyObject *resultobj = 0;
76123 PyObject * obj0 = 0 ;
76125 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_VectorIOWriter",&obj0)) SWIG_fail;
76126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOWriter, SWIG_POINTER_DISOWN | 0 );
76127 if (!SWIG_IsOK(res1)) {
76128 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_VectorIOWriter" "', argument " "1"" of type '" "faiss::VectorIOWriter *""'");
76132 resultobj = SWIG_Py_Void();
76139 SWIGINTERN PyObject *VectorIOWriter_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76141 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
76142 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__VectorIOWriter, SWIG_NewClientData(obj));
76143 return SWIG_Py_Void();
76146 SWIGINTERN PyObject *_wrap_ignore_SIGTTIN(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76147 PyObject *resultobj = 0;
76149 if (!PyArg_ParseTuple(args,(
char *)
":ignore_SIGTTIN")) SWIG_fail;
76151 resultobj = SWIG_Py_Void();
76158 SWIGINTERN PyObject *_wrap_MapLong2Long_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76159 PyObject *resultobj = 0;
76161 std::unordered_map< long,long > arg2 ;
76166 PyObject * obj0 = 0 ;
76167 PyObject * obj1 = 0 ;
76169 if (!PyArg_ParseTuple(args,(
char *)
"OO:MapLong2Long_map_set",&obj0,&obj1)) SWIG_fail;
76170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MapLong2Long, 0 | 0 );
76171 if (!SWIG_IsOK(res1)) {
76172 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MapLong2Long_map_set" "', argument " "1"" of type '" "MapLong2Long *""'");
76176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__unordered_mapT_long_long_t, 0 | 0);
76177 if (!SWIG_IsOK(res2)) {
76178 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "MapLong2Long_map_set" "', argument " "2"" of type '" "std::unordered_map< long,long >""'");
76181 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "MapLong2Long_map_set" "', argument " "2"" of type '" "std::unordered_map< long,long >""'");
76183 std::unordered_map< long,long > * temp =
reinterpret_cast< std::unordered_map< long,long > *
>(argp2);
76185 if (SWIG_IsNewObj(res2))
delete temp;
76188 if (arg1) (arg1)->map = arg2;
76189 resultobj = SWIG_Py_Void();
76196 SWIGINTERN PyObject *_wrap_MapLong2Long_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76197 PyObject *resultobj = 0;
76201 PyObject * obj0 = 0 ;
76202 std::unordered_map< long,long > result;
76204 if (!PyArg_ParseTuple(args,(
char *)
"O:MapLong2Long_map_get",&obj0)) SWIG_fail;
76205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MapLong2Long, 0 | 0 );
76206 if (!SWIG_IsOK(res1)) {
76207 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MapLong2Long_map_get" "', argument " "1"" of type '" "MapLong2Long *""'");
76210 result = ((arg1)->map);
76211 resultobj = SWIG_NewPointerObj((
new std::unordered_map< long,long >(
static_cast< const std::unordered_map< long,long >&
>(result))), SWIGTYPE_p_std__unordered_mapT_long_long_t, SWIG_POINTER_OWN | 0 );
76218 SWIGINTERN PyObject *_wrap_MapLong2Long_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76219 PyObject *resultobj = 0;
76222 long *arg3 = (
long *) 0 ;
76223 long *arg4 = (
long *) 0 ;
76232 PyObject * obj0 = 0 ;
76233 PyObject * obj1 = 0 ;
76234 PyObject * obj2 = 0 ;
76235 PyObject * obj3 = 0 ;
76237 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:MapLong2Long_add",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
76238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MapLong2Long, 0 | 0 );
76239 if (!SWIG_IsOK(res1)) {
76240 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MapLong2Long_add" "', argument " "1"" of type '" "MapLong2Long *""'");
76243 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
76244 if (!SWIG_IsOK(ecode2)) {
76245 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MapLong2Long_add" "', argument " "2"" of type '" "size_t""'");
76247 arg2 =
static_cast< size_t >(val2);
76248 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
76249 if (!SWIG_IsOK(res3)) {
76250 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MapLong2Long_add" "', argument " "3"" of type '" "long const *""'");
76252 arg3 =
reinterpret_cast< long *
>(argp3);
76253 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
76254 if (!SWIG_IsOK(res4)) {
76255 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "MapLong2Long_add" "', argument " "4"" of type '" "long const *""'");
76257 arg4 =
reinterpret_cast< long *
>(argp4);
76258 (arg1)->add(arg2,(
long const *)arg3,(
long const *)arg4);
76259 resultobj = SWIG_Py_Void();
76266 SWIGINTERN PyObject *_wrap_MapLong2Long_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76267 PyObject *resultobj = 0;
76274 PyObject * obj0 = 0 ;
76275 PyObject * obj1 = 0 ;
76278 if (!PyArg_ParseTuple(args,(
char *)
"OO:MapLong2Long_search",&obj0,&obj1)) SWIG_fail;
76279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MapLong2Long, 0 | 0 );
76280 if (!SWIG_IsOK(res1)) {
76281 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MapLong2Long_search" "', argument " "1"" of type '" "MapLong2Long *""'");
76284 ecode2 = SWIG_AsVal_long(obj1, &val2);
76285 if (!SWIG_IsOK(ecode2)) {
76286 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MapLong2Long_search" "', argument " "2"" of type '" "long""'");
76288 arg2 =
static_cast< long >(val2);
76289 result = (long)(arg1)->search(arg2);
76290 resultobj = SWIG_From_long(static_cast< long >(result));
76297 SWIGINTERN PyObject *_wrap_MapLong2Long_search_multiple(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76298 PyObject *resultobj = 0;
76301 long *arg3 = (
long *) 0 ;
76302 long *arg4 = (
long *) 0 ;
76311 PyObject * obj0 = 0 ;
76312 PyObject * obj1 = 0 ;
76313 PyObject * obj2 = 0 ;
76314 PyObject * obj3 = 0 ;
76316 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:MapLong2Long_search_multiple",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
76317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MapLong2Long, 0 | 0 );
76318 if (!SWIG_IsOK(res1)) {
76319 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MapLong2Long_search_multiple" "', argument " "1"" of type '" "MapLong2Long *""'");
76322 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
76323 if (!SWIG_IsOK(ecode2)) {
76324 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MapLong2Long_search_multiple" "', argument " "2"" of type '" "size_t""'");
76326 arg2 =
static_cast< size_t >(val2);
76327 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
76328 if (!SWIG_IsOK(res3)) {
76329 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MapLong2Long_search_multiple" "', argument " "3"" of type '" "long const *""'");
76331 arg3 =
reinterpret_cast< long *
>(argp3);
76332 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
76333 if (!SWIG_IsOK(res4)) {
76334 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "MapLong2Long_search_multiple" "', argument " "4"" of type '" "long *""'");
76336 arg4 =
reinterpret_cast< long *
>(argp4);
76337 (arg1)->search_multiple(arg2,(
long const *)arg3,arg4);
76338 resultobj = SWIG_Py_Void();
76345 SWIGINTERN PyObject *_wrap_new_MapLong2Long(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76346 PyObject *resultobj = 0;
76349 if (!PyArg_ParseTuple(args,(
char *)
":new_MapLong2Long")) SWIG_fail;
76351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MapLong2Long, SWIG_POINTER_NEW | 0 );
76358 SWIGINTERN PyObject *_wrap_delete_MapLong2Long(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76359 PyObject *resultobj = 0;
76363 PyObject * obj0 = 0 ;
76365 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_MapLong2Long",&obj0)) SWIG_fail;
76366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MapLong2Long, SWIG_POINTER_DISOWN | 0 );
76367 if (!SWIG_IsOK(res1)) {
76368 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_MapLong2Long" "', argument " "1"" of type '" "MapLong2Long *""'");
76372 resultobj = SWIG_Py_Void();
76379 SWIGINTERN PyObject *MapLong2Long_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76381 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
76382 SWIG_TypeNewClientData(SWIGTYPE_p_MapLong2Long, SWIG_NewClientData(obj));
76383 return SWIG_Py_Void();
76386 static PyMethodDef SwigMethods[] = {
76387 { (
char *)
"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
76388 { (
char *)
"new_FloatVector", _wrap_new_FloatVector, METH_VARARGS, NULL},
76389 { (
char *)
"FloatVector_push_back", _wrap_FloatVector_push_back, METH_VARARGS, NULL},
76390 { (
char *)
"FloatVector_clear", _wrap_FloatVector_clear, METH_VARARGS, NULL},
76391 { (
char *)
"FloatVector_data", _wrap_FloatVector_data, METH_VARARGS, NULL},
76392 { (
char *)
"FloatVector_size", _wrap_FloatVector_size, METH_VARARGS, NULL},
76393 { (
char *)
"FloatVector_at", _wrap_FloatVector_at, METH_VARARGS, NULL},
76394 { (
char *)
"FloatVector_resize", _wrap_FloatVector_resize, METH_VARARGS, NULL},
76395 { (
char *)
"FloatVector_swap", _wrap_FloatVector_swap, METH_VARARGS, NULL},
76396 { (
char *)
"delete_FloatVector", _wrap_delete_FloatVector, METH_VARARGS, NULL},
76397 { (
char *)
"FloatVector_swigregister", FloatVector_swigregister, METH_VARARGS, NULL},
76398 { (
char *)
"new_DoubleVector", _wrap_new_DoubleVector, METH_VARARGS, NULL},
76399 { (
char *)
"DoubleVector_push_back", _wrap_DoubleVector_push_back, METH_VARARGS, NULL},
76400 { (
char *)
"DoubleVector_clear", _wrap_DoubleVector_clear, METH_VARARGS, NULL},
76401 { (
char *)
"DoubleVector_data", _wrap_DoubleVector_data, METH_VARARGS, NULL},
76402 { (
char *)
"DoubleVector_size", _wrap_DoubleVector_size, METH_VARARGS, NULL},
76403 { (
char *)
"DoubleVector_at", _wrap_DoubleVector_at, METH_VARARGS, NULL},
76404 { (
char *)
"DoubleVector_resize", _wrap_DoubleVector_resize, METH_VARARGS, NULL},
76405 { (
char *)
"DoubleVector_swap", _wrap_DoubleVector_swap, METH_VARARGS, NULL},
76406 { (
char *)
"delete_DoubleVector", _wrap_delete_DoubleVector, METH_VARARGS, NULL},
76407 { (
char *)
"DoubleVector_swigregister", DoubleVector_swigregister, METH_VARARGS, NULL},
76408 { (
char *)
"new_ByteVector", _wrap_new_ByteVector, METH_VARARGS, NULL},
76409 { (
char *)
"ByteVector_push_back", _wrap_ByteVector_push_back, METH_VARARGS, NULL},
76410 { (
char *)
"ByteVector_clear", _wrap_ByteVector_clear, METH_VARARGS, NULL},
76411 { (
char *)
"ByteVector_data", _wrap_ByteVector_data, METH_VARARGS, NULL},
76412 { (
char *)
"ByteVector_size", _wrap_ByteVector_size, METH_VARARGS, NULL},
76413 { (
char *)
"ByteVector_at", _wrap_ByteVector_at, METH_VARARGS, NULL},
76414 { (
char *)
"ByteVector_resize", _wrap_ByteVector_resize, METH_VARARGS, NULL},
76415 { (
char *)
"ByteVector_swap", _wrap_ByteVector_swap, METH_VARARGS, NULL},
76416 { (
char *)
"delete_ByteVector", _wrap_delete_ByteVector, METH_VARARGS, NULL},
76417 { (
char *)
"ByteVector_swigregister", ByteVector_swigregister, METH_VARARGS, NULL},
76418 { (
char *)
"new_CharVector", _wrap_new_CharVector, METH_VARARGS, NULL},
76419 { (
char *)
"CharVector_push_back", _wrap_CharVector_push_back, METH_VARARGS, NULL},
76420 { (
char *)
"CharVector_clear", _wrap_CharVector_clear, METH_VARARGS, NULL},
76421 { (
char *)
"CharVector_data", _wrap_CharVector_data, METH_VARARGS, NULL},
76422 { (
char *)
"CharVector_size", _wrap_CharVector_size, METH_VARARGS, NULL},
76423 { (
char *)
"CharVector_at", _wrap_CharVector_at, METH_VARARGS, NULL},
76424 { (
char *)
"CharVector_resize", _wrap_CharVector_resize, METH_VARARGS, NULL},
76425 { (
char *)
"CharVector_swap", _wrap_CharVector_swap, METH_VARARGS, NULL},
76426 { (
char *)
"delete_CharVector", _wrap_delete_CharVector, METH_VARARGS, NULL},
76427 { (
char *)
"CharVector_swigregister", CharVector_swigregister, METH_VARARGS, NULL},
76428 { (
char *)
"new_Uint64Vector", _wrap_new_Uint64Vector, METH_VARARGS, NULL},
76429 { (
char *)
"Uint64Vector_push_back", _wrap_Uint64Vector_push_back, METH_VARARGS, NULL},
76430 { (
char *)
"Uint64Vector_clear", _wrap_Uint64Vector_clear, METH_VARARGS, NULL},
76431 { (
char *)
"Uint64Vector_data", _wrap_Uint64Vector_data, METH_VARARGS, NULL},
76432 { (
char *)
"Uint64Vector_size", _wrap_Uint64Vector_size, METH_VARARGS, NULL},
76433 { (
char *)
"Uint64Vector_at", _wrap_Uint64Vector_at, METH_VARARGS, NULL},
76434 { (
char *)
"Uint64Vector_resize", _wrap_Uint64Vector_resize, METH_VARARGS, NULL},
76435 { (
char *)
"Uint64Vector_swap", _wrap_Uint64Vector_swap, METH_VARARGS, NULL},
76436 { (
char *)
"delete_Uint64Vector", _wrap_delete_Uint64Vector, METH_VARARGS, NULL},
76437 { (
char *)
"Uint64Vector_swigregister", Uint64Vector_swigregister, METH_VARARGS, NULL},
76438 { (
char *)
"new_LongVector", _wrap_new_LongVector, METH_VARARGS, NULL},
76439 { (
char *)
"LongVector_push_back", _wrap_LongVector_push_back, METH_VARARGS, NULL},
76440 { (
char *)
"LongVector_clear", _wrap_LongVector_clear, METH_VARARGS, NULL},
76441 { (
char *)
"LongVector_data", _wrap_LongVector_data, METH_VARARGS, NULL},
76442 { (
char *)
"LongVector_size", _wrap_LongVector_size, METH_VARARGS, NULL},
76443 { (
char *)
"LongVector_at", _wrap_LongVector_at, METH_VARARGS, NULL},
76444 { (
char *)
"LongVector_resize", _wrap_LongVector_resize, METH_VARARGS, NULL},
76445 { (
char *)
"LongVector_swap", _wrap_LongVector_swap, METH_VARARGS, NULL},
76446 { (
char *)
"delete_LongVector", _wrap_delete_LongVector, METH_VARARGS, NULL},
76447 { (
char *)
"LongVector_swigregister", LongVector_swigregister, METH_VARARGS, NULL},
76448 { (
char *)
"new_IntVector", _wrap_new_IntVector, METH_VARARGS, NULL},
76449 { (
char *)
"IntVector_push_back", _wrap_IntVector_push_back, METH_VARARGS, NULL},
76450 { (
char *)
"IntVector_clear", _wrap_IntVector_clear, METH_VARARGS, NULL},
76451 { (
char *)
"IntVector_data", _wrap_IntVector_data, METH_VARARGS, NULL},
76452 { (
char *)
"IntVector_size", _wrap_IntVector_size, METH_VARARGS, NULL},
76453 { (
char *)
"IntVector_at", _wrap_IntVector_at, METH_VARARGS, NULL},
76454 { (
char *)
"IntVector_resize", _wrap_IntVector_resize, METH_VARARGS, NULL},
76455 { (
char *)
"IntVector_swap", _wrap_IntVector_swap, METH_VARARGS, NULL},
76456 { (
char *)
"delete_IntVector", _wrap_delete_IntVector, METH_VARARGS, NULL},
76457 { (
char *)
"IntVector_swigregister", IntVector_swigregister, METH_VARARGS, NULL},
76458 { (
char *)
"new_VectorTransformVector", _wrap_new_VectorTransformVector, METH_VARARGS, NULL},
76459 { (
char *)
"VectorTransformVector_push_back", _wrap_VectorTransformVector_push_back, METH_VARARGS, NULL},
76460 { (
char *)
"VectorTransformVector_clear", _wrap_VectorTransformVector_clear, METH_VARARGS, NULL},
76461 { (
char *)
"VectorTransformVector_data", _wrap_VectorTransformVector_data, METH_VARARGS, NULL},
76462 { (
char *)
"VectorTransformVector_size", _wrap_VectorTransformVector_size, METH_VARARGS, NULL},
76463 { (
char *)
"VectorTransformVector_at", _wrap_VectorTransformVector_at, METH_VARARGS, NULL},
76464 { (
char *)
"VectorTransformVector_resize", _wrap_VectorTransformVector_resize, METH_VARARGS, NULL},
76465 { (
char *)
"VectorTransformVector_swap", _wrap_VectorTransformVector_swap, METH_VARARGS, NULL},
76466 { (
char *)
"delete_VectorTransformVector", _wrap_delete_VectorTransformVector, METH_VARARGS, NULL},
76467 { (
char *)
"VectorTransformVector_swigregister", VectorTransformVector_swigregister, METH_VARARGS, NULL},
76468 { (
char *)
"new_OperatingPointVector", _wrap_new_OperatingPointVector, METH_VARARGS, NULL},
76469 { (
char *)
"OperatingPointVector_push_back", _wrap_OperatingPointVector_push_back, METH_VARARGS, NULL},
76470 { (
char *)
"OperatingPointVector_clear", _wrap_OperatingPointVector_clear, METH_VARARGS, NULL},
76471 { (
char *)
"OperatingPointVector_data", _wrap_OperatingPointVector_data, METH_VARARGS, NULL},
76472 { (
char *)
"OperatingPointVector_size", _wrap_OperatingPointVector_size, METH_VARARGS, NULL},
76473 { (
char *)
"OperatingPointVector_at", _wrap_OperatingPointVector_at, METH_VARARGS, NULL},
76474 { (
char *)
"OperatingPointVector_resize", _wrap_OperatingPointVector_resize, METH_VARARGS, NULL},
76475 { (
char *)
"OperatingPointVector_swap", _wrap_OperatingPointVector_swap, METH_VARARGS, NULL},
76476 { (
char *)
"delete_OperatingPointVector", _wrap_delete_OperatingPointVector, METH_VARARGS, NULL},
76477 { (
char *)
"OperatingPointVector_swigregister", OperatingPointVector_swigregister, METH_VARARGS, NULL},
76478 { (
char *)
"new_InvertedListsPtrVector", _wrap_new_InvertedListsPtrVector, METH_VARARGS, NULL},
76479 { (
char *)
"InvertedListsPtrVector_push_back", _wrap_InvertedListsPtrVector_push_back, METH_VARARGS, NULL},
76480 { (
char *)
"InvertedListsPtrVector_clear", _wrap_InvertedListsPtrVector_clear, METH_VARARGS, NULL},
76481 { (
char *)
"InvertedListsPtrVector_data", _wrap_InvertedListsPtrVector_data, METH_VARARGS, NULL},
76482 { (
char *)
"InvertedListsPtrVector_size", _wrap_InvertedListsPtrVector_size, METH_VARARGS, NULL},
76483 { (
char *)
"InvertedListsPtrVector_at", _wrap_InvertedListsPtrVector_at, METH_VARARGS, NULL},
76484 { (
char *)
"InvertedListsPtrVector_resize", _wrap_InvertedListsPtrVector_resize, METH_VARARGS, NULL},
76485 { (
char *)
"InvertedListsPtrVector_swap", _wrap_InvertedListsPtrVector_swap, METH_VARARGS, NULL},
76486 { (
char *)
"delete_InvertedListsPtrVector", _wrap_delete_InvertedListsPtrVector, METH_VARARGS, NULL},
76487 { (
char *)
"InvertedListsPtrVector_swigregister", InvertedListsPtrVector_swigregister, METH_VARARGS, NULL},
76488 { (
char *)
"new_FloatVectorVector", _wrap_new_FloatVectorVector, METH_VARARGS, NULL},
76489 { (
char *)
"FloatVectorVector_push_back", _wrap_FloatVectorVector_push_back, METH_VARARGS, NULL},
76490 { (
char *)
"FloatVectorVector_clear", _wrap_FloatVectorVector_clear, METH_VARARGS, NULL},
76491 { (
char *)
"FloatVectorVector_data", _wrap_FloatVectorVector_data, METH_VARARGS, NULL},
76492 { (
char *)
"FloatVectorVector_size", _wrap_FloatVectorVector_size, METH_VARARGS, NULL},
76493 { (
char *)
"FloatVectorVector_at", _wrap_FloatVectorVector_at, METH_VARARGS, NULL},
76494 { (
char *)
"FloatVectorVector_resize", _wrap_FloatVectorVector_resize, METH_VARARGS, NULL},
76495 { (
char *)
"FloatVectorVector_swap", _wrap_FloatVectorVector_swap, METH_VARARGS, NULL},
76496 { (
char *)
"delete_FloatVectorVector", _wrap_delete_FloatVectorVector, METH_VARARGS, NULL},
76497 { (
char *)
"FloatVectorVector_swigregister", FloatVectorVector_swigregister, METH_VARARGS, NULL},
76498 { (
char *)
"new_ByteVectorVector", _wrap_new_ByteVectorVector, METH_VARARGS, NULL},
76499 { (
char *)
"ByteVectorVector_push_back", _wrap_ByteVectorVector_push_back, METH_VARARGS, NULL},
76500 { (
char *)
"ByteVectorVector_clear", _wrap_ByteVectorVector_clear, METH_VARARGS, NULL},
76501 { (
char *)
"ByteVectorVector_data", _wrap_ByteVectorVector_data, METH_VARARGS, NULL},
76502 { (
char *)
"ByteVectorVector_size", _wrap_ByteVectorVector_size, METH_VARARGS, NULL},
76503 { (
char *)
"ByteVectorVector_at", _wrap_ByteVectorVector_at, METH_VARARGS, NULL},
76504 { (
char *)
"ByteVectorVector_resize", _wrap_ByteVectorVector_resize, METH_VARARGS, NULL},
76505 { (
char *)
"ByteVectorVector_swap", _wrap_ByteVectorVector_swap, METH_VARARGS, NULL},
76506 { (
char *)
"delete_ByteVectorVector", _wrap_delete_ByteVectorVector, METH_VARARGS, NULL},
76507 { (
char *)
"ByteVectorVector_swigregister", ByteVectorVector_swigregister, METH_VARARGS, NULL},
76508 { (
char *)
"new_LongVectorVector", _wrap_new_LongVectorVector, METH_VARARGS, NULL},
76509 { (
char *)
"LongVectorVector_push_back", _wrap_LongVectorVector_push_back, METH_VARARGS, NULL},
76510 { (
char *)
"LongVectorVector_clear", _wrap_LongVectorVector_clear, METH_VARARGS, NULL},
76511 { (
char *)
"LongVectorVector_data", _wrap_LongVectorVector_data, METH_VARARGS, NULL},
76512 { (
char *)
"LongVectorVector_size", _wrap_LongVectorVector_size, METH_VARARGS, NULL},
76513 { (
char *)
"LongVectorVector_at", _wrap_LongVectorVector_at, METH_VARARGS, NULL},
76514 { (
char *)
"LongVectorVector_resize", _wrap_LongVectorVector_resize, METH_VARARGS, NULL},
76515 { (
char *)
"LongVectorVector_swap", _wrap_LongVectorVector_swap, METH_VARARGS, NULL},
76516 { (
char *)
"delete_LongVectorVector", _wrap_delete_LongVectorVector, METH_VARARGS, NULL},
76517 { (
char *)
"LongVectorVector_swigregister", LongVectorVector_swigregister, METH_VARARGS, NULL},
76518 { (
char *)
"popcount64", _wrap_popcount64, METH_VARARGS, NULL},
76519 { (
char *)
"hammings", _wrap_hammings, METH_VARARGS, NULL},
76520 { (
char *)
"bitvec_print", _wrap_bitvec_print, METH_VARARGS, NULL},
76521 { (
char *)
"fvecs2bitvecs", _wrap_fvecs2bitvecs, METH_VARARGS, NULL},
76522 { (
char *)
"fvec2bitvec", _wrap_fvec2bitvec, METH_VARARGS, NULL},
76523 { (
char *)
"hammings_knn_hc", _wrap_hammings_knn_hc, METH_VARARGS, NULL},
76524 { (
char *)
"hammings_knn", _wrap_hammings_knn, METH_VARARGS, NULL},
76525 { (
char *)
"hammings_knn_mc", _wrap_hammings_knn_mc, METH_VARARGS, NULL},
76526 { (
char *)
"hamming_count_thres", _wrap_hamming_count_thres, METH_VARARGS, NULL},
76527 { (
char *)
"match_hamming_thres", _wrap_match_hamming_thres, METH_VARARGS, NULL},
76528 { (
char *)
"crosshamming_count_thres", _wrap_crosshamming_count_thres, METH_VARARGS, NULL},
76529 { (
char *)
"HammingComputer4_a0_set", _wrap_HammingComputer4_a0_set, METH_VARARGS, NULL},
76530 { (
char *)
"HammingComputer4_a0_get", _wrap_HammingComputer4_a0_get, METH_VARARGS, NULL},
76531 { (
char *)
"new_HammingComputer4", _wrap_new_HammingComputer4, METH_VARARGS, NULL},
76532 { (
char *)
"HammingComputer4_set", _wrap_HammingComputer4_set, METH_VARARGS, NULL},
76533 { (
char *)
"HammingComputer4_hamming", _wrap_HammingComputer4_hamming, METH_VARARGS, NULL},
76534 { (
char *)
"delete_HammingComputer4", _wrap_delete_HammingComputer4, METH_VARARGS, NULL},
76535 { (
char *)
"HammingComputer4_swigregister", HammingComputer4_swigregister, METH_VARARGS, NULL},
76536 { (
char *)
"HammingComputer8_a0_set", _wrap_HammingComputer8_a0_set, METH_VARARGS, NULL},
76537 { (
char *)
"HammingComputer8_a0_get", _wrap_HammingComputer8_a0_get, METH_VARARGS, NULL},
76538 { (
char *)
"new_HammingComputer8", _wrap_new_HammingComputer8, METH_VARARGS, NULL},
76539 { (
char *)
"HammingComputer8_set", _wrap_HammingComputer8_set, METH_VARARGS, NULL},
76540 { (
char *)
"HammingComputer8_hamming", _wrap_HammingComputer8_hamming, METH_VARARGS, NULL},
76541 { (
char *)
"delete_HammingComputer8", _wrap_delete_HammingComputer8, METH_VARARGS, NULL},
76542 { (
char *)
"HammingComputer8_swigregister", HammingComputer8_swigregister, METH_VARARGS, NULL},
76543 { (
char *)
"HammingComputer16_a0_set", _wrap_HammingComputer16_a0_set, METH_VARARGS, NULL},
76544 { (
char *)
"HammingComputer16_a0_get", _wrap_HammingComputer16_a0_get, METH_VARARGS, NULL},
76545 { (
char *)
"HammingComputer16_a1_set", _wrap_HammingComputer16_a1_set, METH_VARARGS, NULL},
76546 { (
char *)
"HammingComputer16_a1_get", _wrap_HammingComputer16_a1_get, METH_VARARGS, NULL},
76547 { (
char *)
"new_HammingComputer16", _wrap_new_HammingComputer16, METH_VARARGS, NULL},
76548 { (
char *)
"HammingComputer16_set", _wrap_HammingComputer16_set, METH_VARARGS, NULL},
76549 { (
char *)
"HammingComputer16_hamming", _wrap_HammingComputer16_hamming, METH_VARARGS, NULL},
76550 { (
char *)
"delete_HammingComputer16", _wrap_delete_HammingComputer16, METH_VARARGS, NULL},
76551 { (
char *)
"HammingComputer16_swigregister", HammingComputer16_swigregister, METH_VARARGS, NULL},
76552 { (
char *)
"HammingComputer20_a0_set", _wrap_HammingComputer20_a0_set, METH_VARARGS, NULL},
76553 { (
char *)
"HammingComputer20_a0_get", _wrap_HammingComputer20_a0_get, METH_VARARGS, NULL},
76554 { (
char *)
"HammingComputer20_a1_set", _wrap_HammingComputer20_a1_set, METH_VARARGS, NULL},
76555 { (
char *)
"HammingComputer20_a1_get", _wrap_HammingComputer20_a1_get, METH_VARARGS, NULL},
76556 { (
char *)
"HammingComputer20_a2_set", _wrap_HammingComputer20_a2_set, METH_VARARGS, NULL},
76557 { (
char *)
"HammingComputer20_a2_get", _wrap_HammingComputer20_a2_get, METH_VARARGS, NULL},
76558 { (
char *)
"new_HammingComputer20", _wrap_new_HammingComputer20, METH_VARARGS, NULL},
76559 { (
char *)
"HammingComputer20_set", _wrap_HammingComputer20_set, METH_VARARGS, NULL},
76560 { (
char *)
"HammingComputer20_hamming", _wrap_HammingComputer20_hamming, METH_VARARGS, NULL},
76561 { (
char *)
"delete_HammingComputer20", _wrap_delete_HammingComputer20, METH_VARARGS, NULL},
76562 { (
char *)
"HammingComputer20_swigregister", HammingComputer20_swigregister, METH_VARARGS, NULL},
76563 { (
char *)
"HammingComputer32_a0_set", _wrap_HammingComputer32_a0_set, METH_VARARGS, NULL},
76564 { (
char *)
"HammingComputer32_a0_get", _wrap_HammingComputer32_a0_get, METH_VARARGS, NULL},
76565 { (
char *)
"HammingComputer32_a1_set", _wrap_HammingComputer32_a1_set, METH_VARARGS, NULL},
76566 { (
char *)
"HammingComputer32_a1_get", _wrap_HammingComputer32_a1_get, METH_VARARGS, NULL},
76567 { (
char *)
"HammingComputer32_a2_set", _wrap_HammingComputer32_a2_set, METH_VARARGS, NULL},
76568 { (
char *)
"HammingComputer32_a2_get", _wrap_HammingComputer32_a2_get, METH_VARARGS, NULL},
76569 { (
char *)
"HammingComputer32_a3_set", _wrap_HammingComputer32_a3_set, METH_VARARGS, NULL},
76570 { (
char *)
"HammingComputer32_a3_get", _wrap_HammingComputer32_a3_get, METH_VARARGS, NULL},
76571 { (
char *)
"new_HammingComputer32", _wrap_new_HammingComputer32, METH_VARARGS, NULL},
76572 { (
char *)
"HammingComputer32_set", _wrap_HammingComputer32_set, METH_VARARGS, NULL},
76573 { (
char *)
"HammingComputer32_hamming", _wrap_HammingComputer32_hamming, METH_VARARGS, NULL},
76574 { (
char *)
"delete_HammingComputer32", _wrap_delete_HammingComputer32, METH_VARARGS, NULL},
76575 { (
char *)
"HammingComputer32_swigregister", HammingComputer32_swigregister, METH_VARARGS, NULL},
76576 { (
char *)
"HammingComputer64_a0_set", _wrap_HammingComputer64_a0_set, METH_VARARGS, NULL},
76577 { (
char *)
"HammingComputer64_a0_get", _wrap_HammingComputer64_a0_get, METH_VARARGS, NULL},
76578 { (
char *)
"HammingComputer64_a1_set", _wrap_HammingComputer64_a1_set, METH_VARARGS, NULL},
76579 { (
char *)
"HammingComputer64_a1_get", _wrap_HammingComputer64_a1_get, METH_VARARGS, NULL},
76580 { (
char *)
"HammingComputer64_a2_set", _wrap_HammingComputer64_a2_set, METH_VARARGS, NULL},
76581 { (
char *)
"HammingComputer64_a2_get", _wrap_HammingComputer64_a2_get, METH_VARARGS, NULL},
76582 { (
char *)
"HammingComputer64_a3_set", _wrap_HammingComputer64_a3_set, METH_VARARGS, NULL},
76583 { (
char *)
"HammingComputer64_a3_get", _wrap_HammingComputer64_a3_get, METH_VARARGS, NULL},
76584 { (
char *)
"HammingComputer64_a4_set", _wrap_HammingComputer64_a4_set, METH_VARARGS, NULL},
76585 { (
char *)
"HammingComputer64_a4_get", _wrap_HammingComputer64_a4_get, METH_VARARGS, NULL},
76586 { (
char *)
"HammingComputer64_a5_set", _wrap_HammingComputer64_a5_set, METH_VARARGS, NULL},
76587 { (
char *)
"HammingComputer64_a5_get", _wrap_HammingComputer64_a5_get, METH_VARARGS, NULL},
76588 { (
char *)
"HammingComputer64_a6_set", _wrap_HammingComputer64_a6_set, METH_VARARGS, NULL},
76589 { (
char *)
"HammingComputer64_a6_get", _wrap_HammingComputer64_a6_get, METH_VARARGS, NULL},
76590 { (
char *)
"HammingComputer64_a7_set", _wrap_HammingComputer64_a7_set, METH_VARARGS, NULL},
76591 { (
char *)
"HammingComputer64_a7_get", _wrap_HammingComputer64_a7_get, METH_VARARGS, NULL},
76592 { (
char *)
"new_HammingComputer64", _wrap_new_HammingComputer64, METH_VARARGS, NULL},
76593 { (
char *)
"HammingComputer64_set", _wrap_HammingComputer64_set, METH_VARARGS, NULL},
76594 { (
char *)
"HammingComputer64_hamming", _wrap_HammingComputer64_hamming, METH_VARARGS, NULL},
76595 { (
char *)
"delete_HammingComputer64", _wrap_delete_HammingComputer64, METH_VARARGS, NULL},
76596 { (
char *)
"HammingComputer64_swigregister", HammingComputer64_swigregister, METH_VARARGS, NULL},
76597 { (
char *)
"HammingComputerDefault_a_set", _wrap_HammingComputerDefault_a_set, METH_VARARGS, NULL},
76598 { (
char *)
"HammingComputerDefault_a_get", _wrap_HammingComputerDefault_a_get, METH_VARARGS, NULL},
76599 { (
char *)
"HammingComputerDefault_n_set", _wrap_HammingComputerDefault_n_set, METH_VARARGS, NULL},
76600 { (
char *)
"HammingComputerDefault_n_get", _wrap_HammingComputerDefault_n_get, METH_VARARGS, NULL},
76601 { (
char *)
"new_HammingComputerDefault", _wrap_new_HammingComputerDefault, METH_VARARGS, NULL},
76602 { (
char *)
"HammingComputerDefault_set", _wrap_HammingComputerDefault_set, METH_VARARGS, NULL},
76603 { (
char *)
"HammingComputerDefault_hamming", _wrap_HammingComputerDefault_hamming, METH_VARARGS, NULL},
76604 { (
char *)
"delete_HammingComputerDefault", _wrap_delete_HammingComputerDefault, METH_VARARGS, NULL},
76605 { (
char *)
"HammingComputerDefault_swigregister", HammingComputerDefault_swigregister, METH_VARARGS, NULL},
76606 { (
char *)
"HammingComputerM8_a_set", _wrap_HammingComputerM8_a_set, METH_VARARGS, NULL},
76607 { (
char *)
"HammingComputerM8_a_get", _wrap_HammingComputerM8_a_get, METH_VARARGS, NULL},
76608 { (
char *)
"HammingComputerM8_n_set", _wrap_HammingComputerM8_n_set, METH_VARARGS, NULL},
76609 { (
char *)
"HammingComputerM8_n_get", _wrap_HammingComputerM8_n_get, METH_VARARGS, NULL},
76610 { (
char *)
"new_HammingComputerM8", _wrap_new_HammingComputerM8, METH_VARARGS, NULL},
76611 { (
char *)
"HammingComputerM8_set", _wrap_HammingComputerM8_set, METH_VARARGS, NULL},
76612 { (
char *)
"HammingComputerM8_hamming", _wrap_HammingComputerM8_hamming, METH_VARARGS, NULL},
76613 { (
char *)
"delete_HammingComputerM8", _wrap_delete_HammingComputerM8, METH_VARARGS, NULL},
76614 { (
char *)
"HammingComputerM8_swigregister", HammingComputerM8_swigregister, METH_VARARGS, NULL},
76615 { (
char *)
"HammingComputerM4_a_set", _wrap_HammingComputerM4_a_set, METH_VARARGS, NULL},
76616 { (
char *)
"HammingComputerM4_a_get", _wrap_HammingComputerM4_a_get, METH_VARARGS, NULL},
76617 { (
char *)
"HammingComputerM4_n_set", _wrap_HammingComputerM4_n_set, METH_VARARGS, NULL},
76618 { (
char *)
"HammingComputerM4_n_get", _wrap_HammingComputerM4_n_get, METH_VARARGS, NULL},
76619 { (
char *)
"new_HammingComputerM4", _wrap_new_HammingComputerM4, METH_VARARGS, NULL},
76620 { (
char *)
"HammingComputerM4_set", _wrap_HammingComputerM4_set, METH_VARARGS, NULL},
76621 { (
char *)
"HammingComputerM4_hamming", _wrap_HammingComputerM4_hamming, METH_VARARGS, NULL},
76622 { (
char *)
"delete_HammingComputerM4", _wrap_delete_HammingComputerM4, METH_VARARGS, NULL},
76623 { (
char *)
"HammingComputerM4_swigregister", HammingComputerM4_swigregister, METH_VARARGS, NULL},
76624 { (
char *)
"generalized_hamming_64", _wrap_generalized_hamming_64, METH_VARARGS, NULL},
76625 { (
char *)
"GenHammingComputer8_a0_set", _wrap_GenHammingComputer8_a0_set, METH_VARARGS, NULL},
76626 { (
char *)
"GenHammingComputer8_a0_get", _wrap_GenHammingComputer8_a0_get, METH_VARARGS, NULL},
76627 { (
char *)
"new_GenHammingComputer8", _wrap_new_GenHammingComputer8, METH_VARARGS, NULL},
76628 { (
char *)
"GenHammingComputer8_hamming", _wrap_GenHammingComputer8_hamming, METH_VARARGS, NULL},
76629 { (
char *)
"delete_GenHammingComputer8", _wrap_delete_GenHammingComputer8, METH_VARARGS, NULL},
76630 { (
char *)
"GenHammingComputer8_swigregister", GenHammingComputer8_swigregister, METH_VARARGS, NULL},
76631 { (
char *)
"GenHammingComputer16_a0_set", _wrap_GenHammingComputer16_a0_set, METH_VARARGS, NULL},
76632 { (
char *)
"GenHammingComputer16_a0_get", _wrap_GenHammingComputer16_a0_get, METH_VARARGS, NULL},
76633 { (
char *)
"GenHammingComputer16_a1_set", _wrap_GenHammingComputer16_a1_set, METH_VARARGS, NULL},
76634 { (
char *)
"GenHammingComputer16_a1_get", _wrap_GenHammingComputer16_a1_get, METH_VARARGS, NULL},
76635 { (
char *)
"new_GenHammingComputer16", _wrap_new_GenHammingComputer16, METH_VARARGS, NULL},
76636 { (
char *)
"GenHammingComputer16_hamming", _wrap_GenHammingComputer16_hamming, METH_VARARGS, NULL},
76637 { (
char *)
"delete_GenHammingComputer16", _wrap_delete_GenHammingComputer16, METH_VARARGS, NULL},
76638 { (
char *)
"GenHammingComputer16_swigregister", GenHammingComputer16_swigregister, METH_VARARGS, NULL},
76639 { (
char *)
"GenHammingComputer32_a0_set", _wrap_GenHammingComputer32_a0_set, METH_VARARGS, NULL},
76640 { (
char *)
"GenHammingComputer32_a0_get", _wrap_GenHammingComputer32_a0_get, METH_VARARGS, NULL},
76641 { (
char *)
"GenHammingComputer32_a1_set", _wrap_GenHammingComputer32_a1_set, METH_VARARGS, NULL},
76642 { (
char *)
"GenHammingComputer32_a1_get", _wrap_GenHammingComputer32_a1_get, METH_VARARGS, NULL},
76643 { (
char *)
"GenHammingComputer32_a2_set", _wrap_GenHammingComputer32_a2_set, METH_VARARGS, NULL},
76644 { (
char *)
"GenHammingComputer32_a2_get", _wrap_GenHammingComputer32_a2_get, METH_VARARGS, NULL},
76645 { (
char *)
"GenHammingComputer32_a3_set", _wrap_GenHammingComputer32_a3_set, METH_VARARGS, NULL},
76646 { (
char *)
"GenHammingComputer32_a3_get", _wrap_GenHammingComputer32_a3_get, METH_VARARGS, NULL},
76647 { (
char *)
"new_GenHammingComputer32", _wrap_new_GenHammingComputer32, METH_VARARGS, NULL},
76648 { (
char *)
"GenHammingComputer32_hamming", _wrap_GenHammingComputer32_hamming, METH_VARARGS, NULL},
76649 { (
char *)
"delete_GenHammingComputer32", _wrap_delete_GenHammingComputer32, METH_VARARGS, NULL},
76650 { (
char *)
"GenHammingComputer32_swigregister", GenHammingComputer32_swigregister, METH_VARARGS, NULL},
76651 { (
char *)
"GenHammingComputerM8_a_set", _wrap_GenHammingComputerM8_a_set, METH_VARARGS, NULL},
76652 { (
char *)
"GenHammingComputerM8_a_get", _wrap_GenHammingComputerM8_a_get, METH_VARARGS, NULL},
76653 { (
char *)
"GenHammingComputerM8_n_set", _wrap_GenHammingComputerM8_n_set, METH_VARARGS, NULL},
76654 { (
char *)
"GenHammingComputerM8_n_get", _wrap_GenHammingComputerM8_n_get, METH_VARARGS, NULL},
76655 { (
char *)
"new_GenHammingComputerM8", _wrap_new_GenHammingComputerM8, METH_VARARGS, NULL},
76656 { (
char *)
"GenHammingComputerM8_hamming", _wrap_GenHammingComputerM8_hamming, METH_VARARGS, NULL},
76657 { (
char *)
"delete_GenHammingComputerM8", _wrap_delete_GenHammingComputerM8, METH_VARARGS, NULL},
76658 { (
char *)
"GenHammingComputerM8_swigregister", GenHammingComputerM8_swigregister, METH_VARARGS, NULL},
76659 { (
char *)
"generalized_hammings_knn_hc", _wrap_generalized_hammings_knn_hc, METH_VARARGS, NULL},
76660 { (
char *)
"get_num_gpus", _wrap_get_num_gpus, METH_VARARGS, NULL},
76661 { (
char *)
"getmillisecs", _wrap_getmillisecs, METH_VARARGS, NULL},
76662 { (
char *)
"get_mem_usage_kb", _wrap_get_mem_usage_kb, METH_VARARGS, NULL},
76663 { (
char *)
"RandomGenerator_mt_set", _wrap_RandomGenerator_mt_set, METH_VARARGS, NULL},
76664 { (
char *)
"RandomGenerator_mt_get", _wrap_RandomGenerator_mt_get, METH_VARARGS, NULL},
76665 { (
char *)
"RandomGenerator_rand_long", _wrap_RandomGenerator_rand_long, METH_VARARGS, NULL},
76666 { (
char *)
"RandomGenerator_rand_int", _wrap_RandomGenerator_rand_int, METH_VARARGS, NULL},
76667 { (
char *)
"RandomGenerator_rand_float", _wrap_RandomGenerator_rand_float, METH_VARARGS, NULL},
76668 { (
char *)
"RandomGenerator_rand_double", _wrap_RandomGenerator_rand_double, METH_VARARGS, NULL},
76669 { (
char *)
"new_RandomGenerator", _wrap_new_RandomGenerator, METH_VARARGS, NULL},
76670 { (
char *)
"delete_RandomGenerator", _wrap_delete_RandomGenerator, METH_VARARGS, NULL},
76671 { (
char *)
"RandomGenerator_swigregister", RandomGenerator_swigregister, METH_VARARGS, NULL},
76672 { (
char *)
"float_rand", _wrap_float_rand, METH_VARARGS, NULL},
76673 { (
char *)
"float_randn", _wrap_float_randn, METH_VARARGS, NULL},
76674 { (
char *)
"long_rand", _wrap_long_rand, METH_VARARGS, NULL},
76675 { (
char *)
"byte_rand", _wrap_byte_rand, METH_VARARGS, NULL},
76676 { (
char *)
"rand_perm", _wrap_rand_perm, METH_VARARGS, NULL},
76677 { (
char *)
"fvec_L2sqr", _wrap_fvec_L2sqr, METH_VARARGS, NULL},
76678 { (
char *)
"fvec_inner_product", _wrap_fvec_inner_product, METH_VARARGS, NULL},
76679 { (
char *)
"imbalance_factor", _wrap_imbalance_factor, METH_VARARGS, NULL},
76680 { (
char *)
"pairwise_L2sqr", _wrap_pairwise_L2sqr, METH_VARARGS, NULL},
76681 { (
char *)
"fvec_inner_products_ny", _wrap_fvec_inner_products_ny, METH_VARARGS, NULL},
76682 { (
char *)
"fvec_L2sqr_ny", _wrap_fvec_L2sqr_ny, METH_VARARGS, NULL},
76683 { (
char *)
"fvec_norm_L2sqr", _wrap_fvec_norm_L2sqr, METH_VARARGS, NULL},
76684 { (
char *)
"fvec_norms_L2", _wrap_fvec_norms_L2, METH_VARARGS, NULL},
76685 { (
char *)
"fvec_norms_L2sqr", _wrap_fvec_norms_L2sqr, METH_VARARGS, NULL},
76686 { (
char *)
"fvec_renorm_L2", _wrap_fvec_renorm_L2, METH_VARARGS, NULL},
76687 { (
char *)
"inner_product_to_L2sqr", _wrap_inner_product_to_L2sqr, METH_VARARGS, NULL},
76688 { (
char *)
"fvec_inner_products_by_idx", _wrap_fvec_inner_products_by_idx, METH_VARARGS, NULL},
76689 { (
char *)
"fvec_L2sqr_by_idx", _wrap_fvec_L2sqr_by_idx, METH_VARARGS, NULL},
76690 { (
char *)
"knn_inner_product", _wrap_knn_inner_product, METH_VARARGS, NULL},
76691 { (
char *)
"knn_L2sqr", _wrap_knn_L2sqr, METH_VARARGS, NULL},
76692 { (
char *)
"knn_L2sqr_base_shift", _wrap_knn_L2sqr_base_shift, METH_VARARGS, NULL},
76693 { (
char *)
"knn_inner_products_by_idx", _wrap_knn_inner_products_by_idx, METH_VARARGS, NULL},
76694 { (
char *)
"knn_L2sqr_by_idx", _wrap_knn_L2sqr_by_idx, METH_VARARGS, NULL},
76695 { (
char *)
"range_search_L2sqr", _wrap_range_search_L2sqr, METH_VARARGS, NULL},
76696 { (
char *)
"range_search_inner_product", _wrap_range_search_inner_product, METH_VARARGS, NULL},
76697 { (
char *)
"fvec_madd", _wrap_fvec_madd, METH_VARARGS, NULL},
76698 { (
char *)
"fvec_madd_and_argmin", _wrap_fvec_madd_and_argmin, METH_VARARGS, NULL},
76699 { (
char *)
"reflection", _wrap_reflection, METH_VARARGS, NULL},
76700 { (
char *)
"km_update_centroids", _wrap_km_update_centroids, METH_VARARGS, NULL},
76701 { (
char *)
"matrix_qr", _wrap_matrix_qr, METH_VARARGS, NULL},
76702 { (
char *)
"ranklist_handle_ties", _wrap_ranklist_handle_ties, METH_VARARGS, NULL},
76703 { (
char *)
"ranklist_intersection_size", _wrap_ranklist_intersection_size, METH_VARARGS, NULL},
76704 { (
char *)
"merge_result_table_with", _wrap_merge_result_table_with, METH_VARARGS, NULL},
76705 { (
char *)
"fvec_argsort", _wrap_fvec_argsort, METH_VARARGS, NULL},
76706 { (
char *)
"fvec_argsort_parallel", _wrap_fvec_argsort_parallel, METH_VARARGS, NULL},
76707 { (
char *)
"ivec_hist", _wrap_ivec_hist, METH_VARARGS, NULL},
76708 { (
char *)
"bincode_hist", _wrap_bincode_hist, METH_VARARGS, NULL},
76709 { (
char *)
"ivec_checksum", _wrap_ivec_checksum, METH_VARARGS, NULL},
76710 { (
char *)
"fvecs_maybe_subsample", _wrap_fvecs_maybe_subsample, METH_VARARGS, NULL},
76711 { (
char *)
"binary_to_real", _wrap_binary_to_real, METH_VARARGS, NULL},
76712 { (
char *)
"real_to_binary", _wrap_real_to_binary, METH_VARARGS, NULL},
76713 { (
char *)
"Index_d_set", _wrap_Index_d_set, METH_VARARGS, NULL},
76714 { (
char *)
"Index_d_get", _wrap_Index_d_get, METH_VARARGS, NULL},
76715 { (
char *)
"Index_ntotal_set", _wrap_Index_ntotal_set, METH_VARARGS, NULL},
76716 { (
char *)
"Index_ntotal_get", _wrap_Index_ntotal_get, METH_VARARGS, NULL},
76717 { (
char *)
"Index_verbose_set", _wrap_Index_verbose_set, METH_VARARGS, NULL},
76718 { (
char *)
"Index_verbose_get", _wrap_Index_verbose_get, METH_VARARGS, NULL},
76719 { (
char *)
"Index_is_trained_set", _wrap_Index_is_trained_set, METH_VARARGS, NULL},
76720 { (
char *)
"Index_is_trained_get", _wrap_Index_is_trained_get, METH_VARARGS, NULL},
76721 { (
char *)
"Index_metric_type_set", _wrap_Index_metric_type_set, METH_VARARGS, NULL},
76722 { (
char *)
"Index_metric_type_get", _wrap_Index_metric_type_get, METH_VARARGS, NULL},
76723 { (
char *)
"delete_Index", _wrap_delete_Index, METH_VARARGS, NULL},
76724 { (
char *)
"Index_train", _wrap_Index_train, METH_VARARGS, NULL},
76725 { (
char *)
"Index_add", _wrap_Index_add, METH_VARARGS, NULL},
76726 { (
char *)
"Index_add_with_ids", _wrap_Index_add_with_ids, METH_VARARGS, NULL},
76727 { (
char *)
"Index_search", _wrap_Index_search, METH_VARARGS, NULL},
76728 { (
char *)
"Index_range_search", _wrap_Index_range_search, METH_VARARGS, NULL},
76729 { (
char *)
"Index_assign", _wrap_Index_assign, METH_VARARGS, NULL},
76730 { (
char *)
"Index_reset", _wrap_Index_reset, METH_VARARGS, NULL},
76731 { (
char *)
"Index_remove_ids", _wrap_Index_remove_ids, METH_VARARGS, NULL},
76732 { (
char *)
"Index_reconstruct", _wrap_Index_reconstruct, METH_VARARGS, NULL},
76733 { (
char *)
"Index_reconstruct_n", _wrap_Index_reconstruct_n, METH_VARARGS, NULL},
76734 { (
char *)
"Index_search_and_reconstruct", _wrap_Index_search_and_reconstruct, METH_VARARGS, NULL},
76735 { (
char *)
"Index_compute_residual", _wrap_Index_compute_residual, METH_VARARGS, NULL},
76736 { (
char *)
"Index_display", _wrap_Index_display, METH_VARARGS, NULL},
76737 { (
char *)
"Index_swigregister", Index_swigregister, METH_VARARGS, NULL},
76738 { (
char *)
"ClusteringParameters_niter_set", _wrap_ClusteringParameters_niter_set, METH_VARARGS, NULL},
76739 { (
char *)
"ClusteringParameters_niter_get", _wrap_ClusteringParameters_niter_get, METH_VARARGS, NULL},
76740 { (
char *)
"ClusteringParameters_nredo_set", _wrap_ClusteringParameters_nredo_set, METH_VARARGS, NULL},
76741 { (
char *)
"ClusteringParameters_nredo_get", _wrap_ClusteringParameters_nredo_get, METH_VARARGS, NULL},
76742 { (
char *)
"ClusteringParameters_verbose_set", _wrap_ClusteringParameters_verbose_set, METH_VARARGS, NULL},
76743 { (
char *)
"ClusteringParameters_verbose_get", _wrap_ClusteringParameters_verbose_get, METH_VARARGS, NULL},
76744 { (
char *)
"ClusteringParameters_spherical_set", _wrap_ClusteringParameters_spherical_set, METH_VARARGS, NULL},
76745 { (
char *)
"ClusteringParameters_spherical_get", _wrap_ClusteringParameters_spherical_get, METH_VARARGS, NULL},
76746 { (
char *)
"ClusteringParameters_update_index_set", _wrap_ClusteringParameters_update_index_set, METH_VARARGS, NULL},
76747 { (
char *)
"ClusteringParameters_update_index_get", _wrap_ClusteringParameters_update_index_get, METH_VARARGS, NULL},
76748 { (
char *)
"ClusteringParameters_frozen_centroids_set", _wrap_ClusteringParameters_frozen_centroids_set, METH_VARARGS, NULL},
76749 { (
char *)
"ClusteringParameters_frozen_centroids_get", _wrap_ClusteringParameters_frozen_centroids_get, METH_VARARGS, NULL},
76750 { (
char *)
"ClusteringParameters_min_points_per_centroid_set", _wrap_ClusteringParameters_min_points_per_centroid_set, METH_VARARGS, NULL},
76751 { (
char *)
"ClusteringParameters_min_points_per_centroid_get", _wrap_ClusteringParameters_min_points_per_centroid_get, METH_VARARGS, NULL},
76752 { (
char *)
"ClusteringParameters_max_points_per_centroid_set", _wrap_ClusteringParameters_max_points_per_centroid_set, METH_VARARGS, NULL},
76753 { (
char *)
"ClusteringParameters_max_points_per_centroid_get", _wrap_ClusteringParameters_max_points_per_centroid_get, METH_VARARGS, NULL},
76754 { (
char *)
"ClusteringParameters_seed_set", _wrap_ClusteringParameters_seed_set, METH_VARARGS, NULL},
76755 { (
char *)
"ClusteringParameters_seed_get", _wrap_ClusteringParameters_seed_get, METH_VARARGS, NULL},
76756 { (
char *)
"new_ClusteringParameters", _wrap_new_ClusteringParameters, METH_VARARGS, NULL},
76757 { (
char *)
"delete_ClusteringParameters", _wrap_delete_ClusteringParameters, METH_VARARGS, NULL},
76758 { (
char *)
"ClusteringParameters_swigregister", ClusteringParameters_swigregister, METH_VARARGS, NULL},
76759 { (
char *)
"Clustering_d_set", _wrap_Clustering_d_set, METH_VARARGS, NULL},
76760 { (
char *)
"Clustering_d_get", _wrap_Clustering_d_get, METH_VARARGS, NULL},
76761 { (
char *)
"Clustering_k_set", _wrap_Clustering_k_set, METH_VARARGS, NULL},
76762 { (
char *)
"Clustering_k_get", _wrap_Clustering_k_get, METH_VARARGS, NULL},
76763 { (
char *)
"Clustering_centroids_set", _wrap_Clustering_centroids_set, METH_VARARGS, NULL},
76764 { (
char *)
"Clustering_centroids_get", _wrap_Clustering_centroids_get, METH_VARARGS, NULL},
76765 { (
char *)
"Clustering_obj_set", _wrap_Clustering_obj_set, METH_VARARGS, NULL},
76766 { (
char *)
"Clustering_obj_get", _wrap_Clustering_obj_get, METH_VARARGS, NULL},
76767 { (
char *)
"new_Clustering", _wrap_new_Clustering, METH_VARARGS, NULL},
76768 { (
char *)
"Clustering_train", _wrap_Clustering_train, METH_VARARGS, NULL},
76769 { (
char *)
"delete_Clustering", _wrap_delete_Clustering, METH_VARARGS, NULL},
76770 { (
char *)
"Clustering_swigregister", Clustering_swigregister, METH_VARARGS, NULL},
76771 { (
char *)
"kmeans_clustering", _wrap_kmeans_clustering, METH_VARARGS, NULL},
76772 { (
char *)
"ProductQuantizer_d_set", _wrap_ProductQuantizer_d_set, METH_VARARGS, NULL},
76773 { (
char *)
"ProductQuantizer_d_get", _wrap_ProductQuantizer_d_get, METH_VARARGS, NULL},
76774 { (
char *)
"ProductQuantizer_M_set", _wrap_ProductQuantizer_M_set, METH_VARARGS, NULL},
76775 { (
char *)
"ProductQuantizer_M_get", _wrap_ProductQuantizer_M_get, METH_VARARGS, NULL},
76776 { (
char *)
"ProductQuantizer_nbits_set", _wrap_ProductQuantizer_nbits_set, METH_VARARGS, NULL},
76777 { (
char *)
"ProductQuantizer_nbits_get", _wrap_ProductQuantizer_nbits_get, METH_VARARGS, NULL},
76778 { (
char *)
"ProductQuantizer_dsub_set", _wrap_ProductQuantizer_dsub_set, METH_VARARGS, NULL},
76779 { (
char *)
"ProductQuantizer_dsub_get", _wrap_ProductQuantizer_dsub_get, METH_VARARGS, NULL},
76780 { (
char *)
"ProductQuantizer_byte_per_idx_set", _wrap_ProductQuantizer_byte_per_idx_set, METH_VARARGS, NULL},
76781 { (
char *)
"ProductQuantizer_byte_per_idx_get", _wrap_ProductQuantizer_byte_per_idx_get, METH_VARARGS, NULL},
76782 { (
char *)
"ProductQuantizer_code_size_set", _wrap_ProductQuantizer_code_size_set, METH_VARARGS, NULL},
76783 { (
char *)
"ProductQuantizer_code_size_get", _wrap_ProductQuantizer_code_size_get, METH_VARARGS, NULL},
76784 { (
char *)
"ProductQuantizer_ksub_set", _wrap_ProductQuantizer_ksub_set, METH_VARARGS, NULL},
76785 { (
char *)
"ProductQuantizer_ksub_get", _wrap_ProductQuantizer_ksub_get, METH_VARARGS, NULL},
76786 { (
char *)
"ProductQuantizer_verbose_set", _wrap_ProductQuantizer_verbose_set, METH_VARARGS, NULL},
76787 { (
char *)
"ProductQuantizer_verbose_get", _wrap_ProductQuantizer_verbose_get, METH_VARARGS, NULL},
76788 { (
char *)
"ProductQuantizer_train_type_set", _wrap_ProductQuantizer_train_type_set, METH_VARARGS, NULL},
76789 { (
char *)
"ProductQuantizer_train_type_get", _wrap_ProductQuantizer_train_type_get, METH_VARARGS, NULL},
76790 { (
char *)
"ProductQuantizer_cp_set", _wrap_ProductQuantizer_cp_set, METH_VARARGS, NULL},
76791 { (
char *)
"ProductQuantizer_cp_get", _wrap_ProductQuantizer_cp_get, METH_VARARGS, NULL},
76792 { (
char *)
"ProductQuantizer_assign_index_set", _wrap_ProductQuantizer_assign_index_set, METH_VARARGS, NULL},
76793 { (
char *)
"ProductQuantizer_assign_index_get", _wrap_ProductQuantizer_assign_index_get, METH_VARARGS, NULL},
76794 { (
char *)
"ProductQuantizer_centroids_set", _wrap_ProductQuantizer_centroids_set, METH_VARARGS, NULL},
76795 { (
char *)
"ProductQuantizer_centroids_get", _wrap_ProductQuantizer_centroids_get, METH_VARARGS, NULL},
76796 { (
char *)
"ProductQuantizer_get_centroids", _wrap_ProductQuantizer_get_centroids, METH_VARARGS, NULL},
76797 { (
char *)
"ProductQuantizer_train", _wrap_ProductQuantizer_train, METH_VARARGS, NULL},
76798 { (
char *)
"new_ProductQuantizer", _wrap_new_ProductQuantizer, METH_VARARGS, NULL},
76799 { (
char *)
"ProductQuantizer_set_derived_values", _wrap_ProductQuantizer_set_derived_values, METH_VARARGS, NULL},
76800 { (
char *)
"ProductQuantizer_set_params", _wrap_ProductQuantizer_set_params, METH_VARARGS, NULL},
76801 { (
char *)
"ProductQuantizer_compute_code", _wrap_ProductQuantizer_compute_code, METH_VARARGS, NULL},
76802 { (
char *)
"ProductQuantizer_compute_codes", _wrap_ProductQuantizer_compute_codes, METH_VARARGS, NULL},
76803 { (
char *)
"ProductQuantizer_decode", _wrap_ProductQuantizer_decode, METH_VARARGS, NULL},
76804 { (
char *)
"ProductQuantizer_compute_code_from_distance_table", _wrap_ProductQuantizer_compute_code_from_distance_table, METH_VARARGS, NULL},
76805 { (
char *)
"ProductQuantizer_compute_distance_table", _wrap_ProductQuantizer_compute_distance_table, METH_VARARGS, NULL},
76806 { (
char *)
"ProductQuantizer_compute_inner_prod_table", _wrap_ProductQuantizer_compute_inner_prod_table, METH_VARARGS, NULL},
76807 { (
char *)
"ProductQuantizer_compute_distance_tables", _wrap_ProductQuantizer_compute_distance_tables, METH_VARARGS, NULL},
76808 { (
char *)
"ProductQuantizer_compute_inner_prod_tables", _wrap_ProductQuantizer_compute_inner_prod_tables, METH_VARARGS, NULL},
76809 { (
char *)
"ProductQuantizer_search", _wrap_ProductQuantizer_search, METH_VARARGS, NULL},
76810 { (
char *)
"ProductQuantizer_search_ip", _wrap_ProductQuantizer_search_ip, METH_VARARGS, NULL},
76811 { (
char *)
"ProductQuantizer_sdc_table_set", _wrap_ProductQuantizer_sdc_table_set, METH_VARARGS, NULL},
76812 { (
char *)
"ProductQuantizer_sdc_table_get", _wrap_ProductQuantizer_sdc_table_get, METH_VARARGS, NULL},
76813 { (
char *)
"ProductQuantizer_compute_sdc_table", _wrap_ProductQuantizer_compute_sdc_table, METH_VARARGS, NULL},
76814 { (
char *)
"ProductQuantizer_search_sdc", _wrap_ProductQuantizer_search_sdc, METH_VARARGS, NULL},
76815 { (
char *)
"delete_ProductQuantizer", _wrap_delete_ProductQuantizer, METH_VARARGS, NULL},
76816 { (
char *)
"ProductQuantizer_swigregister", ProductQuantizer_swigregister, METH_VARARGS, NULL},
76817 { (
char *)
"VectorTransform_d_in_set", _wrap_VectorTransform_d_in_set, METH_VARARGS, NULL},
76818 { (
char *)
"VectorTransform_d_in_get", _wrap_VectorTransform_d_in_get, METH_VARARGS, NULL},
76819 { (
char *)
"VectorTransform_d_out_set", _wrap_VectorTransform_d_out_set, METH_VARARGS, NULL},
76820 { (
char *)
"VectorTransform_d_out_get", _wrap_VectorTransform_d_out_get, METH_VARARGS, NULL},
76821 { (
char *)
"VectorTransform_is_trained_set", _wrap_VectorTransform_is_trained_set, METH_VARARGS, NULL},
76822 { (
char *)
"VectorTransform_is_trained_get", _wrap_VectorTransform_is_trained_get, METH_VARARGS, NULL},
76823 { (
char *)
"VectorTransform_train", _wrap_VectorTransform_train, METH_VARARGS, NULL},
76824 { (
char *)
"VectorTransform_apply", _wrap_VectorTransform_apply, METH_VARARGS, NULL},
76825 { (
char *)
"VectorTransform_apply_noalloc", _wrap_VectorTransform_apply_noalloc, METH_VARARGS, NULL},
76826 { (
char *)
"VectorTransform_reverse_transform", _wrap_VectorTransform_reverse_transform, METH_VARARGS, NULL},
76827 { (
char *)
"delete_VectorTransform", _wrap_delete_VectorTransform, METH_VARARGS, NULL},
76828 { (
char *)
"VectorTransform_swigregister", VectorTransform_swigregister, METH_VARARGS, NULL},
76829 { (
char *)
"LinearTransform_have_bias_set", _wrap_LinearTransform_have_bias_set, METH_VARARGS, NULL},
76830 { (
char *)
"LinearTransform_have_bias_get", _wrap_LinearTransform_have_bias_get, METH_VARARGS, NULL},
76831 { (
char *)
"LinearTransform_is_orthonormal_set", _wrap_LinearTransform_is_orthonormal_set, METH_VARARGS, NULL},
76832 { (
char *)
"LinearTransform_is_orthonormal_get", _wrap_LinearTransform_is_orthonormal_get, METH_VARARGS, NULL},
76833 { (
char *)
"LinearTransform_A_set", _wrap_LinearTransform_A_set, METH_VARARGS, NULL},
76834 { (
char *)
"LinearTransform_A_get", _wrap_LinearTransform_A_get, METH_VARARGS, NULL},
76835 { (
char *)
"LinearTransform_b_set", _wrap_LinearTransform_b_set, METH_VARARGS, NULL},
76836 { (
char *)
"LinearTransform_b_get", _wrap_LinearTransform_b_get, METH_VARARGS, NULL},
76837 { (
char *)
"new_LinearTransform", _wrap_new_LinearTransform, METH_VARARGS, NULL},
76838 { (
char *)
"LinearTransform_apply_noalloc", _wrap_LinearTransform_apply_noalloc, METH_VARARGS, NULL},
76839 { (
char *)
"LinearTransform_transform_transpose", _wrap_LinearTransform_transform_transpose, METH_VARARGS, NULL},
76840 { (
char *)
"LinearTransform_reverse_transform", _wrap_LinearTransform_reverse_transform, METH_VARARGS, NULL},
76841 { (
char *)
"LinearTransform_set_is_orthonormal", _wrap_LinearTransform_set_is_orthonormal, METH_VARARGS, NULL},
76842 { (
char *)
"LinearTransform_verbose_set", _wrap_LinearTransform_verbose_set, METH_VARARGS, NULL},
76843 { (
char *)
"LinearTransform_verbose_get", _wrap_LinearTransform_verbose_get, METH_VARARGS, NULL},
76844 { (
char *)
"delete_LinearTransform", _wrap_delete_LinearTransform, METH_VARARGS, NULL},
76845 { (
char *)
"LinearTransform_swigregister", LinearTransform_swigregister, METH_VARARGS, NULL},
76846 { (
char *)
"RandomRotationMatrix_init", _wrap_RandomRotationMatrix_init, METH_VARARGS, NULL},
76847 { (
char *)
"RandomRotationMatrix_train", _wrap_RandomRotationMatrix_train, METH_VARARGS, NULL},
76848 { (
char *)
"new_RandomRotationMatrix", _wrap_new_RandomRotationMatrix, METH_VARARGS, NULL},
76849 { (
char *)
"delete_RandomRotationMatrix", _wrap_delete_RandomRotationMatrix, METH_VARARGS, NULL},
76850 { (
char *)
"RandomRotationMatrix_swigregister", RandomRotationMatrix_swigregister, METH_VARARGS, NULL},
76851 { (
char *)
"PCAMatrix_eigen_power_set", _wrap_PCAMatrix_eigen_power_set, METH_VARARGS, NULL},
76852 { (
char *)
"PCAMatrix_eigen_power_get", _wrap_PCAMatrix_eigen_power_get, METH_VARARGS, NULL},
76853 { (
char *)
"PCAMatrix_random_rotation_set", _wrap_PCAMatrix_random_rotation_set, METH_VARARGS, NULL},
76854 { (
char *)
"PCAMatrix_random_rotation_get", _wrap_PCAMatrix_random_rotation_get, METH_VARARGS, NULL},
76855 { (
char *)
"PCAMatrix_max_points_per_d_set", _wrap_PCAMatrix_max_points_per_d_set, METH_VARARGS, NULL},
76856 { (
char *)
"PCAMatrix_max_points_per_d_get", _wrap_PCAMatrix_max_points_per_d_get, METH_VARARGS, NULL},
76857 { (
char *)
"PCAMatrix_balanced_bins_set", _wrap_PCAMatrix_balanced_bins_set, METH_VARARGS, NULL},
76858 { (
char *)
"PCAMatrix_balanced_bins_get", _wrap_PCAMatrix_balanced_bins_get, METH_VARARGS, NULL},
76859 { (
char *)
"PCAMatrix_mean_set", _wrap_PCAMatrix_mean_set, METH_VARARGS, NULL},
76860 { (
char *)
"PCAMatrix_mean_get", _wrap_PCAMatrix_mean_get, METH_VARARGS, NULL},
76861 { (
char *)
"PCAMatrix_eigenvalues_set", _wrap_PCAMatrix_eigenvalues_set, METH_VARARGS, NULL},
76862 { (
char *)
"PCAMatrix_eigenvalues_get", _wrap_PCAMatrix_eigenvalues_get, METH_VARARGS, NULL},
76863 { (
char *)
"PCAMatrix_PCAMat_set", _wrap_PCAMatrix_PCAMat_set, METH_VARARGS, NULL},
76864 { (
char *)
"PCAMatrix_PCAMat_get", _wrap_PCAMatrix_PCAMat_get, METH_VARARGS, NULL},
76865 { (
char *)
"new_PCAMatrix", _wrap_new_PCAMatrix, METH_VARARGS, NULL},
76866 { (
char *)
"PCAMatrix_train", _wrap_PCAMatrix_train, METH_VARARGS, NULL},
76867 { (
char *)
"PCAMatrix_copy_from", _wrap_PCAMatrix_copy_from, METH_VARARGS, NULL},
76868 { (
char *)
"PCAMatrix_prepare_Ab", _wrap_PCAMatrix_prepare_Ab, METH_VARARGS, NULL},
76869 { (
char *)
"delete_PCAMatrix", _wrap_delete_PCAMatrix, METH_VARARGS, NULL},
76870 { (
char *)
"PCAMatrix_swigregister", PCAMatrix_swigregister, METH_VARARGS, NULL},
76871 { (
char *)
"OPQMatrix_M_set", _wrap_OPQMatrix_M_set, METH_VARARGS, NULL},
76872 { (
char *)
"OPQMatrix_M_get", _wrap_OPQMatrix_M_get, METH_VARARGS, NULL},
76873 { (
char *)
"OPQMatrix_niter_set", _wrap_OPQMatrix_niter_set, METH_VARARGS, NULL},
76874 { (
char *)
"OPQMatrix_niter_get", _wrap_OPQMatrix_niter_get, METH_VARARGS, NULL},
76875 { (
char *)
"OPQMatrix_niter_pq_set", _wrap_OPQMatrix_niter_pq_set, METH_VARARGS, NULL},
76876 { (
char *)
"OPQMatrix_niter_pq_get", _wrap_OPQMatrix_niter_pq_get, METH_VARARGS, NULL},
76877 { (
char *)
"OPQMatrix_niter_pq_0_set", _wrap_OPQMatrix_niter_pq_0_set, METH_VARARGS, NULL},
76878 { (
char *)
"OPQMatrix_niter_pq_0_get", _wrap_OPQMatrix_niter_pq_0_get, METH_VARARGS, NULL},
76879 { (
char *)
"OPQMatrix_max_train_points_set", _wrap_OPQMatrix_max_train_points_set, METH_VARARGS, NULL},
76880 { (
char *)
"OPQMatrix_max_train_points_get", _wrap_OPQMatrix_max_train_points_get, METH_VARARGS, NULL},
76881 { (
char *)
"OPQMatrix_verbose_set", _wrap_OPQMatrix_verbose_set, METH_VARARGS, NULL},
76882 { (
char *)
"OPQMatrix_verbose_get", _wrap_OPQMatrix_verbose_get, METH_VARARGS, NULL},
76883 { (
char *)
"OPQMatrix_pq_set", _wrap_OPQMatrix_pq_set, METH_VARARGS, NULL},
76884 { (
char *)
"OPQMatrix_pq_get", _wrap_OPQMatrix_pq_get, METH_VARARGS, NULL},
76885 { (
char *)
"new_OPQMatrix", _wrap_new_OPQMatrix, METH_VARARGS, NULL},
76886 { (
char *)
"OPQMatrix_train", _wrap_OPQMatrix_train, METH_VARARGS, NULL},
76887 { (
char *)
"delete_OPQMatrix", _wrap_delete_OPQMatrix, METH_VARARGS, NULL},
76888 { (
char *)
"OPQMatrix_swigregister", OPQMatrix_swigregister, METH_VARARGS, NULL},
76889 { (
char *)
"RemapDimensionsTransform_map_set", _wrap_RemapDimensionsTransform_map_set, METH_VARARGS, NULL},
76890 { (
char *)
"RemapDimensionsTransform_map_get", _wrap_RemapDimensionsTransform_map_get, METH_VARARGS, NULL},
76891 { (
char *)
"RemapDimensionsTransform_apply_noalloc", _wrap_RemapDimensionsTransform_apply_noalloc, METH_VARARGS, NULL},
76892 { (
char *)
"RemapDimensionsTransform_reverse_transform", _wrap_RemapDimensionsTransform_reverse_transform, METH_VARARGS, NULL},
76893 { (
char *)
"new_RemapDimensionsTransform", _wrap_new_RemapDimensionsTransform, METH_VARARGS, NULL},
76894 { (
char *)
"delete_RemapDimensionsTransform", _wrap_delete_RemapDimensionsTransform, METH_VARARGS, NULL},
76895 { (
char *)
"RemapDimensionsTransform_swigregister", RemapDimensionsTransform_swigregister, METH_VARARGS, NULL},
76896 { (
char *)
"NormalizationTransform_norm_set", _wrap_NormalizationTransform_norm_set, METH_VARARGS, NULL},
76897 { (
char *)
"NormalizationTransform_norm_get", _wrap_NormalizationTransform_norm_get, METH_VARARGS, NULL},
76898 { (
char *)
"new_NormalizationTransform", _wrap_new_NormalizationTransform, METH_VARARGS, NULL},
76899 { (
char *)
"NormalizationTransform_apply_noalloc", _wrap_NormalizationTransform_apply_noalloc, METH_VARARGS, NULL},
76900 { (
char *)
"NormalizationTransform_reverse_transform", _wrap_NormalizationTransform_reverse_transform, METH_VARARGS, NULL},
76901 { (
char *)
"delete_NormalizationTransform", _wrap_delete_NormalizationTransform, METH_VARARGS, NULL},
76902 { (
char *)
"NormalizationTransform_swigregister", NormalizationTransform_swigregister, METH_VARARGS, NULL},
76903 { (
char *)
"IndexPreTransform_chain_set", _wrap_IndexPreTransform_chain_set, METH_VARARGS, NULL},
76904 { (
char *)
"IndexPreTransform_chain_get", _wrap_IndexPreTransform_chain_get, METH_VARARGS, NULL},
76905 { (
char *)
"IndexPreTransform_index_set", _wrap_IndexPreTransform_index_set, METH_VARARGS, NULL},
76906 { (
char *)
"IndexPreTransform_index_get", _wrap_IndexPreTransform_index_get, METH_VARARGS, NULL},
76907 { (
char *)
"IndexPreTransform_own_fields_set", _wrap_IndexPreTransform_own_fields_set, METH_VARARGS, NULL},
76908 { (
char *)
"IndexPreTransform_own_fields_get", _wrap_IndexPreTransform_own_fields_get, METH_VARARGS, NULL},
76909 { (
char *)
"new_IndexPreTransform", _wrap_new_IndexPreTransform, METH_VARARGS, NULL},
76910 { (
char *)
"IndexPreTransform_prepend_transform", _wrap_IndexPreTransform_prepend_transform, METH_VARARGS, NULL},
76911 { (
char *)
"IndexPreTransform_train", _wrap_IndexPreTransform_train, METH_VARARGS, NULL},
76912 { (
char *)
"IndexPreTransform_add", _wrap_IndexPreTransform_add, METH_VARARGS, NULL},
76913 { (
char *)
"IndexPreTransform_add_with_ids", _wrap_IndexPreTransform_add_with_ids, METH_VARARGS, NULL},
76914 { (
char *)
"IndexPreTransform_reset", _wrap_IndexPreTransform_reset, METH_VARARGS, NULL},
76915 { (
char *)
"IndexPreTransform_remove_ids", _wrap_IndexPreTransform_remove_ids, METH_VARARGS, NULL},
76916 { (
char *)
"IndexPreTransform_search", _wrap_IndexPreTransform_search, METH_VARARGS, NULL},
76917 { (
char *)
"IndexPreTransform_reconstruct", _wrap_IndexPreTransform_reconstruct, METH_VARARGS, NULL},
76918 { (
char *)
"IndexPreTransform_reconstruct_n", _wrap_IndexPreTransform_reconstruct_n, METH_VARARGS, NULL},
76919 { (
char *)
"IndexPreTransform_search_and_reconstruct", _wrap_IndexPreTransform_search_and_reconstruct, METH_VARARGS, NULL},
76920 { (
char *)
"IndexPreTransform_apply_chain", _wrap_IndexPreTransform_apply_chain, METH_VARARGS, NULL},
76921 { (
char *)
"IndexPreTransform_reverse_chain", _wrap_IndexPreTransform_reverse_chain, METH_VARARGS, NULL},
76922 { (
char *)
"delete_IndexPreTransform", _wrap_delete_IndexPreTransform, METH_VARARGS, NULL},
76923 { (
char *)
"IndexPreTransform_swigregister", IndexPreTransform_swigregister, METH_VARARGS, NULL},
76924 { (
char *)
"IndexFlat_xb_set", _wrap_IndexFlat_xb_set, METH_VARARGS, NULL},
76925 { (
char *)
"IndexFlat_xb_get", _wrap_IndexFlat_xb_get, METH_VARARGS, NULL},
76926 { (
char *)
"IndexFlat_add", _wrap_IndexFlat_add, METH_VARARGS, NULL},
76927 { (
char *)
"IndexFlat_reset", _wrap_IndexFlat_reset, METH_VARARGS, NULL},
76928 { (
char *)
"IndexFlat_search", _wrap_IndexFlat_search, METH_VARARGS, NULL},
76929 { (
char *)
"IndexFlat_range_search", _wrap_IndexFlat_range_search, METH_VARARGS, NULL},
76930 { (
char *)
"IndexFlat_reconstruct", _wrap_IndexFlat_reconstruct, METH_VARARGS, NULL},
76931 { (
char *)
"IndexFlat_compute_distance_subset", _wrap_IndexFlat_compute_distance_subset, METH_VARARGS, NULL},
76932 { (
char *)
"IndexFlat_remove_ids", _wrap_IndexFlat_remove_ids, METH_VARARGS, NULL},
76933 { (
char *)
"new_IndexFlat", _wrap_new_IndexFlat, METH_VARARGS, NULL},
76934 { (
char *)
"delete_IndexFlat", _wrap_delete_IndexFlat, METH_VARARGS, NULL},
76935 { (
char *)
"IndexFlat_swigregister", IndexFlat_swigregister, METH_VARARGS, NULL},
76936 { (
char *)
"new_IndexFlatIP", _wrap_new_IndexFlatIP, METH_VARARGS, NULL},
76937 { (
char *)
"delete_IndexFlatIP", _wrap_delete_IndexFlatIP, METH_VARARGS, NULL},
76938 { (
char *)
"IndexFlatIP_swigregister", IndexFlatIP_swigregister, METH_VARARGS, NULL},
76939 { (
char *)
"new_IndexFlatL2", _wrap_new_IndexFlatL2, METH_VARARGS, NULL},
76940 { (
char *)
"delete_IndexFlatL2", _wrap_delete_IndexFlatL2, METH_VARARGS, NULL},
76941 { (
char *)
"IndexFlatL2_swigregister", IndexFlatL2_swigregister, METH_VARARGS, NULL},
76942 { (
char *)
"IndexFlatL2BaseShift_shift_set", _wrap_IndexFlatL2BaseShift_shift_set, METH_VARARGS, NULL},
76943 { (
char *)
"IndexFlatL2BaseShift_shift_get", _wrap_IndexFlatL2BaseShift_shift_get, METH_VARARGS, NULL},
76944 { (
char *)
"new_IndexFlatL2BaseShift", _wrap_new_IndexFlatL2BaseShift, METH_VARARGS, NULL},
76945 { (
char *)
"IndexFlatL2BaseShift_search", _wrap_IndexFlatL2BaseShift_search, METH_VARARGS, NULL},
76946 { (
char *)
"delete_IndexFlatL2BaseShift", _wrap_delete_IndexFlatL2BaseShift, METH_VARARGS, NULL},
76947 { (
char *)
"IndexFlatL2BaseShift_swigregister", IndexFlatL2BaseShift_swigregister, METH_VARARGS, NULL},
76948 { (
char *)
"IndexRefineFlat_refine_index_set", _wrap_IndexRefineFlat_refine_index_set, METH_VARARGS, NULL},
76949 { (
char *)
"IndexRefineFlat_refine_index_get", _wrap_IndexRefineFlat_refine_index_get, METH_VARARGS, NULL},
76950 { (
char *)
"IndexRefineFlat_base_index_set", _wrap_IndexRefineFlat_base_index_set, METH_VARARGS, NULL},
76951 { (
char *)
"IndexRefineFlat_base_index_get", _wrap_IndexRefineFlat_base_index_get, METH_VARARGS, NULL},
76952 { (
char *)
"IndexRefineFlat_own_fields_set", _wrap_IndexRefineFlat_own_fields_set, METH_VARARGS, NULL},
76953 { (
char *)
"IndexRefineFlat_own_fields_get", _wrap_IndexRefineFlat_own_fields_get, METH_VARARGS, NULL},
76954 { (
char *)
"IndexRefineFlat_k_factor_set", _wrap_IndexRefineFlat_k_factor_set, METH_VARARGS, NULL},
76955 { (
char *)
"IndexRefineFlat_k_factor_get", _wrap_IndexRefineFlat_k_factor_get, METH_VARARGS, NULL},
76956 { (
char *)
"new_IndexRefineFlat", _wrap_new_IndexRefineFlat, METH_VARARGS, NULL},
76957 { (
char *)
"IndexRefineFlat_train", _wrap_IndexRefineFlat_train, METH_VARARGS, NULL},
76958 { (
char *)
"IndexRefineFlat_add", _wrap_IndexRefineFlat_add, METH_VARARGS, NULL},
76959 { (
char *)
"IndexRefineFlat_reset", _wrap_IndexRefineFlat_reset, METH_VARARGS, NULL},
76960 { (
char *)
"IndexRefineFlat_search", _wrap_IndexRefineFlat_search, METH_VARARGS, NULL},
76961 { (
char *)
"delete_IndexRefineFlat", _wrap_delete_IndexRefineFlat, METH_VARARGS, NULL},
76962 { (
char *)
"IndexRefineFlat_swigregister", IndexRefineFlat_swigregister, METH_VARARGS, NULL},
76963 { (
char *)
"IndexFlat1D_continuous_update_set", _wrap_IndexFlat1D_continuous_update_set, METH_VARARGS, NULL},
76964 { (
char *)
"IndexFlat1D_continuous_update_get", _wrap_IndexFlat1D_continuous_update_get, METH_VARARGS, NULL},
76965 { (
char *)
"IndexFlat1D_perm_set", _wrap_IndexFlat1D_perm_set, METH_VARARGS, NULL},
76966 { (
char *)
"IndexFlat1D_perm_get", _wrap_IndexFlat1D_perm_get, METH_VARARGS, NULL},
76967 { (
char *)
"new_IndexFlat1D", _wrap_new_IndexFlat1D, METH_VARARGS, NULL},
76968 { (
char *)
"IndexFlat1D_update_permutation", _wrap_IndexFlat1D_update_permutation, METH_VARARGS, NULL},
76969 { (
char *)
"IndexFlat1D_add", _wrap_IndexFlat1D_add, METH_VARARGS, NULL},
76970 { (
char *)
"IndexFlat1D_reset", _wrap_IndexFlat1D_reset, METH_VARARGS, NULL},
76971 { (
char *)
"IndexFlat1D_search", _wrap_IndexFlat1D_search, METH_VARARGS, NULL},
76972 { (
char *)
"delete_IndexFlat1D", _wrap_delete_IndexFlat1D, METH_VARARGS, NULL},
76973 { (
char *)
"IndexFlat1D_swigregister", IndexFlat1D_swigregister, METH_VARARGS, NULL},
76974 { (
char *)
"IndexLSH_nbits_set", _wrap_IndexLSH_nbits_set, METH_VARARGS, NULL},
76975 { (
char *)
"IndexLSH_nbits_get", _wrap_IndexLSH_nbits_get, METH_VARARGS, NULL},
76976 { (
char *)
"IndexLSH_bytes_per_vec_set", _wrap_IndexLSH_bytes_per_vec_set, METH_VARARGS, NULL},
76977 { (
char *)
"IndexLSH_bytes_per_vec_get", _wrap_IndexLSH_bytes_per_vec_get, METH_VARARGS, NULL},
76978 { (
char *)
"IndexLSH_rotate_data_set", _wrap_IndexLSH_rotate_data_set, METH_VARARGS, NULL},
76979 { (
char *)
"IndexLSH_rotate_data_get", _wrap_IndexLSH_rotate_data_get, METH_VARARGS, NULL},
76980 { (
char *)
"IndexLSH_train_thresholds_set", _wrap_IndexLSH_train_thresholds_set, METH_VARARGS, NULL},
76981 { (
char *)
"IndexLSH_train_thresholds_get", _wrap_IndexLSH_train_thresholds_get, METH_VARARGS, NULL},
76982 { (
char *)
"IndexLSH_rrot_set", _wrap_IndexLSH_rrot_set, METH_VARARGS, NULL},
76983 { (
char *)
"IndexLSH_rrot_get", _wrap_IndexLSH_rrot_get, METH_VARARGS, NULL},
76984 { (
char *)
"IndexLSH_thresholds_set", _wrap_IndexLSH_thresholds_set, METH_VARARGS, NULL},
76985 { (
char *)
"IndexLSH_thresholds_get", _wrap_IndexLSH_thresholds_get, METH_VARARGS, NULL},
76986 { (
char *)
"IndexLSH_codes_set", _wrap_IndexLSH_codes_set, METH_VARARGS, NULL},
76987 { (
char *)
"IndexLSH_codes_get", _wrap_IndexLSH_codes_get, METH_VARARGS, NULL},
76988 { (
char *)
"IndexLSH_apply_preprocess", _wrap_IndexLSH_apply_preprocess, METH_VARARGS, NULL},
76989 { (
char *)
"IndexLSH_train", _wrap_IndexLSH_train, METH_VARARGS, NULL},
76990 { (
char *)
"IndexLSH_add", _wrap_IndexLSH_add, METH_VARARGS, NULL},
76991 { (
char *)
"IndexLSH_search", _wrap_IndexLSH_search, METH_VARARGS, NULL},
76992 { (
char *)
"IndexLSH_reset", _wrap_IndexLSH_reset, METH_VARARGS, NULL},
76993 { (
char *)
"IndexLSH_transfer_thresholds", _wrap_IndexLSH_transfer_thresholds, METH_VARARGS, NULL},
76994 { (
char *)
"delete_IndexLSH", _wrap_delete_IndexLSH, METH_VARARGS, NULL},
76995 { (
char *)
"new_IndexLSH", _wrap_new_IndexLSH, METH_VARARGS, NULL},
76996 { (
char *)
"IndexLSH_swigregister", IndexLSH_swigregister, METH_VARARGS, NULL},
76997 { (
char *)
"SimulatedAnnealingParameters_init_temperature_set", _wrap_SimulatedAnnealingParameters_init_temperature_set, METH_VARARGS, NULL},
76998 { (
char *)
"SimulatedAnnealingParameters_init_temperature_get", _wrap_SimulatedAnnealingParameters_init_temperature_get, METH_VARARGS, NULL},
76999 { (
char *)
"SimulatedAnnealingParameters_temperature_decay_set", _wrap_SimulatedAnnealingParameters_temperature_decay_set, METH_VARARGS, NULL},
77000 { (
char *)
"SimulatedAnnealingParameters_temperature_decay_get", _wrap_SimulatedAnnealingParameters_temperature_decay_get, METH_VARARGS, NULL},
77001 { (
char *)
"SimulatedAnnealingParameters_n_iter_set", _wrap_SimulatedAnnealingParameters_n_iter_set, METH_VARARGS, NULL},
77002 { (
char *)
"SimulatedAnnealingParameters_n_iter_get", _wrap_SimulatedAnnealingParameters_n_iter_get, METH_VARARGS, NULL},
77003 { (
char *)
"SimulatedAnnealingParameters_n_redo_set", _wrap_SimulatedAnnealingParameters_n_redo_set, METH_VARARGS, NULL},
77004 { (
char *)
"SimulatedAnnealingParameters_n_redo_get", _wrap_SimulatedAnnealingParameters_n_redo_get, METH_VARARGS, NULL},
77005 { (
char *)
"SimulatedAnnealingParameters_seed_set", _wrap_SimulatedAnnealingParameters_seed_set, METH_VARARGS, NULL},
77006 { (
char *)
"SimulatedAnnealingParameters_seed_get", _wrap_SimulatedAnnealingParameters_seed_get, METH_VARARGS, NULL},
77007 { (
char *)
"SimulatedAnnealingParameters_verbose_set", _wrap_SimulatedAnnealingParameters_verbose_set, METH_VARARGS, NULL},
77008 { (
char *)
"SimulatedAnnealingParameters_verbose_get", _wrap_SimulatedAnnealingParameters_verbose_get, METH_VARARGS, NULL},
77009 { (
char *)
"SimulatedAnnealingParameters_only_bit_flips_set", _wrap_SimulatedAnnealingParameters_only_bit_flips_set, METH_VARARGS, NULL},
77010 { (
char *)
"SimulatedAnnealingParameters_only_bit_flips_get", _wrap_SimulatedAnnealingParameters_only_bit_flips_get, METH_VARARGS, NULL},
77011 { (
char *)
"SimulatedAnnealingParameters_init_random_set", _wrap_SimulatedAnnealingParameters_init_random_set, METH_VARARGS, NULL},
77012 { (
char *)
"SimulatedAnnealingParameters_init_random_get", _wrap_SimulatedAnnealingParameters_init_random_get, METH_VARARGS, NULL},
77013 { (
char *)
"new_SimulatedAnnealingParameters", _wrap_new_SimulatedAnnealingParameters, METH_VARARGS, NULL},
77014 { (
char *)
"delete_SimulatedAnnealingParameters", _wrap_delete_SimulatedAnnealingParameters, METH_VARARGS, NULL},
77015 { (
char *)
"SimulatedAnnealingParameters_swigregister", SimulatedAnnealingParameters_swigregister, METH_VARARGS, NULL},
77016 { (
char *)
"PermutationObjective_n_set", _wrap_PermutationObjective_n_set, METH_VARARGS, NULL},
77017 { (
char *)
"PermutationObjective_n_get", _wrap_PermutationObjective_n_get, METH_VARARGS, NULL},
77018 { (
char *)
"PermutationObjective_compute_cost", _wrap_PermutationObjective_compute_cost, METH_VARARGS, NULL},
77019 { (
char *)
"PermutationObjective_cost_update", _wrap_PermutationObjective_cost_update, METH_VARARGS, NULL},
77020 { (
char *)
"delete_PermutationObjective", _wrap_delete_PermutationObjective, METH_VARARGS, NULL},
77021 { (
char *)
"PermutationObjective_swigregister", PermutationObjective_swigregister, METH_VARARGS, NULL},
77022 { (
char *)
"ReproduceDistancesObjective_dis_weight_factor_set", _wrap_ReproduceDistancesObjective_dis_weight_factor_set, METH_VARARGS, NULL},
77023 { (
char *)
"ReproduceDistancesObjective_dis_weight_factor_get", _wrap_ReproduceDistancesObjective_dis_weight_factor_get, METH_VARARGS, NULL},
77024 { (
char *)
"ReproduceDistancesObjective_sqr", _wrap_ReproduceDistancesObjective_sqr, METH_VARARGS, NULL},
77025 { (
char *)
"ReproduceDistancesObjective_dis_weight", _wrap_ReproduceDistancesObjective_dis_weight, METH_VARARGS, NULL},
77026 { (
char *)
"ReproduceDistancesObjective_source_dis_set", _wrap_ReproduceDistancesObjective_source_dis_set, METH_VARARGS, NULL},
77027 { (
char *)
"ReproduceDistancesObjective_source_dis_get", _wrap_ReproduceDistancesObjective_source_dis_get, METH_VARARGS, NULL},
77028 { (
char *)
"ReproduceDistancesObjective_target_dis_set", _wrap_ReproduceDistancesObjective_target_dis_set, METH_VARARGS, NULL},
77029 { (
char *)
"ReproduceDistancesObjective_target_dis_get", _wrap_ReproduceDistancesObjective_target_dis_get, METH_VARARGS, NULL},
77030 { (
char *)
"ReproduceDistancesObjective_weights_set", _wrap_ReproduceDistancesObjective_weights_set, METH_VARARGS, NULL},
77031 { (
char *)
"ReproduceDistancesObjective_weights_get", _wrap_ReproduceDistancesObjective_weights_get, METH_VARARGS, NULL},
77032 { (
char *)
"ReproduceDistancesObjective_get_source_dis", _wrap_ReproduceDistancesObjective_get_source_dis, METH_VARARGS, NULL},
77033 { (
char *)
"ReproduceDistancesObjective_compute_cost", _wrap_ReproduceDistancesObjective_compute_cost, METH_VARARGS, NULL},
77034 { (
char *)
"ReproduceDistancesObjective_cost_update", _wrap_ReproduceDistancesObjective_cost_update, METH_VARARGS, NULL},
77035 { (
char *)
"new_ReproduceDistancesObjective", _wrap_new_ReproduceDistancesObjective, METH_VARARGS, NULL},
77036 { (
char *)
"ReproduceDistancesObjective_compute_mean_stdev", _wrap_ReproduceDistancesObjective_compute_mean_stdev, METH_VARARGS, NULL},
77037 { (
char *)
"ReproduceDistancesObjective_set_affine_target_dis", _wrap_ReproduceDistancesObjective_set_affine_target_dis, METH_VARARGS, NULL},
77038 { (
char *)
"delete_ReproduceDistancesObjective", _wrap_delete_ReproduceDistancesObjective, METH_VARARGS, NULL},
77039 { (
char *)
"ReproduceDistancesObjective_swigregister", ReproduceDistancesObjective_swigregister, METH_VARARGS, NULL},
77040 { (
char *)
"SimulatedAnnealingOptimizer_obj_set", _wrap_SimulatedAnnealingOptimizer_obj_set, METH_VARARGS, NULL},
77041 { (
char *)
"SimulatedAnnealingOptimizer_obj_get", _wrap_SimulatedAnnealingOptimizer_obj_get, METH_VARARGS, NULL},
77042 { (
char *)
"SimulatedAnnealingOptimizer_n_set", _wrap_SimulatedAnnealingOptimizer_n_set, METH_VARARGS, NULL},
77043 { (
char *)
"SimulatedAnnealingOptimizer_n_get", _wrap_SimulatedAnnealingOptimizer_n_get, METH_VARARGS, NULL},
77044 { (
char *)
"SimulatedAnnealingOptimizer_logfile_set", _wrap_SimulatedAnnealingOptimizer_logfile_set, METH_VARARGS, NULL},
77045 { (
char *)
"SimulatedAnnealingOptimizer_logfile_get", _wrap_SimulatedAnnealingOptimizer_logfile_get, METH_VARARGS, NULL},
77046 { (
char *)
"new_SimulatedAnnealingOptimizer", _wrap_new_SimulatedAnnealingOptimizer, METH_VARARGS, NULL},
77047 { (
char *)
"SimulatedAnnealingOptimizer_rnd_set", _wrap_SimulatedAnnealingOptimizer_rnd_set, METH_VARARGS, NULL},
77048 { (
char *)
"SimulatedAnnealingOptimizer_rnd_get", _wrap_SimulatedAnnealingOptimizer_rnd_get, METH_VARARGS, NULL},
77049 { (
char *)
"SimulatedAnnealingOptimizer_init_cost_set", _wrap_SimulatedAnnealingOptimizer_init_cost_set, METH_VARARGS, NULL},
77050 { (
char *)
"SimulatedAnnealingOptimizer_init_cost_get", _wrap_SimulatedAnnealingOptimizer_init_cost_get, METH_VARARGS, NULL},
77051 { (
char *)
"SimulatedAnnealingOptimizer_optimize", _wrap_SimulatedAnnealingOptimizer_optimize, METH_VARARGS, NULL},
77052 { (
char *)
"SimulatedAnnealingOptimizer_run_optimization", _wrap_SimulatedAnnealingOptimizer_run_optimization, METH_VARARGS, NULL},
77053 { (
char *)
"delete_SimulatedAnnealingOptimizer", _wrap_delete_SimulatedAnnealingOptimizer, METH_VARARGS, NULL},
77054 { (
char *)
"SimulatedAnnealingOptimizer_swigregister", SimulatedAnnealingOptimizer_swigregister, METH_VARARGS, NULL},
77055 { (
char *)
"PolysemousTraining_optimization_type_set", _wrap_PolysemousTraining_optimization_type_set, METH_VARARGS, NULL},
77056 { (
char *)
"PolysemousTraining_optimization_type_get", _wrap_PolysemousTraining_optimization_type_get, METH_VARARGS, NULL},
77057 { (
char *)
"PolysemousTraining_ntrain_permutation_set", _wrap_PolysemousTraining_ntrain_permutation_set, METH_VARARGS, NULL},
77058 { (
char *)
"PolysemousTraining_ntrain_permutation_get", _wrap_PolysemousTraining_ntrain_permutation_get, METH_VARARGS, NULL},
77059 { (
char *)
"PolysemousTraining_dis_weight_factor_set", _wrap_PolysemousTraining_dis_weight_factor_set, METH_VARARGS, NULL},
77060 { (
char *)
"PolysemousTraining_dis_weight_factor_get", _wrap_PolysemousTraining_dis_weight_factor_get, METH_VARARGS, NULL},
77061 { (
char *)
"PolysemousTraining_log_pattern_set", _wrap_PolysemousTraining_log_pattern_set, METH_VARARGS, NULL},
77062 { (
char *)
"PolysemousTraining_log_pattern_get", _wrap_PolysemousTraining_log_pattern_get, METH_VARARGS, NULL},
77063 { (
char *)
"new_PolysemousTraining", _wrap_new_PolysemousTraining, METH_VARARGS, NULL},
77064 { (
char *)
"PolysemousTraining_optimize_pq_for_hamming", _wrap_PolysemousTraining_optimize_pq_for_hamming, METH_VARARGS, NULL},
77065 { (
char *)
"PolysemousTraining_optimize_ranking", _wrap_PolysemousTraining_optimize_ranking, METH_VARARGS, NULL},
77066 { (
char *)
"PolysemousTraining_optimize_reproduce_distances", _wrap_PolysemousTraining_optimize_reproduce_distances, METH_VARARGS, NULL},
77067 { (
char *)
"delete_PolysemousTraining", _wrap_delete_PolysemousTraining, METH_VARARGS, NULL},
77068 { (
char *)
"PolysemousTraining_swigregister", PolysemousTraining_swigregister, METH_VARARGS, NULL},
77069 { (
char *)
"IndexPQ_pq_set", _wrap_IndexPQ_pq_set, METH_VARARGS, NULL},
77070 { (
char *)
"IndexPQ_pq_get", _wrap_IndexPQ_pq_get, METH_VARARGS, NULL},
77071 { (
char *)
"IndexPQ_codes_set", _wrap_IndexPQ_codes_set, METH_VARARGS, NULL},
77072 { (
char *)
"IndexPQ_codes_get", _wrap_IndexPQ_codes_get, METH_VARARGS, NULL},
77073 { (
char *)
"new_IndexPQ", _wrap_new_IndexPQ, METH_VARARGS, NULL},
77074 { (
char *)
"IndexPQ_train", _wrap_IndexPQ_train, METH_VARARGS, NULL},
77075 { (
char *)
"IndexPQ_add", _wrap_IndexPQ_add, METH_VARARGS, NULL},
77076 { (
char *)
"IndexPQ_search", _wrap_IndexPQ_search, METH_VARARGS, NULL},
77077 { (
char *)
"IndexPQ_reset", _wrap_IndexPQ_reset, METH_VARARGS, NULL},
77078 { (
char *)
"IndexPQ_reconstruct_n", _wrap_IndexPQ_reconstruct_n, METH_VARARGS, NULL},
77079 { (
char *)
"IndexPQ_reconstruct", _wrap_IndexPQ_reconstruct, METH_VARARGS, NULL},
77080 { (
char *)
"IndexPQ_remove_ids", _wrap_IndexPQ_remove_ids, METH_VARARGS, NULL},
77081 { (
char *)
"IndexPQ_do_polysemous_training_set", _wrap_IndexPQ_do_polysemous_training_set, METH_VARARGS, NULL},
77082 { (
char *)
"IndexPQ_do_polysemous_training_get", _wrap_IndexPQ_do_polysemous_training_get, METH_VARARGS, NULL},
77083 { (
char *)
"IndexPQ_polysemous_training_set", _wrap_IndexPQ_polysemous_training_set, METH_VARARGS, NULL},
77084 { (
char *)
"IndexPQ_polysemous_training_get", _wrap_IndexPQ_polysemous_training_get, METH_VARARGS, NULL},
77085 { (
char *)
"IndexPQ_search_type_set", _wrap_IndexPQ_search_type_set, METH_VARARGS, NULL},
77086 { (
char *)
"IndexPQ_search_type_get", _wrap_IndexPQ_search_type_get, METH_VARARGS, NULL},
77087 { (
char *)
"IndexPQ_encode_signs_set", _wrap_IndexPQ_encode_signs_set, METH_VARARGS, NULL},
77088 { (
char *)
"IndexPQ_encode_signs_get", _wrap_IndexPQ_encode_signs_get, METH_VARARGS, NULL},
77089 { (
char *)
"IndexPQ_polysemous_ht_set", _wrap_IndexPQ_polysemous_ht_set, METH_VARARGS, NULL},
77090 { (
char *)
"IndexPQ_polysemous_ht_get", _wrap_IndexPQ_polysemous_ht_get, METH_VARARGS, NULL},
77091 { (
char *)
"IndexPQ_search_core_polysemous", _wrap_IndexPQ_search_core_polysemous, METH_VARARGS, NULL},
77092 { (
char *)
"IndexPQ_hamming_distance_histogram", _wrap_IndexPQ_hamming_distance_histogram, METH_VARARGS, NULL},
77093 { (
char *)
"IndexPQ_hamming_distance_table", _wrap_IndexPQ_hamming_distance_table, METH_VARARGS, NULL},
77094 { (
char *)
"delete_IndexPQ", _wrap_delete_IndexPQ, METH_VARARGS, NULL},
77095 { (
char *)
"IndexPQ_swigregister", IndexPQ_swigregister, METH_VARARGS, NULL},
77096 { (
char *)
"IndexPQStats_nq_set", _wrap_IndexPQStats_nq_set, METH_VARARGS, NULL},
77097 { (
char *)
"IndexPQStats_nq_get", _wrap_IndexPQStats_nq_get, METH_VARARGS, NULL},
77098 { (
char *)
"IndexPQStats_ncode_set", _wrap_IndexPQStats_ncode_set, METH_VARARGS, NULL},
77099 { (
char *)
"IndexPQStats_ncode_get", _wrap_IndexPQStats_ncode_get, METH_VARARGS, NULL},
77100 { (
char *)
"IndexPQStats_n_hamming_pass_set", _wrap_IndexPQStats_n_hamming_pass_set, METH_VARARGS, NULL},
77101 { (
char *)
"IndexPQStats_n_hamming_pass_get", _wrap_IndexPQStats_n_hamming_pass_get, METH_VARARGS, NULL},
77102 { (
char *)
"new_IndexPQStats", _wrap_new_IndexPQStats, METH_VARARGS, NULL},
77103 { (
char *)
"IndexPQStats_reset", _wrap_IndexPQStats_reset, METH_VARARGS, NULL},
77104 { (
char *)
"delete_IndexPQStats", _wrap_delete_IndexPQStats, METH_VARARGS, NULL},
77105 { (
char *)
"IndexPQStats_swigregister", IndexPQStats_swigregister, METH_VARARGS, NULL},
77106 { (
char *)
"MultiIndexQuantizer_pq_set", _wrap_MultiIndexQuantizer_pq_set, METH_VARARGS, NULL},
77107 { (
char *)
"MultiIndexQuantizer_pq_get", _wrap_MultiIndexQuantizer_pq_get, METH_VARARGS, NULL},
77108 { (
char *)
"MultiIndexQuantizer_train", _wrap_MultiIndexQuantizer_train, METH_VARARGS, NULL},
77109 { (
char *)
"MultiIndexQuantizer_search", _wrap_MultiIndexQuantizer_search, METH_VARARGS, NULL},
77110 { (
char *)
"MultiIndexQuantizer_add", _wrap_MultiIndexQuantizer_add, METH_VARARGS, NULL},
77111 { (
char *)
"MultiIndexQuantizer_reset", _wrap_MultiIndexQuantizer_reset, METH_VARARGS, NULL},
77112 { (
char *)
"new_MultiIndexQuantizer", _wrap_new_MultiIndexQuantizer, METH_VARARGS, NULL},
77113 { (
char *)
"MultiIndexQuantizer_reconstruct", _wrap_MultiIndexQuantizer_reconstruct, METH_VARARGS, NULL},
77114 { (
char *)
"delete_MultiIndexQuantizer", _wrap_delete_MultiIndexQuantizer, METH_VARARGS, NULL},
77115 { (
char *)
"MultiIndexQuantizer_swigregister", MultiIndexQuantizer_swigregister, METH_VARARGS, NULL},
77116 { (
char *)
"MultiIndexQuantizer2_assign_indexes_set", _wrap_MultiIndexQuantizer2_assign_indexes_set, METH_VARARGS, NULL},
77117 { (
char *)
"MultiIndexQuantizer2_assign_indexes_get", _wrap_MultiIndexQuantizer2_assign_indexes_get, METH_VARARGS, NULL},
77118 { (
char *)
"MultiIndexQuantizer2_own_fields_set", _wrap_MultiIndexQuantizer2_own_fields_set, METH_VARARGS, NULL},
77119 { (
char *)
"MultiIndexQuantizer2_own_fields_get", _wrap_MultiIndexQuantizer2_own_fields_get, METH_VARARGS, NULL},
77120 { (
char *)
"new_MultiIndexQuantizer2", _wrap_new_MultiIndexQuantizer2, METH_VARARGS, NULL},
77121 { (
char *)
"MultiIndexQuantizer2_train", _wrap_MultiIndexQuantizer2_train, METH_VARARGS, NULL},
77122 { (
char *)
"MultiIndexQuantizer2_search", _wrap_MultiIndexQuantizer2_search, METH_VARARGS, NULL},
77123 { (
char *)
"delete_MultiIndexQuantizer2", _wrap_delete_MultiIndexQuantizer2, METH_VARARGS, NULL},
77124 { (
char *)
"MultiIndexQuantizer2_swigregister", MultiIndexQuantizer2_swigregister, METH_VARARGS, NULL},
77125 { (
char *)
"InvertedLists_nlist_set", _wrap_InvertedLists_nlist_set, METH_VARARGS, NULL},
77126 { (
char *)
"InvertedLists_nlist_get", _wrap_InvertedLists_nlist_get, METH_VARARGS, NULL},
77127 { (
char *)
"InvertedLists_code_size_set", _wrap_InvertedLists_code_size_set, METH_VARARGS, NULL},
77128 { (
char *)
"InvertedLists_code_size_get", _wrap_InvertedLists_code_size_get, METH_VARARGS, NULL},
77129 { (
char *)
"InvertedLists_list_size", _wrap_InvertedLists_list_size, METH_VARARGS, NULL},
77130 { (
char *)
"InvertedLists_get_codes", _wrap_InvertedLists_get_codes, METH_VARARGS, NULL},
77131 { (
char *)
"InvertedLists_get_ids", _wrap_InvertedLists_get_ids, METH_VARARGS, NULL},
77132 { (
char *)
"InvertedLists_release_codes", _wrap_InvertedLists_release_codes, METH_VARARGS, NULL},
77133 { (
char *)
"InvertedLists_release_ids", _wrap_InvertedLists_release_ids, METH_VARARGS, NULL},
77134 { (
char *)
"InvertedLists_get_single_id", _wrap_InvertedLists_get_single_id, METH_VARARGS, NULL},
77135 { (
char *)
"InvertedLists_get_single_code", _wrap_InvertedLists_get_single_code, METH_VARARGS, NULL},
77136 { (
char *)
"InvertedLists_prefetch_lists", _wrap_InvertedLists_prefetch_lists, METH_VARARGS, NULL},
77137 { (
char *)
"InvertedLists_add_entry", _wrap_InvertedLists_add_entry, METH_VARARGS, NULL},
77138 { (
char *)
"InvertedLists_add_entries", _wrap_InvertedLists_add_entries, METH_VARARGS, NULL},
77139 { (
char *)
"InvertedLists_update_entry", _wrap_InvertedLists_update_entry, METH_VARARGS, NULL},
77140 { (
char *)
"InvertedLists_update_entries", _wrap_InvertedLists_update_entries, METH_VARARGS, NULL},
77141 { (
char *)
"InvertedLists_resize", _wrap_InvertedLists_resize, METH_VARARGS, NULL},
77142 { (
char *)
"InvertedLists_reset", _wrap_InvertedLists_reset, METH_VARARGS, NULL},
77143 { (
char *)
"InvertedLists_merge_from", _wrap_InvertedLists_merge_from, METH_VARARGS, NULL},
77144 { (
char *)
"delete_InvertedLists", _wrap_delete_InvertedLists, METH_VARARGS, NULL},
77145 { (
char *)
"InvertedLists_swigregister", InvertedLists_swigregister, METH_VARARGS, NULL},
77146 { (
char *)
"ArrayInvertedLists_codes_set", _wrap_ArrayInvertedLists_codes_set, METH_VARARGS, NULL},
77147 { (
char *)
"ArrayInvertedLists_codes_get", _wrap_ArrayInvertedLists_codes_get, METH_VARARGS, NULL},
77148 { (
char *)
"ArrayInvertedLists_ids_set", _wrap_ArrayInvertedLists_ids_set, METH_VARARGS, NULL},
77149 { (
char *)
"ArrayInvertedLists_ids_get", _wrap_ArrayInvertedLists_ids_get, METH_VARARGS, NULL},
77150 { (
char *)
"new_ArrayInvertedLists", _wrap_new_ArrayInvertedLists, METH_VARARGS, NULL},
77151 { (
char *)
"ArrayInvertedLists_list_size", _wrap_ArrayInvertedLists_list_size, METH_VARARGS, NULL},
77152 { (
char *)
"ArrayInvertedLists_get_codes", _wrap_ArrayInvertedLists_get_codes, METH_VARARGS, NULL},
77153 { (
char *)
"ArrayInvertedLists_get_ids", _wrap_ArrayInvertedLists_get_ids, METH_VARARGS, NULL},
77154 { (
char *)
"ArrayInvertedLists_add_entries", _wrap_ArrayInvertedLists_add_entries, METH_VARARGS, NULL},
77155 { (
char *)
"ArrayInvertedLists_update_entries", _wrap_ArrayInvertedLists_update_entries, METH_VARARGS, NULL},
77156 { (
char *)
"ArrayInvertedLists_resize", _wrap_ArrayInvertedLists_resize, METH_VARARGS, NULL},
77157 { (
char *)
"delete_ArrayInvertedLists", _wrap_delete_ArrayInvertedLists, METH_VARARGS, NULL},
77158 { (
char *)
"ArrayInvertedLists_swigregister", ArrayInvertedLists_swigregister, METH_VARARGS, NULL},
77159 { (
char *)
"ConcatenatedInvertedLists_ils_set", _wrap_ConcatenatedInvertedLists_ils_set, METH_VARARGS, NULL},
77160 { (
char *)
"ConcatenatedInvertedLists_ils_get", _wrap_ConcatenatedInvertedLists_ils_get, METH_VARARGS, NULL},
77161 { (
char *)
"new_ConcatenatedInvertedLists", _wrap_new_ConcatenatedInvertedLists, METH_VARARGS, NULL},
77162 { (
char *)
"ConcatenatedInvertedLists_list_size", _wrap_ConcatenatedInvertedLists_list_size, METH_VARARGS, NULL},
77163 { (
char *)
"ConcatenatedInvertedLists_get_codes", _wrap_ConcatenatedInvertedLists_get_codes, METH_VARARGS, NULL},
77164 { (
char *)
"ConcatenatedInvertedLists_get_ids", _wrap_ConcatenatedInvertedLists_get_ids, METH_VARARGS, NULL},
77165 { (
char *)
"ConcatenatedInvertedLists_release_codes", _wrap_ConcatenatedInvertedLists_release_codes, METH_VARARGS, NULL},
77166 { (
char *)
"ConcatenatedInvertedLists_release_ids", _wrap_ConcatenatedInvertedLists_release_ids, METH_VARARGS, NULL},
77167 { (
char *)
"ConcatenatedInvertedLists_get_single_id", _wrap_ConcatenatedInvertedLists_get_single_id, METH_VARARGS, NULL},
77168 { (
char *)
"ConcatenatedInvertedLists_get_single_code", _wrap_ConcatenatedInvertedLists_get_single_code, METH_VARARGS, NULL},
77169 { (
char *)
"ConcatenatedInvertedLists_add_entries", _wrap_ConcatenatedInvertedLists_add_entries, METH_VARARGS, NULL},
77170 { (
char *)
"ConcatenatedInvertedLists_update_entries", _wrap_ConcatenatedInvertedLists_update_entries, METH_VARARGS, NULL},
77171 { (
char *)
"ConcatenatedInvertedLists_resize", _wrap_ConcatenatedInvertedLists_resize, METH_VARARGS, NULL},
77172 { (
char *)
"delete_ConcatenatedInvertedLists", _wrap_delete_ConcatenatedInvertedLists, METH_VARARGS, NULL},
77173 { (
char *)
"ConcatenatedInvertedLists_swigregister", ConcatenatedInvertedLists_swigregister, METH_VARARGS, NULL},
77174 { (
char *)
"Level1Quantizer_quantizer_set", _wrap_Level1Quantizer_quantizer_set, METH_VARARGS, NULL},
77175 { (
char *)
"Level1Quantizer_quantizer_get", _wrap_Level1Quantizer_quantizer_get, METH_VARARGS, NULL},
77176 { (
char *)
"Level1Quantizer_nlist_set", _wrap_Level1Quantizer_nlist_set, METH_VARARGS, NULL},
77177 { (
char *)
"Level1Quantizer_nlist_get", _wrap_Level1Quantizer_nlist_get, METH_VARARGS, NULL},
77178 { (
char *)
"Level1Quantizer_quantizer_trains_alone_set", _wrap_Level1Quantizer_quantizer_trains_alone_set, METH_VARARGS, NULL},
77179 { (
char *)
"Level1Quantizer_quantizer_trains_alone_get", _wrap_Level1Quantizer_quantizer_trains_alone_get, METH_VARARGS, NULL},
77180 { (
char *)
"Level1Quantizer_own_fields_set", _wrap_Level1Quantizer_own_fields_set, METH_VARARGS, NULL},
77181 { (
char *)
"Level1Quantizer_own_fields_get", _wrap_Level1Quantizer_own_fields_get, METH_VARARGS, NULL},
77182 { (
char *)
"Level1Quantizer_cp_set", _wrap_Level1Quantizer_cp_set, METH_VARARGS, NULL},
77183 { (
char *)
"Level1Quantizer_cp_get", _wrap_Level1Quantizer_cp_get, METH_VARARGS, NULL},
77184 { (
char *)
"Level1Quantizer_clustering_index_set", _wrap_Level1Quantizer_clustering_index_set, METH_VARARGS, NULL},
77185 { (
char *)
"Level1Quantizer_clustering_index_get", _wrap_Level1Quantizer_clustering_index_get, METH_VARARGS, NULL},
77186 { (
char *)
"Level1Quantizer_train_q1", _wrap_Level1Quantizer_train_q1, METH_VARARGS, NULL},
77187 { (
char *)
"new_Level1Quantizer", _wrap_new_Level1Quantizer, METH_VARARGS, NULL},
77188 { (
char *)
"delete_Level1Quantizer", _wrap_delete_Level1Quantizer, METH_VARARGS, NULL},
77189 { (
char *)
"Level1Quantizer_swigregister", Level1Quantizer_swigregister, METH_VARARGS, NULL},
77190 { (
char *)
"IVFSearchParameters_nprobe_set", _wrap_IVFSearchParameters_nprobe_set, METH_VARARGS, NULL},
77191 { (
char *)
"IVFSearchParameters_nprobe_get", _wrap_IVFSearchParameters_nprobe_get, METH_VARARGS, NULL},
77192 { (
char *)
"IVFSearchParameters_max_codes_set", _wrap_IVFSearchParameters_max_codes_set, METH_VARARGS, NULL},
77193 { (
char *)
"IVFSearchParameters_max_codes_get", _wrap_IVFSearchParameters_max_codes_get, METH_VARARGS, NULL},
77194 { (
char *)
"delete_IVFSearchParameters", _wrap_delete_IVFSearchParameters, METH_VARARGS, NULL},
77195 { (
char *)
"new_IVFSearchParameters", _wrap_new_IVFSearchParameters, METH_VARARGS, NULL},
77196 { (
char *)
"IVFSearchParameters_swigregister", IVFSearchParameters_swigregister, METH_VARARGS, NULL},
77197 { (
char *)
"IndexIVF_invlists_set", _wrap_IndexIVF_invlists_set, METH_VARARGS, NULL},
77198 { (
char *)
"IndexIVF_invlists_get", _wrap_IndexIVF_invlists_get, METH_VARARGS, NULL},
77199 { (
char *)
"IndexIVF_own_invlists_set", _wrap_IndexIVF_own_invlists_set, METH_VARARGS, NULL},
77200 { (
char *)
"IndexIVF_own_invlists_get", _wrap_IndexIVF_own_invlists_get, METH_VARARGS, NULL},
77201 { (
char *)
"IndexIVF_code_size_set", _wrap_IndexIVF_code_size_set, METH_VARARGS, NULL},
77202 { (
char *)
"IndexIVF_code_size_get", _wrap_IndexIVF_code_size_get, METH_VARARGS, NULL},
77203 { (
char *)
"IndexIVF_nprobe_set", _wrap_IndexIVF_nprobe_set, METH_VARARGS, NULL},
77204 { (
char *)
"IndexIVF_nprobe_get", _wrap_IndexIVF_nprobe_get, METH_VARARGS, NULL},
77205 { (
char *)
"IndexIVF_max_codes_set", _wrap_IndexIVF_max_codes_set, METH_VARARGS, NULL},
77206 { (
char *)
"IndexIVF_max_codes_get", _wrap_IndexIVF_max_codes_get, METH_VARARGS, NULL},
77207 { (
char *)
"IndexIVF_maintain_direct_map_set", _wrap_IndexIVF_maintain_direct_map_set, METH_VARARGS, NULL},
77208 { (
char *)
"IndexIVF_maintain_direct_map_get", _wrap_IndexIVF_maintain_direct_map_get, METH_VARARGS, NULL},
77209 { (
char *)
"IndexIVF_direct_map_set", _wrap_IndexIVF_direct_map_set, METH_VARARGS, NULL},
77210 { (
char *)
"IndexIVF_direct_map_get", _wrap_IndexIVF_direct_map_get, METH_VARARGS, NULL},
77211 { (
char *)
"IndexIVF_reset", _wrap_IndexIVF_reset, METH_VARARGS, NULL},
77212 { (
char *)
"IndexIVF_train", _wrap_IndexIVF_train, METH_VARARGS, NULL},
77213 { (
char *)
"IndexIVF_add", _wrap_IndexIVF_add, METH_VARARGS, NULL},
77214 { (
char *)
"IndexIVF_encode_vectors", _wrap_IndexIVF_encode_vectors, METH_VARARGS, NULL},
77215 { (
char *)
"IndexIVF_train_residual", _wrap_IndexIVF_train_residual, METH_VARARGS, NULL},
77216 { (
char *)
"IndexIVF_search_preassigned", _wrap_IndexIVF_search_preassigned, METH_VARARGS, NULL},
77217 { (
char *)
"IndexIVF_search", _wrap_IndexIVF_search, METH_VARARGS, NULL},
77218 { (
char *)
"IndexIVF_get_InvertedListScanner", _wrap_IndexIVF_get_InvertedListScanner, METH_VARARGS, NULL},
77219 { (
char *)
"IndexIVF_reconstruct", _wrap_IndexIVF_reconstruct, METH_VARARGS, NULL},
77220 { (
char *)
"IndexIVF_reconstruct_n", _wrap_IndexIVF_reconstruct_n, METH_VARARGS, NULL},
77221 { (
char *)
"IndexIVF_search_and_reconstruct", _wrap_IndexIVF_search_and_reconstruct, METH_VARARGS, NULL},
77222 { (
char *)
"IndexIVF_reconstruct_from_offset", _wrap_IndexIVF_reconstruct_from_offset, METH_VARARGS, NULL},
77223 { (
char *)
"IndexIVF_remove_ids", _wrap_IndexIVF_remove_ids, METH_VARARGS, NULL},
77224 { (
char *)
"IndexIVF_check_compatible_for_merge", _wrap_IndexIVF_check_compatible_for_merge, METH_VARARGS, NULL},
77225 { (
char *)
"IndexIVF_merge_from", _wrap_IndexIVF_merge_from, METH_VARARGS, NULL},
77226 { (
char *)
"IndexIVF_copy_subset_to", _wrap_IndexIVF_copy_subset_to, METH_VARARGS, NULL},
77227 { (
char *)
"delete_IndexIVF", _wrap_delete_IndexIVF, METH_VARARGS, NULL},
77228 { (
char *)
"IndexIVF_get_list_size", _wrap_IndexIVF_get_list_size, METH_VARARGS, NULL},
77229 { (
char *)
"IndexIVF_make_direct_map", _wrap_IndexIVF_make_direct_map, METH_VARARGS, NULL},
77230 { (
char *)
"IndexIVF_imbalance_factor", _wrap_IndexIVF_imbalance_factor, METH_VARARGS, NULL},
77231 { (
char *)
"IndexIVF_print_stats", _wrap_IndexIVF_print_stats, METH_VARARGS, NULL},
77232 { (
char *)
"IndexIVF_replace_invlists", _wrap_IndexIVF_replace_invlists, METH_VARARGS, NULL},
77233 { (
char *)
"IndexIVF_swigregister", IndexIVF_swigregister, METH_VARARGS, NULL},
77234 { (
char *)
"IndexIVFStats_nq_set", _wrap_IndexIVFStats_nq_set, METH_VARARGS, NULL},
77235 { (
char *)
"IndexIVFStats_nq_get", _wrap_IndexIVFStats_nq_get, METH_VARARGS, NULL},
77236 { (
char *)
"IndexIVFStats_nlist_set", _wrap_IndexIVFStats_nlist_set, METH_VARARGS, NULL},
77237 { (
char *)
"IndexIVFStats_nlist_get", _wrap_IndexIVFStats_nlist_get, METH_VARARGS, NULL},
77238 { (
char *)
"IndexIVFStats_ndis_set", _wrap_IndexIVFStats_ndis_set, METH_VARARGS, NULL},
77239 { (
char *)
"IndexIVFStats_ndis_get", _wrap_IndexIVFStats_ndis_get, METH_VARARGS, NULL},
77240 { (
char *)
"IndexIVFStats_nheap_updates_set", _wrap_IndexIVFStats_nheap_updates_set, METH_VARARGS, NULL},
77241 { (
char *)
"IndexIVFStats_nheap_updates_get", _wrap_IndexIVFStats_nheap_updates_get, METH_VARARGS, NULL},
77242 { (
char *)
"new_IndexIVFStats", _wrap_new_IndexIVFStats, METH_VARARGS, NULL},
77243 { (
char *)
"IndexIVFStats_reset", _wrap_IndexIVFStats_reset, METH_VARARGS, NULL},
77244 { (
char *)
"delete_IndexIVFStats", _wrap_delete_IndexIVFStats, METH_VARARGS, NULL},
77245 { (
char *)
"IndexIVFStats_swigregister", IndexIVFStats_swigregister, METH_VARARGS, NULL},
77246 { (
char *)
"check_compatible_for_merge", _wrap_check_compatible_for_merge, METH_VARARGS, NULL},
77247 { (
char *)
"extract_index_ivf", _wrap_extract_index_ivf, METH_VARARGS, NULL},
77248 { (
char *)
"merge_into", _wrap_merge_into, METH_VARARGS, NULL},
77249 { (
char *)
"search_centroid", _wrap_search_centroid, METH_VARARGS, NULL},
77250 { (
char *)
"search_and_return_centroids", _wrap_search_and_return_centroids, METH_VARARGS, NULL},
77251 { (
char *)
"SlidingIndexWindow_index_set", _wrap_SlidingIndexWindow_index_set, METH_VARARGS, NULL},
77252 { (
char *)
"SlidingIndexWindow_index_get", _wrap_SlidingIndexWindow_index_get, METH_VARARGS, NULL},
77253 { (
char *)
"SlidingIndexWindow_ils_set", _wrap_SlidingIndexWindow_ils_set, METH_VARARGS, NULL},
77254 { (
char *)
"SlidingIndexWindow_ils_get", _wrap_SlidingIndexWindow_ils_get, METH_VARARGS, NULL},
77255 { (
char *)
"SlidingIndexWindow_n_slice_set", _wrap_SlidingIndexWindow_n_slice_set, METH_VARARGS, NULL},
77256 { (
char *)
"SlidingIndexWindow_n_slice_get", _wrap_SlidingIndexWindow_n_slice_get, METH_VARARGS, NULL},
77257 { (
char *)
"SlidingIndexWindow_nlist_set", _wrap_SlidingIndexWindow_nlist_set, METH_VARARGS, NULL},
77258 { (
char *)
"SlidingIndexWindow_nlist_get", _wrap_SlidingIndexWindow_nlist_get, METH_VARARGS, NULL},
77259 { (
char *)
"SlidingIndexWindow_sizes_set", _wrap_SlidingIndexWindow_sizes_set, METH_VARARGS, NULL},
77260 { (
char *)
"SlidingIndexWindow_sizes_get", _wrap_SlidingIndexWindow_sizes_get, METH_VARARGS, NULL},
77261 { (
char *)
"new_SlidingIndexWindow", _wrap_new_SlidingIndexWindow, METH_VARARGS, NULL},
77262 { (
char *)
"SlidingIndexWindow_step", _wrap_SlidingIndexWindow_step, METH_VARARGS, NULL},
77263 { (
char *)
"delete_SlidingIndexWindow", _wrap_delete_SlidingIndexWindow, METH_VARARGS, NULL},
77264 { (
char *)
"SlidingIndexWindow_swigregister", SlidingIndexWindow_swigregister, METH_VARARGS, NULL},
77265 { (
char *)
"get_invlist_range", _wrap_get_invlist_range, METH_VARARGS, NULL},
77266 { (
char *)
"set_invlist_range", _wrap_set_invlist_range, METH_VARARGS, NULL},
77267 { (
char *)
"search_with_parameters", _wrap_search_with_parameters, METH_VARARGS, NULL},
77268 { (
char *)
"ScalarQuantizer_qtype_set", _wrap_ScalarQuantizer_qtype_set, METH_VARARGS, NULL},
77269 { (
char *)
"ScalarQuantizer_qtype_get", _wrap_ScalarQuantizer_qtype_get, METH_VARARGS, NULL},
77270 { (
char *)
"ScalarQuantizer_rangestat_set", _wrap_ScalarQuantizer_rangestat_set, METH_VARARGS, NULL},
77271 { (
char *)
"ScalarQuantizer_rangestat_get", _wrap_ScalarQuantizer_rangestat_get, METH_VARARGS, NULL},
77272 { (
char *)
"ScalarQuantizer_rangestat_arg_set", _wrap_ScalarQuantizer_rangestat_arg_set, METH_VARARGS, NULL},
77273 { (
char *)
"ScalarQuantizer_rangestat_arg_get", _wrap_ScalarQuantizer_rangestat_arg_get, METH_VARARGS, NULL},
77274 { (
char *)
"ScalarQuantizer_d_set", _wrap_ScalarQuantizer_d_set, METH_VARARGS, NULL},
77275 { (
char *)
"ScalarQuantizer_d_get", _wrap_ScalarQuantizer_d_get, METH_VARARGS, NULL},
77276 { (
char *)
"ScalarQuantizer_code_size_set", _wrap_ScalarQuantizer_code_size_set, METH_VARARGS, NULL},
77277 { (
char *)
"ScalarQuantizer_code_size_get", _wrap_ScalarQuantizer_code_size_get, METH_VARARGS, NULL},
77278 { (
char *)
"ScalarQuantizer_trained_set", _wrap_ScalarQuantizer_trained_set, METH_VARARGS, NULL},
77279 { (
char *)
"ScalarQuantizer_trained_get", _wrap_ScalarQuantizer_trained_get, METH_VARARGS, NULL},
77280 { (
char *)
"new_ScalarQuantizer", _wrap_new_ScalarQuantizer, METH_VARARGS, NULL},
77281 { (
char *)
"ScalarQuantizer_train", _wrap_ScalarQuantizer_train, METH_VARARGS, NULL},
77282 { (
char *)
"ScalarQuantizer_compute_codes", _wrap_ScalarQuantizer_compute_codes, METH_VARARGS, NULL},
77283 { (
char *)
"ScalarQuantizer_decode", _wrap_ScalarQuantizer_decode, METH_VARARGS, NULL},
77284 { (
char *)
"ScalarQuantizer_get_distance_computer", _wrap_ScalarQuantizer_get_distance_computer, METH_VARARGS, NULL},
77285 { (
char *)
"delete_ScalarQuantizer", _wrap_delete_ScalarQuantizer, METH_VARARGS, NULL},
77286 { (
char *)
"ScalarQuantizer_swigregister", ScalarQuantizer_swigregister, METH_VARARGS, NULL},
77287 { (
char *)
"IndexScalarQuantizer_sq_set", _wrap_IndexScalarQuantizer_sq_set, METH_VARARGS, NULL},
77288 { (
char *)
"IndexScalarQuantizer_sq_get", _wrap_IndexScalarQuantizer_sq_get, METH_VARARGS, NULL},
77289 { (
char *)
"IndexScalarQuantizer_codes_set", _wrap_IndexScalarQuantizer_codes_set, METH_VARARGS, NULL},
77290 { (
char *)
"IndexScalarQuantizer_codes_get", _wrap_IndexScalarQuantizer_codes_get, METH_VARARGS, NULL},
77291 { (
char *)
"IndexScalarQuantizer_code_size_set", _wrap_IndexScalarQuantizer_code_size_set, METH_VARARGS, NULL},
77292 { (
char *)
"IndexScalarQuantizer_code_size_get", _wrap_IndexScalarQuantizer_code_size_get, METH_VARARGS, NULL},
77293 { (
char *)
"new_IndexScalarQuantizer", _wrap_new_IndexScalarQuantizer, METH_VARARGS, NULL},
77294 { (
char *)
"IndexScalarQuantizer_train", _wrap_IndexScalarQuantizer_train, METH_VARARGS, NULL},
77295 { (
char *)
"IndexScalarQuantizer_add", _wrap_IndexScalarQuantizer_add, METH_VARARGS, NULL},
77296 { (
char *)
"IndexScalarQuantizer_search", _wrap_IndexScalarQuantizer_search, METH_VARARGS, NULL},
77297 { (
char *)
"IndexScalarQuantizer_reset", _wrap_IndexScalarQuantizer_reset, METH_VARARGS, NULL},
77298 { (
char *)
"IndexScalarQuantizer_reconstruct_n", _wrap_IndexScalarQuantizer_reconstruct_n, METH_VARARGS, NULL},
77299 { (
char *)
"IndexScalarQuantizer_reconstruct", _wrap_IndexScalarQuantizer_reconstruct, METH_VARARGS, NULL},
77300 { (
char *)
"delete_IndexScalarQuantizer", _wrap_delete_IndexScalarQuantizer, METH_VARARGS, NULL},
77301 { (
char *)
"IndexScalarQuantizer_swigregister", IndexScalarQuantizer_swigregister, METH_VARARGS, NULL},
77302 { (
char *)
"IndexIVFScalarQuantizer_sq_set", _wrap_IndexIVFScalarQuantizer_sq_set, METH_VARARGS, NULL},
77303 { (
char *)
"IndexIVFScalarQuantizer_sq_get", _wrap_IndexIVFScalarQuantizer_sq_get, METH_VARARGS, NULL},
77304 { (
char *)
"new_IndexIVFScalarQuantizer", _wrap_new_IndexIVFScalarQuantizer, METH_VARARGS, NULL},
77305 { (
char *)
"IndexIVFScalarQuantizer_train_residual", _wrap_IndexIVFScalarQuantizer_train_residual, METH_VARARGS, NULL},
77306 { (
char *)
"IndexIVFScalarQuantizer_encode_vectors", _wrap_IndexIVFScalarQuantizer_encode_vectors, METH_VARARGS, NULL},
77307 { (
char *)
"IndexIVFScalarQuantizer_add_with_ids", _wrap_IndexIVFScalarQuantizer_add_with_ids, METH_VARARGS, NULL},
77308 { (
char *)
"IndexIVFScalarQuantizer_get_InvertedListScanner", _wrap_IndexIVFScalarQuantizer_get_InvertedListScanner, METH_VARARGS, NULL},
77309 { (
char *)
"IndexIVFScalarQuantizer_reconstruct_from_offset", _wrap_IndexIVFScalarQuantizer_reconstruct_from_offset, METH_VARARGS, NULL},
77310 { (
char *)
"delete_IndexIVFScalarQuantizer", _wrap_delete_IndexIVFScalarQuantizer, METH_VARARGS, NULL},
77311 { (
char *)
"IndexIVFScalarQuantizer_swigregister", IndexIVFScalarQuantizer_swigregister, METH_VARARGS, NULL},
77312 { (
char *)
"HNSW_assign_probas_set", _wrap_HNSW_assign_probas_set, METH_VARARGS, NULL},
77313 { (
char *)
"HNSW_assign_probas_get", _wrap_HNSW_assign_probas_get, METH_VARARGS, NULL},
77314 { (
char *)
"HNSW_cum_nneighbor_per_level_set", _wrap_HNSW_cum_nneighbor_per_level_set, METH_VARARGS, NULL},
77315 { (
char *)
"HNSW_cum_nneighbor_per_level_get", _wrap_HNSW_cum_nneighbor_per_level_get, METH_VARARGS, NULL},
77316 { (
char *)
"HNSW_levels_set", _wrap_HNSW_levels_set, METH_VARARGS, NULL},
77317 { (
char *)
"HNSW_levels_get", _wrap_HNSW_levels_get, METH_VARARGS, NULL},
77318 { (
char *)
"HNSW_offsets_set", _wrap_HNSW_offsets_set, METH_VARARGS, NULL},
77319 { (
char *)
"HNSW_offsets_get", _wrap_HNSW_offsets_get, METH_VARARGS, NULL},
77320 { (
char *)
"HNSW_neighbors_set", _wrap_HNSW_neighbors_set, METH_VARARGS, NULL},
77321 { (
char *)
"HNSW_neighbors_get", _wrap_HNSW_neighbors_get, METH_VARARGS, NULL},
77322 { (
char *)
"HNSW_entry_point_set", _wrap_HNSW_entry_point_set, METH_VARARGS, NULL},
77323 { (
char *)
"HNSW_entry_point_get", _wrap_HNSW_entry_point_get, METH_VARARGS, NULL},
77324 { (
char *)
"HNSW_rng_set", _wrap_HNSW_rng_set, METH_VARARGS, NULL},
77325 { (
char *)
"HNSW_rng_get", _wrap_HNSW_rng_get, METH_VARARGS, NULL},
77326 { (
char *)
"HNSW_max_level_set", _wrap_HNSW_max_level_set, METH_VARARGS, NULL},
77327 { (
char *)
"HNSW_max_level_get", _wrap_HNSW_max_level_get, METH_VARARGS, NULL},
77328 { (
char *)
"HNSW_efConstruction_set", _wrap_HNSW_efConstruction_set, METH_VARARGS, NULL},
77329 { (
char *)
"HNSW_efConstruction_get", _wrap_HNSW_efConstruction_get, METH_VARARGS, NULL},
77330 { (
char *)
"HNSW_efSearch_set", _wrap_HNSW_efSearch_set, METH_VARARGS, NULL},
77331 { (
char *)
"HNSW_efSearch_get", _wrap_HNSW_efSearch_get, METH_VARARGS, NULL},
77332 { (
char *)
"HNSW_upper_beam_set", _wrap_HNSW_upper_beam_set, METH_VARARGS, NULL},
77333 { (
char *)
"HNSW_upper_beam_get", _wrap_HNSW_upper_beam_get, METH_VARARGS, NULL},
77334 { (
char *)
"HNSW_set_default_probas", _wrap_HNSW_set_default_probas, METH_VARARGS, NULL},
77335 { (
char *)
"HNSW_set_nb_neighbors", _wrap_HNSW_set_nb_neighbors, METH_VARARGS, NULL},
77336 { (
char *)
"HNSW_nb_neighbors", _wrap_HNSW_nb_neighbors, METH_VARARGS, NULL},
77337 { (
char *)
"HNSW_cum_nb_neighbors", _wrap_HNSW_cum_nb_neighbors, METH_VARARGS, NULL},
77338 { (
char *)
"HNSW_neighbor_range", _wrap_HNSW_neighbor_range, METH_VARARGS, NULL},
77339 { (
char *)
"new_HNSW", _wrap_new_HNSW, METH_VARARGS, NULL},
77340 { (
char *)
"HNSW_random_level", _wrap_HNSW_random_level, METH_VARARGS, NULL},
77341 { (
char *)
"HNSW_fill_with_random_links", _wrap_HNSW_fill_with_random_links, METH_VARARGS, NULL},
77342 { (
char *)
"HNSW_add_links_starting_from", _wrap_HNSW_add_links_starting_from, METH_VARARGS, NULL},
77343 { (
char *)
"HNSW_add_with_locks", _wrap_HNSW_add_with_locks, METH_VARARGS, NULL},
77344 { (
char *)
"HNSW_search_from_candidates", _wrap_HNSW_search_from_candidates, METH_VARARGS, NULL},
77345 { (
char *)
"HNSW_search_from", _wrap_HNSW_search_from, METH_VARARGS, NULL},
77346 { (
char *)
"HNSW_search", _wrap_HNSW_search, METH_VARARGS, NULL},
77347 { (
char *)
"HNSW_reset", _wrap_HNSW_reset, METH_VARARGS, NULL},
77348 { (
char *)
"HNSW_clear_neighbor_tables", _wrap_HNSW_clear_neighbor_tables, METH_VARARGS, NULL},
77349 { (
char *)
"HNSW_print_neighbor_stats", _wrap_HNSW_print_neighbor_stats, METH_VARARGS, NULL},
77350 { (
char *)
"HNSW_prepare_level_tab", _wrap_HNSW_prepare_level_tab, METH_VARARGS, NULL},
77351 { (
char *)
"HNSW_shrink_neighbor_list", _wrap_HNSW_shrink_neighbor_list, METH_VARARGS, NULL},
77352 { (
char *)
"delete_HNSW", _wrap_delete_HNSW, METH_VARARGS, NULL},
77353 { (
char *)
"HNSW_swigregister", HNSW_swigregister, METH_VARARGS, NULL},
77354 { (
char *)
"VisitedTable_visited_set", _wrap_VisitedTable_visited_set, METH_VARARGS, NULL},
77355 { (
char *)
"VisitedTable_visited_get", _wrap_VisitedTable_visited_get, METH_VARARGS, NULL},
77356 { (
char *)
"VisitedTable_visno_set", _wrap_VisitedTable_visno_set, METH_VARARGS, NULL},
77357 { (
char *)
"VisitedTable_visno_get", _wrap_VisitedTable_visno_get, METH_VARARGS, NULL},
77358 { (
char *)
"new_VisitedTable", _wrap_new_VisitedTable, METH_VARARGS, NULL},
77359 { (
char *)
"VisitedTable_set", _wrap_VisitedTable_set, METH_VARARGS, NULL},
77360 { (
char *)
"VisitedTable_get", _wrap_VisitedTable_get, METH_VARARGS, NULL},
77361 { (
char *)
"VisitedTable_advance", _wrap_VisitedTable_advance, METH_VARARGS, NULL},
77362 { (
char *)
"delete_VisitedTable", _wrap_delete_VisitedTable, METH_VARARGS, NULL},
77363 { (
char *)
"VisitedTable_swigregister", VisitedTable_swigregister, METH_VARARGS, NULL},
77364 { (
char *)
"HNSWStats_n1_set", _wrap_HNSWStats_n1_set, METH_VARARGS, NULL},
77365 { (
char *)
"HNSWStats_n1_get", _wrap_HNSWStats_n1_get, METH_VARARGS, NULL},
77366 { (
char *)
"HNSWStats_n2_set", _wrap_HNSWStats_n2_set, METH_VARARGS, NULL},
77367 { (
char *)
"HNSWStats_n2_get", _wrap_HNSWStats_n2_get, METH_VARARGS, NULL},
77368 { (
char *)
"HNSWStats_n3_set", _wrap_HNSWStats_n3_set, METH_VARARGS, NULL},
77369 { (
char *)
"HNSWStats_n3_get", _wrap_HNSWStats_n3_get, METH_VARARGS, NULL},
77370 { (
char *)
"HNSWStats_ndis_set", _wrap_HNSWStats_ndis_set, METH_VARARGS, NULL},
77371 { (
char *)
"HNSWStats_ndis_get", _wrap_HNSWStats_ndis_get, METH_VARARGS, NULL},
77372 { (
char *)
"HNSWStats_nreorder_set", _wrap_HNSWStats_nreorder_set, METH_VARARGS, NULL},
77373 { (
char *)
"HNSWStats_nreorder_get", _wrap_HNSWStats_nreorder_get, METH_VARARGS, NULL},
77374 { (
char *)
"HNSWStats_view_set", _wrap_HNSWStats_view_set, METH_VARARGS, NULL},
77375 { (
char *)
"HNSWStats_view_get", _wrap_HNSWStats_view_get, METH_VARARGS, NULL},
77376 { (
char *)
"new_HNSWStats", _wrap_new_HNSWStats, METH_VARARGS, NULL},
77377 { (
char *)
"HNSWStats_reset", _wrap_HNSWStats_reset, METH_VARARGS, NULL},
77378 { (
char *)
"delete_HNSWStats", _wrap_delete_HNSWStats, METH_VARARGS, NULL},
77379 { (
char *)
"HNSWStats_swigregister", HNSWStats_swigregister, METH_VARARGS, NULL},
77380 { (
char *)
"ReconstructFromNeighbors_index_get", _wrap_ReconstructFromNeighbors_index_get, METH_VARARGS, NULL},
77381 { (
char *)
"ReconstructFromNeighbors_M_set", _wrap_ReconstructFromNeighbors_M_set, METH_VARARGS, NULL},
77382 { (
char *)
"ReconstructFromNeighbors_M_get", _wrap_ReconstructFromNeighbors_M_get, METH_VARARGS, NULL},
77383 { (
char *)
"ReconstructFromNeighbors_k_set", _wrap_ReconstructFromNeighbors_k_set, METH_VARARGS, NULL},
77384 { (
char *)
"ReconstructFromNeighbors_k_get", _wrap_ReconstructFromNeighbors_k_get, METH_VARARGS, NULL},
77385 { (
char *)
"ReconstructFromNeighbors_nsq_set", _wrap_ReconstructFromNeighbors_nsq_set, METH_VARARGS, NULL},
77386 { (
char *)
"ReconstructFromNeighbors_nsq_get", _wrap_ReconstructFromNeighbors_nsq_get, METH_VARARGS, NULL},
77387 { (
char *)
"ReconstructFromNeighbors_code_size_set", _wrap_ReconstructFromNeighbors_code_size_set, METH_VARARGS, NULL},
77388 { (
char *)
"ReconstructFromNeighbors_code_size_get", _wrap_ReconstructFromNeighbors_code_size_get, METH_VARARGS, NULL},
77389 { (
char *)
"ReconstructFromNeighbors_k_reorder_set", _wrap_ReconstructFromNeighbors_k_reorder_set, METH_VARARGS, NULL},
77390 { (
char *)
"ReconstructFromNeighbors_k_reorder_get", _wrap_ReconstructFromNeighbors_k_reorder_get, METH_VARARGS, NULL},
77391 { (
char *)
"ReconstructFromNeighbors_codebook_set", _wrap_ReconstructFromNeighbors_codebook_set, METH_VARARGS, NULL},
77392 { (
char *)
"ReconstructFromNeighbors_codebook_get", _wrap_ReconstructFromNeighbors_codebook_get, METH_VARARGS, NULL},
77393 { (
char *)
"ReconstructFromNeighbors_codes_set", _wrap_ReconstructFromNeighbors_codes_set, METH_VARARGS, NULL},
77394 { (
char *)
"ReconstructFromNeighbors_codes_get", _wrap_ReconstructFromNeighbors_codes_get, METH_VARARGS, NULL},
77395 { (
char *)
"ReconstructFromNeighbors_ntotal_set", _wrap_ReconstructFromNeighbors_ntotal_set, METH_VARARGS, NULL},
77396 { (
char *)
"ReconstructFromNeighbors_ntotal_get", _wrap_ReconstructFromNeighbors_ntotal_get, METH_VARARGS, NULL},
77397 { (
char *)
"ReconstructFromNeighbors_d_set", _wrap_ReconstructFromNeighbors_d_set, METH_VARARGS, NULL},
77398 { (
char *)
"ReconstructFromNeighbors_d_get", _wrap_ReconstructFromNeighbors_d_get, METH_VARARGS, NULL},
77399 { (
char *)
"ReconstructFromNeighbors_dsub_set", _wrap_ReconstructFromNeighbors_dsub_set, METH_VARARGS, NULL},
77400 { (
char *)
"ReconstructFromNeighbors_dsub_get", _wrap_ReconstructFromNeighbors_dsub_get, METH_VARARGS, NULL},
77401 { (
char *)
"new_ReconstructFromNeighbors", _wrap_new_ReconstructFromNeighbors, METH_VARARGS, NULL},
77402 { (
char *)
"ReconstructFromNeighbors_add_codes", _wrap_ReconstructFromNeighbors_add_codes, METH_VARARGS, NULL},
77403 { (
char *)
"ReconstructFromNeighbors_compute_distances", _wrap_ReconstructFromNeighbors_compute_distances, METH_VARARGS, NULL},
77404 { (
char *)
"ReconstructFromNeighbors_estimate_code", _wrap_ReconstructFromNeighbors_estimate_code, METH_VARARGS, NULL},
77405 { (
char *)
"ReconstructFromNeighbors_reconstruct", _wrap_ReconstructFromNeighbors_reconstruct, METH_VARARGS, NULL},
77406 { (
char *)
"ReconstructFromNeighbors_reconstruct_n", _wrap_ReconstructFromNeighbors_reconstruct_n, METH_VARARGS, NULL},
77407 { (
char *)
"ReconstructFromNeighbors_get_neighbor_table", _wrap_ReconstructFromNeighbors_get_neighbor_table, METH_VARARGS, NULL},
77408 { (
char *)
"delete_ReconstructFromNeighbors", _wrap_delete_ReconstructFromNeighbors, METH_VARARGS, NULL},
77409 { (
char *)
"ReconstructFromNeighbors_swigregister", ReconstructFromNeighbors_swigregister, METH_VARARGS, NULL},
77410 { (
char *)
"IndexHNSW_hnsw_set", _wrap_IndexHNSW_hnsw_set, METH_VARARGS, NULL},
77411 { (
char *)
"IndexHNSW_hnsw_get", _wrap_IndexHNSW_hnsw_get, METH_VARARGS, NULL},
77412 { (
char *)
"IndexHNSW_own_fields_set", _wrap_IndexHNSW_own_fields_set, METH_VARARGS, NULL},
77413 { (
char *)
"IndexHNSW_own_fields_get", _wrap_IndexHNSW_own_fields_get, METH_VARARGS, NULL},
77414 { (
char *)
"IndexHNSW_storage_set", _wrap_IndexHNSW_storage_set, METH_VARARGS, NULL},
77415 { (
char *)
"IndexHNSW_storage_get", _wrap_IndexHNSW_storage_get, METH_VARARGS, NULL},
77416 { (
char *)
"IndexHNSW_reconstruct_from_neighbors_set", _wrap_IndexHNSW_reconstruct_from_neighbors_set, METH_VARARGS, NULL},
77417 { (
char *)
"IndexHNSW_reconstruct_from_neighbors_get", _wrap_IndexHNSW_reconstruct_from_neighbors_get, METH_VARARGS, NULL},
77418 { (
char *)
"delete_IndexHNSW", _wrap_delete_IndexHNSW, METH_VARARGS, NULL},
77419 { (
char *)
"IndexHNSW_get_distance_computer", _wrap_IndexHNSW_get_distance_computer, METH_VARARGS, NULL},
77420 { (
char *)
"IndexHNSW_add", _wrap_IndexHNSW_add, METH_VARARGS, NULL},
77421 { (
char *)
"IndexHNSW_train", _wrap_IndexHNSW_train, METH_VARARGS, NULL},
77422 { (
char *)
"IndexHNSW_search", _wrap_IndexHNSW_search, METH_VARARGS, NULL},
77423 { (
char *)
"IndexHNSW_reconstruct", _wrap_IndexHNSW_reconstruct, METH_VARARGS, NULL},
77424 { (
char *)
"IndexHNSW_reset", _wrap_IndexHNSW_reset, METH_VARARGS, NULL},
77425 { (
char *)
"IndexHNSW_shrink_level_0_neighbors", _wrap_IndexHNSW_shrink_level_0_neighbors, METH_VARARGS, NULL},
77426 { (
char *)
"IndexHNSW_search_level_0", _wrap_IndexHNSW_search_level_0, METH_VARARGS, NULL},
77427 { (
char *)
"IndexHNSW_init_level_0_from_knngraph", _wrap_IndexHNSW_init_level_0_from_knngraph, METH_VARARGS, NULL},
77428 { (
char *)
"IndexHNSW_init_level_0_from_entry_points", _wrap_IndexHNSW_init_level_0_from_entry_points, METH_VARARGS, NULL},
77429 { (
char *)
"IndexHNSW_reorder_links", _wrap_IndexHNSW_reorder_links, METH_VARARGS, NULL},
77430 { (
char *)
"IndexHNSW_link_singletons", _wrap_IndexHNSW_link_singletons, METH_VARARGS, NULL},
77431 { (
char *)
"IndexHNSW_swigregister", IndexHNSW_swigregister, METH_VARARGS, NULL},
77432 { (
char *)
"new_IndexHNSWFlat", _wrap_new_IndexHNSWFlat, METH_VARARGS, NULL},
77433 { (
char *)
"IndexHNSWFlat_get_distance_computer", _wrap_IndexHNSWFlat_get_distance_computer, METH_VARARGS, NULL},
77434 { (
char *)
"delete_IndexHNSWFlat", _wrap_delete_IndexHNSWFlat, METH_VARARGS, NULL},
77435 { (
char *)
"IndexHNSWFlat_swigregister", IndexHNSWFlat_swigregister, METH_VARARGS, NULL},
77436 { (
char *)
"new_IndexHNSWPQ", _wrap_new_IndexHNSWPQ, METH_VARARGS, NULL},
77437 { (
char *)
"IndexHNSWPQ_train", _wrap_IndexHNSWPQ_train, METH_VARARGS, NULL},
77438 { (
char *)
"IndexHNSWPQ_get_distance_computer", _wrap_IndexHNSWPQ_get_distance_computer, METH_VARARGS, NULL},
77439 { (
char *)
"delete_IndexHNSWPQ", _wrap_delete_IndexHNSWPQ, METH_VARARGS, NULL},
77440 { (
char *)
"IndexHNSWPQ_swigregister", IndexHNSWPQ_swigregister, METH_VARARGS, NULL},
77441 { (
char *)
"new_IndexHNSWSQ", _wrap_new_IndexHNSWSQ, METH_VARARGS, NULL},
77442 { (
char *)
"IndexHNSWSQ_get_distance_computer", _wrap_IndexHNSWSQ_get_distance_computer, METH_VARARGS, NULL},
77443 { (
char *)
"delete_IndexHNSWSQ", _wrap_delete_IndexHNSWSQ, METH_VARARGS, NULL},
77444 { (
char *)
"IndexHNSWSQ_swigregister", IndexHNSWSQ_swigregister, METH_VARARGS, NULL},
77445 { (
char *)
"new_IndexHNSW2Level", _wrap_new_IndexHNSW2Level, METH_VARARGS, NULL},
77446 { (
char *)
"IndexHNSW2Level_get_distance_computer", _wrap_IndexHNSW2Level_get_distance_computer, METH_VARARGS, NULL},
77447 { (
char *)
"IndexHNSW2Level_flip_to_ivf", _wrap_IndexHNSW2Level_flip_to_ivf, METH_VARARGS, NULL},
77448 { (
char *)
"IndexHNSW2Level_search", _wrap_IndexHNSW2Level_search, METH_VARARGS, NULL},
77449 { (
char *)
"delete_IndexHNSW2Level", _wrap_delete_IndexHNSW2Level, METH_VARARGS, NULL},
77450 { (
char *)
"IndexHNSW2Level_swigregister", IndexHNSW2Level_swigregister, METH_VARARGS, NULL},
77451 { (
char *)
"IndexIVFFlat_add_core", _wrap_IndexIVFFlat_add_core, METH_VARARGS, NULL},
77452 { (
char *)
"IndexIVFFlat_add_with_ids", _wrap_IndexIVFFlat_add_with_ids, METH_VARARGS, NULL},
77453 { (
char *)
"IndexIVFFlat_encode_vectors", _wrap_IndexIVFFlat_encode_vectors, METH_VARARGS, NULL},
77454 { (
char *)
"IndexIVFFlat_get_InvertedListScanner", _wrap_IndexIVFFlat_get_InvertedListScanner, METH_VARARGS, NULL},
77455 { (
char *)
"IndexIVFFlat_range_search", _wrap_IndexIVFFlat_range_search, METH_VARARGS, NULL},
77456 { (
char *)
"IndexIVFFlat_update_vectors", _wrap_IndexIVFFlat_update_vectors, METH_VARARGS, NULL},
77457 { (
char *)
"IndexIVFFlat_reconstruct_from_offset", _wrap_IndexIVFFlat_reconstruct_from_offset, METH_VARARGS, NULL},
77458 { (
char *)
"new_IndexIVFFlat", _wrap_new_IndexIVFFlat, METH_VARARGS, NULL},
77459 { (
char *)
"delete_IndexIVFFlat", _wrap_delete_IndexIVFFlat, METH_VARARGS, NULL},
77460 { (
char *)
"IndexIVFFlat_swigregister", IndexIVFFlat_swigregister, METH_VARARGS, NULL},
77461 { (
char *)
"IndexIVFFlatDedup_instances_set", _wrap_IndexIVFFlatDedup_instances_set, METH_VARARGS, NULL},
77462 { (
char *)
"IndexIVFFlatDedup_instances_get", _wrap_IndexIVFFlatDedup_instances_get, METH_VARARGS, NULL},
77463 { (
char *)
"IndexIVFFlatDedup_train", _wrap_IndexIVFFlatDedup_train, METH_VARARGS, NULL},
77464 { (
char *)
"IndexIVFFlatDedup_add_with_ids", _wrap_IndexIVFFlatDedup_add_with_ids, METH_VARARGS, NULL},
77465 { (
char *)
"IndexIVFFlatDedup_search_preassigned", _wrap_IndexIVFFlatDedup_search_preassigned, METH_VARARGS, NULL},
77466 { (
char *)
"IndexIVFFlatDedup_remove_ids", _wrap_IndexIVFFlatDedup_remove_ids, METH_VARARGS, NULL},
77467 { (
char *)
"IndexIVFFlatDedup_range_search", _wrap_IndexIVFFlatDedup_range_search, METH_VARARGS, NULL},
77468 { (
char *)
"IndexIVFFlatDedup_update_vectors", _wrap_IndexIVFFlatDedup_update_vectors, METH_VARARGS, NULL},
77469 { (
char *)
"IndexIVFFlatDedup_reconstruct_from_offset", _wrap_IndexIVFFlatDedup_reconstruct_from_offset, METH_VARARGS, NULL},
77470 { (
char *)
"new_IndexIVFFlatDedup", _wrap_new_IndexIVFFlatDedup, METH_VARARGS, NULL},
77471 { (
char *)
"delete_IndexIVFFlatDedup", _wrap_delete_IndexIVFFlatDedup, METH_VARARGS, NULL},
77472 { (
char *)
"IndexIVFFlatDedup_swigregister", IndexIVFFlatDedup_swigregister, METH_VARARGS, NULL},
77473 { (
char *)
"OnDiskInvertedLists_lists_set", _wrap_OnDiskInvertedLists_lists_set, METH_VARARGS, NULL},
77474 { (
char *)
"OnDiskInvertedLists_lists_get", _wrap_OnDiskInvertedLists_lists_get, METH_VARARGS, NULL},
77475 { (
char *)
"OnDiskInvertedLists_slots_set", _wrap_OnDiskInvertedLists_slots_set, METH_VARARGS, NULL},
77476 { (
char *)
"OnDiskInvertedLists_slots_get", _wrap_OnDiskInvertedLists_slots_get, METH_VARARGS, NULL},
77477 { (
char *)
"OnDiskInvertedLists_filename_set", _wrap_OnDiskInvertedLists_filename_set, METH_VARARGS, NULL},
77478 { (
char *)
"OnDiskInvertedLists_filename_get", _wrap_OnDiskInvertedLists_filename_get, METH_VARARGS, NULL},
77479 { (
char *)
"OnDiskInvertedLists_totsize_set", _wrap_OnDiskInvertedLists_totsize_set, METH_VARARGS, NULL},
77480 { (
char *)
"OnDiskInvertedLists_totsize_get", _wrap_OnDiskInvertedLists_totsize_get, METH_VARARGS, NULL},
77481 { (
char *)
"OnDiskInvertedLists_ptr_set", _wrap_OnDiskInvertedLists_ptr_set, METH_VARARGS, NULL},
77482 { (
char *)
"OnDiskInvertedLists_ptr_get", _wrap_OnDiskInvertedLists_ptr_get, METH_VARARGS, NULL},
77483 { (
char *)
"OnDiskInvertedLists_read_only_set", _wrap_OnDiskInvertedLists_read_only_set, METH_VARARGS, NULL},
77484 { (
char *)
"OnDiskInvertedLists_read_only_get", _wrap_OnDiskInvertedLists_read_only_get, METH_VARARGS, NULL},
77485 { (
char *)
"OnDiskInvertedLists_list_size", _wrap_OnDiskInvertedLists_list_size, METH_VARARGS, NULL},
77486 { (
char *)
"OnDiskInvertedLists_get_codes", _wrap_OnDiskInvertedLists_get_codes, METH_VARARGS, NULL},
77487 { (
char *)
"OnDiskInvertedLists_get_ids", _wrap_OnDiskInvertedLists_get_ids, METH_VARARGS, NULL},
77488 { (
char *)
"OnDiskInvertedLists_add_entries", _wrap_OnDiskInvertedLists_add_entries, METH_VARARGS, NULL},
77489 { (
char *)
"OnDiskInvertedLists_update_entries", _wrap_OnDiskInvertedLists_update_entries, METH_VARARGS, NULL},
77490 { (
char *)
"OnDiskInvertedLists_resize", _wrap_OnDiskInvertedLists_resize, METH_VARARGS, NULL},
77491 { (
char *)
"OnDiskInvertedLists_merge_from", _wrap_OnDiskInvertedLists_merge_from, METH_VARARGS, NULL},
77492 { (
char *)
"OnDiskInvertedLists_prefetch_lists", _wrap_OnDiskInvertedLists_prefetch_lists, METH_VARARGS, NULL},
77493 { (
char *)
"delete_OnDiskInvertedLists", _wrap_delete_OnDiskInvertedLists, METH_VARARGS, NULL},
77494 { (
char *)
"OnDiskInvertedLists_locks_set", _wrap_OnDiskInvertedLists_locks_set, METH_VARARGS, NULL},
77495 { (
char *)
"OnDiskInvertedLists_locks_get", _wrap_OnDiskInvertedLists_locks_get, METH_VARARGS, NULL},
77496 { (
char *)
"OnDiskInvertedLists_pf_set", _wrap_OnDiskInvertedLists_pf_set, METH_VARARGS, NULL},
77497 { (
char *)
"OnDiskInvertedLists_pf_get", _wrap_OnDiskInvertedLists_pf_get, METH_VARARGS, NULL},
77498 { (
char *)
"OnDiskInvertedLists_do_mmap", _wrap_OnDiskInvertedLists_do_mmap, METH_VARARGS, NULL},
77499 { (
char *)
"OnDiskInvertedLists_update_totsize", _wrap_OnDiskInvertedLists_update_totsize, METH_VARARGS, NULL},
77500 { (
char *)
"OnDiskInvertedLists_resize_locked", _wrap_OnDiskInvertedLists_resize_locked, METH_VARARGS, NULL},
77501 { (
char *)
"OnDiskInvertedLists_allocate_slot", _wrap_OnDiskInvertedLists_allocate_slot, METH_VARARGS, NULL},
77502 { (
char *)
"OnDiskInvertedLists_free_slot", _wrap_OnDiskInvertedLists_free_slot, METH_VARARGS, NULL},
77503 { (
char *)
"new_OnDiskInvertedLists", _wrap_new_OnDiskInvertedLists, METH_VARARGS, NULL},
77504 { (
char *)
"OnDiskInvertedLists_swigregister", OnDiskInvertedLists_swigregister, METH_VARARGS, NULL},
77505 { (
char *)
"IVFPQSearchParameters_scan_table_threshold_set", _wrap_IVFPQSearchParameters_scan_table_threshold_set, METH_VARARGS, NULL},
77506 { (
char *)
"IVFPQSearchParameters_scan_table_threshold_get", _wrap_IVFPQSearchParameters_scan_table_threshold_get, METH_VARARGS, NULL},
77507 { (
char *)
"IVFPQSearchParameters_polysemous_ht_set", _wrap_IVFPQSearchParameters_polysemous_ht_set, METH_VARARGS, NULL},
77508 { (
char *)
"IVFPQSearchParameters_polysemous_ht_get", _wrap_IVFPQSearchParameters_polysemous_ht_get, METH_VARARGS, NULL},
77509 { (
char *)
"delete_IVFPQSearchParameters", _wrap_delete_IVFPQSearchParameters, METH_VARARGS, NULL},
77510 { (
char *)
"new_IVFPQSearchParameters", _wrap_new_IVFPQSearchParameters, METH_VARARGS, NULL},
77511 { (
char *)
"IVFPQSearchParameters_swigregister", IVFPQSearchParameters_swigregister, METH_VARARGS, NULL},
77512 { (
char *)
"IndexIVFPQ_by_residual_set", _wrap_IndexIVFPQ_by_residual_set, METH_VARARGS, NULL},
77513 { (
char *)
"IndexIVFPQ_by_residual_get", _wrap_IndexIVFPQ_by_residual_get, METH_VARARGS, NULL},
77514 { (
char *)
"IndexIVFPQ_pq_set", _wrap_IndexIVFPQ_pq_set, METH_VARARGS, NULL},
77515 { (
char *)
"IndexIVFPQ_pq_get", _wrap_IndexIVFPQ_pq_get, METH_VARARGS, NULL},
77516 { (
char *)
"IndexIVFPQ_do_polysemous_training_set", _wrap_IndexIVFPQ_do_polysemous_training_set, METH_VARARGS, NULL},
77517 { (
char *)
"IndexIVFPQ_do_polysemous_training_get", _wrap_IndexIVFPQ_do_polysemous_training_get, METH_VARARGS, NULL},
77518 { (
char *)
"IndexIVFPQ_polysemous_training_set", _wrap_IndexIVFPQ_polysemous_training_set, METH_VARARGS, NULL},
77519 { (
char *)
"IndexIVFPQ_polysemous_training_get", _wrap_IndexIVFPQ_polysemous_training_get, METH_VARARGS, NULL},
77520 { (
char *)
"IndexIVFPQ_scan_table_threshold_set", _wrap_IndexIVFPQ_scan_table_threshold_set, METH_VARARGS, NULL},
77521 { (
char *)
"IndexIVFPQ_scan_table_threshold_get", _wrap_IndexIVFPQ_scan_table_threshold_get, METH_VARARGS, NULL},
77522 { (
char *)
"IndexIVFPQ_polysemous_ht_set", _wrap_IndexIVFPQ_polysemous_ht_set, METH_VARARGS, NULL},
77523 { (
char *)
"IndexIVFPQ_polysemous_ht_get", _wrap_IndexIVFPQ_polysemous_ht_get, METH_VARARGS, NULL},
77524 { (
char *)
"IndexIVFPQ_use_precomputed_table_set", _wrap_IndexIVFPQ_use_precomputed_table_set, METH_VARARGS, NULL},
77525 { (
char *)
"IndexIVFPQ_use_precomputed_table_get", _wrap_IndexIVFPQ_use_precomputed_table_get, METH_VARARGS, NULL},
77526 { (
char *)
"IndexIVFPQ_precomputed_table_max_bytes_get", _wrap_IndexIVFPQ_precomputed_table_max_bytes_get, METH_VARARGS, NULL},
77527 { (
char *)
"IndexIVFPQ_precomputed_table_max_bytes_set", _wrap_IndexIVFPQ_precomputed_table_max_bytes_set, METH_VARARGS, NULL},
77528 { (
char *)
"IndexIVFPQ_precomputed_table_set", _wrap_IndexIVFPQ_precomputed_table_set, METH_VARARGS, NULL},
77529 { (
char *)
"IndexIVFPQ_precomputed_table_get", _wrap_IndexIVFPQ_precomputed_table_get, METH_VARARGS, NULL},
77530 { (
char *)
"IndexIVFPQ_add_with_ids", _wrap_IndexIVFPQ_add_with_ids, METH_VARARGS, NULL},
77531 { (
char *)
"IndexIVFPQ_encode_vectors", _wrap_IndexIVFPQ_encode_vectors, METH_VARARGS, NULL},
77532 { (
char *)
"IndexIVFPQ_add_core_o", _wrap_IndexIVFPQ_add_core_o, METH_VARARGS, NULL},
77533 { (
char *)
"IndexIVFPQ_train_residual", _wrap_IndexIVFPQ_train_residual, METH_VARARGS, NULL},
77534 { (
char *)
"IndexIVFPQ_train_residual_o", _wrap_IndexIVFPQ_train_residual_o, METH_VARARGS, NULL},
77535 { (
char *)
"IndexIVFPQ_reconstruct_from_offset", _wrap_IndexIVFPQ_reconstruct_from_offset, METH_VARARGS, NULL},
77536 { (
char *)
"IndexIVFPQ_find_duplicates", _wrap_IndexIVFPQ_find_duplicates, METH_VARARGS, NULL},
77537 { (
char *)
"IndexIVFPQ_encode", _wrap_IndexIVFPQ_encode, METH_VARARGS, NULL},
77538 { (
char *)
"IndexIVFPQ_encode_multiple", _wrap_IndexIVFPQ_encode_multiple, METH_VARARGS, NULL},
77539 { (
char *)
"IndexIVFPQ_decode_multiple", _wrap_IndexIVFPQ_decode_multiple, METH_VARARGS, NULL},
77540 { (
char *)
"IndexIVFPQ_get_InvertedListScanner", _wrap_IndexIVFPQ_get_InvertedListScanner, METH_VARARGS, NULL},
77541 { (
char *)
"IndexIVFPQ_precompute_table", _wrap_IndexIVFPQ_precompute_table, METH_VARARGS, NULL},
77542 { (
char *)
"new_IndexIVFPQ", _wrap_new_IndexIVFPQ, METH_VARARGS, NULL},
77543 { (
char *)
"delete_IndexIVFPQ", _wrap_delete_IndexIVFPQ, METH_VARARGS, NULL},
77544 { (
char *)
"IndexIVFPQ_swigregister", IndexIVFPQ_swigregister, METH_VARARGS, NULL},
77545 { (
char *)
"IndexIVFPQStats_nrefine_set", _wrap_IndexIVFPQStats_nrefine_set, METH_VARARGS, NULL},
77546 { (
char *)
"IndexIVFPQStats_nrefine_get", _wrap_IndexIVFPQStats_nrefine_get, METH_VARARGS, NULL},
77547 { (
char *)
"IndexIVFPQStats_n_hamming_pass_set", _wrap_IndexIVFPQStats_n_hamming_pass_set, METH_VARARGS, NULL},
77548 { (
char *)
"IndexIVFPQStats_n_hamming_pass_get", _wrap_IndexIVFPQStats_n_hamming_pass_get, METH_VARARGS, NULL},
77549 { (
char *)
"IndexIVFPQStats_search_cycles_set", _wrap_IndexIVFPQStats_search_cycles_set, METH_VARARGS, NULL},
77550 { (
char *)
"IndexIVFPQStats_search_cycles_get", _wrap_IndexIVFPQStats_search_cycles_get, METH_VARARGS, NULL},
77551 { (
char *)
"IndexIVFPQStats_refine_cycles_set", _wrap_IndexIVFPQStats_refine_cycles_set, METH_VARARGS, NULL},
77552 { (
char *)
"IndexIVFPQStats_refine_cycles_get", _wrap_IndexIVFPQStats_refine_cycles_get, METH_VARARGS, NULL},
77553 { (
char *)
"new_IndexIVFPQStats", _wrap_new_IndexIVFPQStats, METH_VARARGS, NULL},
77554 { (
char *)
"IndexIVFPQStats_reset", _wrap_IndexIVFPQStats_reset, METH_VARARGS, NULL},
77555 { (
char *)
"delete_IndexIVFPQStats", _wrap_delete_IndexIVFPQStats, METH_VARARGS, NULL},
77556 { (
char *)
"IndexIVFPQStats_swigregister", IndexIVFPQStats_swigregister, METH_VARARGS, NULL},
77557 { (
char *)
"IndexIVFPQR_refine_pq_set", _wrap_IndexIVFPQR_refine_pq_set, METH_VARARGS, NULL},
77558 { (
char *)
"IndexIVFPQR_refine_pq_get", _wrap_IndexIVFPQR_refine_pq_get, METH_VARARGS, NULL},
77559 { (
char *)
"IndexIVFPQR_refine_codes_set", _wrap_IndexIVFPQR_refine_codes_set, METH_VARARGS, NULL},
77560 { (
char *)
"IndexIVFPQR_refine_codes_get", _wrap_IndexIVFPQR_refine_codes_get, METH_VARARGS, NULL},
77561 { (
char *)
"IndexIVFPQR_k_factor_set", _wrap_IndexIVFPQR_k_factor_set, METH_VARARGS, NULL},
77562 { (
char *)
"IndexIVFPQR_k_factor_get", _wrap_IndexIVFPQR_k_factor_get, METH_VARARGS, NULL},
77563 { (
char *)
"IndexIVFPQR_reset", _wrap_IndexIVFPQR_reset, METH_VARARGS, NULL},
77564 { (
char *)
"IndexIVFPQR_remove_ids", _wrap_IndexIVFPQR_remove_ids, METH_VARARGS, NULL},
77565 { (
char *)
"IndexIVFPQR_train_residual", _wrap_IndexIVFPQR_train_residual, METH_VARARGS, NULL},
77566 { (
char *)
"IndexIVFPQR_add_with_ids", _wrap_IndexIVFPQR_add_with_ids, METH_VARARGS, NULL},
77567 { (
char *)
"IndexIVFPQR_add_core", _wrap_IndexIVFPQR_add_core, METH_VARARGS, NULL},
77568 { (
char *)
"IndexIVFPQR_reconstruct_from_offset", _wrap_IndexIVFPQR_reconstruct_from_offset, METH_VARARGS, NULL},
77569 { (
char *)
"IndexIVFPQR_merge_from", _wrap_IndexIVFPQR_merge_from, METH_VARARGS, NULL},
77570 { (
char *)
"IndexIVFPQR_search_preassigned", _wrap_IndexIVFPQR_search_preassigned, METH_VARARGS, NULL},
77571 { (
char *)
"new_IndexIVFPQR", _wrap_new_IndexIVFPQR, METH_VARARGS, NULL},
77572 { (
char *)
"delete_IndexIVFPQR", _wrap_delete_IndexIVFPQR, METH_VARARGS, NULL},
77573 { (
char *)
"IndexIVFPQR_swigregister", IndexIVFPQR_swigregister, METH_VARARGS, NULL},
77574 { (
char *)
"Index2Layer_q1_set", _wrap_Index2Layer_q1_set, METH_VARARGS, NULL},
77575 { (
char *)
"Index2Layer_q1_get", _wrap_Index2Layer_q1_get, METH_VARARGS, NULL},
77576 { (
char *)
"Index2Layer_pq_set", _wrap_Index2Layer_pq_set, METH_VARARGS, NULL},
77577 { (
char *)
"Index2Layer_pq_get", _wrap_Index2Layer_pq_get, METH_VARARGS, NULL},
77578 { (
char *)
"Index2Layer_codes_set", _wrap_Index2Layer_codes_set, METH_VARARGS, NULL},
77579 { (
char *)
"Index2Layer_codes_get", _wrap_Index2Layer_codes_get, METH_VARARGS, NULL},
77580 { (
char *)
"Index2Layer_code_size_1_set", _wrap_Index2Layer_code_size_1_set, METH_VARARGS, NULL},
77581 { (
char *)
"Index2Layer_code_size_1_get", _wrap_Index2Layer_code_size_1_get, METH_VARARGS, NULL},
77582 { (
char *)
"Index2Layer_code_size_2_set", _wrap_Index2Layer_code_size_2_set, METH_VARARGS, NULL},
77583 { (
char *)
"Index2Layer_code_size_2_get", _wrap_Index2Layer_code_size_2_get, METH_VARARGS, NULL},
77584 { (
char *)
"Index2Layer_code_size_set", _wrap_Index2Layer_code_size_set, METH_VARARGS, NULL},
77585 { (
char *)
"Index2Layer_code_size_get", _wrap_Index2Layer_code_size_get, METH_VARARGS, NULL},
77586 { (
char *)
"new_Index2Layer", _wrap_new_Index2Layer, METH_VARARGS, NULL},
77587 { (
char *)
"delete_Index2Layer", _wrap_delete_Index2Layer, METH_VARARGS, NULL},
77588 { (
char *)
"Index2Layer_train", _wrap_Index2Layer_train, METH_VARARGS, NULL},
77589 { (
char *)
"Index2Layer_add", _wrap_Index2Layer_add, METH_VARARGS, NULL},
77590 { (
char *)
"Index2Layer_search", _wrap_Index2Layer_search, METH_VARARGS, NULL},
77591 { (
char *)
"Index2Layer_reconstruct_n", _wrap_Index2Layer_reconstruct_n, METH_VARARGS, NULL},
77592 { (
char *)
"Index2Layer_reconstruct", _wrap_Index2Layer_reconstruct, METH_VARARGS, NULL},
77593 { (
char *)
"Index2Layer_reset", _wrap_Index2Layer_reset, METH_VARARGS, NULL},
77594 { (
char *)
"Index2Layer_transfer_to_IVFPQ", _wrap_Index2Layer_transfer_to_IVFPQ, METH_VARARGS, NULL},
77595 { (
char *)
"Index2Layer_swigregister", Index2Layer_swigregister, METH_VARARGS, NULL},
77596 { (
char *)
"IndexBinary_d_set", _wrap_IndexBinary_d_set, METH_VARARGS, NULL},
77597 { (
char *)
"IndexBinary_d_get", _wrap_IndexBinary_d_get, METH_VARARGS, NULL},
77598 { (
char *)
"IndexBinary_code_size_set", _wrap_IndexBinary_code_size_set, METH_VARARGS, NULL},
77599 { (
char *)
"IndexBinary_code_size_get", _wrap_IndexBinary_code_size_get, METH_VARARGS, NULL},
77600 { (
char *)
"IndexBinary_ntotal_set", _wrap_IndexBinary_ntotal_set, METH_VARARGS, NULL},
77601 { (
char *)
"IndexBinary_ntotal_get", _wrap_IndexBinary_ntotal_get, METH_VARARGS, NULL},
77602 { (
char *)
"IndexBinary_verbose_set", _wrap_IndexBinary_verbose_set, METH_VARARGS, NULL},
77603 { (
char *)
"IndexBinary_verbose_get", _wrap_IndexBinary_verbose_get, METH_VARARGS, NULL},
77604 { (
char *)
"IndexBinary_is_trained_set", _wrap_IndexBinary_is_trained_set, METH_VARARGS, NULL},
77605 { (
char *)
"IndexBinary_is_trained_get", _wrap_IndexBinary_is_trained_get, METH_VARARGS, NULL},
77606 { (
char *)
"IndexBinary_metric_type_set", _wrap_IndexBinary_metric_type_set, METH_VARARGS, NULL},
77607 { (
char *)
"IndexBinary_metric_type_get", _wrap_IndexBinary_metric_type_get, METH_VARARGS, NULL},
77608 { (
char *)
"delete_IndexBinary", _wrap_delete_IndexBinary, METH_VARARGS, NULL},
77609 { (
char *)
"IndexBinary_train", _wrap_IndexBinary_train, METH_VARARGS, NULL},
77610 { (
char *)
"IndexBinary_add", _wrap_IndexBinary_add, METH_VARARGS, NULL},
77611 { (
char *)
"IndexBinary_add_with_ids", _wrap_IndexBinary_add_with_ids, METH_VARARGS, NULL},
77612 { (
char *)
"IndexBinary_search", _wrap_IndexBinary_search, METH_VARARGS, NULL},
77613 { (
char *)
"IndexBinary_range_search", _wrap_IndexBinary_range_search, METH_VARARGS, NULL},
77614 { (
char *)
"IndexBinary_assign", _wrap_IndexBinary_assign, METH_VARARGS, NULL},
77615 { (
char *)
"IndexBinary_reset", _wrap_IndexBinary_reset, METH_VARARGS, NULL},
77616 { (
char *)
"IndexBinary_remove_ids", _wrap_IndexBinary_remove_ids, METH_VARARGS, NULL},
77617 { (
char *)
"IndexBinary_reconstruct", _wrap_IndexBinary_reconstruct, METH_VARARGS, NULL},
77618 { (
char *)
"IndexBinary_reconstruct_n", _wrap_IndexBinary_reconstruct_n, METH_VARARGS, NULL},
77619 { (
char *)
"IndexBinary_search_and_reconstruct", _wrap_IndexBinary_search_and_reconstruct, METH_VARARGS, NULL},
77620 { (
char *)
"IndexBinary_display", _wrap_IndexBinary_display, METH_VARARGS, NULL},
77621 { (
char *)
"IndexBinary_swigregister", IndexBinary_swigregister, METH_VARARGS, NULL},
77622 { (
char *)
"IndexBinaryFlat_xb_set", _wrap_IndexBinaryFlat_xb_set, METH_VARARGS, NULL},
77623 { (
char *)
"IndexBinaryFlat_xb_get", _wrap_IndexBinaryFlat_xb_get, METH_VARARGS, NULL},
77624 { (
char *)
"IndexBinaryFlat_use_heap_set", _wrap_IndexBinaryFlat_use_heap_set, METH_VARARGS, NULL},
77625 { (
char *)
"IndexBinaryFlat_use_heap_get", _wrap_IndexBinaryFlat_use_heap_get, METH_VARARGS, NULL},
77626 { (
char *)
"IndexBinaryFlat_query_batch_size_set", _wrap_IndexBinaryFlat_query_batch_size_set, METH_VARARGS, NULL},
77627 { (
char *)
"IndexBinaryFlat_query_batch_size_get", _wrap_IndexBinaryFlat_query_batch_size_get, METH_VARARGS, NULL},
77628 { (
char *)
"IndexBinaryFlat_add", _wrap_IndexBinaryFlat_add, METH_VARARGS, NULL},
77629 { (
char *)
"IndexBinaryFlat_reset", _wrap_IndexBinaryFlat_reset, METH_VARARGS, NULL},
77630 { (
char *)
"IndexBinaryFlat_search", _wrap_IndexBinaryFlat_search, METH_VARARGS, NULL},
77631 { (
char *)
"IndexBinaryFlat_reconstruct", _wrap_IndexBinaryFlat_reconstruct, METH_VARARGS, NULL},
77632 { (
char *)
"IndexBinaryFlat_remove_ids", _wrap_IndexBinaryFlat_remove_ids, METH_VARARGS, NULL},
77633 { (
char *)
"new_IndexBinaryFlat", _wrap_new_IndexBinaryFlat, METH_VARARGS, NULL},
77634 { (
char *)
"delete_IndexBinaryFlat", _wrap_delete_IndexBinaryFlat, METH_VARARGS, NULL},
77635 { (
char *)
"IndexBinaryFlat_swigregister", IndexBinaryFlat_swigregister, METH_VARARGS, NULL},
77636 { (
char *)
"IndexBinaryIVF_invlists_set", _wrap_IndexBinaryIVF_invlists_set, METH_VARARGS, NULL},
77637 { (
char *)
"IndexBinaryIVF_invlists_get", _wrap_IndexBinaryIVF_invlists_get, METH_VARARGS, NULL},
77638 { (
char *)
"IndexBinaryIVF_own_invlists_set", _wrap_IndexBinaryIVF_own_invlists_set, METH_VARARGS, NULL},
77639 { (
char *)
"IndexBinaryIVF_own_invlists_get", _wrap_IndexBinaryIVF_own_invlists_get, METH_VARARGS, NULL},
77640 { (
char *)
"IndexBinaryIVF_nprobe_set", _wrap_IndexBinaryIVF_nprobe_set, METH_VARARGS, NULL},
77641 { (
char *)
"IndexBinaryIVF_nprobe_get", _wrap_IndexBinaryIVF_nprobe_get, METH_VARARGS, NULL},
77642 { (
char *)
"IndexBinaryIVF_max_codes_set", _wrap_IndexBinaryIVF_max_codes_set, METH_VARARGS, NULL},
77643 { (
char *)
"IndexBinaryIVF_max_codes_get", _wrap_IndexBinaryIVF_max_codes_get, METH_VARARGS, NULL},
77644 { (
char *)
"IndexBinaryIVF_use_heap_set", _wrap_IndexBinaryIVF_use_heap_set, METH_VARARGS, NULL},
77645 { (
char *)
"IndexBinaryIVF_use_heap_get", _wrap_IndexBinaryIVF_use_heap_get, METH_VARARGS, NULL},
77646 { (
char *)
"IndexBinaryIVF_maintain_direct_map_set", _wrap_IndexBinaryIVF_maintain_direct_map_set, METH_VARARGS, NULL},
77647 { (
char *)
"IndexBinaryIVF_maintain_direct_map_get", _wrap_IndexBinaryIVF_maintain_direct_map_get, METH_VARARGS, NULL},
77648 { (
char *)
"IndexBinaryIVF_direct_map_set", _wrap_IndexBinaryIVF_direct_map_set, METH_VARARGS, NULL},
77649 { (
char *)
"IndexBinaryIVF_direct_map_get", _wrap_IndexBinaryIVF_direct_map_get, METH_VARARGS, NULL},
77650 { (
char *)
"IndexBinaryIVF_quantizer_set", _wrap_IndexBinaryIVF_quantizer_set, METH_VARARGS, NULL},
77651 { (
char *)
"IndexBinaryIVF_quantizer_get", _wrap_IndexBinaryIVF_quantizer_get, METH_VARARGS, NULL},
77652 { (
char *)
"IndexBinaryIVF_nlist_set", _wrap_IndexBinaryIVF_nlist_set, METH_VARARGS, NULL},
77653 { (
char *)
"IndexBinaryIVF_nlist_get", _wrap_IndexBinaryIVF_nlist_get, METH_VARARGS, NULL},
77654 { (
char *)
"IndexBinaryIVF_own_fields_set", _wrap_IndexBinaryIVF_own_fields_set, METH_VARARGS, NULL},
77655 { (
char *)
"IndexBinaryIVF_own_fields_get", _wrap_IndexBinaryIVF_own_fields_get, METH_VARARGS, NULL},
77656 { (
char *)
"IndexBinaryIVF_cp_set", _wrap_IndexBinaryIVF_cp_set, METH_VARARGS, NULL},
77657 { (
char *)
"IndexBinaryIVF_cp_get", _wrap_IndexBinaryIVF_cp_get, METH_VARARGS, NULL},
77658 { (
char *)
"IndexBinaryIVF_clustering_index_set", _wrap_IndexBinaryIVF_clustering_index_set, METH_VARARGS, NULL},
77659 { (
char *)
"IndexBinaryIVF_clustering_index_get", _wrap_IndexBinaryIVF_clustering_index_get, METH_VARARGS, NULL},
77660 { (
char *)
"IndexBinaryIVF_train_q1", _wrap_IndexBinaryIVF_train_q1, METH_VARARGS, NULL},
77661 { (
char *)
"new_IndexBinaryIVF", _wrap_new_IndexBinaryIVF, METH_VARARGS, NULL},
77662 { (
char *)
"delete_IndexBinaryIVF", _wrap_delete_IndexBinaryIVF, METH_VARARGS, NULL},
77663 { (
char *)
"IndexBinaryIVF_reset", _wrap_IndexBinaryIVF_reset, METH_VARARGS, NULL},
77664 { (
char *)
"IndexBinaryIVF_train", _wrap_IndexBinaryIVF_train, METH_VARARGS, NULL},
77665 { (
char *)
"IndexBinaryIVF_add", _wrap_IndexBinaryIVF_add, METH_VARARGS, NULL},
77666 { (
char *)
"IndexBinaryIVF_add_with_ids", _wrap_IndexBinaryIVF_add_with_ids, METH_VARARGS, NULL},
77667 { (
char *)
"IndexBinaryIVF_add_core", _wrap_IndexBinaryIVF_add_core, METH_VARARGS, NULL},
77668 { (
char *)
"IndexBinaryIVF_search_preassigned", _wrap_IndexBinaryIVF_search_preassigned, METH_VARARGS, NULL},
77669 { (
char *)
"IndexBinaryIVF_get_InvertedListScanner", _wrap_IndexBinaryIVF_get_InvertedListScanner, METH_VARARGS, NULL},
77670 { (
char *)
"IndexBinaryIVF_search", _wrap_IndexBinaryIVF_search, METH_VARARGS, NULL},
77671 { (
char *)
"IndexBinaryIVF_reconstruct", _wrap_IndexBinaryIVF_reconstruct, METH_VARARGS, NULL},
77672 { (
char *)
"IndexBinaryIVF_reconstruct_n", _wrap_IndexBinaryIVF_reconstruct_n, METH_VARARGS, NULL},
77673 { (
char *)
"IndexBinaryIVF_search_and_reconstruct", _wrap_IndexBinaryIVF_search_and_reconstruct, METH_VARARGS, NULL},
77674 { (
char *)
"IndexBinaryIVF_reconstruct_from_offset", _wrap_IndexBinaryIVF_reconstruct_from_offset, METH_VARARGS, NULL},
77675 { (
char *)
"IndexBinaryIVF_remove_ids", _wrap_IndexBinaryIVF_remove_ids, METH_VARARGS, NULL},
77676 { (
char *)
"IndexBinaryIVF_merge_from", _wrap_IndexBinaryIVF_merge_from, METH_VARARGS, NULL},
77677 { (
char *)
"IndexBinaryIVF_get_list_size", _wrap_IndexBinaryIVF_get_list_size, METH_VARARGS, NULL},
77678 { (
char *)
"IndexBinaryIVF_make_direct_map", _wrap_IndexBinaryIVF_make_direct_map, METH_VARARGS, NULL},
77679 { (
char *)
"IndexBinaryIVF_imbalance_factor", _wrap_IndexBinaryIVF_imbalance_factor, METH_VARARGS, NULL},
77680 { (
char *)
"IndexBinaryIVF_print_stats", _wrap_IndexBinaryIVF_print_stats, METH_VARARGS, NULL},
77681 { (
char *)
"IndexBinaryIVF_replace_invlists", _wrap_IndexBinaryIVF_replace_invlists, METH_VARARGS, NULL},
77682 { (
char *)
"IndexBinaryIVF_swigregister", IndexBinaryIVF_swigregister, METH_VARARGS, NULL},
77683 { (
char *)
"IndexBinaryFromFloat_index_set", _wrap_IndexBinaryFromFloat_index_set, METH_VARARGS, NULL},
77684 { (
char *)
"IndexBinaryFromFloat_index_get", _wrap_IndexBinaryFromFloat_index_get, METH_VARARGS, NULL},
77685 { (
char *)
"IndexBinaryFromFloat_own_fields_set", _wrap_IndexBinaryFromFloat_own_fields_set, METH_VARARGS, NULL},
77686 { (
char *)
"IndexBinaryFromFloat_own_fields_get", _wrap_IndexBinaryFromFloat_own_fields_get, METH_VARARGS, NULL},
77687 { (
char *)
"new_IndexBinaryFromFloat", _wrap_new_IndexBinaryFromFloat, METH_VARARGS, NULL},
77688 { (
char *)
"delete_IndexBinaryFromFloat", _wrap_delete_IndexBinaryFromFloat, METH_VARARGS, NULL},
77689 { (
char *)
"IndexBinaryFromFloat_add", _wrap_IndexBinaryFromFloat_add, METH_VARARGS, NULL},
77690 { (
char *)
"IndexBinaryFromFloat_reset", _wrap_IndexBinaryFromFloat_reset, METH_VARARGS, NULL},
77691 { (
char *)
"IndexBinaryFromFloat_search", _wrap_IndexBinaryFromFloat_search, METH_VARARGS, NULL},
77692 { (
char *)
"IndexBinaryFromFloat_train", _wrap_IndexBinaryFromFloat_train, METH_VARARGS, NULL},
77693 { (
char *)
"IndexBinaryFromFloat_swigregister", IndexBinaryFromFloat_swigregister, METH_VARARGS, NULL},
77694 { (
char *)
"IndexBinaryHNSW_hnsw_set", _wrap_IndexBinaryHNSW_hnsw_set, METH_VARARGS, NULL},
77695 { (
char *)
"IndexBinaryHNSW_hnsw_get", _wrap_IndexBinaryHNSW_hnsw_get, METH_VARARGS, NULL},
77696 { (
char *)
"IndexBinaryHNSW_own_fields_set", _wrap_IndexBinaryHNSW_own_fields_set, METH_VARARGS, NULL},
77697 { (
char *)
"IndexBinaryHNSW_own_fields_get", _wrap_IndexBinaryHNSW_own_fields_get, METH_VARARGS, NULL},
77698 { (
char *)
"IndexBinaryHNSW_storage_set", _wrap_IndexBinaryHNSW_storage_set, METH_VARARGS, NULL},
77699 { (
char *)
"IndexBinaryHNSW_storage_get", _wrap_IndexBinaryHNSW_storage_get, METH_VARARGS, NULL},
77700 { (
char *)
"new_IndexBinaryHNSW", _wrap_new_IndexBinaryHNSW, METH_VARARGS, NULL},
77701 { (
char *)
"delete_IndexBinaryHNSW", _wrap_delete_IndexBinaryHNSW, METH_VARARGS, NULL},
77702 { (
char *)
"IndexBinaryHNSW_get_distance_computer", _wrap_IndexBinaryHNSW_get_distance_computer, METH_VARARGS, NULL},
77703 { (
char *)
"IndexBinaryHNSW_add", _wrap_IndexBinaryHNSW_add, METH_VARARGS, NULL},
77704 { (
char *)
"IndexBinaryHNSW_train", _wrap_IndexBinaryHNSW_train, METH_VARARGS, NULL},
77705 { (
char *)
"IndexBinaryHNSW_search", _wrap_IndexBinaryHNSW_search, METH_VARARGS, NULL},
77706 { (
char *)
"IndexBinaryHNSW_reconstruct", _wrap_IndexBinaryHNSW_reconstruct, METH_VARARGS, NULL},
77707 { (
char *)
"IndexBinaryHNSW_reset", _wrap_IndexBinaryHNSW_reset, METH_VARARGS, NULL},
77708 { (
char *)
"IndexBinaryHNSW_swigregister", IndexBinaryHNSW_swigregister, METH_VARARGS, NULL},
77709 { (
char *)
"IndexIDMap_index_set", _wrap_IndexIDMap_index_set, METH_VARARGS, NULL},
77710 { (
char *)
"IndexIDMap_index_get", _wrap_IndexIDMap_index_get, METH_VARARGS, NULL},
77711 { (
char *)
"IndexIDMap_own_fields_set", _wrap_IndexIDMap_own_fields_set, METH_VARARGS, NULL},
77712 { (
char *)
"IndexIDMap_own_fields_get", _wrap_IndexIDMap_own_fields_get, METH_VARARGS, NULL},
77713 { (
char *)
"IndexIDMap_id_map_set", _wrap_IndexIDMap_id_map_set, METH_VARARGS, NULL},
77714 { (
char *)
"IndexIDMap_id_map_get", _wrap_IndexIDMap_id_map_get, METH_VARARGS, NULL},
77715 { (
char *)
"IndexIDMap_add_with_ids", _wrap_IndexIDMap_add_with_ids, METH_VARARGS, NULL},
77716 { (
char *)
"IndexIDMap_add", _wrap_IndexIDMap_add, METH_VARARGS, NULL},
77717 { (
char *)
"IndexIDMap_search", _wrap_IndexIDMap_search, METH_VARARGS, NULL},
77718 { (
char *)
"IndexIDMap_train", _wrap_IndexIDMap_train, METH_VARARGS, NULL},
77719 { (
char *)
"IndexIDMap_reset", _wrap_IndexIDMap_reset, METH_VARARGS, NULL},
77720 { (
char *)
"IndexIDMap_remove_ids", _wrap_IndexIDMap_remove_ids, METH_VARARGS, NULL},
77721 { (
char *)
"IndexIDMap_range_search", _wrap_IndexIDMap_range_search, METH_VARARGS, NULL},
77722 { (
char *)
"delete_IndexIDMap", _wrap_delete_IndexIDMap, METH_VARARGS, NULL},
77723 { (
char *)
"new_IndexIDMap", _wrap_new_IndexIDMap, METH_VARARGS, NULL},
77724 { (
char *)
"IndexIDMap_swigregister", IndexIDMap_swigregister, METH_VARARGS, NULL},
77725 { (
char *)
"IndexIDMap2_rev_map_set", _wrap_IndexIDMap2_rev_map_set, METH_VARARGS, NULL},
77726 { (
char *)
"IndexIDMap2_rev_map_get", _wrap_IndexIDMap2_rev_map_get, METH_VARARGS, NULL},
77727 { (
char *)
"IndexIDMap2_construct_rev_map", _wrap_IndexIDMap2_construct_rev_map, METH_VARARGS, NULL},
77728 { (
char *)
"IndexIDMap2_add_with_ids", _wrap_IndexIDMap2_add_with_ids, METH_VARARGS, NULL},
77729 { (
char *)
"IndexIDMap2_remove_ids", _wrap_IndexIDMap2_remove_ids, METH_VARARGS, NULL},
77730 { (
char *)
"IndexIDMap2_reconstruct", _wrap_IndexIDMap2_reconstruct, METH_VARARGS, NULL},
77731 { (
char *)
"delete_IndexIDMap2", _wrap_delete_IndexIDMap2, METH_VARARGS, NULL},
77732 { (
char *)
"new_IndexIDMap2", _wrap_new_IndexIDMap2, METH_VARARGS, NULL},
77733 { (
char *)
"IndexIDMap2_swigregister", IndexIDMap2_swigregister, METH_VARARGS, NULL},
77734 { (
char *)
"IndexShards_shard_indexes_set", _wrap_IndexShards_shard_indexes_set, METH_VARARGS, NULL},
77735 { (
char *)
"IndexShards_shard_indexes_get", _wrap_IndexShards_shard_indexes_get, METH_VARARGS, NULL},
77736 { (
char *)
"IndexShards_own_fields_set", _wrap_IndexShards_own_fields_set, METH_VARARGS, NULL},
77737 { (
char *)
"IndexShards_own_fields_get", _wrap_IndexShards_own_fields_get, METH_VARARGS, NULL},
77738 { (
char *)
"IndexShards_threaded_set", _wrap_IndexShards_threaded_set, METH_VARARGS, NULL},
77739 { (
char *)
"IndexShards_threaded_get", _wrap_IndexShards_threaded_get, METH_VARARGS, NULL},
77740 { (
char *)
"IndexShards_successive_ids_set", _wrap_IndexShards_successive_ids_set, METH_VARARGS, NULL},
77741 { (
char *)
"IndexShards_successive_ids_get", _wrap_IndexShards_successive_ids_get, METH_VARARGS, NULL},
77742 { (
char *)
"new_IndexShards", _wrap_new_IndexShards, METH_VARARGS, NULL},
77743 { (
char *)
"IndexShards_add_shard", _wrap_IndexShards_add_shard, METH_VARARGS, NULL},
77744 { (
char *)
"IndexShards_sync_with_shard_indexes", _wrap_IndexShards_sync_with_shard_indexes, METH_VARARGS, NULL},
77745 { (
char *)
"IndexShards_at", _wrap_IndexShards_at, METH_VARARGS, NULL},
77746 { (
char *)
"IndexShards_add", _wrap_IndexShards_add, METH_VARARGS, NULL},
77747 { (
char *)
"IndexShards_add_with_ids", _wrap_IndexShards_add_with_ids, METH_VARARGS, NULL},
77748 { (
char *)
"IndexShards_search", _wrap_IndexShards_search, METH_VARARGS, NULL},
77749 { (
char *)
"IndexShards_train", _wrap_IndexShards_train, METH_VARARGS, NULL},
77750 { (
char *)
"IndexShards_reset", _wrap_IndexShards_reset, METH_VARARGS, NULL},
77751 { (
char *)
"delete_IndexShards", _wrap_delete_IndexShards, METH_VARARGS, NULL},
77752 { (
char *)
"IndexShards_swigregister", IndexShards_swigregister, METH_VARARGS, NULL},
77753 { (
char *)
"IndexSplitVectors_own_fields_set", _wrap_IndexSplitVectors_own_fields_set, METH_VARARGS, NULL},
77754 { (
char *)
"IndexSplitVectors_own_fields_get", _wrap_IndexSplitVectors_own_fields_get, METH_VARARGS, NULL},
77755 { (
char *)
"IndexSplitVectors_threaded_set", _wrap_IndexSplitVectors_threaded_set, METH_VARARGS, NULL},
77756 { (
char *)
"IndexSplitVectors_threaded_get", _wrap_IndexSplitVectors_threaded_get, METH_VARARGS, NULL},
77757 { (
char *)
"IndexSplitVectors_sub_indexes_set", _wrap_IndexSplitVectors_sub_indexes_set, METH_VARARGS, NULL},
77758 { (
char *)
"IndexSplitVectors_sub_indexes_get", _wrap_IndexSplitVectors_sub_indexes_get, METH_VARARGS, NULL},
77759 { (
char *)
"IndexSplitVectors_sum_d_set", _wrap_IndexSplitVectors_sum_d_set, METH_VARARGS, NULL},
77760 { (
char *)
"IndexSplitVectors_sum_d_get", _wrap_IndexSplitVectors_sum_d_get, METH_VARARGS, NULL},
77761 { (
char *)
"new_IndexSplitVectors", _wrap_new_IndexSplitVectors, METH_VARARGS, NULL},
77762 { (
char *)
"IndexSplitVectors_add_sub_index", _wrap_IndexSplitVectors_add_sub_index, METH_VARARGS, NULL},
77763 { (
char *)
"IndexSplitVectors_sync_with_sub_indexes", _wrap_IndexSplitVectors_sync_with_sub_indexes, METH_VARARGS, NULL},
77764 { (
char *)
"IndexSplitVectors_add", _wrap_IndexSplitVectors_add, METH_VARARGS, NULL},
77765 { (
char *)
"IndexSplitVectors_search", _wrap_IndexSplitVectors_search, METH_VARARGS, NULL},
77766 { (
char *)
"IndexSplitVectors_train", _wrap_IndexSplitVectors_train, METH_VARARGS, NULL},
77767 { (
char *)
"IndexSplitVectors_reset", _wrap_IndexSplitVectors_reset, METH_VARARGS, NULL},
77768 { (
char *)
"delete_IndexSplitVectors", _wrap_delete_IndexSplitVectors, METH_VARARGS, NULL},
77769 { (
char *)
"IndexSplitVectors_swigregister", IndexSplitVectors_swigregister, METH_VARARGS, NULL},
77770 { (
char *)
"downcast_index", _wrap_downcast_index, METH_VARARGS, NULL},
77771 { (
char *)
"downcast_VectorTransform", _wrap_downcast_VectorTransform, METH_VARARGS, NULL},
77772 { (
char *)
"downcast_IndexBinary", _wrap_downcast_IndexBinary, METH_VARARGS, NULL},
77773 { (
char *)
"write_index", _wrap_write_index, METH_VARARGS, NULL},
77774 { (
char *)
"write_index_binary", _wrap_write_index_binary, METH_VARARGS, NULL},
77775 { (
char *)
"read_index", _wrap_read_index, METH_VARARGS, NULL},
77776 { (
char *)
"read_index_binary", _wrap_read_index_binary, METH_VARARGS, NULL},
77777 { (
char *)
"write_VectorTransform", _wrap_write_VectorTransform, METH_VARARGS, NULL},
77778 { (
char *)
"read_VectorTransform", _wrap_read_VectorTransform, METH_VARARGS, NULL},
77779 { (
char *)
"read_ProductQuantizer", _wrap_read_ProductQuantizer, METH_VARARGS, NULL},
77780 { (
char *)
"write_ProductQuantizer", _wrap_write_ProductQuantizer, METH_VARARGS, NULL},
77781 { (
char *)
"write_InvertedLists", _wrap_write_InvertedLists, METH_VARARGS, NULL},
77782 { (
char *)
"read_InvertedLists", _wrap_read_InvertedLists, METH_VARARGS, NULL},
77783 { (
char *)
"clone_index", _wrap_clone_index, METH_VARARGS, NULL},
77784 { (
char *)
"Cloner_clone_VectorTransform", _wrap_Cloner_clone_VectorTransform, METH_VARARGS, NULL},
77785 { (
char *)
"Cloner_clone_Index", _wrap_Cloner_clone_Index, METH_VARARGS, NULL},
77786 { (
char *)
"Cloner_clone_IndexIVF", _wrap_Cloner_clone_IndexIVF, METH_VARARGS, NULL},
77787 { (
char *)
"delete_Cloner", _wrap_delete_Cloner, METH_VARARGS, NULL},
77788 { (
char *)
"new_Cloner", _wrap_new_Cloner, METH_VARARGS, NULL},
77789 { (
char *)
"Cloner_swigregister", Cloner_swigregister, METH_VARARGS, NULL},
77790 { (
char *)
"AutoTuneCriterion_nq_set", _wrap_AutoTuneCriterion_nq_set, METH_VARARGS, NULL},
77791 { (
char *)
"AutoTuneCriterion_nq_get", _wrap_AutoTuneCriterion_nq_get, METH_VARARGS, NULL},
77792 { (
char *)
"AutoTuneCriterion_nnn_set", _wrap_AutoTuneCriterion_nnn_set, METH_VARARGS, NULL},
77793 { (
char *)
"AutoTuneCriterion_nnn_get", _wrap_AutoTuneCriterion_nnn_get, METH_VARARGS, NULL},
77794 { (
char *)
"AutoTuneCriterion_gt_nnn_set", _wrap_AutoTuneCriterion_gt_nnn_set, METH_VARARGS, NULL},
77795 { (
char *)
"AutoTuneCriterion_gt_nnn_get", _wrap_AutoTuneCriterion_gt_nnn_get, METH_VARARGS, NULL},
77796 { (
char *)
"AutoTuneCriterion_gt_D_set", _wrap_AutoTuneCriterion_gt_D_set, METH_VARARGS, NULL},
77797 { (
char *)
"AutoTuneCriterion_gt_D_get", _wrap_AutoTuneCriterion_gt_D_get, METH_VARARGS, NULL},
77798 { (
char *)
"AutoTuneCriterion_gt_I_set", _wrap_AutoTuneCriterion_gt_I_set, METH_VARARGS, NULL},
77799 { (
char *)
"AutoTuneCriterion_gt_I_get", _wrap_AutoTuneCriterion_gt_I_get, METH_VARARGS, NULL},
77800 { (
char *)
"AutoTuneCriterion_set_groundtruth", _wrap_AutoTuneCriterion_set_groundtruth, METH_VARARGS, NULL},
77801 { (
char *)
"AutoTuneCriterion_evaluate", _wrap_AutoTuneCriterion_evaluate, METH_VARARGS, NULL},
77802 { (
char *)
"delete_AutoTuneCriterion", _wrap_delete_AutoTuneCriterion, METH_VARARGS, NULL},
77803 { (
char *)
"AutoTuneCriterion_swigregister", AutoTuneCriterion_swigregister, METH_VARARGS, NULL},
77804 { (
char *)
"OneRecallAtRCriterion_R_set", _wrap_OneRecallAtRCriterion_R_set, METH_VARARGS, NULL},
77805 { (
char *)
"OneRecallAtRCriterion_R_get", _wrap_OneRecallAtRCriterion_R_get, METH_VARARGS, NULL},
77806 { (
char *)
"new_OneRecallAtRCriterion", _wrap_new_OneRecallAtRCriterion, METH_VARARGS, NULL},
77807 { (
char *)
"OneRecallAtRCriterion_evaluate", _wrap_OneRecallAtRCriterion_evaluate, METH_VARARGS, NULL},
77808 { (
char *)
"delete_OneRecallAtRCriterion", _wrap_delete_OneRecallAtRCriterion, METH_VARARGS, NULL},
77809 { (
char *)
"OneRecallAtRCriterion_swigregister", OneRecallAtRCriterion_swigregister, METH_VARARGS, NULL},
77810 { (
char *)
"IntersectionCriterion_R_set", _wrap_IntersectionCriterion_R_set, METH_VARARGS, NULL},
77811 { (
char *)
"IntersectionCriterion_R_get", _wrap_IntersectionCriterion_R_get, METH_VARARGS, NULL},
77812 { (
char *)
"new_IntersectionCriterion", _wrap_new_IntersectionCriterion, METH_VARARGS, NULL},
77813 { (
char *)
"IntersectionCriterion_evaluate", _wrap_IntersectionCriterion_evaluate, METH_VARARGS, NULL},
77814 { (
char *)
"delete_IntersectionCriterion", _wrap_delete_IntersectionCriterion, METH_VARARGS, NULL},
77815 { (
char *)
"IntersectionCriterion_swigregister", IntersectionCriterion_swigregister, METH_VARARGS, NULL},
77816 { (
char *)
"OperatingPoint_perf_set", _wrap_OperatingPoint_perf_set, METH_VARARGS, NULL},
77817 { (
char *)
"OperatingPoint_perf_get", _wrap_OperatingPoint_perf_get, METH_VARARGS, NULL},
77818 { (
char *)
"OperatingPoint_t_set", _wrap_OperatingPoint_t_set, METH_VARARGS, NULL},
77819 { (
char *)
"OperatingPoint_t_get", _wrap_OperatingPoint_t_get, METH_VARARGS, NULL},
77820 { (
char *)
"OperatingPoint_key_set", _wrap_OperatingPoint_key_set, METH_VARARGS, NULL},
77821 { (
char *)
"OperatingPoint_key_get", _wrap_OperatingPoint_key_get, METH_VARARGS, NULL},
77822 { (
char *)
"OperatingPoint_cno_set", _wrap_OperatingPoint_cno_set, METH_VARARGS, NULL},
77823 { (
char *)
"OperatingPoint_cno_get", _wrap_OperatingPoint_cno_get, METH_VARARGS, NULL},
77824 { (
char *)
"new_OperatingPoint", _wrap_new_OperatingPoint, METH_VARARGS, NULL},
77825 { (
char *)
"delete_OperatingPoint", _wrap_delete_OperatingPoint, METH_VARARGS, NULL},
77826 { (
char *)
"OperatingPoint_swigregister", OperatingPoint_swigregister, METH_VARARGS, NULL},
77827 { (
char *)
"OperatingPoints_all_pts_set", _wrap_OperatingPoints_all_pts_set, METH_VARARGS, NULL},
77828 { (
char *)
"OperatingPoints_all_pts_get", _wrap_OperatingPoints_all_pts_get, METH_VARARGS, NULL},
77829 { (
char *)
"OperatingPoints_optimal_pts_set", _wrap_OperatingPoints_optimal_pts_set, METH_VARARGS, NULL},
77830 { (
char *)
"OperatingPoints_optimal_pts_get", _wrap_OperatingPoints_optimal_pts_get, METH_VARARGS, NULL},
77831 { (
char *)
"new_OperatingPoints", _wrap_new_OperatingPoints, METH_VARARGS, NULL},
77832 { (
char *)
"OperatingPoints_merge_with", _wrap_OperatingPoints_merge_with, METH_VARARGS, NULL},
77833 { (
char *)
"OperatingPoints_clear", _wrap_OperatingPoints_clear, METH_VARARGS, NULL},
77834 { (
char *)
"OperatingPoints_add", _wrap_OperatingPoints_add, METH_VARARGS, NULL},
77835 { (
char *)
"OperatingPoints_t_for_perf", _wrap_OperatingPoints_t_for_perf, METH_VARARGS, NULL},
77836 { (
char *)
"OperatingPoints_display", _wrap_OperatingPoints_display, METH_VARARGS, NULL},
77837 { (
char *)
"OperatingPoints_all_to_gnuplot", _wrap_OperatingPoints_all_to_gnuplot, METH_VARARGS, NULL},
77838 { (
char *)
"OperatingPoints_optimal_to_gnuplot", _wrap_OperatingPoints_optimal_to_gnuplot, METH_VARARGS, NULL},
77839 { (
char *)
"delete_OperatingPoints", _wrap_delete_OperatingPoints, METH_VARARGS, NULL},
77840 { (
char *)
"OperatingPoints_swigregister", OperatingPoints_swigregister, METH_VARARGS, NULL},
77841 { (
char *)
"ParameterRange_name_set", _wrap_ParameterRange_name_set, METH_VARARGS, NULL},
77842 { (
char *)
"ParameterRange_name_get", _wrap_ParameterRange_name_get, METH_VARARGS, NULL},
77843 { (
char *)
"ParameterRange_values_set", _wrap_ParameterRange_values_set, METH_VARARGS, NULL},
77844 { (
char *)
"ParameterRange_values_get", _wrap_ParameterRange_values_get, METH_VARARGS, NULL},
77845 { (
char *)
"new_ParameterRange", _wrap_new_ParameterRange, METH_VARARGS, NULL},
77846 { (
char *)
"delete_ParameterRange", _wrap_delete_ParameterRange, METH_VARARGS, NULL},
77847 { (
char *)
"ParameterRange_swigregister", ParameterRange_swigregister, METH_VARARGS, NULL},
77848 { (
char *)
"ParameterSpace_parameter_ranges_set", _wrap_ParameterSpace_parameter_ranges_set, METH_VARARGS, NULL},
77849 { (
char *)
"ParameterSpace_parameter_ranges_get", _wrap_ParameterSpace_parameter_ranges_get, METH_VARARGS, NULL},
77850 { (
char *)
"ParameterSpace_verbose_set", _wrap_ParameterSpace_verbose_set, METH_VARARGS, NULL},
77851 { (
char *)
"ParameterSpace_verbose_get", _wrap_ParameterSpace_verbose_get, METH_VARARGS, NULL},
77852 { (
char *)
"ParameterSpace_n_experiments_set", _wrap_ParameterSpace_n_experiments_set, METH_VARARGS, NULL},
77853 { (
char *)
"ParameterSpace_n_experiments_get", _wrap_ParameterSpace_n_experiments_get, METH_VARARGS, NULL},
77854 { (
char *)
"ParameterSpace_batchsize_set", _wrap_ParameterSpace_batchsize_set, METH_VARARGS, NULL},
77855 { (
char *)
"ParameterSpace_batchsize_get", _wrap_ParameterSpace_batchsize_get, METH_VARARGS, NULL},
77856 { (
char *)
"ParameterSpace_thread_over_batches_set", _wrap_ParameterSpace_thread_over_batches_set, METH_VARARGS, NULL},
77857 { (
char *)
"ParameterSpace_thread_over_batches_get", _wrap_ParameterSpace_thread_over_batches_get, METH_VARARGS, NULL},
77858 { (
char *)
"ParameterSpace_min_test_duration_set", _wrap_ParameterSpace_min_test_duration_set, METH_VARARGS, NULL},
77859 { (
char *)
"ParameterSpace_min_test_duration_get", _wrap_ParameterSpace_min_test_duration_get, METH_VARARGS, NULL},
77860 { (
char *)
"new_ParameterSpace", _wrap_new_ParameterSpace, METH_VARARGS, NULL},
77861 { (
char *)
"ParameterSpace_n_combinations", _wrap_ParameterSpace_n_combinations, METH_VARARGS, NULL},
77862 { (
char *)
"ParameterSpace_combination_ge", _wrap_ParameterSpace_combination_ge, METH_VARARGS, NULL},
77863 { (
char *)
"ParameterSpace_combination_name", _wrap_ParameterSpace_combination_name, METH_VARARGS, NULL},
77864 { (
char *)
"ParameterSpace_display", _wrap_ParameterSpace_display, METH_VARARGS, NULL},
77865 { (
char *)
"ParameterSpace_add_range", _wrap_ParameterSpace_add_range, METH_VARARGS, NULL},
77866 { (
char *)
"ParameterSpace_initialize", _wrap_ParameterSpace_initialize, METH_VARARGS, NULL},
77867 { (
char *)
"ParameterSpace_set_index_parameters", _wrap_ParameterSpace_set_index_parameters, METH_VARARGS, NULL},
77868 { (
char *)
"ParameterSpace_set_index_parameter", _wrap_ParameterSpace_set_index_parameter, METH_VARARGS, NULL},
77869 { (
char *)
"ParameterSpace_update_bounds", _wrap_ParameterSpace_update_bounds, METH_VARARGS, NULL},
77870 { (
char *)
"ParameterSpace_explore", _wrap_ParameterSpace_explore, METH_VARARGS, NULL},
77871 { (
char *)
"delete_ParameterSpace", _wrap_delete_ParameterSpace, METH_VARARGS, NULL},
77872 { (
char *)
"ParameterSpace_swigregister", ParameterSpace_swigregister, METH_VARARGS, NULL},
77873 { (
char *)
"index_factory", _wrap_index_factory, METH_VARARGS, NULL},
77874 { (
char *)
"index_binary_factory", _wrap_index_binary_factory, METH_VARARGS, NULL},
77875 { (
char *)
"swig_ptr", _wrap_swig_ptr, METH_VARARGS, NULL},
77876 { (
char *)
"rev_swig_ptr", _wrap_rev_swig_ptr, METH_VARARGS, NULL},
77877 { (
char *)
"float_minheap_array_t_nh_set", _wrap_float_minheap_array_t_nh_set, METH_VARARGS, NULL},
77878 { (
char *)
"float_minheap_array_t_nh_get", _wrap_float_minheap_array_t_nh_get, METH_VARARGS, NULL},
77879 { (
char *)
"float_minheap_array_t_k_set", _wrap_float_minheap_array_t_k_set, METH_VARARGS, NULL},
77880 { (
char *)
"float_minheap_array_t_k_get", _wrap_float_minheap_array_t_k_get, METH_VARARGS, NULL},
77881 { (
char *)
"float_minheap_array_t_ids_set", _wrap_float_minheap_array_t_ids_set, METH_VARARGS, NULL},
77882 { (
char *)
"float_minheap_array_t_ids_get", _wrap_float_minheap_array_t_ids_get, METH_VARARGS, NULL},
77883 { (
char *)
"float_minheap_array_t_val_set", _wrap_float_minheap_array_t_val_set, METH_VARARGS, NULL},
77884 { (
char *)
"float_minheap_array_t_val_get", _wrap_float_minheap_array_t_val_get, METH_VARARGS, NULL},
77885 { (
char *)
"float_minheap_array_t_get_val", _wrap_float_minheap_array_t_get_val, METH_VARARGS, NULL},
77886 { (
char *)
"float_minheap_array_t_get_ids", _wrap_float_minheap_array_t_get_ids, METH_VARARGS, NULL},
77887 { (
char *)
"float_minheap_array_t_heapify", _wrap_float_minheap_array_t_heapify, METH_VARARGS, NULL},
77888 { (
char *)
"float_minheap_array_t_addn", _wrap_float_minheap_array_t_addn, METH_VARARGS, NULL},
77889 { (
char *)
"float_minheap_array_t_addn_with_ids", _wrap_float_minheap_array_t_addn_with_ids, METH_VARARGS, NULL},
77890 { (
char *)
"float_minheap_array_t_reorder", _wrap_float_minheap_array_t_reorder, METH_VARARGS, NULL},
77891 { (
char *)
"float_minheap_array_t_per_line_extrema", _wrap_float_minheap_array_t_per_line_extrema, METH_VARARGS, NULL},
77892 { (
char *)
"new_float_minheap_array_t", _wrap_new_float_minheap_array_t, METH_VARARGS, NULL},
77893 { (
char *)
"delete_float_minheap_array_t", _wrap_delete_float_minheap_array_t, METH_VARARGS, NULL},
77894 { (
char *)
"float_minheap_array_t_swigregister", float_minheap_array_t_swigregister, METH_VARARGS, NULL},
77895 { (
char *)
"int_minheap_array_t_nh_set", _wrap_int_minheap_array_t_nh_set, METH_VARARGS, NULL},
77896 { (
char *)
"int_minheap_array_t_nh_get", _wrap_int_minheap_array_t_nh_get, METH_VARARGS, NULL},
77897 { (
char *)
"int_minheap_array_t_k_set", _wrap_int_minheap_array_t_k_set, METH_VARARGS, NULL},
77898 { (
char *)
"int_minheap_array_t_k_get", _wrap_int_minheap_array_t_k_get, METH_VARARGS, NULL},
77899 { (
char *)
"int_minheap_array_t_ids_set", _wrap_int_minheap_array_t_ids_set, METH_VARARGS, NULL},
77900 { (
char *)
"int_minheap_array_t_ids_get", _wrap_int_minheap_array_t_ids_get, METH_VARARGS, NULL},
77901 { (
char *)
"int_minheap_array_t_val_set", _wrap_int_minheap_array_t_val_set, METH_VARARGS, NULL},
77902 { (
char *)
"int_minheap_array_t_val_get", _wrap_int_minheap_array_t_val_get, METH_VARARGS, NULL},
77903 { (
char *)
"int_minheap_array_t_get_val", _wrap_int_minheap_array_t_get_val, METH_VARARGS, NULL},
77904 { (
char *)
"int_minheap_array_t_get_ids", _wrap_int_minheap_array_t_get_ids, METH_VARARGS, NULL},
77905 { (
char *)
"int_minheap_array_t_heapify", _wrap_int_minheap_array_t_heapify, METH_VARARGS, NULL},
77906 { (
char *)
"int_minheap_array_t_addn", _wrap_int_minheap_array_t_addn, METH_VARARGS, NULL},
77907 { (
char *)
"int_minheap_array_t_addn_with_ids", _wrap_int_minheap_array_t_addn_with_ids, METH_VARARGS, NULL},
77908 { (
char *)
"int_minheap_array_t_reorder", _wrap_int_minheap_array_t_reorder, METH_VARARGS, NULL},
77909 { (
char *)
"int_minheap_array_t_per_line_extrema", _wrap_int_minheap_array_t_per_line_extrema, METH_VARARGS, NULL},
77910 { (
char *)
"new_int_minheap_array_t", _wrap_new_int_minheap_array_t, METH_VARARGS, NULL},
77911 { (
char *)
"delete_int_minheap_array_t", _wrap_delete_int_minheap_array_t, METH_VARARGS, NULL},
77912 { (
char *)
"int_minheap_array_t_swigregister", int_minheap_array_t_swigregister, METH_VARARGS, NULL},
77913 { (
char *)
"float_maxheap_array_t_nh_set", _wrap_float_maxheap_array_t_nh_set, METH_VARARGS, NULL},
77914 { (
char *)
"float_maxheap_array_t_nh_get", _wrap_float_maxheap_array_t_nh_get, METH_VARARGS, NULL},
77915 { (
char *)
"float_maxheap_array_t_k_set", _wrap_float_maxheap_array_t_k_set, METH_VARARGS, NULL},
77916 { (
char *)
"float_maxheap_array_t_k_get", _wrap_float_maxheap_array_t_k_get, METH_VARARGS, NULL},
77917 { (
char *)
"float_maxheap_array_t_ids_set", _wrap_float_maxheap_array_t_ids_set, METH_VARARGS, NULL},
77918 { (
char *)
"float_maxheap_array_t_ids_get", _wrap_float_maxheap_array_t_ids_get, METH_VARARGS, NULL},
77919 { (
char *)
"float_maxheap_array_t_val_set", _wrap_float_maxheap_array_t_val_set, METH_VARARGS, NULL},
77920 { (
char *)
"float_maxheap_array_t_val_get", _wrap_float_maxheap_array_t_val_get, METH_VARARGS, NULL},
77921 { (
char *)
"float_maxheap_array_t_get_val", _wrap_float_maxheap_array_t_get_val, METH_VARARGS, NULL},
77922 { (
char *)
"float_maxheap_array_t_get_ids", _wrap_float_maxheap_array_t_get_ids, METH_VARARGS, NULL},
77923 { (
char *)
"float_maxheap_array_t_heapify", _wrap_float_maxheap_array_t_heapify, METH_VARARGS, NULL},
77924 { (
char *)
"float_maxheap_array_t_addn", _wrap_float_maxheap_array_t_addn, METH_VARARGS, NULL},
77925 { (
char *)
"float_maxheap_array_t_addn_with_ids", _wrap_float_maxheap_array_t_addn_with_ids, METH_VARARGS, NULL},
77926 { (
char *)
"float_maxheap_array_t_reorder", _wrap_float_maxheap_array_t_reorder, METH_VARARGS, NULL},
77927 { (
char *)
"float_maxheap_array_t_per_line_extrema", _wrap_float_maxheap_array_t_per_line_extrema, METH_VARARGS, NULL},
77928 { (
char *)
"new_float_maxheap_array_t", _wrap_new_float_maxheap_array_t, METH_VARARGS, NULL},
77929 { (
char *)
"delete_float_maxheap_array_t", _wrap_delete_float_maxheap_array_t, METH_VARARGS, NULL},
77930 { (
char *)
"float_maxheap_array_t_swigregister", float_maxheap_array_t_swigregister, METH_VARARGS, NULL},
77931 { (
char *)
"int_maxheap_array_t_nh_set", _wrap_int_maxheap_array_t_nh_set, METH_VARARGS, NULL},
77932 { (
char *)
"int_maxheap_array_t_nh_get", _wrap_int_maxheap_array_t_nh_get, METH_VARARGS, NULL},
77933 { (
char *)
"int_maxheap_array_t_k_set", _wrap_int_maxheap_array_t_k_set, METH_VARARGS, NULL},
77934 { (
char *)
"int_maxheap_array_t_k_get", _wrap_int_maxheap_array_t_k_get, METH_VARARGS, NULL},
77935 { (
char *)
"int_maxheap_array_t_ids_set", _wrap_int_maxheap_array_t_ids_set, METH_VARARGS, NULL},
77936 { (
char *)
"int_maxheap_array_t_ids_get", _wrap_int_maxheap_array_t_ids_get, METH_VARARGS, NULL},
77937 { (
char *)
"int_maxheap_array_t_val_set", _wrap_int_maxheap_array_t_val_set, METH_VARARGS, NULL},
77938 { (
char *)
"int_maxheap_array_t_val_get", _wrap_int_maxheap_array_t_val_get, METH_VARARGS, NULL},
77939 { (
char *)
"int_maxheap_array_t_get_val", _wrap_int_maxheap_array_t_get_val, METH_VARARGS, NULL},
77940 { (
char *)
"int_maxheap_array_t_get_ids", _wrap_int_maxheap_array_t_get_ids, METH_VARARGS, NULL},
77941 { (
char *)
"int_maxheap_array_t_heapify", _wrap_int_maxheap_array_t_heapify, METH_VARARGS, NULL},
77942 { (
char *)
"int_maxheap_array_t_addn", _wrap_int_maxheap_array_t_addn, METH_VARARGS, NULL},
77943 { (
char *)
"int_maxheap_array_t_addn_with_ids", _wrap_int_maxheap_array_t_addn_with_ids, METH_VARARGS, NULL},
77944 { (
char *)
"int_maxheap_array_t_reorder", _wrap_int_maxheap_array_t_reorder, METH_VARARGS, NULL},
77945 { (
char *)
"int_maxheap_array_t_per_line_extrema", _wrap_int_maxheap_array_t_per_line_extrema, METH_VARARGS, NULL},
77946 { (
char *)
"new_int_maxheap_array_t", _wrap_new_int_maxheap_array_t, METH_VARARGS, NULL},
77947 { (
char *)
"delete_int_maxheap_array_t", _wrap_delete_int_maxheap_array_t, METH_VARARGS, NULL},
77948 { (
char *)
"int_maxheap_array_t_swigregister", int_maxheap_array_t_swigregister, METH_VARARGS, NULL},
77949 { (
char *)
"omp_set_num_threads", _wrap_omp_set_num_threads, METH_VARARGS, NULL},
77950 { (
char *)
"omp_get_max_threads", _wrap_omp_get_max_threads, METH_VARARGS, NULL},
77951 { (
char *)
"memcpy", _wrap_memcpy, METH_VARARGS, NULL},
77952 { (
char *)
"cast_integer_to_float_ptr", _wrap_cast_integer_to_float_ptr, METH_VARARGS, NULL},
77953 { (
char *)
"cast_integer_to_long_ptr", _wrap_cast_integer_to_long_ptr, METH_VARARGS, NULL},
77954 { (
char *)
"cast_integer_to_int_ptr", _wrap_cast_integer_to_int_ptr, METH_VARARGS, NULL},
77955 { (
char *)
"RangeSearchResult_nq_set", _wrap_RangeSearchResult_nq_set, METH_VARARGS, NULL},
77956 { (
char *)
"RangeSearchResult_nq_get", _wrap_RangeSearchResult_nq_get, METH_VARARGS, NULL},
77957 { (
char *)
"RangeSearchResult_lims_set", _wrap_RangeSearchResult_lims_set, METH_VARARGS, NULL},
77958 { (
char *)
"RangeSearchResult_lims_get", _wrap_RangeSearchResult_lims_get, METH_VARARGS, NULL},
77959 { (
char *)
"RangeSearchResult_labels_set", _wrap_RangeSearchResult_labels_set, METH_VARARGS, NULL},
77960 { (
char *)
"RangeSearchResult_labels_get", _wrap_RangeSearchResult_labels_get, METH_VARARGS, NULL},
77961 { (
char *)
"RangeSearchResult_distances_set", _wrap_RangeSearchResult_distances_set, METH_VARARGS, NULL},
77962 { (
char *)
"RangeSearchResult_distances_get", _wrap_RangeSearchResult_distances_get, METH_VARARGS, NULL},
77963 { (
char *)
"RangeSearchResult_buffer_size_set", _wrap_RangeSearchResult_buffer_size_set, METH_VARARGS, NULL},
77964 { (
char *)
"RangeSearchResult_buffer_size_get", _wrap_RangeSearchResult_buffer_size_get, METH_VARARGS, NULL},
77965 { (
char *)
"new_RangeSearchResult", _wrap_new_RangeSearchResult, METH_VARARGS, NULL},
77966 { (
char *)
"RangeSearchResult_do_allocation", _wrap_RangeSearchResult_do_allocation, METH_VARARGS, NULL},
77967 { (
char *)
"delete_RangeSearchResult", _wrap_delete_RangeSearchResult, METH_VARARGS, NULL},
77968 { (
char *)
"RangeSearchResult_swigregister", RangeSearchResult_swigregister, METH_VARARGS, NULL},
77969 { (
char *)
"IDSelector_is_member", _wrap_IDSelector_is_member, METH_VARARGS, NULL},
77970 { (
char *)
"delete_IDSelector", _wrap_delete_IDSelector, METH_VARARGS, NULL},
77971 { (
char *)
"IDSelector_swigregister", IDSelector_swigregister, METH_VARARGS, NULL},
77972 { (
char *)
"IDSelectorRange_imin_set", _wrap_IDSelectorRange_imin_set, METH_VARARGS, NULL},
77973 { (
char *)
"IDSelectorRange_imin_get", _wrap_IDSelectorRange_imin_get, METH_VARARGS, NULL},
77974 { (
char *)
"IDSelectorRange_imax_set", _wrap_IDSelectorRange_imax_set, METH_VARARGS, NULL},
77975 { (
char *)
"IDSelectorRange_imax_get", _wrap_IDSelectorRange_imax_get, METH_VARARGS, NULL},
77976 { (
char *)
"new_IDSelectorRange", _wrap_new_IDSelectorRange, METH_VARARGS, NULL},
77977 { (
char *)
"IDSelectorRange_is_member", _wrap_IDSelectorRange_is_member, METH_VARARGS, NULL},
77978 { (
char *)
"delete_IDSelectorRange", _wrap_delete_IDSelectorRange, METH_VARARGS, NULL},
77979 { (
char *)
"IDSelectorRange_swigregister", IDSelectorRange_swigregister, METH_VARARGS, NULL},
77980 { (
char *)
"IDSelectorBatch_nbits_set", _wrap_IDSelectorBatch_nbits_set, METH_VARARGS, NULL},
77981 { (
char *)
"IDSelectorBatch_nbits_get", _wrap_IDSelectorBatch_nbits_get, METH_VARARGS, NULL},
77982 { (
char *)
"IDSelectorBatch_mask_set", _wrap_IDSelectorBatch_mask_set, METH_VARARGS, NULL},
77983 { (
char *)
"IDSelectorBatch_mask_get", _wrap_IDSelectorBatch_mask_get, METH_VARARGS, NULL},
77984 { (
char *)
"new_IDSelectorBatch", _wrap_new_IDSelectorBatch, METH_VARARGS, NULL},
77985 { (
char *)
"IDSelectorBatch_is_member", _wrap_IDSelectorBatch_is_member, METH_VARARGS, NULL},
77986 { (
char *)
"delete_IDSelectorBatch", _wrap_delete_IDSelectorBatch, METH_VARARGS, NULL},
77987 { (
char *)
"IDSelectorBatch_swigregister", IDSelectorBatch_swigregister, METH_VARARGS, NULL},
77988 { (
char *)
"BufferList_buffer_size_set", _wrap_BufferList_buffer_size_set, METH_VARARGS, NULL},
77989 { (
char *)
"BufferList_buffer_size_get", _wrap_BufferList_buffer_size_get, METH_VARARGS, NULL},
77990 { (
char *)
"BufferList_buffers_set", _wrap_BufferList_buffers_set, METH_VARARGS, NULL},
77991 { (
char *)
"BufferList_buffers_get", _wrap_BufferList_buffers_get, METH_VARARGS, NULL},
77992 { (
char *)
"BufferList_wp_set", _wrap_BufferList_wp_set, METH_VARARGS, NULL},
77993 { (
char *)
"BufferList_wp_get", _wrap_BufferList_wp_get, METH_VARARGS, NULL},
77994 { (
char *)
"new_BufferList", _wrap_new_BufferList, METH_VARARGS, NULL},
77995 { (
char *)
"delete_BufferList", _wrap_delete_BufferList, METH_VARARGS, NULL},
77996 { (
char *)
"BufferList_append_buffer", _wrap_BufferList_append_buffer, METH_VARARGS, NULL},
77997 { (
char *)
"BufferList_add", _wrap_BufferList_add, METH_VARARGS, NULL},
77998 { (
char *)
"BufferList_copy_range", _wrap_BufferList_copy_range, METH_VARARGS, NULL},
77999 { (
char *)
"BufferList_swigregister", BufferList_swigregister, METH_VARARGS, NULL},
78000 { (
char *)
"RangeSearchPartialResult_res_set", _wrap_RangeSearchPartialResult_res_set, METH_VARARGS, NULL},
78001 { (
char *)
"RangeSearchPartialResult_res_get", _wrap_RangeSearchPartialResult_res_get, METH_VARARGS, NULL},
78002 { (
char *)
"new_RangeSearchPartialResult", _wrap_new_RangeSearchPartialResult, METH_VARARGS, NULL},
78003 { (
char *)
"RangeSearchPartialResult_queries_set", _wrap_RangeSearchPartialResult_queries_set, METH_VARARGS, NULL},
78004 { (
char *)
"RangeSearchPartialResult_queries_get", _wrap_RangeSearchPartialResult_queries_get, METH_VARARGS, NULL},
78005 { (
char *)
"RangeSearchPartialResult_new_result", _wrap_RangeSearchPartialResult_new_result, METH_VARARGS, NULL},
78006 { (
char *)
"RangeSearchPartialResult_finalize", _wrap_RangeSearchPartialResult_finalize, METH_VARARGS, NULL},
78007 { (
char *)
"RangeSearchPartialResult_set_lims", _wrap_RangeSearchPartialResult_set_lims, METH_VARARGS, NULL},
78008 { (
char *)
"RangeSearchPartialResult_set_result", _wrap_RangeSearchPartialResult_set_result, METH_VARARGS, NULL},
78009 { (
char *)
"delete_RangeSearchPartialResult", _wrap_delete_RangeSearchPartialResult, METH_VARARGS, NULL},
78010 { (
char *)
"RangeSearchPartialResult_swigregister", RangeSearchPartialResult_swigregister, METH_VARARGS, NULL},
78011 { (
char *)
"IOReader_name_set", _wrap_IOReader_name_set, METH_VARARGS, NULL},
78012 { (
char *)
"IOReader_name_get", _wrap_IOReader_name_get, METH_VARARGS, NULL},
78013 { (
char *)
"IOReader___call__", _wrap_IOReader___call__, METH_VARARGS, NULL},
78014 { (
char *)
"IOReader_fileno", _wrap_IOReader_fileno, METH_VARARGS, NULL},
78015 { (
char *)
"delete_IOReader", _wrap_delete_IOReader, METH_VARARGS, NULL},
78016 { (
char *)
"IOReader_swigregister", IOReader_swigregister, METH_VARARGS, NULL},
78017 { (
char *)
"IOWriter_name_set", _wrap_IOWriter_name_set, METH_VARARGS, NULL},
78018 { (
char *)
"IOWriter_name_get", _wrap_IOWriter_name_get, METH_VARARGS, NULL},
78019 { (
char *)
"IOWriter___call__", _wrap_IOWriter___call__, METH_VARARGS, NULL},
78020 { (
char *)
"IOWriter_fileno", _wrap_IOWriter_fileno, METH_VARARGS, NULL},
78021 { (
char *)
"delete_IOWriter", _wrap_delete_IOWriter, METH_VARARGS, NULL},
78022 { (
char *)
"IOWriter_swigregister", IOWriter_swigregister, METH_VARARGS, NULL},
78023 { (
char *)
"VectorIOReader_data_set", _wrap_VectorIOReader_data_set, METH_VARARGS, NULL},
78024 { (
char *)
"VectorIOReader_data_get", _wrap_VectorIOReader_data_get, METH_VARARGS, NULL},
78025 { (
char *)
"VectorIOReader_rp_set", _wrap_VectorIOReader_rp_set, METH_VARARGS, NULL},
78026 { (
char *)
"VectorIOReader_rp_get", _wrap_VectorIOReader_rp_get, METH_VARARGS, NULL},
78027 { (
char *)
"VectorIOReader___call__", _wrap_VectorIOReader___call__, METH_VARARGS, NULL},
78028 { (
char *)
"new_VectorIOReader", _wrap_new_VectorIOReader, METH_VARARGS, NULL},
78029 { (
char *)
"delete_VectorIOReader", _wrap_delete_VectorIOReader, METH_VARARGS, NULL},
78030 { (
char *)
"VectorIOReader_swigregister", VectorIOReader_swigregister, METH_VARARGS, NULL},
78031 { (
char *)
"VectorIOWriter_data_set", _wrap_VectorIOWriter_data_set, METH_VARARGS, NULL},
78032 { (
char *)
"VectorIOWriter_data_get", _wrap_VectorIOWriter_data_get, METH_VARARGS, NULL},
78033 { (
char *)
"VectorIOWriter___call__", _wrap_VectorIOWriter___call__, METH_VARARGS, NULL},
78034 { (
char *)
"new_VectorIOWriter", _wrap_new_VectorIOWriter, METH_VARARGS, NULL},
78035 { (
char *)
"delete_VectorIOWriter", _wrap_delete_VectorIOWriter, METH_VARARGS, NULL},
78036 { (
char *)
"VectorIOWriter_swigregister", VectorIOWriter_swigregister, METH_VARARGS, NULL},
78037 { (
char *)
"ignore_SIGTTIN", _wrap_ignore_SIGTTIN, METH_VARARGS, NULL},
78038 { (
char *)
"MapLong2Long_map_set", _wrap_MapLong2Long_map_set, METH_VARARGS, NULL},
78039 { (
char *)
"MapLong2Long_map_get", _wrap_MapLong2Long_map_get, METH_VARARGS, NULL},
78040 { (
char *)
"MapLong2Long_add", _wrap_MapLong2Long_add, METH_VARARGS, NULL},
78041 { (
char *)
"MapLong2Long_search", _wrap_MapLong2Long_search, METH_VARARGS, NULL},
78042 { (
char *)
"MapLong2Long_search_multiple", _wrap_MapLong2Long_search_multiple, METH_VARARGS, NULL},
78043 { (
char *)
"new_MapLong2Long", _wrap_new_MapLong2Long, METH_VARARGS, NULL},
78044 { (
char *)
"delete_MapLong2Long", _wrap_delete_MapLong2Long, METH_VARARGS, NULL},
78045 { (
char *)
"MapLong2Long_swigregister", MapLong2Long_swigregister, METH_VARARGS, NULL},
78046 { NULL, NULL, 0, NULL }
78052 static void *_p_faiss__IndexHNSWFlatTo_p_faiss__IndexHNSW(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78055 static void *_p_faiss__IndexHNSWSQTo_p_faiss__IndexHNSW(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78058 static void *_p_faiss__IndexHNSWPQTo_p_faiss__IndexHNSW(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78061 static void *_p_faiss__IndexHNSW2LevelTo_p_faiss__IndexHNSW(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78064 static void *_p_faiss__IndexIDMap2To_p_faiss__IndexIDMap(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78067 static void *_p_faiss__IndexIVFPQRTo_p_faiss__IndexIVFPQ(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78070 static void *_p_faiss__RandomRotationMatrixTo_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78073 static void *_p_faiss__PCAMatrixTo_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78076 static void *_p_faiss__OPQMatrixTo_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78079 static void *_p_faiss__LinearTransformTo_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78082 static void *_p_faiss__RemapDimensionsTransformTo_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78085 static void *_p_faiss__NormalizationTransformTo_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78088 static void *_p_faiss__RandomRotationMatrixTo_p_faiss__LinearTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78091 static void *_p_faiss__PCAMatrixTo_p_faiss__LinearTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78094 static void *_p_faiss__OPQMatrixTo_p_faiss__LinearTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78097 static void *_p_p_faiss__RandomRotationMatrixTo_p_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78100 static void *_p_p_faiss__PCAMatrixTo_p_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78103 static void *_p_p_faiss__OPQMatrixTo_p_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78106 static void *_p_p_faiss__LinearTransformTo_p_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78109 static void *_p_p_faiss__RemapDimensionsTransformTo_p_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78112 static void *_p_p_faiss__NormalizationTransformTo_p_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78115 static void *_p_faiss__IndexIVFFlatDedupTo_p_faiss__IndexIVFFlat(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78118 static void *_p_faiss__IDSelectorBatchTo_p_faiss__IDSelector(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78121 static void *_p_faiss__IDSelectorRangeTo_p_faiss__IDSelector(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78124 static void *_p_faiss__RangeSearchPartialResultTo_p_faiss__BufferList(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78127 static void *_p_faiss__ReproduceDistancesObjectiveTo_p_faiss__PermutationObjective(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78130 static void *_p_faiss__IndexFlatL2To_p_faiss__IndexFlat(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78133 static void *_p_faiss__IndexFlat1DTo_p_faiss__IndexFlat(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78136 static void *_p_faiss__IndexFlatIPTo_p_faiss__IndexFlat(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78139 static void *_p_faiss__IndexFlatL2BaseShiftTo_p_faiss__IndexFlat(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78142 static void *_p_faiss__ArrayInvertedListsTo_p_faiss__InvertedLists(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78145 static void *_p_faiss__ConcatenatedInvertedListsTo_p_faiss__InvertedLists(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78148 static void *_p_faiss__OnDiskInvertedListsTo_p_faiss__InvertedLists(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78151 static void *_p_p_faiss__ArrayInvertedListsTo_p_p_faiss__InvertedLists(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78154 static void *_p_p_faiss__ConcatenatedInvertedListsTo_p_p_faiss__InvertedLists(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78157 static void *_p_p_faiss__OnDiskInvertedListsTo_p_p_faiss__InvertedLists(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78160 static void *_p_faiss__VectorIOReaderTo_p_faiss__IOReader(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78163 static void *_p_faiss__IndexFlat1DTo_p_faiss__IndexFlatL2(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78166 static void *_p_faiss__IndexFlatL2BaseShiftTo_p_faiss__IndexFlatL2(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78169 static void *_p_faiss__IndexIVFScalarQuantizerTo_p_faiss__IndexIVF(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78172 static void *_p_faiss__IndexIVFPQTo_p_faiss__IndexIVF(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78175 static void *_p_faiss__IndexIVFFlatTo_p_faiss__IndexIVF(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78178 static void *_p_faiss__IndexIVFFlatDedupTo_p_faiss__IndexIVF(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78181 static void *_p_faiss__IndexIVFPQRTo_p_faiss__IndexIVF(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78184 static void *_p_faiss__PolysemousTrainingTo_p_faiss__SimulatedAnnealingParameters(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78187 static void *_p_faiss__SimulatedAnnealingOptimizerTo_p_faiss__SimulatedAnnealingParameters(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78190 static void *_p_faiss__ClusteringTo_p_faiss__ClusteringParameters(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78193 static void *_p_faiss__IVFPQSearchParametersTo_p_faiss__IVFSearchParameters(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78196 static void *_p_p_faiss__IndexPreTransformTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78199 static void *_p_p_faiss__IndexIVFTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78202 static void *_p_p_faiss__IndexFlatL2To_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78205 static void *_p_p_faiss__IndexHNSWFlatTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78208 static void *_p_p_faiss__Index2LayerTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78211 static void *_p_p_faiss__IndexFlatIPTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78214 static void *_p_p_faiss__IndexHNSWTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78217 static void *_p_p_faiss__IndexHNSWPQTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78220 static void *_p_p_faiss__IndexIVFFlatTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78223 static void *_p_p_faiss__IndexLSHTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78226 static void *_p_p_faiss__IndexFlatTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78229 static void *_p_p_faiss__IndexIVFFlatDedupTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78232 static void *_p_p_faiss__IndexIVFPQRTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78235 static void *_p_p_faiss__IndexFlat1DTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78238 static void *_p_p_faiss__IndexFlatL2BaseShiftTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78241 static void *_p_p_faiss__IndexShardsTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78244 static void *_p_p_faiss__IndexHNSW2LevelTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78247 static void *_p_p_faiss__IndexIDMap2To_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78250 static void *_p_p_faiss__IndexSplitVectorsTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78253 static void *_p_p_faiss__IndexRefineFlatTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78256 static void *_p_p_faiss__IndexHNSWSQTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78259 static void *_p_p_faiss__MultiIndexQuantizer2To_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78262 static void *_p_p_faiss__IndexPQTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78265 static void *_p_p_faiss__IndexIDMapTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78268 static void *_p_p_faiss__IndexIVFPQTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78271 static void *_p_p_faiss__IndexIVFScalarQuantizerTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78274 static void *_p_p_faiss__IndexScalarQuantizerTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78277 static void *_p_p_faiss__MultiIndexQuantizerTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78280 static void *_p_faiss__IndexPreTransformTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78283 static void *_p_faiss__IndexIVFTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78286 static void *_p_faiss__IndexFlatL2To_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78289 static void *_p_faiss__IndexHNSWFlatTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78292 static void *_p_faiss__Index2LayerTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78295 static void *_p_faiss__IndexFlatIPTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78298 static void *_p_faiss__IndexHNSWTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78301 static void *_p_faiss__IndexHNSWPQTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78304 static void *_p_faiss__IndexIVFFlatTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78307 static void *_p_faiss__IndexLSHTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78310 static void *_p_faiss__IndexFlatTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78313 static void *_p_faiss__IndexIVFFlatDedupTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78316 static void *_p_faiss__IndexIVFPQRTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78319 static void *_p_faiss__IndexFlat1DTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78322 static void *_p_faiss__IndexFlatL2BaseShiftTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78325 static void *_p_faiss__IndexShardsTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78328 static void *_p_faiss__IndexHNSW2LevelTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78331 static void *_p_faiss__IndexIDMap2To_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78334 static void *_p_faiss__IndexSplitVectorsTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78337 static void *_p_faiss__IndexRefineFlatTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78340 static void *_p_faiss__IndexHNSWSQTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78343 static void *_p_faiss__MultiIndexQuantizer2To_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78346 static void *_p_faiss__IndexPQTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78349 static void *_p_faiss__IndexIDMapTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78352 static void *_p_faiss__IndexIVFPQTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78355 static void *_p_faiss__IndexIVFScalarQuantizerTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78358 static void *_p_faiss__IndexScalarQuantizerTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78361 static void *_p_faiss__MultiIndexQuantizerTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78364 static void *_p_faiss__IndexBinaryFlatTo_p_faiss__IndexBinary(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78367 static void *_p_faiss__IndexBinaryHNSWTo_p_faiss__IndexBinary(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78370 static void *_p_faiss__IndexBinaryIVFTo_p_faiss__IndexBinary(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78373 static void *_p_faiss__IndexBinaryFromFloatTo_p_faiss__IndexBinary(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78376 static void *_p_faiss__MultiIndexQuantizer2To_p_faiss__MultiIndexQuantizer(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78379 static void *_p_faiss__IndexIVFTo_p_faiss__Level1Quantizer(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78382 static void *_p_faiss__IndexIVFScalarQuantizerTo_p_faiss__Level1Quantizer(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78385 static void *_p_faiss__IndexIVFPQTo_p_faiss__Level1Quantizer(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78388 static void *_p_faiss__IndexIVFFlatTo_p_faiss__Level1Quantizer(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78391 static void *_p_faiss__IndexIVFFlatDedupTo_p_faiss__Level1Quantizer(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78394 static void *_p_faiss__IndexIVFPQRTo_p_faiss__Level1Quantizer(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78397 static void *_p_faiss__OneRecallAtRCriterionTo_p_faiss__AutoTuneCriterion(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78400 static void *_p_faiss__IntersectionCriterionTo_p_faiss__AutoTuneCriterion(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78403 static void *_p_faiss__VectorIOWriterTo_p_faiss__IOWriter(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
78406 static swig_type_info _swigt__p_Crev = {
"_p_Crev",
"Crev *", 0, 0, (
void*)0, 0};
78407 static swig_type_info _swigt__p_FILE = {
"_p_FILE",
"FILE *", 0, 0, (
void*)0, 0};
78408 static swig_type_info _swigt__p_MapLong2Long = {
"_p_MapLong2Long",
"MapLong2Long *", 0, 0, (
void*)0, 0};
78409 static swig_type_info _swigt__p_Node = {
"_p_Node",
"Node *", 0, 0, (
void*)0, 0};
78410 static swig_type_info _swigt__p_T = {
"_p_T",
"T *", 0, 0, (
void*)0, 0};
78411 static swig_type_info _swigt__p_TI = {
"_p_TI",
"TI *", 0, 0, (
void*)0, 0};
78412 static swig_type_info _swigt__p_char = {
"_p_char",
"char *", 0, 0, (
void*)0, 0};
78413 static swig_type_info _swigt__p_double = {
"_p_double",
"double *", 0, 0, (
void*)0, 0};
78414 static swig_type_info _swigt__p_faiss__ArrayInvertedLists = {
"_p_faiss__ArrayInvertedLists",
"faiss::ArrayInvertedLists *", 0, 0, (
void*)0, 0};
78415 static swig_type_info _swigt__p_faiss__AutoTuneCriterion = {
"_p_faiss__AutoTuneCriterion",
"faiss::AutoTuneCriterion *", 0, 0, (
void*)0, 0};
78416 static swig_type_info _swigt__p_faiss__BinaryInvertedListScanner = {
"_p_faiss__BinaryInvertedListScanner",
"faiss::BinaryInvertedListScanner *", 0, 0, (
void*)0, 0};
78417 static swig_type_info _swigt__p_faiss__BufferList = {
"_p_faiss__BufferList",
"faiss::BufferList *", 0, 0, (
void*)0, 0};
78418 static swig_type_info _swigt__p_faiss__Cloner = {
"_p_faiss__Cloner",
"faiss::Cloner *", 0, 0, (
void*)0, 0};
78419 static swig_type_info _swigt__p_faiss__Clustering = {
"_p_faiss__Clustering",
"faiss::Clustering *", 0, 0, (
void*)0, 0};
78420 static swig_type_info _swigt__p_faiss__ClusteringParameters = {
"_p_faiss__ClusteringParameters",
"faiss::ClusteringParameters *", 0, 0, (
void*)0, 0};
78421 static swig_type_info _swigt__p_faiss__ConcatenatedInvertedLists = {
"_p_faiss__ConcatenatedInvertedLists",
"faiss::ConcatenatedInvertedLists *", 0, 0, (
void*)0, 0};
78422 static swig_type_info _swigt__p_faiss__GenHammingComputer16 = {
"_p_faiss__GenHammingComputer16",
"faiss::GenHammingComputer16 *", 0, 0, (
void*)0, 0};
78423 static swig_type_info _swigt__p_faiss__GenHammingComputer32 = {
"_p_faiss__GenHammingComputer32",
"faiss::GenHammingComputer32 *", 0, 0, (
void*)0, 0};
78424 static swig_type_info _swigt__p_faiss__GenHammingComputer8 = {
"_p_faiss__GenHammingComputer8",
"faiss::GenHammingComputer8 *", 0, 0, (
void*)0, 0};
78425 static swig_type_info _swigt__p_faiss__GenHammingComputerM8 = {
"_p_faiss__GenHammingComputerM8",
"faiss::GenHammingComputerM8 *", 0, 0, (
void*)0, 0};
78426 static swig_type_info _swigt__p_faiss__HNSW = {
"_p_faiss__HNSW",
"faiss::HNSW *", 0, 0, (
void*)0, 0};
78427 static swig_type_info _swigt__p_faiss__HNSWStats = {
"_p_faiss__HNSWStats",
"faiss::HNSWStats *", 0, 0, (
void*)0, 0};
78428 static swig_type_info _swigt__p_faiss__HNSW__DistanceComputer = {
"_p_faiss__HNSW__DistanceComputer",
"faiss::HNSW::DistanceComputer *", 0, 0, (
void*)0, 0};
78429 static swig_type_info _swigt__p_faiss__HNSW__MinimaxHeap = {
"_p_faiss__HNSW__MinimaxHeap",
"faiss::HNSW::MinimaxHeap *", 0, 0, (
void*)0, 0};
78430 static swig_type_info _swigt__p_faiss__HammingComputer16 = {
"_p_faiss__HammingComputer16",
"faiss::HammingComputer16 *", 0, 0, (
void*)0, 0};
78431 static swig_type_info _swigt__p_faiss__HammingComputer20 = {
"_p_faiss__HammingComputer20",
"faiss::HammingComputer20 *", 0, 0, (
void*)0, 0};
78432 static swig_type_info _swigt__p_faiss__HammingComputer32 = {
"_p_faiss__HammingComputer32",
"faiss::HammingComputer32 *", 0, 0, (
void*)0, 0};
78433 static swig_type_info _swigt__p_faiss__HammingComputer4 = {
"_p_faiss__HammingComputer4",
"faiss::HammingComputer4 *", 0, 0, (
void*)0, 0};
78434 static swig_type_info _swigt__p_faiss__HammingComputer64 = {
"_p_faiss__HammingComputer64",
"faiss::HammingComputer64 *", 0, 0, (
void*)0, 0};
78435 static swig_type_info _swigt__p_faiss__HammingComputer8 = {
"_p_faiss__HammingComputer8",
"faiss::HammingComputer8 *", 0, 0, (
void*)0, 0};
78436 static swig_type_info _swigt__p_faiss__HammingComputerDefault = {
"_p_faiss__HammingComputerDefault",
"faiss::HammingComputerDefault *", 0, 0, (
void*)0, 0};
78437 static swig_type_info _swigt__p_faiss__HammingComputerM4 = {
"_p_faiss__HammingComputerM4",
"faiss::HammingComputerM4 *", 0, 0, (
void*)0, 0};
78438 static swig_type_info _swigt__p_faiss__HammingComputerM8 = {
"_p_faiss__HammingComputerM8",
"faiss::HammingComputerM8 *", 0, 0, (
void*)0, 0};
78439 static swig_type_info _swigt__p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t = {
"_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t",
"faiss::HeapArray< faiss::CMax< float,long > > *|faiss::float_maxheap_array_t *", 0, 0, (
void*)0, 0};
78440 static swig_type_info _swigt__p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t = {
"_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t",
"faiss::HeapArray< faiss::CMax< int,long > > *|faiss::int_maxheap_array_t *", 0, 0, (
void*)0, 0};
78441 static swig_type_info _swigt__p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t = {
"_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t",
"faiss::HeapArray< faiss::CMin< float,long > > *|faiss::float_minheap_array_t *", 0, 0, (
void*)0, 0};
78442 static swig_type_info _swigt__p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t = {
"_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t",
"faiss::HeapArray< faiss::CMin< int,long > > *|faiss::int_minheap_array_t *", 0, 0, (
void*)0, 0};
78443 static swig_type_info _swigt__p_faiss__IDSelector = {
"_p_faiss__IDSelector",
"faiss::IDSelector *", 0, 0, (
void*)0, 0};
78444 static swig_type_info _swigt__p_faiss__IDSelectorBatch = {
"_p_faiss__IDSelectorBatch",
"faiss::IDSelectorBatch *", 0, 0, (
void*)0, 0};
78445 static swig_type_info _swigt__p_faiss__IDSelectorRange = {
"_p_faiss__IDSelectorRange",
"faiss::IDSelectorRange *", 0, 0, (
void*)0, 0};
78446 static swig_type_info _swigt__p_faiss__IOReader = {
"_p_faiss__IOReader",
"faiss::IOReader *", 0, 0, (
void*)0, 0};
78447 static swig_type_info _swigt__p_faiss__IOWriter = {
"_p_faiss__IOWriter",
"faiss::IOWriter *", 0, 0, (
void*)0, 0};
78448 static swig_type_info _swigt__p_faiss__IVFPQSearchParameters = {
"_p_faiss__IVFPQSearchParameters",
"faiss::IVFPQSearchParameters *", 0, 0, (
void*)0, 0};
78449 static swig_type_info _swigt__p_faiss__IVFSearchParameters = {
"_p_faiss__IVFSearchParameters",
"faiss::IVFSearchParameters *", 0, 0, (
void*)0, 0};
78450 static swig_type_info _swigt__p_faiss__Index = {
"_p_faiss__Index",
"faiss::Index *", 0, 0, (
void*)0, 0};
78451 static swig_type_info _swigt__p_faiss__Index2Layer = {
"_p_faiss__Index2Layer",
"faiss::Index2Layer *", 0, 0, (
void*)0, 0};
78452 static swig_type_info _swigt__p_faiss__IndexBinary = {
"_p_faiss__IndexBinary",
"faiss::IndexBinary *", 0, 0, (
void*)0, 0};
78453 static swig_type_info _swigt__p_faiss__IndexBinaryFlat = {
"_p_faiss__IndexBinaryFlat",
"faiss::IndexBinaryFlat *", 0, 0, (
void*)0, 0};
78454 static swig_type_info _swigt__p_faiss__IndexBinaryFromFloat = {
"_p_faiss__IndexBinaryFromFloat",
"faiss::IndexBinaryFromFloat *", 0, 0, (
void*)0, 0};
78455 static swig_type_info _swigt__p_faiss__IndexBinaryHNSW = {
"_p_faiss__IndexBinaryHNSW",
"faiss::IndexBinaryHNSW *", 0, 0, (
void*)0, 0};
78456 static swig_type_info _swigt__p_faiss__IndexBinaryIVF = {
"_p_faiss__IndexBinaryIVF",
"faiss::IndexBinaryIVF *", 0, 0, (
void*)0, 0};
78457 static swig_type_info _swigt__p_faiss__IndexFlat = {
"_p_faiss__IndexFlat",
"faiss::IndexFlat *", 0, 0, (
void*)0, 0};
78458 static swig_type_info _swigt__p_faiss__IndexFlat1D = {
"_p_faiss__IndexFlat1D",
"faiss::IndexFlat1D *", 0, 0, (
void*)0, 0};
78459 static swig_type_info _swigt__p_faiss__IndexFlatIP = {
"_p_faiss__IndexFlatIP",
"faiss::IndexFlatIP *", 0, 0, (
void*)0, 0};
78460 static swig_type_info _swigt__p_faiss__IndexFlatL2 = {
"_p_faiss__IndexFlatL2",
"faiss::IndexFlatL2 *", 0, 0, (
void*)0, 0};
78461 static swig_type_info _swigt__p_faiss__IndexFlatL2BaseShift = {
"_p_faiss__IndexFlatL2BaseShift",
"faiss::IndexFlatL2BaseShift *", 0, 0, (
void*)0, 0};
78462 static swig_type_info _swigt__p_faiss__IndexHNSW = {
"_p_faiss__IndexHNSW",
"faiss::IndexHNSW *", 0, 0, (
void*)0, 0};
78463 static swig_type_info _swigt__p_faiss__IndexHNSW2Level = {
"_p_faiss__IndexHNSW2Level",
"faiss::IndexHNSW2Level *", 0, 0, (
void*)0, 0};
78464 static swig_type_info _swigt__p_faiss__IndexHNSWFlat = {
"_p_faiss__IndexHNSWFlat",
"faiss::IndexHNSWFlat *", 0, 0, (
void*)0, 0};
78465 static swig_type_info _swigt__p_faiss__IndexHNSWPQ = {
"_p_faiss__IndexHNSWPQ",
"faiss::IndexHNSWPQ *", 0, 0, (
void*)0, 0};
78466 static swig_type_info _swigt__p_faiss__IndexHNSWSQ = {
"_p_faiss__IndexHNSWSQ",
"faiss::IndexHNSWSQ *", 0, 0, (
void*)0, 0};
78467 static swig_type_info _swigt__p_faiss__IndexIDMap = {
"_p_faiss__IndexIDMap",
"faiss::IndexIDMap *", 0, 0, (
void*)0, 0};
78468 static swig_type_info _swigt__p_faiss__IndexIDMap2 = {
"_p_faiss__IndexIDMap2",
"faiss::IndexIDMap2 *", 0, 0, (
void*)0, 0};
78469 static swig_type_info _swigt__p_faiss__IndexIVF = {
"_p_faiss__IndexIVF",
"faiss::IndexIVF *", 0, 0, (
void*)0, 0};
78470 static swig_type_info _swigt__p_faiss__IndexIVFFlat = {
"_p_faiss__IndexIVFFlat",
"faiss::IndexIVFFlat *", 0, 0, (
void*)0, 0};
78471 static swig_type_info _swigt__p_faiss__IndexIVFFlatDedup = {
"_p_faiss__IndexIVFFlatDedup",
"faiss::IndexIVFFlatDedup *", 0, 0, (
void*)0, 0};
78472 static swig_type_info _swigt__p_faiss__IndexIVFPQ = {
"_p_faiss__IndexIVFPQ",
"faiss::IndexIVFPQ *", 0, 0, (
void*)0, 0};
78473 static swig_type_info _swigt__p_faiss__IndexIVFPQR = {
"_p_faiss__IndexIVFPQR",
"faiss::IndexIVFPQR *", 0, 0, (
void*)0, 0};
78474 static swig_type_info _swigt__p_faiss__IndexIVFPQStats = {
"_p_faiss__IndexIVFPQStats",
"faiss::IndexIVFPQStats *", 0, 0, (
void*)0, 0};
78475 static swig_type_info _swigt__p_faiss__IndexIVFScalarQuantizer = {
"_p_faiss__IndexIVFScalarQuantizer",
"faiss::IndexIVFScalarQuantizer *", 0, 0, (
void*)0, 0};
78476 static swig_type_info _swigt__p_faiss__IndexIVFStats = {
"_p_faiss__IndexIVFStats",
"faiss::IndexIVFStats *", 0, 0, (
void*)0, 0};
78477 static swig_type_info _swigt__p_faiss__IndexLSH = {
"_p_faiss__IndexLSH",
"faiss::IndexLSH *", 0, 0, (
void*)0, 0};
78478 static swig_type_info _swigt__p_faiss__IndexPQ = {
"_p_faiss__IndexPQ",
"faiss::IndexPQ *", 0, 0, (
void*)0, 0};
78479 static swig_type_info _swigt__p_faiss__IndexPQStats = {
"_p_faiss__IndexPQStats",
"faiss::IndexPQStats *", 0, 0, (
void*)0, 0};
78480 static swig_type_info _swigt__p_faiss__IndexPreTransform = {
"_p_faiss__IndexPreTransform",
"faiss::IndexPreTransform *", 0, 0, (
void*)0, 0};
78481 static swig_type_info _swigt__p_faiss__IndexRefineFlat = {
"_p_faiss__IndexRefineFlat",
"faiss::IndexRefineFlat *", 0, 0, (
void*)0, 0};
78482 static swig_type_info _swigt__p_faiss__IndexScalarQuantizer = {
"_p_faiss__IndexScalarQuantizer",
"faiss::IndexScalarQuantizer *", 0, 0, (
void*)0, 0};
78483 static swig_type_info _swigt__p_faiss__IndexShards = {
"_p_faiss__IndexShards",
"faiss::IndexShards *", 0, 0, (
void*)0, 0};
78484 static swig_type_info _swigt__p_faiss__IndexSplitVectors = {
"_p_faiss__IndexSplitVectors",
"faiss::IndexSplitVectors *", 0, 0, (
void*)0, 0};
78485 static swig_type_info _swigt__p_faiss__IntersectionCriterion = {
"_p_faiss__IntersectionCriterion",
"faiss::IntersectionCriterion *", 0, 0, (
void*)0, 0};
78486 static swig_type_info _swigt__p_faiss__InvertedListScanner = {
"_p_faiss__InvertedListScanner",
"faiss::InvertedListScanner *", 0, 0, (
void*)0, 0};
78487 static swig_type_info _swigt__p_faiss__InvertedLists = {
"_p_faiss__InvertedLists",
"faiss::InvertedLists *", 0, 0, (
void*)0, 0};
78488 static swig_type_info _swigt__p_faiss__Level1Quantizer = {
"_p_faiss__Level1Quantizer",
"faiss::Level1Quantizer *", 0, 0, (
void*)0, 0};
78489 static swig_type_info _swigt__p_faiss__LinearTransform = {
"_p_faiss__LinearTransform",
"faiss::LinearTransform *", 0, 0, (
void*)0, 0};
78490 static swig_type_info _swigt__p_faiss__LockLevels = {
"_p_faiss__LockLevels",
"faiss::LockLevels *", 0, 0, (
void*)0, 0};
78491 static swig_type_info _swigt__p_faiss__MultiIndexQuantizer = {
"_p_faiss__MultiIndexQuantizer",
"faiss::MultiIndexQuantizer *", 0, 0, (
void*)0, 0};
78492 static swig_type_info _swigt__p_faiss__MultiIndexQuantizer2 = {
"_p_faiss__MultiIndexQuantizer2",
"faiss::MultiIndexQuantizer2 *", 0, 0, (
void*)0, 0};
78493 static swig_type_info _swigt__p_faiss__NormalizationTransform = {
"_p_faiss__NormalizationTransform",
"faiss::NormalizationTransform *", 0, 0, (
void*)0, 0};
78494 static swig_type_info _swigt__p_faiss__OPQMatrix = {
"_p_faiss__OPQMatrix",
"faiss::OPQMatrix *", 0, 0, (
void*)0, 0};
78495 static swig_type_info _swigt__p_faiss__OnDiskInvertedLists = {
"_p_faiss__OnDiskInvertedLists",
"faiss::OnDiskInvertedLists *", 0, 0, (
void*)0, 0};
78496 static swig_type_info _swigt__p_faiss__OnDiskInvertedLists__OngoingPrefetch = {
"_p_faiss__OnDiskInvertedLists__OngoingPrefetch",
"faiss::OnDiskInvertedLists::OngoingPrefetch *", 0, 0, (
void*)0, 0};
78497 static swig_type_info _swigt__p_faiss__OneRecallAtRCriterion = {
"_p_faiss__OneRecallAtRCriterion",
"faiss::OneRecallAtRCriterion *", 0, 0, (
void*)0, 0};
78498 static swig_type_info _swigt__p_faiss__OperatingPoint = {
"_p_faiss__OperatingPoint",
"faiss::OperatingPoint *", 0, 0, (
void*)0, 0};
78499 static swig_type_info _swigt__p_faiss__OperatingPoints = {
"_p_faiss__OperatingPoints",
"faiss::OperatingPoints *", 0, 0, (
void*)0, 0};
78500 static swig_type_info _swigt__p_faiss__PCAMatrix = {
"_p_faiss__PCAMatrix",
"faiss::PCAMatrix *", 0, 0, (
void*)0, 0};
78501 static swig_type_info _swigt__p_faiss__ParameterRange = {
"_p_faiss__ParameterRange",
"faiss::ParameterRange *", 0, 0, (
void*)0, 0};
78502 static swig_type_info _swigt__p_faiss__ParameterSpace = {
"_p_faiss__ParameterSpace",
"faiss::ParameterSpace *", 0, 0, (
void*)0, 0};
78503 static swig_type_info _swigt__p_faiss__PermutationObjective = {
"_p_faiss__PermutationObjective",
"faiss::PermutationObjective *", 0, 0, (
void*)0, 0};
78504 static swig_type_info _swigt__p_faiss__PolysemousTraining = {
"_p_faiss__PolysemousTraining",
"faiss::PolysemousTraining *", 0, 0, (
void*)0, 0};
78505 static swig_type_info _swigt__p_faiss__ProductQuantizer = {
"_p_faiss__ProductQuantizer",
"faiss::ProductQuantizer *", 0, 0, (
void*)0, 0};
78506 static swig_type_info _swigt__p_faiss__RandomGenerator = {
"_p_faiss__RandomGenerator",
"faiss::RandomGenerator *", 0, 0, (
void*)0, 0};
78507 static swig_type_info _swigt__p_faiss__RandomRotationMatrix = {
"_p_faiss__RandomRotationMatrix",
"faiss::RandomRotationMatrix *", 0, 0, (
void*)0, 0};
78508 static swig_type_info _swigt__p_faiss__RangeSearchPartialResult = {
"_p_faiss__RangeSearchPartialResult",
"faiss::RangeSearchPartialResult *", 0, 0, (
void*)0, 0};
78509 static swig_type_info _swigt__p_faiss__RangeSearchPartialResult__QueryResult = {
"_p_faiss__RangeSearchPartialResult__QueryResult",
"faiss::RangeSearchPartialResult::QueryResult *", 0, 0, (
void*)0, 0};
78510 static swig_type_info _swigt__p_faiss__RangeSearchResult = {
"_p_faiss__RangeSearchResult",
"faiss::RangeSearchResult *", 0, 0, (
void*)0, 0};
78511 static swig_type_info _swigt__p_faiss__ReconstructFromNeighbors = {
"_p_faiss__ReconstructFromNeighbors",
"faiss::ReconstructFromNeighbors *", 0, 0, (
void*)0, 0};
78512 static swig_type_info _swigt__p_faiss__RemapDimensionsTransform = {
"_p_faiss__RemapDimensionsTransform",
"faiss::RemapDimensionsTransform *", 0, 0, (
void*)0, 0};
78513 static swig_type_info _swigt__p_faiss__ReproduceDistancesObjective = {
"_p_faiss__ReproduceDistancesObjective",
"faiss::ReproduceDistancesObjective *", 0, 0, (
void*)0, 0};
78514 static swig_type_info _swigt__p_faiss__ScalarQuantizer = {
"_p_faiss__ScalarQuantizer",
"faiss::ScalarQuantizer *", 0, 0, (
void*)0, 0};
78515 static swig_type_info _swigt__p_faiss__ScalarQuantizer__DistanceComputer = {
"_p_faiss__ScalarQuantizer__DistanceComputer",
"faiss::ScalarQuantizer::DistanceComputer *", 0, 0, (
void*)0, 0};
78516 static swig_type_info _swigt__p_faiss__SimulatedAnnealingOptimizer = {
"_p_faiss__SimulatedAnnealingOptimizer",
"faiss::SimulatedAnnealingOptimizer *", 0, 0, (
void*)0, 0};
78517 static swig_type_info _swigt__p_faiss__SimulatedAnnealingParameters = {
"_p_faiss__SimulatedAnnealingParameters",
"faiss::SimulatedAnnealingParameters *", 0, 0, (
void*)0, 0};
78518 static swig_type_info _swigt__p_faiss__VectorIOReader = {
"_p_faiss__VectorIOReader",
"faiss::VectorIOReader *", 0, 0, (
void*)0, 0};
78519 static swig_type_info _swigt__p_faiss__VectorIOWriter = {
"_p_faiss__VectorIOWriter",
"faiss::VectorIOWriter *", 0, 0, (
void*)0, 0};
78520 static swig_type_info _swigt__p_faiss__VectorTransform = {
"_p_faiss__VectorTransform",
"faiss::VectorTransform *", 0, 0, (
void*)0, 0};
78521 static swig_type_info _swigt__p_faiss__VisitedTable = {
"_p_faiss__VisitedTable",
"faiss::VisitedTable *", 0, 0, (
void*)0, 0};
78522 static swig_type_info _swigt__p_faiss__ivflib__SlidingIndexWindow = {
"_p_faiss__ivflib__SlidingIndexWindow",
"faiss::ivflib::SlidingIndexWindow *", 0, 0, (
void*)0, 0};
78523 static swig_type_info _swigt__p_float = {
"_p_float",
"float *|faiss::HeapArray< faiss::CMin< float,long > >::T *|faiss::HeapArray< faiss::CMax< float,long > >::T *", 0, 0, (
void*)0, 0};
78524 static swig_type_info _swigt__p_idx_t = {
"_p_idx_t",
"idx_t *", 0, 0, (
void*)0, 0};
78525 static swig_type_info _swigt__p_int = {
"_p_int",
"int *|int32_t *|hamdis_t *|faiss::HeapArray< faiss::CMin< int,long > >::T *|faiss::HeapArray< faiss::CMax< int,long > >::T *|faiss::IndexHNSW::storage_idx_t *", 0, 0, (
void*)0, 0};
78526 static swig_type_info _swigt__p_long = {
"_p_long",
"faiss::HeapArray< faiss::CMax< float,long > >::TI *|faiss::HeapArray< faiss::CMin< float,long > >::TI *|faiss::BufferList::idx_t *|faiss::IDSelector::idx_t *|faiss::RangeSearchResult::idx_t *|faiss::Index::idx_t *|faiss::InvertedLists::idx_t *|faiss::ivflib::idx_t *|faiss::HNSW::idx_t *|faiss::ReconstructFromNeighbors::idx_t *|faiss::IndexBinary::idx_t *|faiss::AutoTuneCriterion::idx_t *|faiss::HeapArray< faiss::CMin< int,long > >::TI *|faiss::HeapArray< faiss::CMax< int,long > >::TI *|long *", 0, 0, (
void*)0, 0};
78527 static swig_type_info _swigt__p_omp_lock_t = {
"_p_omp_lock_t",
"omp_lock_t *", 0, 0, (
void*)0, 0};
78528 static swig_type_info _swigt__p_p_faiss__Index = {
"_p_p_faiss__Index",
"faiss::Index **", 0, 0, (
void*)0, 0};
78529 static swig_type_info _swigt__p_p_faiss__IndexPreTransform = {
"_p_p_faiss__IndexPreTransform", 0, 0, 0, 0, 0};
78530 static swig_type_info _swigt__p_p_faiss__IndexIVF = {
"_p_p_faiss__IndexIVF", 0, 0, 0, 0, 0};
78531 static swig_type_info _swigt__p_p_faiss__IndexFlatL2 = {
"_p_p_faiss__IndexFlatL2", 0, 0, 0, 0, 0};
78532 static swig_type_info _swigt__p_p_faiss__IndexHNSWFlat = {
"_p_p_faiss__IndexHNSWFlat", 0, 0, 0, 0, 0};
78533 static swig_type_info _swigt__p_p_faiss__Index2Layer = {
"_p_p_faiss__Index2Layer", 0, 0, 0, 0, 0};
78534 static swig_type_info _swigt__p_p_faiss__IndexHNSWPQ = {
"_p_p_faiss__IndexHNSWPQ", 0, 0, 0, 0, 0};
78535 static swig_type_info _swigt__p_p_faiss__IndexFlatIP = {
"_p_p_faiss__IndexFlatIP", 0, 0, 0, 0, 0};
78536 static swig_type_info _swigt__p_p_faiss__IndexHNSW = {
"_p_p_faiss__IndexHNSW", 0, 0, 0, 0, 0};
78537 static swig_type_info _swigt__p_p_faiss__IndexIVFFlat = {
"_p_p_faiss__IndexIVFFlat", 0, 0, 0, 0, 0};
78538 static swig_type_info _swigt__p_p_faiss__IndexLSH = {
"_p_p_faiss__IndexLSH", 0, 0, 0, 0, 0};
78539 static swig_type_info _swigt__p_p_faiss__IndexIVFPQR = {
"_p_p_faiss__IndexIVFPQR", 0, 0, 0, 0, 0};
78540 static swig_type_info _swigt__p_p_faiss__IndexIVFFlatDedup = {
"_p_p_faiss__IndexIVFFlatDedup", 0, 0, 0, 0, 0};
78541 static swig_type_info _swigt__p_p_faiss__IndexFlat = {
"_p_p_faiss__IndexFlat", 0, 0, 0, 0, 0};
78542 static swig_type_info _swigt__p_p_faiss__IndexFlat1D = {
"_p_p_faiss__IndexFlat1D", 0, 0, 0, 0, 0};
78543 static swig_type_info _swigt__p_p_faiss__IndexFlatL2BaseShift = {
"_p_p_faiss__IndexFlatL2BaseShift", 0, 0, 0, 0, 0};
78544 static swig_type_info _swigt__p_p_faiss__IndexShards = {
"_p_p_faiss__IndexShards", 0, 0, 0, 0, 0};
78545 static swig_type_info _swigt__p_p_faiss__IndexHNSW2Level = {
"_p_p_faiss__IndexHNSW2Level", 0, 0, 0, 0, 0};
78546 static swig_type_info _swigt__p_p_faiss__IndexIDMap2 = {
"_p_p_faiss__IndexIDMap2", 0, 0, 0, 0, 0};
78547 static swig_type_info _swigt__p_p_faiss__IndexSplitVectors = {
"_p_p_faiss__IndexSplitVectors", 0, 0, 0, 0, 0};
78548 static swig_type_info _swigt__p_p_faiss__IndexRefineFlat = {
"_p_p_faiss__IndexRefineFlat", 0, 0, 0, 0, 0};
78549 static swig_type_info _swigt__p_p_faiss__IndexHNSWSQ = {
"_p_p_faiss__IndexHNSWSQ", 0, 0, 0, 0, 0};
78550 static swig_type_info _swigt__p_p_faiss__MultiIndexQuantizer2 = {
"_p_p_faiss__MultiIndexQuantizer2", 0, 0, 0, 0, 0};
78551 static swig_type_info _swigt__p_p_faiss__IndexPQ = {
"_p_p_faiss__IndexPQ", 0, 0, 0, 0, 0};
78552 static swig_type_info _swigt__p_p_faiss__IndexIDMap = {
"_p_p_faiss__IndexIDMap", 0, 0, 0, 0, 0};
78553 static swig_type_info _swigt__p_p_faiss__IndexIVFPQ = {
"_p_p_faiss__IndexIVFPQ", 0, 0, 0, 0, 0};
78554 static swig_type_info _swigt__p_p_faiss__IndexIVFScalarQuantizer = {
"_p_p_faiss__IndexIVFScalarQuantizer", 0, 0, 0, 0, 0};
78555 static swig_type_info _swigt__p_p_faiss__IndexScalarQuantizer = {
"_p_p_faiss__IndexScalarQuantizer", 0, 0, 0, 0, 0};
78556 static swig_type_info _swigt__p_p_faiss__MultiIndexQuantizer = {
"_p_p_faiss__MultiIndexQuantizer", 0, 0, 0, 0, 0};
78557 static swig_type_info _swigt__p_p_faiss__InvertedLists = {
"_p_p_faiss__InvertedLists",
"faiss::InvertedLists **", 0, 0, (
void*)0, 0};
78558 static swig_type_info _swigt__p_p_faiss__ArrayInvertedLists = {
"_p_p_faiss__ArrayInvertedLists", 0, 0, 0, 0, 0};
78559 static swig_type_info _swigt__p_p_faiss__ConcatenatedInvertedLists = {
"_p_p_faiss__ConcatenatedInvertedLists", 0, 0, 0, 0, 0};
78560 static swig_type_info _swigt__p_p_faiss__OnDiskInvertedLists = {
"_p_p_faiss__OnDiskInvertedLists", 0, 0, 0, 0, 0};
78561 static swig_type_info _swigt__p_p_faiss__VectorTransform = {
"_p_p_faiss__VectorTransform",
"faiss::VectorTransform **", 0, 0, (
void*)0, 0};
78562 static swig_type_info _swigt__p_p_faiss__RandomRotationMatrix = {
"_p_p_faiss__RandomRotationMatrix", 0, 0, 0, 0, 0};
78563 static swig_type_info _swigt__p_p_faiss__PCAMatrix = {
"_p_p_faiss__PCAMatrix", 0, 0, 0, 0, 0};
78564 static swig_type_info _swigt__p_p_faiss__OPQMatrix = {
"_p_p_faiss__OPQMatrix", 0, 0, 0, 0, 0};
78565 static swig_type_info _swigt__p_p_faiss__LinearTransform = {
"_p_p_faiss__LinearTransform", 0, 0, 0, 0, 0};
78566 static swig_type_info _swigt__p_p_faiss__RemapDimensionsTransform = {
"_p_p_faiss__RemapDimensionsTransform", 0, 0, 0, 0, 0};
78567 static swig_type_info _swigt__p_p_faiss__NormalizationTransform = {
"_p_p_faiss__NormalizationTransform", 0, 0, 0, 0, 0};
78568 static swig_type_info _swigt__p_std__listT_faiss__OnDiskInvertedLists__Slot_t = {
"_p_std__listT_faiss__OnDiskInvertedLists__Slot_t",
"std::list< faiss::OnDiskInvertedLists::Slot > *", 0, 0, (
void*)0, 0};
78569 static swig_type_info _swigt__p_std__mt19937 = {
"_p_std__mt19937",
"std::mt19937 *", 0, 0, (
void*)0, 0};
78570 static swig_type_info _swigt__p_std__pairT_float_int_t = {
"_p_std__pairT_float_int_t",
"std::pair< float,int > *|faiss::HNSW::Node *", 0, 0, (
void*)0, 0};
78571 static swig_type_info _swigt__p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t = {
"_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t",
"std::priority_queue< faiss::HNSW::NodeDistFarther > *", 0, 0, (
void*)0, 0};
78572 static swig_type_info _swigt__p_std__priority_queueT_std__pairT_float_int_t_t = {
"_p_std__priority_queueT_std__pairT_float_int_t_t",
"std::priority_queue< std::pair< float,int > > *|std::priority_queue< faiss::HNSW::Node > *", 0, 0, (
void*)0, 0};
78573 static swig_type_info _swigt__p_std__unordered_mapT_long_long_t = {
"_p_std__unordered_mapT_long_long_t",
"std::unordered_map< long,long > *|std::unordered_map< faiss::Index::idx_t,faiss::Index::idx_t > *", 0, 0, (
void*)0, 0};
78574 static swig_type_info _swigt__p_std__unordered_multimapT_long_long_t = {
"_p_std__unordered_multimapT_long_long_t",
"std::unordered_multimap< long,long > *|std::unordered_multimap< faiss::Index::idx_t,faiss::Index::idx_t > *", 0, 0, (
void*)0, 0};
78575 static swig_type_info _swigt__p_std__vectorT_char_t = {
"_p_std__vectorT_char_t",
"std::vector< char > *", 0, 0, (
void*)0, 0};
78576 static swig_type_info _swigt__p_std__vectorT_double_t = {
"_p_std__vectorT_double_t",
"std::vector< double > *", 0, 0, (
void*)0, 0};
78577 static swig_type_info _swigt__p_std__vectorT_faiss__BufferList__Buffer_t = {
"_p_std__vectorT_faiss__BufferList__Buffer_t",
"std::vector< faiss::BufferList::Buffer > *", 0, 0, (
void*)0, 0};
78578 static swig_type_info _swigt__p_std__vectorT_faiss__HNSW__NodeDistFarther_t = {
"_p_std__vectorT_faiss__HNSW__NodeDistFarther_t",
"std::vector< faiss::HNSW::NodeDistFarther > *", 0, 0, (
void*)0, 0};
78579 static swig_type_info _swigt__p_std__vectorT_faiss__Index_p_t = {
"_p_std__vectorT_faiss__Index_p_t",
"std::vector< faiss::Index * > *", 0, 0, (
void*)0, 0};
78580 static swig_type_info _swigt__p_std__vectorT_faiss__InvertedLists_const_p_t = {
"_p_std__vectorT_faiss__InvertedLists_const_p_t",
"std::vector< faiss::InvertedLists const * > *", 0, 0, (
void*)0, 0};
78581 static swig_type_info _swigt__p_std__vectorT_faiss__InvertedLists_p_t = {
"_p_std__vectorT_faiss__InvertedLists_p_t",
"std::vector< faiss::InvertedLists * > *", 0, 0, (
void*)0, 0};
78582 static swig_type_info _swigt__p_std__vectorT_faiss__OnDiskInvertedLists__List_t = {
"_p_std__vectorT_faiss__OnDiskInvertedLists__List_t",
"std::vector< faiss::OnDiskInvertedLists::List > *", 0, 0, (
void*)0, 0};
78583 static swig_type_info _swigt__p_std__vectorT_faiss__OperatingPoint_t = {
"_p_std__vectorT_faiss__OperatingPoint_t",
"std::vector< faiss::OperatingPoint > *", 0, 0, (
void*)0, 0};
78584 static swig_type_info _swigt__p_std__vectorT_faiss__ParameterRange_t = {
"_p_std__vectorT_faiss__ParameterRange_t",
"std::vector< faiss::ParameterRange > *", 0, 0, (
void*)0, 0};
78585 static swig_type_info _swigt__p_std__vectorT_faiss__RangeSearchPartialResult__QueryResult_t = {
"_p_std__vectorT_faiss__RangeSearchPartialResult__QueryResult_t",
"std::vector< faiss::RangeSearchPartialResult::QueryResult > *", 0, 0, (
void*)0, 0};
78586 static swig_type_info _swigt__p_std__vectorT_faiss__VectorTransform_p_t = {
"_p_std__vectorT_faiss__VectorTransform_p_t",
"std::vector< faiss::VectorTransform * > *", 0, 0, (
void*)0, 0};
78587 static swig_type_info _swigt__p_std__vectorT_float_t = {
"_p_std__vectorT_float_t",
"std::vector< float > *", 0, 0, (
void*)0, 0};
78588 static swig_type_info _swigt__p_std__vectorT_int_t = {
"_p_std__vectorT_int_t",
"std::vector< faiss::HNSW::storage_idx_t > *|std::vector< int > *", 0, 0, (
void*)0, 0};
78589 static swig_type_info _swigt__p_std__vectorT_long_t = {
"_p_std__vectorT_long_t",
"std::vector< long > *|std::vector< faiss::Index::idx_t > *|std::vector< faiss::AutoTuneCriterion::idx_t > *", 0, 0, (
void*)0, 0};
78590 static swig_type_info _swigt__p_std__vectorT_omp_lock_t_t = {
"_p_std__vectorT_omp_lock_t_t",
"std::vector< omp_lock_t > *", 0, 0, (
void*)0, 0};
78591 static swig_type_info _swigt__p_std__vectorT_std__vectorT_float_t_t = {
"_p_std__vectorT_std__vectorT_float_t_t",
"std::vector< std::vector< float > > *", 0, 0, (
void*)0, 0};
78592 static swig_type_info _swigt__p_std__vectorT_std__vectorT_long_t_t = {
"_p_std__vectorT_std__vectorT_long_t_t",
"std::vector< std::vector< long > > *|std::vector< std::vector< faiss::InvertedLists::idx_t > > *", 0, 0, (
void*)0, 0};
78593 static swig_type_info _swigt__p_std__vectorT_std__vectorT_uint8_t_t_t = {
"_p_std__vectorT_std__vectorT_uint8_t_t_t",
"std::vector< std::vector< unsigned char > > *|std::vector< std::vector< uint8_t > > *", 0, 0, (
void*)0, 0};
78594 static swig_type_info _swigt__p_std__vectorT_std__vectorT_unsigned_long_t_t = {
"_p_std__vectorT_std__vectorT_unsigned_long_t_t",
"std::vector< std::vector< unsigned long > > *|std::vector< std::vector< size_t > > *", 0, 0, (
void*)0, 0};
78595 static swig_type_info _swigt__p_std__vectorT_unsigned_char_t = {
"_p_std__vectorT_unsigned_char_t",
"std::vector< unsigned char > *|std::vector< uint8_t > *|std::vector< faiss::IndexLSH::uint8_t > *", 0, 0, (
void*)0, 0};
78596 static swig_type_info _swigt__p_std__vectorT_unsigned_long_t = {
"_p_std__vectorT_unsigned_long_t",
"std::vector< unsigned long > *|std::vector< size_t > *", 0, 0, (
void*)0, 0};
78597 static swig_type_info _swigt__p_storage_idx_t = {
"_p_storage_idx_t",
"storage_idx_t *", 0, 0, (
void*)0, 0};
78598 static swig_type_info _swigt__p_uint32_t = {
"_p_uint32_t",
"uint32_t *", 0, 0, (
void*)0, 0};
78599 static swig_type_info _swigt__p_unsigned_char = {
"_p_unsigned_char",
"unsigned char *|uint8_t *", 0, 0, (
void*)0, 0};
78600 static swig_type_info _swigt__p_unsigned_long = {
"_p_unsigned_long",
"uint64_t *|size_t *|unsigned long *", 0, 0, (
void*)0, 0};
78601 static swig_type_info _swigt__p_void = {
"_p_void",
"void *", 0, 0, (
void*)0, 0};
78606 &_swigt__p_MapLong2Long,
78612 &_swigt__p_faiss__ArrayInvertedLists,
78613 &_swigt__p_faiss__AutoTuneCriterion,
78614 &_swigt__p_faiss__BinaryInvertedListScanner,
78615 &_swigt__p_faiss__BufferList,
78616 &_swigt__p_faiss__Cloner,
78617 &_swigt__p_faiss__Clustering,
78618 &_swigt__p_faiss__ClusteringParameters,
78619 &_swigt__p_faiss__ConcatenatedInvertedLists,
78620 &_swigt__p_faiss__GenHammingComputer16,
78621 &_swigt__p_faiss__GenHammingComputer32,
78622 &_swigt__p_faiss__GenHammingComputer8,
78623 &_swigt__p_faiss__GenHammingComputerM8,
78624 &_swigt__p_faiss__HNSW,
78625 &_swigt__p_faiss__HNSWStats,
78626 &_swigt__p_faiss__HNSW__DistanceComputer,
78627 &_swigt__p_faiss__HNSW__MinimaxHeap,
78628 &_swigt__p_faiss__HammingComputer16,
78629 &_swigt__p_faiss__HammingComputer20,
78630 &_swigt__p_faiss__HammingComputer32,
78631 &_swigt__p_faiss__HammingComputer4,
78632 &_swigt__p_faiss__HammingComputer64,
78633 &_swigt__p_faiss__HammingComputer8,
78634 &_swigt__p_faiss__HammingComputerDefault,
78635 &_swigt__p_faiss__HammingComputerM4,
78636 &_swigt__p_faiss__HammingComputerM8,
78637 &_swigt__p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t,
78638 &_swigt__p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t,
78639 &_swigt__p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t,
78640 &_swigt__p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t,
78641 &_swigt__p_faiss__IDSelector,
78642 &_swigt__p_faiss__IDSelectorBatch,
78643 &_swigt__p_faiss__IDSelectorRange,
78644 &_swigt__p_faiss__IOReader,
78645 &_swigt__p_faiss__IOWriter,
78646 &_swigt__p_faiss__IVFPQSearchParameters,
78647 &_swigt__p_faiss__IVFSearchParameters,
78648 &_swigt__p_faiss__Index,
78649 &_swigt__p_faiss__Index2Layer,
78650 &_swigt__p_faiss__IndexBinary,
78651 &_swigt__p_faiss__IndexBinaryFlat,
78652 &_swigt__p_faiss__IndexBinaryFromFloat,
78653 &_swigt__p_faiss__IndexBinaryHNSW,
78654 &_swigt__p_faiss__IndexBinaryIVF,
78655 &_swigt__p_faiss__IndexFlat,
78656 &_swigt__p_faiss__IndexFlat1D,
78657 &_swigt__p_faiss__IndexFlatIP,
78658 &_swigt__p_faiss__IndexFlatL2,
78659 &_swigt__p_faiss__IndexFlatL2BaseShift,
78660 &_swigt__p_faiss__IndexHNSW,
78661 &_swigt__p_faiss__IndexHNSW2Level,
78662 &_swigt__p_faiss__IndexHNSWFlat,
78663 &_swigt__p_faiss__IndexHNSWPQ,
78664 &_swigt__p_faiss__IndexHNSWSQ,
78665 &_swigt__p_faiss__IndexIDMap,
78666 &_swigt__p_faiss__IndexIDMap2,
78667 &_swigt__p_faiss__IndexIVF,
78668 &_swigt__p_faiss__IndexIVFFlat,
78669 &_swigt__p_faiss__IndexIVFFlatDedup,
78670 &_swigt__p_faiss__IndexIVFPQ,
78671 &_swigt__p_faiss__IndexIVFPQR,
78672 &_swigt__p_faiss__IndexIVFPQStats,
78673 &_swigt__p_faiss__IndexIVFScalarQuantizer,
78674 &_swigt__p_faiss__IndexIVFStats,
78675 &_swigt__p_faiss__IndexLSH,
78676 &_swigt__p_faiss__IndexPQ,
78677 &_swigt__p_faiss__IndexPQStats,
78678 &_swigt__p_faiss__IndexPreTransform,
78679 &_swigt__p_faiss__IndexRefineFlat,
78680 &_swigt__p_faiss__IndexScalarQuantizer,
78681 &_swigt__p_faiss__IndexShards,
78682 &_swigt__p_faiss__IndexSplitVectors,
78683 &_swigt__p_faiss__IntersectionCriterion,
78684 &_swigt__p_faiss__InvertedListScanner,
78685 &_swigt__p_faiss__InvertedLists,
78686 &_swigt__p_faiss__Level1Quantizer,
78687 &_swigt__p_faiss__LinearTransform,
78688 &_swigt__p_faiss__LockLevels,
78689 &_swigt__p_faiss__MultiIndexQuantizer,
78690 &_swigt__p_faiss__MultiIndexQuantizer2,
78691 &_swigt__p_faiss__NormalizationTransform,
78692 &_swigt__p_faiss__OPQMatrix,
78693 &_swigt__p_faiss__OnDiskInvertedLists,
78694 &_swigt__p_faiss__OnDiskInvertedLists__OngoingPrefetch,
78695 &_swigt__p_faiss__OneRecallAtRCriterion,
78696 &_swigt__p_faiss__OperatingPoint,
78697 &_swigt__p_faiss__OperatingPoints,
78698 &_swigt__p_faiss__PCAMatrix,
78699 &_swigt__p_faiss__ParameterRange,
78700 &_swigt__p_faiss__ParameterSpace,
78701 &_swigt__p_faiss__PermutationObjective,
78702 &_swigt__p_faiss__PolysemousTraining,
78703 &_swigt__p_faiss__ProductQuantizer,
78704 &_swigt__p_faiss__RandomGenerator,
78705 &_swigt__p_faiss__RandomRotationMatrix,
78706 &_swigt__p_faiss__RangeSearchPartialResult,
78707 &_swigt__p_faiss__RangeSearchPartialResult__QueryResult,
78708 &_swigt__p_faiss__RangeSearchResult,
78709 &_swigt__p_faiss__ReconstructFromNeighbors,
78710 &_swigt__p_faiss__RemapDimensionsTransform,
78711 &_swigt__p_faiss__ReproduceDistancesObjective,
78712 &_swigt__p_faiss__ScalarQuantizer,
78713 &_swigt__p_faiss__ScalarQuantizer__DistanceComputer,
78714 &_swigt__p_faiss__SimulatedAnnealingOptimizer,
78715 &_swigt__p_faiss__SimulatedAnnealingParameters,
78716 &_swigt__p_faiss__VectorIOReader,
78717 &_swigt__p_faiss__VectorIOWriter,
78718 &_swigt__p_faiss__VectorTransform,
78719 &_swigt__p_faiss__VisitedTable,
78720 &_swigt__p_faiss__ivflib__SlidingIndexWindow,
78725 &_swigt__p_omp_lock_t,
78726 &_swigt__p_p_faiss__ArrayInvertedLists,
78727 &_swigt__p_p_faiss__ConcatenatedInvertedLists,
78728 &_swigt__p_p_faiss__Index,
78729 &_swigt__p_p_faiss__Index2Layer,
78730 &_swigt__p_p_faiss__IndexFlat,
78731 &_swigt__p_p_faiss__IndexFlat1D,
78732 &_swigt__p_p_faiss__IndexFlatIP,
78733 &_swigt__p_p_faiss__IndexFlatL2,
78734 &_swigt__p_p_faiss__IndexFlatL2BaseShift,
78735 &_swigt__p_p_faiss__IndexHNSW,
78736 &_swigt__p_p_faiss__IndexHNSW2Level,
78737 &_swigt__p_p_faiss__IndexHNSWFlat,
78738 &_swigt__p_p_faiss__IndexHNSWPQ,
78739 &_swigt__p_p_faiss__IndexHNSWSQ,
78740 &_swigt__p_p_faiss__IndexIDMap,
78741 &_swigt__p_p_faiss__IndexIDMap2,
78742 &_swigt__p_p_faiss__IndexIVF,
78743 &_swigt__p_p_faiss__IndexIVFFlat,
78744 &_swigt__p_p_faiss__IndexIVFFlatDedup,
78745 &_swigt__p_p_faiss__IndexIVFPQ,
78746 &_swigt__p_p_faiss__IndexIVFPQR,
78747 &_swigt__p_p_faiss__IndexIVFScalarQuantizer,
78748 &_swigt__p_p_faiss__IndexLSH,
78749 &_swigt__p_p_faiss__IndexPQ,
78750 &_swigt__p_p_faiss__IndexPreTransform,
78751 &_swigt__p_p_faiss__IndexRefineFlat,
78752 &_swigt__p_p_faiss__IndexScalarQuantizer,
78753 &_swigt__p_p_faiss__IndexShards,
78754 &_swigt__p_p_faiss__IndexSplitVectors,
78755 &_swigt__p_p_faiss__InvertedLists,
78756 &_swigt__p_p_faiss__LinearTransform,
78757 &_swigt__p_p_faiss__MultiIndexQuantizer,
78758 &_swigt__p_p_faiss__MultiIndexQuantizer2,
78759 &_swigt__p_p_faiss__NormalizationTransform,
78760 &_swigt__p_p_faiss__OPQMatrix,
78761 &_swigt__p_p_faiss__OnDiskInvertedLists,
78762 &_swigt__p_p_faiss__PCAMatrix,
78763 &_swigt__p_p_faiss__RandomRotationMatrix,
78764 &_swigt__p_p_faiss__RemapDimensionsTransform,
78765 &_swigt__p_p_faiss__VectorTransform,
78766 &_swigt__p_std__listT_faiss__OnDiskInvertedLists__Slot_t,
78767 &_swigt__p_std__mt19937,
78768 &_swigt__p_std__pairT_float_int_t,
78769 &_swigt__p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t,
78770 &_swigt__p_std__priority_queueT_std__pairT_float_int_t_t,
78771 &_swigt__p_std__unordered_mapT_long_long_t,
78772 &_swigt__p_std__unordered_multimapT_long_long_t,
78773 &_swigt__p_std__vectorT_char_t,
78774 &_swigt__p_std__vectorT_double_t,
78775 &_swigt__p_std__vectorT_faiss__BufferList__Buffer_t,
78776 &_swigt__p_std__vectorT_faiss__HNSW__NodeDistFarther_t,
78777 &_swigt__p_std__vectorT_faiss__Index_p_t,
78778 &_swigt__p_std__vectorT_faiss__InvertedLists_const_p_t,
78779 &_swigt__p_std__vectorT_faiss__InvertedLists_p_t,
78780 &_swigt__p_std__vectorT_faiss__OnDiskInvertedLists__List_t,
78781 &_swigt__p_std__vectorT_faiss__OperatingPoint_t,
78782 &_swigt__p_std__vectorT_faiss__ParameterRange_t,
78783 &_swigt__p_std__vectorT_faiss__RangeSearchPartialResult__QueryResult_t,
78784 &_swigt__p_std__vectorT_faiss__VectorTransform_p_t,
78785 &_swigt__p_std__vectorT_float_t,
78786 &_swigt__p_std__vectorT_int_t,
78787 &_swigt__p_std__vectorT_long_t,
78788 &_swigt__p_std__vectorT_omp_lock_t_t,
78789 &_swigt__p_std__vectorT_std__vectorT_float_t_t,
78790 &_swigt__p_std__vectorT_std__vectorT_long_t_t,
78791 &_swigt__p_std__vectorT_std__vectorT_uint8_t_t_t,
78792 &_swigt__p_std__vectorT_std__vectorT_unsigned_long_t_t,
78793 &_swigt__p_std__vectorT_unsigned_char_t,
78794 &_swigt__p_std__vectorT_unsigned_long_t,
78795 &_swigt__p_storage_idx_t,
78796 &_swigt__p_uint32_t,
78797 &_swigt__p_unsigned_char,
78798 &_swigt__p_unsigned_long,
78802 static swig_cast_info _swigc__p_Crev[] = { {&_swigt__p_Crev, 0, 0, 0},{0, 0, 0, 0}};
78803 static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
78804 static swig_cast_info _swigc__p_MapLong2Long[] = { {&_swigt__p_MapLong2Long, 0, 0, 0},{0, 0, 0, 0}};
78805 static swig_cast_info _swigc__p_Node[] = { {&_swigt__p_Node, 0, 0, 0},{0, 0, 0, 0}};
78806 static swig_cast_info _swigc__p_T[] = { {&_swigt__p_T, 0, 0, 0},{0, 0, 0, 0}};
78807 static swig_cast_info _swigc__p_TI[] = { {&_swigt__p_TI, 0, 0, 0},{0, 0, 0, 0}};
78808 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
78809 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
78810 static swig_cast_info _swigc__p_faiss__ArrayInvertedLists[] = { {&_swigt__p_faiss__ArrayInvertedLists, 0, 0, 0},{0, 0, 0, 0}};
78811 static swig_cast_info _swigc__p_faiss__AutoTuneCriterion[] = { {&_swigt__p_faiss__AutoTuneCriterion, 0, 0, 0}, {&_swigt__p_faiss__OneRecallAtRCriterion, _p_faiss__OneRecallAtRCriterionTo_p_faiss__AutoTuneCriterion, 0, 0}, {&_swigt__p_faiss__IntersectionCriterion, _p_faiss__IntersectionCriterionTo_p_faiss__AutoTuneCriterion, 0, 0},{0, 0, 0, 0}};
78812 static swig_cast_info _swigc__p_faiss__BinaryInvertedListScanner[] = { {&_swigt__p_faiss__BinaryInvertedListScanner, 0, 0, 0},{0, 0, 0, 0}};
78813 static swig_cast_info _swigc__p_faiss__BufferList[] = { {&_swigt__p_faiss__RangeSearchPartialResult, _p_faiss__RangeSearchPartialResultTo_p_faiss__BufferList, 0, 0}, {&_swigt__p_faiss__BufferList, 0, 0, 0},{0, 0, 0, 0}};
78814 static swig_cast_info _swigc__p_faiss__Cloner[] = { {&_swigt__p_faiss__Cloner, 0, 0, 0},{0, 0, 0, 0}};
78815 static swig_cast_info _swigc__p_faiss__Clustering[] = { {&_swigt__p_faiss__Clustering, 0, 0, 0},{0, 0, 0, 0}};
78816 static swig_cast_info _swigc__p_faiss__ClusteringParameters[] = { {&_swigt__p_faiss__Clustering, _p_faiss__ClusteringTo_p_faiss__ClusteringParameters, 0, 0}, {&_swigt__p_faiss__ClusteringParameters, 0, 0, 0},{0, 0, 0, 0}};
78817 static swig_cast_info _swigc__p_faiss__ConcatenatedInvertedLists[] = { {&_swigt__p_faiss__ConcatenatedInvertedLists, 0, 0, 0},{0, 0, 0, 0}};
78818 static swig_cast_info _swigc__p_faiss__GenHammingComputer16[] = { {&_swigt__p_faiss__GenHammingComputer16, 0, 0, 0},{0, 0, 0, 0}};
78819 static swig_cast_info _swigc__p_faiss__GenHammingComputer32[] = { {&_swigt__p_faiss__GenHammingComputer32, 0, 0, 0},{0, 0, 0, 0}};
78820 static swig_cast_info _swigc__p_faiss__GenHammingComputer8[] = { {&_swigt__p_faiss__GenHammingComputer8, 0, 0, 0},{0, 0, 0, 0}};
78821 static swig_cast_info _swigc__p_faiss__GenHammingComputerM8[] = { {&_swigt__p_faiss__GenHammingComputerM8, 0, 0, 0},{0, 0, 0, 0}};
78822 static swig_cast_info _swigc__p_faiss__HNSW[] = { {&_swigt__p_faiss__HNSW, 0, 0, 0},{0, 0, 0, 0}};
78823 static swig_cast_info _swigc__p_faiss__HNSWStats[] = { {&_swigt__p_faiss__HNSWStats, 0, 0, 0},{0, 0, 0, 0}};
78824 static swig_cast_info _swigc__p_faiss__HNSW__DistanceComputer[] = { {&_swigt__p_faiss__HNSW__DistanceComputer, 0, 0, 0},{0, 0, 0, 0}};
78825 static swig_cast_info _swigc__p_faiss__HNSW__MinimaxHeap[] = { {&_swigt__p_faiss__HNSW__MinimaxHeap, 0, 0, 0},{0, 0, 0, 0}};
78826 static swig_cast_info _swigc__p_faiss__HammingComputer16[] = { {&_swigt__p_faiss__HammingComputer16, 0, 0, 0},{0, 0, 0, 0}};
78827 static swig_cast_info _swigc__p_faiss__HammingComputer20[] = { {&_swigt__p_faiss__HammingComputer20, 0, 0, 0},{0, 0, 0, 0}};
78828 static swig_cast_info _swigc__p_faiss__HammingComputer32[] = { {&_swigt__p_faiss__HammingComputer32, 0, 0, 0},{0, 0, 0, 0}};
78829 static swig_cast_info _swigc__p_faiss__HammingComputer4[] = { {&_swigt__p_faiss__HammingComputer4, 0, 0, 0},{0, 0, 0, 0}};
78830 static swig_cast_info _swigc__p_faiss__HammingComputer64[] = { {&_swigt__p_faiss__HammingComputer64, 0, 0, 0},{0, 0, 0, 0}};
78831 static swig_cast_info _swigc__p_faiss__HammingComputer8[] = { {&_swigt__p_faiss__HammingComputer8, 0, 0, 0},{0, 0, 0, 0}};
78832 static swig_cast_info _swigc__p_faiss__HammingComputerDefault[] = { {&_swigt__p_faiss__HammingComputerDefault, 0, 0, 0},{0, 0, 0, 0}};
78833 static swig_cast_info _swigc__p_faiss__HammingComputerM4[] = { {&_swigt__p_faiss__HammingComputerM4, 0, 0, 0},{0, 0, 0, 0}};
78834 static swig_cast_info _swigc__p_faiss__HammingComputerM8[] = { {&_swigt__p_faiss__HammingComputerM8, 0, 0, 0},{0, 0, 0, 0}};
78835 static swig_cast_info _swigc__p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t[] = { {&_swigt__p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0, 0, 0},{0, 0, 0, 0}};
78836 static swig_cast_info _swigc__p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t[] = { {&_swigt__p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0, 0, 0},{0, 0, 0, 0}};
78837 static swig_cast_info _swigc__p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t[] = { {&_swigt__p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0, 0, 0},{0, 0, 0, 0}};
78838 static swig_cast_info _swigc__p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t[] = { {&_swigt__p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0, 0, 0},{0, 0, 0, 0}};
78839 static swig_cast_info _swigc__p_faiss__IDSelector[] = { {&_swigt__p_faiss__IDSelector, 0, 0, 0}, {&_swigt__p_faiss__IDSelectorBatch, _p_faiss__IDSelectorBatchTo_p_faiss__IDSelector, 0, 0}, {&_swigt__p_faiss__IDSelectorRange, _p_faiss__IDSelectorRangeTo_p_faiss__IDSelector, 0, 0},{0, 0, 0, 0}};
78840 static swig_cast_info _swigc__p_faiss__IDSelectorBatch[] = { {&_swigt__p_faiss__IDSelectorBatch, 0, 0, 0},{0, 0, 0, 0}};
78841 static swig_cast_info _swigc__p_faiss__IDSelectorRange[] = { {&_swigt__p_faiss__IDSelectorRange, 0, 0, 0},{0, 0, 0, 0}};
78842 static swig_cast_info _swigc__p_faiss__IOReader[] = { {&_swigt__p_faiss__IOReader, 0, 0, 0}, {&_swigt__p_faiss__VectorIOReader, _p_faiss__VectorIOReaderTo_p_faiss__IOReader, 0, 0},{0, 0, 0, 0}};
78843 static swig_cast_info _swigc__p_faiss__IOWriter[] = { {&_swigt__p_faiss__IOWriter, 0, 0, 0}, {&_swigt__p_faiss__VectorIOWriter, _p_faiss__VectorIOWriterTo_p_faiss__IOWriter, 0, 0},{0, 0, 0, 0}};
78844 static swig_cast_info _swigc__p_faiss__IVFPQSearchParameters[] = { {&_swigt__p_faiss__IVFPQSearchParameters, 0, 0, 0},{0, 0, 0, 0}};
78845 static swig_cast_info _swigc__p_faiss__IVFSearchParameters[] = { {&_swigt__p_faiss__IVFSearchParameters, 0, 0, 0}, {&_swigt__p_faiss__IVFPQSearchParameters, _p_faiss__IVFPQSearchParametersTo_p_faiss__IVFSearchParameters, 0, 0},{0, 0, 0, 0}};
78846 static swig_cast_info _swigc__p_faiss__Index[] = { {&_swigt__p_faiss__IndexPreTransform, _p_faiss__IndexPreTransformTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIVF, _p_faiss__IndexIVFTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexFlatL2, _p_faiss__IndexFlatL2To_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexHNSWFlat, _p_faiss__IndexHNSWFlatTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__Index2Layer, _p_faiss__Index2LayerTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexHNSWPQ, _p_faiss__IndexHNSWPQTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIVFFlat, _p_faiss__IndexIVFFlatTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexHNSW, _p_faiss__IndexHNSWTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexFlatIP, _p_faiss__IndexFlatIPTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIVFPQR, _p_faiss__IndexIVFPQRTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIVFFlatDedup, _p_faiss__IndexIVFFlatDedupTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexLSH, _p_faiss__IndexLSHTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexFlat, _p_faiss__IndexFlatTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexFlat1D, _p_faiss__IndexFlat1DTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexFlatL2BaseShift, _p_faiss__IndexFlatL2BaseShiftTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexShards, _p_faiss__IndexShardsTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexHNSW2Level, _p_faiss__IndexHNSW2LevelTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIDMap2, _p_faiss__IndexIDMap2To_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexSplitVectors, _p_faiss__IndexSplitVectorsTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__Index, 0, 0, 0}, {&_swigt__p_faiss__IndexRefineFlat, _p_faiss__IndexRefineFlatTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexHNSWSQ, _p_faiss__IndexHNSWSQTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__MultiIndexQuantizer2, _p_faiss__MultiIndexQuantizer2To_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexPQ, _p_faiss__IndexPQTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIDMap, _p_faiss__IndexIDMapTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIVFPQ, _p_faiss__IndexIVFPQTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIVFScalarQuantizer, _p_faiss__IndexIVFScalarQuantizerTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexScalarQuantizer, _p_faiss__IndexScalarQuantizerTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__MultiIndexQuantizer, _p_faiss__MultiIndexQuantizerTo_p_faiss__Index, 0, 0},{0, 0, 0, 0}};
78847 static swig_cast_info _swigc__p_faiss__Index2Layer[] = { {&_swigt__p_faiss__Index2Layer, 0, 0, 0},{0, 0, 0, 0}};
78848 static swig_cast_info _swigc__p_faiss__IndexBinary[] = { {&_swigt__p_faiss__IndexBinaryFlat, _p_faiss__IndexBinaryFlatTo_p_faiss__IndexBinary, 0, 0}, {&_swigt__p_faiss__IndexBinary, 0, 0, 0}, {&_swigt__p_faiss__IndexBinaryHNSW, _p_faiss__IndexBinaryHNSWTo_p_faiss__IndexBinary, 0, 0}, {&_swigt__p_faiss__IndexBinaryIVF, _p_faiss__IndexBinaryIVFTo_p_faiss__IndexBinary, 0, 0}, {&_swigt__p_faiss__IndexBinaryFromFloat, _p_faiss__IndexBinaryFromFloatTo_p_faiss__IndexBinary, 0, 0},{0, 0, 0, 0}};
78849 static swig_cast_info _swigc__p_faiss__IndexBinaryFlat[] = { {&_swigt__p_faiss__IndexBinaryFlat, 0, 0, 0},{0, 0, 0, 0}};
78850 static swig_cast_info _swigc__p_faiss__IndexBinaryFromFloat[] = { {&_swigt__p_faiss__IndexBinaryFromFloat, 0, 0, 0},{0, 0, 0, 0}};
78851 static swig_cast_info _swigc__p_faiss__IndexBinaryHNSW[] = { {&_swigt__p_faiss__IndexBinaryHNSW, 0, 0, 0},{0, 0, 0, 0}};
78852 static swig_cast_info _swigc__p_faiss__IndexBinaryIVF[] = { {&_swigt__p_faiss__IndexBinaryIVF, 0, 0, 0},{0, 0, 0, 0}};
78853 static swig_cast_info _swigc__p_faiss__IndexFlat[] = { {&_swigt__p_faiss__IndexFlat, 0, 0, 0}, {&_swigt__p_faiss__IndexFlatL2, _p_faiss__IndexFlatL2To_p_faiss__IndexFlat, 0, 0}, {&_swigt__p_faiss__IndexFlat1D, _p_faiss__IndexFlat1DTo_p_faiss__IndexFlat, 0, 0}, {&_swigt__p_faiss__IndexFlatL2BaseShift, _p_faiss__IndexFlatL2BaseShiftTo_p_faiss__IndexFlat, 0, 0}, {&_swigt__p_faiss__IndexFlatIP, _p_faiss__IndexFlatIPTo_p_faiss__IndexFlat, 0, 0},{0, 0, 0, 0}};
78854 static swig_cast_info _swigc__p_faiss__IndexFlat1D[] = { {&_swigt__p_faiss__IndexFlat1D, 0, 0, 0},{0, 0, 0, 0}};
78855 static swig_cast_info _swigc__p_faiss__IndexFlatIP[] = { {&_swigt__p_faiss__IndexFlatIP, 0, 0, 0},{0, 0, 0, 0}};
78856 static swig_cast_info _swigc__p_faiss__IndexFlatL2[] = { {&_swigt__p_faiss__IndexFlatL2, 0, 0, 0}, {&_swigt__p_faiss__IndexFlat1D, _p_faiss__IndexFlat1DTo_p_faiss__IndexFlatL2, 0, 0}, {&_swigt__p_faiss__IndexFlatL2BaseShift, _p_faiss__IndexFlatL2BaseShiftTo_p_faiss__IndexFlatL2, 0, 0},{0, 0, 0, 0}};
78857 static swig_cast_info _swigc__p_faiss__IndexFlatL2BaseShift[] = { {&_swigt__p_faiss__IndexFlatL2BaseShift, 0, 0, 0},{0, 0, 0, 0}};
78858 static swig_cast_info _swigc__p_faiss__IndexHNSW[] = { {&_swigt__p_faiss__IndexHNSWFlat, _p_faiss__IndexHNSWFlatTo_p_faiss__IndexHNSW, 0, 0}, {&_swigt__p_faiss__IndexHNSW, 0, 0, 0}, {&_swigt__p_faiss__IndexHNSWSQ, _p_faiss__IndexHNSWSQTo_p_faiss__IndexHNSW, 0, 0}, {&_swigt__p_faiss__IndexHNSWPQ, _p_faiss__IndexHNSWPQTo_p_faiss__IndexHNSW, 0, 0}, {&_swigt__p_faiss__IndexHNSW2Level, _p_faiss__IndexHNSW2LevelTo_p_faiss__IndexHNSW, 0, 0},{0, 0, 0, 0}};
78859 static swig_cast_info _swigc__p_faiss__IndexHNSW2Level[] = { {&_swigt__p_faiss__IndexHNSW2Level, 0, 0, 0},{0, 0, 0, 0}};
78860 static swig_cast_info _swigc__p_faiss__IndexHNSWFlat[] = { {&_swigt__p_faiss__IndexHNSWFlat, 0, 0, 0},{0, 0, 0, 0}};
78861 static swig_cast_info _swigc__p_faiss__IndexHNSWPQ[] = { {&_swigt__p_faiss__IndexHNSWPQ, 0, 0, 0},{0, 0, 0, 0}};
78862 static swig_cast_info _swigc__p_faiss__IndexHNSWSQ[] = { {&_swigt__p_faiss__IndexHNSWSQ, 0, 0, 0},{0, 0, 0, 0}};
78863 static swig_cast_info _swigc__p_faiss__IndexIDMap[] = { {&_swigt__p_faiss__IndexIDMap2, _p_faiss__IndexIDMap2To_p_faiss__IndexIDMap, 0, 0}, {&_swigt__p_faiss__IndexIDMap, 0, 0, 0},{0, 0, 0, 0}};
78864 static swig_cast_info _swigc__p_faiss__IndexIDMap2[] = { {&_swigt__p_faiss__IndexIDMap2, 0, 0, 0},{0, 0, 0, 0}};
78865 static swig_cast_info _swigc__p_faiss__IndexIVF[] = { {&_swigt__p_faiss__IndexIVF, 0, 0, 0}, {&_swigt__p_faiss__IndexIVFScalarQuantizer, _p_faiss__IndexIVFScalarQuantizerTo_p_faiss__IndexIVF, 0, 0}, {&_swigt__p_faiss__IndexIVFPQ, _p_faiss__IndexIVFPQTo_p_faiss__IndexIVF, 0, 0}, {&_swigt__p_faiss__IndexIVFFlat, _p_faiss__IndexIVFFlatTo_p_faiss__IndexIVF, 0, 0}, {&_swigt__p_faiss__IndexIVFFlatDedup, _p_faiss__IndexIVFFlatDedupTo_p_faiss__IndexIVF, 0, 0}, {&_swigt__p_faiss__IndexIVFPQR, _p_faiss__IndexIVFPQRTo_p_faiss__IndexIVF, 0, 0},{0, 0, 0, 0}};
78866 static swig_cast_info _swigc__p_faiss__IndexIVFFlat[] = { {&_swigt__p_faiss__IndexIVFFlat, 0, 0, 0}, {&_swigt__p_faiss__IndexIVFFlatDedup, _p_faiss__IndexIVFFlatDedupTo_p_faiss__IndexIVFFlat, 0, 0},{0, 0, 0, 0}};
78867 static swig_cast_info _swigc__p_faiss__IndexIVFFlatDedup[] = { {&_swigt__p_faiss__IndexIVFFlatDedup, 0, 0, 0},{0, 0, 0, 0}};
78868 static swig_cast_info _swigc__p_faiss__IndexIVFPQ[] = { {&_swigt__p_faiss__IndexIVFPQ, 0, 0, 0}, {&_swigt__p_faiss__IndexIVFPQR, _p_faiss__IndexIVFPQRTo_p_faiss__IndexIVFPQ, 0, 0},{0, 0, 0, 0}};
78869 static swig_cast_info _swigc__p_faiss__IndexIVFPQR[] = { {&_swigt__p_faiss__IndexIVFPQR, 0, 0, 0},{0, 0, 0, 0}};
78870 static swig_cast_info _swigc__p_faiss__IndexIVFPQStats[] = { {&_swigt__p_faiss__IndexIVFPQStats, 0, 0, 0},{0, 0, 0, 0}};
78871 static swig_cast_info _swigc__p_faiss__IndexIVFScalarQuantizer[] = { {&_swigt__p_faiss__IndexIVFScalarQuantizer, 0, 0, 0},{0, 0, 0, 0}};
78872 static swig_cast_info _swigc__p_faiss__IndexIVFStats[] = { {&_swigt__p_faiss__IndexIVFStats, 0, 0, 0},{0, 0, 0, 0}};
78873 static swig_cast_info _swigc__p_faiss__IndexLSH[] = { {&_swigt__p_faiss__IndexLSH, 0, 0, 0},{0, 0, 0, 0}};
78874 static swig_cast_info _swigc__p_faiss__IndexPQ[] = { {&_swigt__p_faiss__IndexPQ, 0, 0, 0},{0, 0, 0, 0}};
78875 static swig_cast_info _swigc__p_faiss__IndexPQStats[] = { {&_swigt__p_faiss__IndexPQStats, 0, 0, 0},{0, 0, 0, 0}};
78876 static swig_cast_info _swigc__p_faiss__IndexPreTransform[] = { {&_swigt__p_faiss__IndexPreTransform, 0, 0, 0},{0, 0, 0, 0}};
78877 static swig_cast_info _swigc__p_faiss__IndexRefineFlat[] = { {&_swigt__p_faiss__IndexRefineFlat, 0, 0, 0},{0, 0, 0, 0}};
78878 static swig_cast_info _swigc__p_faiss__IndexScalarQuantizer[] = { {&_swigt__p_faiss__IndexScalarQuantizer, 0, 0, 0},{0, 0, 0, 0}};
78879 static swig_cast_info _swigc__p_faiss__IndexShards[] = { {&_swigt__p_faiss__IndexShards, 0, 0, 0},{0, 0, 0, 0}};
78880 static swig_cast_info _swigc__p_faiss__IndexSplitVectors[] = { {&_swigt__p_faiss__IndexSplitVectors, 0, 0, 0},{0, 0, 0, 0}};
78881 static swig_cast_info _swigc__p_faiss__IntersectionCriterion[] = { {&_swigt__p_faiss__IntersectionCriterion, 0, 0, 0},{0, 0, 0, 0}};
78882 static swig_cast_info _swigc__p_faiss__InvertedListScanner[] = { {&_swigt__p_faiss__InvertedListScanner, 0, 0, 0},{0, 0, 0, 0}};
78883 static swig_cast_info _swigc__p_faiss__InvertedLists[] = { {&_swigt__p_faiss__InvertedLists, 0, 0, 0}, {&_swigt__p_faiss__ArrayInvertedLists, _p_faiss__ArrayInvertedListsTo_p_faiss__InvertedLists, 0, 0}, {&_swigt__p_faiss__ConcatenatedInvertedLists, _p_faiss__ConcatenatedInvertedListsTo_p_faiss__InvertedLists, 0, 0}, {&_swigt__p_faiss__OnDiskInvertedLists, _p_faiss__OnDiskInvertedListsTo_p_faiss__InvertedLists, 0, 0},{0, 0, 0, 0}};
78884 static swig_cast_info _swigc__p_faiss__Level1Quantizer[] = { {&_swigt__p_faiss__Level1Quantizer, 0, 0, 0}, {&_swigt__p_faiss__IndexIVF, _p_faiss__IndexIVFTo_p_faiss__Level1Quantizer, 0, 0}, {&_swigt__p_faiss__IndexIVFScalarQuantizer, _p_faiss__IndexIVFScalarQuantizerTo_p_faiss__Level1Quantizer, 0, 0}, {&_swigt__p_faiss__IndexIVFPQ, _p_faiss__IndexIVFPQTo_p_faiss__Level1Quantizer, 0, 0}, {&_swigt__p_faiss__IndexIVFFlat, _p_faiss__IndexIVFFlatTo_p_faiss__Level1Quantizer, 0, 0}, {&_swigt__p_faiss__IndexIVFFlatDedup, _p_faiss__IndexIVFFlatDedupTo_p_faiss__Level1Quantizer, 0, 0}, {&_swigt__p_faiss__IndexIVFPQR, _p_faiss__IndexIVFPQRTo_p_faiss__Level1Quantizer, 0, 0},{0, 0, 0, 0}};
78885 static swig_cast_info _swigc__p_faiss__LinearTransform[] = { {&_swigt__p_faiss__RandomRotationMatrix, _p_faiss__RandomRotationMatrixTo_p_faiss__LinearTransform, 0, 0}, {&_swigt__p_faiss__PCAMatrix, _p_faiss__PCAMatrixTo_p_faiss__LinearTransform, 0, 0}, {&_swigt__p_faiss__OPQMatrix, _p_faiss__OPQMatrixTo_p_faiss__LinearTransform, 0, 0}, {&_swigt__p_faiss__LinearTransform, 0, 0, 0},{0, 0, 0, 0}};
78886 static swig_cast_info _swigc__p_faiss__LockLevels[] = { {&_swigt__p_faiss__LockLevels, 0, 0, 0},{0, 0, 0, 0}};
78887 static swig_cast_info _swigc__p_faiss__MultiIndexQuantizer[] = { {&_swigt__p_faiss__MultiIndexQuantizer, 0, 0, 0}, {&_swigt__p_faiss__MultiIndexQuantizer2, _p_faiss__MultiIndexQuantizer2To_p_faiss__MultiIndexQuantizer, 0, 0},{0, 0, 0, 0}};
78888 static swig_cast_info _swigc__p_faiss__MultiIndexQuantizer2[] = { {&_swigt__p_faiss__MultiIndexQuantizer2, 0, 0, 0},{0, 0, 0, 0}};
78889 static swig_cast_info _swigc__p_faiss__NormalizationTransform[] = { {&_swigt__p_faiss__NormalizationTransform, 0, 0, 0},{0, 0, 0, 0}};
78890 static swig_cast_info _swigc__p_faiss__OPQMatrix[] = { {&_swigt__p_faiss__OPQMatrix, 0, 0, 0},{0, 0, 0, 0}};
78891 static swig_cast_info _swigc__p_faiss__OnDiskInvertedLists[] = { {&_swigt__p_faiss__OnDiskInvertedLists, 0, 0, 0},{0, 0, 0, 0}};
78892 static swig_cast_info _swigc__p_faiss__OnDiskInvertedLists__OngoingPrefetch[] = { {&_swigt__p_faiss__OnDiskInvertedLists__OngoingPrefetch, 0, 0, 0},{0, 0, 0, 0}};
78893 static swig_cast_info _swigc__p_faiss__OneRecallAtRCriterion[] = { {&_swigt__p_faiss__OneRecallAtRCriterion, 0, 0, 0},{0, 0, 0, 0}};
78894 static swig_cast_info _swigc__p_faiss__OperatingPoint[] = { {&_swigt__p_faiss__OperatingPoint, 0, 0, 0},{0, 0, 0, 0}};
78895 static swig_cast_info _swigc__p_faiss__OperatingPoints[] = { {&_swigt__p_faiss__OperatingPoints, 0, 0, 0},{0, 0, 0, 0}};
78896 static swig_cast_info _swigc__p_faiss__PCAMatrix[] = { {&_swigt__p_faiss__PCAMatrix, 0, 0, 0},{0, 0, 0, 0}};
78897 static swig_cast_info _swigc__p_faiss__ParameterRange[] = { {&_swigt__p_faiss__ParameterRange, 0, 0, 0},{0, 0, 0, 0}};
78898 static swig_cast_info _swigc__p_faiss__ParameterSpace[] = { {&_swigt__p_faiss__ParameterSpace, 0, 0, 0},{0, 0, 0, 0}};
78899 static swig_cast_info _swigc__p_faiss__PermutationObjective[] = { {&_swigt__p_faiss__PermutationObjective, 0, 0, 0}, {&_swigt__p_faiss__ReproduceDistancesObjective, _p_faiss__ReproduceDistancesObjectiveTo_p_faiss__PermutationObjective, 0, 0},{0, 0, 0, 0}};
78900 static swig_cast_info _swigc__p_faiss__PolysemousTraining[] = { {&_swigt__p_faiss__PolysemousTraining, 0, 0, 0},{0, 0, 0, 0}};
78901 static swig_cast_info _swigc__p_faiss__ProductQuantizer[] = { {&_swigt__p_faiss__ProductQuantizer, 0, 0, 0},{0, 0, 0, 0}};
78902 static swig_cast_info _swigc__p_faiss__RandomGenerator[] = { {&_swigt__p_faiss__RandomGenerator, 0, 0, 0},{0, 0, 0, 0}};
78903 static swig_cast_info _swigc__p_faiss__RandomRotationMatrix[] = { {&_swigt__p_faiss__RandomRotationMatrix, 0, 0, 0},{0, 0, 0, 0}};
78904 static swig_cast_info _swigc__p_faiss__RangeSearchPartialResult[] = { {&_swigt__p_faiss__RangeSearchPartialResult, 0, 0, 0},{0, 0, 0, 0}};
78905 static swig_cast_info _swigc__p_faiss__RangeSearchPartialResult__QueryResult[] = { {&_swigt__p_faiss__RangeSearchPartialResult__QueryResult, 0, 0, 0},{0, 0, 0, 0}};
78906 static swig_cast_info _swigc__p_faiss__RangeSearchResult[] = { {&_swigt__p_faiss__RangeSearchResult, 0, 0, 0},{0, 0, 0, 0}};
78907 static swig_cast_info _swigc__p_faiss__ReconstructFromNeighbors[] = { {&_swigt__p_faiss__ReconstructFromNeighbors, 0, 0, 0},{0, 0, 0, 0}};
78908 static swig_cast_info _swigc__p_faiss__RemapDimensionsTransform[] = { {&_swigt__p_faiss__RemapDimensionsTransform, 0, 0, 0},{0, 0, 0, 0}};
78909 static swig_cast_info _swigc__p_faiss__ReproduceDistancesObjective[] = { {&_swigt__p_faiss__ReproduceDistancesObjective, 0, 0, 0},{0, 0, 0, 0}};
78910 static swig_cast_info _swigc__p_faiss__ScalarQuantizer[] = { {&_swigt__p_faiss__ScalarQuantizer, 0, 0, 0},{0, 0, 0, 0}};
78911 static swig_cast_info _swigc__p_faiss__ScalarQuantizer__DistanceComputer[] = { {&_swigt__p_faiss__ScalarQuantizer__DistanceComputer, 0, 0, 0},{0, 0, 0, 0}};
78912 static swig_cast_info _swigc__p_faiss__SimulatedAnnealingOptimizer[] = { {&_swigt__p_faiss__SimulatedAnnealingOptimizer, 0, 0, 0},{0, 0, 0, 0}};
78913 static swig_cast_info _swigc__p_faiss__SimulatedAnnealingParameters[] = { {&_swigt__p_faiss__SimulatedAnnealingParameters, 0, 0, 0}, {&_swigt__p_faiss__PolysemousTraining, _p_faiss__PolysemousTrainingTo_p_faiss__SimulatedAnnealingParameters, 0, 0}, {&_swigt__p_faiss__SimulatedAnnealingOptimizer, _p_faiss__SimulatedAnnealingOptimizerTo_p_faiss__SimulatedAnnealingParameters, 0, 0},{0, 0, 0, 0}};
78914 static swig_cast_info _swigc__p_faiss__VectorIOReader[] = { {&_swigt__p_faiss__VectorIOReader, 0, 0, 0},{0, 0, 0, 0}};
78915 static swig_cast_info _swigc__p_faiss__VectorIOWriter[] = { {&_swigt__p_faiss__VectorIOWriter, 0, 0, 0},{0, 0, 0, 0}};
78916 static swig_cast_info _swigc__p_faiss__VectorTransform[] = { {&_swigt__p_faiss__RandomRotationMatrix, _p_faiss__RandomRotationMatrixTo_p_faiss__VectorTransform, 0, 0}, {&_swigt__p_faiss__PCAMatrix, _p_faiss__PCAMatrixTo_p_faiss__VectorTransform, 0, 0}, {&_swigt__p_faiss__OPQMatrix, _p_faiss__OPQMatrixTo_p_faiss__VectorTransform, 0, 0}, {&_swigt__p_faiss__VectorTransform, 0, 0, 0}, {&_swigt__p_faiss__LinearTransform, _p_faiss__LinearTransformTo_p_faiss__VectorTransform, 0, 0}, {&_swigt__p_faiss__RemapDimensionsTransform, _p_faiss__RemapDimensionsTransformTo_p_faiss__VectorTransform, 0, 0}, {&_swigt__p_faiss__NormalizationTransform, _p_faiss__NormalizationTransformTo_p_faiss__VectorTransform, 0, 0},{0, 0, 0, 0}};
78917 static swig_cast_info _swigc__p_faiss__VisitedTable[] = { {&_swigt__p_faiss__VisitedTable, 0, 0, 0},{0, 0, 0, 0}};
78918 static swig_cast_info _swigc__p_faiss__ivflib__SlidingIndexWindow[] = { {&_swigt__p_faiss__ivflib__SlidingIndexWindow, 0, 0, 0},{0, 0, 0, 0}};
78919 static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}};
78920 static swig_cast_info _swigc__p_idx_t[] = { {&_swigt__p_idx_t, 0, 0, 0},{0, 0, 0, 0}};
78921 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
78922 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
78923 static swig_cast_info _swigc__p_omp_lock_t[] = { {&_swigt__p_omp_lock_t, 0, 0, 0},{0, 0, 0, 0}};
78924 static swig_cast_info _swigc__p_p_faiss__IndexPreTransform[] = {{&_swigt__p_p_faiss__IndexPreTransform, 0, 0, 0},{0, 0, 0, 0}};
78925 static swig_cast_info _swigc__p_p_faiss__IndexIVF[] = {{&_swigt__p_p_faiss__IndexIVF, 0, 0, 0},{0, 0, 0, 0}};
78926 static swig_cast_info _swigc__p_p_faiss__IndexFlatL2[] = {{&_swigt__p_p_faiss__IndexFlatL2, 0, 0, 0},{0, 0, 0, 0}};
78927 static swig_cast_info _swigc__p_p_faiss__IndexHNSWFlat[] = {{&_swigt__p_p_faiss__IndexHNSWFlat, 0, 0, 0},{0, 0, 0, 0}};
78928 static swig_cast_info _swigc__p_p_faiss__Index2Layer[] = {{&_swigt__p_p_faiss__Index2Layer, 0, 0, 0},{0, 0, 0, 0}};
78929 static swig_cast_info _swigc__p_p_faiss__IndexHNSWPQ[] = {{&_swigt__p_p_faiss__IndexHNSWPQ, 0, 0, 0},{0, 0, 0, 0}};
78930 static swig_cast_info _swigc__p_p_faiss__IndexFlatIP[] = {{&_swigt__p_p_faiss__IndexFlatIP, 0, 0, 0},{0, 0, 0, 0}};
78931 static swig_cast_info _swigc__p_p_faiss__IndexHNSW[] = {{&_swigt__p_p_faiss__IndexHNSW, 0, 0, 0},{0, 0, 0, 0}};
78932 static swig_cast_info _swigc__p_p_faiss__IndexIVFFlat[] = {{&_swigt__p_p_faiss__IndexIVFFlat, 0, 0, 0},{0, 0, 0, 0}};
78933 static swig_cast_info _swigc__p_p_faiss__IndexLSH[] = {{&_swigt__p_p_faiss__IndexLSH, 0, 0, 0},{0, 0, 0, 0}};
78934 static swig_cast_info _swigc__p_p_faiss__IndexIVFPQR[] = {{&_swigt__p_p_faiss__IndexIVFPQR, 0, 0, 0},{0, 0, 0, 0}};
78935 static swig_cast_info _swigc__p_p_faiss__IndexIVFFlatDedup[] = {{&_swigt__p_p_faiss__IndexIVFFlatDedup, 0, 0, 0},{0, 0, 0, 0}};
78936 static swig_cast_info _swigc__p_p_faiss__IndexFlat[] = {{&_swigt__p_p_faiss__IndexFlat, 0, 0, 0},{0, 0, 0, 0}};
78937 static swig_cast_info _swigc__p_p_faiss__IndexFlat1D[] = {{&_swigt__p_p_faiss__IndexFlat1D, 0, 0, 0},{0, 0, 0, 0}};
78938 static swig_cast_info _swigc__p_p_faiss__IndexFlatL2BaseShift[] = {{&_swigt__p_p_faiss__IndexFlatL2BaseShift, 0, 0, 0},{0, 0, 0, 0}};
78939 static swig_cast_info _swigc__p_p_faiss__IndexShards[] = {{&_swigt__p_p_faiss__IndexShards, 0, 0, 0},{0, 0, 0, 0}};
78940 static swig_cast_info _swigc__p_p_faiss__IndexHNSW2Level[] = {{&_swigt__p_p_faiss__IndexHNSW2Level, 0, 0, 0},{0, 0, 0, 0}};
78941 static swig_cast_info _swigc__p_p_faiss__IndexIDMap2[] = {{&_swigt__p_p_faiss__IndexIDMap2, 0, 0, 0},{0, 0, 0, 0}};
78942 static swig_cast_info _swigc__p_p_faiss__IndexSplitVectors[] = {{&_swigt__p_p_faiss__IndexSplitVectors, 0, 0, 0},{0, 0, 0, 0}};
78943 static swig_cast_info _swigc__p_p_faiss__IndexRefineFlat[] = {{&_swigt__p_p_faiss__IndexRefineFlat, 0, 0, 0},{0, 0, 0, 0}};
78944 static swig_cast_info _swigc__p_p_faiss__IndexHNSWSQ[] = {{&_swigt__p_p_faiss__IndexHNSWSQ, 0, 0, 0},{0, 0, 0, 0}};
78945 static swig_cast_info _swigc__p_p_faiss__MultiIndexQuantizer2[] = {{&_swigt__p_p_faiss__MultiIndexQuantizer2, 0, 0, 0},{0, 0, 0, 0}};
78946 static swig_cast_info _swigc__p_p_faiss__IndexPQ[] = {{&_swigt__p_p_faiss__IndexPQ, 0, 0, 0},{0, 0, 0, 0}};
78947 static swig_cast_info _swigc__p_p_faiss__IndexIDMap[] = {{&_swigt__p_p_faiss__IndexIDMap, 0, 0, 0},{0, 0, 0, 0}};
78948 static swig_cast_info _swigc__p_p_faiss__IndexIVFPQ[] = {{&_swigt__p_p_faiss__IndexIVFPQ, 0, 0, 0},{0, 0, 0, 0}};
78949 static swig_cast_info _swigc__p_p_faiss__IndexIVFScalarQuantizer[] = {{&_swigt__p_p_faiss__IndexIVFScalarQuantizer, 0, 0, 0},{0, 0, 0, 0}};
78950 static swig_cast_info _swigc__p_p_faiss__IndexScalarQuantizer[] = {{&_swigt__p_p_faiss__IndexScalarQuantizer, 0, 0, 0},{0, 0, 0, 0}};
78951 static swig_cast_info _swigc__p_p_faiss__MultiIndexQuantizer[] = {{&_swigt__p_p_faiss__MultiIndexQuantizer, 0, 0, 0},{0, 0, 0, 0}};
78952 static swig_cast_info _swigc__p_p_faiss__Index[] = { {&_swigt__p_p_faiss__IndexPreTransform, _p_p_faiss__IndexPreTransformTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexIVF, _p_p_faiss__IndexIVFTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexFlatL2, _p_p_faiss__IndexFlatL2To_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexHNSWFlat, _p_p_faiss__IndexHNSWFlatTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__Index2Layer, _p_p_faiss__Index2LayerTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexHNSWPQ, _p_p_faiss__IndexHNSWPQTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexFlatIP, _p_p_faiss__IndexFlatIPTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexHNSW, _p_p_faiss__IndexHNSWTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexIVFFlat, _p_p_faiss__IndexIVFFlatTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexLSH, _p_p_faiss__IndexLSHTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexIVFPQR, _p_p_faiss__IndexIVFPQRTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexIVFFlatDedup, _p_p_faiss__IndexIVFFlatDedupTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexFlat, _p_p_faiss__IndexFlatTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexFlat1D, _p_p_faiss__IndexFlat1DTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexFlatL2BaseShift, _p_p_faiss__IndexFlatL2BaseShiftTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexShards, _p_p_faiss__IndexShardsTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexHNSW2Level, _p_p_faiss__IndexHNSW2LevelTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexIDMap2, _p_p_faiss__IndexIDMap2To_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexSplitVectors, _p_p_faiss__IndexSplitVectorsTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__Index, 0, 0, 0}, {&_swigt__p_p_faiss__IndexRefineFlat, _p_p_faiss__IndexRefineFlatTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexHNSWSQ, _p_p_faiss__IndexHNSWSQTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__MultiIndexQuantizer2, _p_p_faiss__MultiIndexQuantizer2To_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexPQ, _p_p_faiss__IndexPQTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexIDMap, _p_p_faiss__IndexIDMapTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexIVFPQ, _p_p_faiss__IndexIVFPQTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexIVFScalarQuantizer, _p_p_faiss__IndexIVFScalarQuantizerTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexScalarQuantizer, _p_p_faiss__IndexScalarQuantizerTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__MultiIndexQuantizer, _p_p_faiss__MultiIndexQuantizerTo_p_p_faiss__Index, 0, 0},{0, 0, 0, 0}};
78953 static swig_cast_info _swigc__p_p_faiss__ArrayInvertedLists[] = {{&_swigt__p_p_faiss__ArrayInvertedLists, 0, 0, 0},{0, 0, 0, 0}};
78954 static swig_cast_info _swigc__p_p_faiss__ConcatenatedInvertedLists[] = {{&_swigt__p_p_faiss__ConcatenatedInvertedLists, 0, 0, 0},{0, 0, 0, 0}};
78955 static swig_cast_info _swigc__p_p_faiss__OnDiskInvertedLists[] = {{&_swigt__p_p_faiss__OnDiskInvertedLists, 0, 0, 0},{0, 0, 0, 0}};
78956 static swig_cast_info _swigc__p_p_faiss__InvertedLists[] = { {&_swigt__p_p_faiss__InvertedLists, 0, 0, 0}, {&_swigt__p_p_faiss__ArrayInvertedLists, _p_p_faiss__ArrayInvertedListsTo_p_p_faiss__InvertedLists, 0, 0}, {&_swigt__p_p_faiss__ConcatenatedInvertedLists, _p_p_faiss__ConcatenatedInvertedListsTo_p_p_faiss__InvertedLists, 0, 0}, {&_swigt__p_p_faiss__OnDiskInvertedLists, _p_p_faiss__OnDiskInvertedListsTo_p_p_faiss__InvertedLists, 0, 0},{0, 0, 0, 0}};
78957 static swig_cast_info _swigc__p_p_faiss__RandomRotationMatrix[] = {{&_swigt__p_p_faiss__RandomRotationMatrix, 0, 0, 0},{0, 0, 0, 0}};
78958 static swig_cast_info _swigc__p_p_faiss__PCAMatrix[] = {{&_swigt__p_p_faiss__PCAMatrix, 0, 0, 0},{0, 0, 0, 0}};
78959 static swig_cast_info _swigc__p_p_faiss__OPQMatrix[] = {{&_swigt__p_p_faiss__OPQMatrix, 0, 0, 0},{0, 0, 0, 0}};
78960 static swig_cast_info _swigc__p_p_faiss__LinearTransform[] = {{&_swigt__p_p_faiss__LinearTransform, 0, 0, 0},{0, 0, 0, 0}};
78961 static swig_cast_info _swigc__p_p_faiss__RemapDimensionsTransform[] = {{&_swigt__p_p_faiss__RemapDimensionsTransform, 0, 0, 0},{0, 0, 0, 0}};
78962 static swig_cast_info _swigc__p_p_faiss__NormalizationTransform[] = {{&_swigt__p_p_faiss__NormalizationTransform, 0, 0, 0},{0, 0, 0, 0}};
78963 static swig_cast_info _swigc__p_p_faiss__VectorTransform[] = { {&_swigt__p_p_faiss__RandomRotationMatrix, _p_p_faiss__RandomRotationMatrixTo_p_p_faiss__VectorTransform, 0, 0}, {&_swigt__p_p_faiss__PCAMatrix, _p_p_faiss__PCAMatrixTo_p_p_faiss__VectorTransform, 0, 0}, {&_swigt__p_p_faiss__OPQMatrix, _p_p_faiss__OPQMatrixTo_p_p_faiss__VectorTransform, 0, 0}, {&_swigt__p_p_faiss__VectorTransform, 0, 0, 0}, {&_swigt__p_p_faiss__LinearTransform, _p_p_faiss__LinearTransformTo_p_p_faiss__VectorTransform, 0, 0}, {&_swigt__p_p_faiss__RemapDimensionsTransform, _p_p_faiss__RemapDimensionsTransformTo_p_p_faiss__VectorTransform, 0, 0}, {&_swigt__p_p_faiss__NormalizationTransform, _p_p_faiss__NormalizationTransformTo_p_p_faiss__VectorTransform, 0, 0},{0, 0, 0, 0}};
78964 static swig_cast_info _swigc__p_std__listT_faiss__OnDiskInvertedLists__Slot_t[] = { {&_swigt__p_std__listT_faiss__OnDiskInvertedLists__Slot_t, 0, 0, 0},{0, 0, 0, 0}};
78965 static swig_cast_info _swigc__p_std__mt19937[] = { {&_swigt__p_std__mt19937, 0, 0, 0},{0, 0, 0, 0}};
78966 static swig_cast_info _swigc__p_std__pairT_float_int_t[] = { {&_swigt__p_std__pairT_float_int_t, 0, 0, 0},{0, 0, 0, 0}};
78967 static swig_cast_info _swigc__p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t[] = { {&_swigt__p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t, 0, 0, 0},{0, 0, 0, 0}};
78968 static swig_cast_info _swigc__p_std__priority_queueT_std__pairT_float_int_t_t[] = { {&_swigt__p_std__priority_queueT_std__pairT_float_int_t_t, 0, 0, 0},{0, 0, 0, 0}};
78969 static swig_cast_info _swigc__p_std__unordered_mapT_long_long_t[] = { {&_swigt__p_std__unordered_mapT_long_long_t, 0, 0, 0},{0, 0, 0, 0}};
78970 static swig_cast_info _swigc__p_std__unordered_multimapT_long_long_t[] = { {&_swigt__p_std__unordered_multimapT_long_long_t, 0, 0, 0},{0, 0, 0, 0}};
78971 static swig_cast_info _swigc__p_std__vectorT_char_t[] = { {&_swigt__p_std__vectorT_char_t, 0, 0, 0},{0, 0, 0, 0}};
78972 static swig_cast_info _swigc__p_std__vectorT_double_t[] = { {&_swigt__p_std__vectorT_double_t, 0, 0, 0},{0, 0, 0, 0}};
78973 static swig_cast_info _swigc__p_std__vectorT_faiss__BufferList__Buffer_t[] = { {&_swigt__p_std__vectorT_faiss__BufferList__Buffer_t, 0, 0, 0},{0, 0, 0, 0}};
78974 static swig_cast_info _swigc__p_std__vectorT_faiss__HNSW__NodeDistFarther_t[] = { {&_swigt__p_std__vectorT_faiss__HNSW__NodeDistFarther_t, 0, 0, 0},{0, 0, 0, 0}};
78975 static swig_cast_info _swigc__p_std__vectorT_faiss__Index_p_t[] = { {&_swigt__p_std__vectorT_faiss__Index_p_t, 0, 0, 0},{0, 0, 0, 0}};
78976 static swig_cast_info _swigc__p_std__vectorT_faiss__InvertedLists_const_p_t[] = { {&_swigt__p_std__vectorT_faiss__InvertedLists_const_p_t, 0, 0, 0},{0, 0, 0, 0}};
78977 static swig_cast_info _swigc__p_std__vectorT_faiss__InvertedLists_p_t[] = { {&_swigt__p_std__vectorT_faiss__InvertedLists_p_t, 0, 0, 0},{0, 0, 0, 0}};
78978 static swig_cast_info _swigc__p_std__vectorT_faiss__OnDiskInvertedLists__List_t[] = { {&_swigt__p_std__vectorT_faiss__OnDiskInvertedLists__List_t, 0, 0, 0},{0, 0, 0, 0}};
78979 static swig_cast_info _swigc__p_std__vectorT_faiss__OperatingPoint_t[] = { {&_swigt__p_std__vectorT_faiss__OperatingPoint_t, 0, 0, 0},{0, 0, 0, 0}};
78980 static swig_cast_info _swigc__p_std__vectorT_faiss__ParameterRange_t[] = { {&_swigt__p_std__vectorT_faiss__ParameterRange_t, 0, 0, 0},{0, 0, 0, 0}};
78981 static swig_cast_info _swigc__p_std__vectorT_faiss__RangeSearchPartialResult__QueryResult_t[] = { {&_swigt__p_std__vectorT_faiss__RangeSearchPartialResult__QueryResult_t, 0, 0, 0},{0, 0, 0, 0}};
78982 static swig_cast_info _swigc__p_std__vectorT_faiss__VectorTransform_p_t[] = { {&_swigt__p_std__vectorT_faiss__VectorTransform_p_t, 0, 0, 0},{0, 0, 0, 0}};
78983 static swig_cast_info _swigc__p_std__vectorT_float_t[] = { {&_swigt__p_std__vectorT_float_t, 0, 0, 0},{0, 0, 0, 0}};
78984 static swig_cast_info _swigc__p_std__vectorT_int_t[] = { {&_swigt__p_std__vectorT_int_t, 0, 0, 0},{0, 0, 0, 0}};
78985 static swig_cast_info _swigc__p_std__vectorT_long_t[] = { {&_swigt__p_std__vectorT_long_t, 0, 0, 0},{0, 0, 0, 0}};
78986 static swig_cast_info _swigc__p_std__vectorT_omp_lock_t_t[] = { {&_swigt__p_std__vectorT_omp_lock_t_t, 0, 0, 0},{0, 0, 0, 0}};
78987 static swig_cast_info _swigc__p_std__vectorT_std__vectorT_float_t_t[] = { {&_swigt__p_std__vectorT_std__vectorT_float_t_t, 0, 0, 0},{0, 0, 0, 0}};
78988 static swig_cast_info _swigc__p_std__vectorT_std__vectorT_long_t_t[] = { {&_swigt__p_std__vectorT_std__vectorT_long_t_t, 0, 0, 0},{0, 0, 0, 0}};
78989 static swig_cast_info _swigc__p_std__vectorT_std__vectorT_uint8_t_t_t[] = { {&_swigt__p_std__vectorT_std__vectorT_uint8_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
78990 static swig_cast_info _swigc__p_std__vectorT_std__vectorT_unsigned_long_t_t[] = { {&_swigt__p_std__vectorT_std__vectorT_unsigned_long_t_t, 0, 0, 0},{0, 0, 0, 0}};
78991 static swig_cast_info _swigc__p_std__vectorT_unsigned_char_t[] = { {&_swigt__p_std__vectorT_unsigned_char_t, 0, 0, 0},{0, 0, 0, 0}};
78992 static swig_cast_info _swigc__p_std__vectorT_unsigned_long_t[] = { {&_swigt__p_std__vectorT_unsigned_long_t, 0, 0, 0},{0, 0, 0, 0}};
78993 static swig_cast_info _swigc__p_storage_idx_t[] = { {&_swigt__p_storage_idx_t, 0, 0, 0},{0, 0, 0, 0}};
78994 static swig_cast_info _swigc__p_uint32_t[] = { {&_swigt__p_uint32_t, 0, 0, 0},{0, 0, 0, 0}};
78995 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
78996 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
78997 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
79002 _swigc__p_MapLong2Long,
79008 _swigc__p_faiss__ArrayInvertedLists,
79009 _swigc__p_faiss__AutoTuneCriterion,
79010 _swigc__p_faiss__BinaryInvertedListScanner,
79011 _swigc__p_faiss__BufferList,
79012 _swigc__p_faiss__Cloner,
79013 _swigc__p_faiss__Clustering,
79014 _swigc__p_faiss__ClusteringParameters,
79015 _swigc__p_faiss__ConcatenatedInvertedLists,
79016 _swigc__p_faiss__GenHammingComputer16,
79017 _swigc__p_faiss__GenHammingComputer32,
79018 _swigc__p_faiss__GenHammingComputer8,
79019 _swigc__p_faiss__GenHammingComputerM8,
79020 _swigc__p_faiss__HNSW,
79021 _swigc__p_faiss__HNSWStats,
79022 _swigc__p_faiss__HNSW__DistanceComputer,
79023 _swigc__p_faiss__HNSW__MinimaxHeap,
79024 _swigc__p_faiss__HammingComputer16,
79025 _swigc__p_faiss__HammingComputer20,
79026 _swigc__p_faiss__HammingComputer32,
79027 _swigc__p_faiss__HammingComputer4,
79028 _swigc__p_faiss__HammingComputer64,
79029 _swigc__p_faiss__HammingComputer8,
79030 _swigc__p_faiss__HammingComputerDefault,
79031 _swigc__p_faiss__HammingComputerM4,
79032 _swigc__p_faiss__HammingComputerM8,
79033 _swigc__p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t,
79034 _swigc__p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t,
79035 _swigc__p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t,
79036 _swigc__p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t,
79037 _swigc__p_faiss__IDSelector,
79038 _swigc__p_faiss__IDSelectorBatch,
79039 _swigc__p_faiss__IDSelectorRange,
79040 _swigc__p_faiss__IOReader,
79041 _swigc__p_faiss__IOWriter,
79042 _swigc__p_faiss__IVFPQSearchParameters,
79043 _swigc__p_faiss__IVFSearchParameters,
79044 _swigc__p_faiss__Index,
79045 _swigc__p_faiss__Index2Layer,
79046 _swigc__p_faiss__IndexBinary,
79047 _swigc__p_faiss__IndexBinaryFlat,
79048 _swigc__p_faiss__IndexBinaryFromFloat,
79049 _swigc__p_faiss__IndexBinaryHNSW,
79050 _swigc__p_faiss__IndexBinaryIVF,
79051 _swigc__p_faiss__IndexFlat,
79052 _swigc__p_faiss__IndexFlat1D,
79053 _swigc__p_faiss__IndexFlatIP,
79054 _swigc__p_faiss__IndexFlatL2,
79055 _swigc__p_faiss__IndexFlatL2BaseShift,
79056 _swigc__p_faiss__IndexHNSW,
79057 _swigc__p_faiss__IndexHNSW2Level,
79058 _swigc__p_faiss__IndexHNSWFlat,
79059 _swigc__p_faiss__IndexHNSWPQ,
79060 _swigc__p_faiss__IndexHNSWSQ,
79061 _swigc__p_faiss__IndexIDMap,
79062 _swigc__p_faiss__IndexIDMap2,
79063 _swigc__p_faiss__IndexIVF,
79064 _swigc__p_faiss__IndexIVFFlat,
79065 _swigc__p_faiss__IndexIVFFlatDedup,
79066 _swigc__p_faiss__IndexIVFPQ,
79067 _swigc__p_faiss__IndexIVFPQR,
79068 _swigc__p_faiss__IndexIVFPQStats,
79069 _swigc__p_faiss__IndexIVFScalarQuantizer,
79070 _swigc__p_faiss__IndexIVFStats,
79071 _swigc__p_faiss__IndexLSH,
79072 _swigc__p_faiss__IndexPQ,
79073 _swigc__p_faiss__IndexPQStats,
79074 _swigc__p_faiss__IndexPreTransform,
79075 _swigc__p_faiss__IndexRefineFlat,
79076 _swigc__p_faiss__IndexScalarQuantizer,
79077 _swigc__p_faiss__IndexShards,
79078 _swigc__p_faiss__IndexSplitVectors,
79079 _swigc__p_faiss__IntersectionCriterion,
79080 _swigc__p_faiss__InvertedListScanner,
79081 _swigc__p_faiss__InvertedLists,
79082 _swigc__p_faiss__Level1Quantizer,
79083 _swigc__p_faiss__LinearTransform,
79084 _swigc__p_faiss__LockLevels,
79085 _swigc__p_faiss__MultiIndexQuantizer,
79086 _swigc__p_faiss__MultiIndexQuantizer2,
79087 _swigc__p_faiss__NormalizationTransform,
79088 _swigc__p_faiss__OPQMatrix,
79089 _swigc__p_faiss__OnDiskInvertedLists,
79090 _swigc__p_faiss__OnDiskInvertedLists__OngoingPrefetch,
79091 _swigc__p_faiss__OneRecallAtRCriterion,
79092 _swigc__p_faiss__OperatingPoint,
79093 _swigc__p_faiss__OperatingPoints,
79094 _swigc__p_faiss__PCAMatrix,
79095 _swigc__p_faiss__ParameterRange,
79096 _swigc__p_faiss__ParameterSpace,
79097 _swigc__p_faiss__PermutationObjective,
79098 _swigc__p_faiss__PolysemousTraining,
79099 _swigc__p_faiss__ProductQuantizer,
79100 _swigc__p_faiss__RandomGenerator,
79101 _swigc__p_faiss__RandomRotationMatrix,
79102 _swigc__p_faiss__RangeSearchPartialResult,
79103 _swigc__p_faiss__RangeSearchPartialResult__QueryResult,
79104 _swigc__p_faiss__RangeSearchResult,
79105 _swigc__p_faiss__ReconstructFromNeighbors,
79106 _swigc__p_faiss__RemapDimensionsTransform,
79107 _swigc__p_faiss__ReproduceDistancesObjective,
79108 _swigc__p_faiss__ScalarQuantizer,
79109 _swigc__p_faiss__ScalarQuantizer__DistanceComputer,
79110 _swigc__p_faiss__SimulatedAnnealingOptimizer,
79111 _swigc__p_faiss__SimulatedAnnealingParameters,
79112 _swigc__p_faiss__VectorIOReader,
79113 _swigc__p_faiss__VectorIOWriter,
79114 _swigc__p_faiss__VectorTransform,
79115 _swigc__p_faiss__VisitedTable,
79116 _swigc__p_faiss__ivflib__SlidingIndexWindow,
79121 _swigc__p_omp_lock_t,
79122 _swigc__p_p_faiss__ArrayInvertedLists,
79123 _swigc__p_p_faiss__ConcatenatedInvertedLists,
79124 _swigc__p_p_faiss__Index,
79125 _swigc__p_p_faiss__Index2Layer,
79126 _swigc__p_p_faiss__IndexFlat,
79127 _swigc__p_p_faiss__IndexFlat1D,
79128 _swigc__p_p_faiss__IndexFlatIP,
79129 _swigc__p_p_faiss__IndexFlatL2,
79130 _swigc__p_p_faiss__IndexFlatL2BaseShift,
79131 _swigc__p_p_faiss__IndexHNSW,
79132 _swigc__p_p_faiss__IndexHNSW2Level,
79133 _swigc__p_p_faiss__IndexHNSWFlat,
79134 _swigc__p_p_faiss__IndexHNSWPQ,
79135 _swigc__p_p_faiss__IndexHNSWSQ,
79136 _swigc__p_p_faiss__IndexIDMap,
79137 _swigc__p_p_faiss__IndexIDMap2,
79138 _swigc__p_p_faiss__IndexIVF,
79139 _swigc__p_p_faiss__IndexIVFFlat,
79140 _swigc__p_p_faiss__IndexIVFFlatDedup,
79141 _swigc__p_p_faiss__IndexIVFPQ,
79142 _swigc__p_p_faiss__IndexIVFPQR,
79143 _swigc__p_p_faiss__IndexIVFScalarQuantizer,
79144 _swigc__p_p_faiss__IndexLSH,
79145 _swigc__p_p_faiss__IndexPQ,
79146 _swigc__p_p_faiss__IndexPreTransform,
79147 _swigc__p_p_faiss__IndexRefineFlat,
79148 _swigc__p_p_faiss__IndexScalarQuantizer,
79149 _swigc__p_p_faiss__IndexShards,
79150 _swigc__p_p_faiss__IndexSplitVectors,
79151 _swigc__p_p_faiss__InvertedLists,
79152 _swigc__p_p_faiss__LinearTransform,
79153 _swigc__p_p_faiss__MultiIndexQuantizer,
79154 _swigc__p_p_faiss__MultiIndexQuantizer2,
79155 _swigc__p_p_faiss__NormalizationTransform,
79156 _swigc__p_p_faiss__OPQMatrix,
79157 _swigc__p_p_faiss__OnDiskInvertedLists,
79158 _swigc__p_p_faiss__PCAMatrix,
79159 _swigc__p_p_faiss__RandomRotationMatrix,
79160 _swigc__p_p_faiss__RemapDimensionsTransform,
79161 _swigc__p_p_faiss__VectorTransform,
79162 _swigc__p_std__listT_faiss__OnDiskInvertedLists__Slot_t,
79163 _swigc__p_std__mt19937,
79164 _swigc__p_std__pairT_float_int_t,
79165 _swigc__p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t,
79166 _swigc__p_std__priority_queueT_std__pairT_float_int_t_t,
79167 _swigc__p_std__unordered_mapT_long_long_t,
79168 _swigc__p_std__unordered_multimapT_long_long_t,
79169 _swigc__p_std__vectorT_char_t,
79170 _swigc__p_std__vectorT_double_t,
79171 _swigc__p_std__vectorT_faiss__BufferList__Buffer_t,
79172 _swigc__p_std__vectorT_faiss__HNSW__NodeDistFarther_t,
79173 _swigc__p_std__vectorT_faiss__Index_p_t,
79174 _swigc__p_std__vectorT_faiss__InvertedLists_const_p_t,
79175 _swigc__p_std__vectorT_faiss__InvertedLists_p_t,
79176 _swigc__p_std__vectorT_faiss__OnDiskInvertedLists__List_t,
79177 _swigc__p_std__vectorT_faiss__OperatingPoint_t,
79178 _swigc__p_std__vectorT_faiss__ParameterRange_t,
79179 _swigc__p_std__vectorT_faiss__RangeSearchPartialResult__QueryResult_t,
79180 _swigc__p_std__vectorT_faiss__VectorTransform_p_t,
79181 _swigc__p_std__vectorT_float_t,
79182 _swigc__p_std__vectorT_int_t,
79183 _swigc__p_std__vectorT_long_t,
79184 _swigc__p_std__vectorT_omp_lock_t_t,
79185 _swigc__p_std__vectorT_std__vectorT_float_t_t,
79186 _swigc__p_std__vectorT_std__vectorT_long_t_t,
79187 _swigc__p_std__vectorT_std__vectorT_uint8_t_t_t,
79188 _swigc__p_std__vectorT_std__vectorT_unsigned_long_t_t,
79189 _swigc__p_std__vectorT_unsigned_char_t,
79190 _swigc__p_std__vectorT_unsigned_long_t,
79191 _swigc__p_storage_idx_t,
79192 _swigc__p_uint32_t,
79193 _swigc__p_unsigned_char,
79194 _swigc__p_unsigned_long,
79202 {0, 0, 0, 0.0, 0, 0}};
79256 #define SWIGRUNTIME_DEBUG
79261 SWIG_InitializeModule(
void *clientdata) {
79267 if (swig_module.next==0) {
79269 swig_module.type_initial = swig_type_initial;
79270 swig_module.cast_initial = swig_cast_initial;
79271 swig_module.next = &swig_module;
79278 module_head = SWIG_GetModule(clientdata);
79279 if (!module_head) {
79282 SWIG_SetModule(clientdata, &swig_module);
79287 if (iter==&swig_module) {
79292 }
while (iter!= module_head);
79295 swig_module.next = module_head->next;
79296 module_head->next = &swig_module;
79303 if (init == 0)
return;
79306 #ifdef SWIGRUNTIME_DEBUG
79307 printf(
"SWIG_InitializeModule: size %d\n", swig_module.size);
79309 for (i = 0; i < swig_module.size; ++i) {
79314 #ifdef SWIGRUNTIME_DEBUG
79315 printf(
"SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
79319 if (swig_module.next != &swig_module) {
79320 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
79324 #ifdef SWIGRUNTIME_DEBUG
79325 printf(
"SWIG_InitializeModule: found type %s\n", type->name);
79327 if (swig_module.type_initial[i]->clientdata) {
79328 type->clientdata = swig_module.type_initial[i]->clientdata;
79329 #ifdef SWIGRUNTIME_DEBUG
79330 printf(
"SWIG_InitializeModule: found and overwrite type %s \n", type->name);
79334 type = swig_module.type_initial[i];
79338 cast = swig_module.cast_initial[i];
79339 while (cast->type) {
79342 #ifdef SWIGRUNTIME_DEBUG
79343 printf(
"SWIG_InitializeModule: look cast %s\n", cast->type->name);
79345 if (swig_module.next != &swig_module) {
79346 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
79347 #ifdef SWIGRUNTIME_DEBUG
79348 if (ret) printf(
"SWIG_InitializeModule: found cast %s\n", ret->name);
79352 if (type == swig_module.type_initial[i]) {
79353 #ifdef SWIGRUNTIME_DEBUG
79354 printf(
"SWIG_InitializeModule: skip old type %s\n", ret->name);
79361 #ifdef SWIGRUNTIME_DEBUG
79362 if (ocast) printf(
"SWIG_InitializeModule: skip old cast %s\n", ret->name);
79364 if (!ocast) ret = 0;
79369 #ifdef SWIGRUNTIME_DEBUG
79370 printf(
"SWIG_InitializeModule: adding cast %s\n", cast->type->name);
79373 type->cast->prev = cast;
79374 cast->next = type->cast;
79381 swig_module.types[i] = type;
79383 swig_module.types[i] = 0;
79385 #ifdef SWIGRUNTIME_DEBUG
79386 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
79387 for (i = 0; i < swig_module.size; ++i) {
79390 printf(
"SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
79391 while (cast->type) {
79392 printf(
"SWIG_InitializeModule: cast type %s\n", cast->type->name);
79396 printf(
"---- Total casts: %d\n",j);
79398 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
79408 SWIG_PropagateClientData(
void) {
79411 static int init_run = 0;
79413 if (init_run)
return;
79416 for (i = 0; i < swig_module.size; i++) {
79417 if (swig_module.types[i]->clientdata) {
79418 equiv = swig_module.types[i]->cast;
79420 if (!equiv->converter) {
79421 if (equiv->type && !equiv->type->clientdata)
79422 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
79424 equiv = equiv->next;
79445 #define SWIG_newvarlink() SWIG_Python_newvarlink()
79446 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
79447 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
79455 PyObject *(*get_attr)(void);
79456 int (*set_attr)(PyObject *);
79465 SWIGINTERN PyObject *
79467 #if PY_VERSION_HEX >= 0x03000000
79468 return PyUnicode_InternFromString(
"<Swig global variables>");
79470 return PyString_FromString(
"<Swig global variables>");
79474 SWIGINTERN PyObject *
79476 #if PY_VERSION_HEX >= 0x03000000
79477 PyObject *str = PyUnicode_InternFromString(
"(");
79481 for (var = v->vars; var; var=var->next) {
79482 tail = PyUnicode_FromString(var->name);
79483 joined = PyUnicode_Concat(str, tail);
79488 tail = PyUnicode_InternFromString(
", ");
79489 joined = PyUnicode_Concat(str, tail);
79495 tail = PyUnicode_InternFromString(
")");
79496 joined = PyUnicode_Concat(str, tail);
79501 PyObject *str = PyString_FromString(
"(");
79503 for (var = v->vars; var; var=var->next) {
79504 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
79505 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(
", "));
79507 PyString_ConcatAndDel(&str,PyString_FromString(
")"));
79515 PyObject *str = swig_varlink_str(v);
79516 fprintf(fp,
"Swig global variables ");
79517 fprintf(fp,
"%s\n", tmp = SWIG_Python_str_AsChar(str));
79518 SWIG_Python_str_DelForPy3(tmp);
79534 SWIGINTERN PyObject *
79536 PyObject *res = NULL;
79539 if (strcmp(var->name,n) == 0) {
79540 res = (*var->get_attr)();
79545 if (res == NULL && !PyErr_Occurred()) {
79546 PyErr_Format(PyExc_AttributeError,
"Unknown C global variable '%s'", n);
79556 if (strcmp(var->name,n) == 0) {
79557 res = (*var->set_attr)(p);
79562 if (res == 1 && !PyErr_Occurred()) {
79563 PyErr_Format(PyExc_AttributeError,
"Unknown C global variable '%s'", n);
79568 SWIGINTERN PyTypeObject*
79569 swig_varlink_type(
void) {
79570 static char varlink__doc__[] =
"Swig var link object";
79571 static PyTypeObject varlink_type;
79572 static int type_init = 0;
79574 const PyTypeObject tmp = {
79575 #if PY_VERSION_HEX >= 0x03000000
79576 PyVarObject_HEAD_INIT(NULL, 0)
79578 PyObject_HEAD_INIT(NULL)
79581 (
char *)
"swigvarlink",
79584 (destructor) swig_varlink_dealloc,
79585 (printfunc) swig_varlink_print,
79586 (getattrfunc) swig_varlink_getattr,
79587 (setattrfunc) swig_varlink_setattr,
79589 (reprfunc) swig_varlink_repr,
79595 (reprfunc) swig_varlink_str,
79605 #if PY_VERSION_HEX >= 0x02020000
79606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
79608 #if PY_VERSION_HEX >= 0x02030000
79611 #if PY_VERSION_HEX >= 0x02060000
79614 #if PY_VERSION_HEX >= 0x03040000
79617 #ifdef COUNT_ALLOCS
79621 #if PY_VERSION_HEX >= 0x02050000
79627 varlink_type = tmp;
79629 #if PY_VERSION_HEX < 0x02020000
79630 varlink_type.ob_type = &PyType_Type;
79632 if (PyType_Ready(&varlink_type) < 0)
79636 return &varlink_type;
79640 SWIGINTERN PyObject *
79641 SWIG_Python_newvarlink(
void) {
79646 return ((PyObject*) result);
79650 SWIG_Python_addvarlink(PyObject *p,
char *name, PyObject *(*get_attr)(
void),
int (*set_attr)(PyObject *p)) {
79654 size_t size = strlen(name)+1;
79655 gv->name = (
char *)malloc(size);
79657 strncpy(gv->name,name,size);
79658 gv->get_attr = get_attr;
79659 gv->set_attr = set_attr;
79660 gv->next = v->vars;
79666 SWIGINTERN PyObject *
79667 SWIG_globals(
void) {
79668 static PyObject *_SWIG_globals = 0;
79669 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
79670 return _SWIG_globals;
79679 SWIG_Python_InstallConstants(PyObject *d,
swig_const_info constants[]) {
79682 for (i = 0; constants[i].type; ++i) {
79683 switch(constants[i].type) {
79684 case SWIG_PY_POINTER:
79685 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
79687 case SWIG_PY_BINARY:
79688 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
79695 PyDict_SetItemString(d, constants[i].name, obj);
79706 SWIG_Python_FixMethods(PyMethodDef *methods,
79711 for (i = 0; methods[i].ml_name; ++i) {
79712 const char *c = methods[i].ml_doc;
79714 c = strstr(c,
"swig_ptr: ");
79718 const char *name = c + 10;
79719 for (j = 0; const_table[j].type; ++j) {
79720 if (strncmp(const_table[j].name, name,
79721 strlen(const_table[j].name)) == 0) {
79722 ci = &(const_table[j]);
79727 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
79729 size_t shift = (ci->ptype) - types;
79731 size_t ldoc = (c - methods[i].ml_doc);
79732 size_t lptr = strlen(ty->name)+2*
sizeof(
void*)+2;
79733 char *ndoc = (
char*)malloc(ldoc + lptr + 10);
79736 strncpy(buff, methods[i].ml_doc, ldoc);
79738 strncpy(buff,
"swig_ptr: ", 10);
79740 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
79741 methods[i].ml_doc = ndoc;
79762 #if PY_VERSION_HEX >= 0x03000000
79768 PyObject *m, *d, *md;
79769 #if PY_VERSION_HEX >= 0x03000000
79770 static struct PyModuleDef SWIG_module = {
79771 # if PY_VERSION_HEX >= 0x03020000
79772 PyModuleDef_HEAD_INIT,
79775 PyObject_HEAD_INIT(NULL)
79781 (
char *) SWIG_name,
79792 #if defined(SWIGPYTHON_BUILTIN)
79794 0, 0, 0, 0, 0, 0, 0
79796 static PyGetSetDef this_getset_def = {
79797 (
char *)
"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
79799 static SwigPyGetSet thisown_getset_closure = {
79800 (PyCFunction) SwigPyObject_own,
79801 (PyCFunction) SwigPyObject_own
79803 static PyGetSetDef thisown_getset_def = {
79804 (
char *)
"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
79806 PyTypeObject *builtin_pytype;
79807 int builtin_base_count;
79810 PyGetSetDescrObject *static_getset;
79811 PyTypeObject *metatype;
79812 PyTypeObject *swigpyobject;
79814 PyObject *public_interface, *public_symbol;
79815 PyObject *this_descr;
79816 PyObject *thisown_descr;
79817 PyObject *
self = 0;
79820 (void)builtin_pytype;
79821 (void)builtin_base_count;
79822 (void)builtin_basetype;
79824 (void)static_getset;
79828 metatype = SwigPyObjectType();
79833 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
79835 #if PY_VERSION_HEX >= 0x03000000
79836 m = PyModule_Create(&SWIG_module);
79838 m = Py_InitModule((
char *) SWIG_name, SwigMethods);
79841 md = d = PyModule_GetDict(m);
79844 SWIG_InitializeModule(0);
79846 #ifdef SWIGPYTHON_BUILTIN
79847 swigpyobject = SwigPyObject_TypeOnce();
79849 SwigPyObject_stype = SWIG_MangledTypeQuery(
"_p_SwigPyObject");
79850 assert(SwigPyObject_stype);
79853 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
79854 SwigPyObject_clientdata.pytype = swigpyobject;
79855 }
else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) {
79856 PyErr_SetString(PyExc_RuntimeError,
"Import error: attempted to load two incompatible swig-generated modules.");
79857 # if PY_VERSION_HEX >= 0x03000000
79865 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
79869 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
79870 (void)thisown_descr;
79872 public_interface = PyList_New(0);
79874 (void)public_symbol;
79876 PyDict_SetItemString(md,
"__all__", public_interface);
79877 Py_DECREF(public_interface);
79878 for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
79879 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
79880 for (i = 0; swig_const_table[i].name != 0; ++i)
79881 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
79884 SWIG_InstallConstants(d,swig_const_table);
79886 PyDict_SetItemString(md,(
char *)
"cvar", SWIG_globals());
79887 SWIG_addvarlink(SWIG_globals(),(
char *)
"hamming_batch_size",Swig_var_hamming_batch_size_get, Swig_var_hamming_batch_size_set);
79888 SWIG_addvarlink(SWIG_globals(),(
char *)
"distance_compute_blas_threshold",Swig_var_distance_compute_blas_threshold_get, Swig_var_distance_compute_blas_threshold_set);
79889 SWIG_Python_SetConstant(d,
"FAISS_VERSION_MAJOR",SWIG_From_int(static_cast< int >(1)));
79890 SWIG_Python_SetConstant(d,
"FAISS_VERSION_MINOR",SWIG_From_int(static_cast< int >(4)));
79891 SWIG_Python_SetConstant(d,
"FAISS_VERSION_PATCH",SWIG_From_int(static_cast< int >(0)));
79892 SWIG_Python_SetConstant(d,
"METRIC_INNER_PRODUCT",SWIG_From_int(static_cast< int >(faiss::METRIC_INNER_PRODUCT)));
79893 SWIG_Python_SetConstant(d,
"METRIC_L2",SWIG_From_int(static_cast< int >(faiss::METRIC_L2)));
79894 SWIG_Python_SetConstant(d,
"ProductQuantizer_Train_default",SWIG_From_int(static_cast< int >(faiss::ProductQuantizer::Train_default)));
79899 SWIG_Python_SetConstant(d,
"PolysemousTraining_OT_None",SWIG_From_int(static_cast< int >(faiss::PolysemousTraining::OT_None)));
79902 SWIG_Python_SetConstant(d,
"IndexPQ_ST_PQ",SWIG_From_int(static_cast< int >(
faiss::IndexPQ::ST_PQ)));
79903 SWIG_Python_SetConstant(d,
"IndexPQ_ST_HE",SWIG_From_int(static_cast< int >(
faiss::IndexPQ::ST_HE)));
79908 SWIG_addvarlink(SWIG_globals(),(
char *)
"indexPQ_stats",Swig_var_indexPQ_stats_get, Swig_var_indexPQ_stats_set);
79909 SWIG_addvarlink(SWIG_globals(),(
char *)
"indexIVF_stats",Swig_var_indexIVF_stats_get, Swig_var_indexIVF_stats_set);
79913 SWIG_Python_SetConstant(d,
"ScalarQuantizer_QT_4bit_uniform",SWIG_From_int(static_cast< int >(faiss::ScalarQuantizer::QT_4bit_uniform)));
79914 SWIG_Python_SetConstant(d,
"ScalarQuantizer_QT_fp16",SWIG_From_int(static_cast< int >(faiss::ScalarQuantizer::QT_fp16)));
79919 SWIG_addvarlink(SWIG_globals(),(
char *)
"hnsw_stats",Swig_var_hnsw_stats_get, Swig_var_hnsw_stats_set);
79920 SWIG_addvarlink(SWIG_globals(),(
char *)
"IndexIVFPQ_precomputed_table_max_bytes",Swig_var_IndexIVFPQ_precomputed_table_max_bytes_get, Swig_var_IndexIVFPQ_precomputed_table_max_bytes_set);
79921 SWIG_addvarlink(SWIG_globals(),(
char *)
"indexIVFPQ_stats",Swig_var_indexIVFPQ_stats_get, Swig_var_indexIVFPQ_stats_set);
79922 SWIG_addvarlink(SWIG_globals(),(
char *)
"IO_FLAG_MMAP",Swig_var_IO_FLAG_MMAP_get, Swig_var_IO_FLAG_MMAP_set);
79923 SWIG_addvarlink(SWIG_globals(),(
char *)
"IO_FLAG_READ_ONLY",Swig_var_IO_FLAG_READ_ONLY_get, Swig_var_IO_FLAG_READ_ONLY_set);
79928 #if PY_VERSION_HEX >= 0x03000000
random generator that can be used in multithreaded contexts
void hammings_knn_hc(int_maxheap_array_t *ha, const uint8_t *a, const uint8_t *b, size_t nb, size_t ncodes, int order)
same as _2, but use rank of y+ - rank of y-
intialize centroids with nbits-D hypercube
int km_update_centroids(const float *x, float *centroids, long *assign, size_t d, size_t k, size_t n, size_t k_frozen)
void knn_L2sqr_base_shift(const float *x, const float *y, size_t d, size_t nx, size_t ny, float_maxheap_array_t *res, const float *base_shift)
Randomly rotate a set of vectors.
simple (default) implementation as an array of inverted lists
Hamming distance on codes.
result structure for a single query
void check_compatible_for_merge(const IndexIVF &other) const
float fvec_L2sqr(const float *x, const float *y, size_t d)
Squared L2 distance between two vectors.
T * get_val(size_t key)
Return the list of values for a heap.
alternate optimization of reconstruction error
same, shared range for all dimensions
void bincode_hist(size_t n, size_t nbits, const uint8_t *codes, int *hist)
const float * fvecs_maybe_subsample(size_t d, size_t *n, size_t nmax, const float *x, bool verbose, long seed)
void display(bool only_optimal=true) const
easy-to-read output
Index::idx_t idx_t
Faiss results are 64-bit.
intialize centroids with nbits-D hypercube
optimized version for 1D "vectors"
void hammings_knn_mc(const uint8_t *a, const uint8_t *b, size_t na, size_t nb, size_t k, size_t ncodes, int32_t *distances, long *labels)
void ranklist_handle_ties(int k, long *idx, const float *dis)
share dictionary accross PQ segments
float rand_float()
between 0 and 1
const char * what() const noexceptoverride
from std::exception
void fvec_madd(size_t n, const float *a, float bf, const float *b, float *c)
size_t get_mem_usage_kb()
get current RSS usage in kB
int ivec_hist(size_t n, const int *v, int vmax, int *hist)
compute histogram on v
Base class for Faiss exceptions.
Search_type_t
how to perform the search in search_core
void per_line_extrema(T *vals_out, TI *idx_out) const
static size_t precomputed_table_max_bytes
2G by default, accommodates tables up to PQ32 w/ 65536 centroids
set implementation optimized for fast access.
long rand_long()
random long
Filter on generalized Hamming.
size_t merge_result_table_with(size_t n, size_t k, long *I0, float *D0, const long *I1, const float *D1, bool keep_min, long translation)
int rand_int()
random positive integer
long idx_t
all indices are this type
size_t ranklist_intersection_size(size_t k1, const long *v1, size_t k2, const long *v2_in)
float kmeans_clustering(size_t d, size_t n, size_t k, const float *x, float *centroids)
void pairwise_L2sqr(long d, long nq, const float *xq, long nb, const float *xb, float *dis, long ldq, long ldb, long ldd)
void range_search_inner_product(const float *x, const float *y, size_t d, size_t nx, size_t ny, float radius, RangeSearchResult *res)
same as range_search_L2sqr for the inner product similarity
void knn_inner_product(const float *x, const float *y, size_t d, size_t nx, size_t ny, float_minheap_array_t *res)
the centroids are already initialized
double getmillisecs()
ms elapsed since some arbitrary epoch
optimizes the order of indices in a ProductQuantizer
void real_to_binary(size_t d, const float *x_in, uint8_t *x_out)
void print_stats() const
display some stats about the inverted lists
[mean - std * rs, mean + std * rs]
double imbalance_factor(int k, const int *hist)
same, takes a histogram as input
float fvec_norm_L2sqr(const float *x, size_t d)
void range_search_L2sqr(const float *x, const float *y, size_t d, size_t nx, size_t ny, float radius, RangeSearchResult *res)
void matrix_qr(int m, int n, float *a)
the entries in the buffers are split per query
int merge_with(const OperatingPoints &other, const std::string &prefix="")
add operating points from other to this, with a prefix to the keys
size_t ivec_checksum(size_t n, const int *a)
compute a checksum on a table.
void hammings(const uint8_t *a, const uint8_t *b, size_t na, size_t nb, size_t nbytespercode, hamdis_t *dis)
parameters used for the simulated annealing method
TI * get_ids(size_t key)
Correspponding identifiers.
void print_stats() const
display some stats about the inverted lists
int random_level()
pick a random level for a new point
long idx_t
all indices are this type
abstract class for the loss function
asymmetric product quantizer (default)
int fvec_madd_and_argmin(size_t n, const float *a, float bf, const float *b, float *c)
void display() const
print a description on stdout
[min - rs*(max-min), max + rs*(max-min)]
void fvec_norms_L2(float *ip, const float *x, size_t d, size_t nx)
HE filter (using ht) + PQ combination.
void knn_L2sqr(const float *x, const float *y, size_t d, size_t nx, size_t ny, float_maxheap_array_t *res)
void binary_to_real(size_t d, const uint8_t *x_in, float *x_out)
void fvec_norms_L2sqr(float *ip, const float *x, size_t d, size_t nx)
same as fvec_norms_L2, but computes square norms
int storage_idx_t
internal storage of vectors (32 bits: this is expensive)
possible values of a parameter, sorted from least to most expensive/accurate
symmetric product quantizer (SDC)
Index * index_factory(int d, const char *description_in, MetricType metric)
static void shrink_neighbor_list(DistanceComputer &qdis, std::priority_queue< NodeDistFarther > &input, std::vector< NodeDistFarther > &output, int max_size)
Simulated annealing optimization algorithm for permutations.
MetricType
Some algorithms support both an inner product version and a L2 search version.
train_type_t
initialization
void generalized_hammings_knn_hc(int_maxheap_array_t *ha, const uint8_t *a, const uint8_t *b, size_t nb, size_t code_size, int ordered)