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_cublasHandle_t swig_types[7]
3014 #define SWIGTYPE_p_cudaStream_t swig_types[8]
3015 #define SWIGTYPE_p_double swig_types[9]
3016 #define SWIGTYPE_p_faiss__ArrayInvertedLists swig_types[10]
3017 #define SWIGTYPE_p_faiss__AutoTuneCriterion swig_types[11]
3018 #define SWIGTYPE_p_faiss__BinaryInvertedListScanner swig_types[12]
3019 #define SWIGTYPE_p_faiss__BufferList swig_types[13]
3020 #define SWIGTYPE_p_faiss__Cloner swig_types[14]
3021 #define SWIGTYPE_p_faiss__Clustering swig_types[15]
3022 #define SWIGTYPE_p_faiss__ClusteringParameters swig_types[16]
3023 #define SWIGTYPE_p_faiss__ConcatenatedInvertedLists swig_types[17]
3024 #define SWIGTYPE_p_faiss__GenHammingComputer16 swig_types[18]
3025 #define SWIGTYPE_p_faiss__GenHammingComputer32 swig_types[19]
3026 #define SWIGTYPE_p_faiss__GenHammingComputer8 swig_types[20]
3027 #define SWIGTYPE_p_faiss__GenHammingComputerM8 swig_types[21]
3028 #define SWIGTYPE_p_faiss__HNSW swig_types[22]
3029 #define SWIGTYPE_p_faiss__HNSWStats swig_types[23]
3030 #define SWIGTYPE_p_faiss__HNSW__DistanceComputer swig_types[24]
3031 #define SWIGTYPE_p_faiss__HNSW__MinimaxHeap swig_types[25]
3032 #define SWIGTYPE_p_faiss__HammingComputer16 swig_types[26]
3033 #define SWIGTYPE_p_faiss__HammingComputer20 swig_types[27]
3034 #define SWIGTYPE_p_faiss__HammingComputer32 swig_types[28]
3035 #define SWIGTYPE_p_faiss__HammingComputer4 swig_types[29]
3036 #define SWIGTYPE_p_faiss__HammingComputer64 swig_types[30]
3037 #define SWIGTYPE_p_faiss__HammingComputer8 swig_types[31]
3038 #define SWIGTYPE_p_faiss__HammingComputerDefault swig_types[32]
3039 #define SWIGTYPE_p_faiss__HammingComputerM4 swig_types[33]
3040 #define SWIGTYPE_p_faiss__HammingComputerM8 swig_types[34]
3041 #define SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t swig_types[35]
3042 #define SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t swig_types[36]
3043 #define SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t swig_types[37]
3044 #define SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t swig_types[38]
3045 #define SWIGTYPE_p_faiss__IDSelector swig_types[39]
3046 #define SWIGTYPE_p_faiss__IDSelectorBatch swig_types[40]
3047 #define SWIGTYPE_p_faiss__IDSelectorRange swig_types[41]
3048 #define SWIGTYPE_p_faiss__IOReader swig_types[42]
3049 #define SWIGTYPE_p_faiss__IOWriter swig_types[43]
3050 #define SWIGTYPE_p_faiss__IVFPQSearchParameters swig_types[44]
3051 #define SWIGTYPE_p_faiss__IVFSearchParameters swig_types[45]
3052 #define SWIGTYPE_p_faiss__Index swig_types[46]
3053 #define SWIGTYPE_p_faiss__Index2Layer swig_types[47]
3054 #define SWIGTYPE_p_faiss__IndexBinary swig_types[48]
3055 #define SWIGTYPE_p_faiss__IndexBinaryFlat swig_types[49]
3056 #define SWIGTYPE_p_faiss__IndexBinaryFromFloat swig_types[50]
3057 #define SWIGTYPE_p_faiss__IndexBinaryHNSW swig_types[51]
3058 #define SWIGTYPE_p_faiss__IndexBinaryIVF swig_types[52]
3059 #define SWIGTYPE_p_faiss__IndexFlat swig_types[53]
3060 #define SWIGTYPE_p_faiss__IndexFlat1D swig_types[54]
3061 #define SWIGTYPE_p_faiss__IndexFlatIP swig_types[55]
3062 #define SWIGTYPE_p_faiss__IndexFlatL2 swig_types[56]
3063 #define SWIGTYPE_p_faiss__IndexFlatL2BaseShift swig_types[57]
3064 #define SWIGTYPE_p_faiss__IndexHNSW swig_types[58]
3065 #define SWIGTYPE_p_faiss__IndexHNSW2Level swig_types[59]
3066 #define SWIGTYPE_p_faiss__IndexHNSWFlat swig_types[60]
3067 #define SWIGTYPE_p_faiss__IndexHNSWPQ swig_types[61]
3068 #define SWIGTYPE_p_faiss__IndexHNSWSQ swig_types[62]
3069 #define SWIGTYPE_p_faiss__IndexIDMap swig_types[63]
3070 #define SWIGTYPE_p_faiss__IndexIDMap2 swig_types[64]
3071 #define SWIGTYPE_p_faiss__IndexIVF swig_types[65]
3072 #define SWIGTYPE_p_faiss__IndexIVFFlat swig_types[66]
3073 #define SWIGTYPE_p_faiss__IndexIVFFlatDedup swig_types[67]
3074 #define SWIGTYPE_p_faiss__IndexIVFPQ swig_types[68]
3075 #define SWIGTYPE_p_faiss__IndexIVFPQR swig_types[69]
3076 #define SWIGTYPE_p_faiss__IndexIVFPQStats swig_types[70]
3077 #define SWIGTYPE_p_faiss__IndexIVFScalarQuantizer swig_types[71]
3078 #define SWIGTYPE_p_faiss__IndexIVFStats swig_types[72]
3079 #define SWIGTYPE_p_faiss__IndexLSH swig_types[73]
3080 #define SWIGTYPE_p_faiss__IndexPQ swig_types[74]
3081 #define SWIGTYPE_p_faiss__IndexPQStats swig_types[75]
3082 #define SWIGTYPE_p_faiss__IndexPreTransform swig_types[76]
3083 #define SWIGTYPE_p_faiss__IndexRefineFlat swig_types[77]
3084 #define SWIGTYPE_p_faiss__IndexScalarQuantizer swig_types[78]
3085 #define SWIGTYPE_p_faiss__IndexShards swig_types[79]
3086 #define SWIGTYPE_p_faiss__IndexSplitVectors swig_types[80]
3087 #define SWIGTYPE_p_faiss__IntersectionCriterion swig_types[81]
3088 #define SWIGTYPE_p_faiss__InvertedListScanner swig_types[82]
3089 #define SWIGTYPE_p_faiss__InvertedLists swig_types[83]
3090 #define SWIGTYPE_p_faiss__Level1Quantizer swig_types[84]
3091 #define SWIGTYPE_p_faiss__LinearTransform swig_types[85]
3092 #define SWIGTYPE_p_faiss__LockLevels swig_types[86]
3093 #define SWIGTYPE_p_faiss__MultiIndexQuantizer swig_types[87]
3094 #define SWIGTYPE_p_faiss__MultiIndexQuantizer2 swig_types[88]
3095 #define SWIGTYPE_p_faiss__NormalizationTransform swig_types[89]
3096 #define SWIGTYPE_p_faiss__OPQMatrix swig_types[90]
3097 #define SWIGTYPE_p_faiss__OnDiskInvertedLists swig_types[91]
3098 #define SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch swig_types[92]
3099 #define SWIGTYPE_p_faiss__OneRecallAtRCriterion swig_types[93]
3100 #define SWIGTYPE_p_faiss__OperatingPoint swig_types[94]
3101 #define SWIGTYPE_p_faiss__OperatingPoints swig_types[95]
3102 #define SWIGTYPE_p_faiss__PCAMatrix swig_types[96]
3103 #define SWIGTYPE_p_faiss__ParameterRange swig_types[97]
3104 #define SWIGTYPE_p_faiss__ParameterSpace swig_types[98]
3105 #define SWIGTYPE_p_faiss__PermutationObjective swig_types[99]
3106 #define SWIGTYPE_p_faiss__PolysemousTraining swig_types[100]
3107 #define SWIGTYPE_p_faiss__ProductQuantizer swig_types[101]
3108 #define SWIGTYPE_p_faiss__RandomGenerator swig_types[102]
3109 #define SWIGTYPE_p_faiss__RandomRotationMatrix swig_types[103]
3110 #define SWIGTYPE_p_faiss__RangeSearchPartialResult swig_types[104]
3111 #define SWIGTYPE_p_faiss__RangeSearchPartialResult__QueryResult swig_types[105]
3112 #define SWIGTYPE_p_faiss__RangeSearchResult swig_types[106]
3113 #define SWIGTYPE_p_faiss__ReconstructFromNeighbors swig_types[107]
3114 #define SWIGTYPE_p_faiss__RemapDimensionsTransform swig_types[108]
3115 #define SWIGTYPE_p_faiss__ReproduceDistancesObjective swig_types[109]
3116 #define SWIGTYPE_p_faiss__ScalarQuantizer swig_types[110]
3117 #define SWIGTYPE_p_faiss__ScalarQuantizer__DistanceComputer swig_types[111]
3118 #define SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer swig_types[112]
3119 #define SWIGTYPE_p_faiss__SimulatedAnnealingParameters swig_types[113]
3120 #define SWIGTYPE_p_faiss__VectorIOReader swig_types[114]
3121 #define SWIGTYPE_p_faiss__VectorIOWriter swig_types[115]
3122 #define SWIGTYPE_p_faiss__VectorTransform swig_types[116]
3123 #define SWIGTYPE_p_faiss__VisitedTable swig_types[117]
3124 #define SWIGTYPE_p_faiss__gpu__FlatIndex swig_types[118]
3125 #define SWIGTYPE_p_faiss__gpu__GpuClonerOptions swig_types[119]
3126 #define SWIGTYPE_p_faiss__gpu__GpuIndex swig_types[120]
3127 #define SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat swig_types[121]
3128 #define SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlatConfig swig_types[122]
3129 #define SWIGTYPE_p_faiss__gpu__GpuIndexConfig swig_types[123]
3130 #define SWIGTYPE_p_faiss__gpu__GpuIndexFlat swig_types[124]
3131 #define SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig swig_types[125]
3132 #define SWIGTYPE_p_faiss__gpu__GpuIndexFlatIP swig_types[126]
3133 #define SWIGTYPE_p_faiss__gpu__GpuIndexFlatL2 swig_types[127]
3134 #define SWIGTYPE_p_faiss__gpu__GpuIndexIVF swig_types[128]
3135 #define SWIGTYPE_p_faiss__gpu__GpuIndexIVFConfig swig_types[129]
3136 #define SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat swig_types[130]
3137 #define SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlatConfig swig_types[131]
3138 #define SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ swig_types[132]
3139 #define SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQConfig swig_types[133]
3140 #define SWIGTYPE_p_faiss__gpu__GpuMultipleClonerOptions swig_types[134]
3141 #define SWIGTYPE_p_faiss__gpu__GpuParameterSpace swig_types[135]
3142 #define SWIGTYPE_p_faiss__gpu__GpuResources swig_types[136]
3143 #define SWIGTYPE_p_faiss__gpu__IndexProxy swig_types[137]
3144 #define SWIGTYPE_p_faiss__gpu__StandardGpuResources swig_types[138]
3145 #define SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow swig_types[139]
3146 #define SWIGTYPE_p_float swig_types[140]
3147 #define SWIGTYPE_p_idx_t swig_types[141]
3148 #define SWIGTYPE_p_int swig_types[142]
3149 #define SWIGTYPE_p_long swig_types[143]
3150 #define SWIGTYPE_p_omp_lock_t swig_types[144]
3151 #define SWIGTYPE_p_p_faiss__ArrayInvertedLists swig_types[145]
3152 #define SWIGTYPE_p_p_faiss__ConcatenatedInvertedLists swig_types[146]
3153 #define SWIGTYPE_p_p_faiss__Index swig_types[147]
3154 #define SWIGTYPE_p_p_faiss__Index2Layer swig_types[148]
3155 #define SWIGTYPE_p_p_faiss__IndexFlat swig_types[149]
3156 #define SWIGTYPE_p_p_faiss__IndexFlat1D swig_types[150]
3157 #define SWIGTYPE_p_p_faiss__IndexFlatIP swig_types[151]
3158 #define SWIGTYPE_p_p_faiss__IndexFlatL2 swig_types[152]
3159 #define SWIGTYPE_p_p_faiss__IndexFlatL2BaseShift swig_types[153]
3160 #define SWIGTYPE_p_p_faiss__IndexHNSW swig_types[154]
3161 #define SWIGTYPE_p_p_faiss__IndexHNSW2Level swig_types[155]
3162 #define SWIGTYPE_p_p_faiss__IndexHNSWFlat swig_types[156]
3163 #define SWIGTYPE_p_p_faiss__IndexHNSWPQ swig_types[157]
3164 #define SWIGTYPE_p_p_faiss__IndexHNSWSQ swig_types[158]
3165 #define SWIGTYPE_p_p_faiss__IndexIDMap swig_types[159]
3166 #define SWIGTYPE_p_p_faiss__IndexIDMap2 swig_types[160]
3167 #define SWIGTYPE_p_p_faiss__IndexIVF swig_types[161]
3168 #define SWIGTYPE_p_p_faiss__IndexIVFFlat swig_types[162]
3169 #define SWIGTYPE_p_p_faiss__IndexIVFFlatDedup swig_types[163]
3170 #define SWIGTYPE_p_p_faiss__IndexIVFPQ swig_types[164]
3171 #define SWIGTYPE_p_p_faiss__IndexIVFPQR swig_types[165]
3172 #define SWIGTYPE_p_p_faiss__IndexIVFScalarQuantizer swig_types[166]
3173 #define SWIGTYPE_p_p_faiss__IndexLSH swig_types[167]
3174 #define SWIGTYPE_p_p_faiss__IndexPQ swig_types[168]
3175 #define SWIGTYPE_p_p_faiss__IndexPreTransform swig_types[169]
3176 #define SWIGTYPE_p_p_faiss__IndexRefineFlat swig_types[170]
3177 #define SWIGTYPE_p_p_faiss__IndexScalarQuantizer swig_types[171]
3178 #define SWIGTYPE_p_p_faiss__IndexShards swig_types[172]
3179 #define SWIGTYPE_p_p_faiss__IndexSplitVectors swig_types[173]
3180 #define SWIGTYPE_p_p_faiss__InvertedLists swig_types[174]
3181 #define SWIGTYPE_p_p_faiss__LinearTransform swig_types[175]
3182 #define SWIGTYPE_p_p_faiss__MultiIndexQuantizer swig_types[176]
3183 #define SWIGTYPE_p_p_faiss__MultiIndexQuantizer2 swig_types[177]
3184 #define SWIGTYPE_p_p_faiss__NormalizationTransform swig_types[178]
3185 #define SWIGTYPE_p_p_faiss__OPQMatrix swig_types[179]
3186 #define SWIGTYPE_p_p_faiss__OnDiskInvertedLists swig_types[180]
3187 #define SWIGTYPE_p_p_faiss__PCAMatrix swig_types[181]
3188 #define SWIGTYPE_p_p_faiss__RandomRotationMatrix swig_types[182]
3189 #define SWIGTYPE_p_p_faiss__RemapDimensionsTransform swig_types[183]
3190 #define SWIGTYPE_p_p_faiss__VectorTransform swig_types[184]
3191 #define SWIGTYPE_p_p_faiss__gpu__GpuIndex swig_types[185]
3192 #define SWIGTYPE_p_p_faiss__gpu__GpuIndexFlat swig_types[186]
3193 #define SWIGTYPE_p_p_faiss__gpu__GpuIndexFlatIP swig_types[187]
3194 #define SWIGTYPE_p_p_faiss__gpu__GpuIndexFlatL2 swig_types[188]
3195 #define SWIGTYPE_p_p_faiss__gpu__GpuIndexIVF swig_types[189]
3196 #define SWIGTYPE_p_p_faiss__gpu__GpuIndexIVFFlat swig_types[190]
3197 #define SWIGTYPE_p_p_faiss__gpu__GpuIndexIVFPQ swig_types[191]
3198 #define SWIGTYPE_p_p_faiss__gpu__GpuResources swig_types[192]
3199 #define SWIGTYPE_p_p_faiss__gpu__IndexProxy swig_types[193]
3200 #define SWIGTYPE_p_p_faiss__gpu__StandardGpuResources swig_types[194]
3201 #define SWIGTYPE_p_p_void swig_types[195]
3202 #define SWIGTYPE_p_std__functionT_void_ffaiss__Index_pF_t swig_types[196]
3203 #define SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t swig_types[197]
3204 #define SWIGTYPE_p_std__mt19937 swig_types[198]
3205 #define SWIGTYPE_p_std__pairT_float_int_t swig_types[199]
3206 #define SWIGTYPE_p_std__pairT_void_p_unsigned_long_t swig_types[200]
3207 #define SWIGTYPE_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t swig_types[201]
3208 #define SWIGTYPE_p_std__priority_queueT_std__pairT_float_int_t_t swig_types[202]
3209 #define SWIGTYPE_p_std__unordered_mapT_long_long_t swig_types[203]
3210 #define SWIGTYPE_p_std__unordered_multimapT_long_long_t swig_types[204]
3211 #define SWIGTYPE_p_std__vectorT_char_t swig_types[205]
3212 #define SWIGTYPE_p_std__vectorT_cudaStream_t_t swig_types[206]
3213 #define SWIGTYPE_p_std__vectorT_double_t swig_types[207]
3214 #define SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t swig_types[208]
3215 #define SWIGTYPE_p_std__vectorT_faiss__HNSW__NodeDistFarther_t swig_types[209]
3216 #define SWIGTYPE_p_std__vectorT_faiss__Index_p_t swig_types[210]
3217 #define SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t swig_types[211]
3218 #define SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t swig_types[212]
3219 #define SWIGTYPE_p_std__vectorT_faiss__OnDiskInvertedLists__List_t swig_types[213]
3220 #define SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t swig_types[214]
3221 #define SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t swig_types[215]
3222 #define SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult__QueryResult_t swig_types[216]
3223 #define SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t swig_types[217]
3224 #define SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t swig_types[218]
3225 #define SWIGTYPE_p_std__vectorT_float_t swig_types[219]
3226 #define SWIGTYPE_p_std__vectorT_int_t swig_types[220]
3227 #define SWIGTYPE_p_std__vectorT_long_t swig_types[221]
3228 #define SWIGTYPE_p_std__vectorT_omp_lock_t_t swig_types[222]
3229 #define SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t swig_types[223]
3230 #define SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t swig_types[224]
3231 #define SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t swig_types[225]
3232 #define SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t swig_types[226]
3233 #define SWIGTYPE_p_std__vectorT_unsigned_char_t swig_types[227]
3234 #define SWIGTYPE_p_std__vectorT_unsigned_long_t swig_types[228]
3235 #define SWIGTYPE_p_storage_idx_t swig_types[229]
3236 #define SWIGTYPE_p_uint32_t swig_types[230]
3237 #define SWIGTYPE_p_unsigned_char swig_types[231]
3238 #define SWIGTYPE_p_unsigned_long swig_types[232]
3239 #define SWIGTYPE_p_void swig_types[233]
3242 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3243 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3247 #if (PY_VERSION_HEX <= 0x02000000)
3248 # if !defined(SWIG_PYTHON_CLASSIC)
3249 # error "This python version requires swig to be run with the '-classic' option"
3256 #if PY_VERSION_HEX >= 0x03000000
3257 # define SWIG_init PyInit__swigfaiss_gpu
3260 # define SWIG_init init_swigfaiss_gpu
3263 #define SWIG_name "_swigfaiss_gpu"
3265 #define SWIGVERSION 0x030012
3266 #define SWIG_VERSION SWIGVERSION
3269 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
3270 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
3273 #include <stdexcept>
3288 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3290 SWIG_PYTHON_THREAD_END_BLOCK;
3296 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3298 SWIG_PYTHON_THREAD_END_BLOCK;
3304 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3305 Py_XINCREF(item._obj);
3308 SWIG_PYTHON_THREAD_END_BLOCK;
3314 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3316 SWIG_PYTHON_THREAD_END_BLOCK;
3319 operator PyObject *()
const
3324 PyObject *operator->()
const
3354 #include <pthread.h>
3371 #define SWIG_FILE_WITH_INIT
3372 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
3373 #include <numpy/arrayobject.h>
3378 #include "IndexFlat.h"
3379 #include "VectorTransform.h"
3380 #include "IndexLSH.h"
3381 #include "IndexPQ.h"
3382 #include "IndexIVF.h"
3383 #include "IndexIVFPQ.h"
3384 #include "IndexIVFFlat.h"
3385 #include "IndexScalarQuantizer.h"
3387 #include "IndexHNSW.h"
3388 #include "MetaIndexes.h"
3389 #include "FaissAssert.h"
3391 #include "IndexBinaryFlat.h"
3392 #include "IndexBinaryIVF.h"
3393 #include "IndexBinaryFromFloat.h"
3394 #include "IndexBinaryHNSW.h"
3396 #include "index_io.h"
3401 #include "AuxIndexStructures.h"
3402 #include "OnDiskInvertedLists.h"
3404 #include "Clustering.h"
3406 #include "hamming.h"
3408 #include "AutoTune.h"
3421 #ifndef SWIG_isfinite
3423 # if defined(isfinite)
3424 # define SWIG_isfinite(X) (isfinite(X))
3425 # elif defined __cplusplus && __cplusplus >= 201103L
3435 extern "C++" template<
typename T>
3436 inline int SWIG_isfinite_func(T x) {
3437 using namespace std;
3440 # define SWIG_isfinite(X) (SWIG_isfinite_func(X))
3441 # elif defined(_MSC_VER)
3442 # define SWIG_isfinite(X) (_finite(X))
3443 # elif defined(__sun) && defined(__SVR4)
3444 # include <ieeefp.h>
3445 # define SWIG_isfinite(X) (finite(X))
3451 #ifdef SWIG_isfinite
3452 # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
3454 # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
3459 SWIG_AsVal_double (PyObject *obj,
double *val)
3461 int res = SWIG_TypeError;
3462 if (PyFloat_Check(obj)) {
3463 if (val) *val = PyFloat_AsDouble(obj);
3465 #if PY_VERSION_HEX < 0x03000000
3466 }
else if (PyInt_Check(obj)) {
3467 if (val) *val = (double) PyInt_AsLong(obj);
3470 }
else if (PyLong_Check(obj)) {
3471 double v = PyLong_AsDouble(obj);
3472 if (!PyErr_Occurred()) {
3479 #ifdef SWIG_PYTHON_CAST_MODE
3482 double d = PyFloat_AsDouble(obj);
3483 if (!PyErr_Occurred()) {
3485 return SWIG_AddCast(SWIG_OK);
3490 long v = PyLong_AsLong(obj);
3491 if (!PyErr_Occurred()) {
3493 return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
3505 SWIG_AsVal_float (PyObject * obj,
float *val)
3508 int res = SWIG_AsVal_double (obj, &v);
3509 if (SWIG_IsOK(res)) {
3510 if (SWIG_Float_Overflow_Check(v)) {
3511 return SWIG_OverflowError;
3513 if (val) *val =
static_cast< float >(v);
3520 #define SWIG_From_long PyInt_FromLong
3523 SWIGINTERNINLINE PyObject*
3524 SWIG_From_unsigned_SS_long (
unsigned long value)
3526 return (value > LONG_MAX) ?
3527 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
3532 #if !defined(SWIG_NO_LLONG_MAX)
3533 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
3534 # define LLONG_MAX __LONG_LONG_MAX__
3535 # define LLONG_MIN (-LLONG_MAX - 1LL)
3536 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
3541 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
3542 # define SWIG_LONG_LONG_AVAILABLE
3546 #ifdef SWIG_LONG_LONG_AVAILABLE
3547 SWIGINTERNINLINE PyObject*
3548 SWIG_From_unsigned_SS_long_SS_long (
unsigned long long value)
3550 return (value > LONG_MAX) ?
3551 PyLong_FromUnsignedLongLong(value) : PyInt_FromLong(static_cast< long >(value));
3556 SWIGINTERNINLINE PyObject *
3557 SWIG_From_size_t (
size_t value)
3559 #ifdef SWIG_LONG_LONG_AVAILABLE
3560 if (
sizeof(
size_t) <=
sizeof(
unsigned long)) {
3562 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3563 #ifdef SWIG_LONG_LONG_AVAILABLE
3566 return SWIG_From_unsigned_SS_long_SS_long (static_cast< unsigned long long >(value));
3572 SWIGINTERNINLINE
int
3573 SWIG_CanCastAsInteger(
double *d,
double min,
double max) {
3575 if ((min <= x && x <= max)) {
3576 double fx = floor(x);
3577 double cx = ceil(x);
3578 double rd = ((x - fx) < 0.5) ? fx : cx;
3579 if ((errno == EDOM) || (errno == ERANGE)) {
3582 double summ, reps, diff;
3585 }
else if (rd > x) {
3592 if (reps < 8*DBL_EPSILON) {
3603 SWIG_AsVal_unsigned_SS_long (PyObject *obj,
unsigned long *val)
3605 #if PY_VERSION_HEX < 0x03000000
3606 if (PyInt_Check(obj)) {
3607 long v = PyInt_AsLong(obj);
3612 return SWIG_OverflowError;
3616 if (PyLong_Check(obj)) {
3617 unsigned long v = PyLong_AsUnsignedLong(obj);
3618 if (!PyErr_Occurred()) {
3623 return SWIG_OverflowError;
3626 #ifdef SWIG_PYTHON_CAST_MODE
3629 unsigned long v = PyLong_AsUnsignedLong(obj);
3630 if (!PyErr_Occurred()) {
3632 return SWIG_AddCast(SWIG_OK);
3638 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3639 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
3640 if (val) *val = (
unsigned long)(d);
3646 return SWIG_TypeError;
3650 #ifdef SWIG_LONG_LONG_AVAILABLE
3652 SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj,
unsigned long long *val)
3654 int res = SWIG_TypeError;
3655 if (PyLong_Check(obj)) {
3656 unsigned long long v = PyLong_AsUnsignedLongLong(obj);
3657 if (!PyErr_Occurred()) {
3662 res = SWIG_OverflowError;
3666 res = SWIG_AsVal_unsigned_SS_long (obj,&v);
3667 if (SWIG_IsOK(res)) {
3672 #ifdef SWIG_PYTHON_CAST_MODE
3674 const double mant_max = 1LL << DBL_MANT_DIG;
3676 res = SWIG_AsVal_double (obj,&d);
3677 if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, 0, mant_max))
3678 return SWIG_OverflowError;
3679 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
3680 if (val) *val = (
unsigned long long)(d);
3681 return SWIG_AddCast(res);
3683 res = SWIG_TypeError;
3691 SWIGINTERNINLINE
int
3692 SWIG_AsVal_size_t (PyObject * obj,
size_t *val)
3694 int res = SWIG_TypeError;
3695 #ifdef SWIG_LONG_LONG_AVAILABLE
3696 if (
sizeof(
size_t) <=
sizeof(
unsigned long)) {
3699 res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3700 if (SWIG_IsOK(res) && val) *val =
static_cast< size_t >(v);
3701 #ifdef SWIG_LONG_LONG_AVAILABLE
3702 }
else if (
sizeof(
size_t) <=
sizeof(
unsigned long long)) {
3703 unsigned long long v;
3704 res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
3705 if (SWIG_IsOK(res) && val) *val =
static_cast< size_t >(v);
3712 #define SWIG_From_double PyFloat_FromDouble
3715 SWIGINTERNINLINE PyObject *
3716 SWIG_From_float (
float value)
3718 return SWIG_From_double (value);
3723 SWIG_AsVal_unsigned_SS_char (PyObject * obj,
unsigned char *val)
3726 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3727 if (SWIG_IsOK(res)) {
3728 if ((v > UCHAR_MAX)) {
3729 return SWIG_OverflowError;
3731 if (val) *val =
static_cast< unsigned char >(v);
3738 SWIGINTERNINLINE PyObject *
3739 SWIG_From_unsigned_SS_char (
unsigned char value)
3741 return SWIG_From_unsigned_SS_long (value);
3746 SWIG_pchar_descriptor(
void)
3748 static int init = 0;
3751 info = SWIG_TypeQuery(
"_p_char");
3759 SWIG_AsCharPtrAndSize(PyObject *obj,
char** cptr,
size_t* psize,
int *alloc)
3761 #if PY_VERSION_HEX>=0x03000000
3762 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3763 if (PyBytes_Check(obj))
3765 if (PyUnicode_Check(obj))
3768 if (PyString_Check(obj))
3771 char *cstr; Py_ssize_t len;
3772 #if PY_VERSION_HEX>=0x03000000
3773 #if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3774 if (!alloc && cptr) {
3779 return SWIG_RuntimeError;
3781 obj = PyUnicode_AsUTF8String(obj);
3782 if(alloc) *alloc = SWIG_NEWOBJ;
3784 PyBytes_AsStringAndSize(obj, &cstr, &len);
3786 PyString_AsStringAndSize(obj, &cstr, &len);
3799 #if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3800 if (*alloc != SWIG_OLDOBJ)
3802 if (*alloc == SWIG_NEWOBJ)
3805 *cptr =
reinterpret_cast< char*
>(memcpy(
new char[len + 1], cstr,
sizeof(
char)*(len + 1)));
3806 *alloc = SWIG_NEWOBJ;
3809 *alloc = SWIG_OLDOBJ;
3812 #if PY_VERSION_HEX>=0x03000000
3813 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3814 *cptr = PyBytes_AsString(obj);
3819 *cptr = SWIG_Python_str_AsChar(obj);
3823 if (psize) *psize = len + 1;
3824 #if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3829 #if defined(SWIG_PYTHON_2_UNICODE)
3830 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3831 #error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
3833 #if PY_VERSION_HEX<0x03000000
3834 if (PyUnicode_Check(obj)) {
3835 char *cstr; Py_ssize_t len;
3836 if (!alloc && cptr) {
3837 return SWIG_RuntimeError;
3839 obj = PyUnicode_AsUTF8String(obj);
3840 if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3842 if (alloc) *alloc = SWIG_NEWOBJ;
3843 *cptr =
reinterpret_cast< char*
>(memcpy(
new char[len + 1], cstr,
sizeof(
char)*(len + 1)));
3845 if (psize) *psize = len + 1;
3857 if (pchar_descriptor) {
3859 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
3860 if (cptr) *cptr = (
char *) vptr;
3861 if (psize) *psize = vptr ? (strlen((
char *)vptr) + 1) : 0;
3862 if (alloc) *alloc = SWIG_OLDOBJ;
3867 return SWIG_TypeError;
3872 SWIG_AsCharArray(PyObject * obj,
char *val,
size_t size)
3874 char* cptr = 0;
size_t csize = 0;
int alloc = SWIG_OLDOBJ;
3875 int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
3876 if (SWIG_IsOK(res)) {
3878 if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize;
3879 if (csize <= size) {
3881 if (csize) memcpy(val, cptr, csize*
sizeof(
char));
3882 if (csize < size) memset(val + csize, 0, (size - csize)*
sizeof(
char));
3884 if (alloc == SWIG_NEWOBJ) {
3886 res = SWIG_DelNewMask(res);
3890 if (alloc == SWIG_NEWOBJ)
delete[] cptr;
3892 return SWIG_TypeError;
3897 SWIG_AsVal_long (PyObject *obj,
long* val)
3899 #if PY_VERSION_HEX < 0x03000000
3900 if (PyInt_Check(obj)) {
3901 if (val) *val = PyInt_AsLong(obj);
3905 if (PyLong_Check(obj)) {
3906 long v = PyLong_AsLong(obj);
3907 if (!PyErr_Occurred()) {
3912 return SWIG_OverflowError;
3915 #ifdef SWIG_PYTHON_CAST_MODE
3918 long v = PyInt_AsLong(obj);
3919 if (!PyErr_Occurred()) {
3921 return SWIG_AddCast(SWIG_OK);
3927 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3928 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
3929 if (val) *val = (long)(d);
3935 return SWIG_TypeError;
3940 SWIG_AsVal_char (PyObject * obj,
char *val)
3942 int res = SWIG_AsCharArray(obj, val, 1);
3943 if (!SWIG_IsOK(res)) {
3945 res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
3946 if (SWIG_IsOK(res)) {
3947 if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
3948 if (val) *val =
static_cast< char >(v);
3950 res = SWIG_OverflowError;
3958 SWIGINTERNINLINE PyObject *
3959 SWIG_FromCharPtrAndSize(
const char* carray,
size_t size)
3962 if (size > INT_MAX) {
3964 return pchar_descriptor ?
3965 SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
3967 #if PY_VERSION_HEX >= 0x03000000
3968 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3969 return PyBytes_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3971 #if PY_VERSION_HEX >= 0x03010000
3972 return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size),
"surrogateescape");
3974 return PyUnicode_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3978 return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3982 return SWIG_Py_Void();
3987 SWIGINTERNINLINE PyObject *
3988 SWIG_FromCharPtr(
const char *cptr)
3990 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3994 SWIGINTERNINLINE PyObject *
3995 SWIG_From_char (
char c)
3997 return SWIG_FromCharPtrAndSize(&c,1);
4002 SWIG_AsVal_int (PyObject * obj,
int *val)
4005 int res = SWIG_AsVal_long (obj, &v);
4006 if (SWIG_IsOK(res)) {
4007 if ((v < INT_MIN || v > INT_MAX)) {
4008 return SWIG_OverflowError;
4010 if (val) *val =
static_cast< int >(v);
4017 SWIGINTERNINLINE PyObject*
4018 SWIG_From_int (
int value)
4020 return PyInt_FromLong((
long) value);
4028 #include "gpu/StandardGpuResources.h"
4029 #include "gpu/GpuIndicesOptions.h"
4030 #include "gpu/GpuClonerOptions.h"
4031 #include "gpu/utils/MemorySpace.h"
4032 #include "gpu/GpuIndex.h"
4033 #include "gpu/GpuIndexFlat.h"
4034 #include "gpu/GpuIndexIVF.h"
4035 #include "gpu/GpuIndexIVFPQ.h"
4036 #include "gpu/GpuIndexIVFFlat.h"
4037 #include "gpu/GpuIndexBinaryFlat.h"
4038 #include "gpu/IndexProxy.h"
4039 #include "gpu/GpuAutoTune.h"
4040 #include "gpu/GpuDistance.h"
4044 return faiss::gpu::getNumDevices();
4050 SWIG_AsVal_bool (PyObject *obj,
bool *val)
4053 if (!PyBool_Check(obj))
4055 r = PyObject_IsTrue(obj);
4058 if (val) *val = r ?
true :
false;
4063 SWIGINTERNINLINE PyObject*
4064 SWIG_From_bool (
bool value)
4066 return PyBool_FromLong(value ? 1 : 0);
4071 SWIG_AsPtr_std_string (PyObject * obj, std::string **val)
4073 char* buf = 0 ;
size_t size = 0;
int alloc = SWIG_OLDOBJ;
4074 if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) {
4076 if (val) *val =
new std::string(buf, size - 1);
4077 if (alloc == SWIG_NEWOBJ)
delete[] buf;
4084 static int init = 0;
4087 descriptor = SWIG_TypeQuery(
"std::string" " *");
4092 int res = SWIG_ConvertPtr(obj, (
void**)&vptr, descriptor, 0);
4093 if (SWIG_IsOK(res) && val) *val = vptr;
4101 SWIGINTERNINLINE PyObject *
4102 SWIG_From_std_string (
const std::string& s)
4104 return SWIG_FromCharPtrAndSize(s.data(), s.size());
4125 PyObject *swig_ptr (PyObject *a)
4127 if(!PyArray_Check(a)) {
4128 PyErr_SetString(PyExc_ValueError,
"input not a numpy array");
4131 PyArrayObject *ao = (PyArrayObject *)a;
4133 if(!PyArray_ISCONTIGUOUS(ao)) {
4134 PyErr_SetString(PyExc_ValueError,
"array is not C-contiguous");
4137 void * data = PyArray_DATA(ao);
4138 if(PyArray_TYPE(ao) == NPY_FLOAT32) {
4139 return SWIG_NewPointerObj(data, SWIGTYPE_p_float, 0);
4141 if(PyArray_TYPE(ao) == NPY_FLOAT64) {
4142 return SWIG_NewPointerObj(data, SWIGTYPE_p_double, 0);
4144 if(PyArray_TYPE(ao) == NPY_INT32) {
4145 return SWIG_NewPointerObj(data, SWIGTYPE_p_int, 0);
4147 if(PyArray_TYPE(ao) == NPY_UINT8) {
4148 return SWIG_NewPointerObj(data, SWIGTYPE_p_unsigned_char, 0);
4150 if(PyArray_TYPE(ao) == NPY_INT8) {
4151 return SWIG_NewPointerObj(data, SWIGTYPE_p_char, 0);
4153 if(PyArray_TYPE(ao) == NPY_UINT64) {
4154 return SWIG_NewPointerObj(data, SWIGTYPE_p_unsigned_long, 0);
4156 if(PyArray_TYPE(ao) == NPY_INT64) {
4157 return SWIG_NewPointerObj(data, SWIGTYPE_p_long, 0);
4159 PyErr_SetString(PyExc_ValueError,
"did not recognize array type");
4166 PyObject * rev_swig_ptr(
float *src, npy_intp size) {
4167 return PyArray_SimpleNewFromData(1, &size, NPY_FLOAT32, src);
4171 PyObject * rev_swig_ptr(
int *src, npy_intp size) {
4172 return PyArray_SimpleNewFromData(1, &size, NPY_INT32, src);
4176 PyObject * rev_swig_ptr(
unsigned char *src, npy_intp size) {
4177 return PyArray_SimpleNewFromData(1, &size, NPY_UINT8, src);
4181 PyObject * rev_swig_ptr(
unsigned long *src, npy_intp size) {
4182 return PyArray_SimpleNewFromData(1, &size, NPY_UINT64, src);
4186 PyObject * rev_swig_ptr(
long *src, npy_intp size) {
4187 return PyArray_SimpleNewFromData(1, &size, NPY_INT64, src);
4191 float * cast_integer_to_float_ptr (
long x) {
4195 long * cast_integer_to_long_ptr (
long x) {
4199 int * cast_integer_to_int_ptr (
long x) {
4208 void ignore_SIGTTIN() {
4209 signal(SIGTTIN, SIG_IGN);
4218 std::unordered_map<long, long> map;
4220 void add(
size_t n,
const long *keys,
const long *vals) {
4221 map.reserve(map.size() + n);
4222 for (
size_t i = 0; i < n; i++) {
4223 map[keys[i]] = vals[i];
4227 long search(
long key) {
4228 if (map.count(key) == 0) {
4235 void search_multiple(
size_t n,
const long *keys,
long * vals) {
4236 for (
size_t i = 0; i < n; i++) {
4237 vals[i] = search(keys[i]);
4246 SWIGINTERN PyObject *_wrap_new_FloatVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4247 PyObject *resultobj = 0;
4248 std::vector< float > *result = 0 ;
4250 if (!PyArg_ParseTuple(args,(
char *)
":new_FloatVector")) SWIG_fail;
4251 result = (std::vector< float > *)
new std::vector< float >();
4252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, SWIG_POINTER_NEW | 0 );
4259 SWIGINTERN PyObject *_wrap_FloatVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4260 PyObject *resultobj = 0;
4261 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4267 PyObject * obj0 = 0 ;
4268 PyObject * obj1 = 0 ;
4270 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVector_push_back",&obj0,&obj1)) SWIG_fail;
4271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
4272 if (!SWIG_IsOK(res1)) {
4273 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVector_push_back" "', argument " "1"" of type '" "std::vector< float > *""'");
4275 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4276 ecode2 = SWIG_AsVal_float(obj1, &val2);
4277 if (!SWIG_IsOK(ecode2)) {
4278 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "FloatVector_push_back" "', argument " "2"" of type '" "float""'");
4280 arg2 =
static_cast< float >(val2);
4281 (arg1)->push_back(arg2);
4282 resultobj = SWIG_Py_Void();
4289 SWIGINTERN PyObject *_wrap_FloatVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4290 PyObject *resultobj = 0;
4291 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4294 PyObject * obj0 = 0 ;
4296 if (!PyArg_ParseTuple(args,(
char *)
"O:FloatVector_clear",&obj0)) SWIG_fail;
4297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
4298 if (!SWIG_IsOK(res1)) {
4299 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVector_clear" "', argument " "1"" of type '" "std::vector< float > *""'");
4301 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4303 resultobj = SWIG_Py_Void();
4310 SWIGINTERN PyObject *_wrap_FloatVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4311 PyObject *resultobj = 0;
4312 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4315 PyObject * obj0 = 0 ;
4318 if (!PyArg_ParseTuple(args,(
char *)
"O:FloatVector_data",&obj0)) SWIG_fail;
4319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
4320 if (!SWIG_IsOK(res1)) {
4321 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVector_data" "', argument " "1"" of type '" "std::vector< float > *""'");
4323 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4324 result = (
float *)(arg1)->data();
4325 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
4332 SWIGINTERN PyObject *_wrap_FloatVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4333 PyObject *resultobj = 0;
4334 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4337 PyObject * obj0 = 0 ;
4340 if (!PyArg_ParseTuple(args,(
char *)
"O:FloatVector_size",&obj0)) SWIG_fail;
4341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
4342 if (!SWIG_IsOK(res1)) {
4343 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVector_size" "', argument " "1"" of type '" "std::vector< float > *""'");
4345 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4346 result = (size_t)(arg1)->size();
4347 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
4354 SWIGINTERN PyObject *_wrap_FloatVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4355 PyObject *resultobj = 0;
4356 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4362 PyObject * obj0 = 0 ;
4363 PyObject * obj1 = 0 ;
4366 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVector_at",&obj0,&obj1)) SWIG_fail;
4367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
4368 if (!SWIG_IsOK(res1)) {
4369 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVector_at" "', argument " "1"" of type '" "std::vector< float > const *""'");
4371 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4372 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4373 if (!SWIG_IsOK(ecode2)) {
4374 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "FloatVector_at" "', argument " "2"" of type '" "size_t""'");
4376 arg2 =
static_cast< size_t >(val2);
4377 result = (float)((std::vector< float >
const *)arg1)->at(arg2);
4378 resultobj = SWIG_From_float(static_cast< float >(result));
4385 SWIGINTERN PyObject *_wrap_FloatVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4386 PyObject *resultobj = 0;
4387 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4393 PyObject * obj0 = 0 ;
4394 PyObject * obj1 = 0 ;
4396 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVector_resize",&obj0,&obj1)) SWIG_fail;
4397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
4398 if (!SWIG_IsOK(res1)) {
4399 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVector_resize" "', argument " "1"" of type '" "std::vector< float > *""'");
4401 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4402 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4403 if (!SWIG_IsOK(ecode2)) {
4404 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "FloatVector_resize" "', argument " "2"" of type '" "size_t""'");
4406 arg2 =
static_cast< size_t >(val2);
4407 (arg1)->resize(arg2);
4408 resultobj = SWIG_Py_Void();
4415 SWIGINTERN PyObject *_wrap_FloatVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4416 PyObject *resultobj = 0;
4417 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4418 std::vector< float > *arg2 = 0 ;
4423 PyObject * obj0 = 0 ;
4424 PyObject * obj1 = 0 ;
4426 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVector_swap",&obj0,&obj1)) SWIG_fail;
4427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
4428 if (!SWIG_IsOK(res1)) {
4429 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVector_swap" "', argument " "1"" of type '" "std::vector< float > *""'");
4431 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4432 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_float_t, 0 );
4433 if (!SWIG_IsOK(res2)) {
4434 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "FloatVector_swap" "', argument " "2"" of type '" "std::vector< float > &""'");
4437 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "FloatVector_swap" "', argument " "2"" of type '" "std::vector< float > &""'");
4439 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
4440 (arg1)->swap(*arg2);
4441 resultobj = SWIG_Py_Void();
4448 SWIGINTERN PyObject *_wrap_delete_FloatVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4449 PyObject *resultobj = 0;
4450 std::vector< float > *arg1 = (std::vector< float > *) 0 ;
4453 PyObject * obj0 = 0 ;
4455 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_FloatVector",&obj0)) SWIG_fail;
4456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_t, SWIG_POINTER_DISOWN | 0 );
4457 if (!SWIG_IsOK(res1)) {
4458 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_FloatVector" "', argument " "1"" of type '" "std::vector< float > *""'");
4460 arg1 =
reinterpret_cast< std::vector< float > *
>(argp1);
4462 resultobj = SWIG_Py_Void();
4469 SWIGINTERN PyObject *FloatVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4471 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
4472 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_float_t, SWIG_NewClientData(obj));
4473 return SWIG_Py_Void();
4476 SWIGINTERN PyObject *_wrap_new_DoubleVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4477 PyObject *resultobj = 0;
4478 std::vector< double > *result = 0 ;
4480 if (!PyArg_ParseTuple(args,(
char *)
":new_DoubleVector")) SWIG_fail;
4481 result = (std::vector< double > *)
new std::vector< double >();
4482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_t, SWIG_POINTER_NEW | 0 );
4489 SWIGINTERN PyObject *_wrap_DoubleVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4490 PyObject *resultobj = 0;
4491 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4497 PyObject * obj0 = 0 ;
4498 PyObject * obj1 = 0 ;
4500 if (!PyArg_ParseTuple(args,(
char *)
"OO:DoubleVector_push_back",&obj0,&obj1)) SWIG_fail;
4501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
4502 if (!SWIG_IsOK(res1)) {
4503 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "DoubleVector_push_back" "', argument " "1"" of type '" "std::vector< double > *""'");
4505 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4506 ecode2 = SWIG_AsVal_double(obj1, &val2);
4507 if (!SWIG_IsOK(ecode2)) {
4508 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "DoubleVector_push_back" "', argument " "2"" of type '" "double""'");
4510 arg2 =
static_cast< double >(val2);
4511 (arg1)->push_back(arg2);
4512 resultobj = SWIG_Py_Void();
4519 SWIGINTERN PyObject *_wrap_DoubleVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4520 PyObject *resultobj = 0;
4521 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4524 PyObject * obj0 = 0 ;
4526 if (!PyArg_ParseTuple(args,(
char *)
"O:DoubleVector_clear",&obj0)) SWIG_fail;
4527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
4528 if (!SWIG_IsOK(res1)) {
4529 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "DoubleVector_clear" "', argument " "1"" of type '" "std::vector< double > *""'");
4531 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4533 resultobj = SWIG_Py_Void();
4540 SWIGINTERN PyObject *_wrap_DoubleVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4541 PyObject *resultobj = 0;
4542 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4545 PyObject * obj0 = 0 ;
4546 double *result = 0 ;
4548 if (!PyArg_ParseTuple(args,(
char *)
"O:DoubleVector_data",&obj0)) SWIG_fail;
4549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
4550 if (!SWIG_IsOK(res1)) {
4551 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "DoubleVector_data" "', argument " "1"" of type '" "std::vector< double > *""'");
4553 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4554 result = (
double *)(arg1)->data();
4555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 );
4562 SWIGINTERN PyObject *_wrap_DoubleVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4563 PyObject *resultobj = 0;
4564 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4567 PyObject * obj0 = 0 ;
4570 if (!PyArg_ParseTuple(args,(
char *)
"O:DoubleVector_size",&obj0)) SWIG_fail;
4571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
4572 if (!SWIG_IsOK(res1)) {
4573 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "DoubleVector_size" "', argument " "1"" of type '" "std::vector< double > *""'");
4575 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4576 result = (size_t)(arg1)->size();
4577 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
4584 SWIGINTERN PyObject *_wrap_DoubleVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4585 PyObject *resultobj = 0;
4586 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4592 PyObject * obj0 = 0 ;
4593 PyObject * obj1 = 0 ;
4596 if (!PyArg_ParseTuple(args,(
char *)
"OO:DoubleVector_at",&obj0,&obj1)) SWIG_fail;
4597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
4598 if (!SWIG_IsOK(res1)) {
4599 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "DoubleVector_at" "', argument " "1"" of type '" "std::vector< double > const *""'");
4601 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4602 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4603 if (!SWIG_IsOK(ecode2)) {
4604 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "DoubleVector_at" "', argument " "2"" of type '" "size_t""'");
4606 arg2 =
static_cast< size_t >(val2);
4607 result = (double)((std::vector< double >
const *)arg1)->at(arg2);
4608 resultobj = SWIG_From_double(static_cast< double >(result));
4615 SWIGINTERN PyObject *_wrap_DoubleVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4616 PyObject *resultobj = 0;
4617 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4623 PyObject * obj0 = 0 ;
4624 PyObject * obj1 = 0 ;
4626 if (!PyArg_ParseTuple(args,(
char *)
"OO:DoubleVector_resize",&obj0,&obj1)) SWIG_fail;
4627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
4628 if (!SWIG_IsOK(res1)) {
4629 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "DoubleVector_resize" "', argument " "1"" of type '" "std::vector< double > *""'");
4631 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4632 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4633 if (!SWIG_IsOK(ecode2)) {
4634 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "DoubleVector_resize" "', argument " "2"" of type '" "size_t""'");
4636 arg2 =
static_cast< size_t >(val2);
4637 (arg1)->resize(arg2);
4638 resultobj = SWIG_Py_Void();
4645 SWIGINTERN PyObject *_wrap_DoubleVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4646 PyObject *resultobj = 0;
4647 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4648 std::vector< double > *arg2 = 0 ;
4653 PyObject * obj0 = 0 ;
4654 PyObject * obj1 = 0 ;
4656 if (!PyArg_ParseTuple(args,(
char *)
"OO:DoubleVector_swap",&obj0,&obj1)) SWIG_fail;
4657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
4658 if (!SWIG_IsOK(res1)) {
4659 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "DoubleVector_swap" "', argument " "1"" of type '" "std::vector< double > *""'");
4661 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4662 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_double_t, 0 );
4663 if (!SWIG_IsOK(res2)) {
4664 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "DoubleVector_swap" "', argument " "2"" of type '" "std::vector< double > &""'");
4667 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "DoubleVector_swap" "', argument " "2"" of type '" "std::vector< double > &""'");
4669 arg2 =
reinterpret_cast< std::vector< double > *
>(argp2);
4670 (arg1)->swap(*arg2);
4671 resultobj = SWIG_Py_Void();
4678 SWIGINTERN PyObject *_wrap_delete_DoubleVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4679 PyObject *resultobj = 0;
4680 std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4683 PyObject * obj0 = 0 ;
4685 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_DoubleVector",&obj0)) SWIG_fail;
4686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_t, SWIG_POINTER_DISOWN | 0 );
4687 if (!SWIG_IsOK(res1)) {
4688 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_DoubleVector" "', argument " "1"" of type '" "std::vector< double > *""'");
4690 arg1 =
reinterpret_cast< std::vector< double > *
>(argp1);
4692 resultobj = SWIG_Py_Void();
4699 SWIGINTERN PyObject *DoubleVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4701 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
4702 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_double_t, SWIG_NewClientData(obj));
4703 return SWIG_Py_Void();
4706 SWIGINTERN PyObject *_wrap_new_ByteVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4707 PyObject *resultobj = 0;
4708 std::vector< uint8_t > *result = 0 ;
4710 if (!PyArg_ParseTuple(args,(
char *)
":new_ByteVector")) SWIG_fail;
4711 result = (std::vector< uint8_t > *)
new std::vector< uint8_t >();
4712 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, SWIG_POINTER_NEW | 0 );
4719 SWIGINTERN PyObject *_wrap_ByteVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4720 PyObject *resultobj = 0;
4721 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4722 unsigned char arg2 ;
4725 unsigned char val2 ;
4727 PyObject * obj0 = 0 ;
4728 PyObject * obj1 = 0 ;
4730 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVector_push_back",&obj0,&obj1)) SWIG_fail;
4731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
4732 if (!SWIG_IsOK(res1)) {
4733 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVector_push_back" "', argument " "1"" of type '" "std::vector< uint8_t > *""'");
4735 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4736 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4737 if (!SWIG_IsOK(ecode2)) {
4738 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ByteVector_push_back" "', argument " "2"" of type '" "unsigned char""'");
4740 arg2 =
static_cast< unsigned char >(val2);
4741 (arg1)->push_back(arg2);
4742 resultobj = SWIG_Py_Void();
4749 SWIGINTERN PyObject *_wrap_ByteVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4750 PyObject *resultobj = 0;
4751 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4754 PyObject * obj0 = 0 ;
4756 if (!PyArg_ParseTuple(args,(
char *)
"O:ByteVector_clear",&obj0)) SWIG_fail;
4757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
4758 if (!SWIG_IsOK(res1)) {
4759 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVector_clear" "', argument " "1"" of type '" "std::vector< uint8_t > *""'");
4761 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4763 resultobj = SWIG_Py_Void();
4770 SWIGINTERN PyObject *_wrap_ByteVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4771 PyObject *resultobj = 0;
4772 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4775 PyObject * obj0 = 0 ;
4776 unsigned char *result = 0 ;
4778 if (!PyArg_ParseTuple(args,(
char *)
"O:ByteVector_data",&obj0)) SWIG_fail;
4779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
4780 if (!SWIG_IsOK(res1)) {
4781 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVector_data" "', argument " "1"" of type '" "std::vector< uint8_t > *""'");
4783 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4784 result = (
unsigned char *)(arg1)->data();
4785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
4792 SWIGINTERN PyObject *_wrap_ByteVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4793 PyObject *resultobj = 0;
4794 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4797 PyObject * obj0 = 0 ;
4800 if (!PyArg_ParseTuple(args,(
char *)
"O:ByteVector_size",&obj0)) SWIG_fail;
4801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
4802 if (!SWIG_IsOK(res1)) {
4803 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVector_size" "', argument " "1"" of type '" "std::vector< uint8_t > *""'");
4805 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4806 result = (size_t)(arg1)->size();
4807 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
4814 SWIGINTERN PyObject *_wrap_ByteVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4815 PyObject *resultobj = 0;
4816 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4822 PyObject * obj0 = 0 ;
4823 PyObject * obj1 = 0 ;
4824 unsigned char result;
4826 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVector_at",&obj0,&obj1)) SWIG_fail;
4827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
4828 if (!SWIG_IsOK(res1)) {
4829 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVector_at" "', argument " "1"" of type '" "std::vector< uint8_t > const *""'");
4831 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4832 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4833 if (!SWIG_IsOK(ecode2)) {
4834 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ByteVector_at" "', argument " "2"" of type '" "size_t""'");
4836 arg2 =
static_cast< size_t >(val2);
4837 result = (
unsigned char)((std::vector< uint8_t >
const *)arg1)->at(arg2);
4838 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4845 SWIGINTERN PyObject *_wrap_ByteVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4846 PyObject *resultobj = 0;
4847 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4853 PyObject * obj0 = 0 ;
4854 PyObject * obj1 = 0 ;
4856 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVector_resize",&obj0,&obj1)) SWIG_fail;
4857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
4858 if (!SWIG_IsOK(res1)) {
4859 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVector_resize" "', argument " "1"" of type '" "std::vector< uint8_t > *""'");
4861 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4862 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4863 if (!SWIG_IsOK(ecode2)) {
4864 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ByteVector_resize" "', argument " "2"" of type '" "size_t""'");
4866 arg2 =
static_cast< size_t >(val2);
4867 (arg1)->resize(arg2);
4868 resultobj = SWIG_Py_Void();
4875 SWIGINTERN PyObject *_wrap_ByteVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4876 PyObject *resultobj = 0;
4877 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4878 std::vector< unsigned char > *arg2 = 0 ;
4883 PyObject * obj0 = 0 ;
4884 PyObject * obj1 = 0 ;
4886 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVector_swap",&obj0,&obj1)) SWIG_fail;
4887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
4888 if (!SWIG_IsOK(res1)) {
4889 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVector_swap" "', argument " "1"" of type '" "std::vector< uint8_t > *""'");
4891 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4892 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 );
4893 if (!SWIG_IsOK(res2)) {
4894 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ByteVector_swap" "', argument " "2"" of type '" "std::vector< unsigned char > &""'");
4897 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "ByteVector_swap" "', argument " "2"" of type '" "std::vector< unsigned char > &""'");
4899 arg2 =
reinterpret_cast< std::vector< unsigned char > *
>(argp2);
4900 (arg1)->swap(*arg2);
4901 resultobj = SWIG_Py_Void();
4908 SWIGINTERN PyObject *_wrap_delete_ByteVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4909 PyObject *resultobj = 0;
4910 std::vector< uint8_t > *arg1 = (std::vector< uint8_t > *) 0 ;
4913 PyObject * obj0 = 0 ;
4915 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ByteVector",&obj0)) SWIG_fail;
4916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_char_t, SWIG_POINTER_DISOWN | 0 );
4917 if (!SWIG_IsOK(res1)) {
4918 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ByteVector" "', argument " "1"" of type '" "std::vector< uint8_t > *""'");
4920 arg1 =
reinterpret_cast< std::vector< uint8_t > *
>(argp1);
4922 resultobj = SWIG_Py_Void();
4929 SWIGINTERN PyObject *ByteVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4931 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
4932 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_unsigned_char_t, SWIG_NewClientData(obj));
4933 return SWIG_Py_Void();
4936 SWIGINTERN PyObject *_wrap_new_CharVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4937 PyObject *resultobj = 0;
4938 std::vector< char > *result = 0 ;
4940 if (!PyArg_ParseTuple(args,(
char *)
":new_CharVector")) SWIG_fail;
4941 result = (std::vector< char > *)
new std::vector< char >();
4942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_char_t, SWIG_POINTER_NEW | 0 );
4949 SWIGINTERN PyObject *_wrap_CharVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4950 PyObject *resultobj = 0;
4951 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
4957 PyObject * obj0 = 0 ;
4958 PyObject * obj1 = 0 ;
4960 if (!PyArg_ParseTuple(args,(
char *)
"OO:CharVector_push_back",&obj0,&obj1)) SWIG_fail;
4961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
4962 if (!SWIG_IsOK(res1)) {
4963 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "CharVector_push_back" "', argument " "1"" of type '" "std::vector< char > *""'");
4965 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
4966 ecode2 = SWIG_AsVal_char(obj1, &val2);
4967 if (!SWIG_IsOK(ecode2)) {
4968 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "CharVector_push_back" "', argument " "2"" of type '" "char""'");
4970 arg2 =
static_cast< char >(val2);
4971 (arg1)->push_back(arg2);
4972 resultobj = SWIG_Py_Void();
4979 SWIGINTERN PyObject *_wrap_CharVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4980 PyObject *resultobj = 0;
4981 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
4984 PyObject * obj0 = 0 ;
4986 if (!PyArg_ParseTuple(args,(
char *)
"O:CharVector_clear",&obj0)) SWIG_fail;
4987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
4988 if (!SWIG_IsOK(res1)) {
4989 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "CharVector_clear" "', argument " "1"" of type '" "std::vector< char > *""'");
4991 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
4993 resultobj = SWIG_Py_Void();
5000 SWIGINTERN PyObject *_wrap_CharVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5001 PyObject *resultobj = 0;
5002 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
5005 PyObject * obj0 = 0 ;
5008 if (!PyArg_ParseTuple(args,(
char *)
"O:CharVector_data",&obj0)) SWIG_fail;
5009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
5010 if (!SWIG_IsOK(res1)) {
5011 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "CharVector_data" "', argument " "1"" of type '" "std::vector< char > *""'");
5013 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
5014 result = (
char *)(arg1)->data();
5015 resultobj = SWIG_FromCharPtr((
const char *)result);
5022 SWIGINTERN PyObject *_wrap_CharVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5023 PyObject *resultobj = 0;
5024 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
5027 PyObject * obj0 = 0 ;
5030 if (!PyArg_ParseTuple(args,(
char *)
"O:CharVector_size",&obj0)) SWIG_fail;
5031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
5032 if (!SWIG_IsOK(res1)) {
5033 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "CharVector_size" "', argument " "1"" of type '" "std::vector< char > *""'");
5035 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
5036 result = (size_t)(arg1)->size();
5037 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
5044 SWIGINTERN PyObject *_wrap_CharVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5045 PyObject *resultobj = 0;
5046 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
5052 PyObject * obj0 = 0 ;
5053 PyObject * obj1 = 0 ;
5056 if (!PyArg_ParseTuple(args,(
char *)
"OO:CharVector_at",&obj0,&obj1)) SWIG_fail;
5057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
5058 if (!SWIG_IsOK(res1)) {
5059 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "CharVector_at" "', argument " "1"" of type '" "std::vector< char > const *""'");
5061 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
5062 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5063 if (!SWIG_IsOK(ecode2)) {
5064 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "CharVector_at" "', argument " "2"" of type '" "size_t""'");
5066 arg2 =
static_cast< size_t >(val2);
5067 result = (char)((std::vector< char >
const *)arg1)->at(arg2);
5068 resultobj = SWIG_From_char(static_cast< char >(result));
5075 SWIGINTERN PyObject *_wrap_CharVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5076 PyObject *resultobj = 0;
5077 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
5083 PyObject * obj0 = 0 ;
5084 PyObject * obj1 = 0 ;
5086 if (!PyArg_ParseTuple(args,(
char *)
"OO:CharVector_resize",&obj0,&obj1)) SWIG_fail;
5087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
5088 if (!SWIG_IsOK(res1)) {
5089 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "CharVector_resize" "', argument " "1"" of type '" "std::vector< char > *""'");
5091 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
5092 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5093 if (!SWIG_IsOK(ecode2)) {
5094 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "CharVector_resize" "', argument " "2"" of type '" "size_t""'");
5096 arg2 =
static_cast< size_t >(val2);
5097 (arg1)->resize(arg2);
5098 resultobj = SWIG_Py_Void();
5105 SWIGINTERN PyObject *_wrap_CharVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5106 PyObject *resultobj = 0;
5107 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
5108 std::vector< char > *arg2 = 0 ;
5113 PyObject * obj0 = 0 ;
5114 PyObject * obj1 = 0 ;
5116 if (!PyArg_ParseTuple(args,(
char *)
"OO:CharVector_swap",&obj0,&obj1)) SWIG_fail;
5117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
5118 if (!SWIG_IsOK(res1)) {
5119 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "CharVector_swap" "', argument " "1"" of type '" "std::vector< char > *""'");
5121 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
5122 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_char_t, 0 );
5123 if (!SWIG_IsOK(res2)) {
5124 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "CharVector_swap" "', argument " "2"" of type '" "std::vector< char > &""'");
5127 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "CharVector_swap" "', argument " "2"" of type '" "std::vector< char > &""'");
5129 arg2 =
reinterpret_cast< std::vector< char > *
>(argp2);
5130 (arg1)->swap(*arg2);
5131 resultobj = SWIG_Py_Void();
5138 SWIGINTERN PyObject *_wrap_delete_CharVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5139 PyObject *resultobj = 0;
5140 std::vector< char > *arg1 = (std::vector< char > *) 0 ;
5143 PyObject * obj0 = 0 ;
5145 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_CharVector",&obj0)) SWIG_fail;
5146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_t, SWIG_POINTER_DISOWN | 0 );
5147 if (!SWIG_IsOK(res1)) {
5148 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_CharVector" "', argument " "1"" of type '" "std::vector< char > *""'");
5150 arg1 =
reinterpret_cast< std::vector< char > *
>(argp1);
5152 resultobj = SWIG_Py_Void();
5159 SWIGINTERN PyObject *CharVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5161 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
5162 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_char_t, SWIG_NewClientData(obj));
5163 return SWIG_Py_Void();
5166 SWIGINTERN PyObject *_wrap_new_Uint64Vector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5167 PyObject *resultobj = 0;
5168 std::vector< unsigned long > *result = 0 ;
5170 if (!PyArg_ParseTuple(args,(
char *)
":new_Uint64Vector")) SWIG_fail;
5171 result = (std::vector< unsigned long > *)
new std::vector< unsigned long >();
5172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_long_t, SWIG_POINTER_NEW | 0 );
5179 SWIGINTERN PyObject *_wrap_Uint64Vector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5180 PyObject *resultobj = 0;
5181 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5182 unsigned long arg2 ;
5185 unsigned long val2 ;
5187 PyObject * obj0 = 0 ;
5188 PyObject * obj1 = 0 ;
5190 if (!PyArg_ParseTuple(args,(
char *)
"OO:Uint64Vector_push_back",&obj0,&obj1)) SWIG_fail;
5191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
5192 if (!SWIG_IsOK(res1)) {
5193 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Uint64Vector_push_back" "', argument " "1"" of type '" "std::vector< unsigned long > *""'");
5195 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5196 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
5197 if (!SWIG_IsOK(ecode2)) {
5198 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Uint64Vector_push_back" "', argument " "2"" of type '" "unsigned long""'");
5200 arg2 =
static_cast< unsigned long >(val2);
5201 (arg1)->push_back(arg2);
5202 resultobj = SWIG_Py_Void();
5209 SWIGINTERN PyObject *_wrap_Uint64Vector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5210 PyObject *resultobj = 0;
5211 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5214 PyObject * obj0 = 0 ;
5216 if (!PyArg_ParseTuple(args,(
char *)
"O:Uint64Vector_clear",&obj0)) SWIG_fail;
5217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
5218 if (!SWIG_IsOK(res1)) {
5219 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Uint64Vector_clear" "', argument " "1"" of type '" "std::vector< unsigned long > *""'");
5221 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5223 resultobj = SWIG_Py_Void();
5230 SWIGINTERN PyObject *_wrap_Uint64Vector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5231 PyObject *resultobj = 0;
5232 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5235 PyObject * obj0 = 0 ;
5236 unsigned long *result = 0 ;
5238 if (!PyArg_ParseTuple(args,(
char *)
"O:Uint64Vector_data",&obj0)) SWIG_fail;
5239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
5240 if (!SWIG_IsOK(res1)) {
5241 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Uint64Vector_data" "', argument " "1"" of type '" "std::vector< unsigned long > *""'");
5243 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5244 result = (
unsigned long *)(arg1)->data();
5245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long, 0 | 0 );
5252 SWIGINTERN PyObject *_wrap_Uint64Vector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5253 PyObject *resultobj = 0;
5254 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5257 PyObject * obj0 = 0 ;
5260 if (!PyArg_ParseTuple(args,(
char *)
"O:Uint64Vector_size",&obj0)) SWIG_fail;
5261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
5262 if (!SWIG_IsOK(res1)) {
5263 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Uint64Vector_size" "', argument " "1"" of type '" "std::vector< unsigned long > *""'");
5265 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5266 result = (size_t)(arg1)->size();
5267 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
5274 SWIGINTERN PyObject *_wrap_Uint64Vector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5275 PyObject *resultobj = 0;
5276 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5282 PyObject * obj0 = 0 ;
5283 PyObject * obj1 = 0 ;
5284 unsigned long result;
5286 if (!PyArg_ParseTuple(args,(
char *)
"OO:Uint64Vector_at",&obj0,&obj1)) SWIG_fail;
5287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
5288 if (!SWIG_IsOK(res1)) {
5289 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Uint64Vector_at" "', argument " "1"" of type '" "std::vector< unsigned long > const *""'");
5291 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5292 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5293 if (!SWIG_IsOK(ecode2)) {
5294 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Uint64Vector_at" "', argument " "2"" of type '" "size_t""'");
5296 arg2 =
static_cast< size_t >(val2);
5297 result = (
unsigned long)((std::vector< unsigned long >
const *)arg1)->at(arg2);
5298 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
5305 SWIGINTERN PyObject *_wrap_Uint64Vector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5306 PyObject *resultobj = 0;
5307 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5313 PyObject * obj0 = 0 ;
5314 PyObject * obj1 = 0 ;
5316 if (!PyArg_ParseTuple(args,(
char *)
"OO:Uint64Vector_resize",&obj0,&obj1)) SWIG_fail;
5317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
5318 if (!SWIG_IsOK(res1)) {
5319 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Uint64Vector_resize" "', argument " "1"" of type '" "std::vector< unsigned long > *""'");
5321 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5322 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5323 if (!SWIG_IsOK(ecode2)) {
5324 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Uint64Vector_resize" "', argument " "2"" of type '" "size_t""'");
5326 arg2 =
static_cast< size_t >(val2);
5327 (arg1)->resize(arg2);
5328 resultobj = SWIG_Py_Void();
5335 SWIGINTERN PyObject *_wrap_Uint64Vector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5336 PyObject *resultobj = 0;
5337 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5338 std::vector< unsigned long > *arg2 = 0 ;
5343 PyObject * obj0 = 0 ;
5344 PyObject * obj1 = 0 ;
5346 if (!PyArg_ParseTuple(args,(
char *)
"OO:Uint64Vector_swap",&obj0,&obj1)) SWIG_fail;
5347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
5348 if (!SWIG_IsOK(res1)) {
5349 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Uint64Vector_swap" "', argument " "1"" of type '" "std::vector< unsigned long > *""'");
5351 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5352 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 );
5353 if (!SWIG_IsOK(res2)) {
5354 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Uint64Vector_swap" "', argument " "2"" of type '" "std::vector< unsigned long > &""'");
5357 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Uint64Vector_swap" "', argument " "2"" of type '" "std::vector< unsigned long > &""'");
5359 arg2 =
reinterpret_cast< std::vector< unsigned long > *
>(argp2);
5360 (arg1)->swap(*arg2);
5361 resultobj = SWIG_Py_Void();
5368 SWIGINTERN PyObject *_wrap_delete_Uint64Vector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5369 PyObject *resultobj = 0;
5370 std::vector< unsigned long > *arg1 = (std::vector< unsigned long > *) 0 ;
5373 PyObject * obj0 = 0 ;
5375 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Uint64Vector",&obj0)) SWIG_fail;
5376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_long_t, SWIG_POINTER_DISOWN | 0 );
5377 if (!SWIG_IsOK(res1)) {
5378 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Uint64Vector" "', argument " "1"" of type '" "std::vector< unsigned long > *""'");
5380 arg1 =
reinterpret_cast< std::vector< unsigned long > *
>(argp1);
5382 resultobj = SWIG_Py_Void();
5389 SWIGINTERN PyObject *Uint64Vector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5391 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
5392 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_unsigned_long_t, SWIG_NewClientData(obj));
5393 return SWIG_Py_Void();
5396 SWIGINTERN PyObject *_wrap_new_LongVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5397 PyObject *resultobj = 0;
5398 std::vector< long > *result = 0 ;
5400 if (!PyArg_ParseTuple(args,(
char *)
":new_LongVector")) SWIG_fail;
5401 result = (std::vector< long > *)
new std::vector< long >();
5402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_long_t, SWIG_POINTER_NEW | 0 );
5409 SWIGINTERN PyObject *_wrap_LongVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5410 PyObject *resultobj = 0;
5411 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5417 PyObject * obj0 = 0 ;
5418 PyObject * obj1 = 0 ;
5420 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVector_push_back",&obj0,&obj1)) SWIG_fail;
5421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
5422 if (!SWIG_IsOK(res1)) {
5423 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVector_push_back" "', argument " "1"" of type '" "std::vector< long > *""'");
5425 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5426 ecode2 = SWIG_AsVal_long(obj1, &val2);
5427 if (!SWIG_IsOK(ecode2)) {
5428 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LongVector_push_back" "', argument " "2"" of type '" "long""'");
5430 arg2 =
static_cast< long >(val2);
5431 (arg1)->push_back(arg2);
5432 resultobj = SWIG_Py_Void();
5439 SWIGINTERN PyObject *_wrap_LongVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5440 PyObject *resultobj = 0;
5441 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5444 PyObject * obj0 = 0 ;
5446 if (!PyArg_ParseTuple(args,(
char *)
"O:LongVector_clear",&obj0)) SWIG_fail;
5447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
5448 if (!SWIG_IsOK(res1)) {
5449 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVector_clear" "', argument " "1"" of type '" "std::vector< long > *""'");
5451 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5453 resultobj = SWIG_Py_Void();
5460 SWIGINTERN PyObject *_wrap_LongVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5461 PyObject *resultobj = 0;
5462 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5465 PyObject * obj0 = 0 ;
5468 if (!PyArg_ParseTuple(args,(
char *)
"O:LongVector_data",&obj0)) SWIG_fail;
5469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
5470 if (!SWIG_IsOK(res1)) {
5471 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVector_data" "', argument " "1"" of type '" "std::vector< long > *""'");
5473 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5474 result = (
long *)(arg1)->data();
5475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
5482 SWIGINTERN PyObject *_wrap_LongVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5483 PyObject *resultobj = 0;
5484 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5487 PyObject * obj0 = 0 ;
5490 if (!PyArg_ParseTuple(args,(
char *)
"O:LongVector_size",&obj0)) SWIG_fail;
5491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
5492 if (!SWIG_IsOK(res1)) {
5493 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVector_size" "', argument " "1"" of type '" "std::vector< long > *""'");
5495 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5496 result = (size_t)(arg1)->size();
5497 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
5504 SWIGINTERN PyObject *_wrap_LongVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5505 PyObject *resultobj = 0;
5506 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5512 PyObject * obj0 = 0 ;
5513 PyObject * obj1 = 0 ;
5516 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVector_at",&obj0,&obj1)) SWIG_fail;
5517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
5518 if (!SWIG_IsOK(res1)) {
5519 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVector_at" "', argument " "1"" of type '" "std::vector< long > const *""'");
5521 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5522 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5523 if (!SWIG_IsOK(ecode2)) {
5524 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LongVector_at" "', argument " "2"" of type '" "size_t""'");
5526 arg2 =
static_cast< size_t >(val2);
5527 result = (long)((std::vector< long >
const *)arg1)->at(arg2);
5528 resultobj = SWIG_From_long(static_cast< long >(result));
5535 SWIGINTERN PyObject *_wrap_LongVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5536 PyObject *resultobj = 0;
5537 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5543 PyObject * obj0 = 0 ;
5544 PyObject * obj1 = 0 ;
5546 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVector_resize",&obj0,&obj1)) SWIG_fail;
5547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
5548 if (!SWIG_IsOK(res1)) {
5549 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVector_resize" "', argument " "1"" of type '" "std::vector< long > *""'");
5551 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5552 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5553 if (!SWIG_IsOK(ecode2)) {
5554 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LongVector_resize" "', argument " "2"" of type '" "size_t""'");
5556 arg2 =
static_cast< size_t >(val2);
5557 (arg1)->resize(arg2);
5558 resultobj = SWIG_Py_Void();
5565 SWIGINTERN PyObject *_wrap_LongVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5566 PyObject *resultobj = 0;
5567 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5568 std::vector< long > *arg2 = 0 ;
5573 PyObject * obj0 = 0 ;
5574 PyObject * obj1 = 0 ;
5576 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVector_swap",&obj0,&obj1)) SWIG_fail;
5577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
5578 if (!SWIG_IsOK(res1)) {
5579 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVector_swap" "', argument " "1"" of type '" "std::vector< long > *""'");
5581 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_long_t, 0 );
5583 if (!SWIG_IsOK(res2)) {
5584 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "LongVector_swap" "', argument " "2"" of type '" "std::vector< long > &""'");
5587 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "LongVector_swap" "', argument " "2"" of type '" "std::vector< long > &""'");
5589 arg2 =
reinterpret_cast< std::vector< long > *
>(argp2);
5590 (arg1)->swap(*arg2);
5591 resultobj = SWIG_Py_Void();
5598 SWIGINTERN PyObject *_wrap_delete_LongVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5599 PyObject *resultobj = 0;
5600 std::vector< long > *arg1 = (std::vector< long > *) 0 ;
5603 PyObject * obj0 = 0 ;
5605 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_LongVector",&obj0)) SWIG_fail;
5606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_long_t, SWIG_POINTER_DISOWN | 0 );
5607 if (!SWIG_IsOK(res1)) {
5608 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_LongVector" "', argument " "1"" of type '" "std::vector< long > *""'");
5610 arg1 =
reinterpret_cast< std::vector< long > *
>(argp1);
5612 resultobj = SWIG_Py_Void();
5619 SWIGINTERN PyObject *LongVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5621 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
5622 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_long_t, SWIG_NewClientData(obj));
5623 return SWIG_Py_Void();
5626 SWIGINTERN PyObject *_wrap_new_IntVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5627 PyObject *resultobj = 0;
5628 std::vector< int > *result = 0 ;
5630 if (!PyArg_ParseTuple(args,(
char *)
":new_IntVector")) SWIG_fail;
5631 result = (std::vector< int > *)
new std::vector< int >();
5632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_t, SWIG_POINTER_NEW | 0 );
5639 SWIGINTERN PyObject *_wrap_IntVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5640 PyObject *resultobj = 0;
5641 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5647 PyObject * obj0 = 0 ;
5648 PyObject * obj1 = 0 ;
5650 if (!PyArg_ParseTuple(args,(
char *)
"OO:IntVector_push_back",&obj0,&obj1)) SWIG_fail;
5651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
5652 if (!SWIG_IsOK(res1)) {
5653 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntVector_push_back" "', argument " "1"" of type '" "std::vector< int > *""'");
5655 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5656 ecode2 = SWIG_AsVal_int(obj1, &val2);
5657 if (!SWIG_IsOK(ecode2)) {
5658 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IntVector_push_back" "', argument " "2"" of type '" "int""'");
5660 arg2 =
static_cast< int >(val2);
5661 (arg1)->push_back(arg2);
5662 resultobj = SWIG_Py_Void();
5669 SWIGINTERN PyObject *_wrap_IntVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5670 PyObject *resultobj = 0;
5671 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5674 PyObject * obj0 = 0 ;
5676 if (!PyArg_ParseTuple(args,(
char *)
"O:IntVector_clear",&obj0)) SWIG_fail;
5677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
5678 if (!SWIG_IsOK(res1)) {
5679 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntVector_clear" "', argument " "1"" of type '" "std::vector< int > *""'");
5681 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5683 resultobj = SWIG_Py_Void();
5690 SWIGINTERN PyObject *_wrap_IntVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5691 PyObject *resultobj = 0;
5692 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5695 PyObject * obj0 = 0 ;
5698 if (!PyArg_ParseTuple(args,(
char *)
"O:IntVector_data",&obj0)) SWIG_fail;
5699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
5700 if (!SWIG_IsOK(res1)) {
5701 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntVector_data" "', argument " "1"" of type '" "std::vector< int > *""'");
5703 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5704 result = (
int *)(arg1)->data();
5705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
5712 SWIGINTERN PyObject *_wrap_IntVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5713 PyObject *resultobj = 0;
5714 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5717 PyObject * obj0 = 0 ;
5720 if (!PyArg_ParseTuple(args,(
char *)
"O:IntVector_size",&obj0)) SWIG_fail;
5721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
5722 if (!SWIG_IsOK(res1)) {
5723 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntVector_size" "', argument " "1"" of type '" "std::vector< int > *""'");
5725 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5726 result = (size_t)(arg1)->size();
5727 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
5734 SWIGINTERN PyObject *_wrap_IntVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5735 PyObject *resultobj = 0;
5736 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5742 PyObject * obj0 = 0 ;
5743 PyObject * obj1 = 0 ;
5746 if (!PyArg_ParseTuple(args,(
char *)
"OO:IntVector_at",&obj0,&obj1)) SWIG_fail;
5747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
5748 if (!SWIG_IsOK(res1)) {
5749 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntVector_at" "', argument " "1"" of type '" "std::vector< int > const *""'");
5751 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5752 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5753 if (!SWIG_IsOK(ecode2)) {
5754 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IntVector_at" "', argument " "2"" of type '" "size_t""'");
5756 arg2 =
static_cast< size_t >(val2);
5757 result = (int)((std::vector< int >
const *)arg1)->at(arg2);
5758 resultobj = SWIG_From_int(static_cast< int >(result));
5765 SWIGINTERN PyObject *_wrap_IntVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5766 PyObject *resultobj = 0;
5767 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5773 PyObject * obj0 = 0 ;
5774 PyObject * obj1 = 0 ;
5776 if (!PyArg_ParseTuple(args,(
char *)
"OO:IntVector_resize",&obj0,&obj1)) SWIG_fail;
5777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
5778 if (!SWIG_IsOK(res1)) {
5779 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntVector_resize" "', argument " "1"" of type '" "std::vector< int > *""'");
5781 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5782 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5783 if (!SWIG_IsOK(ecode2)) {
5784 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IntVector_resize" "', argument " "2"" of type '" "size_t""'");
5786 arg2 =
static_cast< size_t >(val2);
5787 (arg1)->resize(arg2);
5788 resultobj = SWIG_Py_Void();
5795 SWIGINTERN PyObject *_wrap_IntVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5796 PyObject *resultobj = 0;
5797 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5798 std::vector< int > *arg2 = 0 ;
5803 PyObject * obj0 = 0 ;
5804 PyObject * obj1 = 0 ;
5806 if (!PyArg_ParseTuple(args,(
char *)
"OO:IntVector_swap",&obj0,&obj1)) SWIG_fail;
5807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
5808 if (!SWIG_IsOK(res1)) {
5809 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntVector_swap" "', argument " "1"" of type '" "std::vector< int > *""'");
5811 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5812 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_int_t, 0 );
5813 if (!SWIG_IsOK(res2)) {
5814 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'");
5817 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'");
5819 arg2 =
reinterpret_cast< std::vector< int > *
>(argp2);
5820 (arg1)->swap(*arg2);
5821 resultobj = SWIG_Py_Void();
5828 SWIGINTERN PyObject *_wrap_delete_IntVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5829 PyObject *resultobj = 0;
5830 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5833 PyObject * obj0 = 0 ;
5835 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IntVector",&obj0)) SWIG_fail;
5836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_t, SWIG_POINTER_DISOWN | 0 );
5837 if (!SWIG_IsOK(res1)) {
5838 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IntVector" "', argument " "1"" of type '" "std::vector< int > *""'");
5840 arg1 =
reinterpret_cast< std::vector< int > *
>(argp1);
5842 resultobj = SWIG_Py_Void();
5849 SWIGINTERN PyObject *IntVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5851 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
5852 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_int_t, SWIG_NewClientData(obj));
5853 return SWIG_Py_Void();
5856 SWIGINTERN PyObject *_wrap_new_VectorTransformVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5857 PyObject *resultobj = 0;
5858 std::vector< faiss::VectorTransform * > *result = 0 ;
5860 if (!PyArg_ParseTuple(args,(
char *)
":new_VectorTransformVector")) SWIG_fail;
5861 result = (std::vector< faiss::VectorTransform * > *)
new std::vector< faiss::VectorTransform * >();
5862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, SWIG_POINTER_NEW | 0 );
5869 SWIGINTERN PyObject *_wrap_VectorTransformVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5870 PyObject *resultobj = 0;
5871 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
5877 PyObject * obj0 = 0 ;
5878 PyObject * obj1 = 0 ;
5880 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorTransformVector_push_back",&obj0,&obj1)) SWIG_fail;
5881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
5882 if (!SWIG_IsOK(res1)) {
5883 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransformVector_push_back" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > *""'");
5885 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
5886 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
5887 if (!SWIG_IsOK(res2)) {
5888 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "VectorTransformVector_push_back" "', argument " "2"" of type '" "faiss::VectorTransform *""'");
5891 (arg1)->push_back(arg2);
5892 resultobj = SWIG_Py_Void();
5899 SWIGINTERN PyObject *_wrap_VectorTransformVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5900 PyObject *resultobj = 0;
5901 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
5904 PyObject * obj0 = 0 ;
5906 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorTransformVector_clear",&obj0)) SWIG_fail;
5907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
5908 if (!SWIG_IsOK(res1)) {
5909 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransformVector_clear" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > *""'");
5911 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
5913 resultobj = SWIG_Py_Void();
5920 SWIGINTERN PyObject *_wrap_VectorTransformVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5921 PyObject *resultobj = 0;
5922 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
5925 PyObject * obj0 = 0 ;
5928 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorTransformVector_data",&obj0)) SWIG_fail;
5929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
5930 if (!SWIG_IsOK(res1)) {
5931 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransformVector_data" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > *""'");
5933 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
5935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_faiss__VectorTransform, 0 | 0 );
5942 SWIGINTERN PyObject *_wrap_VectorTransformVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5943 PyObject *resultobj = 0;
5944 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
5947 PyObject * obj0 = 0 ;
5950 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorTransformVector_size",&obj0)) SWIG_fail;
5951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
5952 if (!SWIG_IsOK(res1)) {
5953 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransformVector_size" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > *""'");
5955 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
5956 result = (size_t)(arg1)->size();
5957 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
5964 SWIGINTERN PyObject *_wrap_VectorTransformVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5965 PyObject *resultobj = 0;
5966 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
5972 PyObject * obj0 = 0 ;
5973 PyObject * obj1 = 0 ;
5976 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorTransformVector_at",&obj0,&obj1)) SWIG_fail;
5977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
5978 if (!SWIG_IsOK(res1)) {
5979 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransformVector_at" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > const *""'");
5981 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
5982 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5983 if (!SWIG_IsOK(ecode2)) {
5984 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransformVector_at" "', argument " "2"" of type '" "size_t""'");
5986 arg2 =
static_cast< size_t >(val2);
5988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
5995 SWIGINTERN PyObject *_wrap_VectorTransformVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5996 PyObject *resultobj = 0;
5997 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
6003 PyObject * obj0 = 0 ;
6004 PyObject * obj1 = 0 ;
6006 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorTransformVector_resize",&obj0,&obj1)) SWIG_fail;
6007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
6008 if (!SWIG_IsOK(res1)) {
6009 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransformVector_resize" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > *""'");
6011 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
6012 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6013 if (!SWIG_IsOK(ecode2)) {
6014 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransformVector_resize" "', argument " "2"" of type '" "size_t""'");
6016 arg2 =
static_cast< size_t >(val2);
6017 (arg1)->resize(arg2);
6018 resultobj = SWIG_Py_Void();
6025 SWIGINTERN PyObject *_wrap_VectorTransformVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6026 PyObject *resultobj = 0;
6027 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
6028 std::vector< faiss::VectorTransform * > *arg2 = 0 ;
6033 PyObject * obj0 = 0 ;
6034 PyObject * obj1 = 0 ;
6036 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorTransformVector_swap",&obj0,&obj1)) SWIG_fail;
6037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
6038 if (!SWIG_IsOK(res1)) {
6039 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransformVector_swap" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > *""'");
6041 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
6042 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 );
6043 if (!SWIG_IsOK(res2)) {
6044 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "VectorTransformVector_swap" "', argument " "2"" of type '" "std::vector< faiss::VectorTransform * > &""'");
6047 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "VectorTransformVector_swap" "', argument " "2"" of type '" "std::vector< faiss::VectorTransform * > &""'");
6049 arg2 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp2);
6050 (arg1)->swap(*arg2);
6051 resultobj = SWIG_Py_Void();
6058 SWIGINTERN PyObject *_wrap_delete_VectorTransformVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6059 PyObject *resultobj = 0;
6060 std::vector< faiss::VectorTransform * > *arg1 = (std::vector< faiss::VectorTransform * > *) 0 ;
6063 PyObject * obj0 = 0 ;
6065 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_VectorTransformVector",&obj0)) SWIG_fail;
6066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, SWIG_POINTER_DISOWN | 0 );
6067 if (!SWIG_IsOK(res1)) {
6068 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_VectorTransformVector" "', argument " "1"" of type '" "std::vector< faiss::VectorTransform * > *""'");
6070 arg1 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp1);
6072 resultobj = SWIG_Py_Void();
6079 SWIGINTERN PyObject *VectorTransformVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6081 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
6082 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, SWIG_NewClientData(obj));
6083 return SWIG_Py_Void();
6086 SWIGINTERN PyObject *_wrap_new_OperatingPointVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6087 PyObject *resultobj = 0;
6088 std::vector< faiss::OperatingPoint > *result = 0 ;
6090 if (!PyArg_ParseTuple(args,(
char *)
":new_OperatingPointVector")) SWIG_fail;
6091 result = (std::vector< faiss::OperatingPoint > *)
new std::vector< faiss::OperatingPoint >();
6092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, SWIG_POINTER_NEW | 0 );
6099 SWIGINTERN PyObject *_wrap_OperatingPointVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6100 PyObject *resultobj = 0;
6101 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6107 PyObject * obj0 = 0 ;
6108 PyObject * obj1 = 0 ;
6110 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPointVector_push_back",&obj0,&obj1)) SWIG_fail;
6111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
6112 if (!SWIG_IsOK(res1)) {
6113 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPointVector_push_back" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > *""'");
6115 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__OperatingPoint, 0 | 0);
6118 if (!SWIG_IsOK(res2)) {
6119 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPointVector_push_back" "', argument " "2"" of type '" "faiss::OperatingPoint""'");
6122 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPointVector_push_back" "', argument " "2"" of type '" "faiss::OperatingPoint""'");
6126 if (SWIG_IsNewObj(res2))
delete temp;
6129 (arg1)->push_back(arg2);
6130 resultobj = SWIG_Py_Void();
6137 SWIGINTERN PyObject *_wrap_OperatingPointVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6138 PyObject *resultobj = 0;
6139 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6142 PyObject * obj0 = 0 ;
6144 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPointVector_clear",&obj0)) SWIG_fail;
6145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
6146 if (!SWIG_IsOK(res1)) {
6147 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPointVector_clear" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > *""'");
6149 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6151 resultobj = SWIG_Py_Void();
6158 SWIGINTERN PyObject *_wrap_OperatingPointVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6159 PyObject *resultobj = 0;
6160 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6163 PyObject * obj0 = 0 ;
6166 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPointVector_data",&obj0)) SWIG_fail;
6167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
6168 if (!SWIG_IsOK(res1)) {
6169 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPointVector_data" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > *""'");
6171 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
6180 SWIGINTERN PyObject *_wrap_OperatingPointVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6181 PyObject *resultobj = 0;
6182 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6185 PyObject * obj0 = 0 ;
6188 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPointVector_size",&obj0)) SWIG_fail;
6189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
6190 if (!SWIG_IsOK(res1)) {
6191 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPointVector_size" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > *""'");
6193 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6194 result = (size_t)(arg1)->size();
6195 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
6202 SWIGINTERN PyObject *_wrap_OperatingPointVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6203 PyObject *resultobj = 0;
6204 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6210 PyObject * obj0 = 0 ;
6211 PyObject * obj1 = 0 ;
6214 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPointVector_at",&obj0,&obj1)) SWIG_fail;
6215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
6216 if (!SWIG_IsOK(res1)) {
6217 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPointVector_at" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > const *""'");
6219 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6220 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6221 if (!SWIG_IsOK(ecode2)) {
6222 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPointVector_at" "', argument " "2"" of type '" "size_t""'");
6224 arg2 =
static_cast< size_t >(val2);
6225 result = ((std::vector< faiss::OperatingPoint >
const *)arg1)->at(arg2);
6226 resultobj = SWIG_NewPointerObj((
new faiss::OperatingPoint(static_cast< const faiss::OperatingPoint& >(result))), SWIGTYPE_p_faiss__OperatingPoint, SWIG_POINTER_OWN | 0 );
6233 SWIGINTERN PyObject *_wrap_OperatingPointVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6234 PyObject *resultobj = 0;
6235 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6241 PyObject * obj0 = 0 ;
6242 PyObject * obj1 = 0 ;
6244 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPointVector_resize",&obj0,&obj1)) SWIG_fail;
6245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
6246 if (!SWIG_IsOK(res1)) {
6247 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPointVector_resize" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > *""'");
6249 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6250 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6251 if (!SWIG_IsOK(ecode2)) {
6252 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPointVector_resize" "', argument " "2"" of type '" "size_t""'");
6254 arg2 =
static_cast< size_t >(val2);
6255 (arg1)->resize(arg2);
6256 resultobj = SWIG_Py_Void();
6263 SWIGINTERN PyObject *_wrap_OperatingPointVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6264 PyObject *resultobj = 0;
6265 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6266 std::vector< faiss::OperatingPoint > *arg2 = 0 ;
6271 PyObject * obj0 = 0 ;
6272 PyObject * obj1 = 0 ;
6274 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPointVector_swap",&obj0,&obj1)) SWIG_fail;
6275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
6276 if (!SWIG_IsOK(res1)) {
6277 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPointVector_swap" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > *""'");
6279 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6280 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 );
6281 if (!SWIG_IsOK(res2)) {
6282 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPointVector_swap" "', argument " "2"" of type '" "std::vector< faiss::OperatingPoint > &""'");
6285 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPointVector_swap" "', argument " "2"" of type '" "std::vector< faiss::OperatingPoint > &""'");
6287 arg2 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp2);
6288 (arg1)->swap(*arg2);
6289 resultobj = SWIG_Py_Void();
6296 SWIGINTERN PyObject *_wrap_delete_OperatingPointVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6297 PyObject *resultobj = 0;
6298 std::vector< faiss::OperatingPoint > *arg1 = (std::vector< faiss::OperatingPoint > *) 0 ;
6301 PyObject * obj0 = 0 ;
6303 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_OperatingPointVector",&obj0)) SWIG_fail;
6304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, SWIG_POINTER_DISOWN | 0 );
6305 if (!SWIG_IsOK(res1)) {
6306 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_OperatingPointVector" "', argument " "1"" of type '" "std::vector< faiss::OperatingPoint > *""'");
6308 arg1 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp1);
6310 resultobj = SWIG_Py_Void();
6317 SWIGINTERN PyObject *OperatingPointVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6319 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
6320 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, SWIG_NewClientData(obj));
6321 return SWIG_Py_Void();
6324 SWIGINTERN PyObject *_wrap_new_InvertedListsPtrVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6325 PyObject *resultobj = 0;
6326 std::vector< faiss::InvertedLists * > *result = 0 ;
6328 if (!PyArg_ParseTuple(args,(
char *)
":new_InvertedListsPtrVector")) SWIG_fail;
6329 result = (std::vector< faiss::InvertedLists * > *)
new std::vector< faiss::InvertedLists * >();
6330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, SWIG_POINTER_NEW | 0 );
6337 SWIGINTERN PyObject *_wrap_InvertedListsPtrVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6338 PyObject *resultobj = 0;
6339 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6345 PyObject * obj0 = 0 ;
6346 PyObject * obj1 = 0 ;
6348 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedListsPtrVector_push_back",&obj0,&obj1)) SWIG_fail;
6349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 | 0 );
6350 if (!SWIG_IsOK(res1)) {
6351 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedListsPtrVector_push_back" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > *""'");
6353 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6354 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
6355 if (!SWIG_IsOK(res2)) {
6356 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "InvertedListsPtrVector_push_back" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
6359 (arg1)->push_back(arg2);
6360 resultobj = SWIG_Py_Void();
6367 SWIGINTERN PyObject *_wrap_InvertedListsPtrVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6368 PyObject *resultobj = 0;
6369 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6372 PyObject * obj0 = 0 ;
6374 if (!PyArg_ParseTuple(args,(
char *)
"O:InvertedListsPtrVector_clear",&obj0)) SWIG_fail;
6375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 | 0 );
6376 if (!SWIG_IsOK(res1)) {
6377 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedListsPtrVector_clear" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > *""'");
6379 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6381 resultobj = SWIG_Py_Void();
6388 SWIGINTERN PyObject *_wrap_InvertedListsPtrVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6389 PyObject *resultobj = 0;
6390 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6393 PyObject * obj0 = 0 ;
6396 if (!PyArg_ParseTuple(args,(
char *)
"O:InvertedListsPtrVector_data",&obj0)) SWIG_fail;
6397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 | 0 );
6398 if (!SWIG_IsOK(res1)) {
6399 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedListsPtrVector_data" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > *""'");
6401 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_faiss__InvertedLists, 0 | 0 );
6410 SWIGINTERN PyObject *_wrap_InvertedListsPtrVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6411 PyObject *resultobj = 0;
6412 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6415 PyObject * obj0 = 0 ;
6418 if (!PyArg_ParseTuple(args,(
char *)
"O:InvertedListsPtrVector_size",&obj0)) SWIG_fail;
6419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 | 0 );
6420 if (!SWIG_IsOK(res1)) {
6421 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedListsPtrVector_size" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > *""'");
6423 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6424 result = (size_t)(arg1)->size();
6425 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
6432 SWIGINTERN PyObject *_wrap_InvertedListsPtrVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6433 PyObject *resultobj = 0;
6434 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6440 PyObject * obj0 = 0 ;
6441 PyObject * obj1 = 0 ;
6444 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedListsPtrVector_at",&obj0,&obj1)) SWIG_fail;
6445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 | 0 );
6446 if (!SWIG_IsOK(res1)) {
6447 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedListsPtrVector_at" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > const *""'");
6449 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6450 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6451 if (!SWIG_IsOK(ecode2)) {
6452 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedListsPtrVector_at" "', argument " "2"" of type '" "size_t""'");
6454 arg2 =
static_cast< size_t >(val2);
6455 result = (
faiss::InvertedLists *)((std::vector< faiss::InvertedLists * >
const *)arg1)->at(arg2);
6456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
6463 SWIGINTERN PyObject *_wrap_InvertedListsPtrVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6464 PyObject *resultobj = 0;
6465 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6471 PyObject * obj0 = 0 ;
6472 PyObject * obj1 = 0 ;
6474 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedListsPtrVector_resize",&obj0,&obj1)) SWIG_fail;
6475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 | 0 );
6476 if (!SWIG_IsOK(res1)) {
6477 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedListsPtrVector_resize" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > *""'");
6479 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6480 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6481 if (!SWIG_IsOK(ecode2)) {
6482 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedListsPtrVector_resize" "', argument " "2"" of type '" "size_t""'");
6484 arg2 =
static_cast< size_t >(val2);
6485 (arg1)->resize(arg2);
6486 resultobj = SWIG_Py_Void();
6493 SWIGINTERN PyObject *_wrap_InvertedListsPtrVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6494 PyObject *resultobj = 0;
6495 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6496 std::vector< faiss::InvertedLists * > *arg2 = 0 ;
6501 PyObject * obj0 = 0 ;
6502 PyObject * obj1 = 0 ;
6504 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedListsPtrVector_swap",&obj0,&obj1)) SWIG_fail;
6505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 | 0 );
6506 if (!SWIG_IsOK(res1)) {
6507 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedListsPtrVector_swap" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > *""'");
6509 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6510 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, 0 );
6511 if (!SWIG_IsOK(res2)) {
6512 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "InvertedListsPtrVector_swap" "', argument " "2"" of type '" "std::vector< faiss::InvertedLists * > &""'");
6515 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "InvertedListsPtrVector_swap" "', argument " "2"" of type '" "std::vector< faiss::InvertedLists * > &""'");
6517 arg2 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp2);
6518 (arg1)->swap(*arg2);
6519 resultobj = SWIG_Py_Void();
6526 SWIGINTERN PyObject *_wrap_delete_InvertedListsPtrVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6527 PyObject *resultobj = 0;
6528 std::vector< faiss::InvertedLists * > *arg1 = (std::vector< faiss::InvertedLists * > *) 0 ;
6531 PyObject * obj0 = 0 ;
6533 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_InvertedListsPtrVector",&obj0)) SWIG_fail;
6534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, SWIG_POINTER_DISOWN | 0 );
6535 if (!SWIG_IsOK(res1)) {
6536 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_InvertedListsPtrVector" "', argument " "1"" of type '" "std::vector< faiss::InvertedLists * > *""'");
6538 arg1 =
reinterpret_cast< std::vector< faiss::InvertedLists * > *
>(argp1);
6540 resultobj = SWIG_Py_Void();
6547 SWIGINTERN PyObject *InvertedListsPtrVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6549 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
6550 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_faiss__InvertedLists_p_t, SWIG_NewClientData(obj));
6551 return SWIG_Py_Void();
6554 SWIGINTERN PyObject *_wrap_new_FloatVectorVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6555 PyObject *resultobj = 0;
6556 std::vector< std::vector< float > > *result = 0 ;
6558 if (!PyArg_ParseTuple(args,(
char *)
":new_FloatVectorVector")) SWIG_fail;
6559 result = (std::vector< std::vector< float > > *)
new std::vector< std::vector< float > >();
6560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, SWIG_POINTER_NEW | 0 );
6567 SWIGINTERN PyObject *_wrap_FloatVectorVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6568 PyObject *resultobj = 0;
6569 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6570 std::vector< float > arg2 ;
6575 PyObject * obj0 = 0 ;
6576 PyObject * obj1 = 0 ;
6578 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVectorVector_push_back",&obj0,&obj1)) SWIG_fail;
6579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 | 0 );
6580 if (!SWIG_IsOK(res1)) {
6581 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVectorVector_push_back" "', argument " "1"" of type '" "std::vector< std::vector< float > > *""'");
6583 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6585 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_float_t, 0 | 0);
6586 if (!SWIG_IsOK(res2)) {
6587 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "FloatVectorVector_push_back" "', argument " "2"" of type '" "std::vector< float >""'");
6590 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "FloatVectorVector_push_back" "', argument " "2"" of type '" "std::vector< float >""'");
6592 std::vector< float > * temp =
reinterpret_cast< std::vector< float > *
>(argp2);
6594 if (SWIG_IsNewObj(res2))
delete temp;
6597 (arg1)->push_back(arg2);
6598 resultobj = SWIG_Py_Void();
6605 SWIGINTERN PyObject *_wrap_FloatVectorVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6606 PyObject *resultobj = 0;
6607 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6610 PyObject * obj0 = 0 ;
6612 if (!PyArg_ParseTuple(args,(
char *)
"O:FloatVectorVector_clear",&obj0)) SWIG_fail;
6613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 | 0 );
6614 if (!SWIG_IsOK(res1)) {
6615 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVectorVector_clear" "', argument " "1"" of type '" "std::vector< std::vector< float > > *""'");
6617 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6619 resultobj = SWIG_Py_Void();
6626 SWIGINTERN PyObject *_wrap_FloatVectorVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6627 PyObject *resultobj = 0;
6628 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6631 PyObject * obj0 = 0 ;
6632 std::vector< float > *result = 0 ;
6634 if (!PyArg_ParseTuple(args,(
char *)
"O:FloatVectorVector_data",&obj0)) SWIG_fail;
6635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 | 0 );
6636 if (!SWIG_IsOK(res1)) {
6637 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVectorVector_data" "', argument " "1"" of type '" "std::vector< std::vector< float > > *""'");
6639 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6640 result = (std::vector< float > *)(arg1)->data();
6641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
6648 SWIGINTERN PyObject *_wrap_FloatVectorVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6649 PyObject *resultobj = 0;
6650 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6653 PyObject * obj0 = 0 ;
6656 if (!PyArg_ParseTuple(args,(
char *)
"O:FloatVectorVector_size",&obj0)) SWIG_fail;
6657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 | 0 );
6658 if (!SWIG_IsOK(res1)) {
6659 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVectorVector_size" "', argument " "1"" of type '" "std::vector< std::vector< float > > *""'");
6661 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6662 result = (size_t)(arg1)->size();
6663 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
6670 SWIGINTERN PyObject *_wrap_FloatVectorVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6671 PyObject *resultobj = 0;
6672 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6678 PyObject * obj0 = 0 ;
6679 PyObject * obj1 = 0 ;
6680 std::vector< float > result;
6682 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVectorVector_at",&obj0,&obj1)) SWIG_fail;
6683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 | 0 );
6684 if (!SWIG_IsOK(res1)) {
6685 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVectorVector_at" "', argument " "1"" of type '" "std::vector< std::vector< float > > const *""'");
6687 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6688 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6689 if (!SWIG_IsOK(ecode2)) {
6690 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "FloatVectorVector_at" "', argument " "2"" of type '" "size_t""'");
6692 arg2 =
static_cast< size_t >(val2);
6693 result = ((std::vector< std::vector< float > >
const *)arg1)->at(arg2);
6694 resultobj = SWIG_NewPointerObj((
new std::vector< float >(
static_cast< const std::vector< float >&
>(result))), SWIGTYPE_p_std__vectorT_float_t, SWIG_POINTER_OWN | 0 );
6701 SWIGINTERN PyObject *_wrap_FloatVectorVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6702 PyObject *resultobj = 0;
6703 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6709 PyObject * obj0 = 0 ;
6710 PyObject * obj1 = 0 ;
6712 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVectorVector_resize",&obj0,&obj1)) SWIG_fail;
6713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 | 0 );
6714 if (!SWIG_IsOK(res1)) {
6715 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVectorVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< float > > *""'");
6717 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6718 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6719 if (!SWIG_IsOK(ecode2)) {
6720 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "FloatVectorVector_resize" "', argument " "2"" of type '" "size_t""'");
6722 arg2 =
static_cast< size_t >(val2);
6723 (arg1)->resize(arg2);
6724 resultobj = SWIG_Py_Void();
6731 SWIGINTERN PyObject *_wrap_FloatVectorVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6732 PyObject *resultobj = 0;
6733 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6734 std::vector< std::vector< float > > *arg2 = 0 ;
6739 PyObject * obj0 = 0 ;
6740 PyObject * obj1 = 0 ;
6742 if (!PyArg_ParseTuple(args,(
char *)
"OO:FloatVectorVector_swap",&obj0,&obj1)) SWIG_fail;
6743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 | 0 );
6744 if (!SWIG_IsOK(res1)) {
6745 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FloatVectorVector_swap" "', argument " "1"" of type '" "std::vector< std::vector< float > > *""'");
6747 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6748 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, 0 );
6749 if (!SWIG_IsOK(res2)) {
6750 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "FloatVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< float > > &""'");
6753 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "FloatVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< float > > &""'");
6755 arg2 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp2);
6756 (arg1)->swap(*arg2);
6757 resultobj = SWIG_Py_Void();
6764 SWIGINTERN PyObject *_wrap_delete_FloatVectorVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6765 PyObject *resultobj = 0;
6766 std::vector< std::vector< float > > *arg1 = (std::vector< std::vector< float > > *) 0 ;
6769 PyObject * obj0 = 0 ;
6771 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_FloatVectorVector",&obj0)) SWIG_fail;
6772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, SWIG_POINTER_DISOWN | 0 );
6773 if (!SWIG_IsOK(res1)) {
6774 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_FloatVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< float > > *""'");
6776 arg1 =
reinterpret_cast< std::vector< std::vector< float >
> * >(argp1);
6778 resultobj = SWIG_Py_Void();
6785 SWIGINTERN PyObject *FloatVectorVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6787 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
6788 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t, SWIG_NewClientData(obj));
6789 return SWIG_Py_Void();
6792 SWIGINTERN PyObject *_wrap_new_ByteVectorVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6793 PyObject *resultobj = 0;
6794 std::vector< std::vector< unsigned char > > *result = 0 ;
6796 if (!PyArg_ParseTuple(args,(
char *)
":new_ByteVectorVector")) SWIG_fail;
6797 result = (std::vector< std::vector< unsigned char > > *)
new std::vector< std::vector< unsigned char > >();
6798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, SWIG_POINTER_NEW | 0 );
6805 SWIGINTERN PyObject *_wrap_ByteVectorVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6806 PyObject *resultobj = 0;
6807 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6808 std::vector< unsigned char > arg2 ;
6813 PyObject * obj0 = 0 ;
6814 PyObject * obj1 = 0 ;
6816 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVectorVector_push_back",&obj0,&obj1)) SWIG_fail;
6817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
6818 if (!SWIG_IsOK(res1)) {
6819 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVectorVector_push_back" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > *""'");
6821 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0);
6824 if (!SWIG_IsOK(res2)) {
6825 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ByteVectorVector_push_back" "', argument " "2"" of type '" "std::vector< unsigned char >""'");
6828 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "ByteVectorVector_push_back" "', argument " "2"" of type '" "std::vector< unsigned char >""'");
6830 std::vector< unsigned char > * temp =
reinterpret_cast< std::vector< unsigned char > *
>(argp2);
6832 if (SWIG_IsNewObj(res2))
delete temp;
6835 (arg1)->push_back(arg2);
6836 resultobj = SWIG_Py_Void();
6843 SWIGINTERN PyObject *_wrap_ByteVectorVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6844 PyObject *resultobj = 0;
6845 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6848 PyObject * obj0 = 0 ;
6850 if (!PyArg_ParseTuple(args,(
char *)
"O:ByteVectorVector_clear",&obj0)) SWIG_fail;
6851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
6852 if (!SWIG_IsOK(res1)) {
6853 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVectorVector_clear" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > *""'");
6855 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6857 resultobj = SWIG_Py_Void();
6864 SWIGINTERN PyObject *_wrap_ByteVectorVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6865 PyObject *resultobj = 0;
6866 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6869 PyObject * obj0 = 0 ;
6870 std::vector< unsigned char > *result = 0 ;
6872 if (!PyArg_ParseTuple(args,(
char *)
"O:ByteVectorVector_data",&obj0)) SWIG_fail;
6873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
6874 if (!SWIG_IsOK(res1)) {
6875 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVectorVector_data" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > *""'");
6877 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6878 result = (std::vector< unsigned char > *)(arg1)->data();
6879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
6886 SWIGINTERN PyObject *_wrap_ByteVectorVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6887 PyObject *resultobj = 0;
6888 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6891 PyObject * obj0 = 0 ;
6894 if (!PyArg_ParseTuple(args,(
char *)
"O:ByteVectorVector_size",&obj0)) SWIG_fail;
6895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
6896 if (!SWIG_IsOK(res1)) {
6897 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVectorVector_size" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > *""'");
6899 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6900 result = (size_t)(arg1)->size();
6901 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
6908 SWIGINTERN PyObject *_wrap_ByteVectorVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6909 PyObject *resultobj = 0;
6910 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6916 PyObject * obj0 = 0 ;
6917 PyObject * obj1 = 0 ;
6918 std::vector< unsigned char > result;
6920 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVectorVector_at",&obj0,&obj1)) SWIG_fail;
6921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
6922 if (!SWIG_IsOK(res1)) {
6923 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVectorVector_at" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > const *""'");
6925 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6926 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6927 if (!SWIG_IsOK(ecode2)) {
6928 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ByteVectorVector_at" "', argument " "2"" of type '" "size_t""'");
6930 arg2 =
static_cast< size_t >(val2);
6931 result = ((std::vector< std::vector< unsigned char > >
const *)arg1)->at(arg2);
6932 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 );
6939 SWIGINTERN PyObject *_wrap_ByteVectorVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6940 PyObject *resultobj = 0;
6941 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6947 PyObject * obj0 = 0 ;
6948 PyObject * obj1 = 0 ;
6950 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVectorVector_resize",&obj0,&obj1)) SWIG_fail;
6951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
6952 if (!SWIG_IsOK(res1)) {
6953 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVectorVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > *""'");
6955 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6956 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6957 if (!SWIG_IsOK(ecode2)) {
6958 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ByteVectorVector_resize" "', argument " "2"" of type '" "size_t""'");
6960 arg2 =
static_cast< size_t >(val2);
6961 (arg1)->resize(arg2);
6962 resultobj = SWIG_Py_Void();
6969 SWIGINTERN PyObject *_wrap_ByteVectorVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6970 PyObject *resultobj = 0;
6971 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
6972 std::vector< std::vector< unsigned char > > *arg2 = 0 ;
6977 PyObject * obj0 = 0 ;
6978 PyObject * obj1 = 0 ;
6980 if (!PyArg_ParseTuple(args,(
char *)
"OO:ByteVectorVector_swap",&obj0,&obj1)) SWIG_fail;
6981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
6982 if (!SWIG_IsOK(res1)) {
6983 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ByteVectorVector_swap" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > *""'");
6985 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
6986 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 );
6987 if (!SWIG_IsOK(res2)) {
6988 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ByteVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< unsigned char > > &""'");
6991 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "ByteVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< unsigned char > > &""'");
6993 arg2 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp2);
6994 (arg1)->swap(*arg2);
6995 resultobj = SWIG_Py_Void();
7002 SWIGINTERN PyObject *_wrap_delete_ByteVectorVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7003 PyObject *resultobj = 0;
7004 std::vector< std::vector< unsigned char > > *arg1 = (std::vector< std::vector< unsigned char > > *) 0 ;
7007 PyObject * obj0 = 0 ;
7009 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ByteVectorVector",&obj0)) SWIG_fail;
7010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, SWIG_POINTER_DISOWN | 0 );
7011 if (!SWIG_IsOK(res1)) {
7012 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ByteVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< unsigned char > > *""'");
7014 arg1 =
reinterpret_cast< std::vector< std::vector< unsigned char >
> * >(argp1);
7016 resultobj = SWIG_Py_Void();
7023 SWIGINTERN PyObject *ByteVectorVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7025 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
7026 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, SWIG_NewClientData(obj));
7027 return SWIG_Py_Void();
7030 SWIGINTERN PyObject *_wrap_new_LongVectorVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7031 PyObject *resultobj = 0;
7032 std::vector< std::vector< long > > *result = 0 ;
7034 if (!PyArg_ParseTuple(args,(
char *)
":new_LongVectorVector")) SWIG_fail;
7035 result = (std::vector< std::vector< long > > *)
new std::vector< std::vector< long > >();
7036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, SWIG_POINTER_NEW | 0 );
7043 SWIGINTERN PyObject *_wrap_LongVectorVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7044 PyObject *resultobj = 0;
7045 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7046 std::vector< long > arg2 ;
7051 PyObject * obj0 = 0 ;
7052 PyObject * obj1 = 0 ;
7054 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVectorVector_push_back",&obj0,&obj1)) SWIG_fail;
7055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
7056 if (!SWIG_IsOK(res1)) {
7057 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVectorVector_push_back" "', argument " "1"" of type '" "std::vector< std::vector< long > > *""'");
7059 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_long_t, 0 | 0);
7062 if (!SWIG_IsOK(res2)) {
7063 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "LongVectorVector_push_back" "', argument " "2"" of type '" "std::vector< long >""'");
7066 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "LongVectorVector_push_back" "', argument " "2"" of type '" "std::vector< long >""'");
7068 std::vector< long > * temp =
reinterpret_cast< std::vector< long > *
>(argp2);
7070 if (SWIG_IsNewObj(res2))
delete temp;
7073 (arg1)->push_back(arg2);
7074 resultobj = SWIG_Py_Void();
7081 SWIGINTERN PyObject *_wrap_LongVectorVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7082 PyObject *resultobj = 0;
7083 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7086 PyObject * obj0 = 0 ;
7088 if (!PyArg_ParseTuple(args,(
char *)
"O:LongVectorVector_clear",&obj0)) SWIG_fail;
7089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
7090 if (!SWIG_IsOK(res1)) {
7091 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVectorVector_clear" "', argument " "1"" of type '" "std::vector< std::vector< long > > *""'");
7093 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7095 resultobj = SWIG_Py_Void();
7102 SWIGINTERN PyObject *_wrap_LongVectorVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7103 PyObject *resultobj = 0;
7104 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7107 PyObject * obj0 = 0 ;
7108 std::vector< long > *result = 0 ;
7110 if (!PyArg_ParseTuple(args,(
char *)
"O:LongVectorVector_data",&obj0)) SWIG_fail;
7111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
7112 if (!SWIG_IsOK(res1)) {
7113 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVectorVector_data" "', argument " "1"" of type '" "std::vector< std::vector< long > > *""'");
7115 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7116 result = (std::vector< long > *)(arg1)->data();
7117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
7124 SWIGINTERN PyObject *_wrap_LongVectorVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7125 PyObject *resultobj = 0;
7126 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7129 PyObject * obj0 = 0 ;
7132 if (!PyArg_ParseTuple(args,(
char *)
"O:LongVectorVector_size",&obj0)) SWIG_fail;
7133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
7134 if (!SWIG_IsOK(res1)) {
7135 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVectorVector_size" "', argument " "1"" of type '" "std::vector< std::vector< long > > *""'");
7137 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7138 result = (size_t)(arg1)->size();
7139 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
7146 SWIGINTERN PyObject *_wrap_LongVectorVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7147 PyObject *resultobj = 0;
7148 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7154 PyObject * obj0 = 0 ;
7155 PyObject * obj1 = 0 ;
7156 std::vector< long > result;
7158 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVectorVector_at",&obj0,&obj1)) SWIG_fail;
7159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
7160 if (!SWIG_IsOK(res1)) {
7161 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVectorVector_at" "', argument " "1"" of type '" "std::vector< std::vector< long > > const *""'");
7163 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7164 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
7165 if (!SWIG_IsOK(ecode2)) {
7166 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LongVectorVector_at" "', argument " "2"" of type '" "size_t""'");
7168 arg2 =
static_cast< size_t >(val2);
7169 result = ((std::vector< std::vector< long > >
const *)arg1)->at(arg2);
7170 resultobj = SWIG_NewPointerObj((
new std::vector< long >(
static_cast< const std::vector< long >&
>(result))), SWIGTYPE_p_std__vectorT_long_t, SWIG_POINTER_OWN | 0 );
7177 SWIGINTERN PyObject *_wrap_LongVectorVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7178 PyObject *resultobj = 0;
7179 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7185 PyObject * obj0 = 0 ;
7186 PyObject * obj1 = 0 ;
7188 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVectorVector_resize",&obj0,&obj1)) SWIG_fail;
7189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
7190 if (!SWIG_IsOK(res1)) {
7191 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVectorVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< long > > *""'");
7193 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7194 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
7195 if (!SWIG_IsOK(ecode2)) {
7196 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LongVectorVector_resize" "', argument " "2"" of type '" "size_t""'");
7198 arg2 =
static_cast< size_t >(val2);
7199 (arg1)->resize(arg2);
7200 resultobj = SWIG_Py_Void();
7207 SWIGINTERN PyObject *_wrap_LongVectorVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7208 PyObject *resultobj = 0;
7209 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7210 std::vector< std::vector< long > > *arg2 = 0 ;
7215 PyObject * obj0 = 0 ;
7216 PyObject * obj1 = 0 ;
7218 if (!PyArg_ParseTuple(args,(
char *)
"OO:LongVectorVector_swap",&obj0,&obj1)) SWIG_fail;
7219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
7220 if (!SWIG_IsOK(res1)) {
7221 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LongVectorVector_swap" "', argument " "1"" of type '" "std::vector< std::vector< long > > *""'");
7223 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7224 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 );
7225 if (!SWIG_IsOK(res2)) {
7226 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "LongVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< long > > &""'");
7229 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "LongVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< long > > &""'");
7231 arg2 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp2);
7232 (arg1)->swap(*arg2);
7233 resultobj = SWIG_Py_Void();
7240 SWIGINTERN PyObject *_wrap_delete_LongVectorVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7241 PyObject *resultobj = 0;
7242 std::vector< std::vector< long > > *arg1 = (std::vector< std::vector< long > > *) 0 ;
7245 PyObject * obj0 = 0 ;
7247 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_LongVectorVector",&obj0)) SWIG_fail;
7248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, SWIG_POINTER_DISOWN | 0 );
7249 if (!SWIG_IsOK(res1)) {
7250 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_LongVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< long > > *""'");
7252 arg1 =
reinterpret_cast< std::vector< std::vector< long >
> * >(argp1);
7254 resultobj = SWIG_Py_Void();
7261 SWIGINTERN PyObject *LongVectorVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7263 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
7264 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, SWIG_NewClientData(obj));
7265 return SWIG_Py_Void();
7268 SWIGINTERN PyObject *_wrap_new_GpuResourcesVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7269 PyObject *resultobj = 0;
7270 std::vector< faiss::gpu::GpuResources * > *result = 0 ;
7272 if (!PyArg_ParseTuple(args,(
char *)
":new_GpuResourcesVector")) SWIG_fail;
7273 result = (std::vector< faiss::gpu::GpuResources * > *)
new std::vector< faiss::gpu::GpuResources * >();
7274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, SWIG_POINTER_NEW | 0 );
7281 SWIGINTERN PyObject *_wrap_GpuResourcesVector_push_back(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7282 PyObject *resultobj = 0;
7283 std::vector< faiss::gpu::GpuResources * > *arg1 = (std::vector< faiss::gpu::GpuResources * > *) 0 ;
7289 PyObject * obj0 = 0 ;
7290 PyObject * obj1 = 0 ;
7292 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuResourcesVector_push_back",&obj0,&obj1)) SWIG_fail;
7293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, 0 | 0 );
7294 if (!SWIG_IsOK(res1)) {
7295 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResourcesVector_push_back" "', argument " "1"" of type '" "std::vector< faiss::gpu::GpuResources * > *""'");
7297 arg1 =
reinterpret_cast< std::vector< faiss::gpu::GpuResources * > *
>(argp1);
7298 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
7299 if (!SWIG_IsOK(res2)) {
7300 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuResourcesVector_push_back" "', argument " "2"" of type '" "faiss::gpu::GpuResources *""'");
7303 (arg1)->push_back(arg2);
7304 resultobj = SWIG_Py_Void();
7311 SWIGINTERN PyObject *_wrap_GpuResourcesVector_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7312 PyObject *resultobj = 0;
7313 std::vector< faiss::gpu::GpuResources * > *arg1 = (std::vector< faiss::gpu::GpuResources * > *) 0 ;
7316 PyObject * obj0 = 0 ;
7318 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuResourcesVector_clear",&obj0)) SWIG_fail;
7319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, 0 | 0 );
7320 if (!SWIG_IsOK(res1)) {
7321 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResourcesVector_clear" "', argument " "1"" of type '" "std::vector< faiss::gpu::GpuResources * > *""'");
7323 arg1 =
reinterpret_cast< std::vector< faiss::gpu::GpuResources * > *
>(argp1);
7325 resultobj = SWIG_Py_Void();
7332 SWIGINTERN PyObject *_wrap_GpuResourcesVector_data(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7333 PyObject *resultobj = 0;
7334 std::vector< faiss::gpu::GpuResources * > *arg1 = (std::vector< faiss::gpu::GpuResources * > *) 0 ;
7337 PyObject * obj0 = 0 ;
7340 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuResourcesVector_data",&obj0)) SWIG_fail;
7341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, 0 | 0 );
7342 if (!SWIG_IsOK(res1)) {
7343 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResourcesVector_data" "', argument " "1"" of type '" "std::vector< faiss::gpu::GpuResources * > *""'");
7345 arg1 =
reinterpret_cast< std::vector< faiss::gpu::GpuResources * > *
>(argp1);
7347 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_faiss__gpu__GpuResources, 0 | 0 );
7354 SWIGINTERN PyObject *_wrap_GpuResourcesVector_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7355 PyObject *resultobj = 0;
7356 std::vector< faiss::gpu::GpuResources * > *arg1 = (std::vector< faiss::gpu::GpuResources * > *) 0 ;
7359 PyObject * obj0 = 0 ;
7362 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuResourcesVector_size",&obj0)) SWIG_fail;
7363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, 0 | 0 );
7364 if (!SWIG_IsOK(res1)) {
7365 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResourcesVector_size" "', argument " "1"" of type '" "std::vector< faiss::gpu::GpuResources * > *""'");
7367 arg1 =
reinterpret_cast< std::vector< faiss::gpu::GpuResources * > *
>(argp1);
7368 result = (size_t)(arg1)->size();
7369 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
7376 SWIGINTERN PyObject *_wrap_GpuResourcesVector_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7377 PyObject *resultobj = 0;
7378 std::vector< faiss::gpu::GpuResources * > *arg1 = (std::vector< faiss::gpu::GpuResources * > *) 0 ;
7384 PyObject * obj0 = 0 ;
7385 PyObject * obj1 = 0 ;
7388 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuResourcesVector_at",&obj0,&obj1)) SWIG_fail;
7389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, 0 | 0 );
7390 if (!SWIG_IsOK(res1)) {
7391 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResourcesVector_at" "', argument " "1"" of type '" "std::vector< faiss::gpu::GpuResources * > const *""'");
7393 arg1 =
reinterpret_cast< std::vector< faiss::gpu::GpuResources * > *
>(argp1);
7394 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
7395 if (!SWIG_IsOK(ecode2)) {
7396 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuResourcesVector_at" "', argument " "2"" of type '" "size_t""'");
7398 arg2 =
static_cast< size_t >(val2);
7400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
7407 SWIGINTERN PyObject *_wrap_GpuResourcesVector_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7408 PyObject *resultobj = 0;
7409 std::vector< faiss::gpu::GpuResources * > *arg1 = (std::vector< faiss::gpu::GpuResources * > *) 0 ;
7415 PyObject * obj0 = 0 ;
7416 PyObject * obj1 = 0 ;
7418 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuResourcesVector_resize",&obj0,&obj1)) SWIG_fail;
7419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, 0 | 0 );
7420 if (!SWIG_IsOK(res1)) {
7421 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResourcesVector_resize" "', argument " "1"" of type '" "std::vector< faiss::gpu::GpuResources * > *""'");
7423 arg1 =
reinterpret_cast< std::vector< faiss::gpu::GpuResources * > *
>(argp1);
7424 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
7425 if (!SWIG_IsOK(ecode2)) {
7426 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuResourcesVector_resize" "', argument " "2"" of type '" "size_t""'");
7428 arg2 =
static_cast< size_t >(val2);
7429 (arg1)->resize(arg2);
7430 resultobj = SWIG_Py_Void();
7437 SWIGINTERN PyObject *_wrap_GpuResourcesVector_swap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7438 PyObject *resultobj = 0;
7439 std::vector< faiss::gpu::GpuResources * > *arg1 = (std::vector< faiss::gpu::GpuResources * > *) 0 ;
7440 std::vector< faiss::gpu::GpuResources * > *arg2 = 0 ;
7445 PyObject * obj0 = 0 ;
7446 PyObject * obj1 = 0 ;
7448 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuResourcesVector_swap",&obj0,&obj1)) SWIG_fail;
7449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, 0 | 0 );
7450 if (!SWIG_IsOK(res1)) {
7451 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResourcesVector_swap" "', argument " "1"" of type '" "std::vector< faiss::gpu::GpuResources * > *""'");
7453 arg1 =
reinterpret_cast< std::vector< faiss::gpu::GpuResources * > *
>(argp1);
7454 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, 0 );
7455 if (!SWIG_IsOK(res2)) {
7456 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuResourcesVector_swap" "', argument " "2"" of type '" "std::vector< faiss::gpu::GpuResources * > &""'");
7459 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "GpuResourcesVector_swap" "', argument " "2"" of type '" "std::vector< faiss::gpu::GpuResources * > &""'");
7461 arg2 =
reinterpret_cast< std::vector< faiss::gpu::GpuResources * > *
>(argp2);
7462 (arg1)->swap(*arg2);
7463 resultobj = SWIG_Py_Void();
7470 SWIGINTERN PyObject *_wrap_delete_GpuResourcesVector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7471 PyObject *resultobj = 0;
7472 std::vector< faiss::gpu::GpuResources * > *arg1 = (std::vector< faiss::gpu::GpuResources * > *) 0 ;
7475 PyObject * obj0 = 0 ;
7477 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuResourcesVector",&obj0)) SWIG_fail;
7478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, SWIG_POINTER_DISOWN | 0 );
7479 if (!SWIG_IsOK(res1)) {
7480 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuResourcesVector" "', argument " "1"" of type '" "std::vector< faiss::gpu::GpuResources * > *""'");
7482 arg1 =
reinterpret_cast< std::vector< faiss::gpu::GpuResources * > *
>(argp1);
7484 resultobj = SWIG_Py_Void();
7491 SWIGINTERN PyObject *GpuResourcesVector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7493 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
7494 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, SWIG_NewClientData(obj));
7495 return SWIG_Py_Void();
7498 SWIGINTERN
int Swig_var_hamming_batch_size_set(PyObject *_val) {
7501 int res = SWIG_AsVal_size_t(_val, &val);
7502 if (!SWIG_IsOK(res)) {
7503 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""faiss::hamming_batch_size""' of type '""size_t""'");
7505 faiss::hamming_batch_size =
static_cast< size_t >(val);
7513 SWIGINTERN PyObject *Swig_var_hamming_batch_size_get(
void) {
7514 PyObject *pyobj = 0;
7516 pyobj = SWIG_From_size_t(static_cast< size_t >(faiss::hamming_batch_size));
7521 SWIGINTERN PyObject *_wrap_popcount64(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7522 PyObject *resultobj = 0;
7524 unsigned long val1 ;
7526 PyObject * obj0 = 0 ;
7529 if (!PyArg_ParseTuple(args,(
char *)
"O:popcount64",&obj0)) SWIG_fail;
7530 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
7531 if (!SWIG_IsOK(ecode1)) {
7532 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "popcount64" "', argument " "1"" of type '" "uint64_t""'");
7534 arg1 =
static_cast< uint64_t
>(val1);
7536 Py_BEGIN_ALLOW_THREADS
7538 result = (int)faiss::popcount64(arg1);
7540 PyEval_RestoreThread(_save);
7541 PyErr_SetString(PyExc_RuntimeError, e.
what());
7544 Py_END_ALLOW_THREADS
7546 resultobj = SWIG_From_int(static_cast< int >(result));
7553 SWIGINTERN PyObject *_wrap_hammings(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7554 PyObject *resultobj = 0;
7555 uint8_t *arg1 = (uint8_t *) 0 ;
7556 uint8_t *arg2 = (uint8_t *) 0 ;
7560 hamdis_t *arg6 = (hamdis_t *) 0 ;
7573 PyObject * obj0 = 0 ;
7574 PyObject * obj1 = 0 ;
7575 PyObject * obj2 = 0 ;
7576 PyObject * obj3 = 0 ;
7577 PyObject * obj4 = 0 ;
7578 PyObject * obj5 = 0 ;
7580 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:hammings",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
7582 if (!SWIG_IsOK(res1)) {
7583 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "hammings" "', argument " "1"" of type '" "uint8_t const *""'");
7585 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
7586 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7587 if (!SWIG_IsOK(res2)) {
7588 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "hammings" "', argument " "2"" of type '" "uint8_t const *""'");
7590 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7591 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
7592 if (!SWIG_IsOK(ecode3)) {
7593 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "hammings" "', argument " "3"" of type '" "size_t""'");
7595 arg3 =
static_cast< size_t >(val3);
7596 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
7597 if (!SWIG_IsOK(ecode4)) {
7598 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "hammings" "', argument " "4"" of type '" "size_t""'");
7600 arg4 =
static_cast< size_t >(val4);
7601 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
7602 if (!SWIG_IsOK(ecode5)) {
7603 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "hammings" "', argument " "5"" of type '" "size_t""'");
7605 arg5 =
static_cast< size_t >(val5);
7606 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 | 0 );
7607 if (!SWIG_IsOK(res6)) {
7608 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "hammings" "', argument " "6"" of type '" "hamdis_t *""'");
7610 arg6 =
reinterpret_cast< hamdis_t *
>(argp6);
7612 Py_BEGIN_ALLOW_THREADS
7614 faiss::hammings((
unsigned char const *)arg1,(
unsigned char const *)arg2,arg3,arg4,arg5,arg6);
7616 PyEval_RestoreThread(_save);
7617 PyErr_SetString(PyExc_RuntimeError, e.
what());
7620 Py_END_ALLOW_THREADS
7622 resultobj = SWIG_Py_Void();
7629 SWIGINTERN PyObject *_wrap_bitvec_print(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7630 PyObject *resultobj = 0;
7631 uint8_t *arg1 = (uint8_t *) 0 ;
7637 PyObject * obj0 = 0 ;
7638 PyObject * obj1 = 0 ;
7640 if (!PyArg_ParseTuple(args,(
char *)
"OO:bitvec_print",&obj0,&obj1)) SWIG_fail;
7641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
7642 if (!SWIG_IsOK(res1)) {
7643 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "bitvec_print" "', argument " "1"" of type '" "uint8_t const *""'");
7645 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
7646 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
7647 if (!SWIG_IsOK(ecode2)) {
7648 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "bitvec_print" "', argument " "2"" of type '" "size_t""'");
7650 arg2 =
static_cast< size_t >(val2);
7652 Py_BEGIN_ALLOW_THREADS
7654 faiss::bitvec_print((
unsigned char const *)arg1,arg2);
7656 PyEval_RestoreThread(_save);
7657 PyErr_SetString(PyExc_RuntimeError, e.
what());
7660 Py_END_ALLOW_THREADS
7662 resultobj = SWIG_Py_Void();
7669 SWIGINTERN PyObject *_wrap_fvecs2bitvecs(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7670 PyObject *resultobj = 0;
7671 float *arg1 = (
float *) 0 ;
7672 uint8_t *arg2 = (uint8_t *) 0 ;
7683 PyObject * obj0 = 0 ;
7684 PyObject * obj1 = 0 ;
7685 PyObject * obj2 = 0 ;
7686 PyObject * obj3 = 0 ;
7688 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:fvecs2bitvecs",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
7690 if (!SWIG_IsOK(res1)) {
7691 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvecs2bitvecs" "', argument " "1"" of type '" "float const *""'");
7693 arg1 =
reinterpret_cast< float *
>(argp1);
7694 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7695 if (!SWIG_IsOK(res2)) {
7696 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvecs2bitvecs" "', argument " "2"" of type '" "uint8_t *""'");
7698 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7699 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
7700 if (!SWIG_IsOK(ecode3)) {
7701 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvecs2bitvecs" "', argument " "3"" of type '" "size_t""'");
7703 arg3 =
static_cast< size_t >(val3);
7704 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
7705 if (!SWIG_IsOK(ecode4)) {
7706 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "fvecs2bitvecs" "', argument " "4"" of type '" "size_t""'");
7708 arg4 =
static_cast< size_t >(val4);
7710 Py_BEGIN_ALLOW_THREADS
7712 faiss::fvecs2bitvecs((
float const *)arg1,arg2,arg3,arg4);
7714 PyEval_RestoreThread(_save);
7715 PyErr_SetString(PyExc_RuntimeError, e.
what());
7718 Py_END_ALLOW_THREADS
7720 resultobj = SWIG_Py_Void();
7727 SWIGINTERN PyObject *_wrap_fvec2bitvec(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7728 PyObject *resultobj = 0;
7729 float *arg1 = (
float *) 0 ;
7730 uint8_t *arg2 = (uint8_t *) 0 ;
7738 PyObject * obj0 = 0 ;
7739 PyObject * obj1 = 0 ;
7740 PyObject * obj2 = 0 ;
7742 if (!PyArg_ParseTuple(args,(
char *)
"OOO:fvec2bitvec",&obj0,&obj1,&obj2)) SWIG_fail;
7743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
7744 if (!SWIG_IsOK(res1)) {
7745 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec2bitvec" "', argument " "1"" of type '" "float const *""'");
7747 arg1 =
reinterpret_cast< float *
>(argp1);
7748 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7749 if (!SWIG_IsOK(res2)) {
7750 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec2bitvec" "', argument " "2"" of type '" "uint8_t *""'");
7752 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7753 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
7754 if (!SWIG_IsOK(ecode3)) {
7755 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvec2bitvec" "', argument " "3"" of type '" "size_t""'");
7757 arg3 =
static_cast< size_t >(val3);
7759 Py_BEGIN_ALLOW_THREADS
7761 faiss::fvec2bitvec((
float const *)arg1,arg2,arg3);
7763 PyEval_RestoreThread(_save);
7764 PyErr_SetString(PyExc_RuntimeError, e.
what());
7767 Py_END_ALLOW_THREADS
7769 resultobj = SWIG_Py_Void();
7776 SWIGINTERN PyObject *_wrap_hammings_knn_hc(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7777 PyObject *resultobj = 0;
7779 uint8_t *arg2 = (uint8_t *) 0 ;
7780 uint8_t *arg3 = (uint8_t *) 0 ;
7796 PyObject * obj0 = 0 ;
7797 PyObject * obj1 = 0 ;
7798 PyObject * obj2 = 0 ;
7799 PyObject * obj3 = 0 ;
7800 PyObject * obj4 = 0 ;
7801 PyObject * obj5 = 0 ;
7803 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:hammings_knn_hc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
7805 if (!SWIG_IsOK(res1)) {
7806 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "hammings_knn_hc" "', argument " "1"" of type '" "faiss::int_maxheap_array_t *""'");
7809 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7810 if (!SWIG_IsOK(res2)) {
7811 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "hammings_knn_hc" "', argument " "2"" of type '" "uint8_t const *""'");
7813 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7814 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
7815 if (!SWIG_IsOK(res3)) {
7816 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "hammings_knn_hc" "', argument " "3"" of type '" "uint8_t const *""'");
7818 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
7819 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
7820 if (!SWIG_IsOK(ecode4)) {
7821 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "hammings_knn_hc" "', argument " "4"" of type '" "size_t""'");
7823 arg4 =
static_cast< size_t >(val4);
7824 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
7825 if (!SWIG_IsOK(ecode5)) {
7826 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "hammings_knn_hc" "', argument " "5"" of type '" "size_t""'");
7828 arg5 =
static_cast< size_t >(val5);
7829 ecode6 = SWIG_AsVal_int(obj5, &val6);
7830 if (!SWIG_IsOK(ecode6)) {
7831 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "hammings_knn_hc" "', argument " "6"" of type '" "int""'");
7833 arg6 =
static_cast< int >(val6);
7835 Py_BEGIN_ALLOW_THREADS
7839 PyEval_RestoreThread(_save);
7840 PyErr_SetString(PyExc_RuntimeError, e.
what());
7843 Py_END_ALLOW_THREADS
7845 resultobj = SWIG_Py_Void();
7852 SWIGINTERN PyObject *_wrap_hammings_knn(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7853 PyObject *resultobj = 0;
7855 uint8_t *arg2 = (uint8_t *) 0 ;
7856 uint8_t *arg3 = (uint8_t *) 0 ;
7872 PyObject * obj0 = 0 ;
7873 PyObject * obj1 = 0 ;
7874 PyObject * obj2 = 0 ;
7875 PyObject * obj3 = 0 ;
7876 PyObject * obj4 = 0 ;
7877 PyObject * obj5 = 0 ;
7879 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:hammings_knn",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
7881 if (!SWIG_IsOK(res1)) {
7882 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "hammings_knn" "', argument " "1"" of type '" "faiss::int_maxheap_array_t *""'");
7885 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7886 if (!SWIG_IsOK(res2)) {
7887 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "hammings_knn" "', argument " "2"" of type '" "uint8_t const *""'");
7889 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7890 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
7891 if (!SWIG_IsOK(res3)) {
7892 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "hammings_knn" "', argument " "3"" of type '" "uint8_t const *""'");
7894 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
7895 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
7896 if (!SWIG_IsOK(ecode4)) {
7897 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "hammings_knn" "', argument " "4"" of type '" "size_t""'");
7899 arg4 =
static_cast< size_t >(val4);
7900 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
7901 if (!SWIG_IsOK(ecode5)) {
7902 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "hammings_knn" "', argument " "5"" of type '" "size_t""'");
7904 arg5 =
static_cast< size_t >(val5);
7905 ecode6 = SWIG_AsVal_int(obj5, &val6);
7906 if (!SWIG_IsOK(ecode6)) {
7907 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "hammings_knn" "', argument " "6"" of type '" "int""'");
7909 arg6 =
static_cast< int >(val6);
7911 Py_BEGIN_ALLOW_THREADS
7913 faiss::hammings_knn(arg1,(
unsigned char const *)arg2,(
unsigned char const *)arg3,arg4,arg5,arg6);
7915 PyEval_RestoreThread(_save);
7916 PyErr_SetString(PyExc_RuntimeError, e.
what());
7919 Py_END_ALLOW_THREADS
7921 resultobj = SWIG_Py_Void();
7928 SWIGINTERN PyObject *_wrap_hammings_knn_mc(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7929 PyObject *resultobj = 0;
7930 uint8_t *arg1 = (uint8_t *) 0 ;
7931 uint8_t *arg2 = (uint8_t *) 0 ;
7936 int32_t *arg7 = (int32_t *) 0 ;
7937 long *arg8 = (
long *) 0 ;
7954 PyObject * obj0 = 0 ;
7955 PyObject * obj1 = 0 ;
7956 PyObject * obj2 = 0 ;
7957 PyObject * obj3 = 0 ;
7958 PyObject * obj4 = 0 ;
7959 PyObject * obj5 = 0 ;
7960 PyObject * obj6 = 0 ;
7961 PyObject * obj7 = 0 ;
7963 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:hammings_knn_mc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
7965 if (!SWIG_IsOK(res1)) {
7966 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "hammings_knn_mc" "', argument " "1"" of type '" "uint8_t const *""'");
7968 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
7969 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7970 if (!SWIG_IsOK(res2)) {
7971 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "hammings_knn_mc" "', argument " "2"" of type '" "uint8_t const *""'");
7973 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7974 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
7975 if (!SWIG_IsOK(ecode3)) {
7976 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "hammings_knn_mc" "', argument " "3"" of type '" "size_t""'");
7978 arg3 =
static_cast< size_t >(val3);
7979 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
7980 if (!SWIG_IsOK(ecode4)) {
7981 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "hammings_knn_mc" "', argument " "4"" of type '" "size_t""'");
7983 arg4 =
static_cast< size_t >(val4);
7984 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
7985 if (!SWIG_IsOK(ecode5)) {
7986 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "hammings_knn_mc" "', argument " "5"" of type '" "size_t""'");
7988 arg5 =
static_cast< size_t >(val5);
7989 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
7990 if (!SWIG_IsOK(ecode6)) {
7991 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "hammings_knn_mc" "', argument " "6"" of type '" "size_t""'");
7993 arg6 =
static_cast< size_t >(val6);
7994 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_int, 0 | 0 );
7995 if (!SWIG_IsOK(res7)) {
7996 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "hammings_knn_mc" "', argument " "7"" of type '" "int32_t *""'");
7998 arg7 =
reinterpret_cast< int32_t *
>(argp7);
7999 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
8000 if (!SWIG_IsOK(res8)) {
8001 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "hammings_knn_mc" "', argument " "8"" of type '" "long *""'");
8003 arg8 =
reinterpret_cast< long *
>(argp8);
8005 Py_BEGIN_ALLOW_THREADS
8007 faiss::hammings_knn_mc((
unsigned char const *)arg1,(
unsigned char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8);
8009 PyEval_RestoreThread(_save);
8010 PyErr_SetString(PyExc_RuntimeError, e.
what());
8013 Py_END_ALLOW_THREADS
8015 resultobj = SWIG_Py_Void();
8022 SWIGINTERN PyObject *_wrap_hamming_count_thres(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8023 PyObject *resultobj = 0;
8024 uint8_t *arg1 = (uint8_t *) 0 ;
8025 uint8_t *arg2 = (uint8_t *) 0 ;
8030 size_t *arg7 = (
size_t *) 0 ;
8045 PyObject * obj0 = 0 ;
8046 PyObject * obj1 = 0 ;
8047 PyObject * obj2 = 0 ;
8048 PyObject * obj3 = 0 ;
8049 PyObject * obj4 = 0 ;
8050 PyObject * obj5 = 0 ;
8051 PyObject * obj6 = 0 ;
8053 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:hamming_count_thres",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
8055 if (!SWIG_IsOK(res1)) {
8056 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "hamming_count_thres" "', argument " "1"" of type '" "uint8_t const *""'");
8058 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
8059 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8060 if (!SWIG_IsOK(res2)) {
8061 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "hamming_count_thres" "', argument " "2"" of type '" "uint8_t const *""'");
8063 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8064 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
8065 if (!SWIG_IsOK(ecode3)) {
8066 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "hamming_count_thres" "', argument " "3"" of type '" "size_t""'");
8068 arg3 =
static_cast< size_t >(val3);
8069 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
8070 if (!SWIG_IsOK(ecode4)) {
8071 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "hamming_count_thres" "', argument " "4"" of type '" "size_t""'");
8073 arg4 =
static_cast< size_t >(val4);
8074 ecode5 = SWIG_AsVal_int(obj4, &val5);
8075 if (!SWIG_IsOK(ecode5)) {
8076 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "hamming_count_thres" "', argument " "5"" of type '" "hamdis_t""'");
8078 arg5 =
static_cast< hamdis_t
>(val5);
8079 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
8080 if (!SWIG_IsOK(ecode6)) {
8081 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "hamming_count_thres" "', argument " "6"" of type '" "size_t""'");
8083 arg6 =
static_cast< size_t >(val6);
8084 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_long, 0 | 0 );
8085 if (!SWIG_IsOK(res7)) {
8086 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "hamming_count_thres" "', argument " "7"" of type '" "size_t *""'");
8088 arg7 =
reinterpret_cast< size_t *
>(argp7);
8090 Py_BEGIN_ALLOW_THREADS
8092 faiss::hamming_count_thres((
unsigned char const *)arg1,(
unsigned char const *)arg2,arg3,arg4,arg5,arg6,arg7);
8094 PyEval_RestoreThread(_save);
8095 PyErr_SetString(PyExc_RuntimeError, e.
what());
8098 Py_END_ALLOW_THREADS
8100 resultobj = SWIG_Py_Void();
8107 SWIGINTERN PyObject *_wrap_match_hamming_thres(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8108 PyObject *resultobj = 0;
8109 uint8_t *arg1 = (uint8_t *) 0 ;
8110 uint8_t *arg2 = (uint8_t *) 0 ;
8115 long *arg7 = (
long *) 0 ;
8116 hamdis_t *arg8 = (hamdis_t *) 0 ;
8133 PyObject * obj0 = 0 ;
8134 PyObject * obj1 = 0 ;
8135 PyObject * obj2 = 0 ;
8136 PyObject * obj3 = 0 ;
8137 PyObject * obj4 = 0 ;
8138 PyObject * obj5 = 0 ;
8139 PyObject * obj6 = 0 ;
8140 PyObject * obj7 = 0 ;
8143 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:match_hamming_thres",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
8145 if (!SWIG_IsOK(res1)) {
8146 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "match_hamming_thres" "', argument " "1"" of type '" "uint8_t const *""'");
8148 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
8149 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8150 if (!SWIG_IsOK(res2)) {
8151 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "match_hamming_thres" "', argument " "2"" of type '" "uint8_t const *""'");
8153 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8154 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
8155 if (!SWIG_IsOK(ecode3)) {
8156 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "match_hamming_thres" "', argument " "3"" of type '" "size_t""'");
8158 arg3 =
static_cast< size_t >(val3);
8159 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
8160 if (!SWIG_IsOK(ecode4)) {
8161 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "match_hamming_thres" "', argument " "4"" of type '" "size_t""'");
8163 arg4 =
static_cast< size_t >(val4);
8164 ecode5 = SWIG_AsVal_int(obj4, &val5);
8165 if (!SWIG_IsOK(ecode5)) {
8166 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "match_hamming_thres" "', argument " "5"" of type '" "hamdis_t""'");
8168 arg5 =
static_cast< hamdis_t
>(val5);
8169 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
8170 if (!SWIG_IsOK(ecode6)) {
8171 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "match_hamming_thres" "', argument " "6"" of type '" "size_t""'");
8173 arg6 =
static_cast< size_t >(val6);
8174 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_long, 0 | 0 );
8175 if (!SWIG_IsOK(res7)) {
8176 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "match_hamming_thres" "', argument " "7"" of type '" "long *""'");
8178 arg7 =
reinterpret_cast< long *
>(argp7);
8179 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_int, 0 | 0 );
8180 if (!SWIG_IsOK(res8)) {
8181 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "match_hamming_thres" "', argument " "8"" of type '" "hamdis_t *""'");
8183 arg8 =
reinterpret_cast< hamdis_t *
>(argp8);
8185 Py_BEGIN_ALLOW_THREADS
8187 result = (size_t)faiss::match_hamming_thres((
unsigned char const *)arg1,(
unsigned char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8);
8189 PyEval_RestoreThread(_save);
8190 PyErr_SetString(PyExc_RuntimeError, e.
what());
8193 Py_END_ALLOW_THREADS
8195 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
8202 SWIGINTERN PyObject *_wrap_crosshamming_count_thres(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8203 PyObject *resultobj = 0;
8204 uint8_t *arg1 = (uint8_t *) 0 ;
8208 size_t *arg5 = (
size_t *) 0 ;
8219 PyObject * obj0 = 0 ;
8220 PyObject * obj1 = 0 ;
8221 PyObject * obj2 = 0 ;
8222 PyObject * obj3 = 0 ;
8223 PyObject * obj4 = 0 ;
8225 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:crosshamming_count_thres",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
8227 if (!SWIG_IsOK(res1)) {
8228 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "crosshamming_count_thres" "', argument " "1"" of type '" "uint8_t const *""'");
8230 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
8231 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
8232 if (!SWIG_IsOK(ecode2)) {
8233 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "crosshamming_count_thres" "', argument " "2"" of type '" "size_t""'");
8235 arg2 =
static_cast< size_t >(val2);
8236 ecode3 = SWIG_AsVal_int(obj2, &val3);
8237 if (!SWIG_IsOK(ecode3)) {
8238 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "crosshamming_count_thres" "', argument " "3"" of type '" "hamdis_t""'");
8240 arg3 =
static_cast< hamdis_t
>(val3);
8241 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
8242 if (!SWIG_IsOK(ecode4)) {
8243 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "crosshamming_count_thres" "', argument " "4"" of type '" "size_t""'");
8245 arg4 =
static_cast< size_t >(val4);
8246 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_long, 0 | 0 );
8247 if (!SWIG_IsOK(res5)) {
8248 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "crosshamming_count_thres" "', argument " "5"" of type '" "size_t *""'");
8250 arg5 =
reinterpret_cast< size_t *
>(argp5);
8252 Py_BEGIN_ALLOW_THREADS
8254 faiss::crosshamming_count_thres((
unsigned char const *)arg1,arg2,arg3,arg4,arg5);
8256 PyEval_RestoreThread(_save);
8257 PyErr_SetString(PyExc_RuntimeError, e.
what());
8260 Py_END_ALLOW_THREADS
8262 resultobj = SWIG_Py_Void();
8269 SWIGINTERN PyObject *_wrap_HammingComputer4_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8270 PyObject *resultobj = 0;
8277 PyObject * obj0 = 0 ;
8278 PyObject * obj1 = 0 ;
8280 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer4_a0_set",&obj0,&obj1)) SWIG_fail;
8281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer4, 0 | 0 );
8282 if (!SWIG_IsOK(res1)) {
8283 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer4_a0_set" "', argument " "1"" of type '" "faiss::HammingComputer4 *""'");
8287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint32_t, 0 | 0);
8288 if (!SWIG_IsOK(res2)) {
8289 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer4_a0_set" "', argument " "2"" of type '" "uint32_t""'");
8292 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HammingComputer4_a0_set" "', argument " "2"" of type '" "uint32_t""'");
8294 uint32_t * temp =
reinterpret_cast< uint32_t *
>(argp2);
8296 if (SWIG_IsNewObj(res2))
delete temp;
8299 if (arg1) (arg1)->a0 = arg2;
8300 resultobj = SWIG_Py_Void();
8307 SWIGINTERN PyObject *_wrap_HammingComputer4_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8308 PyObject *resultobj = 0;
8312 PyObject * obj0 = 0 ;
8315 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer4_a0_get",&obj0)) SWIG_fail;
8316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer4, 0 | 0 );
8317 if (!SWIG_IsOK(res1)) {
8318 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer4_a0_get" "', argument " "1"" of type '" "faiss::HammingComputer4 *""'");
8321 result = ((arg1)->a0);
8322 resultobj = SWIG_NewPointerObj((
new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0 );
8329 SWIGINTERN PyObject *_wrap_new_HammingComputer4__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8330 PyObject *resultobj = 0;
8333 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputer4")) SWIG_fail;
8335 Py_BEGIN_ALLOW_THREADS
8339 PyEval_RestoreThread(_save);
8340 PyErr_SetString(PyExc_RuntimeError, e.
what());
8343 Py_END_ALLOW_THREADS
8345 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer4, SWIG_POINTER_NEW | 0 );
8352 SWIGINTERN PyObject *_wrap_new_HammingComputer4__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8353 PyObject *resultobj = 0;
8354 uint8_t *arg1 = (uint8_t *) 0 ;
8360 PyObject * obj0 = 0 ;
8361 PyObject * obj1 = 0 ;
8364 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputer4",&obj0,&obj1)) SWIG_fail;
8365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
8366 if (!SWIG_IsOK(res1)) {
8367 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputer4" "', argument " "1"" of type '" "uint8_t const *""'");
8369 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
8370 ecode2 = SWIG_AsVal_int(obj1, &val2);
8371 if (!SWIG_IsOK(ecode2)) {
8372 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputer4" "', argument " "2"" of type '" "int""'");
8374 arg2 =
static_cast< int >(val2);
8376 Py_BEGIN_ALLOW_THREADS
8380 PyEval_RestoreThread(_save);
8381 PyErr_SetString(PyExc_RuntimeError, e.
what());
8384 Py_END_ALLOW_THREADS
8386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer4, SWIG_POINTER_NEW | 0 );
8393 SWIGINTERN PyObject *_wrap_new_HammingComputer4(PyObject *
self, PyObject *args) {
8395 PyObject *argv[3] = {
8400 if (!PyTuple_Check(args)) SWIG_fail;
8401 argc = args ? PyObject_Length(args) : 0;
8402 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8403 argv[ii] = PyTuple_GET_ITEM(args,ii);
8406 return _wrap_new_HammingComputer4__SWIG_0(
self, args);
8411 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
8412 _v = SWIG_CheckState(res);
8415 int res = SWIG_AsVal_int(argv[1], NULL);
8416 _v = SWIG_CheckState(res);
8419 return _wrap_new_HammingComputer4__SWIG_1(
self, args);
8425 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputer4'.\n"
8426 " Possible C/C++ prototypes are:\n"
8427 " faiss::HammingComputer4::HammingComputer4()\n"
8428 " faiss::HammingComputer4::HammingComputer4(uint8_t const *,int)\n");
8433 SWIGINTERN PyObject *_wrap_HammingComputer4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8434 PyObject *resultobj = 0;
8436 uint8_t *arg2 = (uint8_t *) 0 ;
8444 PyObject * obj0 = 0 ;
8445 PyObject * obj1 = 0 ;
8446 PyObject * obj2 = 0 ;
8448 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputer4_set",&obj0,&obj1,&obj2)) SWIG_fail;
8449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer4, 0 | 0 );
8450 if (!SWIG_IsOK(res1)) {
8451 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer4_set" "', argument " "1"" of type '" "faiss::HammingComputer4 *""'");
8454 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8455 if (!SWIG_IsOK(res2)) {
8456 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer4_set" "', argument " "2"" of type '" "uint8_t const *""'");
8458 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8459 ecode3 = SWIG_AsVal_int(obj2, &val3);
8460 if (!SWIG_IsOK(ecode3)) {
8461 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputer4_set" "', argument " "3"" of type '" "int""'");
8463 arg3 =
static_cast< int >(val3);
8465 Py_BEGIN_ALLOW_THREADS
8467 (arg1)->set((uint8_t
const *)arg2,arg3);
8469 PyEval_RestoreThread(_save);
8470 PyErr_SetString(PyExc_RuntimeError, e.
what());
8473 Py_END_ALLOW_THREADS
8475 resultobj = SWIG_Py_Void();
8482 SWIGINTERN PyObject *_wrap_HammingComputer4_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8483 PyObject *resultobj = 0;
8485 uint8_t *arg2 = (uint8_t *) 0 ;
8490 PyObject * obj0 = 0 ;
8491 PyObject * obj1 = 0 ;
8494 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer4_hamming",&obj0,&obj1)) SWIG_fail;
8495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer4, 0 | 0 );
8496 if (!SWIG_IsOK(res1)) {
8497 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer4_hamming" "', argument " "1"" of type '" "faiss::HammingComputer4 const *""'");
8500 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8501 if (!SWIG_IsOK(res2)) {
8502 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer4_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
8504 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8506 Py_BEGIN_ALLOW_THREADS
8510 PyEval_RestoreThread(_save);
8511 PyErr_SetString(PyExc_RuntimeError, e.
what());
8514 Py_END_ALLOW_THREADS
8516 resultobj = SWIG_From_int(static_cast< int >(result));
8523 SWIGINTERN PyObject *_wrap_delete_HammingComputer4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8524 PyObject *resultobj = 0;
8528 PyObject * obj0 = 0 ;
8530 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputer4",&obj0)) SWIG_fail;
8531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer4, SWIG_POINTER_DISOWN | 0 );
8532 if (!SWIG_IsOK(res1)) {
8533 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputer4" "', argument " "1"" of type '" "faiss::HammingComputer4 *""'");
8537 resultobj = SWIG_Py_Void();
8544 SWIGINTERN PyObject *HammingComputer4_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8546 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
8547 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputer4, SWIG_NewClientData(obj));
8548 return SWIG_Py_Void();
8551 SWIGINTERN PyObject *_wrap_HammingComputer8_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8552 PyObject *resultobj = 0;
8557 unsigned long val2 ;
8559 PyObject * obj0 = 0 ;
8560 PyObject * obj1 = 0 ;
8562 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer8_a0_set",&obj0,&obj1)) SWIG_fail;
8563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer8, 0 | 0 );
8564 if (!SWIG_IsOK(res1)) {
8565 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer8_a0_set" "', argument " "1"" of type '" "faiss::HammingComputer8 *""'");
8568 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
8569 if (!SWIG_IsOK(ecode2)) {
8570 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer8_a0_set" "', argument " "2"" of type '" "uint64_t""'");
8572 arg2 =
static_cast< uint64_t
>(val2);
8573 if (arg1) (arg1)->a0 = arg2;
8574 resultobj = SWIG_Py_Void();
8581 SWIGINTERN PyObject *_wrap_HammingComputer8_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8582 PyObject *resultobj = 0;
8586 PyObject * obj0 = 0 ;
8589 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer8_a0_get",&obj0)) SWIG_fail;
8590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer8, 0 | 0 );
8591 if (!SWIG_IsOK(res1)) {
8592 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer8_a0_get" "', argument " "1"" of type '" "faiss::HammingComputer8 *""'");
8595 result = (uint64_t) ((arg1)->a0);
8596 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
8603 SWIGINTERN PyObject *_wrap_new_HammingComputer8__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8604 PyObject *resultobj = 0;
8607 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputer8")) SWIG_fail;
8609 Py_BEGIN_ALLOW_THREADS
8613 PyEval_RestoreThread(_save);
8614 PyErr_SetString(PyExc_RuntimeError, e.
what());
8617 Py_END_ALLOW_THREADS
8619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer8, SWIG_POINTER_NEW | 0 );
8626 SWIGINTERN PyObject *_wrap_new_HammingComputer8__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8627 PyObject *resultobj = 0;
8628 uint8_t *arg1 = (uint8_t *) 0 ;
8634 PyObject * obj0 = 0 ;
8635 PyObject * obj1 = 0 ;
8638 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputer8",&obj0,&obj1)) SWIG_fail;
8639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
8640 if (!SWIG_IsOK(res1)) {
8641 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputer8" "', argument " "1"" of type '" "uint8_t const *""'");
8643 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
8644 ecode2 = SWIG_AsVal_int(obj1, &val2);
8645 if (!SWIG_IsOK(ecode2)) {
8646 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputer8" "', argument " "2"" of type '" "int""'");
8648 arg2 =
static_cast< int >(val2);
8650 Py_BEGIN_ALLOW_THREADS
8654 PyEval_RestoreThread(_save);
8655 PyErr_SetString(PyExc_RuntimeError, e.
what());
8658 Py_END_ALLOW_THREADS
8660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer8, SWIG_POINTER_NEW | 0 );
8667 SWIGINTERN PyObject *_wrap_new_HammingComputer8(PyObject *
self, PyObject *args) {
8669 PyObject *argv[3] = {
8674 if (!PyTuple_Check(args)) SWIG_fail;
8675 argc = args ? PyObject_Length(args) : 0;
8676 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8677 argv[ii] = PyTuple_GET_ITEM(args,ii);
8680 return _wrap_new_HammingComputer8__SWIG_0(
self, args);
8685 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
8686 _v = SWIG_CheckState(res);
8689 int res = SWIG_AsVal_int(argv[1], NULL);
8690 _v = SWIG_CheckState(res);
8693 return _wrap_new_HammingComputer8__SWIG_1(
self, args);
8699 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputer8'.\n"
8700 " Possible C/C++ prototypes are:\n"
8701 " faiss::HammingComputer8::HammingComputer8()\n"
8702 " faiss::HammingComputer8::HammingComputer8(uint8_t const *,int)\n");
8707 SWIGINTERN PyObject *_wrap_HammingComputer8_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8708 PyObject *resultobj = 0;
8710 uint8_t *arg2 = (uint8_t *) 0 ;
8718 PyObject * obj0 = 0 ;
8719 PyObject * obj1 = 0 ;
8720 PyObject * obj2 = 0 ;
8722 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputer8_set",&obj0,&obj1,&obj2)) SWIG_fail;
8723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer8, 0 | 0 );
8724 if (!SWIG_IsOK(res1)) {
8725 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer8_set" "', argument " "1"" of type '" "faiss::HammingComputer8 *""'");
8728 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8729 if (!SWIG_IsOK(res2)) {
8730 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer8_set" "', argument " "2"" of type '" "uint8_t const *""'");
8732 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8733 ecode3 = SWIG_AsVal_int(obj2, &val3);
8734 if (!SWIG_IsOK(ecode3)) {
8735 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputer8_set" "', argument " "3"" of type '" "int""'");
8737 arg3 =
static_cast< int >(val3);
8739 Py_BEGIN_ALLOW_THREADS
8741 (arg1)->set((uint8_t
const *)arg2,arg3);
8743 PyEval_RestoreThread(_save);
8744 PyErr_SetString(PyExc_RuntimeError, e.
what());
8747 Py_END_ALLOW_THREADS
8749 resultobj = SWIG_Py_Void();
8756 SWIGINTERN PyObject *_wrap_HammingComputer8_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8757 PyObject *resultobj = 0;
8759 uint8_t *arg2 = (uint8_t *) 0 ;
8764 PyObject * obj0 = 0 ;
8765 PyObject * obj1 = 0 ;
8768 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer8_hamming",&obj0,&obj1)) SWIG_fail;
8769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer8, 0 | 0 );
8770 if (!SWIG_IsOK(res1)) {
8771 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer8_hamming" "', argument " "1"" of type '" "faiss::HammingComputer8 const *""'");
8774 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8775 if (!SWIG_IsOK(res2)) {
8776 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer8_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
8778 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8780 Py_BEGIN_ALLOW_THREADS
8784 PyEval_RestoreThread(_save);
8785 PyErr_SetString(PyExc_RuntimeError, e.
what());
8788 Py_END_ALLOW_THREADS
8790 resultobj = SWIG_From_int(static_cast< int >(result));
8797 SWIGINTERN PyObject *_wrap_delete_HammingComputer8(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8798 PyObject *resultobj = 0;
8802 PyObject * obj0 = 0 ;
8804 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputer8",&obj0)) SWIG_fail;
8805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer8, SWIG_POINTER_DISOWN | 0 );
8806 if (!SWIG_IsOK(res1)) {
8807 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputer8" "', argument " "1"" of type '" "faiss::HammingComputer8 *""'");
8811 resultobj = SWIG_Py_Void();
8818 SWIGINTERN PyObject *HammingComputer8_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8820 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
8821 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputer8, SWIG_NewClientData(obj));
8822 return SWIG_Py_Void();
8825 SWIGINTERN PyObject *_wrap_HammingComputer16_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8826 PyObject *resultobj = 0;
8831 unsigned long val2 ;
8833 PyObject * obj0 = 0 ;
8834 PyObject * obj1 = 0 ;
8836 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer16_a0_set",&obj0,&obj1)) SWIG_fail;
8837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer16, 0 | 0 );
8838 if (!SWIG_IsOK(res1)) {
8839 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer16_a0_set" "', argument " "1"" of type '" "faiss::HammingComputer16 *""'");
8842 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
8843 if (!SWIG_IsOK(ecode2)) {
8844 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer16_a0_set" "', argument " "2"" of type '" "uint64_t""'");
8846 arg2 =
static_cast< uint64_t
>(val2);
8847 if (arg1) (arg1)->a0 = arg2;
8848 resultobj = SWIG_Py_Void();
8855 SWIGINTERN PyObject *_wrap_HammingComputer16_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8856 PyObject *resultobj = 0;
8860 PyObject * obj0 = 0 ;
8863 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer16_a0_get",&obj0)) SWIG_fail;
8864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer16, 0 | 0 );
8865 if (!SWIG_IsOK(res1)) {
8866 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer16_a0_get" "', argument " "1"" of type '" "faiss::HammingComputer16 *""'");
8869 result = (uint64_t) ((arg1)->a0);
8870 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
8877 SWIGINTERN PyObject *_wrap_HammingComputer16_a1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8878 PyObject *resultobj = 0;
8883 unsigned long val2 ;
8885 PyObject * obj0 = 0 ;
8886 PyObject * obj1 = 0 ;
8888 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer16_a1_set",&obj0,&obj1)) SWIG_fail;
8889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer16, 0 | 0 );
8890 if (!SWIG_IsOK(res1)) {
8891 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer16_a1_set" "', argument " "1"" of type '" "faiss::HammingComputer16 *""'");
8894 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
8895 if (!SWIG_IsOK(ecode2)) {
8896 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer16_a1_set" "', argument " "2"" of type '" "uint64_t""'");
8898 arg2 =
static_cast< uint64_t
>(val2);
8899 if (arg1) (arg1)->a1 = arg2;
8900 resultobj = SWIG_Py_Void();
8907 SWIGINTERN PyObject *_wrap_HammingComputer16_a1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8908 PyObject *resultobj = 0;
8912 PyObject * obj0 = 0 ;
8915 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer16_a1_get",&obj0)) SWIG_fail;
8916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer16, 0 | 0 );
8917 if (!SWIG_IsOK(res1)) {
8918 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer16_a1_get" "', argument " "1"" of type '" "faiss::HammingComputer16 *""'");
8921 result = (uint64_t) ((arg1)->a1);
8922 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
8929 SWIGINTERN PyObject *_wrap_new_HammingComputer16__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8930 PyObject *resultobj = 0;
8933 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputer16")) SWIG_fail;
8935 Py_BEGIN_ALLOW_THREADS
8939 PyEval_RestoreThread(_save);
8940 PyErr_SetString(PyExc_RuntimeError, e.
what());
8943 Py_END_ALLOW_THREADS
8945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer16, SWIG_POINTER_NEW | 0 );
8952 SWIGINTERN PyObject *_wrap_new_HammingComputer16__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8953 PyObject *resultobj = 0;
8954 uint8_t *arg1 = (uint8_t *) 0 ;
8960 PyObject * obj0 = 0 ;
8961 PyObject * obj1 = 0 ;
8964 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputer16",&obj0,&obj1)) SWIG_fail;
8965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
8966 if (!SWIG_IsOK(res1)) {
8967 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputer16" "', argument " "1"" of type '" "uint8_t const *""'");
8969 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
8970 ecode2 = SWIG_AsVal_int(obj1, &val2);
8971 if (!SWIG_IsOK(ecode2)) {
8972 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputer16" "', argument " "2"" of type '" "int""'");
8974 arg2 =
static_cast< int >(val2);
8976 Py_BEGIN_ALLOW_THREADS
8980 PyEval_RestoreThread(_save);
8981 PyErr_SetString(PyExc_RuntimeError, e.
what());
8984 Py_END_ALLOW_THREADS
8986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer16, SWIG_POINTER_NEW | 0 );
8993 SWIGINTERN PyObject *_wrap_new_HammingComputer16(PyObject *
self, PyObject *args) {
8995 PyObject *argv[3] = {
9000 if (!PyTuple_Check(args)) SWIG_fail;
9001 argc = args ? PyObject_Length(args) : 0;
9002 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
9003 argv[ii] = PyTuple_GET_ITEM(args,ii);
9006 return _wrap_new_HammingComputer16__SWIG_0(
self, args);
9011 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
9012 _v = SWIG_CheckState(res);
9015 int res = SWIG_AsVal_int(argv[1], NULL);
9016 _v = SWIG_CheckState(res);
9019 return _wrap_new_HammingComputer16__SWIG_1(
self, args);
9025 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputer16'.\n"
9026 " Possible C/C++ prototypes are:\n"
9027 " faiss::HammingComputer16::HammingComputer16()\n"
9028 " faiss::HammingComputer16::HammingComputer16(uint8_t const *,int)\n");
9033 SWIGINTERN PyObject *_wrap_HammingComputer16_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9034 PyObject *resultobj = 0;
9036 uint8_t *arg2 = (uint8_t *) 0 ;
9044 PyObject * obj0 = 0 ;
9045 PyObject * obj1 = 0 ;
9046 PyObject * obj2 = 0 ;
9048 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputer16_set",&obj0,&obj1,&obj2)) SWIG_fail;
9049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer16, 0 | 0 );
9050 if (!SWIG_IsOK(res1)) {
9051 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer16_set" "', argument " "1"" of type '" "faiss::HammingComputer16 *""'");
9054 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
9055 if (!SWIG_IsOK(res2)) {
9056 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer16_set" "', argument " "2"" of type '" "uint8_t const *""'");
9058 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
9059 ecode3 = SWIG_AsVal_int(obj2, &val3);
9060 if (!SWIG_IsOK(ecode3)) {
9061 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputer16_set" "', argument " "3"" of type '" "int""'");
9063 arg3 =
static_cast< int >(val3);
9065 Py_BEGIN_ALLOW_THREADS
9067 (arg1)->set((uint8_t
const *)arg2,arg3);
9069 PyEval_RestoreThread(_save);
9070 PyErr_SetString(PyExc_RuntimeError, e.
what());
9073 Py_END_ALLOW_THREADS
9075 resultobj = SWIG_Py_Void();
9082 SWIGINTERN PyObject *_wrap_HammingComputer16_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9083 PyObject *resultobj = 0;
9085 uint8_t *arg2 = (uint8_t *) 0 ;
9090 PyObject * obj0 = 0 ;
9091 PyObject * obj1 = 0 ;
9094 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer16_hamming",&obj0,&obj1)) SWIG_fail;
9095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer16, 0 | 0 );
9096 if (!SWIG_IsOK(res1)) {
9097 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer16_hamming" "', argument " "1"" of type '" "faiss::HammingComputer16 const *""'");
9100 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
9101 if (!SWIG_IsOK(res2)) {
9102 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer16_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
9104 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
9106 Py_BEGIN_ALLOW_THREADS
9110 PyEval_RestoreThread(_save);
9111 PyErr_SetString(PyExc_RuntimeError, e.
what());
9114 Py_END_ALLOW_THREADS
9116 resultobj = SWIG_From_int(static_cast< int >(result));
9123 SWIGINTERN PyObject *_wrap_delete_HammingComputer16(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9124 PyObject *resultobj = 0;
9128 PyObject * obj0 = 0 ;
9130 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputer16",&obj0)) SWIG_fail;
9131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer16, SWIG_POINTER_DISOWN | 0 );
9132 if (!SWIG_IsOK(res1)) {
9133 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputer16" "', argument " "1"" of type '" "faiss::HammingComputer16 *""'");
9137 resultobj = SWIG_Py_Void();
9144 SWIGINTERN PyObject *HammingComputer16_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9146 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
9147 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputer16, SWIG_NewClientData(obj));
9148 return SWIG_Py_Void();
9151 SWIGINTERN PyObject *_wrap_HammingComputer20_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9152 PyObject *resultobj = 0;
9157 unsigned long val2 ;
9159 PyObject * obj0 = 0 ;
9160 PyObject * obj1 = 0 ;
9162 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer20_a0_set",&obj0,&obj1)) SWIG_fail;
9163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
9164 if (!SWIG_IsOK(res1)) {
9165 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_a0_set" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
9168 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9169 if (!SWIG_IsOK(ecode2)) {
9170 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer20_a0_set" "', argument " "2"" of type '" "uint64_t""'");
9172 arg2 =
static_cast< uint64_t
>(val2);
9173 if (arg1) (arg1)->a0 = arg2;
9174 resultobj = SWIG_Py_Void();
9181 SWIGINTERN PyObject *_wrap_HammingComputer20_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9182 PyObject *resultobj = 0;
9186 PyObject * obj0 = 0 ;
9189 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer20_a0_get",&obj0)) SWIG_fail;
9190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
9191 if (!SWIG_IsOK(res1)) {
9192 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_a0_get" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
9195 result = (uint64_t) ((arg1)->a0);
9196 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9203 SWIGINTERN PyObject *_wrap_HammingComputer20_a1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9204 PyObject *resultobj = 0;
9209 unsigned long val2 ;
9211 PyObject * obj0 = 0 ;
9212 PyObject * obj1 = 0 ;
9214 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer20_a1_set",&obj0,&obj1)) SWIG_fail;
9215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
9216 if (!SWIG_IsOK(res1)) {
9217 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_a1_set" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
9220 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9221 if (!SWIG_IsOK(ecode2)) {
9222 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer20_a1_set" "', argument " "2"" of type '" "uint64_t""'");
9224 arg2 =
static_cast< uint64_t
>(val2);
9225 if (arg1) (arg1)->a1 = arg2;
9226 resultobj = SWIG_Py_Void();
9233 SWIGINTERN PyObject *_wrap_HammingComputer20_a1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9234 PyObject *resultobj = 0;
9238 PyObject * obj0 = 0 ;
9241 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer20_a1_get",&obj0)) SWIG_fail;
9242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
9243 if (!SWIG_IsOK(res1)) {
9244 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_a1_get" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
9247 result = (uint64_t) ((arg1)->a1);
9248 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9255 SWIGINTERN PyObject *_wrap_HammingComputer20_a2_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9256 PyObject *resultobj = 0;
9263 PyObject * obj0 = 0 ;
9264 PyObject * obj1 = 0 ;
9266 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer20_a2_set",&obj0,&obj1)) SWIG_fail;
9267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
9268 if (!SWIG_IsOK(res1)) {
9269 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_a2_set" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
9273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint32_t, 0 | 0);
9274 if (!SWIG_IsOK(res2)) {
9275 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer20_a2_set" "', argument " "2"" of type '" "uint32_t""'");
9278 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HammingComputer20_a2_set" "', argument " "2"" of type '" "uint32_t""'");
9280 uint32_t * temp =
reinterpret_cast< uint32_t *
>(argp2);
9282 if (SWIG_IsNewObj(res2))
delete temp;
9285 if (arg1) (arg1)->a2 = arg2;
9286 resultobj = SWIG_Py_Void();
9293 SWIGINTERN PyObject *_wrap_HammingComputer20_a2_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9294 PyObject *resultobj = 0;
9298 PyObject * obj0 = 0 ;
9301 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer20_a2_get",&obj0)) SWIG_fail;
9302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
9303 if (!SWIG_IsOK(res1)) {
9304 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_a2_get" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
9307 result = ((arg1)->a2);
9308 resultobj = SWIG_NewPointerObj((
new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0 );
9315 SWIGINTERN PyObject *_wrap_new_HammingComputer20__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9316 PyObject *resultobj = 0;
9319 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputer20")) SWIG_fail;
9321 Py_BEGIN_ALLOW_THREADS
9325 PyEval_RestoreThread(_save);
9326 PyErr_SetString(PyExc_RuntimeError, e.
what());
9329 Py_END_ALLOW_THREADS
9331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer20, SWIG_POINTER_NEW | 0 );
9338 SWIGINTERN PyObject *_wrap_new_HammingComputer20__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9339 PyObject *resultobj = 0;
9340 uint8_t *arg1 = (uint8_t *) 0 ;
9346 PyObject * obj0 = 0 ;
9347 PyObject * obj1 = 0 ;
9350 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputer20",&obj0,&obj1)) SWIG_fail;
9351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
9352 if (!SWIG_IsOK(res1)) {
9353 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputer20" "', argument " "1"" of type '" "uint8_t const *""'");
9355 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
9356 ecode2 = SWIG_AsVal_int(obj1, &val2);
9357 if (!SWIG_IsOK(ecode2)) {
9358 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputer20" "', argument " "2"" of type '" "int""'");
9360 arg2 =
static_cast< int >(val2);
9362 Py_BEGIN_ALLOW_THREADS
9366 PyEval_RestoreThread(_save);
9367 PyErr_SetString(PyExc_RuntimeError, e.
what());
9370 Py_END_ALLOW_THREADS
9372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer20, SWIG_POINTER_NEW | 0 );
9379 SWIGINTERN PyObject *_wrap_new_HammingComputer20(PyObject *
self, PyObject *args) {
9381 PyObject *argv[3] = {
9386 if (!PyTuple_Check(args)) SWIG_fail;
9387 argc = args ? PyObject_Length(args) : 0;
9388 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
9389 argv[ii] = PyTuple_GET_ITEM(args,ii);
9392 return _wrap_new_HammingComputer20__SWIG_0(
self, args);
9397 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
9398 _v = SWIG_CheckState(res);
9401 int res = SWIG_AsVal_int(argv[1], NULL);
9402 _v = SWIG_CheckState(res);
9405 return _wrap_new_HammingComputer20__SWIG_1(
self, args);
9411 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputer20'.\n"
9412 " Possible C/C++ prototypes are:\n"
9413 " faiss::HammingComputer20::HammingComputer20()\n"
9414 " faiss::HammingComputer20::HammingComputer20(uint8_t const *,int)\n");
9419 SWIGINTERN PyObject *_wrap_HammingComputer20_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9420 PyObject *resultobj = 0;
9422 uint8_t *arg2 = (uint8_t *) 0 ;
9430 PyObject * obj0 = 0 ;
9431 PyObject * obj1 = 0 ;
9432 PyObject * obj2 = 0 ;
9434 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputer20_set",&obj0,&obj1,&obj2)) SWIG_fail;
9435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
9436 if (!SWIG_IsOK(res1)) {
9437 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_set" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
9440 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
9441 if (!SWIG_IsOK(res2)) {
9442 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer20_set" "', argument " "2"" of type '" "uint8_t const *""'");
9444 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
9445 ecode3 = SWIG_AsVal_int(obj2, &val3);
9446 if (!SWIG_IsOK(ecode3)) {
9447 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputer20_set" "', argument " "3"" of type '" "int""'");
9449 arg3 =
static_cast< int >(val3);
9451 Py_BEGIN_ALLOW_THREADS
9453 (arg1)->set((uint8_t
const *)arg2,arg3);
9455 PyEval_RestoreThread(_save);
9456 PyErr_SetString(PyExc_RuntimeError, e.
what());
9459 Py_END_ALLOW_THREADS
9461 resultobj = SWIG_Py_Void();
9468 SWIGINTERN PyObject *_wrap_HammingComputer20_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9469 PyObject *resultobj = 0;
9471 uint8_t *arg2 = (uint8_t *) 0 ;
9476 PyObject * obj0 = 0 ;
9477 PyObject * obj1 = 0 ;
9480 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer20_hamming",&obj0,&obj1)) SWIG_fail;
9481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, 0 | 0 );
9482 if (!SWIG_IsOK(res1)) {
9483 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer20_hamming" "', argument " "1"" of type '" "faiss::HammingComputer20 const *""'");
9486 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
9487 if (!SWIG_IsOK(res2)) {
9488 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer20_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
9490 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
9492 Py_BEGIN_ALLOW_THREADS
9496 PyEval_RestoreThread(_save);
9497 PyErr_SetString(PyExc_RuntimeError, e.
what());
9500 Py_END_ALLOW_THREADS
9502 resultobj = SWIG_From_int(static_cast< int >(result));
9509 SWIGINTERN PyObject *_wrap_delete_HammingComputer20(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9510 PyObject *resultobj = 0;
9514 PyObject * obj0 = 0 ;
9516 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputer20",&obj0)) SWIG_fail;
9517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer20, SWIG_POINTER_DISOWN | 0 );
9518 if (!SWIG_IsOK(res1)) {
9519 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputer20" "', argument " "1"" of type '" "faiss::HammingComputer20 *""'");
9523 resultobj = SWIG_Py_Void();
9530 SWIGINTERN PyObject *HammingComputer20_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9532 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
9533 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputer20, SWIG_NewClientData(obj));
9534 return SWIG_Py_Void();
9537 SWIGINTERN PyObject *_wrap_HammingComputer32_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9538 PyObject *resultobj = 0;
9543 unsigned long val2 ;
9545 PyObject * obj0 = 0 ;
9546 PyObject * obj1 = 0 ;
9548 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer32_a0_set",&obj0,&obj1)) SWIG_fail;
9549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9550 if (!SWIG_IsOK(res1)) {
9551 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a0_set" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9554 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9555 if (!SWIG_IsOK(ecode2)) {
9556 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer32_a0_set" "', argument " "2"" of type '" "uint64_t""'");
9558 arg2 =
static_cast< uint64_t
>(val2);
9559 if (arg1) (arg1)->a0 = arg2;
9560 resultobj = SWIG_Py_Void();
9567 SWIGINTERN PyObject *_wrap_HammingComputer32_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9568 PyObject *resultobj = 0;
9572 PyObject * obj0 = 0 ;
9575 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer32_a0_get",&obj0)) SWIG_fail;
9576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9577 if (!SWIG_IsOK(res1)) {
9578 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a0_get" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9581 result = (uint64_t) ((arg1)->a0);
9582 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9589 SWIGINTERN PyObject *_wrap_HammingComputer32_a1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9590 PyObject *resultobj = 0;
9595 unsigned long val2 ;
9597 PyObject * obj0 = 0 ;
9598 PyObject * obj1 = 0 ;
9600 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer32_a1_set",&obj0,&obj1)) SWIG_fail;
9601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9602 if (!SWIG_IsOK(res1)) {
9603 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a1_set" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9606 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9607 if (!SWIG_IsOK(ecode2)) {
9608 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer32_a1_set" "', argument " "2"" of type '" "uint64_t""'");
9610 arg2 =
static_cast< uint64_t
>(val2);
9611 if (arg1) (arg1)->a1 = arg2;
9612 resultobj = SWIG_Py_Void();
9619 SWIGINTERN PyObject *_wrap_HammingComputer32_a1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9620 PyObject *resultobj = 0;
9624 PyObject * obj0 = 0 ;
9627 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer32_a1_get",&obj0)) SWIG_fail;
9628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9629 if (!SWIG_IsOK(res1)) {
9630 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a1_get" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9633 result = (uint64_t) ((arg1)->a1);
9634 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9641 SWIGINTERN PyObject *_wrap_HammingComputer32_a2_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9642 PyObject *resultobj = 0;
9647 unsigned long val2 ;
9649 PyObject * obj0 = 0 ;
9650 PyObject * obj1 = 0 ;
9652 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer32_a2_set",&obj0,&obj1)) SWIG_fail;
9653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9654 if (!SWIG_IsOK(res1)) {
9655 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a2_set" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9658 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9659 if (!SWIG_IsOK(ecode2)) {
9660 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer32_a2_set" "', argument " "2"" of type '" "uint64_t""'");
9662 arg2 =
static_cast< uint64_t
>(val2);
9663 if (arg1) (arg1)->a2 = arg2;
9664 resultobj = SWIG_Py_Void();
9671 SWIGINTERN PyObject *_wrap_HammingComputer32_a2_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9672 PyObject *resultobj = 0;
9676 PyObject * obj0 = 0 ;
9679 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer32_a2_get",&obj0)) SWIG_fail;
9680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9681 if (!SWIG_IsOK(res1)) {
9682 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a2_get" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9685 result = (uint64_t) ((arg1)->a2);
9686 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9693 SWIGINTERN PyObject *_wrap_HammingComputer32_a3_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9694 PyObject *resultobj = 0;
9699 unsigned long val2 ;
9701 PyObject * obj0 = 0 ;
9702 PyObject * obj1 = 0 ;
9704 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer32_a3_set",&obj0,&obj1)) SWIG_fail;
9705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9706 if (!SWIG_IsOK(res1)) {
9707 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a3_set" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9710 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9711 if (!SWIG_IsOK(ecode2)) {
9712 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer32_a3_set" "', argument " "2"" of type '" "uint64_t""'");
9714 arg2 =
static_cast< uint64_t
>(val2);
9715 if (arg1) (arg1)->a3 = arg2;
9716 resultobj = SWIG_Py_Void();
9723 SWIGINTERN PyObject *_wrap_HammingComputer32_a3_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9724 PyObject *resultobj = 0;
9728 PyObject * obj0 = 0 ;
9731 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer32_a3_get",&obj0)) SWIG_fail;
9732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9733 if (!SWIG_IsOK(res1)) {
9734 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_a3_get" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9737 result = (uint64_t) ((arg1)->a3);
9738 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9745 SWIGINTERN PyObject *_wrap_new_HammingComputer32__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9746 PyObject *resultobj = 0;
9749 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputer32")) SWIG_fail;
9751 Py_BEGIN_ALLOW_THREADS
9755 PyEval_RestoreThread(_save);
9756 PyErr_SetString(PyExc_RuntimeError, e.
what());
9759 Py_END_ALLOW_THREADS
9761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer32, SWIG_POINTER_NEW | 0 );
9768 SWIGINTERN PyObject *_wrap_new_HammingComputer32__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9769 PyObject *resultobj = 0;
9770 uint8_t *arg1 = (uint8_t *) 0 ;
9776 PyObject * obj0 = 0 ;
9777 PyObject * obj1 = 0 ;
9780 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputer32",&obj0,&obj1)) SWIG_fail;
9781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
9782 if (!SWIG_IsOK(res1)) {
9783 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputer32" "', argument " "1"" of type '" "uint8_t const *""'");
9785 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
9786 ecode2 = SWIG_AsVal_int(obj1, &val2);
9787 if (!SWIG_IsOK(ecode2)) {
9788 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputer32" "', argument " "2"" of type '" "int""'");
9790 arg2 =
static_cast< int >(val2);
9792 Py_BEGIN_ALLOW_THREADS
9796 PyEval_RestoreThread(_save);
9797 PyErr_SetString(PyExc_RuntimeError, e.
what());
9800 Py_END_ALLOW_THREADS
9802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer32, SWIG_POINTER_NEW | 0 );
9809 SWIGINTERN PyObject *_wrap_new_HammingComputer32(PyObject *
self, PyObject *args) {
9811 PyObject *argv[3] = {
9816 if (!PyTuple_Check(args)) SWIG_fail;
9817 argc = args ? PyObject_Length(args) : 0;
9818 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
9819 argv[ii] = PyTuple_GET_ITEM(args,ii);
9822 return _wrap_new_HammingComputer32__SWIG_0(
self, args);
9827 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
9828 _v = SWIG_CheckState(res);
9831 int res = SWIG_AsVal_int(argv[1], NULL);
9832 _v = SWIG_CheckState(res);
9835 return _wrap_new_HammingComputer32__SWIG_1(
self, args);
9841 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputer32'.\n"
9842 " Possible C/C++ prototypes are:\n"
9843 " faiss::HammingComputer32::HammingComputer32()\n"
9844 " faiss::HammingComputer32::HammingComputer32(uint8_t const *,int)\n");
9849 SWIGINTERN PyObject *_wrap_HammingComputer32_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9850 PyObject *resultobj = 0;
9852 uint8_t *arg2 = (uint8_t *) 0 ;
9860 PyObject * obj0 = 0 ;
9861 PyObject * obj1 = 0 ;
9862 PyObject * obj2 = 0 ;
9864 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputer32_set",&obj0,&obj1,&obj2)) SWIG_fail;
9865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9866 if (!SWIG_IsOK(res1)) {
9867 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_set" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9870 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
9871 if (!SWIG_IsOK(res2)) {
9872 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer32_set" "', argument " "2"" of type '" "uint8_t const *""'");
9874 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
9875 ecode3 = SWIG_AsVal_int(obj2, &val3);
9876 if (!SWIG_IsOK(ecode3)) {
9877 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputer32_set" "', argument " "3"" of type '" "int""'");
9879 arg3 =
static_cast< int >(val3);
9881 Py_BEGIN_ALLOW_THREADS
9883 (arg1)->set((uint8_t
const *)arg2,arg3);
9885 PyEval_RestoreThread(_save);
9886 PyErr_SetString(PyExc_RuntimeError, e.
what());
9889 Py_END_ALLOW_THREADS
9891 resultobj = SWIG_Py_Void();
9898 SWIGINTERN PyObject *_wrap_HammingComputer32_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9899 PyObject *resultobj = 0;
9901 uint8_t *arg2 = (uint8_t *) 0 ;
9906 PyObject * obj0 = 0 ;
9907 PyObject * obj1 = 0 ;
9910 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer32_hamming",&obj0,&obj1)) SWIG_fail;
9911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, 0 | 0 );
9912 if (!SWIG_IsOK(res1)) {
9913 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer32_hamming" "', argument " "1"" of type '" "faiss::HammingComputer32 const *""'");
9916 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
9917 if (!SWIG_IsOK(res2)) {
9918 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer32_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
9920 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
9922 Py_BEGIN_ALLOW_THREADS
9926 PyEval_RestoreThread(_save);
9927 PyErr_SetString(PyExc_RuntimeError, e.
what());
9930 Py_END_ALLOW_THREADS
9932 resultobj = SWIG_From_int(static_cast< int >(result));
9939 SWIGINTERN PyObject *_wrap_delete_HammingComputer32(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9940 PyObject *resultobj = 0;
9944 PyObject * obj0 = 0 ;
9946 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputer32",&obj0)) SWIG_fail;
9947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer32, SWIG_POINTER_DISOWN | 0 );
9948 if (!SWIG_IsOK(res1)) {
9949 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputer32" "', argument " "1"" of type '" "faiss::HammingComputer32 *""'");
9953 resultobj = SWIG_Py_Void();
9960 SWIGINTERN PyObject *HammingComputer32_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9962 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
9963 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputer32, SWIG_NewClientData(obj));
9964 return SWIG_Py_Void();
9967 SWIGINTERN PyObject *_wrap_HammingComputer64_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9968 PyObject *resultobj = 0;
9973 unsigned long val2 ;
9975 PyObject * obj0 = 0 ;
9976 PyObject * obj1 = 0 ;
9978 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a0_set",&obj0,&obj1)) SWIG_fail;
9979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
9980 if (!SWIG_IsOK(res1)) {
9981 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a0_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
9984 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
9985 if (!SWIG_IsOK(ecode2)) {
9986 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a0_set" "', argument " "2"" of type '" "uint64_t""'");
9988 arg2 =
static_cast< uint64_t
>(val2);
9989 if (arg1) (arg1)->a0 = arg2;
9990 resultobj = SWIG_Py_Void();
9997 SWIGINTERN PyObject *_wrap_HammingComputer64_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9998 PyObject *resultobj = 0;
10002 PyObject * obj0 = 0 ;
10005 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a0_get",&obj0)) SWIG_fail;
10006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10007 if (!SWIG_IsOK(res1)) {
10008 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a0_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10011 result = (uint64_t) ((arg1)->a0);
10012 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
10019 SWIGINTERN PyObject *_wrap_HammingComputer64_a1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10020 PyObject *resultobj = 0;
10025 unsigned long val2 ;
10027 PyObject * obj0 = 0 ;
10028 PyObject * obj1 = 0 ;
10030 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a1_set",&obj0,&obj1)) SWIG_fail;
10031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10032 if (!SWIG_IsOK(res1)) {
10033 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a1_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10036 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
10037 if (!SWIG_IsOK(ecode2)) {
10038 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a1_set" "', argument " "2"" of type '" "uint64_t""'");
10040 arg2 =
static_cast< uint64_t
>(val2);
10041 if (arg1) (arg1)->a1 = arg2;
10042 resultobj = SWIG_Py_Void();
10049 SWIGINTERN PyObject *_wrap_HammingComputer64_a1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10050 PyObject *resultobj = 0;
10054 PyObject * obj0 = 0 ;
10057 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a1_get",&obj0)) SWIG_fail;
10058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10059 if (!SWIG_IsOK(res1)) {
10060 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a1_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10063 result = (uint64_t) ((arg1)->a1);
10064 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
10071 SWIGINTERN PyObject *_wrap_HammingComputer64_a2_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10072 PyObject *resultobj = 0;
10077 unsigned long val2 ;
10079 PyObject * obj0 = 0 ;
10080 PyObject * obj1 = 0 ;
10082 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a2_set",&obj0,&obj1)) SWIG_fail;
10083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10084 if (!SWIG_IsOK(res1)) {
10085 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a2_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10088 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
10089 if (!SWIG_IsOK(ecode2)) {
10090 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a2_set" "', argument " "2"" of type '" "uint64_t""'");
10092 arg2 =
static_cast< uint64_t
>(val2);
10093 if (arg1) (arg1)->a2 = arg2;
10094 resultobj = SWIG_Py_Void();
10101 SWIGINTERN PyObject *_wrap_HammingComputer64_a2_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10102 PyObject *resultobj = 0;
10106 PyObject * obj0 = 0 ;
10109 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a2_get",&obj0)) SWIG_fail;
10110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10111 if (!SWIG_IsOK(res1)) {
10112 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a2_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10115 result = (uint64_t) ((arg1)->a2);
10116 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
10123 SWIGINTERN PyObject *_wrap_HammingComputer64_a3_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10124 PyObject *resultobj = 0;
10129 unsigned long val2 ;
10131 PyObject * obj0 = 0 ;
10132 PyObject * obj1 = 0 ;
10134 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a3_set",&obj0,&obj1)) SWIG_fail;
10135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10136 if (!SWIG_IsOK(res1)) {
10137 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a3_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10140 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
10141 if (!SWIG_IsOK(ecode2)) {
10142 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a3_set" "', argument " "2"" of type '" "uint64_t""'");
10144 arg2 =
static_cast< uint64_t
>(val2);
10145 if (arg1) (arg1)->a3 = arg2;
10146 resultobj = SWIG_Py_Void();
10153 SWIGINTERN PyObject *_wrap_HammingComputer64_a3_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10154 PyObject *resultobj = 0;
10158 PyObject * obj0 = 0 ;
10161 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a3_get",&obj0)) SWIG_fail;
10162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10163 if (!SWIG_IsOK(res1)) {
10164 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a3_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10167 result = (uint64_t) ((arg1)->a3);
10168 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
10175 SWIGINTERN PyObject *_wrap_HammingComputer64_a4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10176 PyObject *resultobj = 0;
10181 unsigned long val2 ;
10183 PyObject * obj0 = 0 ;
10184 PyObject * obj1 = 0 ;
10186 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a4_set",&obj0,&obj1)) SWIG_fail;
10187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10188 if (!SWIG_IsOK(res1)) {
10189 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a4_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10192 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
10193 if (!SWIG_IsOK(ecode2)) {
10194 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a4_set" "', argument " "2"" of type '" "uint64_t""'");
10196 arg2 =
static_cast< uint64_t
>(val2);
10197 if (arg1) (arg1)->a4 = arg2;
10198 resultobj = SWIG_Py_Void();
10205 SWIGINTERN PyObject *_wrap_HammingComputer64_a4_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10206 PyObject *resultobj = 0;
10210 PyObject * obj0 = 0 ;
10213 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a4_get",&obj0)) SWIG_fail;
10214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10215 if (!SWIG_IsOK(res1)) {
10216 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a4_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10219 result = (uint64_t) ((arg1)->a4);
10220 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
10227 SWIGINTERN PyObject *_wrap_HammingComputer64_a5_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10228 PyObject *resultobj = 0;
10233 unsigned long val2 ;
10235 PyObject * obj0 = 0 ;
10236 PyObject * obj1 = 0 ;
10238 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a5_set",&obj0,&obj1)) SWIG_fail;
10239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10240 if (!SWIG_IsOK(res1)) {
10241 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a5_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10244 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
10245 if (!SWIG_IsOK(ecode2)) {
10246 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a5_set" "', argument " "2"" of type '" "uint64_t""'");
10248 arg2 =
static_cast< uint64_t
>(val2);
10249 if (arg1) (arg1)->a5 = arg2;
10250 resultobj = SWIG_Py_Void();
10257 SWIGINTERN PyObject *_wrap_HammingComputer64_a5_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10258 PyObject *resultobj = 0;
10262 PyObject * obj0 = 0 ;
10265 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a5_get",&obj0)) SWIG_fail;
10266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10267 if (!SWIG_IsOK(res1)) {
10268 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a5_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10271 result = (uint64_t) ((arg1)->a5);
10272 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
10279 SWIGINTERN PyObject *_wrap_HammingComputer64_a6_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10280 PyObject *resultobj = 0;
10285 unsigned long val2 ;
10287 PyObject * obj0 = 0 ;
10288 PyObject * obj1 = 0 ;
10290 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a6_set",&obj0,&obj1)) SWIG_fail;
10291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10292 if (!SWIG_IsOK(res1)) {
10293 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a6_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10296 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
10297 if (!SWIG_IsOK(ecode2)) {
10298 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a6_set" "', argument " "2"" of type '" "uint64_t""'");
10300 arg2 =
static_cast< uint64_t
>(val2);
10301 if (arg1) (arg1)->a6 = arg2;
10302 resultobj = SWIG_Py_Void();
10309 SWIGINTERN PyObject *_wrap_HammingComputer64_a6_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10310 PyObject *resultobj = 0;
10314 PyObject * obj0 = 0 ;
10317 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a6_get",&obj0)) SWIG_fail;
10318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10319 if (!SWIG_IsOK(res1)) {
10320 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a6_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10323 result = (uint64_t) ((arg1)->a6);
10324 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
10331 SWIGINTERN PyObject *_wrap_HammingComputer64_a7_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10332 PyObject *resultobj = 0;
10337 unsigned long val2 ;
10339 PyObject * obj0 = 0 ;
10340 PyObject * obj1 = 0 ;
10342 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_a7_set",&obj0,&obj1)) SWIG_fail;
10343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10344 if (!SWIG_IsOK(res1)) {
10345 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a7_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10348 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
10349 if (!SWIG_IsOK(ecode2)) {
10350 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputer64_a7_set" "', argument " "2"" of type '" "uint64_t""'");
10352 arg2 =
static_cast< uint64_t
>(val2);
10353 if (arg1) (arg1)->a7 = arg2;
10354 resultobj = SWIG_Py_Void();
10361 SWIGINTERN PyObject *_wrap_HammingComputer64_a7_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10362 PyObject *resultobj = 0;
10366 PyObject * obj0 = 0 ;
10369 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputer64_a7_get",&obj0)) SWIG_fail;
10370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10371 if (!SWIG_IsOK(res1)) {
10372 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_a7_get" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10375 result = (uint64_t) ((arg1)->a7);
10376 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
10383 SWIGINTERN PyObject *_wrap_new_HammingComputer64__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10384 PyObject *resultobj = 0;
10387 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputer64")) SWIG_fail;
10389 Py_BEGIN_ALLOW_THREADS
10393 PyEval_RestoreThread(_save);
10394 PyErr_SetString(PyExc_RuntimeError, e.
what());
10397 Py_END_ALLOW_THREADS
10399 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer64, SWIG_POINTER_NEW | 0 );
10406 SWIGINTERN PyObject *_wrap_new_HammingComputer64__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10407 PyObject *resultobj = 0;
10408 uint8_t *arg1 = (uint8_t *) 0 ;
10414 PyObject * obj0 = 0 ;
10415 PyObject * obj1 = 0 ;
10418 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputer64",&obj0,&obj1)) SWIG_fail;
10419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
10420 if (!SWIG_IsOK(res1)) {
10421 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputer64" "', argument " "1"" of type '" "uint8_t const *""'");
10423 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
10424 ecode2 = SWIG_AsVal_int(obj1, &val2);
10425 if (!SWIG_IsOK(ecode2)) {
10426 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputer64" "', argument " "2"" of type '" "int""'");
10428 arg2 =
static_cast< int >(val2);
10430 Py_BEGIN_ALLOW_THREADS
10434 PyEval_RestoreThread(_save);
10435 PyErr_SetString(PyExc_RuntimeError, e.
what());
10438 Py_END_ALLOW_THREADS
10440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputer64, SWIG_POINTER_NEW | 0 );
10447 SWIGINTERN PyObject *_wrap_new_HammingComputer64(PyObject *
self, PyObject *args) {
10449 PyObject *argv[3] = {
10454 if (!PyTuple_Check(args)) SWIG_fail;
10455 argc = args ? PyObject_Length(args) : 0;
10456 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
10457 argv[ii] = PyTuple_GET_ITEM(args,ii);
10460 return _wrap_new_HammingComputer64__SWIG_0(
self, args);
10465 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
10466 _v = SWIG_CheckState(res);
10469 int res = SWIG_AsVal_int(argv[1], NULL);
10470 _v = SWIG_CheckState(res);
10473 return _wrap_new_HammingComputer64__SWIG_1(
self, args);
10479 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputer64'.\n"
10480 " Possible C/C++ prototypes are:\n"
10481 " faiss::HammingComputer64::HammingComputer64()\n"
10482 " faiss::HammingComputer64::HammingComputer64(uint8_t const *,int)\n");
10487 SWIGINTERN PyObject *_wrap_HammingComputer64_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10488 PyObject *resultobj = 0;
10490 uint8_t *arg2 = (uint8_t *) 0 ;
10498 PyObject * obj0 = 0 ;
10499 PyObject * obj1 = 0 ;
10500 PyObject * obj2 = 0 ;
10502 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputer64_set",&obj0,&obj1,&obj2)) SWIG_fail;
10503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10504 if (!SWIG_IsOK(res1)) {
10505 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_set" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10508 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
10509 if (!SWIG_IsOK(res2)) {
10510 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer64_set" "', argument " "2"" of type '" "uint8_t const *""'");
10512 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
10513 ecode3 = SWIG_AsVal_int(obj2, &val3);
10514 if (!SWIG_IsOK(ecode3)) {
10515 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputer64_set" "', argument " "3"" of type '" "int""'");
10517 arg3 =
static_cast< int >(val3);
10519 Py_BEGIN_ALLOW_THREADS
10521 (arg1)->set((uint8_t
const *)arg2,arg3);
10523 PyEval_RestoreThread(_save);
10524 PyErr_SetString(PyExc_RuntimeError, e.
what());
10527 Py_END_ALLOW_THREADS
10529 resultobj = SWIG_Py_Void();
10536 SWIGINTERN PyObject *_wrap_HammingComputer64_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10537 PyObject *resultobj = 0;
10539 uint8_t *arg2 = (uint8_t *) 0 ;
10544 PyObject * obj0 = 0 ;
10545 PyObject * obj1 = 0 ;
10548 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputer64_hamming",&obj0,&obj1)) SWIG_fail;
10549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, 0 | 0 );
10550 if (!SWIG_IsOK(res1)) {
10551 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputer64_hamming" "', argument " "1"" of type '" "faiss::HammingComputer64 const *""'");
10554 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
10555 if (!SWIG_IsOK(res2)) {
10556 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputer64_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
10558 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
10560 Py_BEGIN_ALLOW_THREADS
10564 PyEval_RestoreThread(_save);
10565 PyErr_SetString(PyExc_RuntimeError, e.
what());
10568 Py_END_ALLOW_THREADS
10570 resultobj = SWIG_From_int(static_cast< int >(result));
10577 SWIGINTERN PyObject *_wrap_delete_HammingComputer64(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10578 PyObject *resultobj = 0;
10582 PyObject * obj0 = 0 ;
10584 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputer64",&obj0)) SWIG_fail;
10585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputer64, SWIG_POINTER_DISOWN | 0 );
10586 if (!SWIG_IsOK(res1)) {
10587 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputer64" "', argument " "1"" of type '" "faiss::HammingComputer64 *""'");
10591 resultobj = SWIG_Py_Void();
10598 SWIGINTERN PyObject *HammingComputer64_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10600 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
10601 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputer64, SWIG_NewClientData(obj));
10602 return SWIG_Py_Void();
10605 SWIGINTERN PyObject *_wrap_HammingComputerDefault_a_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10606 PyObject *resultobj = 0;
10608 uint8_t *arg2 = (uint8_t *) 0 ;
10613 PyObject * obj0 = 0 ;
10614 PyObject * obj1 = 0 ;
10616 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerDefault_a_set",&obj0,&obj1)) SWIG_fail;
10617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerDefault, 0 | 0 );
10618 if (!SWIG_IsOK(res1)) {
10619 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerDefault_a_set" "', argument " "1"" of type '" "faiss::HammingComputerDefault *""'");
10622 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, SWIG_POINTER_DISOWN | 0 );
10623 if (!SWIG_IsOK(res2)) {
10624 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerDefault_a_set" "', argument " "2"" of type '" "uint8_t const *""'");
10626 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
10627 if (arg1) (arg1)->a = (uint8_t
const *)arg2;
10628 resultobj = SWIG_Py_Void();
10635 SWIGINTERN PyObject *_wrap_HammingComputerDefault_a_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10636 PyObject *resultobj = 0;
10640 PyObject * obj0 = 0 ;
10641 uint8_t *result = 0 ;
10643 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputerDefault_a_get",&obj0)) SWIG_fail;
10644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerDefault, 0 | 0 );
10645 if (!SWIG_IsOK(res1)) {
10646 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerDefault_a_get" "', argument " "1"" of type '" "faiss::HammingComputerDefault *""'");
10649 result = (uint8_t *) ((arg1)->a);
10650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
10657 SWIGINTERN PyObject *_wrap_HammingComputerDefault_n_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10658 PyObject *resultobj = 0;
10665 PyObject * obj0 = 0 ;
10666 PyObject * obj1 = 0 ;
10668 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerDefault_n_set",&obj0,&obj1)) SWIG_fail;
10669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerDefault, 0 | 0 );
10670 if (!SWIG_IsOK(res1)) {
10671 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerDefault_n_set" "', argument " "1"" of type '" "faiss::HammingComputerDefault *""'");
10674 ecode2 = SWIG_AsVal_int(obj1, &val2);
10675 if (!SWIG_IsOK(ecode2)) {
10676 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputerDefault_n_set" "', argument " "2"" of type '" "int""'");
10678 arg2 =
static_cast< int >(val2);
10679 if (arg1) (arg1)->n = arg2;
10680 resultobj = SWIG_Py_Void();
10687 SWIGINTERN PyObject *_wrap_HammingComputerDefault_n_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10688 PyObject *resultobj = 0;
10692 PyObject * obj0 = 0 ;
10695 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputerDefault_n_get",&obj0)) SWIG_fail;
10696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerDefault, 0 | 0 );
10697 if (!SWIG_IsOK(res1)) {
10698 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerDefault_n_get" "', argument " "1"" of type '" "faiss::HammingComputerDefault *""'");
10701 result = (int) ((arg1)->n);
10702 resultobj = SWIG_From_int(static_cast< int >(result));
10709 SWIGINTERN PyObject *_wrap_new_HammingComputerDefault__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10710 PyObject *resultobj = 0;
10713 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputerDefault")) SWIG_fail;
10715 Py_BEGIN_ALLOW_THREADS
10719 PyEval_RestoreThread(_save);
10720 PyErr_SetString(PyExc_RuntimeError, e.
what());
10723 Py_END_ALLOW_THREADS
10725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputerDefault, SWIG_POINTER_NEW | 0 );
10732 SWIGINTERN PyObject *_wrap_new_HammingComputerDefault__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10733 PyObject *resultobj = 0;
10734 uint8_t *arg1 = (uint8_t *) 0 ;
10740 PyObject * obj0 = 0 ;
10741 PyObject * obj1 = 0 ;
10744 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputerDefault",&obj0,&obj1)) SWIG_fail;
10745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
10746 if (!SWIG_IsOK(res1)) {
10747 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputerDefault" "', argument " "1"" of type '" "uint8_t const *""'");
10749 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
10750 ecode2 = SWIG_AsVal_int(obj1, &val2);
10751 if (!SWIG_IsOK(ecode2)) {
10752 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputerDefault" "', argument " "2"" of type '" "int""'");
10754 arg2 =
static_cast< int >(val2);
10756 Py_BEGIN_ALLOW_THREADS
10760 PyEval_RestoreThread(_save);
10761 PyErr_SetString(PyExc_RuntimeError, e.
what());
10764 Py_END_ALLOW_THREADS
10766 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputerDefault, SWIG_POINTER_NEW | 0 );
10773 SWIGINTERN PyObject *_wrap_new_HammingComputerDefault(PyObject *
self, PyObject *args) {
10775 PyObject *argv[3] = {
10780 if (!PyTuple_Check(args)) SWIG_fail;
10781 argc = args ? PyObject_Length(args) : 0;
10782 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
10783 argv[ii] = PyTuple_GET_ITEM(args,ii);
10786 return _wrap_new_HammingComputerDefault__SWIG_0(
self, args);
10791 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
10792 _v = SWIG_CheckState(res);
10795 int res = SWIG_AsVal_int(argv[1], NULL);
10796 _v = SWIG_CheckState(res);
10799 return _wrap_new_HammingComputerDefault__SWIG_1(
self, args);
10805 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputerDefault'.\n"
10806 " Possible C/C++ prototypes are:\n"
10807 " faiss::HammingComputerDefault::HammingComputerDefault()\n"
10808 " faiss::HammingComputerDefault::HammingComputerDefault(uint8_t const *,int)\n");
10813 SWIGINTERN PyObject *_wrap_HammingComputerDefault_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10814 PyObject *resultobj = 0;
10816 uint8_t *arg2 = (uint8_t *) 0 ;
10824 PyObject * obj0 = 0 ;
10825 PyObject * obj1 = 0 ;
10826 PyObject * obj2 = 0 ;
10828 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputerDefault_set",&obj0,&obj1,&obj2)) SWIG_fail;
10829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerDefault, 0 | 0 );
10830 if (!SWIG_IsOK(res1)) {
10831 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerDefault_set" "', argument " "1"" of type '" "faiss::HammingComputerDefault *""'");
10834 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
10835 if (!SWIG_IsOK(res2)) {
10836 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerDefault_set" "', argument " "2"" of type '" "uint8_t const *""'");
10838 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
10839 ecode3 = SWIG_AsVal_int(obj2, &val3);
10840 if (!SWIG_IsOK(ecode3)) {
10841 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputerDefault_set" "', argument " "3"" of type '" "int""'");
10843 arg3 =
static_cast< int >(val3);
10845 Py_BEGIN_ALLOW_THREADS
10847 (arg1)->set((uint8_t
const *)arg2,arg3);
10849 PyEval_RestoreThread(_save);
10850 PyErr_SetString(PyExc_RuntimeError, e.
what());
10853 Py_END_ALLOW_THREADS
10855 resultobj = SWIG_Py_Void();
10862 SWIGINTERN PyObject *_wrap_HammingComputerDefault_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10863 PyObject *resultobj = 0;
10865 uint8_t *arg2 = (uint8_t *) 0 ;
10870 PyObject * obj0 = 0 ;
10871 PyObject * obj1 = 0 ;
10874 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerDefault_hamming",&obj0,&obj1)) SWIG_fail;
10875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerDefault, 0 | 0 );
10876 if (!SWIG_IsOK(res1)) {
10877 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerDefault_hamming" "', argument " "1"" of type '" "faiss::HammingComputerDefault const *""'");
10880 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
10881 if (!SWIG_IsOK(res2)) {
10882 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerDefault_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
10884 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
10886 Py_BEGIN_ALLOW_THREADS
10890 PyEval_RestoreThread(_save);
10891 PyErr_SetString(PyExc_RuntimeError, e.
what());
10894 Py_END_ALLOW_THREADS
10896 resultobj = SWIG_From_int(static_cast< int >(result));
10903 SWIGINTERN PyObject *_wrap_delete_HammingComputerDefault(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10904 PyObject *resultobj = 0;
10908 PyObject * obj0 = 0 ;
10910 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputerDefault",&obj0)) SWIG_fail;
10911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerDefault, SWIG_POINTER_DISOWN | 0 );
10912 if (!SWIG_IsOK(res1)) {
10913 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputerDefault" "', argument " "1"" of type '" "faiss::HammingComputerDefault *""'");
10917 resultobj = SWIG_Py_Void();
10924 SWIGINTERN PyObject *HammingComputerDefault_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10926 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
10927 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputerDefault, SWIG_NewClientData(obj));
10928 return SWIG_Py_Void();
10931 SWIGINTERN PyObject *_wrap_HammingComputerM8_a_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10932 PyObject *resultobj = 0;
10934 uint64_t *arg2 = (uint64_t *) 0 ;
10939 PyObject * obj0 = 0 ;
10940 PyObject * obj1 = 0 ;
10942 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerM8_a_set",&obj0,&obj1)) SWIG_fail;
10943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM8, 0 | 0 );
10944 if (!SWIG_IsOK(res1)) {
10945 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM8_a_set" "', argument " "1"" of type '" "faiss::HammingComputerM8 *""'");
10948 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_long, SWIG_POINTER_DISOWN | 0 );
10949 if (!SWIG_IsOK(res2)) {
10950 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerM8_a_set" "', argument " "2"" of type '" "uint64_t const *""'");
10952 arg2 =
reinterpret_cast< uint64_t *
>(argp2);
10953 if (arg1) (arg1)->a = (uint64_t
const *)arg2;
10954 resultobj = SWIG_Py_Void();
10961 SWIGINTERN PyObject *_wrap_HammingComputerM8_a_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10962 PyObject *resultobj = 0;
10966 PyObject * obj0 = 0 ;
10967 uint64_t *result = 0 ;
10969 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputerM8_a_get",&obj0)) SWIG_fail;
10970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM8, 0 | 0 );
10971 if (!SWIG_IsOK(res1)) {
10972 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM8_a_get" "', argument " "1"" of type '" "faiss::HammingComputerM8 *""'");
10975 result = (uint64_t *) ((arg1)->a);
10976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long, 0 | 0 );
10983 SWIGINTERN PyObject *_wrap_HammingComputerM8_n_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10984 PyObject *resultobj = 0;
10991 PyObject * obj0 = 0 ;
10992 PyObject * obj1 = 0 ;
10994 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerM8_n_set",&obj0,&obj1)) SWIG_fail;
10995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM8, 0 | 0 );
10996 if (!SWIG_IsOK(res1)) {
10997 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM8_n_set" "', argument " "1"" of type '" "faiss::HammingComputerM8 *""'");
11000 ecode2 = SWIG_AsVal_int(obj1, &val2);
11001 if (!SWIG_IsOK(ecode2)) {
11002 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputerM8_n_set" "', argument " "2"" of type '" "int""'");
11004 arg2 =
static_cast< int >(val2);
11005 if (arg1) (arg1)->n = arg2;
11006 resultobj = SWIG_Py_Void();
11013 SWIGINTERN PyObject *_wrap_HammingComputerM8_n_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11014 PyObject *resultobj = 0;
11018 PyObject * obj0 = 0 ;
11021 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputerM8_n_get",&obj0)) SWIG_fail;
11022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM8, 0 | 0 );
11023 if (!SWIG_IsOK(res1)) {
11024 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM8_n_get" "', argument " "1"" of type '" "faiss::HammingComputerM8 *""'");
11027 result = (int) ((arg1)->n);
11028 resultobj = SWIG_From_int(static_cast< int >(result));
11035 SWIGINTERN PyObject *_wrap_new_HammingComputerM8__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11036 PyObject *resultobj = 0;
11039 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputerM8")) SWIG_fail;
11041 Py_BEGIN_ALLOW_THREADS
11045 PyEval_RestoreThread(_save);
11046 PyErr_SetString(PyExc_RuntimeError, e.
what());
11049 Py_END_ALLOW_THREADS
11051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputerM8, SWIG_POINTER_NEW | 0 );
11058 SWIGINTERN PyObject *_wrap_new_HammingComputerM8__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11059 PyObject *resultobj = 0;
11060 uint8_t *arg1 = (uint8_t *) 0 ;
11066 PyObject * obj0 = 0 ;
11067 PyObject * obj1 = 0 ;
11070 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputerM8",&obj0,&obj1)) SWIG_fail;
11071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
11072 if (!SWIG_IsOK(res1)) {
11073 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputerM8" "', argument " "1"" of type '" "uint8_t const *""'");
11075 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
11076 ecode2 = SWIG_AsVal_int(obj1, &val2);
11077 if (!SWIG_IsOK(ecode2)) {
11078 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputerM8" "', argument " "2"" of type '" "int""'");
11080 arg2 =
static_cast< int >(val2);
11082 Py_BEGIN_ALLOW_THREADS
11086 PyEval_RestoreThread(_save);
11087 PyErr_SetString(PyExc_RuntimeError, e.
what());
11090 Py_END_ALLOW_THREADS
11092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputerM8, SWIG_POINTER_NEW | 0 );
11099 SWIGINTERN PyObject *_wrap_new_HammingComputerM8(PyObject *
self, PyObject *args) {
11101 PyObject *argv[3] = {
11106 if (!PyTuple_Check(args)) SWIG_fail;
11107 argc = args ? PyObject_Length(args) : 0;
11108 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
11109 argv[ii] = PyTuple_GET_ITEM(args,ii);
11112 return _wrap_new_HammingComputerM8__SWIG_0(
self, args);
11117 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
11118 _v = SWIG_CheckState(res);
11121 int res = SWIG_AsVal_int(argv[1], NULL);
11122 _v = SWIG_CheckState(res);
11125 return _wrap_new_HammingComputerM8__SWIG_1(
self, args);
11131 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputerM8'.\n"
11132 " Possible C/C++ prototypes are:\n"
11133 " faiss::HammingComputerM8::HammingComputerM8()\n"
11134 " faiss::HammingComputerM8::HammingComputerM8(uint8_t const *,int)\n");
11139 SWIGINTERN PyObject *_wrap_HammingComputerM8_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11140 PyObject *resultobj = 0;
11142 uint8_t *arg2 = (uint8_t *) 0 ;
11150 PyObject * obj0 = 0 ;
11151 PyObject * obj1 = 0 ;
11152 PyObject * obj2 = 0 ;
11154 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputerM8_set",&obj0,&obj1,&obj2)) SWIG_fail;
11155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM8, 0 | 0 );
11156 if (!SWIG_IsOK(res1)) {
11157 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM8_set" "', argument " "1"" of type '" "faiss::HammingComputerM8 *""'");
11160 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
11161 if (!SWIG_IsOK(res2)) {
11162 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerM8_set" "', argument " "2"" of type '" "uint8_t const *""'");
11164 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
11165 ecode3 = SWIG_AsVal_int(obj2, &val3);
11166 if (!SWIG_IsOK(ecode3)) {
11167 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputerM8_set" "', argument " "3"" of type '" "int""'");
11169 arg3 =
static_cast< int >(val3);
11171 Py_BEGIN_ALLOW_THREADS
11173 (arg1)->set((uint8_t
const *)arg2,arg3);
11175 PyEval_RestoreThread(_save);
11176 PyErr_SetString(PyExc_RuntimeError, e.
what());
11179 Py_END_ALLOW_THREADS
11181 resultobj = SWIG_Py_Void();
11188 SWIGINTERN PyObject *_wrap_HammingComputerM8_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11189 PyObject *resultobj = 0;
11191 uint8_t *arg2 = (uint8_t *) 0 ;
11196 PyObject * obj0 = 0 ;
11197 PyObject * obj1 = 0 ;
11200 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerM8_hamming",&obj0,&obj1)) SWIG_fail;
11201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM8, 0 | 0 );
11202 if (!SWIG_IsOK(res1)) {
11203 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM8_hamming" "', argument " "1"" of type '" "faiss::HammingComputerM8 const *""'");
11206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
11207 if (!SWIG_IsOK(res2)) {
11208 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerM8_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
11210 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
11212 Py_BEGIN_ALLOW_THREADS
11216 PyEval_RestoreThread(_save);
11217 PyErr_SetString(PyExc_RuntimeError, e.
what());
11220 Py_END_ALLOW_THREADS
11222 resultobj = SWIG_From_int(static_cast< int >(result));
11229 SWIGINTERN PyObject *_wrap_delete_HammingComputerM8(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11230 PyObject *resultobj = 0;
11234 PyObject * obj0 = 0 ;
11236 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputerM8",&obj0)) SWIG_fail;
11237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM8, SWIG_POINTER_DISOWN | 0 );
11238 if (!SWIG_IsOK(res1)) {
11239 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputerM8" "', argument " "1"" of type '" "faiss::HammingComputerM8 *""'");
11243 resultobj = SWIG_Py_Void();
11250 SWIGINTERN PyObject *HammingComputerM8_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11252 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
11253 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputerM8, SWIG_NewClientData(obj));
11254 return SWIG_Py_Void();
11257 SWIGINTERN PyObject *_wrap_HammingComputerM4_a_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11258 PyObject *resultobj = 0;
11260 uint32_t *arg2 = (uint32_t *) 0 ;
11265 PyObject * obj0 = 0 ;
11266 PyObject * obj1 = 0 ;
11268 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerM4_a_set",&obj0,&obj1)) SWIG_fail;
11269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM4, 0 | 0 );
11270 if (!SWIG_IsOK(res1)) {
11271 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM4_a_set" "', argument " "1"" of type '" "faiss::HammingComputerM4 *""'");
11274 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_uint32_t, SWIG_POINTER_DISOWN | 0 );
11275 if (!SWIG_IsOK(res2)) {
11276 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerM4_a_set" "', argument " "2"" of type '" "uint32_t const *""'");
11278 arg2 =
reinterpret_cast< uint32_t *
>(argp2);
11279 if (arg1) (arg1)->a = (uint32_t
const *)arg2;
11280 resultobj = SWIG_Py_Void();
11287 SWIGINTERN PyObject *_wrap_HammingComputerM4_a_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11288 PyObject *resultobj = 0;
11292 PyObject * obj0 = 0 ;
11293 uint32_t *result = 0 ;
11295 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputerM4_a_get",&obj0)) SWIG_fail;
11296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM4, 0 | 0 );
11297 if (!SWIG_IsOK(res1)) {
11298 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM4_a_get" "', argument " "1"" of type '" "faiss::HammingComputerM4 *""'");
11301 result = (uint32_t *) ((arg1)->a);
11302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_uint32_t, 0 | 0 );
11309 SWIGINTERN PyObject *_wrap_HammingComputerM4_n_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11310 PyObject *resultobj = 0;
11317 PyObject * obj0 = 0 ;
11318 PyObject * obj1 = 0 ;
11320 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerM4_n_set",&obj0,&obj1)) SWIG_fail;
11321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM4, 0 | 0 );
11322 if (!SWIG_IsOK(res1)) {
11323 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM4_n_set" "', argument " "1"" of type '" "faiss::HammingComputerM4 *""'");
11326 ecode2 = SWIG_AsVal_int(obj1, &val2);
11327 if (!SWIG_IsOK(ecode2)) {
11328 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HammingComputerM4_n_set" "', argument " "2"" of type '" "int""'");
11330 arg2 =
static_cast< int >(val2);
11331 if (arg1) (arg1)->n = arg2;
11332 resultobj = SWIG_Py_Void();
11339 SWIGINTERN PyObject *_wrap_HammingComputerM4_n_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11340 PyObject *resultobj = 0;
11344 PyObject * obj0 = 0 ;
11347 if (!PyArg_ParseTuple(args,(
char *)
"O:HammingComputerM4_n_get",&obj0)) SWIG_fail;
11348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM4, 0 | 0 );
11349 if (!SWIG_IsOK(res1)) {
11350 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM4_n_get" "', argument " "1"" of type '" "faiss::HammingComputerM4 *""'");
11353 result = (int) ((arg1)->n);
11354 resultobj = SWIG_From_int(static_cast< int >(result));
11361 SWIGINTERN PyObject *_wrap_new_HammingComputerM4__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11362 PyObject *resultobj = 0;
11365 if (!PyArg_ParseTuple(args,(
char *)
":new_HammingComputerM4")) SWIG_fail;
11367 Py_BEGIN_ALLOW_THREADS
11371 PyEval_RestoreThread(_save);
11372 PyErr_SetString(PyExc_RuntimeError, e.
what());
11375 Py_END_ALLOW_THREADS
11377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputerM4, SWIG_POINTER_NEW | 0 );
11384 SWIGINTERN PyObject *_wrap_new_HammingComputerM4__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11385 PyObject *resultobj = 0;
11386 uint8_t *arg1 = (uint8_t *) 0 ;
11392 PyObject * obj0 = 0 ;
11393 PyObject * obj1 = 0 ;
11396 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_HammingComputerM4",&obj0,&obj1)) SWIG_fail;
11397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
11398 if (!SWIG_IsOK(res1)) {
11399 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_HammingComputerM4" "', argument " "1"" of type '" "uint8_t const *""'");
11401 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
11402 ecode2 = SWIG_AsVal_int(obj1, &val2);
11403 if (!SWIG_IsOK(ecode2)) {
11404 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_HammingComputerM4" "', argument " "2"" of type '" "int""'");
11406 arg2 =
static_cast< int >(val2);
11408 Py_BEGIN_ALLOW_THREADS
11412 PyEval_RestoreThread(_save);
11413 PyErr_SetString(PyExc_RuntimeError, e.
what());
11416 Py_END_ALLOW_THREADS
11418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HammingComputerM4, SWIG_POINTER_NEW | 0 );
11425 SWIGINTERN PyObject *_wrap_new_HammingComputerM4(PyObject *
self, PyObject *args) {
11427 PyObject *argv[3] = {
11432 if (!PyTuple_Check(args)) SWIG_fail;
11433 argc = args ? PyObject_Length(args) : 0;
11434 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
11435 argv[ii] = PyTuple_GET_ITEM(args,ii);
11438 return _wrap_new_HammingComputerM4__SWIG_0(
self, args);
11443 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
11444 _v = SWIG_CheckState(res);
11447 int res = SWIG_AsVal_int(argv[1], NULL);
11448 _v = SWIG_CheckState(res);
11451 return _wrap_new_HammingComputerM4__SWIG_1(
self, args);
11457 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HammingComputerM4'.\n"
11458 " Possible C/C++ prototypes are:\n"
11459 " faiss::HammingComputerM4::HammingComputerM4()\n"
11460 " faiss::HammingComputerM4::HammingComputerM4(uint8_t const *,int)\n");
11465 SWIGINTERN PyObject *_wrap_HammingComputerM4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11466 PyObject *resultobj = 0;
11468 uint8_t *arg2 = (uint8_t *) 0 ;
11476 PyObject * obj0 = 0 ;
11477 PyObject * obj1 = 0 ;
11478 PyObject * obj2 = 0 ;
11480 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HammingComputerM4_set",&obj0,&obj1,&obj2)) SWIG_fail;
11481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM4, 0 | 0 );
11482 if (!SWIG_IsOK(res1)) {
11483 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM4_set" "', argument " "1"" of type '" "faiss::HammingComputerM4 *""'");
11486 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
11487 if (!SWIG_IsOK(res2)) {
11488 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerM4_set" "', argument " "2"" of type '" "uint8_t const *""'");
11490 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
11491 ecode3 = SWIG_AsVal_int(obj2, &val3);
11492 if (!SWIG_IsOK(ecode3)) {
11493 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HammingComputerM4_set" "', argument " "3"" of type '" "int""'");
11495 arg3 =
static_cast< int >(val3);
11497 Py_BEGIN_ALLOW_THREADS
11499 (arg1)->set((uint8_t
const *)arg2,arg3);
11501 PyEval_RestoreThread(_save);
11502 PyErr_SetString(PyExc_RuntimeError, e.
what());
11505 Py_END_ALLOW_THREADS
11507 resultobj = SWIG_Py_Void();
11514 SWIGINTERN PyObject *_wrap_HammingComputerM4_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11515 PyObject *resultobj = 0;
11517 uint8_t *arg2 = (uint8_t *) 0 ;
11522 PyObject * obj0 = 0 ;
11523 PyObject * obj1 = 0 ;
11526 if (!PyArg_ParseTuple(args,(
char *)
"OO:HammingComputerM4_hamming",&obj0,&obj1)) SWIG_fail;
11527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM4, 0 | 0 );
11528 if (!SWIG_IsOK(res1)) {
11529 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HammingComputerM4_hamming" "', argument " "1"" of type '" "faiss::HammingComputerM4 const *""'");
11532 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
11533 if (!SWIG_IsOK(res2)) {
11534 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HammingComputerM4_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
11536 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
11538 Py_BEGIN_ALLOW_THREADS
11542 PyEval_RestoreThread(_save);
11543 PyErr_SetString(PyExc_RuntimeError, e.
what());
11546 Py_END_ALLOW_THREADS
11548 resultobj = SWIG_From_int(static_cast< int >(result));
11555 SWIGINTERN PyObject *_wrap_delete_HammingComputerM4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11556 PyObject *resultobj = 0;
11560 PyObject * obj0 = 0 ;
11562 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HammingComputerM4",&obj0)) SWIG_fail;
11563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HammingComputerM4, SWIG_POINTER_DISOWN | 0 );
11564 if (!SWIG_IsOK(res1)) {
11565 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HammingComputerM4" "', argument " "1"" of type '" "faiss::HammingComputerM4 *""'");
11569 resultobj = SWIG_Py_Void();
11576 SWIGINTERN PyObject *HammingComputerM4_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11578 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
11579 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HammingComputerM4, SWIG_NewClientData(obj));
11580 return SWIG_Py_Void();
11583 SWIGINTERN PyObject *_wrap_generalized_hamming_64(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11584 PyObject *resultobj = 0;
11586 unsigned long val1 ;
11588 PyObject * obj0 = 0 ;
11591 if (!PyArg_ParseTuple(args,(
char *)
"O:generalized_hamming_64",&obj0)) SWIG_fail;
11592 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
11593 if (!SWIG_IsOK(ecode1)) {
11594 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "generalized_hamming_64" "', argument " "1"" of type '" "uint64_t""'");
11596 arg1 =
static_cast< uint64_t
>(val1);
11598 Py_BEGIN_ALLOW_THREADS
11600 result = (int)faiss::generalized_hamming_64(arg1);
11602 PyEval_RestoreThread(_save);
11603 PyErr_SetString(PyExc_RuntimeError, e.
what());
11606 Py_END_ALLOW_THREADS
11608 resultobj = SWIG_From_int(static_cast< int >(result));
11615 SWIGINTERN PyObject *_wrap_GenHammingComputer8_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11616 PyObject *resultobj = 0;
11621 unsigned long val2 ;
11623 PyObject * obj0 = 0 ;
11624 PyObject * obj1 = 0 ;
11626 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer8_a0_set",&obj0,&obj1)) SWIG_fail;
11627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer8, 0 | 0 );
11628 if (!SWIG_IsOK(res1)) {
11629 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer8_a0_set" "', argument " "1"" of type '" "faiss::GenHammingComputer8 *""'");
11632 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
11633 if (!SWIG_IsOK(ecode2)) {
11634 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputer8_a0_set" "', argument " "2"" of type '" "uint64_t""'");
11636 arg2 =
static_cast< uint64_t
>(val2);
11637 if (arg1) (arg1)->a0 = arg2;
11638 resultobj = SWIG_Py_Void();
11645 SWIGINTERN PyObject *_wrap_GenHammingComputer8_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11646 PyObject *resultobj = 0;
11650 PyObject * obj0 = 0 ;
11653 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputer8_a0_get",&obj0)) SWIG_fail;
11654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer8, 0 | 0 );
11655 if (!SWIG_IsOK(res1)) {
11656 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer8_a0_get" "', argument " "1"" of type '" "faiss::GenHammingComputer8 *""'");
11659 result = (uint64_t) ((arg1)->a0);
11660 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
11667 SWIGINTERN PyObject *_wrap_new_GenHammingComputer8(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11668 PyObject *resultobj = 0;
11669 uint8_t *arg1 = (uint8_t *) 0 ;
11675 PyObject * obj0 = 0 ;
11676 PyObject * obj1 = 0 ;
11679 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GenHammingComputer8",&obj0,&obj1)) SWIG_fail;
11680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
11681 if (!SWIG_IsOK(res1)) {
11682 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GenHammingComputer8" "', argument " "1"" of type '" "uint8_t const *""'");
11684 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
11685 ecode2 = SWIG_AsVal_int(obj1, &val2);
11686 if (!SWIG_IsOK(ecode2)) {
11687 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GenHammingComputer8" "', argument " "2"" of type '" "int""'");
11689 arg2 =
static_cast< int >(val2);
11691 Py_BEGIN_ALLOW_THREADS
11695 PyEval_RestoreThread(_save);
11696 PyErr_SetString(PyExc_RuntimeError, e.
what());
11699 Py_END_ALLOW_THREADS
11701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__GenHammingComputer8, SWIG_POINTER_NEW | 0 );
11708 SWIGINTERN PyObject *_wrap_GenHammingComputer8_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11709 PyObject *resultobj = 0;
11711 uint8_t *arg2 = (uint8_t *) 0 ;
11716 PyObject * obj0 = 0 ;
11717 PyObject * obj1 = 0 ;
11720 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer8_hamming",&obj0,&obj1)) SWIG_fail;
11721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer8, 0 | 0 );
11722 if (!SWIG_IsOK(res1)) {
11723 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer8_hamming" "', argument " "1"" of type '" "faiss::GenHammingComputer8 const *""'");
11726 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
11727 if (!SWIG_IsOK(res2)) {
11728 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GenHammingComputer8_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
11730 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
11732 Py_BEGIN_ALLOW_THREADS
11736 PyEval_RestoreThread(_save);
11737 PyErr_SetString(PyExc_RuntimeError, e.
what());
11740 Py_END_ALLOW_THREADS
11742 resultobj = SWIG_From_int(static_cast< int >(result));
11749 SWIGINTERN PyObject *_wrap_delete_GenHammingComputer8(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11750 PyObject *resultobj = 0;
11754 PyObject * obj0 = 0 ;
11756 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GenHammingComputer8",&obj0)) SWIG_fail;
11757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer8, SWIG_POINTER_DISOWN | 0 );
11758 if (!SWIG_IsOK(res1)) {
11759 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GenHammingComputer8" "', argument " "1"" of type '" "faiss::GenHammingComputer8 *""'");
11763 resultobj = SWIG_Py_Void();
11770 SWIGINTERN PyObject *GenHammingComputer8_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11772 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
11773 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__GenHammingComputer8, SWIG_NewClientData(obj));
11774 return SWIG_Py_Void();
11777 SWIGINTERN PyObject *_wrap_GenHammingComputer16_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11778 PyObject *resultobj = 0;
11783 unsigned long val2 ;
11785 PyObject * obj0 = 0 ;
11786 PyObject * obj1 = 0 ;
11788 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer16_a0_set",&obj0,&obj1)) SWIG_fail;
11789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer16, 0 | 0 );
11790 if (!SWIG_IsOK(res1)) {
11791 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer16_a0_set" "', argument " "1"" of type '" "faiss::GenHammingComputer16 *""'");
11794 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
11795 if (!SWIG_IsOK(ecode2)) {
11796 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputer16_a0_set" "', argument " "2"" of type '" "uint64_t""'");
11798 arg2 =
static_cast< uint64_t
>(val2);
11799 if (arg1) (arg1)->a0 = arg2;
11800 resultobj = SWIG_Py_Void();
11807 SWIGINTERN PyObject *_wrap_GenHammingComputer16_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11808 PyObject *resultobj = 0;
11812 PyObject * obj0 = 0 ;
11815 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputer16_a0_get",&obj0)) SWIG_fail;
11816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer16, 0 | 0 );
11817 if (!SWIG_IsOK(res1)) {
11818 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer16_a0_get" "', argument " "1"" of type '" "faiss::GenHammingComputer16 *""'");
11821 result = (uint64_t) ((arg1)->a0);
11822 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
11829 SWIGINTERN PyObject *_wrap_GenHammingComputer16_a1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11830 PyObject *resultobj = 0;
11835 unsigned long val2 ;
11837 PyObject * obj0 = 0 ;
11838 PyObject * obj1 = 0 ;
11840 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer16_a1_set",&obj0,&obj1)) SWIG_fail;
11841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer16, 0 | 0 );
11842 if (!SWIG_IsOK(res1)) {
11843 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer16_a1_set" "', argument " "1"" of type '" "faiss::GenHammingComputer16 *""'");
11846 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
11847 if (!SWIG_IsOK(ecode2)) {
11848 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputer16_a1_set" "', argument " "2"" of type '" "uint64_t""'");
11850 arg2 =
static_cast< uint64_t
>(val2);
11851 if (arg1) (arg1)->a1 = arg2;
11852 resultobj = SWIG_Py_Void();
11859 SWIGINTERN PyObject *_wrap_GenHammingComputer16_a1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11860 PyObject *resultobj = 0;
11864 PyObject * obj0 = 0 ;
11867 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputer16_a1_get",&obj0)) SWIG_fail;
11868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer16, 0 | 0 );
11869 if (!SWIG_IsOK(res1)) {
11870 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer16_a1_get" "', argument " "1"" of type '" "faiss::GenHammingComputer16 *""'");
11873 result = (uint64_t) ((arg1)->a1);
11874 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
11881 SWIGINTERN PyObject *_wrap_new_GenHammingComputer16(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11882 PyObject *resultobj = 0;
11883 uint8_t *arg1 = (uint8_t *) 0 ;
11889 PyObject * obj0 = 0 ;
11890 PyObject * obj1 = 0 ;
11893 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GenHammingComputer16",&obj0,&obj1)) SWIG_fail;
11894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
11895 if (!SWIG_IsOK(res1)) {
11896 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GenHammingComputer16" "', argument " "1"" of type '" "uint8_t const *""'");
11898 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
11899 ecode2 = SWIG_AsVal_int(obj1, &val2);
11900 if (!SWIG_IsOK(ecode2)) {
11901 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GenHammingComputer16" "', argument " "2"" of type '" "int""'");
11903 arg2 =
static_cast< int >(val2);
11905 Py_BEGIN_ALLOW_THREADS
11909 PyEval_RestoreThread(_save);
11910 PyErr_SetString(PyExc_RuntimeError, e.
what());
11913 Py_END_ALLOW_THREADS
11915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__GenHammingComputer16, SWIG_POINTER_NEW | 0 );
11922 SWIGINTERN PyObject *_wrap_GenHammingComputer16_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11923 PyObject *resultobj = 0;
11925 uint8_t *arg2 = (uint8_t *) 0 ;
11930 PyObject * obj0 = 0 ;
11931 PyObject * obj1 = 0 ;
11934 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer16_hamming",&obj0,&obj1)) SWIG_fail;
11935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer16, 0 | 0 );
11936 if (!SWIG_IsOK(res1)) {
11937 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer16_hamming" "', argument " "1"" of type '" "faiss::GenHammingComputer16 const *""'");
11940 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
11941 if (!SWIG_IsOK(res2)) {
11942 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GenHammingComputer16_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
11944 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
11946 Py_BEGIN_ALLOW_THREADS
11950 PyEval_RestoreThread(_save);
11951 PyErr_SetString(PyExc_RuntimeError, e.
what());
11954 Py_END_ALLOW_THREADS
11956 resultobj = SWIG_From_int(static_cast< int >(result));
11963 SWIGINTERN PyObject *_wrap_delete_GenHammingComputer16(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11964 PyObject *resultobj = 0;
11968 PyObject * obj0 = 0 ;
11970 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GenHammingComputer16",&obj0)) SWIG_fail;
11971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer16, SWIG_POINTER_DISOWN | 0 );
11972 if (!SWIG_IsOK(res1)) {
11973 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GenHammingComputer16" "', argument " "1"" of type '" "faiss::GenHammingComputer16 *""'");
11977 resultobj = SWIG_Py_Void();
11984 SWIGINTERN PyObject *GenHammingComputer16_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11986 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
11987 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__GenHammingComputer16, SWIG_NewClientData(obj));
11988 return SWIG_Py_Void();
11991 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11992 PyObject *resultobj = 0;
11997 unsigned long val2 ;
11999 PyObject * obj0 = 0 ;
12000 PyObject * obj1 = 0 ;
12002 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer32_a0_set",&obj0,&obj1)) SWIG_fail;
12003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
12004 if (!SWIG_IsOK(res1)) {
12005 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a0_set" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
12008 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12009 if (!SWIG_IsOK(ecode2)) {
12010 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputer32_a0_set" "', argument " "2"" of type '" "uint64_t""'");
12012 arg2 =
static_cast< uint64_t
>(val2);
12013 if (arg1) (arg1)->a0 = arg2;
12014 resultobj = SWIG_Py_Void();
12021 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12022 PyObject *resultobj = 0;
12026 PyObject * obj0 = 0 ;
12029 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputer32_a0_get",&obj0)) SWIG_fail;
12030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
12031 if (!SWIG_IsOK(res1)) {
12032 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a0_get" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
12035 result = (uint64_t) ((arg1)->a0);
12036 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
12043 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12044 PyObject *resultobj = 0;
12049 unsigned long val2 ;
12051 PyObject * obj0 = 0 ;
12052 PyObject * obj1 = 0 ;
12054 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer32_a1_set",&obj0,&obj1)) SWIG_fail;
12055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
12056 if (!SWIG_IsOK(res1)) {
12057 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a1_set" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
12060 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12061 if (!SWIG_IsOK(ecode2)) {
12062 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputer32_a1_set" "', argument " "2"" of type '" "uint64_t""'");
12064 arg2 =
static_cast< uint64_t
>(val2);
12065 if (arg1) (arg1)->a1 = arg2;
12066 resultobj = SWIG_Py_Void();
12073 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12074 PyObject *resultobj = 0;
12078 PyObject * obj0 = 0 ;
12081 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputer32_a1_get",&obj0)) SWIG_fail;
12082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
12083 if (!SWIG_IsOK(res1)) {
12084 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a1_get" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
12087 result = (uint64_t) ((arg1)->a1);
12088 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
12095 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a2_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12096 PyObject *resultobj = 0;
12101 unsigned long val2 ;
12103 PyObject * obj0 = 0 ;
12104 PyObject * obj1 = 0 ;
12106 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer32_a2_set",&obj0,&obj1)) SWIG_fail;
12107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
12108 if (!SWIG_IsOK(res1)) {
12109 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a2_set" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
12112 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12113 if (!SWIG_IsOK(ecode2)) {
12114 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputer32_a2_set" "', argument " "2"" of type '" "uint64_t""'");
12116 arg2 =
static_cast< uint64_t
>(val2);
12117 if (arg1) (arg1)->a2 = arg2;
12118 resultobj = SWIG_Py_Void();
12125 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a2_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12126 PyObject *resultobj = 0;
12130 PyObject * obj0 = 0 ;
12133 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputer32_a2_get",&obj0)) SWIG_fail;
12134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
12135 if (!SWIG_IsOK(res1)) {
12136 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a2_get" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
12139 result = (uint64_t) ((arg1)->a2);
12140 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
12147 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a3_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12148 PyObject *resultobj = 0;
12153 unsigned long val2 ;
12155 PyObject * obj0 = 0 ;
12156 PyObject * obj1 = 0 ;
12158 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer32_a3_set",&obj0,&obj1)) SWIG_fail;
12159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
12160 if (!SWIG_IsOK(res1)) {
12161 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a3_set" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
12164 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12165 if (!SWIG_IsOK(ecode2)) {
12166 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputer32_a3_set" "', argument " "2"" of type '" "uint64_t""'");
12168 arg2 =
static_cast< uint64_t
>(val2);
12169 if (arg1) (arg1)->a3 = arg2;
12170 resultobj = SWIG_Py_Void();
12177 SWIGINTERN PyObject *_wrap_GenHammingComputer32_a3_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12178 PyObject *resultobj = 0;
12182 PyObject * obj0 = 0 ;
12185 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputer32_a3_get",&obj0)) SWIG_fail;
12186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
12187 if (!SWIG_IsOK(res1)) {
12188 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_a3_get" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
12191 result = (uint64_t) ((arg1)->a3);
12192 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
12199 SWIGINTERN PyObject *_wrap_new_GenHammingComputer32(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12200 PyObject *resultobj = 0;
12201 uint8_t *arg1 = (uint8_t *) 0 ;
12207 PyObject * obj0 = 0 ;
12208 PyObject * obj1 = 0 ;
12211 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GenHammingComputer32",&obj0,&obj1)) SWIG_fail;
12212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
12213 if (!SWIG_IsOK(res1)) {
12214 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GenHammingComputer32" "', argument " "1"" of type '" "uint8_t const *""'");
12216 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
12217 ecode2 = SWIG_AsVal_int(obj1, &val2);
12218 if (!SWIG_IsOK(ecode2)) {
12219 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GenHammingComputer32" "', argument " "2"" of type '" "int""'");
12221 arg2 =
static_cast< int >(val2);
12223 Py_BEGIN_ALLOW_THREADS
12227 PyEval_RestoreThread(_save);
12228 PyErr_SetString(PyExc_RuntimeError, e.
what());
12231 Py_END_ALLOW_THREADS
12233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__GenHammingComputer32, SWIG_POINTER_NEW | 0 );
12240 SWIGINTERN PyObject *_wrap_GenHammingComputer32_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12241 PyObject *resultobj = 0;
12243 uint8_t *arg2 = (uint8_t *) 0 ;
12248 PyObject * obj0 = 0 ;
12249 PyObject * obj1 = 0 ;
12252 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputer32_hamming",&obj0,&obj1)) SWIG_fail;
12253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, 0 | 0 );
12254 if (!SWIG_IsOK(res1)) {
12255 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputer32_hamming" "', argument " "1"" of type '" "faiss::GenHammingComputer32 const *""'");
12258 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
12259 if (!SWIG_IsOK(res2)) {
12260 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GenHammingComputer32_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
12262 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
12264 Py_BEGIN_ALLOW_THREADS
12268 PyEval_RestoreThread(_save);
12269 PyErr_SetString(PyExc_RuntimeError, e.
what());
12272 Py_END_ALLOW_THREADS
12274 resultobj = SWIG_From_int(static_cast< int >(result));
12281 SWIGINTERN PyObject *_wrap_delete_GenHammingComputer32(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12282 PyObject *resultobj = 0;
12286 PyObject * obj0 = 0 ;
12288 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GenHammingComputer32",&obj0)) SWIG_fail;
12289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputer32, SWIG_POINTER_DISOWN | 0 );
12290 if (!SWIG_IsOK(res1)) {
12291 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GenHammingComputer32" "', argument " "1"" of type '" "faiss::GenHammingComputer32 *""'");
12295 resultobj = SWIG_Py_Void();
12302 SWIGINTERN PyObject *GenHammingComputer32_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12304 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
12305 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__GenHammingComputer32, SWIG_NewClientData(obj));
12306 return SWIG_Py_Void();
12309 SWIGINTERN PyObject *_wrap_GenHammingComputerM8_a_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12310 PyObject *resultobj = 0;
12312 uint64_t *arg2 = (uint64_t *) 0 ;
12317 PyObject * obj0 = 0 ;
12318 PyObject * obj1 = 0 ;
12320 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputerM8_a_set",&obj0,&obj1)) SWIG_fail;
12321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputerM8, 0 | 0 );
12322 if (!SWIG_IsOK(res1)) {
12323 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputerM8_a_set" "', argument " "1"" of type '" "faiss::GenHammingComputerM8 *""'");
12326 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_long, SWIG_POINTER_DISOWN | 0 );
12327 if (!SWIG_IsOK(res2)) {
12328 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GenHammingComputerM8_a_set" "', argument " "2"" of type '" "uint64_t const *""'");
12330 arg2 =
reinterpret_cast< uint64_t *
>(argp2);
12331 if (arg1) (arg1)->a = (uint64_t
const *)arg2;
12332 resultobj = SWIG_Py_Void();
12339 SWIGINTERN PyObject *_wrap_GenHammingComputerM8_a_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12340 PyObject *resultobj = 0;
12344 PyObject * obj0 = 0 ;
12345 uint64_t *result = 0 ;
12347 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputerM8_a_get",&obj0)) SWIG_fail;
12348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputerM8, 0 | 0 );
12349 if (!SWIG_IsOK(res1)) {
12350 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputerM8_a_get" "', argument " "1"" of type '" "faiss::GenHammingComputerM8 *""'");
12353 result = (uint64_t *) ((arg1)->a);
12354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long, 0 | 0 );
12361 SWIGINTERN PyObject *_wrap_GenHammingComputerM8_n_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12362 PyObject *resultobj = 0;
12369 PyObject * obj0 = 0 ;
12370 PyObject * obj1 = 0 ;
12372 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputerM8_n_set",&obj0,&obj1)) SWIG_fail;
12373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputerM8, 0 | 0 );
12374 if (!SWIG_IsOK(res1)) {
12375 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputerM8_n_set" "', argument " "1"" of type '" "faiss::GenHammingComputerM8 *""'");
12378 ecode2 = SWIG_AsVal_int(obj1, &val2);
12379 if (!SWIG_IsOK(ecode2)) {
12380 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GenHammingComputerM8_n_set" "', argument " "2"" of type '" "int""'");
12382 arg2 =
static_cast< int >(val2);
12383 if (arg1) (arg1)->n = arg2;
12384 resultobj = SWIG_Py_Void();
12391 SWIGINTERN PyObject *_wrap_GenHammingComputerM8_n_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12392 PyObject *resultobj = 0;
12396 PyObject * obj0 = 0 ;
12399 if (!PyArg_ParseTuple(args,(
char *)
"O:GenHammingComputerM8_n_get",&obj0)) SWIG_fail;
12400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputerM8, 0 | 0 );
12401 if (!SWIG_IsOK(res1)) {
12402 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputerM8_n_get" "', argument " "1"" of type '" "faiss::GenHammingComputerM8 *""'");
12405 result = (int) ((arg1)->n);
12406 resultobj = SWIG_From_int(static_cast< int >(result));
12413 SWIGINTERN PyObject *_wrap_new_GenHammingComputerM8(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12414 PyObject *resultobj = 0;
12415 uint8_t *arg1 = (uint8_t *) 0 ;
12421 PyObject * obj0 = 0 ;
12422 PyObject * obj1 = 0 ;
12425 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GenHammingComputerM8",&obj0,&obj1)) SWIG_fail;
12426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
12427 if (!SWIG_IsOK(res1)) {
12428 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GenHammingComputerM8" "', argument " "1"" of type '" "uint8_t const *""'");
12430 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
12431 ecode2 = SWIG_AsVal_int(obj1, &val2);
12432 if (!SWIG_IsOK(ecode2)) {
12433 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GenHammingComputerM8" "', argument " "2"" of type '" "int""'");
12435 arg2 =
static_cast< int >(val2);
12437 Py_BEGIN_ALLOW_THREADS
12441 PyEval_RestoreThread(_save);
12442 PyErr_SetString(PyExc_RuntimeError, e.
what());
12445 Py_END_ALLOW_THREADS
12447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__GenHammingComputerM8, SWIG_POINTER_NEW | 0 );
12454 SWIGINTERN PyObject *_wrap_GenHammingComputerM8_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12455 PyObject *resultobj = 0;
12457 uint8_t *arg2 = (uint8_t *) 0 ;
12462 PyObject * obj0 = 0 ;
12463 PyObject * obj1 = 0 ;
12466 if (!PyArg_ParseTuple(args,(
char *)
"OO:GenHammingComputerM8_hamming",&obj0,&obj1)) SWIG_fail;
12467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputerM8, 0 | 0 );
12468 if (!SWIG_IsOK(res1)) {
12469 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GenHammingComputerM8_hamming" "', argument " "1"" of type '" "faiss::GenHammingComputerM8 const *""'");
12472 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
12473 if (!SWIG_IsOK(res2)) {
12474 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GenHammingComputerM8_hamming" "', argument " "2"" of type '" "uint8_t const *""'");
12476 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
12478 Py_BEGIN_ALLOW_THREADS
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_delete_GenHammingComputerM8(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12496 PyObject *resultobj = 0;
12500 PyObject * obj0 = 0 ;
12502 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GenHammingComputerM8",&obj0)) SWIG_fail;
12503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__GenHammingComputerM8, SWIG_POINTER_DISOWN | 0 );
12504 if (!SWIG_IsOK(res1)) {
12505 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GenHammingComputerM8" "', argument " "1"" of type '" "faiss::GenHammingComputerM8 *""'");
12509 resultobj = SWIG_Py_Void();
12516 SWIGINTERN PyObject *GenHammingComputerM8_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12518 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
12519 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__GenHammingComputerM8, SWIG_NewClientData(obj));
12520 return SWIG_Py_Void();
12523 SWIGINTERN PyObject *_wrap_generalized_hammings_knn_hc__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12524 PyObject *resultobj = 0;
12526 uint8_t *arg2 = (uint8_t *) 0 ;
12527 uint8_t *arg3 = (uint8_t *) 0 ;
12543 PyObject * obj0 = 0 ;
12544 PyObject * obj1 = 0 ;
12545 PyObject * obj2 = 0 ;
12546 PyObject * obj3 = 0 ;
12547 PyObject * obj4 = 0 ;
12548 PyObject * obj5 = 0 ;
12550 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:generalized_hammings_knn_hc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
12551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
12552 if (!SWIG_IsOK(res1)) {
12553 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "generalized_hammings_knn_hc" "', argument " "1"" of type '" "faiss::int_maxheap_array_t *""'");
12556 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
12557 if (!SWIG_IsOK(res2)) {
12558 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "generalized_hammings_knn_hc" "', argument " "2"" of type '" "uint8_t const *""'");
12560 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
12561 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
12562 if (!SWIG_IsOK(res3)) {
12563 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "generalized_hammings_knn_hc" "', argument " "3"" of type '" "uint8_t const *""'");
12565 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
12566 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
12567 if (!SWIG_IsOK(ecode4)) {
12568 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "generalized_hammings_knn_hc" "', argument " "4"" of type '" "size_t""'");
12570 arg4 =
static_cast< size_t >(val4);
12571 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
12572 if (!SWIG_IsOK(ecode5)) {
12573 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "generalized_hammings_knn_hc" "', argument " "5"" of type '" "size_t""'");
12575 arg5 =
static_cast< size_t >(val5);
12576 ecode6 = SWIG_AsVal_int(obj5, &val6);
12577 if (!SWIG_IsOK(ecode6)) {
12578 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "generalized_hammings_knn_hc" "', argument " "6"" of type '" "int""'");
12580 arg6 =
static_cast< int >(val6);
12582 Py_BEGIN_ALLOW_THREADS
12586 PyEval_RestoreThread(_save);
12587 PyErr_SetString(PyExc_RuntimeError, e.
what());
12590 Py_END_ALLOW_THREADS
12592 resultobj = SWIG_Py_Void();
12599 SWIGINTERN PyObject *_wrap_generalized_hammings_knn_hc__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12600 PyObject *resultobj = 0;
12602 uint8_t *arg2 = (uint8_t *) 0 ;
12603 uint8_t *arg3 = (uint8_t *) 0 ;
12616 PyObject * obj0 = 0 ;
12617 PyObject * obj1 = 0 ;
12618 PyObject * obj2 = 0 ;
12619 PyObject * obj3 = 0 ;
12620 PyObject * obj4 = 0 ;
12622 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:generalized_hammings_knn_hc",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
12624 if (!SWIG_IsOK(res1)) {
12625 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "generalized_hammings_knn_hc" "', argument " "1"" of type '" "faiss::int_maxheap_array_t *""'");
12628 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
12629 if (!SWIG_IsOK(res2)) {
12630 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "generalized_hammings_knn_hc" "', argument " "2"" of type '" "uint8_t const *""'");
12632 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
12633 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
12634 if (!SWIG_IsOK(res3)) {
12635 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "generalized_hammings_knn_hc" "', argument " "3"" of type '" "uint8_t const *""'");
12637 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
12638 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
12639 if (!SWIG_IsOK(ecode4)) {
12640 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "generalized_hammings_knn_hc" "', argument " "4"" of type '" "size_t""'");
12642 arg4 =
static_cast< size_t >(val4);
12643 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
12644 if (!SWIG_IsOK(ecode5)) {
12645 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "generalized_hammings_knn_hc" "', argument " "5"" of type '" "size_t""'");
12647 arg5 =
static_cast< size_t >(val5);
12649 Py_BEGIN_ALLOW_THREADS
12653 PyEval_RestoreThread(_save);
12654 PyErr_SetString(PyExc_RuntimeError, e.
what());
12657 Py_END_ALLOW_THREADS
12659 resultobj = SWIG_Py_Void();
12666 SWIGINTERN PyObject *_wrap_generalized_hammings_knn_hc(PyObject *
self, PyObject *args) {
12668 PyObject *argv[7] = {
12673 if (!PyTuple_Check(args)) SWIG_fail;
12674 argc = args ? PyObject_Length(args) : 0;
12675 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
12676 argv[ii] = PyTuple_GET_ITEM(args,ii);
12681 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
12682 _v = SWIG_CheckState(res);
12685 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
12686 _v = SWIG_CheckState(res);
12689 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
12690 _v = SWIG_CheckState(res);
12693 int res = SWIG_AsVal_size_t(argv[3], NULL);
12694 _v = SWIG_CheckState(res);
12698 int res = SWIG_AsVal_size_t(argv[4], NULL);
12699 _v = SWIG_CheckState(res);
12702 return _wrap_generalized_hammings_knn_hc__SWIG_1(
self, args);
12712 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
12713 _v = SWIG_CheckState(res);
12716 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
12717 _v = SWIG_CheckState(res);
12720 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
12721 _v = SWIG_CheckState(res);
12724 int res = SWIG_AsVal_size_t(argv[3], NULL);
12725 _v = SWIG_CheckState(res);
12729 int res = SWIG_AsVal_size_t(argv[4], NULL);
12730 _v = SWIG_CheckState(res);
12734 int res = SWIG_AsVal_int(argv[5], NULL);
12735 _v = SWIG_CheckState(res);
12738 return _wrap_generalized_hammings_knn_hc__SWIG_0(
self, args);
12748 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'generalized_hammings_knn_hc'.\n"
12749 " Possible C/C++ prototypes are:\n"
12750 " faiss::generalized_hammings_knn_hc(faiss::int_maxheap_array_t *,uint8_t const *,uint8_t const *,size_t,size_t,int)\n"
12751 " faiss::generalized_hammings_knn_hc(faiss::int_maxheap_array_t *,uint8_t const *,uint8_t const *,size_t,size_t)\n");
12756 SWIGINTERN PyObject *_wrap_get_num_gpus(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12757 PyObject *resultobj = 0;
12760 if (!PyArg_ParseTuple(args,(
char *)
":get_num_gpus")) SWIG_fail;
12762 Py_BEGIN_ALLOW_THREADS
12764 result = (int)get_num_gpus();
12766 PyEval_RestoreThread(_save);
12767 PyErr_SetString(PyExc_RuntimeError, e.
what());
12770 Py_END_ALLOW_THREADS
12772 resultobj = SWIG_From_int(static_cast< int >(result));
12779 SWIGINTERN PyObject *_wrap_delete_GpuResources(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12780 PyObject *resultobj = 0;
12784 PyObject * obj0 = 0 ;
12786 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuResources",&obj0)) SWIG_fail;
12787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, SWIG_POINTER_DISOWN | 0 );
12788 if (!SWIG_IsOK(res1)) {
12789 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuResources" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
12793 Py_BEGIN_ALLOW_THREADS
12797 PyEval_RestoreThread(_save);
12798 PyErr_SetString(PyExc_RuntimeError, e.
what());
12801 Py_END_ALLOW_THREADS
12803 resultobj = SWIG_Py_Void();
12810 SWIGINTERN PyObject *_wrap_GpuResources_initializeForDevice(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12811 PyObject *resultobj = 0;
12818 PyObject * obj0 = 0 ;
12819 PyObject * obj1 = 0 ;
12821 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuResources_initializeForDevice",&obj0,&obj1)) SWIG_fail;
12822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
12823 if (!SWIG_IsOK(res1)) {
12824 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResources_initializeForDevice" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
12827 ecode2 = SWIG_AsVal_int(obj1, &val2);
12828 if (!SWIG_IsOK(ecode2)) {
12829 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuResources_initializeForDevice" "', argument " "2"" of type '" "int""'");
12831 arg2 =
static_cast< int >(val2);
12833 Py_BEGIN_ALLOW_THREADS
12835 (arg1)->initializeForDevice(arg2);
12837 PyEval_RestoreThread(_save);
12838 PyErr_SetString(PyExc_RuntimeError, e.
what());
12841 Py_END_ALLOW_THREADS
12843 resultobj = SWIG_Py_Void();
12850 SWIGINTERN PyObject *_wrap_GpuResources_getBlasHandle(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12851 PyObject *resultobj = 0;
12858 PyObject * obj0 = 0 ;
12859 PyObject * obj1 = 0 ;
12860 cublasHandle_t result;
12862 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuResources_getBlasHandle",&obj0,&obj1)) SWIG_fail;
12863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
12864 if (!SWIG_IsOK(res1)) {
12865 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResources_getBlasHandle" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
12868 ecode2 = SWIG_AsVal_int(obj1, &val2);
12869 if (!SWIG_IsOK(ecode2)) {
12870 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuResources_getBlasHandle" "', argument " "2"" of type '" "int""'");
12872 arg2 =
static_cast< int >(val2);
12874 Py_BEGIN_ALLOW_THREADS
12876 result = (arg1)->getBlasHandle(arg2);
12878 PyEval_RestoreThread(_save);
12879 PyErr_SetString(PyExc_RuntimeError, e.
what());
12882 Py_END_ALLOW_THREADS
12884 resultobj = SWIG_NewPointerObj((
new cublasHandle_t(static_cast< const cublasHandle_t& >(result))), SWIGTYPE_p_cublasHandle_t, SWIG_POINTER_OWN | 0 );
12891 SWIGINTERN PyObject *_wrap_GpuResources_getDefaultStream(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12892 PyObject *resultobj = 0;
12899 PyObject * obj0 = 0 ;
12900 PyObject * obj1 = 0 ;
12901 cudaStream_t result;
12903 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuResources_getDefaultStream",&obj0,&obj1)) SWIG_fail;
12904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
12905 if (!SWIG_IsOK(res1)) {
12906 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResources_getDefaultStream" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
12909 ecode2 = SWIG_AsVal_int(obj1, &val2);
12910 if (!SWIG_IsOK(ecode2)) {
12911 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuResources_getDefaultStream" "', argument " "2"" of type '" "int""'");
12913 arg2 =
static_cast< int >(val2);
12915 Py_BEGIN_ALLOW_THREADS
12917 result = (arg1)->getDefaultStream(arg2);
12919 PyEval_RestoreThread(_save);
12920 PyErr_SetString(PyExc_RuntimeError, e.
what());
12923 Py_END_ALLOW_THREADS
12925 resultobj = SWIG_NewPointerObj((
new cudaStream_t(static_cast< const cudaStream_t& >(result))), SWIGTYPE_p_cudaStream_t, SWIG_POINTER_OWN | 0 );
12932 SWIGINTERN PyObject *_wrap_GpuResources_getAlternateStreams(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12933 PyObject *resultobj = 0;
12940 PyObject * obj0 = 0 ;
12941 PyObject * obj1 = 0 ;
12942 SwigValueWrapper< std::vector< cudaStream_t > > result;
12944 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuResources_getAlternateStreams",&obj0,&obj1)) SWIG_fail;
12945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
12946 if (!SWIG_IsOK(res1)) {
12947 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResources_getAlternateStreams" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
12950 ecode2 = SWIG_AsVal_int(obj1, &val2);
12951 if (!SWIG_IsOK(ecode2)) {
12952 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuResources_getAlternateStreams" "', argument " "2"" of type '" "int""'");
12954 arg2 =
static_cast< int >(val2);
12956 Py_BEGIN_ALLOW_THREADS
12958 result = (arg1)->getAlternateStreams(arg2);
12960 PyEval_RestoreThread(_save);
12961 PyErr_SetString(PyExc_RuntimeError, e.
what());
12964 Py_END_ALLOW_THREADS
12966 resultobj = SWIG_NewPointerObj((
new std::vector< cudaStream_t >(
static_cast< const std::vector< cudaStream_t >&
>(result))), SWIGTYPE_p_std__vectorT_cudaStream_t_t, SWIG_POINTER_OWN | 0 );
12973 SWIGINTERN PyObject *_wrap_GpuResources_getPinnedMemory(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12974 PyObject *resultobj = 0;
12978 PyObject * obj0 = 0 ;
12979 std::pair< void *,size_t > result;
12981 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuResources_getPinnedMemory",&obj0)) SWIG_fail;
12982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
12983 if (!SWIG_IsOK(res1)) {
12984 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResources_getPinnedMemory" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
12988 Py_BEGIN_ALLOW_THREADS
12990 result = (arg1)->getPinnedMemory();
12992 PyEval_RestoreThread(_save);
12993 PyErr_SetString(PyExc_RuntimeError, e.
what());
12996 Py_END_ALLOW_THREADS
12998 resultobj = SWIG_NewPointerObj((
new std::pair< void *,size_t >(
static_cast< const std::pair< void *,size_t >&
>(result))), SWIGTYPE_p_std__pairT_void_p_unsigned_long_t, SWIG_POINTER_OWN | 0 );
13005 SWIGINTERN PyObject *_wrap_GpuResources_getAsyncCopyStream(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13006 PyObject *resultobj = 0;
13013 PyObject * obj0 = 0 ;
13014 PyObject * obj1 = 0 ;
13015 cudaStream_t result;
13017 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuResources_getAsyncCopyStream",&obj0,&obj1)) SWIG_fail;
13018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
13019 if (!SWIG_IsOK(res1)) {
13020 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResources_getAsyncCopyStream" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
13023 ecode2 = SWIG_AsVal_int(obj1, &val2);
13024 if (!SWIG_IsOK(ecode2)) {
13025 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuResources_getAsyncCopyStream" "', argument " "2"" of type '" "int""'");
13027 arg2 =
static_cast< int >(val2);
13029 Py_BEGIN_ALLOW_THREADS
13031 result = (arg1)->getAsyncCopyStream(arg2);
13033 PyEval_RestoreThread(_save);
13034 PyErr_SetString(PyExc_RuntimeError, e.
what());
13037 Py_END_ALLOW_THREADS
13039 resultobj = SWIG_NewPointerObj((
new cudaStream_t(static_cast< const cudaStream_t& >(result))), SWIGTYPE_p_cudaStream_t, SWIG_POINTER_OWN | 0 );
13046 SWIGINTERN PyObject *_wrap_GpuResources_getBlasHandleCurrentDevice(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13047 PyObject *resultobj = 0;
13051 PyObject * obj0 = 0 ;
13052 cublasHandle_t result;
13054 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuResources_getBlasHandleCurrentDevice",&obj0)) SWIG_fail;
13055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
13056 if (!SWIG_IsOK(res1)) {
13057 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResources_getBlasHandleCurrentDevice" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
13061 Py_BEGIN_ALLOW_THREADS
13063 result = (arg1)->getBlasHandleCurrentDevice();
13065 PyEval_RestoreThread(_save);
13066 PyErr_SetString(PyExc_RuntimeError, e.
what());
13069 Py_END_ALLOW_THREADS
13071 resultobj = SWIG_NewPointerObj((
new cublasHandle_t(static_cast< const cublasHandle_t& >(result))), SWIGTYPE_p_cublasHandle_t, SWIG_POINTER_OWN | 0 );
13078 SWIGINTERN PyObject *_wrap_GpuResources_getDefaultStreamCurrentDevice(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13079 PyObject *resultobj = 0;
13083 PyObject * obj0 = 0 ;
13084 cudaStream_t result;
13086 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuResources_getDefaultStreamCurrentDevice",&obj0)) SWIG_fail;
13087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
13088 if (!SWIG_IsOK(res1)) {
13089 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResources_getDefaultStreamCurrentDevice" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
13093 Py_BEGIN_ALLOW_THREADS
13095 result = (arg1)->getDefaultStreamCurrentDevice();
13097 PyEval_RestoreThread(_save);
13098 PyErr_SetString(PyExc_RuntimeError, e.
what());
13101 Py_END_ALLOW_THREADS
13103 resultobj = SWIG_NewPointerObj((
new cudaStream_t(static_cast< const cudaStream_t& >(result))), SWIGTYPE_p_cudaStream_t, SWIG_POINTER_OWN | 0 );
13110 SWIGINTERN PyObject *_wrap_GpuResources_syncDefaultStream(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13111 PyObject *resultobj = 0;
13118 PyObject * obj0 = 0 ;
13119 PyObject * obj1 = 0 ;
13121 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuResources_syncDefaultStream",&obj0,&obj1)) SWIG_fail;
13122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
13123 if (!SWIG_IsOK(res1)) {
13124 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResources_syncDefaultStream" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
13127 ecode2 = SWIG_AsVal_int(obj1, &val2);
13128 if (!SWIG_IsOK(ecode2)) {
13129 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuResources_syncDefaultStream" "', argument " "2"" of type '" "int""'");
13131 arg2 =
static_cast< int >(val2);
13133 Py_BEGIN_ALLOW_THREADS
13135 (arg1)->syncDefaultStream(arg2);
13137 PyEval_RestoreThread(_save);
13138 PyErr_SetString(PyExc_RuntimeError, e.
what());
13141 Py_END_ALLOW_THREADS
13143 resultobj = SWIG_Py_Void();
13150 SWIGINTERN PyObject *_wrap_GpuResources_syncDefaultStreamCurrentDevice(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13151 PyObject *resultobj = 0;
13155 PyObject * obj0 = 0 ;
13157 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuResources_syncDefaultStreamCurrentDevice",&obj0)) SWIG_fail;
13158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
13159 if (!SWIG_IsOK(res1)) {
13160 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResources_syncDefaultStreamCurrentDevice" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
13164 Py_BEGIN_ALLOW_THREADS
13166 (arg1)->syncDefaultStreamCurrentDevice();
13168 PyEval_RestoreThread(_save);
13169 PyErr_SetString(PyExc_RuntimeError, e.
what());
13172 Py_END_ALLOW_THREADS
13174 resultobj = SWIG_Py_Void();
13181 SWIGINTERN PyObject *_wrap_GpuResources_getAlternateStreamsCurrentDevice(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13182 PyObject *resultobj = 0;
13186 PyObject * obj0 = 0 ;
13187 SwigValueWrapper< std::vector< cudaStream_t > > result;
13189 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuResources_getAlternateStreamsCurrentDevice",&obj0)) SWIG_fail;
13190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
13191 if (!SWIG_IsOK(res1)) {
13192 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResources_getAlternateStreamsCurrentDevice" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
13196 Py_BEGIN_ALLOW_THREADS
13198 result = (arg1)->getAlternateStreamsCurrentDevice();
13200 PyEval_RestoreThread(_save);
13201 PyErr_SetString(PyExc_RuntimeError, e.
what());
13204 Py_END_ALLOW_THREADS
13206 resultobj = SWIG_NewPointerObj((
new std::vector< cudaStream_t >(
static_cast< const std::vector< cudaStream_t >&
>(result))), SWIGTYPE_p_std__vectorT_cudaStream_t_t, SWIG_POINTER_OWN | 0 );
13213 SWIGINTERN PyObject *_wrap_GpuResources_getAsyncCopyStreamCurrentDevice(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13214 PyObject *resultobj = 0;
13218 PyObject * obj0 = 0 ;
13219 cudaStream_t result;
13221 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuResources_getAsyncCopyStreamCurrentDevice",&obj0)) SWIG_fail;
13222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
13223 if (!SWIG_IsOK(res1)) {
13224 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuResources_getAsyncCopyStreamCurrentDevice" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
13228 Py_BEGIN_ALLOW_THREADS
13230 result = (arg1)->getAsyncCopyStreamCurrentDevice();
13232 PyEval_RestoreThread(_save);
13233 PyErr_SetString(PyExc_RuntimeError, e.
what());
13236 Py_END_ALLOW_THREADS
13238 resultobj = SWIG_NewPointerObj((
new cudaStream_t(static_cast< const cudaStream_t& >(result))), SWIGTYPE_p_cudaStream_t, SWIG_POINTER_OWN | 0 );
13245 SWIGINTERN PyObject *GpuResources_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13247 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
13248 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuResources, SWIG_NewClientData(obj));
13249 return SWIG_Py_Void();
13252 SWIGINTERN PyObject *_wrap_new_StandardGpuResources(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13253 PyObject *resultobj = 0;
13256 if (!PyArg_ParseTuple(args,(
char *)
":new_StandardGpuResources")) SWIG_fail;
13258 Py_BEGIN_ALLOW_THREADS
13262 PyEval_RestoreThread(_save);
13263 PyErr_SetString(PyExc_RuntimeError, e.
what());
13266 Py_END_ALLOW_THREADS
13268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__StandardGpuResources, SWIG_POINTER_NEW | 0 );
13275 SWIGINTERN PyObject *_wrap_delete_StandardGpuResources(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13276 PyObject *resultobj = 0;
13280 PyObject * obj0 = 0 ;
13282 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_StandardGpuResources",&obj0)) SWIG_fail;
13283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__StandardGpuResources, SWIG_POINTER_DISOWN | 0 );
13284 if (!SWIG_IsOK(res1)) {
13285 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_StandardGpuResources" "', argument " "1"" of type '" "faiss::gpu::StandardGpuResources *""'");
13289 Py_BEGIN_ALLOW_THREADS
13293 PyEval_RestoreThread(_save);
13294 PyErr_SetString(PyExc_RuntimeError, e.
what());
13297 Py_END_ALLOW_THREADS
13299 resultobj = SWIG_Py_Void();
13306 SWIGINTERN PyObject *_wrap_StandardGpuResources_noTempMemory(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13307 PyObject *resultobj = 0;
13311 PyObject * obj0 = 0 ;
13313 if (!PyArg_ParseTuple(args,(
char *)
"O:StandardGpuResources_noTempMemory",&obj0)) SWIG_fail;
13314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__StandardGpuResources, 0 | 0 );
13315 if (!SWIG_IsOK(res1)) {
13316 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "StandardGpuResources_noTempMemory" "', argument " "1"" of type '" "faiss::gpu::StandardGpuResources *""'");
13320 Py_BEGIN_ALLOW_THREADS
13322 (arg1)->noTempMemory();
13324 PyEval_RestoreThread(_save);
13325 PyErr_SetString(PyExc_RuntimeError, e.
what());
13328 Py_END_ALLOW_THREADS
13330 resultobj = SWIG_Py_Void();
13337 SWIGINTERN PyObject *_wrap_StandardGpuResources_setTempMemory(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13338 PyObject *resultobj = 0;
13345 PyObject * obj0 = 0 ;
13346 PyObject * obj1 = 0 ;
13348 if (!PyArg_ParseTuple(args,(
char *)
"OO:StandardGpuResources_setTempMemory",&obj0,&obj1)) SWIG_fail;
13349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__StandardGpuResources, 0 | 0 );
13350 if (!SWIG_IsOK(res1)) {
13351 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "StandardGpuResources_setTempMemory" "', argument " "1"" of type '" "faiss::gpu::StandardGpuResources *""'");
13354 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13355 if (!SWIG_IsOK(ecode2)) {
13356 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "StandardGpuResources_setTempMemory" "', argument " "2"" of type '" "size_t""'");
13358 arg2 =
static_cast< size_t >(val2);
13360 Py_BEGIN_ALLOW_THREADS
13362 (arg1)->setTempMemory(arg2);
13364 PyEval_RestoreThread(_save);
13365 PyErr_SetString(PyExc_RuntimeError, e.
what());
13368 Py_END_ALLOW_THREADS
13370 resultobj = SWIG_Py_Void();
13377 SWIGINTERN PyObject *_wrap_StandardGpuResources_setTempMemoryFraction(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13378 PyObject *resultobj = 0;
13385 PyObject * obj0 = 0 ;
13386 PyObject * obj1 = 0 ;
13388 if (!PyArg_ParseTuple(args,(
char *)
"OO:StandardGpuResources_setTempMemoryFraction",&obj0,&obj1)) SWIG_fail;
13389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__StandardGpuResources, 0 | 0 );
13390 if (!SWIG_IsOK(res1)) {
13391 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "StandardGpuResources_setTempMemoryFraction" "', argument " "1"" of type '" "faiss::gpu::StandardGpuResources *""'");
13394 ecode2 = SWIG_AsVal_float(obj1, &val2);
13395 if (!SWIG_IsOK(ecode2)) {
13396 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "StandardGpuResources_setTempMemoryFraction" "', argument " "2"" of type '" "float""'");
13398 arg2 =
static_cast< float >(val2);
13400 Py_BEGIN_ALLOW_THREADS
13402 (arg1)->setTempMemoryFraction(arg2);
13404 PyEval_RestoreThread(_save);
13405 PyErr_SetString(PyExc_RuntimeError, e.
what());
13408 Py_END_ALLOW_THREADS
13410 resultobj = SWIG_Py_Void();
13417 SWIGINTERN PyObject *_wrap_StandardGpuResources_setPinnedMemory(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13418 PyObject *resultobj = 0;
13425 PyObject * obj0 = 0 ;
13426 PyObject * obj1 = 0 ;
13428 if (!PyArg_ParseTuple(args,(
char *)
"OO:StandardGpuResources_setPinnedMemory",&obj0,&obj1)) SWIG_fail;
13429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__StandardGpuResources, 0 | 0 );
13430 if (!SWIG_IsOK(res1)) {
13431 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "StandardGpuResources_setPinnedMemory" "', argument " "1"" of type '" "faiss::gpu::StandardGpuResources *""'");
13434 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13435 if (!SWIG_IsOK(ecode2)) {
13436 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "StandardGpuResources_setPinnedMemory" "', argument " "2"" of type '" "size_t""'");
13438 arg2 =
static_cast< size_t >(val2);
13440 Py_BEGIN_ALLOW_THREADS
13442 (arg1)->setPinnedMemory(arg2);
13444 PyEval_RestoreThread(_save);
13445 PyErr_SetString(PyExc_RuntimeError, e.
what());
13448 Py_END_ALLOW_THREADS
13450 resultobj = SWIG_Py_Void();
13457 SWIGINTERN PyObject *_wrap_StandardGpuResources_setDefaultStream(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13458 PyObject *resultobj = 0;
13461 cudaStream_t arg3 ;
13468 PyObject * obj0 = 0 ;
13469 PyObject * obj1 = 0 ;
13470 PyObject * obj2 = 0 ;
13472 if (!PyArg_ParseTuple(args,(
char *)
"OOO:StandardGpuResources_setDefaultStream",&obj0,&obj1,&obj2)) SWIG_fail;
13473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__StandardGpuResources, 0 | 0 );
13474 if (!SWIG_IsOK(res1)) {
13475 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "StandardGpuResources_setDefaultStream" "', argument " "1"" of type '" "faiss::gpu::StandardGpuResources *""'");
13478 ecode2 = SWIG_AsVal_int(obj1, &val2);
13479 if (!SWIG_IsOK(ecode2)) {
13480 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "StandardGpuResources_setDefaultStream" "', argument " "2"" of type '" "int""'");
13482 arg2 =
static_cast< int >(val2);
13484 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_cudaStream_t, 0 | 0);
13485 if (!SWIG_IsOK(res3)) {
13486 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "StandardGpuResources_setDefaultStream" "', argument " "3"" of type '" "cudaStream_t""'");
13489 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "StandardGpuResources_setDefaultStream" "', argument " "3"" of type '" "cudaStream_t""'");
13491 cudaStream_t * temp =
reinterpret_cast< cudaStream_t *
>(argp3);
13493 if (SWIG_IsNewObj(res3))
delete temp;
13497 Py_BEGIN_ALLOW_THREADS
13499 (arg1)->setDefaultStream(arg2,arg3);
13501 PyEval_RestoreThread(_save);
13502 PyErr_SetString(PyExc_RuntimeError, e.
what());
13505 Py_END_ALLOW_THREADS
13507 resultobj = SWIG_Py_Void();
13514 SWIGINTERN PyObject *_wrap_StandardGpuResources_setDefaultNullStreamAllDevices(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13515 PyObject *resultobj = 0;
13519 PyObject * obj0 = 0 ;
13521 if (!PyArg_ParseTuple(args,(
char *)
"O:StandardGpuResources_setDefaultNullStreamAllDevices",&obj0)) SWIG_fail;
13522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__StandardGpuResources, 0 | 0 );
13523 if (!SWIG_IsOK(res1)) {
13524 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "StandardGpuResources_setDefaultNullStreamAllDevices" "', argument " "1"" of type '" "faiss::gpu::StandardGpuResources *""'");
13528 Py_BEGIN_ALLOW_THREADS
13530 (arg1)->setDefaultNullStreamAllDevices();
13532 PyEval_RestoreThread(_save);
13533 PyErr_SetString(PyExc_RuntimeError, e.
what());
13536 Py_END_ALLOW_THREADS
13538 resultobj = SWIG_Py_Void();
13545 SWIGINTERN PyObject *_wrap_StandardGpuResources_setCudaMallocWarning(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13546 PyObject *resultobj = 0;
13553 PyObject * obj0 = 0 ;
13554 PyObject * obj1 = 0 ;
13556 if (!PyArg_ParseTuple(args,(
char *)
"OO:StandardGpuResources_setCudaMallocWarning",&obj0,&obj1)) SWIG_fail;
13557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__StandardGpuResources, 0 | 0 );
13558 if (!SWIG_IsOK(res1)) {
13559 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "StandardGpuResources_setCudaMallocWarning" "', argument " "1"" of type '" "faiss::gpu::StandardGpuResources *""'");
13562 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13563 if (!SWIG_IsOK(ecode2)) {
13564 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "StandardGpuResources_setCudaMallocWarning" "', argument " "2"" of type '" "bool""'");
13566 arg2 =
static_cast< bool >(val2);
13568 Py_BEGIN_ALLOW_THREADS
13570 (arg1)->setCudaMallocWarning(arg2);
13572 PyEval_RestoreThread(_save);
13573 PyErr_SetString(PyExc_RuntimeError, e.
what());
13576 Py_END_ALLOW_THREADS
13578 resultobj = SWIG_Py_Void();
13585 SWIGINTERN PyObject *_wrap_StandardGpuResources_initializeForDevice(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13586 PyObject *resultobj = 0;
13593 PyObject * obj0 = 0 ;
13594 PyObject * obj1 = 0 ;
13596 if (!PyArg_ParseTuple(args,(
char *)
"OO:StandardGpuResources_initializeForDevice",&obj0,&obj1)) SWIG_fail;
13597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__StandardGpuResources, 0 | 0 );
13598 if (!SWIG_IsOK(res1)) {
13599 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "StandardGpuResources_initializeForDevice" "', argument " "1"" of type '" "faiss::gpu::StandardGpuResources *""'");
13602 ecode2 = SWIG_AsVal_int(obj1, &val2);
13603 if (!SWIG_IsOK(ecode2)) {
13604 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "StandardGpuResources_initializeForDevice" "', argument " "2"" of type '" "int""'");
13606 arg2 =
static_cast< int >(val2);
13608 Py_BEGIN_ALLOW_THREADS
13610 (arg1)->initializeForDevice(arg2);
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_StandardGpuResources_getBlasHandle(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13626 PyObject *resultobj = 0;
13633 PyObject * obj0 = 0 ;
13634 PyObject * obj1 = 0 ;
13635 cublasHandle_t result;
13637 if (!PyArg_ParseTuple(args,(
char *)
"OO:StandardGpuResources_getBlasHandle",&obj0,&obj1)) SWIG_fail;
13638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__StandardGpuResources, 0 | 0 );
13639 if (!SWIG_IsOK(res1)) {
13640 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "StandardGpuResources_getBlasHandle" "', argument " "1"" of type '" "faiss::gpu::StandardGpuResources *""'");
13643 ecode2 = SWIG_AsVal_int(obj1, &val2);
13644 if (!SWIG_IsOK(ecode2)) {
13645 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "StandardGpuResources_getBlasHandle" "', argument " "2"" of type '" "int""'");
13647 arg2 =
static_cast< int >(val2);
13649 Py_BEGIN_ALLOW_THREADS
13651 result = (arg1)->getBlasHandle(arg2);
13653 PyEval_RestoreThread(_save);
13654 PyErr_SetString(PyExc_RuntimeError, e.
what());
13657 Py_END_ALLOW_THREADS
13659 resultobj = SWIG_NewPointerObj((
new cublasHandle_t(static_cast< const cublasHandle_t& >(result))), SWIGTYPE_p_cublasHandle_t, SWIG_POINTER_OWN | 0 );
13666 SWIGINTERN PyObject *_wrap_StandardGpuResources_getDefaultStream(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13667 PyObject *resultobj = 0;
13674 PyObject * obj0 = 0 ;
13675 PyObject * obj1 = 0 ;
13676 cudaStream_t result;
13678 if (!PyArg_ParseTuple(args,(
char *)
"OO:StandardGpuResources_getDefaultStream",&obj0,&obj1)) SWIG_fail;
13679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__StandardGpuResources, 0 | 0 );
13680 if (!SWIG_IsOK(res1)) {
13681 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "StandardGpuResources_getDefaultStream" "', argument " "1"" of type '" "faiss::gpu::StandardGpuResources *""'");
13684 ecode2 = SWIG_AsVal_int(obj1, &val2);
13685 if (!SWIG_IsOK(ecode2)) {
13686 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "StandardGpuResources_getDefaultStream" "', argument " "2"" of type '" "int""'");
13688 arg2 =
static_cast< int >(val2);
13690 Py_BEGIN_ALLOW_THREADS
13692 result = (arg1)->getDefaultStream(arg2);
13694 PyEval_RestoreThread(_save);
13695 PyErr_SetString(PyExc_RuntimeError, e.
what());
13698 Py_END_ALLOW_THREADS
13700 resultobj = SWIG_NewPointerObj((
new cudaStream_t(static_cast< const cudaStream_t& >(result))), SWIGTYPE_p_cudaStream_t, SWIG_POINTER_OWN | 0 );
13707 SWIGINTERN PyObject *_wrap_StandardGpuResources_getAlternateStreams(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13708 PyObject *resultobj = 0;
13715 PyObject * obj0 = 0 ;
13716 PyObject * obj1 = 0 ;
13717 SwigValueWrapper< std::vector< cudaStream_t > > result;
13719 if (!PyArg_ParseTuple(args,(
char *)
"OO:StandardGpuResources_getAlternateStreams",&obj0,&obj1)) SWIG_fail;
13720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__StandardGpuResources, 0 | 0 );
13721 if (!SWIG_IsOK(res1)) {
13722 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "StandardGpuResources_getAlternateStreams" "', argument " "1"" of type '" "faiss::gpu::StandardGpuResources *""'");
13725 ecode2 = SWIG_AsVal_int(obj1, &val2);
13726 if (!SWIG_IsOK(ecode2)) {
13727 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "StandardGpuResources_getAlternateStreams" "', argument " "2"" of type '" "int""'");
13729 arg2 =
static_cast< int >(val2);
13731 Py_BEGIN_ALLOW_THREADS
13733 result = (arg1)->getAlternateStreams(arg2);
13735 PyEval_RestoreThread(_save);
13736 PyErr_SetString(PyExc_RuntimeError, e.
what());
13739 Py_END_ALLOW_THREADS
13741 resultobj = SWIG_NewPointerObj((
new std::vector< cudaStream_t >(
static_cast< const std::vector< cudaStream_t >&
>(result))), SWIGTYPE_p_std__vectorT_cudaStream_t_t, SWIG_POINTER_OWN | 0 );
13748 SWIGINTERN PyObject *_wrap_StandardGpuResources_getPinnedMemory(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13749 PyObject *resultobj = 0;
13753 PyObject * obj0 = 0 ;
13754 std::pair< void *,size_t > result;
13756 if (!PyArg_ParseTuple(args,(
char *)
"O:StandardGpuResources_getPinnedMemory",&obj0)) SWIG_fail;
13757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__StandardGpuResources, 0 | 0 );
13758 if (!SWIG_IsOK(res1)) {
13759 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "StandardGpuResources_getPinnedMemory" "', argument " "1"" of type '" "faiss::gpu::StandardGpuResources *""'");
13763 Py_BEGIN_ALLOW_THREADS
13765 result = (arg1)->getPinnedMemory();
13767 PyEval_RestoreThread(_save);
13768 PyErr_SetString(PyExc_RuntimeError, e.
what());
13771 Py_END_ALLOW_THREADS
13773 resultobj = SWIG_NewPointerObj((
new std::pair< void *,size_t >(
static_cast< const std::pair< void *,size_t >&
>(result))), SWIGTYPE_p_std__pairT_void_p_unsigned_long_t, SWIG_POINTER_OWN | 0 );
13780 SWIGINTERN PyObject *_wrap_StandardGpuResources_getAsyncCopyStream(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13781 PyObject *resultobj = 0;
13788 PyObject * obj0 = 0 ;
13789 PyObject * obj1 = 0 ;
13790 cudaStream_t result;
13792 if (!PyArg_ParseTuple(args,(
char *)
"OO:StandardGpuResources_getAsyncCopyStream",&obj0,&obj1)) SWIG_fail;
13793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__StandardGpuResources, 0 | 0 );
13794 if (!SWIG_IsOK(res1)) {
13795 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "StandardGpuResources_getAsyncCopyStream" "', argument " "1"" of type '" "faiss::gpu::StandardGpuResources *""'");
13798 ecode2 = SWIG_AsVal_int(obj1, &val2);
13799 if (!SWIG_IsOK(ecode2)) {
13800 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "StandardGpuResources_getAsyncCopyStream" "', argument " "2"" of type '" "int""'");
13802 arg2 =
static_cast< int >(val2);
13804 Py_BEGIN_ALLOW_THREADS
13806 result = (arg1)->getAsyncCopyStream(arg2);
13808 PyEval_RestoreThread(_save);
13809 PyErr_SetString(PyExc_RuntimeError, e.
what());
13812 Py_END_ALLOW_THREADS
13814 resultobj = SWIG_NewPointerObj((
new cudaStream_t(static_cast< const cudaStream_t& >(result))), SWIGTYPE_p_cudaStream_t, SWIG_POINTER_OWN | 0 );
13821 SWIGINTERN PyObject *StandardGpuResources_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13823 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
13824 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__StandardGpuResources, SWIG_NewClientData(obj));
13825 return SWIG_Py_Void();
13828 SWIGINTERN PyObject *_wrap_getmillisecs(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13829 PyObject *resultobj = 0;
13832 if (!PyArg_ParseTuple(args,(
char *)
":getmillisecs")) SWIG_fail;
13834 Py_BEGIN_ALLOW_THREADS
13838 PyEval_RestoreThread(_save);
13839 PyErr_SetString(PyExc_RuntimeError, e.
what());
13842 Py_END_ALLOW_THREADS
13844 resultobj = SWIG_From_double(static_cast< double >(result));
13851 SWIGINTERN PyObject *_wrap_get_mem_usage_kb(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13852 PyObject *resultobj = 0;
13855 if (!PyArg_ParseTuple(args,(
char *)
":get_mem_usage_kb")) SWIG_fail;
13857 Py_BEGIN_ALLOW_THREADS
13861 PyEval_RestoreThread(_save);
13862 PyErr_SetString(PyExc_RuntimeError, e.
what());
13865 Py_END_ALLOW_THREADS
13867 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13874 SWIGINTERN PyObject *_wrap_RandomGenerator_mt_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13875 PyObject *resultobj = 0;
13877 std::mt19937 arg2 ;
13882 PyObject * obj0 = 0 ;
13883 PyObject * obj1 = 0 ;
13885 if (!PyArg_ParseTuple(args,(
char *)
"OO:RandomGenerator_mt_set",&obj0,&obj1)) SWIG_fail;
13886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
13887 if (!SWIG_IsOK(res1)) {
13888 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomGenerator_mt_set" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
13892 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mt19937, 0 | 0);
13893 if (!SWIG_IsOK(res2)) {
13894 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RandomGenerator_mt_set" "', argument " "2"" of type '" "std::mt19937""'");
13897 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "RandomGenerator_mt_set" "', argument " "2"" of type '" "std::mt19937""'");
13899 std::mt19937 * temp =
reinterpret_cast< std::mt19937 *
>(argp2);
13901 if (SWIG_IsNewObj(res2))
delete temp;
13904 if (arg1) (arg1)->mt = arg2;
13905 resultobj = SWIG_Py_Void();
13912 SWIGINTERN PyObject *_wrap_RandomGenerator_mt_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13913 PyObject *resultobj = 0;
13917 PyObject * obj0 = 0 ;
13918 std::mt19937 result;
13920 if (!PyArg_ParseTuple(args,(
char *)
"O:RandomGenerator_mt_get",&obj0)) SWIG_fail;
13921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
13922 if (!SWIG_IsOK(res1)) {
13923 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomGenerator_mt_get" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
13926 result = ((arg1)->mt);
13927 resultobj = SWIG_NewPointerObj((
new std::mt19937(static_cast< const std::mt19937& >(result))), SWIGTYPE_p_std__mt19937, SWIG_POINTER_OWN | 0 );
13934 SWIGINTERN PyObject *_wrap_RandomGenerator_rand_int__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13935 PyObject *resultobj = 0;
13939 PyObject * obj0 = 0 ;
13942 if (!PyArg_ParseTuple(args,(
char *)
"O:RandomGenerator_rand_int",&obj0)) SWIG_fail;
13943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
13944 if (!SWIG_IsOK(res1)) {
13945 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomGenerator_rand_int" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
13949 Py_BEGIN_ALLOW_THREADS
13953 PyEval_RestoreThread(_save);
13954 PyErr_SetString(PyExc_RuntimeError, e.
what());
13957 Py_END_ALLOW_THREADS
13959 resultobj = SWIG_From_int(static_cast< int >(result));
13966 SWIGINTERN PyObject *_wrap_RandomGenerator_rand_long(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13967 PyObject *resultobj = 0;
13971 PyObject * obj0 = 0 ;
13974 if (!PyArg_ParseTuple(args,(
char *)
"O:RandomGenerator_rand_long",&obj0)) SWIG_fail;
13975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
13976 if (!SWIG_IsOK(res1)) {
13977 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomGenerator_rand_long" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
13981 Py_BEGIN_ALLOW_THREADS
13985 PyEval_RestoreThread(_save);
13986 PyErr_SetString(PyExc_RuntimeError, e.
what());
13989 Py_END_ALLOW_THREADS
13991 resultobj = SWIG_From_long(static_cast< long >(result));
13998 SWIGINTERN PyObject *_wrap_RandomGenerator_rand_int__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13999 PyObject *resultobj = 0;
14006 PyObject * obj0 = 0 ;
14007 PyObject * obj1 = 0 ;
14010 if (!PyArg_ParseTuple(args,(
char *)
"OO:RandomGenerator_rand_int",&obj0,&obj1)) SWIG_fail;
14011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
14012 if (!SWIG_IsOK(res1)) {
14013 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomGenerator_rand_int" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
14016 ecode2 = SWIG_AsVal_int(obj1, &val2);
14017 if (!SWIG_IsOK(ecode2)) {
14018 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RandomGenerator_rand_int" "', argument " "2"" of type '" "int""'");
14020 arg2 =
static_cast< int >(val2);
14022 Py_BEGIN_ALLOW_THREADS
14024 result = (int)(arg1)->rand_int(arg2);
14026 PyEval_RestoreThread(_save);
14027 PyErr_SetString(PyExc_RuntimeError, e.
what());
14030 Py_END_ALLOW_THREADS
14032 resultobj = SWIG_From_int(static_cast< int >(result));
14039 SWIGINTERN PyObject *_wrap_RandomGenerator_rand_int(PyObject *
self, PyObject *args) {
14041 PyObject *argv[3] = {
14046 if (!PyTuple_Check(args)) SWIG_fail;
14047 argc = args ? PyObject_Length(args) : 0;
14048 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
14049 argv[ii] = PyTuple_GET_ITEM(args,ii);
14054 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__RandomGenerator, 0);
14055 _v = SWIG_CheckState(res);
14057 return _wrap_RandomGenerator_rand_int__SWIG_0(
self, args);
14063 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__RandomGenerator, 0);
14064 _v = SWIG_CheckState(res);
14067 int res = SWIG_AsVal_int(argv[1], NULL);
14068 _v = SWIG_CheckState(res);
14071 return _wrap_RandomGenerator_rand_int__SWIG_1(
self, args);
14077 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'RandomGenerator_rand_int'.\n"
14078 " Possible C/C++ prototypes are:\n"
14079 " faiss::RandomGenerator::rand_int()\n"
14080 " faiss::RandomGenerator::rand_int(int)\n");
14085 SWIGINTERN PyObject *_wrap_RandomGenerator_rand_float(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14086 PyObject *resultobj = 0;
14090 PyObject * obj0 = 0 ;
14093 if (!PyArg_ParseTuple(args,(
char *)
"O:RandomGenerator_rand_float",&obj0)) SWIG_fail;
14094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
14095 if (!SWIG_IsOK(res1)) {
14096 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomGenerator_rand_float" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
14100 Py_BEGIN_ALLOW_THREADS
14104 PyEval_RestoreThread(_save);
14105 PyErr_SetString(PyExc_RuntimeError, e.
what());
14108 Py_END_ALLOW_THREADS
14110 resultobj = SWIG_From_float(static_cast< float >(result));
14117 SWIGINTERN PyObject *_wrap_RandomGenerator_rand_double(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14118 PyObject *resultobj = 0;
14122 PyObject * obj0 = 0 ;
14125 if (!PyArg_ParseTuple(args,(
char *)
"O:RandomGenerator_rand_double",&obj0)) SWIG_fail;
14126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
14127 if (!SWIG_IsOK(res1)) {
14128 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomGenerator_rand_double" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
14132 Py_BEGIN_ALLOW_THREADS
14134 result = (double)(arg1)->rand_double();
14136 PyEval_RestoreThread(_save);
14137 PyErr_SetString(PyExc_RuntimeError, e.
what());
14140 Py_END_ALLOW_THREADS
14142 resultobj = SWIG_From_double(static_cast< double >(result));
14149 SWIGINTERN PyObject *_wrap_new_RandomGenerator__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14150 PyObject *resultobj = 0;
14154 PyObject * obj0 = 0 ;
14157 if (!PyArg_ParseTuple(args,(
char *)
"O:new_RandomGenerator",&obj0)) SWIG_fail;
14158 ecode1 = SWIG_AsVal_long(obj0, &val1);
14159 if (!SWIG_IsOK(ecode1)) {
14160 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_RandomGenerator" "', argument " "1"" of type '" "long""'");
14162 arg1 =
static_cast< long >(val1);
14164 Py_BEGIN_ALLOW_THREADS
14168 PyEval_RestoreThread(_save);
14169 PyErr_SetString(PyExc_RuntimeError, e.
what());
14172 Py_END_ALLOW_THREADS
14174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RandomGenerator, SWIG_POINTER_NEW | 0 );
14181 SWIGINTERN PyObject *_wrap_new_RandomGenerator__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14182 PyObject *resultobj = 0;
14185 if (!PyArg_ParseTuple(args,(
char *)
":new_RandomGenerator")) SWIG_fail;
14187 Py_BEGIN_ALLOW_THREADS
14191 PyEval_RestoreThread(_save);
14192 PyErr_SetString(PyExc_RuntimeError, e.
what());
14195 Py_END_ALLOW_THREADS
14197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RandomGenerator, SWIG_POINTER_NEW | 0 );
14204 SWIGINTERN PyObject *_wrap_new_RandomGenerator(PyObject *
self, PyObject *args) {
14206 PyObject *argv[2] = {
14211 if (!PyTuple_Check(args)) SWIG_fail;
14212 argc = args ? PyObject_Length(args) : 0;
14213 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
14214 argv[ii] = PyTuple_GET_ITEM(args,ii);
14217 return _wrap_new_RandomGenerator__SWIG_1(
self, args);
14222 int res = SWIG_AsVal_long(argv[0], NULL);
14223 _v = SWIG_CheckState(res);
14226 return _wrap_new_RandomGenerator__SWIG_0(
self, args);
14231 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_RandomGenerator'.\n"
14232 " Possible C/C++ prototypes are:\n"
14233 " faiss::RandomGenerator::RandomGenerator(long)\n"
14234 " faiss::RandomGenerator::RandomGenerator()\n");
14239 SWIGINTERN PyObject *_wrap_delete_RandomGenerator(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14240 PyObject *resultobj = 0;
14244 PyObject * obj0 = 0 ;
14246 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RandomGenerator",&obj0)) SWIG_fail;
14247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomGenerator, SWIG_POINTER_DISOWN | 0 );
14248 if (!SWIG_IsOK(res1)) {
14249 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RandomGenerator" "', argument " "1"" of type '" "faiss::RandomGenerator *""'");
14253 resultobj = SWIG_Py_Void();
14260 SWIGINTERN PyObject *RandomGenerator_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14262 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
14263 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__RandomGenerator, SWIG_NewClientData(obj));
14264 return SWIG_Py_Void();
14267 SWIGINTERN PyObject *_wrap_float_rand(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14268 PyObject *resultobj = 0;
14269 float *arg1 = (
float *) 0 ;
14278 PyObject * obj0 = 0 ;
14279 PyObject * obj1 = 0 ;
14280 PyObject * obj2 = 0 ;
14282 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_rand",&obj0,&obj1,&obj2)) SWIG_fail;
14283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14284 if (!SWIG_IsOK(res1)) {
14285 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_rand" "', argument " "1"" of type '" "float *""'");
14287 arg1 =
reinterpret_cast< float *
>(argp1);
14288 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
14289 if (!SWIG_IsOK(ecode2)) {
14290 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_rand" "', argument " "2"" of type '" "size_t""'");
14292 arg2 =
static_cast< size_t >(val2);
14293 ecode3 = SWIG_AsVal_long(obj2, &val3);
14294 if (!SWIG_IsOK(ecode3)) {
14295 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "float_rand" "', argument " "3"" of type '" "long""'");
14297 arg3 =
static_cast< long >(val3);
14299 Py_BEGIN_ALLOW_THREADS
14301 faiss::float_rand(arg1,arg2,arg3);
14303 PyEval_RestoreThread(_save);
14304 PyErr_SetString(PyExc_RuntimeError, e.
what());
14307 Py_END_ALLOW_THREADS
14309 resultobj = SWIG_Py_Void();
14316 SWIGINTERN PyObject *_wrap_float_randn(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14317 PyObject *resultobj = 0;
14318 float *arg1 = (
float *) 0 ;
14327 PyObject * obj0 = 0 ;
14328 PyObject * obj1 = 0 ;
14329 PyObject * obj2 = 0 ;
14331 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_randn",&obj0,&obj1,&obj2)) SWIG_fail;
14332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14333 if (!SWIG_IsOK(res1)) {
14334 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_randn" "', argument " "1"" of type '" "float *""'");
14336 arg1 =
reinterpret_cast< float *
>(argp1);
14337 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
14338 if (!SWIG_IsOK(ecode2)) {
14339 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_randn" "', argument " "2"" of type '" "size_t""'");
14341 arg2 =
static_cast< size_t >(val2);
14342 ecode3 = SWIG_AsVal_long(obj2, &val3);
14343 if (!SWIG_IsOK(ecode3)) {
14344 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "float_randn" "', argument " "3"" of type '" "long""'");
14346 arg3 =
static_cast< long >(val3);
14348 Py_BEGIN_ALLOW_THREADS
14350 faiss::float_randn(arg1,arg2,arg3);
14352 PyEval_RestoreThread(_save);
14353 PyErr_SetString(PyExc_RuntimeError, e.
what());
14356 Py_END_ALLOW_THREADS
14358 resultobj = SWIG_Py_Void();
14365 SWIGINTERN PyObject *_wrap_long_rand(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14366 PyObject *resultobj = 0;
14367 long *arg1 = (
long *) 0 ;
14376 PyObject * obj0 = 0 ;
14377 PyObject * obj1 = 0 ;
14378 PyObject * obj2 = 0 ;
14380 if (!PyArg_ParseTuple(args,(
char *)
"OOO:long_rand",&obj0,&obj1,&obj2)) SWIG_fail;
14381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_long, 0 | 0 );
14382 if (!SWIG_IsOK(res1)) {
14383 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "long_rand" "', argument " "1"" of type '" "long *""'");
14385 arg1 =
reinterpret_cast< long *
>(argp1);
14386 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
14387 if (!SWIG_IsOK(ecode2)) {
14388 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "long_rand" "', argument " "2"" of type '" "size_t""'");
14390 arg2 =
static_cast< size_t >(val2);
14391 ecode3 = SWIG_AsVal_long(obj2, &val3);
14392 if (!SWIG_IsOK(ecode3)) {
14393 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "long_rand" "', argument " "3"" of type '" "long""'");
14395 arg3 =
static_cast< long >(val3);
14397 Py_BEGIN_ALLOW_THREADS
14399 faiss::long_rand(arg1,arg2,arg3);
14401 PyEval_RestoreThread(_save);
14402 PyErr_SetString(PyExc_RuntimeError, e.
what());
14405 Py_END_ALLOW_THREADS
14407 resultobj = SWIG_Py_Void();
14414 SWIGINTERN PyObject *_wrap_byte_rand(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14415 PyObject *resultobj = 0;
14416 uint8_t *arg1 = (uint8_t *) 0 ;
14425 PyObject * obj0 = 0 ;
14426 PyObject * obj1 = 0 ;
14427 PyObject * obj2 = 0 ;
14429 if (!PyArg_ParseTuple(args,(
char *)
"OOO:byte_rand",&obj0,&obj1,&obj2)) SWIG_fail;
14430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
14431 if (!SWIG_IsOK(res1)) {
14432 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "byte_rand" "', argument " "1"" of type '" "uint8_t *""'");
14434 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
14435 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
14436 if (!SWIG_IsOK(ecode2)) {
14437 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "byte_rand" "', argument " "2"" of type '" "size_t""'");
14439 arg2 =
static_cast< size_t >(val2);
14440 ecode3 = SWIG_AsVal_long(obj2, &val3);
14441 if (!SWIG_IsOK(ecode3)) {
14442 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "byte_rand" "', argument " "3"" of type '" "long""'");
14444 arg3 =
static_cast< long >(val3);
14446 Py_BEGIN_ALLOW_THREADS
14448 faiss::byte_rand(arg1,arg2,arg3);
14450 PyEval_RestoreThread(_save);
14451 PyErr_SetString(PyExc_RuntimeError, e.
what());
14454 Py_END_ALLOW_THREADS
14456 resultobj = SWIG_Py_Void();
14463 SWIGINTERN PyObject *_wrap_rand_perm(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14464 PyObject *resultobj = 0;
14465 int *arg1 = (
int *) 0 ;
14474 PyObject * obj0 = 0 ;
14475 PyObject * obj1 = 0 ;
14476 PyObject * obj2 = 0 ;
14478 if (!PyArg_ParseTuple(args,(
char *)
"OOO:rand_perm",&obj0,&obj1,&obj2)) SWIG_fail;
14479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 | 0 );
14480 if (!SWIG_IsOK(res1)) {
14481 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "rand_perm" "', argument " "1"" of type '" "int *""'");
14483 arg1 =
reinterpret_cast< int *
>(argp1);
14484 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
14485 if (!SWIG_IsOK(ecode2)) {
14486 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "rand_perm" "', argument " "2"" of type '" "size_t""'");
14488 arg2 =
static_cast< size_t >(val2);
14489 ecode3 = SWIG_AsVal_long(obj2, &val3);
14490 if (!SWIG_IsOK(ecode3)) {
14491 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "rand_perm" "', argument " "3"" of type '" "long""'");
14493 arg3 =
static_cast< long >(val3);
14495 Py_BEGIN_ALLOW_THREADS
14497 faiss::rand_perm(arg1,arg2,arg3);
14499 PyEval_RestoreThread(_save);
14500 PyErr_SetString(PyExc_RuntimeError, e.
what());
14503 Py_END_ALLOW_THREADS
14505 resultobj = SWIG_Py_Void();
14512 SWIGINTERN PyObject *_wrap_fvec_L2sqr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14513 PyObject *resultobj = 0;
14514 float *arg1 = (
float *) 0 ;
14515 float *arg2 = (
float *) 0 ;
14523 PyObject * obj0 = 0 ;
14524 PyObject * obj1 = 0 ;
14525 PyObject * obj2 = 0 ;
14528 if (!PyArg_ParseTuple(args,(
char *)
"OOO:fvec_L2sqr",&obj0,&obj1,&obj2)) SWIG_fail;
14529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14530 if (!SWIG_IsOK(res1)) {
14531 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_L2sqr" "', argument " "1"" of type '" "float const *""'");
14533 arg1 =
reinterpret_cast< float *
>(argp1);
14534 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
14535 if (!SWIG_IsOK(res2)) {
14536 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_L2sqr" "', argument " "2"" of type '" "float const *""'");
14538 arg2 =
reinterpret_cast< float *
>(argp2);
14539 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
14540 if (!SWIG_IsOK(ecode3)) {
14541 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvec_L2sqr" "', argument " "3"" of type '" "size_t""'");
14543 arg3 =
static_cast< size_t >(val3);
14545 Py_BEGIN_ALLOW_THREADS
14547 result = (float)
faiss::fvec_L2sqr((
float const *)arg1,(
float const *)arg2,arg3);
14549 PyEval_RestoreThread(_save);
14550 PyErr_SetString(PyExc_RuntimeError, e.
what());
14553 Py_END_ALLOW_THREADS
14555 resultobj = SWIG_From_float(static_cast< float >(result));
14562 SWIGINTERN PyObject *_wrap_fvec_inner_product(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14563 PyObject *resultobj = 0;
14564 float *arg1 = (
float *) 0 ;
14565 float *arg2 = (
float *) 0 ;
14573 PyObject * obj0 = 0 ;
14574 PyObject * obj1 = 0 ;
14575 PyObject * obj2 = 0 ;
14578 if (!PyArg_ParseTuple(args,(
char *)
"OOO:fvec_inner_product",&obj0,&obj1,&obj2)) SWIG_fail;
14579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
14580 if (!SWIG_IsOK(res1)) {
14581 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_inner_product" "', argument " "1"" of type '" "float const *""'");
14583 arg1 =
reinterpret_cast< float *
>(argp1);
14584 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
14585 if (!SWIG_IsOK(res2)) {
14586 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_inner_product" "', argument " "2"" of type '" "float const *""'");
14588 arg2 =
reinterpret_cast< float *
>(argp2);
14589 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
14590 if (!SWIG_IsOK(ecode3)) {
14591 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvec_inner_product" "', argument " "3"" of type '" "size_t""'");
14593 arg3 =
static_cast< size_t >(val3);
14595 Py_BEGIN_ALLOW_THREADS
14597 result = (float)faiss::fvec_inner_product((
float const *)arg1,(
float const *)arg2,arg3);
14599 PyEval_RestoreThread(_save);
14600 PyErr_SetString(PyExc_RuntimeError, e.
what());
14603 Py_END_ALLOW_THREADS
14605 resultobj = SWIG_From_float(static_cast< float >(result));
14612 SWIGINTERN PyObject *_wrap_imbalance_factor__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14613 PyObject *resultobj = 0;
14616 long *arg3 = (
long *) 0 ;
14623 PyObject * obj0 = 0 ;
14624 PyObject * obj1 = 0 ;
14625 PyObject * obj2 = 0 ;
14628 if (!PyArg_ParseTuple(args,(
char *)
"OOO:imbalance_factor",&obj0,&obj1,&obj2)) SWIG_fail;
14629 ecode1 = SWIG_AsVal_int(obj0, &val1);
14630 if (!SWIG_IsOK(ecode1)) {
14631 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "imbalance_factor" "', argument " "1"" of type '" "int""'");
14633 arg1 =
static_cast< int >(val1);
14634 ecode2 = SWIG_AsVal_int(obj1, &val2);
14635 if (!SWIG_IsOK(ecode2)) {
14636 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "imbalance_factor" "', argument " "2"" of type '" "int""'");
14638 arg2 =
static_cast< int >(val2);
14639 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
14640 if (!SWIG_IsOK(res3)) {
14641 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "imbalance_factor" "', argument " "3"" of type '" "long const *""'");
14643 arg3 =
reinterpret_cast< long *
>(argp3);
14645 Py_BEGIN_ALLOW_THREADS
14647 result = (double)faiss::imbalance_factor(arg1,arg2,(
long const *)arg3);
14649 PyEval_RestoreThread(_save);
14650 PyErr_SetString(PyExc_RuntimeError, e.
what());
14653 Py_END_ALLOW_THREADS
14655 resultobj = SWIG_From_double(static_cast< double >(result));
14662 SWIGINTERN PyObject *_wrap_imbalance_factor__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14663 PyObject *resultobj = 0;
14665 int *arg2 = (
int *) 0 ;
14670 PyObject * obj0 = 0 ;
14671 PyObject * obj1 = 0 ;
14674 if (!PyArg_ParseTuple(args,(
char *)
"OO:imbalance_factor",&obj0,&obj1)) SWIG_fail;
14675 ecode1 = SWIG_AsVal_int(obj0, &val1);
14676 if (!SWIG_IsOK(ecode1)) {
14677 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "imbalance_factor" "', argument " "1"" of type '" "int""'");
14679 arg1 =
static_cast< int >(val1);
14680 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
14681 if (!SWIG_IsOK(res2)) {
14682 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "imbalance_factor" "', argument " "2"" of type '" "int const *""'");
14684 arg2 =
reinterpret_cast< int *
>(argp2);
14686 Py_BEGIN_ALLOW_THREADS
14688 result = (double)faiss::imbalance_factor(arg1,(
int const *)arg2);
14690 PyEval_RestoreThread(_save);
14691 PyErr_SetString(PyExc_RuntimeError, e.
what());
14694 Py_END_ALLOW_THREADS
14696 resultobj = SWIG_From_double(static_cast< double >(result));
14703 SWIGINTERN PyObject *_wrap_imbalance_factor(PyObject *
self, PyObject *args) {
14705 PyObject *argv[4] = {
14710 if (!PyTuple_Check(args)) SWIG_fail;
14711 argc = args ? PyObject_Length(args) : 0;
14712 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
14713 argv[ii] = PyTuple_GET_ITEM(args,ii);
14718 int res = SWIG_AsVal_int(argv[0], NULL);
14719 _v = SWIG_CheckState(res);
14723 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
14724 _v = SWIG_CheckState(res);
14726 return _wrap_imbalance_factor__SWIG_1(
self, args);
14733 int res = SWIG_AsVal_int(argv[0], NULL);
14734 _v = SWIG_CheckState(res);
14738 int res = SWIG_AsVal_int(argv[1], NULL);
14739 _v = SWIG_CheckState(res);
14743 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_long, 0);
14744 _v = SWIG_CheckState(res);
14746 return _wrap_imbalance_factor__SWIG_0(
self, args);
14753 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'imbalance_factor'.\n"
14754 " Possible C/C++ prototypes are:\n"
14755 " faiss::imbalance_factor(int,int,long const *)\n"
14756 " faiss::imbalance_factor(int,int const *)\n");
14761 SWIGINTERN PyObject *_wrap_pairwise_L2sqr__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14762 PyObject *resultobj = 0;
14765 float *arg3 = (
float *) 0 ;
14767 float *arg5 = (
float *) 0 ;
14768 float *arg6 = (
float *) 0 ;
14790 PyObject * obj0 = 0 ;
14791 PyObject * obj1 = 0 ;
14792 PyObject * obj2 = 0 ;
14793 PyObject * obj3 = 0 ;
14794 PyObject * obj4 = 0 ;
14795 PyObject * obj5 = 0 ;
14796 PyObject * obj6 = 0 ;
14797 PyObject * obj7 = 0 ;
14798 PyObject * obj8 = 0 ;
14800 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOO:pairwise_L2sqr",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
14801 ecode1 = SWIG_AsVal_long(obj0, &val1);
14802 if (!SWIG_IsOK(ecode1)) {
14803 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "pairwise_L2sqr" "', argument " "1"" of type '" "long""'");
14805 arg1 =
static_cast< long >(val1);
14806 ecode2 = SWIG_AsVal_long(obj1, &val2);
14807 if (!SWIG_IsOK(ecode2)) {
14808 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "pairwise_L2sqr" "', argument " "2"" of type '" "long""'");
14810 arg2 =
static_cast< long >(val2);
14811 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
14812 if (!SWIG_IsOK(res3)) {
14813 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "pairwise_L2sqr" "', argument " "3"" of type '" "float const *""'");
14815 arg3 =
reinterpret_cast< float *
>(argp3);
14816 ecode4 = SWIG_AsVal_long(obj3, &val4);
14817 if (!SWIG_IsOK(ecode4)) {
14818 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "pairwise_L2sqr" "', argument " "4"" of type '" "long""'");
14820 arg4 =
static_cast< long >(val4);
14821 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
14822 if (!SWIG_IsOK(res5)) {
14823 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "pairwise_L2sqr" "', argument " "5"" of type '" "float const *""'");
14825 arg5 =
reinterpret_cast< float *
>(argp5);
14826 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
14827 if (!SWIG_IsOK(res6)) {
14828 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "pairwise_L2sqr" "', argument " "6"" of type '" "float *""'");
14830 arg6 =
reinterpret_cast< float *
>(argp6);
14831 ecode7 = SWIG_AsVal_long(obj6, &val7);
14832 if (!SWIG_IsOK(ecode7)) {
14833 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "pairwise_L2sqr" "', argument " "7"" of type '" "long""'");
14835 arg7 =
static_cast< long >(val7);
14836 ecode8 = SWIG_AsVal_long(obj7, &val8);
14837 if (!SWIG_IsOK(ecode8)) {
14838 SWIG_exception_fail(SWIG_ArgError(ecode8),
"in method '" "pairwise_L2sqr" "', argument " "8"" of type '" "long""'");
14840 arg8 =
static_cast< long >(val8);
14841 ecode9 = SWIG_AsVal_long(obj8, &val9);
14842 if (!SWIG_IsOK(ecode9)) {
14843 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "pairwise_L2sqr" "', argument " "9"" of type '" "long""'");
14845 arg9 =
static_cast< long >(val9);
14847 Py_BEGIN_ALLOW_THREADS
14851 PyEval_RestoreThread(_save);
14852 PyErr_SetString(PyExc_RuntimeError, e.
what());
14855 Py_END_ALLOW_THREADS
14857 resultobj = SWIG_Py_Void();
14864 SWIGINTERN PyObject *_wrap_pairwise_L2sqr__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14865 PyObject *resultobj = 0;
14868 float *arg3 = (
float *) 0 ;
14870 float *arg5 = (
float *) 0 ;
14871 float *arg6 = (
float *) 0 ;
14890 PyObject * obj0 = 0 ;
14891 PyObject * obj1 = 0 ;
14892 PyObject * obj2 = 0 ;
14893 PyObject * obj3 = 0 ;
14894 PyObject * obj4 = 0 ;
14895 PyObject * obj5 = 0 ;
14896 PyObject * obj6 = 0 ;
14897 PyObject * obj7 = 0 ;
14899 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:pairwise_L2sqr",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14900 ecode1 = SWIG_AsVal_long(obj0, &val1);
14901 if (!SWIG_IsOK(ecode1)) {
14902 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "pairwise_L2sqr" "', argument " "1"" of type '" "long""'");
14904 arg1 =
static_cast< long >(val1);
14905 ecode2 = SWIG_AsVal_long(obj1, &val2);
14906 if (!SWIG_IsOK(ecode2)) {
14907 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "pairwise_L2sqr" "', argument " "2"" of type '" "long""'");
14909 arg2 =
static_cast< long >(val2);
14910 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
14911 if (!SWIG_IsOK(res3)) {
14912 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "pairwise_L2sqr" "', argument " "3"" of type '" "float const *""'");
14914 arg3 =
reinterpret_cast< float *
>(argp3);
14915 ecode4 = SWIG_AsVal_long(obj3, &val4);
14916 if (!SWIG_IsOK(ecode4)) {
14917 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "pairwise_L2sqr" "', argument " "4"" of type '" "long""'");
14919 arg4 =
static_cast< long >(val4);
14920 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
14921 if (!SWIG_IsOK(res5)) {
14922 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "pairwise_L2sqr" "', argument " "5"" of type '" "float const *""'");
14924 arg5 =
reinterpret_cast< float *
>(argp5);
14925 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
14926 if (!SWIG_IsOK(res6)) {
14927 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "pairwise_L2sqr" "', argument " "6"" of type '" "float *""'");
14929 arg6 =
reinterpret_cast< float *
>(argp6);
14930 ecode7 = SWIG_AsVal_long(obj6, &val7);
14931 if (!SWIG_IsOK(ecode7)) {
14932 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "pairwise_L2sqr" "', argument " "7"" of type '" "long""'");
14934 arg7 =
static_cast< long >(val7);
14935 ecode8 = SWIG_AsVal_long(obj7, &val8);
14936 if (!SWIG_IsOK(ecode8)) {
14937 SWIG_exception_fail(SWIG_ArgError(ecode8),
"in method '" "pairwise_L2sqr" "', argument " "8"" of type '" "long""'");
14939 arg8 =
static_cast< long >(val8);
14941 Py_BEGIN_ALLOW_THREADS
14945 PyEval_RestoreThread(_save);
14946 PyErr_SetString(PyExc_RuntimeError, e.
what());
14949 Py_END_ALLOW_THREADS
14951 resultobj = SWIG_Py_Void();
14958 SWIGINTERN PyObject *_wrap_pairwise_L2sqr__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14959 PyObject *resultobj = 0;
14962 float *arg3 = (
float *) 0 ;
14964 float *arg5 = (
float *) 0 ;
14965 float *arg6 = (
float *) 0 ;
14981 PyObject * obj0 = 0 ;
14982 PyObject * obj1 = 0 ;
14983 PyObject * obj2 = 0 ;
14984 PyObject * obj3 = 0 ;
14985 PyObject * obj4 = 0 ;
14986 PyObject * obj5 = 0 ;
14987 PyObject * obj6 = 0 ;
14989 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:pairwise_L2sqr",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14990 ecode1 = SWIG_AsVal_long(obj0, &val1);
14991 if (!SWIG_IsOK(ecode1)) {
14992 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "pairwise_L2sqr" "', argument " "1"" of type '" "long""'");
14994 arg1 =
static_cast< long >(val1);
14995 ecode2 = SWIG_AsVal_long(obj1, &val2);
14996 if (!SWIG_IsOK(ecode2)) {
14997 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "pairwise_L2sqr" "', argument " "2"" of type '" "long""'");
14999 arg2 =
static_cast< long >(val2);
15000 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
15001 if (!SWIG_IsOK(res3)) {
15002 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "pairwise_L2sqr" "', argument " "3"" of type '" "float const *""'");
15004 arg3 =
reinterpret_cast< float *
>(argp3);
15005 ecode4 = SWIG_AsVal_long(obj3, &val4);
15006 if (!SWIG_IsOK(ecode4)) {
15007 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "pairwise_L2sqr" "', argument " "4"" of type '" "long""'");
15009 arg4 =
static_cast< long >(val4);
15010 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
15011 if (!SWIG_IsOK(res5)) {
15012 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "pairwise_L2sqr" "', argument " "5"" of type '" "float const *""'");
15014 arg5 =
reinterpret_cast< float *
>(argp5);
15015 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
15016 if (!SWIG_IsOK(res6)) {
15017 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "pairwise_L2sqr" "', argument " "6"" of type '" "float *""'");
15019 arg6 =
reinterpret_cast< float *
>(argp6);
15020 ecode7 = SWIG_AsVal_long(obj6, &val7);
15021 if (!SWIG_IsOK(ecode7)) {
15022 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "pairwise_L2sqr" "', argument " "7"" of type '" "long""'");
15024 arg7 =
static_cast< long >(val7);
15026 Py_BEGIN_ALLOW_THREADS
15030 PyEval_RestoreThread(_save);
15031 PyErr_SetString(PyExc_RuntimeError, e.
what());
15034 Py_END_ALLOW_THREADS
15036 resultobj = SWIG_Py_Void();
15043 SWIGINTERN PyObject *_wrap_pairwise_L2sqr__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15044 PyObject *resultobj = 0;
15047 float *arg3 = (
float *) 0 ;
15049 float *arg5 = (
float *) 0 ;
15050 float *arg6 = (
float *) 0 ;
15063 PyObject * obj0 = 0 ;
15064 PyObject * obj1 = 0 ;
15065 PyObject * obj2 = 0 ;
15066 PyObject * obj3 = 0 ;
15067 PyObject * obj4 = 0 ;
15068 PyObject * obj5 = 0 ;
15070 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:pairwise_L2sqr",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15071 ecode1 = SWIG_AsVal_long(obj0, &val1);
15072 if (!SWIG_IsOK(ecode1)) {
15073 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "pairwise_L2sqr" "', argument " "1"" of type '" "long""'");
15075 arg1 =
static_cast< long >(val1);
15076 ecode2 = SWIG_AsVal_long(obj1, &val2);
15077 if (!SWIG_IsOK(ecode2)) {
15078 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "pairwise_L2sqr" "', argument " "2"" of type '" "long""'");
15080 arg2 =
static_cast< long >(val2);
15081 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
15082 if (!SWIG_IsOK(res3)) {
15083 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "pairwise_L2sqr" "', argument " "3"" of type '" "float const *""'");
15085 arg3 =
reinterpret_cast< float *
>(argp3);
15086 ecode4 = SWIG_AsVal_long(obj3, &val4);
15087 if (!SWIG_IsOK(ecode4)) {
15088 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "pairwise_L2sqr" "', argument " "4"" of type '" "long""'");
15090 arg4 =
static_cast< long >(val4);
15091 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
15092 if (!SWIG_IsOK(res5)) {
15093 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "pairwise_L2sqr" "', argument " "5"" of type '" "float const *""'");
15095 arg5 =
reinterpret_cast< float *
>(argp5);
15096 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
15097 if (!SWIG_IsOK(res6)) {
15098 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "pairwise_L2sqr" "', argument " "6"" of type '" "float *""'");
15100 arg6 =
reinterpret_cast< float *
>(argp6);
15102 Py_BEGIN_ALLOW_THREADS
15106 PyEval_RestoreThread(_save);
15107 PyErr_SetString(PyExc_RuntimeError, e.
what());
15110 Py_END_ALLOW_THREADS
15112 resultobj = SWIG_Py_Void();
15119 SWIGINTERN PyObject *_wrap_pairwise_L2sqr(PyObject *
self, PyObject *args) {
15121 PyObject *argv[10] = {
15126 if (!PyTuple_Check(args)) SWIG_fail;
15127 argc = args ? PyObject_Length(args) : 0;
15128 for (ii = 0; (ii < 9) && (ii < argc); ii++) {
15129 argv[ii] = PyTuple_GET_ITEM(args,ii);
15134 int res = SWIG_AsVal_long(argv[0], NULL);
15135 _v = SWIG_CheckState(res);
15139 int res = SWIG_AsVal_long(argv[1], NULL);
15140 _v = SWIG_CheckState(res);
15144 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
15145 _v = SWIG_CheckState(res);
15148 int res = SWIG_AsVal_long(argv[3], NULL);
15149 _v = SWIG_CheckState(res);
15153 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
15154 _v = SWIG_CheckState(res);
15157 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
15158 _v = SWIG_CheckState(res);
15160 return _wrap_pairwise_L2sqr__SWIG_3(
self, args);
15171 int res = SWIG_AsVal_long(argv[0], NULL);
15172 _v = SWIG_CheckState(res);
15176 int res = SWIG_AsVal_long(argv[1], NULL);
15177 _v = SWIG_CheckState(res);
15181 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
15182 _v = SWIG_CheckState(res);
15185 int res = SWIG_AsVal_long(argv[3], NULL);
15186 _v = SWIG_CheckState(res);
15190 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
15191 _v = SWIG_CheckState(res);
15194 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
15195 _v = SWIG_CheckState(res);
15198 int res = SWIG_AsVal_long(argv[6], NULL);
15199 _v = SWIG_CheckState(res);
15202 return _wrap_pairwise_L2sqr__SWIG_2(
self, args);
15214 int res = SWIG_AsVal_long(argv[0], NULL);
15215 _v = SWIG_CheckState(res);
15219 int res = SWIG_AsVal_long(argv[1], NULL);
15220 _v = SWIG_CheckState(res);
15224 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
15225 _v = SWIG_CheckState(res);
15228 int res = SWIG_AsVal_long(argv[3], NULL);
15229 _v = SWIG_CheckState(res);
15233 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
15234 _v = SWIG_CheckState(res);
15237 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
15238 _v = SWIG_CheckState(res);
15241 int res = SWIG_AsVal_long(argv[6], NULL);
15242 _v = SWIG_CheckState(res);
15246 int res = SWIG_AsVal_long(argv[7], NULL);
15247 _v = SWIG_CheckState(res);
15250 return _wrap_pairwise_L2sqr__SWIG_1(
self, args);
15263 int res = SWIG_AsVal_long(argv[0], NULL);
15264 _v = SWIG_CheckState(res);
15268 int res = SWIG_AsVal_long(argv[1], NULL);
15269 _v = SWIG_CheckState(res);
15273 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
15274 _v = SWIG_CheckState(res);
15277 int res = SWIG_AsVal_long(argv[3], NULL);
15278 _v = SWIG_CheckState(res);
15282 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
15283 _v = SWIG_CheckState(res);
15286 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
15287 _v = SWIG_CheckState(res);
15290 int res = SWIG_AsVal_long(argv[6], NULL);
15291 _v = SWIG_CheckState(res);
15295 int res = SWIG_AsVal_long(argv[7], NULL);
15296 _v = SWIG_CheckState(res);
15300 int res = SWIG_AsVal_long(argv[8], NULL);
15301 _v = SWIG_CheckState(res);
15304 return _wrap_pairwise_L2sqr__SWIG_0(
self, args);
15317 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'pairwise_L2sqr'.\n"
15318 " Possible C/C++ prototypes are:\n"
15319 " faiss::pairwise_L2sqr(long,long,float const *,long,float const *,float *,long,long,long)\n"
15320 " faiss::pairwise_L2sqr(long,long,float const *,long,float const *,float *,long,long)\n"
15321 " faiss::pairwise_L2sqr(long,long,float const *,long,float const *,float *,long)\n"
15322 " faiss::pairwise_L2sqr(long,long,float const *,long,float const *,float *)\n");
15327 SWIGINTERN PyObject *_wrap_fvec_inner_products_ny(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15328 PyObject *resultobj = 0;
15329 float *arg1 = (
float *) 0 ;
15330 float *arg2 = (
float *) 0 ;
15331 float *arg3 = (
float *) 0 ;
15344 PyObject * obj0 = 0 ;
15345 PyObject * obj1 = 0 ;
15346 PyObject * obj2 = 0 ;
15347 PyObject * obj3 = 0 ;
15348 PyObject * obj4 = 0 ;
15350 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:fvec_inner_products_ny",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
15352 if (!SWIG_IsOK(res1)) {
15353 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_inner_products_ny" "', argument " "1"" of type '" "float *""'");
15355 arg1 =
reinterpret_cast< float *
>(argp1);
15356 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
15357 if (!SWIG_IsOK(res2)) {
15358 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_inner_products_ny" "', argument " "2"" of type '" "float const *""'");
15360 arg2 =
reinterpret_cast< float *
>(argp2);
15361 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
15362 if (!SWIG_IsOK(res3)) {
15363 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "fvec_inner_products_ny" "', argument " "3"" of type '" "float const *""'");
15365 arg3 =
reinterpret_cast< float *
>(argp3);
15366 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
15367 if (!SWIG_IsOK(ecode4)) {
15368 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "fvec_inner_products_ny" "', argument " "4"" of type '" "size_t""'");
15370 arg4 =
static_cast< size_t >(val4);
15371 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
15372 if (!SWIG_IsOK(ecode5)) {
15373 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "fvec_inner_products_ny" "', argument " "5"" of type '" "size_t""'");
15375 arg5 =
static_cast< size_t >(val5);
15377 Py_BEGIN_ALLOW_THREADS
15379 faiss::fvec_inner_products_ny(arg1,(
float const *)arg2,(
float const *)arg3,arg4,arg5);
15381 PyEval_RestoreThread(_save);
15382 PyErr_SetString(PyExc_RuntimeError, e.
what());
15385 Py_END_ALLOW_THREADS
15387 resultobj = SWIG_Py_Void();
15394 SWIGINTERN PyObject *_wrap_fvec_L2sqr_ny(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15395 PyObject *resultobj = 0;
15396 float *arg1 = (
float *) 0 ;
15397 float *arg2 = (
float *) 0 ;
15398 float *arg3 = (
float *) 0 ;
15411 PyObject * obj0 = 0 ;
15412 PyObject * obj1 = 0 ;
15413 PyObject * obj2 = 0 ;
15414 PyObject * obj3 = 0 ;
15415 PyObject * obj4 = 0 ;
15417 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:fvec_L2sqr_ny",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
15419 if (!SWIG_IsOK(res1)) {
15420 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_L2sqr_ny" "', argument " "1"" of type '" "float *""'");
15422 arg1 =
reinterpret_cast< float *
>(argp1);
15423 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
15424 if (!SWIG_IsOK(res2)) {
15425 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_L2sqr_ny" "', argument " "2"" of type '" "float const *""'");
15427 arg2 =
reinterpret_cast< float *
>(argp2);
15428 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
15429 if (!SWIG_IsOK(res3)) {
15430 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "fvec_L2sqr_ny" "', argument " "3"" of type '" "float const *""'");
15432 arg3 =
reinterpret_cast< float *
>(argp3);
15433 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
15434 if (!SWIG_IsOK(ecode4)) {
15435 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "fvec_L2sqr_ny" "', argument " "4"" of type '" "size_t""'");
15437 arg4 =
static_cast< size_t >(val4);
15438 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
15439 if (!SWIG_IsOK(ecode5)) {
15440 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "fvec_L2sqr_ny" "', argument " "5"" of type '" "size_t""'");
15442 arg5 =
static_cast< size_t >(val5);
15444 Py_BEGIN_ALLOW_THREADS
15446 faiss::fvec_L2sqr_ny(arg1,(
float const *)arg2,(
float const *)arg3,arg4,arg5);
15448 PyEval_RestoreThread(_save);
15449 PyErr_SetString(PyExc_RuntimeError, e.
what());
15452 Py_END_ALLOW_THREADS
15454 resultobj = SWIG_Py_Void();
15461 SWIGINTERN PyObject *_wrap_fvec_norm_L2sqr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15462 PyObject *resultobj = 0;
15463 float *arg1 = (
float *) 0 ;
15469 PyObject * obj0 = 0 ;
15470 PyObject * obj1 = 0 ;
15473 if (!PyArg_ParseTuple(args,(
char *)
"OO:fvec_norm_L2sqr",&obj0,&obj1)) SWIG_fail;
15474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
15475 if (!SWIG_IsOK(res1)) {
15476 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_norm_L2sqr" "', argument " "1"" of type '" "float const *""'");
15478 arg1 =
reinterpret_cast< float *
>(argp1);
15479 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
15480 if (!SWIG_IsOK(ecode2)) {
15481 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "fvec_norm_L2sqr" "', argument " "2"" of type '" "size_t""'");
15483 arg2 =
static_cast< size_t >(val2);
15485 Py_BEGIN_ALLOW_THREADS
15489 PyEval_RestoreThread(_save);
15490 PyErr_SetString(PyExc_RuntimeError, e.
what());
15493 Py_END_ALLOW_THREADS
15495 resultobj = SWIG_From_float(static_cast< float >(result));
15502 SWIGINTERN PyObject *_wrap_fvec_norms_L2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15503 PyObject *resultobj = 0;
15504 float *arg1 = (
float *) 0 ;
15505 float *arg2 = (
float *) 0 ;
15516 PyObject * obj0 = 0 ;
15517 PyObject * obj1 = 0 ;
15518 PyObject * obj2 = 0 ;
15519 PyObject * obj3 = 0 ;
15521 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:fvec_norms_L2",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
15523 if (!SWIG_IsOK(res1)) {
15524 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_norms_L2" "', argument " "1"" of type '" "float *""'");
15526 arg1 =
reinterpret_cast< float *
>(argp1);
15527 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
15528 if (!SWIG_IsOK(res2)) {
15529 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_norms_L2" "', argument " "2"" of type '" "float const *""'");
15531 arg2 =
reinterpret_cast< float *
>(argp2);
15532 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
15533 if (!SWIG_IsOK(ecode3)) {
15534 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvec_norms_L2" "', argument " "3"" of type '" "size_t""'");
15536 arg3 =
static_cast< size_t >(val3);
15537 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
15538 if (!SWIG_IsOK(ecode4)) {
15539 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "fvec_norms_L2" "', argument " "4"" of type '" "size_t""'");
15541 arg4 =
static_cast< size_t >(val4);
15543 Py_BEGIN_ALLOW_THREADS
15547 PyEval_RestoreThread(_save);
15548 PyErr_SetString(PyExc_RuntimeError, e.
what());
15551 Py_END_ALLOW_THREADS
15553 resultobj = SWIG_Py_Void();
15560 SWIGINTERN PyObject *_wrap_fvec_norms_L2sqr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15561 PyObject *resultobj = 0;
15562 float *arg1 = (
float *) 0 ;
15563 float *arg2 = (
float *) 0 ;
15574 PyObject * obj0 = 0 ;
15575 PyObject * obj1 = 0 ;
15576 PyObject * obj2 = 0 ;
15577 PyObject * obj3 = 0 ;
15579 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:fvec_norms_L2sqr",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
15581 if (!SWIG_IsOK(res1)) {
15582 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_norms_L2sqr" "', argument " "1"" of type '" "float *""'");
15584 arg1 =
reinterpret_cast< float *
>(argp1);
15585 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
15586 if (!SWIG_IsOK(res2)) {
15587 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_norms_L2sqr" "', argument " "2"" of type '" "float const *""'");
15589 arg2 =
reinterpret_cast< float *
>(argp2);
15590 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
15591 if (!SWIG_IsOK(ecode3)) {
15592 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvec_norms_L2sqr" "', argument " "3"" of type '" "size_t""'");
15594 arg3 =
static_cast< size_t >(val3);
15595 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
15596 if (!SWIG_IsOK(ecode4)) {
15597 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "fvec_norms_L2sqr" "', argument " "4"" of type '" "size_t""'");
15599 arg4 =
static_cast< size_t >(val4);
15601 Py_BEGIN_ALLOW_THREADS
15605 PyEval_RestoreThread(_save);
15606 PyErr_SetString(PyExc_RuntimeError, e.
what());
15609 Py_END_ALLOW_THREADS
15611 resultobj = SWIG_Py_Void();
15618 SWIGINTERN PyObject *_wrap_fvec_renorm_L2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15619 PyObject *resultobj = 0;
15622 float *arg3 = (
float *) 0 ;
15629 PyObject * obj0 = 0 ;
15630 PyObject * obj1 = 0 ;
15631 PyObject * obj2 = 0 ;
15633 if (!PyArg_ParseTuple(args,(
char *)
"OOO:fvec_renorm_L2",&obj0,&obj1,&obj2)) SWIG_fail;
15634 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
15635 if (!SWIG_IsOK(ecode1)) {
15636 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvec_renorm_L2" "', argument " "1"" of type '" "size_t""'");
15638 arg1 =
static_cast< size_t >(val1);
15639 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
15640 if (!SWIG_IsOK(ecode2)) {
15641 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "fvec_renorm_L2" "', argument " "2"" of type '" "size_t""'");
15643 arg2 =
static_cast< size_t >(val2);
15644 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
15645 if (!SWIG_IsOK(res3)) {
15646 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "fvec_renorm_L2" "', argument " "3"" of type '" "float *""'");
15648 arg3 =
reinterpret_cast< float *
>(argp3);
15650 Py_BEGIN_ALLOW_THREADS
15652 faiss::fvec_renorm_L2(arg1,arg2,arg3);
15654 PyEval_RestoreThread(_save);
15655 PyErr_SetString(PyExc_RuntimeError, e.
what());
15658 Py_END_ALLOW_THREADS
15660 resultobj = SWIG_Py_Void();
15667 SWIGINTERN PyObject *_wrap_inner_product_to_L2sqr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15668 PyObject *resultobj = 0;
15669 float *arg1 = (
float *) 0 ;
15670 float *arg2 = (
float *) 0 ;
15671 float *arg3 = (
float *) 0 ;
15684 PyObject * obj0 = 0 ;
15685 PyObject * obj1 = 0 ;
15686 PyObject * obj2 = 0 ;
15687 PyObject * obj3 = 0 ;
15688 PyObject * obj4 = 0 ;
15690 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:inner_product_to_L2sqr",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
15692 if (!SWIG_IsOK(res1)) {
15693 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "inner_product_to_L2sqr" "', argument " "1"" of type '" "float *""'");
15695 arg1 =
reinterpret_cast< float *
>(argp1);
15696 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
15697 if (!SWIG_IsOK(res2)) {
15698 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "inner_product_to_L2sqr" "', argument " "2"" of type '" "float const *""'");
15700 arg2 =
reinterpret_cast< float *
>(argp2);
15701 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
15702 if (!SWIG_IsOK(res3)) {
15703 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "inner_product_to_L2sqr" "', argument " "3"" of type '" "float const *""'");
15705 arg3 =
reinterpret_cast< float *
>(argp3);
15706 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
15707 if (!SWIG_IsOK(ecode4)) {
15708 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "inner_product_to_L2sqr" "', argument " "4"" of type '" "size_t""'");
15710 arg4 =
static_cast< size_t >(val4);
15711 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
15712 if (!SWIG_IsOK(ecode5)) {
15713 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "inner_product_to_L2sqr" "', argument " "5"" of type '" "size_t""'");
15715 arg5 =
static_cast< size_t >(val5);
15717 Py_BEGIN_ALLOW_THREADS
15719 faiss::inner_product_to_L2sqr(arg1,(
float const *)arg2,(
float const *)arg3,arg4,arg5);
15721 PyEval_RestoreThread(_save);
15722 PyErr_SetString(PyExc_RuntimeError, e.
what());
15725 Py_END_ALLOW_THREADS
15727 resultobj = SWIG_Py_Void();
15734 SWIGINTERN PyObject *_wrap_fvec_inner_products_by_idx(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15735 PyObject *resultobj = 0;
15736 float *arg1 = (
float *) 0 ;
15737 float *arg2 = (
float *) 0 ;
15738 float *arg3 = (
float *) 0 ;
15739 long *arg4 = (
long *) 0 ;
15757 PyObject * obj0 = 0 ;
15758 PyObject * obj1 = 0 ;
15759 PyObject * obj2 = 0 ;
15760 PyObject * obj3 = 0 ;
15761 PyObject * obj4 = 0 ;
15762 PyObject * obj5 = 0 ;
15763 PyObject * obj6 = 0 ;
15765 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:fvec_inner_products_by_idx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
15767 if (!SWIG_IsOK(res1)) {
15768 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_inner_products_by_idx" "', argument " "1"" of type '" "float *""'");
15770 arg1 =
reinterpret_cast< float *
>(argp1);
15771 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
15772 if (!SWIG_IsOK(res2)) {
15773 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_inner_products_by_idx" "', argument " "2"" of type '" "float const *""'");
15775 arg2 =
reinterpret_cast< float *
>(argp2);
15776 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
15777 if (!SWIG_IsOK(res3)) {
15778 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "fvec_inner_products_by_idx" "', argument " "3"" of type '" "float const *""'");
15780 arg3 =
reinterpret_cast< float *
>(argp3);
15781 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
15782 if (!SWIG_IsOK(res4)) {
15783 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "fvec_inner_products_by_idx" "', argument " "4"" of type '" "long const *""'");
15785 arg4 =
reinterpret_cast< long *
>(argp4);
15786 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
15787 if (!SWIG_IsOK(ecode5)) {
15788 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "fvec_inner_products_by_idx" "', argument " "5"" of type '" "size_t""'");
15790 arg5 =
static_cast< size_t >(val5);
15791 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
15792 if (!SWIG_IsOK(ecode6)) {
15793 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "fvec_inner_products_by_idx" "', argument " "6"" of type '" "size_t""'");
15795 arg6 =
static_cast< size_t >(val6);
15796 ecode7 = SWIG_AsVal_size_t(obj6, &val7);
15797 if (!SWIG_IsOK(ecode7)) {
15798 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "fvec_inner_products_by_idx" "', argument " "7"" of type '" "size_t""'");
15800 arg7 =
static_cast< size_t >(val7);
15802 Py_BEGIN_ALLOW_THREADS
15804 faiss::fvec_inner_products_by_idx(arg1,(
float const *)arg2,(
float const *)arg3,(
long const *)arg4,arg5,arg6,arg7);
15806 PyEval_RestoreThread(_save);
15807 PyErr_SetString(PyExc_RuntimeError, e.
what());
15810 Py_END_ALLOW_THREADS
15812 resultobj = SWIG_Py_Void();
15819 SWIGINTERN PyObject *_wrap_fvec_L2sqr_by_idx(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15820 PyObject *resultobj = 0;
15821 float *arg1 = (
float *) 0 ;
15822 float *arg2 = (
float *) 0 ;
15823 float *arg3 = (
float *) 0 ;
15824 long *arg4 = (
long *) 0 ;
15842 PyObject * obj0 = 0 ;
15843 PyObject * obj1 = 0 ;
15844 PyObject * obj2 = 0 ;
15845 PyObject * obj3 = 0 ;
15846 PyObject * obj4 = 0 ;
15847 PyObject * obj5 = 0 ;
15848 PyObject * obj6 = 0 ;
15850 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:fvec_L2sqr_by_idx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
15852 if (!SWIG_IsOK(res1)) {
15853 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "fvec_L2sqr_by_idx" "', argument " "1"" of type '" "float *""'");
15855 arg1 =
reinterpret_cast< float *
>(argp1);
15856 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
15857 if (!SWIG_IsOK(res2)) {
15858 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_L2sqr_by_idx" "', argument " "2"" of type '" "float const *""'");
15860 arg2 =
reinterpret_cast< float *
>(argp2);
15861 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
15862 if (!SWIG_IsOK(res3)) {
15863 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "fvec_L2sqr_by_idx" "', argument " "3"" of type '" "float const *""'");
15865 arg3 =
reinterpret_cast< float *
>(argp3);
15866 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
15867 if (!SWIG_IsOK(res4)) {
15868 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "fvec_L2sqr_by_idx" "', argument " "4"" of type '" "long const *""'");
15870 arg4 =
reinterpret_cast< long *
>(argp4);
15871 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
15872 if (!SWIG_IsOK(ecode5)) {
15873 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "fvec_L2sqr_by_idx" "', argument " "5"" of type '" "size_t""'");
15875 arg5 =
static_cast< size_t >(val5);
15876 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
15877 if (!SWIG_IsOK(ecode6)) {
15878 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "fvec_L2sqr_by_idx" "', argument " "6"" of type '" "size_t""'");
15880 arg6 =
static_cast< size_t >(val6);
15881 ecode7 = SWIG_AsVal_size_t(obj6, &val7);
15882 if (!SWIG_IsOK(ecode7)) {
15883 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "fvec_L2sqr_by_idx" "', argument " "7"" of type '" "size_t""'");
15885 arg7 =
static_cast< size_t >(val7);
15887 Py_BEGIN_ALLOW_THREADS
15889 faiss::fvec_L2sqr_by_idx(arg1,(
float const *)arg2,(
float const *)arg3,(
long const *)arg4,arg5,arg6,arg7);
15891 PyEval_RestoreThread(_save);
15892 PyErr_SetString(PyExc_RuntimeError, e.
what());
15895 Py_END_ALLOW_THREADS
15897 resultobj = SWIG_Py_Void();
15904 SWIGINTERN
int Swig_var_distance_compute_blas_threshold_set(PyObject *_val) {
15907 int res = SWIG_AsVal_int(_val, &val);
15908 if (!SWIG_IsOK(res)) {
15909 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""faiss::distance_compute_blas_threshold""' of type '""int""'");
15911 faiss::distance_compute_blas_threshold =
static_cast< int >(val);
15919 SWIGINTERN PyObject *Swig_var_distance_compute_blas_threshold_get(
void) {
15920 PyObject *pyobj = 0;
15922 pyobj = SWIG_From_int(static_cast< int >(faiss::distance_compute_blas_threshold));
15927 SWIGINTERN PyObject *_wrap_knn_inner_product(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15928 PyObject *resultobj = 0;
15929 float *arg1 = (
float *) 0 ;
15930 float *arg2 = (
float *) 0 ;
15947 PyObject * obj0 = 0 ;
15948 PyObject * obj1 = 0 ;
15949 PyObject * obj2 = 0 ;
15950 PyObject * obj3 = 0 ;
15951 PyObject * obj4 = 0 ;
15952 PyObject * obj5 = 0 ;
15954 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:knn_inner_product",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
15956 if (!SWIG_IsOK(res1)) {
15957 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "knn_inner_product" "', argument " "1"" of type '" "float const *""'");
15959 arg1 =
reinterpret_cast< float *
>(argp1);
15960 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
15961 if (!SWIG_IsOK(res2)) {
15962 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "knn_inner_product" "', argument " "2"" of type '" "float const *""'");
15964 arg2 =
reinterpret_cast< float *
>(argp2);
15965 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
15966 if (!SWIG_IsOK(ecode3)) {
15967 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "knn_inner_product" "', argument " "3"" of type '" "size_t""'");
15969 arg3 =
static_cast< size_t >(val3);
15970 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
15971 if (!SWIG_IsOK(ecode4)) {
15972 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "knn_inner_product" "', argument " "4"" of type '" "size_t""'");
15974 arg4 =
static_cast< size_t >(val4);
15975 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
15976 if (!SWIG_IsOK(ecode5)) {
15977 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "knn_inner_product" "', argument " "5"" of type '" "size_t""'");
15979 arg5 =
static_cast< size_t >(val5);
15980 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
15981 if (!SWIG_IsOK(res6)) {
15982 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "knn_inner_product" "', argument " "6"" of type '" "faiss::float_minheap_array_t *""'");
15986 Py_BEGIN_ALLOW_THREADS
15990 PyEval_RestoreThread(_save);
15991 PyErr_SetString(PyExc_RuntimeError, e.
what());
15994 Py_END_ALLOW_THREADS
15996 resultobj = SWIG_Py_Void();
16003 SWIGINTERN PyObject *_wrap_knn_L2sqr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16004 PyObject *resultobj = 0;
16005 float *arg1 = (
float *) 0 ;
16006 float *arg2 = (
float *) 0 ;
16023 PyObject * obj0 = 0 ;
16024 PyObject * obj1 = 0 ;
16025 PyObject * obj2 = 0 ;
16026 PyObject * obj3 = 0 ;
16027 PyObject * obj4 = 0 ;
16028 PyObject * obj5 = 0 ;
16030 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:knn_L2sqr",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
16032 if (!SWIG_IsOK(res1)) {
16033 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "knn_L2sqr" "', argument " "1"" of type '" "float const *""'");
16035 arg1 =
reinterpret_cast< float *
>(argp1);
16036 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
16037 if (!SWIG_IsOK(res2)) {
16038 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "knn_L2sqr" "', argument " "2"" of type '" "float const *""'");
16040 arg2 =
reinterpret_cast< float *
>(argp2);
16041 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16042 if (!SWIG_IsOK(ecode3)) {
16043 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "knn_L2sqr" "', argument " "3"" of type '" "size_t""'");
16045 arg3 =
static_cast< size_t >(val3);
16046 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16047 if (!SWIG_IsOK(ecode4)) {
16048 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "knn_L2sqr" "', argument " "4"" of type '" "size_t""'");
16050 arg4 =
static_cast< size_t >(val4);
16051 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
16052 if (!SWIG_IsOK(ecode5)) {
16053 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "knn_L2sqr" "', argument " "5"" of type '" "size_t""'");
16055 arg5 =
static_cast< size_t >(val5);
16056 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
16057 if (!SWIG_IsOK(res6)) {
16058 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "knn_L2sqr" "', argument " "6"" of type '" "faiss::float_maxheap_array_t *""'");
16062 Py_BEGIN_ALLOW_THREADS
16064 faiss::knn_L2sqr((
float const *)arg1,(
float const *)arg2,arg3,arg4,arg5,arg6);
16066 PyEval_RestoreThread(_save);
16067 PyErr_SetString(PyExc_RuntimeError, e.
what());
16070 Py_END_ALLOW_THREADS
16072 resultobj = SWIG_Py_Void();
16079 SWIGINTERN PyObject *_wrap_knn_L2sqr_base_shift(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16080 PyObject *resultobj = 0;
16081 float *arg1 = (
float *) 0 ;
16082 float *arg2 = (
float *) 0 ;
16087 float *arg7 = (
float *) 0 ;
16102 PyObject * obj0 = 0 ;
16103 PyObject * obj1 = 0 ;
16104 PyObject * obj2 = 0 ;
16105 PyObject * obj3 = 0 ;
16106 PyObject * obj4 = 0 ;
16107 PyObject * obj5 = 0 ;
16108 PyObject * obj6 = 0 ;
16110 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:knn_L2sqr_base_shift",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
16111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
16112 if (!SWIG_IsOK(res1)) {
16113 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "knn_L2sqr_base_shift" "', argument " "1"" of type '" "float const *""'");
16115 arg1 =
reinterpret_cast< float *
>(argp1);
16116 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
16117 if (!SWIG_IsOK(res2)) {
16118 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "knn_L2sqr_base_shift" "', argument " "2"" of type '" "float const *""'");
16120 arg2 =
reinterpret_cast< float *
>(argp2);
16121 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16122 if (!SWIG_IsOK(ecode3)) {
16123 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "knn_L2sqr_base_shift" "', argument " "3"" of type '" "size_t""'");
16125 arg3 =
static_cast< size_t >(val3);
16126 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16127 if (!SWIG_IsOK(ecode4)) {
16128 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "knn_L2sqr_base_shift" "', argument " "4"" of type '" "size_t""'");
16130 arg4 =
static_cast< size_t >(val4);
16131 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
16132 if (!SWIG_IsOK(ecode5)) {
16133 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "knn_L2sqr_base_shift" "', argument " "5"" of type '" "size_t""'");
16135 arg5 =
static_cast< size_t >(val5);
16136 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
16137 if (!SWIG_IsOK(res6)) {
16138 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "knn_L2sqr_base_shift" "', argument " "6"" of type '" "faiss::float_maxheap_array_t *""'");
16141 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
16142 if (!SWIG_IsOK(res7)) {
16143 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "knn_L2sqr_base_shift" "', argument " "7"" of type '" "float const *""'");
16145 arg7 =
reinterpret_cast< float *
>(argp7);
16147 Py_BEGIN_ALLOW_THREADS
16151 PyEval_RestoreThread(_save);
16152 PyErr_SetString(PyExc_RuntimeError, e.
what());
16155 Py_END_ALLOW_THREADS
16157 resultobj = SWIG_Py_Void();
16164 SWIGINTERN PyObject *_wrap_knn_inner_products_by_idx(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16165 PyObject *resultobj = 0;
16166 float *arg1 = (
float *) 0 ;
16167 float *arg2 = (
float *) 0 ;
16168 long *arg3 = (
long *) 0 ;
16187 PyObject * obj0 = 0 ;
16188 PyObject * obj1 = 0 ;
16189 PyObject * obj2 = 0 ;
16190 PyObject * obj3 = 0 ;
16191 PyObject * obj4 = 0 ;
16192 PyObject * obj5 = 0 ;
16193 PyObject * obj6 = 0 ;
16195 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:knn_inner_products_by_idx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
16196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
16197 if (!SWIG_IsOK(res1)) {
16198 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "knn_inner_products_by_idx" "', argument " "1"" of type '" "float const *""'");
16200 arg1 =
reinterpret_cast< float *
>(argp1);
16201 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
16202 if (!SWIG_IsOK(res2)) {
16203 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "knn_inner_products_by_idx" "', argument " "2"" of type '" "float const *""'");
16205 arg2 =
reinterpret_cast< float *
>(argp2);
16206 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
16207 if (!SWIG_IsOK(res3)) {
16208 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "knn_inner_products_by_idx" "', argument " "3"" of type '" "long const *""'");
16210 arg3 =
reinterpret_cast< long *
>(argp3);
16211 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16212 if (!SWIG_IsOK(ecode4)) {
16213 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "knn_inner_products_by_idx" "', argument " "4"" of type '" "size_t""'");
16215 arg4 =
static_cast< size_t >(val4);
16216 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
16217 if (!SWIG_IsOK(ecode5)) {
16218 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "knn_inner_products_by_idx" "', argument " "5"" of type '" "size_t""'");
16220 arg5 =
static_cast< size_t >(val5);
16221 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
16222 if (!SWIG_IsOK(ecode6)) {
16223 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "knn_inner_products_by_idx" "', argument " "6"" of type '" "size_t""'");
16225 arg6 =
static_cast< size_t >(val6);
16226 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
16227 if (!SWIG_IsOK(res7)) {
16228 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "knn_inner_products_by_idx" "', argument " "7"" of type '" "faiss::float_minheap_array_t *""'");
16232 Py_BEGIN_ALLOW_THREADS
16234 faiss::knn_inner_products_by_idx((
float const *)arg1,(
float const *)arg2,(
long const *)arg3,arg4,arg5,arg6,arg7);
16236 PyEval_RestoreThread(_save);
16237 PyErr_SetString(PyExc_RuntimeError, e.
what());
16240 Py_END_ALLOW_THREADS
16242 resultobj = SWIG_Py_Void();
16249 SWIGINTERN PyObject *_wrap_knn_L2sqr_by_idx(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16250 PyObject *resultobj = 0;
16251 float *arg1 = (
float *) 0 ;
16252 float *arg2 = (
float *) 0 ;
16253 long *arg3 = (
long *) 0 ;
16272 PyObject * obj0 = 0 ;
16273 PyObject * obj1 = 0 ;
16274 PyObject * obj2 = 0 ;
16275 PyObject * obj3 = 0 ;
16276 PyObject * obj4 = 0 ;
16277 PyObject * obj5 = 0 ;
16278 PyObject * obj6 = 0 ;
16280 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:knn_L2sqr_by_idx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
16281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
16282 if (!SWIG_IsOK(res1)) {
16283 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "knn_L2sqr_by_idx" "', argument " "1"" of type '" "float const *""'");
16285 arg1 =
reinterpret_cast< float *
>(argp1);
16286 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
16287 if (!SWIG_IsOK(res2)) {
16288 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "knn_L2sqr_by_idx" "', argument " "2"" of type '" "float const *""'");
16290 arg2 =
reinterpret_cast< float *
>(argp2);
16291 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
16292 if (!SWIG_IsOK(res3)) {
16293 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "knn_L2sqr_by_idx" "', argument " "3"" of type '" "long const *""'");
16295 arg3 =
reinterpret_cast< long *
>(argp3);
16296 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16297 if (!SWIG_IsOK(ecode4)) {
16298 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "knn_L2sqr_by_idx" "', argument " "4"" of type '" "size_t""'");
16300 arg4 =
static_cast< size_t >(val4);
16301 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
16302 if (!SWIG_IsOK(ecode5)) {
16303 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "knn_L2sqr_by_idx" "', argument " "5"" of type '" "size_t""'");
16305 arg5 =
static_cast< size_t >(val5);
16306 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
16307 if (!SWIG_IsOK(ecode6)) {
16308 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "knn_L2sqr_by_idx" "', argument " "6"" of type '" "size_t""'");
16310 arg6 =
static_cast< size_t >(val6);
16311 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
16312 if (!SWIG_IsOK(res7)) {
16313 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "knn_L2sqr_by_idx" "', argument " "7"" of type '" "faiss::float_maxheap_array_t *""'");
16317 Py_BEGIN_ALLOW_THREADS
16319 faiss::knn_L2sqr_by_idx((
float const *)arg1,(
float const *)arg2,(
long const *)arg3,arg4,arg5,arg6,arg7);
16321 PyEval_RestoreThread(_save);
16322 PyErr_SetString(PyExc_RuntimeError, e.
what());
16325 Py_END_ALLOW_THREADS
16327 resultobj = SWIG_Py_Void();
16334 SWIGINTERN PyObject *_wrap_range_search_L2sqr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16335 PyObject *resultobj = 0;
16336 float *arg1 = (
float *) 0 ;
16337 float *arg2 = (
float *) 0 ;
16357 PyObject * obj0 = 0 ;
16358 PyObject * obj1 = 0 ;
16359 PyObject * obj2 = 0 ;
16360 PyObject * obj3 = 0 ;
16361 PyObject * obj4 = 0 ;
16362 PyObject * obj5 = 0 ;
16363 PyObject * obj6 = 0 ;
16365 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:range_search_L2sqr",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
16366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
16367 if (!SWIG_IsOK(res1)) {
16368 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "range_search_L2sqr" "', argument " "1"" of type '" "float const *""'");
16370 arg1 =
reinterpret_cast< float *
>(argp1);
16371 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
16372 if (!SWIG_IsOK(res2)) {
16373 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "range_search_L2sqr" "', argument " "2"" of type '" "float const *""'");
16375 arg2 =
reinterpret_cast< float *
>(argp2);
16376 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16377 if (!SWIG_IsOK(ecode3)) {
16378 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "range_search_L2sqr" "', argument " "3"" of type '" "size_t""'");
16380 arg3 =
static_cast< size_t >(val3);
16381 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16382 if (!SWIG_IsOK(ecode4)) {
16383 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "range_search_L2sqr" "', argument " "4"" of type '" "size_t""'");
16385 arg4 =
static_cast< size_t >(val4);
16386 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
16387 if (!SWIG_IsOK(ecode5)) {
16388 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "range_search_L2sqr" "', argument " "5"" of type '" "size_t""'");
16390 arg5 =
static_cast< size_t >(val5);
16391 ecode6 = SWIG_AsVal_float(obj5, &val6);
16392 if (!SWIG_IsOK(ecode6)) {
16393 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "range_search_L2sqr" "', argument " "6"" of type '" "float""'");
16395 arg6 =
static_cast< float >(val6);
16396 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
16397 if (!SWIG_IsOK(res7)) {
16398 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "range_search_L2sqr" "', argument " "7"" of type '" "faiss::RangeSearchResult *""'");
16402 Py_BEGIN_ALLOW_THREADS
16406 PyEval_RestoreThread(_save);
16407 PyErr_SetString(PyExc_RuntimeError, e.
what());
16410 Py_END_ALLOW_THREADS
16412 resultobj = SWIG_Py_Void();
16419 SWIGINTERN PyObject *_wrap_range_search_inner_product(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16420 PyObject *resultobj = 0;
16421 float *arg1 = (
float *) 0 ;
16422 float *arg2 = (
float *) 0 ;
16442 PyObject * obj0 = 0 ;
16443 PyObject * obj1 = 0 ;
16444 PyObject * obj2 = 0 ;
16445 PyObject * obj3 = 0 ;
16446 PyObject * obj4 = 0 ;
16447 PyObject * obj5 = 0 ;
16448 PyObject * obj6 = 0 ;
16450 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:range_search_inner_product",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
16451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
16452 if (!SWIG_IsOK(res1)) {
16453 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "range_search_inner_product" "', argument " "1"" of type '" "float const *""'");
16455 arg1 =
reinterpret_cast< float *
>(argp1);
16456 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
16457 if (!SWIG_IsOK(res2)) {
16458 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "range_search_inner_product" "', argument " "2"" of type '" "float const *""'");
16460 arg2 =
reinterpret_cast< float *
>(argp2);
16461 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16462 if (!SWIG_IsOK(ecode3)) {
16463 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "range_search_inner_product" "', argument " "3"" of type '" "size_t""'");
16465 arg3 =
static_cast< size_t >(val3);
16466 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16467 if (!SWIG_IsOK(ecode4)) {
16468 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "range_search_inner_product" "', argument " "4"" of type '" "size_t""'");
16470 arg4 =
static_cast< size_t >(val4);
16471 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
16472 if (!SWIG_IsOK(ecode5)) {
16473 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "range_search_inner_product" "', argument " "5"" of type '" "size_t""'");
16475 arg5 =
static_cast< size_t >(val5);
16476 ecode6 = SWIG_AsVal_float(obj5, &val6);
16477 if (!SWIG_IsOK(ecode6)) {
16478 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "range_search_inner_product" "', argument " "6"" of type '" "float""'");
16480 arg6 =
static_cast< float >(val6);
16481 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
16482 if (!SWIG_IsOK(res7)) {
16483 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "range_search_inner_product" "', argument " "7"" of type '" "faiss::RangeSearchResult *""'");
16487 Py_BEGIN_ALLOW_THREADS
16491 PyEval_RestoreThread(_save);
16492 PyErr_SetString(PyExc_RuntimeError, e.
what());
16495 Py_END_ALLOW_THREADS
16497 resultobj = SWIG_Py_Void();
16504 SWIGINTERN PyObject *_wrap_fvec_madd(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16505 PyObject *resultobj = 0;
16507 float *arg2 = (
float *) 0 ;
16509 float *arg4 = (
float *) 0 ;
16510 float *arg5 = (
float *) 0 ;
16521 PyObject * obj0 = 0 ;
16522 PyObject * obj1 = 0 ;
16523 PyObject * obj2 = 0 ;
16524 PyObject * obj3 = 0 ;
16525 PyObject * obj4 = 0 ;
16527 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:fvec_madd",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16528 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
16529 if (!SWIG_IsOK(ecode1)) {
16530 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvec_madd" "', argument " "1"" of type '" "size_t""'");
16532 arg1 =
static_cast< size_t >(val1);
16533 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
16534 if (!SWIG_IsOK(res2)) {
16535 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_madd" "', argument " "2"" of type '" "float const *""'");
16537 arg2 =
reinterpret_cast< float *
>(argp2);
16538 ecode3 = SWIG_AsVal_float(obj2, &val3);
16539 if (!SWIG_IsOK(ecode3)) {
16540 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvec_madd" "', argument " "3"" of type '" "float""'");
16542 arg3 =
static_cast< float >(val3);
16543 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
16544 if (!SWIG_IsOK(res4)) {
16545 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "fvec_madd" "', argument " "4"" of type '" "float const *""'");
16547 arg4 =
reinterpret_cast< float *
>(argp4);
16548 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
16549 if (!SWIG_IsOK(res5)) {
16550 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "fvec_madd" "', argument " "5"" of type '" "float *""'");
16552 arg5 =
reinterpret_cast< float *
>(argp5);
16554 Py_BEGIN_ALLOW_THREADS
16558 PyEval_RestoreThread(_save);
16559 PyErr_SetString(PyExc_RuntimeError, e.
what());
16562 Py_END_ALLOW_THREADS
16564 resultobj = SWIG_Py_Void();
16571 SWIGINTERN PyObject *_wrap_fvec_madd_and_argmin(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16572 PyObject *resultobj = 0;
16574 float *arg2 = (
float *) 0 ;
16576 float *arg4 = (
float *) 0 ;
16577 float *arg5 = (
float *) 0 ;
16588 PyObject * obj0 = 0 ;
16589 PyObject * obj1 = 0 ;
16590 PyObject * obj2 = 0 ;
16591 PyObject * obj3 = 0 ;
16592 PyObject * obj4 = 0 ;
16595 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:fvec_madd_and_argmin",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16596 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
16597 if (!SWIG_IsOK(ecode1)) {
16598 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvec_madd_and_argmin" "', argument " "1"" of type '" "size_t""'");
16600 arg1 =
static_cast< size_t >(val1);
16601 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
16602 if (!SWIG_IsOK(res2)) {
16603 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_madd_and_argmin" "', argument " "2"" of type '" "float const *""'");
16605 arg2 =
reinterpret_cast< float *
>(argp2);
16606 ecode3 = SWIG_AsVal_float(obj2, &val3);
16607 if (!SWIG_IsOK(ecode3)) {
16608 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvec_madd_and_argmin" "', argument " "3"" of type '" "float""'");
16610 arg3 =
static_cast< float >(val3);
16611 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
16612 if (!SWIG_IsOK(res4)) {
16613 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "fvec_madd_and_argmin" "', argument " "4"" of type '" "float const *""'");
16615 arg4 =
reinterpret_cast< float *
>(argp4);
16616 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
16617 if (!SWIG_IsOK(res5)) {
16618 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "fvec_madd_and_argmin" "', argument " "5"" of type '" "float *""'");
16620 arg5 =
reinterpret_cast< float *
>(argp5);
16622 Py_BEGIN_ALLOW_THREADS
16626 PyEval_RestoreThread(_save);
16627 PyErr_SetString(PyExc_RuntimeError, e.
what());
16630 Py_END_ALLOW_THREADS
16632 resultobj = SWIG_From_int(static_cast< int >(result));
16639 SWIGINTERN PyObject *_wrap_reflection(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16640 PyObject *resultobj = 0;
16641 float *arg1 = (
float *) 0 ;
16642 float *arg2 = (
float *) 0 ;
16656 PyObject * obj0 = 0 ;
16657 PyObject * obj1 = 0 ;
16658 PyObject * obj2 = 0 ;
16659 PyObject * obj3 = 0 ;
16660 PyObject * obj4 = 0 ;
16662 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:reflection",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
16664 if (!SWIG_IsOK(res1)) {
16665 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "reflection" "', argument " "1"" of type '" "float const *""'");
16667 arg1 =
reinterpret_cast< float *
>(argp1);
16668 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
16669 if (!SWIG_IsOK(res2)) {
16670 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "reflection" "', argument " "2"" of type '" "float *""'");
16672 arg2 =
reinterpret_cast< float *
>(argp2);
16673 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16674 if (!SWIG_IsOK(ecode3)) {
16675 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "reflection" "', argument " "3"" of type '" "size_t""'");
16677 arg3 =
static_cast< size_t >(val3);
16678 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16679 if (!SWIG_IsOK(ecode4)) {
16680 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "reflection" "', argument " "4"" of type '" "size_t""'");
16682 arg4 =
static_cast< size_t >(val4);
16683 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
16684 if (!SWIG_IsOK(ecode5)) {
16685 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "reflection" "', argument " "5"" of type '" "size_t""'");
16687 arg5 =
static_cast< size_t >(val5);
16689 Py_BEGIN_ALLOW_THREADS
16691 faiss::reflection((
float const *)arg1,arg2,arg3,arg4,arg5);
16693 PyEval_RestoreThread(_save);
16694 PyErr_SetString(PyExc_RuntimeError, e.
what());
16697 Py_END_ALLOW_THREADS
16699 resultobj = SWIG_Py_Void();
16706 SWIGINTERN PyObject *_wrap_km_update_centroids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16707 PyObject *resultobj = 0;
16708 float *arg1 = (
float *) 0 ;
16709 float *arg2 = (
float *) 0 ;
16710 long *arg3 = (
long *) 0 ;
16729 PyObject * obj0 = 0 ;
16730 PyObject * obj1 = 0 ;
16731 PyObject * obj2 = 0 ;
16732 PyObject * obj3 = 0 ;
16733 PyObject * obj4 = 0 ;
16734 PyObject * obj5 = 0 ;
16735 PyObject * obj6 = 0 ;
16738 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:km_update_centroids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
16739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
16740 if (!SWIG_IsOK(res1)) {
16741 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "km_update_centroids" "', argument " "1"" of type '" "float const *""'");
16743 arg1 =
reinterpret_cast< float *
>(argp1);
16744 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
16745 if (!SWIG_IsOK(res2)) {
16746 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "km_update_centroids" "', argument " "2"" of type '" "float *""'");
16748 arg2 =
reinterpret_cast< float *
>(argp2);
16749 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
16750 if (!SWIG_IsOK(res3)) {
16751 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "km_update_centroids" "', argument " "3"" of type '" "long *""'");
16753 arg3 =
reinterpret_cast< long *
>(argp3);
16754 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16755 if (!SWIG_IsOK(ecode4)) {
16756 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "km_update_centroids" "', argument " "4"" of type '" "size_t""'");
16758 arg4 =
static_cast< size_t >(val4);
16759 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
16760 if (!SWIG_IsOK(ecode5)) {
16761 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "km_update_centroids" "', argument " "5"" of type '" "size_t""'");
16763 arg5 =
static_cast< size_t >(val5);
16764 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
16765 if (!SWIG_IsOK(ecode6)) {
16766 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "km_update_centroids" "', argument " "6"" of type '" "size_t""'");
16768 arg6 =
static_cast< size_t >(val6);
16769 ecode7 = SWIG_AsVal_size_t(obj6, &val7);
16770 if (!SWIG_IsOK(ecode7)) {
16771 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "km_update_centroids" "', argument " "7"" of type '" "size_t""'");
16773 arg7 =
static_cast< size_t >(val7);
16775 Py_BEGIN_ALLOW_THREADS
16779 PyEval_RestoreThread(_save);
16780 PyErr_SetString(PyExc_RuntimeError, e.
what());
16783 Py_END_ALLOW_THREADS
16785 resultobj = SWIG_From_int(static_cast< int >(result));
16792 SWIGINTERN PyObject *_wrap_matrix_qr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16793 PyObject *resultobj = 0;
16796 float *arg3 = (
float *) 0 ;
16803 PyObject * obj0 = 0 ;
16804 PyObject * obj1 = 0 ;
16805 PyObject * obj2 = 0 ;
16807 if (!PyArg_ParseTuple(args,(
char *)
"OOO:matrix_qr",&obj0,&obj1,&obj2)) SWIG_fail;
16808 ecode1 = SWIG_AsVal_int(obj0, &val1);
16809 if (!SWIG_IsOK(ecode1)) {
16810 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "matrix_qr" "', argument " "1"" of type '" "int""'");
16812 arg1 =
static_cast< int >(val1);
16813 ecode2 = SWIG_AsVal_int(obj1, &val2);
16814 if (!SWIG_IsOK(ecode2)) {
16815 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "matrix_qr" "', argument " "2"" of type '" "int""'");
16817 arg2 =
static_cast< int >(val2);
16818 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
16819 if (!SWIG_IsOK(res3)) {
16820 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "matrix_qr" "', argument " "3"" of type '" "float *""'");
16822 arg3 =
reinterpret_cast< float *
>(argp3);
16824 Py_BEGIN_ALLOW_THREADS
16828 PyEval_RestoreThread(_save);
16829 PyErr_SetString(PyExc_RuntimeError, e.
what());
16832 Py_END_ALLOW_THREADS
16834 resultobj = SWIG_Py_Void();
16841 SWIGINTERN PyObject *_wrap_ranklist_handle_ties(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16842 PyObject *resultobj = 0;
16844 long *arg2 = (
long *) 0 ;
16845 float *arg3 = (
float *) 0 ;
16852 PyObject * obj0 = 0 ;
16853 PyObject * obj1 = 0 ;
16854 PyObject * obj2 = 0 ;
16856 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ranklist_handle_ties",&obj0,&obj1,&obj2)) SWIG_fail;
16857 ecode1 = SWIG_AsVal_int(obj0, &val1);
16858 if (!SWIG_IsOK(ecode1)) {
16859 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "ranklist_handle_ties" "', argument " "1"" of type '" "int""'");
16861 arg1 =
static_cast< int >(val1);
16862 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
16863 if (!SWIG_IsOK(res2)) {
16864 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ranklist_handle_ties" "', argument " "2"" of type '" "long *""'");
16866 arg2 =
reinterpret_cast< long *
>(argp2);
16867 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
16868 if (!SWIG_IsOK(res3)) {
16869 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ranklist_handle_ties" "', argument " "3"" of type '" "float const *""'");
16871 arg3 =
reinterpret_cast< float *
>(argp3);
16873 Py_BEGIN_ALLOW_THREADS
16877 PyEval_RestoreThread(_save);
16878 PyErr_SetString(PyExc_RuntimeError, e.
what());
16881 Py_END_ALLOW_THREADS
16883 resultobj = SWIG_Py_Void();
16890 SWIGINTERN PyObject *_wrap_ranklist_intersection_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16891 PyObject *resultobj = 0;
16893 long *arg2 = (
long *) 0 ;
16895 long *arg4 = (
long *) 0 ;
16904 PyObject * obj0 = 0 ;
16905 PyObject * obj1 = 0 ;
16906 PyObject * obj2 = 0 ;
16907 PyObject * obj3 = 0 ;
16910 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ranklist_intersection_size",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16911 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
16912 if (!SWIG_IsOK(ecode1)) {
16913 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "ranklist_intersection_size" "', argument " "1"" of type '" "size_t""'");
16915 arg1 =
static_cast< size_t >(val1);
16916 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
16917 if (!SWIG_IsOK(res2)) {
16918 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ranklist_intersection_size" "', argument " "2"" of type '" "long const *""'");
16920 arg2 =
reinterpret_cast< long *
>(argp2);
16921 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16922 if (!SWIG_IsOK(ecode3)) {
16923 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ranklist_intersection_size" "', argument " "3"" of type '" "size_t""'");
16925 arg3 =
static_cast< size_t >(val3);
16926 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
16927 if (!SWIG_IsOK(res4)) {
16928 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ranklist_intersection_size" "', argument " "4"" of type '" "long const *""'");
16930 arg4 =
reinterpret_cast< long *
>(argp4);
16932 Py_BEGIN_ALLOW_THREADS
16936 PyEval_RestoreThread(_save);
16937 PyErr_SetString(PyExc_RuntimeError, e.
what());
16940 Py_END_ALLOW_THREADS
16942 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16949 SWIGINTERN PyObject *_wrap_merge_result_table_with__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16950 PyObject *resultobj = 0;
16953 long *arg3 = (
long *) 0 ;
16954 float *arg4 = (
float *) 0 ;
16955 long *arg5 = (
long *) 0 ;
16956 float *arg6 = (
float *) 0 ;
16975 PyObject * obj0 = 0 ;
16976 PyObject * obj1 = 0 ;
16977 PyObject * obj2 = 0 ;
16978 PyObject * obj3 = 0 ;
16979 PyObject * obj4 = 0 ;
16980 PyObject * obj5 = 0 ;
16981 PyObject * obj6 = 0 ;
16982 PyObject * obj7 = 0 ;
16985 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:merge_result_table_with",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16986 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
16987 if (!SWIG_IsOK(ecode1)) {
16988 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "merge_result_table_with" "', argument " "1"" of type '" "size_t""'");
16990 arg1 =
static_cast< size_t >(val1);
16991 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
16992 if (!SWIG_IsOK(ecode2)) {
16993 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "merge_result_table_with" "', argument " "2"" of type '" "size_t""'");
16995 arg2 =
static_cast< size_t >(val2);
16996 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
16997 if (!SWIG_IsOK(res3)) {
16998 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "merge_result_table_with" "', argument " "3"" of type '" "long *""'");
17000 arg3 =
reinterpret_cast< long *
>(argp3);
17001 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
17002 if (!SWIG_IsOK(res4)) {
17003 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "merge_result_table_with" "', argument " "4"" of type '" "float *""'");
17005 arg4 =
reinterpret_cast< float *
>(argp4);
17006 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
17007 if (!SWIG_IsOK(res5)) {
17008 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "merge_result_table_with" "', argument " "5"" of type '" "long const *""'");
17010 arg5 =
reinterpret_cast< long *
>(argp5);
17011 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
17012 if (!SWIG_IsOK(res6)) {
17013 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "merge_result_table_with" "', argument " "6"" of type '" "float const *""'");
17015 arg6 =
reinterpret_cast< float *
>(argp6);
17016 ecode7 = SWIG_AsVal_bool(obj6, &val7);
17017 if (!SWIG_IsOK(ecode7)) {
17018 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "merge_result_table_with" "', argument " "7"" of type '" "bool""'");
17020 arg7 =
static_cast< bool >(val7);
17021 ecode8 = SWIG_AsVal_long(obj7, &val8);
17022 if (!SWIG_IsOK(ecode8)) {
17023 SWIG_exception_fail(SWIG_ArgError(ecode8),
"in method '" "merge_result_table_with" "', argument " "8"" of type '" "long""'");
17025 arg8 =
static_cast< long >(val8);
17027 Py_BEGIN_ALLOW_THREADS
17031 PyEval_RestoreThread(_save);
17032 PyErr_SetString(PyExc_RuntimeError, e.
what());
17035 Py_END_ALLOW_THREADS
17037 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
17044 SWIGINTERN PyObject *_wrap_merge_result_table_with__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17045 PyObject *resultobj = 0;
17048 long *arg3 = (
long *) 0 ;
17049 float *arg4 = (
float *) 0 ;
17050 long *arg5 = (
long *) 0 ;
17051 float *arg6 = (
float *) 0 ;
17067 PyObject * obj0 = 0 ;
17068 PyObject * obj1 = 0 ;
17069 PyObject * obj2 = 0 ;
17070 PyObject * obj3 = 0 ;
17071 PyObject * obj4 = 0 ;
17072 PyObject * obj5 = 0 ;
17073 PyObject * obj6 = 0 ;
17076 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:merge_result_table_with",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17077 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
17078 if (!SWIG_IsOK(ecode1)) {
17079 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "merge_result_table_with" "', argument " "1"" of type '" "size_t""'");
17081 arg1 =
static_cast< size_t >(val1);
17082 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
17083 if (!SWIG_IsOK(ecode2)) {
17084 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "merge_result_table_with" "', argument " "2"" of type '" "size_t""'");
17086 arg2 =
static_cast< size_t >(val2);
17087 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
17088 if (!SWIG_IsOK(res3)) {
17089 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "merge_result_table_with" "', argument " "3"" of type '" "long *""'");
17091 arg3 =
reinterpret_cast< long *
>(argp3);
17092 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
17093 if (!SWIG_IsOK(res4)) {
17094 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "merge_result_table_with" "', argument " "4"" of type '" "float *""'");
17096 arg4 =
reinterpret_cast< float *
>(argp4);
17097 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
17098 if (!SWIG_IsOK(res5)) {
17099 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "merge_result_table_with" "', argument " "5"" of type '" "long const *""'");
17101 arg5 =
reinterpret_cast< long *
>(argp5);
17102 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
17103 if (!SWIG_IsOK(res6)) {
17104 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "merge_result_table_with" "', argument " "6"" of type '" "float const *""'");
17106 arg6 =
reinterpret_cast< float *
>(argp6);
17107 ecode7 = SWIG_AsVal_bool(obj6, &val7);
17108 if (!SWIG_IsOK(ecode7)) {
17109 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "merge_result_table_with" "', argument " "7"" of type '" "bool""'");
17111 arg7 =
static_cast< bool >(val7);
17113 Py_BEGIN_ALLOW_THREADS
17117 PyEval_RestoreThread(_save);
17118 PyErr_SetString(PyExc_RuntimeError, e.
what());
17121 Py_END_ALLOW_THREADS
17123 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
17130 SWIGINTERN PyObject *_wrap_merge_result_table_with__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17131 PyObject *resultobj = 0;
17134 long *arg3 = (
long *) 0 ;
17135 float *arg4 = (
float *) 0 ;
17136 long *arg5 = (
long *) 0 ;
17137 float *arg6 = (
float *) 0 ;
17150 PyObject * obj0 = 0 ;
17151 PyObject * obj1 = 0 ;
17152 PyObject * obj2 = 0 ;
17153 PyObject * obj3 = 0 ;
17154 PyObject * obj4 = 0 ;
17155 PyObject * obj5 = 0 ;
17158 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:merge_result_table_with",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17159 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
17160 if (!SWIG_IsOK(ecode1)) {
17161 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "merge_result_table_with" "', argument " "1"" of type '" "size_t""'");
17163 arg1 =
static_cast< size_t >(val1);
17164 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
17165 if (!SWIG_IsOK(ecode2)) {
17166 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "merge_result_table_with" "', argument " "2"" of type '" "size_t""'");
17168 arg2 =
static_cast< size_t >(val2);
17169 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
17170 if (!SWIG_IsOK(res3)) {
17171 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "merge_result_table_with" "', argument " "3"" of type '" "long *""'");
17173 arg3 =
reinterpret_cast< long *
>(argp3);
17174 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
17175 if (!SWIG_IsOK(res4)) {
17176 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "merge_result_table_with" "', argument " "4"" of type '" "float *""'");
17178 arg4 =
reinterpret_cast< float *
>(argp4);
17179 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
17180 if (!SWIG_IsOK(res5)) {
17181 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "merge_result_table_with" "', argument " "5"" of type '" "long const *""'");
17183 arg5 =
reinterpret_cast< long *
>(argp5);
17184 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
17185 if (!SWIG_IsOK(res6)) {
17186 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "merge_result_table_with" "', argument " "6"" of type '" "float const *""'");
17188 arg6 =
reinterpret_cast< float *
>(argp6);
17190 Py_BEGIN_ALLOW_THREADS
17194 PyEval_RestoreThread(_save);
17195 PyErr_SetString(PyExc_RuntimeError, e.
what());
17198 Py_END_ALLOW_THREADS
17200 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
17207 SWIGINTERN PyObject *_wrap_merge_result_table_with(PyObject *
self, PyObject *args) {
17209 PyObject *argv[9] = {
17214 if (!PyTuple_Check(args)) SWIG_fail;
17215 argc = args ? PyObject_Length(args) : 0;
17216 for (ii = 0; (ii < 8) && (ii < argc); ii++) {
17217 argv[ii] = PyTuple_GET_ITEM(args,ii);
17222 int res = SWIG_AsVal_size_t(argv[0], NULL);
17223 _v = SWIG_CheckState(res);
17227 int res = SWIG_AsVal_size_t(argv[1], NULL);
17228 _v = SWIG_CheckState(res);
17232 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_long, 0);
17233 _v = SWIG_CheckState(res);
17236 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
17237 _v = SWIG_CheckState(res);
17240 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
17241 _v = SWIG_CheckState(res);
17244 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
17245 _v = SWIG_CheckState(res);
17247 return _wrap_merge_result_table_with__SWIG_2(
self, args);
17258 int res = SWIG_AsVal_size_t(argv[0], NULL);
17259 _v = SWIG_CheckState(res);
17263 int res = SWIG_AsVal_size_t(argv[1], NULL);
17264 _v = SWIG_CheckState(res);
17268 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_long, 0);
17269 _v = SWIG_CheckState(res);
17272 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
17273 _v = SWIG_CheckState(res);
17276 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
17277 _v = SWIG_CheckState(res);
17280 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
17281 _v = SWIG_CheckState(res);
17284 int res = SWIG_AsVal_bool(argv[6], NULL);
17285 _v = SWIG_CheckState(res);
17288 return _wrap_merge_result_table_with__SWIG_1(
self, args);
17300 int res = SWIG_AsVal_size_t(argv[0], NULL);
17301 _v = SWIG_CheckState(res);
17305 int res = SWIG_AsVal_size_t(argv[1], NULL);
17306 _v = SWIG_CheckState(res);
17310 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_long, 0);
17311 _v = SWIG_CheckState(res);
17314 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
17315 _v = SWIG_CheckState(res);
17318 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
17319 _v = SWIG_CheckState(res);
17322 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
17323 _v = SWIG_CheckState(res);
17326 int res = SWIG_AsVal_bool(argv[6], NULL);
17327 _v = SWIG_CheckState(res);
17331 int res = SWIG_AsVal_long(argv[7], NULL);
17332 _v = SWIG_CheckState(res);
17335 return _wrap_merge_result_table_with__SWIG_0(
self, args);
17347 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'merge_result_table_with'.\n"
17348 " Possible C/C++ prototypes are:\n"
17349 " faiss::merge_result_table_with(size_t,size_t,long *,float *,long const *,float const *,bool,long)\n"
17350 " faiss::merge_result_table_with(size_t,size_t,long *,float *,long const *,float const *,bool)\n"
17351 " faiss::merge_result_table_with(size_t,size_t,long *,float *,long const *,float const *)\n");
17356 SWIGINTERN PyObject *_wrap_fvec_argsort(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17357 PyObject *resultobj = 0;
17359 float *arg2 = (
float *) 0 ;
17360 size_t *arg3 = (
size_t *) 0 ;
17367 PyObject * obj0 = 0 ;
17368 PyObject * obj1 = 0 ;
17369 PyObject * obj2 = 0 ;
17371 if (!PyArg_ParseTuple(args,(
char *)
"OOO:fvec_argsort",&obj0,&obj1,&obj2)) SWIG_fail;
17372 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
17373 if (!SWIG_IsOK(ecode1)) {
17374 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvec_argsort" "', argument " "1"" of type '" "size_t""'");
17376 arg1 =
static_cast< size_t >(val1);
17377 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
17378 if (!SWIG_IsOK(res2)) {
17379 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_argsort" "', argument " "2"" of type '" "float const *""'");
17381 arg2 =
reinterpret_cast< float *
>(argp2);
17382 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_long, 0 | 0 );
17383 if (!SWIG_IsOK(res3)) {
17384 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "fvec_argsort" "', argument " "3"" of type '" "size_t *""'");
17386 arg3 =
reinterpret_cast< size_t *
>(argp3);
17388 Py_BEGIN_ALLOW_THREADS
17390 faiss::fvec_argsort(arg1,(
float const *)arg2,arg3);
17392 PyEval_RestoreThread(_save);
17393 PyErr_SetString(PyExc_RuntimeError, e.
what());
17396 Py_END_ALLOW_THREADS
17398 resultobj = SWIG_Py_Void();
17405 SWIGINTERN PyObject *_wrap_fvec_argsort_parallel(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17406 PyObject *resultobj = 0;
17408 float *arg2 = (
float *) 0 ;
17409 size_t *arg3 = (
size_t *) 0 ;
17416 PyObject * obj0 = 0 ;
17417 PyObject * obj1 = 0 ;
17418 PyObject * obj2 = 0 ;
17420 if (!PyArg_ParseTuple(args,(
char *)
"OOO:fvec_argsort_parallel",&obj0,&obj1,&obj2)) SWIG_fail;
17421 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
17422 if (!SWIG_IsOK(ecode1)) {
17423 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvec_argsort_parallel" "', argument " "1"" of type '" "size_t""'");
17425 arg1 =
static_cast< size_t >(val1);
17426 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
17427 if (!SWIG_IsOK(res2)) {
17428 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvec_argsort_parallel" "', argument " "2"" of type '" "float const *""'");
17430 arg2 =
reinterpret_cast< float *
>(argp2);
17431 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_long, 0 | 0 );
17432 if (!SWIG_IsOK(res3)) {
17433 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "fvec_argsort_parallel" "', argument " "3"" of type '" "size_t *""'");
17435 arg3 =
reinterpret_cast< size_t *
>(argp3);
17437 Py_BEGIN_ALLOW_THREADS
17439 faiss::fvec_argsort_parallel(arg1,(
float const *)arg2,arg3);
17441 PyEval_RestoreThread(_save);
17442 PyErr_SetString(PyExc_RuntimeError, e.
what());
17445 Py_END_ALLOW_THREADS
17447 resultobj = SWIG_Py_Void();
17454 SWIGINTERN PyObject *_wrap_ivec_hist(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17455 PyObject *resultobj = 0;
17457 int *arg2 = (
int *) 0 ;
17459 int *arg4 = (
int *) 0 ;
17468 PyObject * obj0 = 0 ;
17469 PyObject * obj1 = 0 ;
17470 PyObject * obj2 = 0 ;
17471 PyObject * obj3 = 0 ;
17474 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ivec_hist",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17475 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
17476 if (!SWIG_IsOK(ecode1)) {
17477 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "ivec_hist" "', argument " "1"" of type '" "size_t""'");
17479 arg1 =
static_cast< size_t >(val1);
17480 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
17481 if (!SWIG_IsOK(res2)) {
17482 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ivec_hist" "', argument " "2"" of type '" "int const *""'");
17484 arg2 =
reinterpret_cast< int *
>(argp2);
17485 ecode3 = SWIG_AsVal_int(obj2, &val3);
17486 if (!SWIG_IsOK(ecode3)) {
17487 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ivec_hist" "', argument " "3"" of type '" "int""'");
17489 arg3 =
static_cast< int >(val3);
17490 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 );
17491 if (!SWIG_IsOK(res4)) {
17492 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ivec_hist" "', argument " "4"" of type '" "int *""'");
17494 arg4 =
reinterpret_cast< int *
>(argp4);
17496 Py_BEGIN_ALLOW_THREADS
17500 PyEval_RestoreThread(_save);
17501 PyErr_SetString(PyExc_RuntimeError, e.
what());
17504 Py_END_ALLOW_THREADS
17506 resultobj = SWIG_From_int(static_cast< int >(result));
17513 SWIGINTERN PyObject *_wrap_bincode_hist(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17514 PyObject *resultobj = 0;
17517 uint8_t *arg3 = (uint8_t *) 0 ;
17518 int *arg4 = (
int *) 0 ;
17527 PyObject * obj0 = 0 ;
17528 PyObject * obj1 = 0 ;
17529 PyObject * obj2 = 0 ;
17530 PyObject * obj3 = 0 ;
17532 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:bincode_hist",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17533 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
17534 if (!SWIG_IsOK(ecode1)) {
17535 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "bincode_hist" "', argument " "1"" of type '" "size_t""'");
17537 arg1 =
static_cast< size_t >(val1);
17538 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
17539 if (!SWIG_IsOK(ecode2)) {
17540 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "bincode_hist" "', argument " "2"" of type '" "size_t""'");
17542 arg2 =
static_cast< size_t >(val2);
17543 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
17544 if (!SWIG_IsOK(res3)) {
17545 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "bincode_hist" "', argument " "3"" of type '" "uint8_t const *""'");
17547 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
17548 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 );
17549 if (!SWIG_IsOK(res4)) {
17550 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "bincode_hist" "', argument " "4"" of type '" "int *""'");
17552 arg4 =
reinterpret_cast< int *
>(argp4);
17554 Py_BEGIN_ALLOW_THREADS
17558 PyEval_RestoreThread(_save);
17559 PyErr_SetString(PyExc_RuntimeError, e.
what());
17562 Py_END_ALLOW_THREADS
17564 resultobj = SWIG_Py_Void();
17571 SWIGINTERN PyObject *_wrap_ivec_checksum(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17572 PyObject *resultobj = 0;
17574 int *arg2 = (
int *) 0 ;
17579 PyObject * obj0 = 0 ;
17580 PyObject * obj1 = 0 ;
17583 if (!PyArg_ParseTuple(args,(
char *)
"OO:ivec_checksum",&obj0,&obj1)) SWIG_fail;
17584 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
17585 if (!SWIG_IsOK(ecode1)) {
17586 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "ivec_checksum" "', argument " "1"" of type '" "size_t""'");
17588 arg1 =
static_cast< size_t >(val1);
17589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
17590 if (!SWIG_IsOK(res2)) {
17591 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ivec_checksum" "', argument " "2"" of type '" "int const *""'");
17593 arg2 =
reinterpret_cast< int *
>(argp2);
17595 Py_BEGIN_ALLOW_THREADS
17599 PyEval_RestoreThread(_save);
17600 PyErr_SetString(PyExc_RuntimeError, e.
what());
17603 Py_END_ALLOW_THREADS
17605 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
17612 SWIGINTERN PyObject *_wrap_fvecs_maybe_subsample__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17613 PyObject *resultobj = 0;
17615 size_t *arg2 = (
size_t *) 0 ;
17617 float *arg4 = (
float *) 0 ;
17632 PyObject * obj0 = 0 ;
17633 PyObject * obj1 = 0 ;
17634 PyObject * obj2 = 0 ;
17635 PyObject * obj3 = 0 ;
17636 PyObject * obj4 = 0 ;
17637 PyObject * obj5 = 0 ;
17638 float *result = 0 ;
17640 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:fvecs_maybe_subsample",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17641 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
17642 if (!SWIG_IsOK(ecode1)) {
17643 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvecs_maybe_subsample" "', argument " "1"" of type '" "size_t""'");
17645 arg1 =
static_cast< size_t >(val1);
17646 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_long, 0 | 0 );
17647 if (!SWIG_IsOK(res2)) {
17648 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvecs_maybe_subsample" "', argument " "2"" of type '" "size_t *""'");
17650 arg2 =
reinterpret_cast< size_t *
>(argp2);
17651 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
17652 if (!SWIG_IsOK(ecode3)) {
17653 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvecs_maybe_subsample" "', argument " "3"" of type '" "size_t""'");
17655 arg3 =
static_cast< size_t >(val3);
17656 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
17657 if (!SWIG_IsOK(res4)) {
17658 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "fvecs_maybe_subsample" "', argument " "4"" of type '" "float const *""'");
17660 arg4 =
reinterpret_cast< float *
>(argp4);
17661 ecode5 = SWIG_AsVal_bool(obj4, &val5);
17662 if (!SWIG_IsOK(ecode5)) {
17663 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "fvecs_maybe_subsample" "', argument " "5"" of type '" "bool""'");
17665 arg5 =
static_cast< bool >(val5);
17666 ecode6 = SWIG_AsVal_long(obj5, &val6);
17667 if (!SWIG_IsOK(ecode6)) {
17668 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "fvecs_maybe_subsample" "', argument " "6"" of type '" "long""'");
17670 arg6 =
static_cast< long >(val6);
17672 Py_BEGIN_ALLOW_THREADS
17676 PyEval_RestoreThread(_save);
17677 PyErr_SetString(PyExc_RuntimeError, e.
what());
17680 Py_END_ALLOW_THREADS
17682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
17689 SWIGINTERN PyObject *_wrap_fvecs_maybe_subsample__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17690 PyObject *resultobj = 0;
17692 size_t *arg2 = (
size_t *) 0 ;
17694 float *arg4 = (
float *) 0 ;
17706 PyObject * obj0 = 0 ;
17707 PyObject * obj1 = 0 ;
17708 PyObject * obj2 = 0 ;
17709 PyObject * obj3 = 0 ;
17710 PyObject * obj4 = 0 ;
17711 float *result = 0 ;
17713 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:fvecs_maybe_subsample",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17714 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
17715 if (!SWIG_IsOK(ecode1)) {
17716 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvecs_maybe_subsample" "', argument " "1"" of type '" "size_t""'");
17718 arg1 =
static_cast< size_t >(val1);
17719 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_long, 0 | 0 );
17720 if (!SWIG_IsOK(res2)) {
17721 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvecs_maybe_subsample" "', argument " "2"" of type '" "size_t *""'");
17723 arg2 =
reinterpret_cast< size_t *
>(argp2);
17724 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
17725 if (!SWIG_IsOK(ecode3)) {
17726 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvecs_maybe_subsample" "', argument " "3"" of type '" "size_t""'");
17728 arg3 =
static_cast< size_t >(val3);
17729 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
17730 if (!SWIG_IsOK(res4)) {
17731 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "fvecs_maybe_subsample" "', argument " "4"" of type '" "float const *""'");
17733 arg4 =
reinterpret_cast< float *
>(argp4);
17734 ecode5 = SWIG_AsVal_bool(obj4, &val5);
17735 if (!SWIG_IsOK(ecode5)) {
17736 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "fvecs_maybe_subsample" "', argument " "5"" of type '" "bool""'");
17738 arg5 =
static_cast< bool >(val5);
17740 Py_BEGIN_ALLOW_THREADS
17744 PyEval_RestoreThread(_save);
17745 PyErr_SetString(PyExc_RuntimeError, e.
what());
17748 Py_END_ALLOW_THREADS
17750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
17757 SWIGINTERN PyObject *_wrap_fvecs_maybe_subsample__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17758 PyObject *resultobj = 0;
17760 size_t *arg2 = (
size_t *) 0 ;
17762 float *arg4 = (
float *) 0 ;
17771 PyObject * obj0 = 0 ;
17772 PyObject * obj1 = 0 ;
17773 PyObject * obj2 = 0 ;
17774 PyObject * obj3 = 0 ;
17775 float *result = 0 ;
17777 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:fvecs_maybe_subsample",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17778 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
17779 if (!SWIG_IsOK(ecode1)) {
17780 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "fvecs_maybe_subsample" "', argument " "1"" of type '" "size_t""'");
17782 arg1 =
static_cast< size_t >(val1);
17783 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_long, 0 | 0 );
17784 if (!SWIG_IsOK(res2)) {
17785 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "fvecs_maybe_subsample" "', argument " "2"" of type '" "size_t *""'");
17787 arg2 =
reinterpret_cast< size_t *
>(argp2);
17788 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
17789 if (!SWIG_IsOK(ecode3)) {
17790 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "fvecs_maybe_subsample" "', argument " "3"" of type '" "size_t""'");
17792 arg3 =
static_cast< size_t >(val3);
17793 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
17794 if (!SWIG_IsOK(res4)) {
17795 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "fvecs_maybe_subsample" "', argument " "4"" of type '" "float const *""'");
17797 arg4 =
reinterpret_cast< float *
>(argp4);
17799 Py_BEGIN_ALLOW_THREADS
17803 PyEval_RestoreThread(_save);
17804 PyErr_SetString(PyExc_RuntimeError, e.
what());
17807 Py_END_ALLOW_THREADS
17809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
17816 SWIGINTERN PyObject *_wrap_fvecs_maybe_subsample(PyObject *
self, PyObject *args) {
17818 PyObject *argv[7] = {
17823 if (!PyTuple_Check(args)) SWIG_fail;
17824 argc = args ? PyObject_Length(args) : 0;
17825 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
17826 argv[ii] = PyTuple_GET_ITEM(args,ii);
17831 int res = SWIG_AsVal_size_t(argv[0], NULL);
17832 _v = SWIG_CheckState(res);
17836 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long, 0);
17837 _v = SWIG_CheckState(res);
17840 int res = SWIG_AsVal_size_t(argv[2], NULL);
17841 _v = SWIG_CheckState(res);
17845 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
17846 _v = SWIG_CheckState(res);
17848 return _wrap_fvecs_maybe_subsample__SWIG_2(
self, args);
17857 int res = SWIG_AsVal_size_t(argv[0], NULL);
17858 _v = SWIG_CheckState(res);
17862 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long, 0);
17863 _v = SWIG_CheckState(res);
17866 int res = SWIG_AsVal_size_t(argv[2], NULL);
17867 _v = SWIG_CheckState(res);
17871 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
17872 _v = SWIG_CheckState(res);
17875 int res = SWIG_AsVal_bool(argv[4], NULL);
17876 _v = SWIG_CheckState(res);
17879 return _wrap_fvecs_maybe_subsample__SWIG_1(
self, args);
17889 int res = SWIG_AsVal_size_t(argv[0], NULL);
17890 _v = SWIG_CheckState(res);
17894 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long, 0);
17895 _v = SWIG_CheckState(res);
17898 int res = SWIG_AsVal_size_t(argv[2], NULL);
17899 _v = SWIG_CheckState(res);
17903 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
17904 _v = SWIG_CheckState(res);
17907 int res = SWIG_AsVal_bool(argv[4], NULL);
17908 _v = SWIG_CheckState(res);
17912 int res = SWIG_AsVal_long(argv[5], NULL);
17913 _v = SWIG_CheckState(res);
17916 return _wrap_fvecs_maybe_subsample__SWIG_0(
self, args);
17926 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'fvecs_maybe_subsample'.\n"
17927 " Possible C/C++ prototypes are:\n"
17928 " faiss::fvecs_maybe_subsample(size_t,size_t *,size_t,float const *,bool,long)\n"
17929 " faiss::fvecs_maybe_subsample(size_t,size_t *,size_t,float const *,bool)\n"
17930 " faiss::fvecs_maybe_subsample(size_t,size_t *,size_t,float const *)\n");
17935 SWIGINTERN PyObject *_wrap_binary_to_real(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17936 PyObject *resultobj = 0;
17938 uint8_t *arg2 = (uint8_t *) 0 ;
17939 float *arg3 = (
float *) 0 ;
17946 PyObject * obj0 = 0 ;
17947 PyObject * obj1 = 0 ;
17948 PyObject * obj2 = 0 ;
17950 if (!PyArg_ParseTuple(args,(
char *)
"OOO:binary_to_real",&obj0,&obj1,&obj2)) SWIG_fail;
17951 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
17952 if (!SWIG_IsOK(ecode1)) {
17953 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "binary_to_real" "', argument " "1"" of type '" "size_t""'");
17955 arg1 =
static_cast< size_t >(val1);
17956 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
17957 if (!SWIG_IsOK(res2)) {
17958 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "binary_to_real" "', argument " "2"" of type '" "uint8_t const *""'");
17960 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
17961 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
17962 if (!SWIG_IsOK(res3)) {
17963 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "binary_to_real" "', argument " "3"" of type '" "float *""'");
17965 arg3 =
reinterpret_cast< float *
>(argp3);
17967 Py_BEGIN_ALLOW_THREADS
17971 PyEval_RestoreThread(_save);
17972 PyErr_SetString(PyExc_RuntimeError, e.
what());
17975 Py_END_ALLOW_THREADS
17977 resultobj = SWIG_Py_Void();
17984 SWIGINTERN PyObject *_wrap_real_to_binary(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17985 PyObject *resultobj = 0;
17987 float *arg2 = (
float *) 0 ;
17988 uint8_t *arg3 = (uint8_t *) 0 ;
17995 PyObject * obj0 = 0 ;
17996 PyObject * obj1 = 0 ;
17997 PyObject * obj2 = 0 ;
17999 if (!PyArg_ParseTuple(args,(
char *)
"OOO:real_to_binary",&obj0,&obj1,&obj2)) SWIG_fail;
18000 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
18001 if (!SWIG_IsOK(ecode1)) {
18002 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "real_to_binary" "', argument " "1"" of type '" "size_t""'");
18004 arg1 =
static_cast< size_t >(val1);
18005 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
18006 if (!SWIG_IsOK(res2)) {
18007 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "real_to_binary" "', argument " "2"" of type '" "float const *""'");
18009 arg2 =
reinterpret_cast< float *
>(argp2);
18010 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
18011 if (!SWIG_IsOK(res3)) {
18012 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "real_to_binary" "', argument " "3"" of type '" "uint8_t *""'");
18014 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
18016 Py_BEGIN_ALLOW_THREADS
18020 PyEval_RestoreThread(_save);
18021 PyErr_SetString(PyExc_RuntimeError, e.
what());
18024 Py_END_ALLOW_THREADS
18026 resultobj = SWIG_Py_Void();
18033 SWIGINTERN PyObject *_wrap_Index_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18034 PyObject *resultobj = 0;
18041 PyObject * obj0 = 0 ;
18042 PyObject * obj1 = 0 ;
18044 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index_d_set",&obj0,&obj1)) SWIG_fail;
18045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18046 if (!SWIG_IsOK(res1)) {
18047 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_d_set" "', argument " "1"" of type '" "faiss::Index *""'");
18050 ecode2 = SWIG_AsVal_int(obj1, &val2);
18051 if (!SWIG_IsOK(ecode2)) {
18052 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_d_set" "', argument " "2"" of type '" "int""'");
18054 arg2 =
static_cast< int >(val2);
18055 if (arg1) (arg1)->d = arg2;
18056 resultobj = SWIG_Py_Void();
18063 SWIGINTERN PyObject *_wrap_Index_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18064 PyObject *resultobj = 0;
18068 PyObject * obj0 = 0 ;
18071 if (!PyArg_ParseTuple(args,(
char *)
"O:Index_d_get",&obj0)) SWIG_fail;
18072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18073 if (!SWIG_IsOK(res1)) {
18074 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_d_get" "', argument " "1"" of type '" "faiss::Index *""'");
18077 result = (int) ((arg1)->d);
18078 resultobj = SWIG_From_int(static_cast< int >(result));
18085 SWIGINTERN PyObject *_wrap_Index_ntotal_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18086 PyObject *resultobj = 0;
18093 PyObject * obj0 = 0 ;
18094 PyObject * obj1 = 0 ;
18096 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index_ntotal_set",&obj0,&obj1)) SWIG_fail;
18097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18098 if (!SWIG_IsOK(res1)) {
18099 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_ntotal_set" "', argument " "1"" of type '" "faiss::Index *""'");
18102 ecode2 = SWIG_AsVal_long(obj1, &val2);
18103 if (!SWIG_IsOK(ecode2)) {
18104 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_ntotal_set" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
18107 if (arg1) (arg1)->ntotal = arg2;
18108 resultobj = SWIG_Py_Void();
18115 SWIGINTERN PyObject *_wrap_Index_ntotal_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18116 PyObject *resultobj = 0;
18120 PyObject * obj0 = 0 ;
18123 if (!PyArg_ParseTuple(args,(
char *)
"O:Index_ntotal_get",&obj0)) SWIG_fail;
18124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18125 if (!SWIG_IsOK(res1)) {
18126 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_ntotal_get" "', argument " "1"" of type '" "faiss::Index *""'");
18130 resultobj = SWIG_From_long(static_cast< long >(result));
18137 SWIGINTERN PyObject *_wrap_Index_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18138 PyObject *resultobj = 0;
18145 PyObject * obj0 = 0 ;
18146 PyObject * obj1 = 0 ;
18148 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index_verbose_set",&obj0,&obj1)) SWIG_fail;
18149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18150 if (!SWIG_IsOK(res1)) {
18151 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_verbose_set" "', argument " "1"" of type '" "faiss::Index *""'");
18154 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18155 if (!SWIG_IsOK(ecode2)) {
18156 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_verbose_set" "', argument " "2"" of type '" "bool""'");
18158 arg2 =
static_cast< bool >(val2);
18159 if (arg1) (arg1)->verbose = arg2;
18160 resultobj = SWIG_Py_Void();
18167 SWIGINTERN PyObject *_wrap_Index_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18168 PyObject *resultobj = 0;
18172 PyObject * obj0 = 0 ;
18175 if (!PyArg_ParseTuple(args,(
char *)
"O:Index_verbose_get",&obj0)) SWIG_fail;
18176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18177 if (!SWIG_IsOK(res1)) {
18178 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_verbose_get" "', argument " "1"" of type '" "faiss::Index *""'");
18181 result = (bool) ((arg1)->verbose);
18182 resultobj = SWIG_From_bool(static_cast< bool >(result));
18189 SWIGINTERN PyObject *_wrap_Index_is_trained_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18190 PyObject *resultobj = 0;
18197 PyObject * obj0 = 0 ;
18198 PyObject * obj1 = 0 ;
18200 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index_is_trained_set",&obj0,&obj1)) SWIG_fail;
18201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18202 if (!SWIG_IsOK(res1)) {
18203 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_is_trained_set" "', argument " "1"" of type '" "faiss::Index *""'");
18206 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18207 if (!SWIG_IsOK(ecode2)) {
18208 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_is_trained_set" "', argument " "2"" of type '" "bool""'");
18210 arg2 =
static_cast< bool >(val2);
18211 if (arg1) (arg1)->is_trained = arg2;
18212 resultobj = SWIG_Py_Void();
18219 SWIGINTERN PyObject *_wrap_Index_is_trained_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18220 PyObject *resultobj = 0;
18224 PyObject * obj0 = 0 ;
18227 if (!PyArg_ParseTuple(args,(
char *)
"O:Index_is_trained_get",&obj0)) SWIG_fail;
18228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18229 if (!SWIG_IsOK(res1)) {
18230 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_is_trained_get" "', argument " "1"" of type '" "faiss::Index *""'");
18233 result = (bool) ((arg1)->is_trained);
18234 resultobj = SWIG_From_bool(static_cast< bool >(result));
18241 SWIGINTERN PyObject *_wrap_Index_metric_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18242 PyObject *resultobj = 0;
18249 PyObject * obj0 = 0 ;
18250 PyObject * obj1 = 0 ;
18252 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index_metric_type_set",&obj0,&obj1)) SWIG_fail;
18253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18254 if (!SWIG_IsOK(res1)) {
18255 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_metric_type_set" "', argument " "1"" of type '" "faiss::Index *""'");
18258 ecode2 = SWIG_AsVal_int(obj1, &val2);
18259 if (!SWIG_IsOK(ecode2)) {
18260 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_metric_type_set" "', argument " "2"" of type '" "faiss::MetricType""'");
18263 if (arg1) (arg1)->metric_type = arg2;
18264 resultobj = SWIG_Py_Void();
18271 SWIGINTERN PyObject *_wrap_Index_metric_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18272 PyObject *resultobj = 0;
18276 PyObject * obj0 = 0 ;
18279 if (!PyArg_ParseTuple(args,(
char *)
"O:Index_metric_type_get",&obj0)) SWIG_fail;
18280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18281 if (!SWIG_IsOK(res1)) {
18282 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_metric_type_get" "', argument " "1"" of type '" "faiss::Index *""'");
18286 resultobj = SWIG_From_int(static_cast< int >(result));
18293 SWIGINTERN PyObject *_wrap_delete_Index(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18294 PyObject *resultobj = 0;
18298 PyObject * obj0 = 0 ;
18300 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Index",&obj0)) SWIG_fail;
18301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
18302 if (!SWIG_IsOK(res1)) {
18303 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Index" "', argument " "1"" of type '" "faiss::Index *""'");
18307 Py_BEGIN_ALLOW_THREADS
18311 PyEval_RestoreThread(_save);
18312 PyErr_SetString(PyExc_RuntimeError, e.
what());
18315 Py_END_ALLOW_THREADS
18317 resultobj = SWIG_Py_Void();
18324 SWIGINTERN PyObject *_wrap_Index_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18325 PyObject *resultobj = 0;
18328 float *arg3 = (
float *) 0 ;
18335 PyObject * obj0 = 0 ;
18336 PyObject * obj1 = 0 ;
18337 PyObject * obj2 = 0 ;
18339 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Index_train",&obj0,&obj1,&obj2)) SWIG_fail;
18340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18341 if (!SWIG_IsOK(res1)) {
18342 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_train" "', argument " "1"" of type '" "faiss::Index *""'");
18345 ecode2 = SWIG_AsVal_long(obj1, &val2);
18346 if (!SWIG_IsOK(ecode2)) {
18347 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
18350 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
18351 if (!SWIG_IsOK(res3)) {
18352 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_train" "', argument " "3"" of type '" "float const *""'");
18354 arg3 =
reinterpret_cast< float *
>(argp3);
18356 Py_BEGIN_ALLOW_THREADS
18358 (arg1)->train(arg2,(
float const *)arg3);
18360 PyEval_RestoreThread(_save);
18361 PyErr_SetString(PyExc_RuntimeError, e.
what());
18364 Py_END_ALLOW_THREADS
18366 resultobj = SWIG_Py_Void();
18373 SWIGINTERN PyObject *_wrap_Index_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18374 PyObject *resultobj = 0;
18377 float *arg3 = (
float *) 0 ;
18384 PyObject * obj0 = 0 ;
18385 PyObject * obj1 = 0 ;
18386 PyObject * obj2 = 0 ;
18388 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Index_add",&obj0,&obj1,&obj2)) SWIG_fail;
18389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18390 if (!SWIG_IsOK(res1)) {
18391 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_add" "', argument " "1"" of type '" "faiss::Index *""'");
18394 ecode2 = SWIG_AsVal_long(obj1, &val2);
18395 if (!SWIG_IsOK(ecode2)) {
18396 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
18399 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
18400 if (!SWIG_IsOK(res3)) {
18401 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_add" "', argument " "3"" of type '" "float const *""'");
18403 arg3 =
reinterpret_cast< float *
>(argp3);
18405 Py_BEGIN_ALLOW_THREADS
18407 (arg1)->add(arg2,(
float const *)arg3);
18409 PyEval_RestoreThread(_save);
18410 PyErr_SetString(PyExc_RuntimeError, e.
what());
18413 Py_END_ALLOW_THREADS
18415 resultobj = SWIG_Py_Void();
18422 SWIGINTERN PyObject *_wrap_Index_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18423 PyObject *resultobj = 0;
18426 float *arg3 = (
float *) 0 ;
18427 long *arg4 = (
long *) 0 ;
18436 PyObject * obj0 = 0 ;
18437 PyObject * obj1 = 0 ;
18438 PyObject * obj2 = 0 ;
18439 PyObject * obj3 = 0 ;
18441 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Index_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18443 if (!SWIG_IsOK(res1)) {
18444 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_add_with_ids" "', argument " "1"" of type '" "faiss::Index *""'");
18447 ecode2 = SWIG_AsVal_long(obj1, &val2);
18448 if (!SWIG_IsOK(ecode2)) {
18449 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
18452 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
18453 if (!SWIG_IsOK(res3)) {
18454 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_add_with_ids" "', argument " "3"" of type '" "float const *""'");
18456 arg3 =
reinterpret_cast< float *
>(argp3);
18457 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
18458 if (!SWIG_IsOK(res4)) {
18459 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "Index_add_with_ids" "', argument " "4"" of type '" "long const *""'");
18461 arg4 =
reinterpret_cast< long *
>(argp4);
18463 Py_BEGIN_ALLOW_THREADS
18465 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
18467 PyEval_RestoreThread(_save);
18468 PyErr_SetString(PyExc_RuntimeError, e.
what());
18471 Py_END_ALLOW_THREADS
18473 resultobj = SWIG_Py_Void();
18480 SWIGINTERN PyObject *_wrap_Index_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18481 PyObject *resultobj = 0;
18484 float *arg3 = (
float *) 0 ;
18486 float *arg5 = (
float *) 0 ;
18500 PyObject * obj0 = 0 ;
18501 PyObject * obj1 = 0 ;
18502 PyObject * obj2 = 0 ;
18503 PyObject * obj3 = 0 ;
18504 PyObject * obj4 = 0 ;
18505 PyObject * obj5 = 0 ;
18507 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:Index_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18509 if (!SWIG_IsOK(res1)) {
18510 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_search" "', argument " "1"" of type '" "faiss::Index const *""'");
18513 ecode2 = SWIG_AsVal_long(obj1, &val2);
18514 if (!SWIG_IsOK(ecode2)) {
18515 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
18518 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
18519 if (!SWIG_IsOK(res3)) {
18520 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_search" "', argument " "3"" of type '" "float const *""'");
18522 arg3 =
reinterpret_cast< float *
>(argp3);
18523 ecode4 = SWIG_AsVal_long(obj3, &val4);
18524 if (!SWIG_IsOK(ecode4)) {
18525 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Index_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
18528 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
18529 if (!SWIG_IsOK(res5)) {
18530 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "Index_search" "', argument " "5"" of type '" "float *""'");
18532 arg5 =
reinterpret_cast< float *
>(argp5);
18533 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
18534 if (!SWIG_IsOK(res6)) {
18535 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "Index_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
18539 Py_BEGIN_ALLOW_THREADS
18541 ((
faiss::Index const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
18543 PyEval_RestoreThread(_save);
18544 PyErr_SetString(PyExc_RuntimeError, e.
what());
18547 Py_END_ALLOW_THREADS
18549 resultobj = SWIG_Py_Void();
18556 SWIGINTERN PyObject *_wrap_Index_range_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18557 PyObject *resultobj = 0;
18560 float *arg3 = (
float *) 0 ;
18573 PyObject * obj0 = 0 ;
18574 PyObject * obj1 = 0 ;
18575 PyObject * obj2 = 0 ;
18576 PyObject * obj3 = 0 ;
18577 PyObject * obj4 = 0 ;
18579 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:Index_range_search",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18581 if (!SWIG_IsOK(res1)) {
18582 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_range_search" "', argument " "1"" of type '" "faiss::Index const *""'");
18585 ecode2 = SWIG_AsVal_long(obj1, &val2);
18586 if (!SWIG_IsOK(ecode2)) {
18587 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_range_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
18590 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
18591 if (!SWIG_IsOK(res3)) {
18592 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_range_search" "', argument " "3"" of type '" "float const *""'");
18594 arg3 =
reinterpret_cast< float *
>(argp3);
18595 ecode4 = SWIG_AsVal_float(obj3, &val4);
18596 if (!SWIG_IsOK(ecode4)) {
18597 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Index_range_search" "', argument " "4"" of type '" "float""'");
18599 arg4 =
static_cast< float >(val4);
18600 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
18601 if (!SWIG_IsOK(res5)) {
18602 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "Index_range_search" "', argument " "5"" of type '" "faiss::RangeSearchResult *""'");
18606 Py_BEGIN_ALLOW_THREADS
18608 ((
faiss::Index const *)arg1)->range_search(arg2,(
float const *)arg3,arg4,arg5);
18610 PyEval_RestoreThread(_save);
18611 PyErr_SetString(PyExc_RuntimeError, e.
what());
18614 Py_END_ALLOW_THREADS
18616 resultobj = SWIG_Py_Void();
18623 SWIGINTERN PyObject *_wrap_Index_assign__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18624 PyObject *resultobj = 0;
18627 float *arg3 = (
float *) 0 ;
18640 PyObject * obj0 = 0 ;
18641 PyObject * obj1 = 0 ;
18642 PyObject * obj2 = 0 ;
18643 PyObject * obj3 = 0 ;
18644 PyObject * obj4 = 0 ;
18646 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:Index_assign",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18648 if (!SWIG_IsOK(res1)) {
18649 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_assign" "', argument " "1"" of type '" "faiss::Index *""'");
18652 ecode2 = SWIG_AsVal_long(obj1, &val2);
18653 if (!SWIG_IsOK(ecode2)) {
18654 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_assign" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
18657 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
18658 if (!SWIG_IsOK(res3)) {
18659 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_assign" "', argument " "3"" of type '" "float const *""'");
18661 arg3 =
reinterpret_cast< float *
>(argp3);
18662 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
18663 if (!SWIG_IsOK(res4)) {
18664 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "Index_assign" "', argument " "4"" of type '" "faiss::Index::idx_t *""'");
18667 ecode5 = SWIG_AsVal_long(obj4, &val5);
18668 if (!SWIG_IsOK(ecode5)) {
18669 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "Index_assign" "', argument " "5"" of type '" "faiss::Index::idx_t""'");
18673 Py_BEGIN_ALLOW_THREADS
18675 (arg1)->assign(arg2,(
float const *)arg3,arg4,arg5);
18677 PyEval_RestoreThread(_save);
18678 PyErr_SetString(PyExc_RuntimeError, e.
what());
18681 Py_END_ALLOW_THREADS
18683 resultobj = SWIG_Py_Void();
18690 SWIGINTERN PyObject *_wrap_Index_assign__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18691 PyObject *resultobj = 0;
18694 float *arg3 = (
float *) 0 ;
18704 PyObject * obj0 = 0 ;
18705 PyObject * obj1 = 0 ;
18706 PyObject * obj2 = 0 ;
18707 PyObject * obj3 = 0 ;
18709 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Index_assign",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18711 if (!SWIG_IsOK(res1)) {
18712 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_assign" "', argument " "1"" of type '" "faiss::Index *""'");
18715 ecode2 = SWIG_AsVal_long(obj1, &val2);
18716 if (!SWIG_IsOK(ecode2)) {
18717 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_assign" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
18720 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
18721 if (!SWIG_IsOK(res3)) {
18722 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_assign" "', argument " "3"" of type '" "float const *""'");
18724 arg3 =
reinterpret_cast< float *
>(argp3);
18725 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
18726 if (!SWIG_IsOK(res4)) {
18727 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "Index_assign" "', argument " "4"" of type '" "faiss::Index::idx_t *""'");
18731 Py_BEGIN_ALLOW_THREADS
18733 (arg1)->assign(arg2,(
float const *)arg3,arg4);
18735 PyEval_RestoreThread(_save);
18736 PyErr_SetString(PyExc_RuntimeError, e.
what());
18739 Py_END_ALLOW_THREADS
18741 resultobj = SWIG_Py_Void();
18748 SWIGINTERN PyObject *_wrap_Index_assign(PyObject *
self, PyObject *args) {
18750 PyObject *argv[6] = {
18755 if (!PyTuple_Check(args)) SWIG_fail;
18756 argc = args ? PyObject_Length(args) : 0;
18757 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
18758 argv[ii] = PyTuple_GET_ITEM(args,ii);
18763 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
18764 _v = SWIG_CheckState(res);
18767 int res = SWIG_AsVal_long(argv[1], NULL);
18768 _v = SWIG_CheckState(res);
18772 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
18773 _v = SWIG_CheckState(res);
18776 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
18777 _v = SWIG_CheckState(res);
18779 return _wrap_Index_assign__SWIG_1(
self, args);
18788 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
18789 _v = SWIG_CheckState(res);
18792 int res = SWIG_AsVal_long(argv[1], NULL);
18793 _v = SWIG_CheckState(res);
18797 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
18798 _v = SWIG_CheckState(res);
18801 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
18802 _v = SWIG_CheckState(res);
18805 int res = SWIG_AsVal_long(argv[4], NULL);
18806 _v = SWIG_CheckState(res);
18809 return _wrap_Index_assign__SWIG_0(
self, args);
18818 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'Index_assign'.\n"
18819 " Possible C/C++ prototypes are:\n"
18820 " faiss::Index::assign(faiss::Index::idx_t,float const *,faiss::Index::idx_t *,faiss::Index::idx_t)\n"
18821 " faiss::Index::assign(faiss::Index::idx_t,float const *,faiss::Index::idx_t *)\n");
18826 SWIGINTERN PyObject *_wrap_Index_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18827 PyObject *resultobj = 0;
18831 PyObject * obj0 = 0 ;
18833 if (!PyArg_ParseTuple(args,(
char *)
"O:Index_reset",&obj0)) SWIG_fail;
18834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18835 if (!SWIG_IsOK(res1)) {
18836 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_reset" "', argument " "1"" of type '" "faiss::Index *""'");
18840 Py_BEGIN_ALLOW_THREADS
18844 PyEval_RestoreThread(_save);
18845 PyErr_SetString(PyExc_RuntimeError, e.
what());
18848 Py_END_ALLOW_THREADS
18850 resultobj = SWIG_Py_Void();
18857 SWIGINTERN PyObject *_wrap_Index_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18858 PyObject *resultobj = 0;
18865 PyObject * obj0 = 0 ;
18866 PyObject * obj1 = 0 ;
18869 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index_remove_ids",&obj0,&obj1)) SWIG_fail;
18870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18871 if (!SWIG_IsOK(res1)) {
18872 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_remove_ids" "', argument " "1"" of type '" "faiss::Index *""'");
18875 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
18876 if (!SWIG_IsOK(res2)) {
18877 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Index_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
18880 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Index_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
18884 Py_BEGIN_ALLOW_THREADS
18888 PyEval_RestoreThread(_save);
18889 PyErr_SetString(PyExc_RuntimeError, e.
what());
18892 Py_END_ALLOW_THREADS
18894 resultobj = SWIG_From_long(static_cast< long >(result));
18901 SWIGINTERN PyObject *_wrap_Index_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18902 PyObject *resultobj = 0;
18905 float *arg3 = (
float *) 0 ;
18912 PyObject * obj0 = 0 ;
18913 PyObject * obj1 = 0 ;
18914 PyObject * obj2 = 0 ;
18916 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Index_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
18917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18918 if (!SWIG_IsOK(res1)) {
18919 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_reconstruct" "', argument " "1"" of type '" "faiss::Index const *""'");
18922 ecode2 = SWIG_AsVal_long(obj1, &val2);
18923 if (!SWIG_IsOK(ecode2)) {
18924 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
18927 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
18928 if (!SWIG_IsOK(res3)) {
18929 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_reconstruct" "', argument " "3"" of type '" "float *""'");
18931 arg3 =
reinterpret_cast< float *
>(argp3);
18933 Py_BEGIN_ALLOW_THREADS
18937 PyEval_RestoreThread(_save);
18938 PyErr_SetString(PyExc_RuntimeError, e.
what());
18941 Py_END_ALLOW_THREADS
18943 resultobj = SWIG_Py_Void();
18950 SWIGINTERN PyObject *_wrap_Index_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18951 PyObject *resultobj = 0;
18955 float *arg4 = (
float *) 0 ;
18964 PyObject * obj0 = 0 ;
18965 PyObject * obj1 = 0 ;
18966 PyObject * obj2 = 0 ;
18967 PyObject * obj3 = 0 ;
18969 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Index_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
18971 if (!SWIG_IsOK(res1)) {
18972 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_reconstruct_n" "', argument " "1"" of type '" "faiss::Index const *""'");
18975 ecode2 = SWIG_AsVal_long(obj1, &val2);
18976 if (!SWIG_IsOK(ecode2)) {
18977 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_reconstruct_n" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
18980 ecode3 = SWIG_AsVal_long(obj2, &val3);
18981 if (!SWIG_IsOK(ecode3)) {
18982 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Index_reconstruct_n" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
18985 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
18986 if (!SWIG_IsOK(res4)) {
18987 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "Index_reconstruct_n" "', argument " "4"" of type '" "float *""'");
18989 arg4 =
reinterpret_cast< float *
>(argp4);
18991 Py_BEGIN_ALLOW_THREADS
18993 ((
faiss::Index const *)arg1)->reconstruct_n(arg2,arg3,arg4);
18995 PyEval_RestoreThread(_save);
18996 PyErr_SetString(PyExc_RuntimeError, e.
what());
18999 Py_END_ALLOW_THREADS
19001 resultobj = SWIG_Py_Void();
19008 SWIGINTERN PyObject *_wrap_Index_search_and_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19009 PyObject *resultobj = 0;
19012 float *arg3 = (
float *) 0 ;
19014 float *arg5 = (
float *) 0 ;
19016 float *arg7 = (
float *) 0 ;
19031 PyObject * obj0 = 0 ;
19032 PyObject * obj1 = 0 ;
19033 PyObject * obj2 = 0 ;
19034 PyObject * obj3 = 0 ;
19035 PyObject * obj4 = 0 ;
19036 PyObject * obj5 = 0 ;
19037 PyObject * obj6 = 0 ;
19039 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:Index_search_and_reconstruct",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
19040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
19041 if (!SWIG_IsOK(res1)) {
19042 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_search_and_reconstruct" "', argument " "1"" of type '" "faiss::Index const *""'");
19045 ecode2 = SWIG_AsVal_long(obj1, &val2);
19046 if (!SWIG_IsOK(ecode2)) {
19047 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index_search_and_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
19050 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
19051 if (!SWIG_IsOK(res3)) {
19052 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_search_and_reconstruct" "', argument " "3"" of type '" "float const *""'");
19054 arg3 =
reinterpret_cast< float *
>(argp3);
19055 ecode4 = SWIG_AsVal_long(obj3, &val4);
19056 if (!SWIG_IsOK(ecode4)) {
19057 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Index_search_and_reconstruct" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
19060 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
19061 if (!SWIG_IsOK(res5)) {
19062 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "Index_search_and_reconstruct" "', argument " "5"" of type '" "float *""'");
19064 arg5 =
reinterpret_cast< float *
>(argp5);
19065 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
19066 if (!SWIG_IsOK(res6)) {
19067 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "Index_search_and_reconstruct" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
19070 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
19071 if (!SWIG_IsOK(res7)) {
19072 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "Index_search_and_reconstruct" "', argument " "7"" of type '" "float *""'");
19074 arg7 =
reinterpret_cast< float *
>(argp7);
19076 Py_BEGIN_ALLOW_THREADS
19078 ((
faiss::Index const *)arg1)->search_and_reconstruct(arg2,(
float const *)arg3,arg4,arg5,arg6,arg7);
19080 PyEval_RestoreThread(_save);
19081 PyErr_SetString(PyExc_RuntimeError, e.
what());
19084 Py_END_ALLOW_THREADS
19086 resultobj = SWIG_Py_Void();
19093 SWIGINTERN PyObject *_wrap_Index_compute_residual(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19094 PyObject *resultobj = 0;
19096 float *arg2 = (
float *) 0 ;
19097 float *arg3 = (
float *) 0 ;
19107 PyObject * obj0 = 0 ;
19108 PyObject * obj1 = 0 ;
19109 PyObject * obj2 = 0 ;
19110 PyObject * obj3 = 0 ;
19112 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Index_compute_residual",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
19114 if (!SWIG_IsOK(res1)) {
19115 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_compute_residual" "', argument " "1"" of type '" "faiss::Index const *""'");
19118 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
19119 if (!SWIG_IsOK(res2)) {
19120 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Index_compute_residual" "', argument " "2"" of type '" "float const *""'");
19122 arg2 =
reinterpret_cast< float *
>(argp2);
19123 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
19124 if (!SWIG_IsOK(res3)) {
19125 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index_compute_residual" "', argument " "3"" of type '" "float *""'");
19127 arg3 =
reinterpret_cast< float *
>(argp3);
19128 ecode4 = SWIG_AsVal_long(obj3, &val4);
19129 if (!SWIG_IsOK(ecode4)) {
19130 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Index_compute_residual" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
19134 Py_BEGIN_ALLOW_THREADS
19136 ((
faiss::Index const *)arg1)->compute_residual((
float const *)arg2,arg3,arg4);
19138 PyEval_RestoreThread(_save);
19139 PyErr_SetString(PyExc_RuntimeError, e.
what());
19142 Py_END_ALLOW_THREADS
19144 resultobj = SWIG_Py_Void();
19151 SWIGINTERN PyObject *_wrap_Index_display(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19152 PyObject *resultobj = 0;
19156 PyObject * obj0 = 0 ;
19158 if (!PyArg_ParseTuple(args,(
char *)
"O:Index_display",&obj0)) SWIG_fail;
19159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
19160 if (!SWIG_IsOK(res1)) {
19161 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index_display" "', argument " "1"" of type '" "faiss::Index const *""'");
19165 Py_BEGIN_ALLOW_THREADS
19169 PyEval_RestoreThread(_save);
19170 PyErr_SetString(PyExc_RuntimeError, e.
what());
19173 Py_END_ALLOW_THREADS
19175 resultobj = SWIG_Py_Void();
19182 SWIGINTERN PyObject *Index_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19184 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
19185 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__Index, SWIG_NewClientData(obj));
19186 return SWIG_Py_Void();
19189 SWIGINTERN PyObject *_wrap_ClusteringParameters_niter_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19190 PyObject *resultobj = 0;
19197 PyObject * obj0 = 0 ;
19198 PyObject * obj1 = 0 ;
19200 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_niter_set",&obj0,&obj1)) SWIG_fail;
19201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19202 if (!SWIG_IsOK(res1)) {
19203 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_niter_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19206 ecode2 = SWIG_AsVal_int(obj1, &val2);
19207 if (!SWIG_IsOK(ecode2)) {
19208 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_niter_set" "', argument " "2"" of type '" "int""'");
19210 arg2 =
static_cast< int >(val2);
19211 if (arg1) (arg1)->niter = arg2;
19212 resultobj = SWIG_Py_Void();
19219 SWIGINTERN PyObject *_wrap_ClusteringParameters_niter_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19220 PyObject *resultobj = 0;
19224 PyObject * obj0 = 0 ;
19227 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_niter_get",&obj0)) SWIG_fail;
19228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19229 if (!SWIG_IsOK(res1)) {
19230 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_niter_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19233 result = (int) ((arg1)->niter);
19234 resultobj = SWIG_From_int(static_cast< int >(result));
19241 SWIGINTERN PyObject *_wrap_ClusteringParameters_nredo_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19242 PyObject *resultobj = 0;
19249 PyObject * obj0 = 0 ;
19250 PyObject * obj1 = 0 ;
19252 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_nredo_set",&obj0,&obj1)) SWIG_fail;
19253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19254 if (!SWIG_IsOK(res1)) {
19255 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_nredo_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19258 ecode2 = SWIG_AsVal_int(obj1, &val2);
19259 if (!SWIG_IsOK(ecode2)) {
19260 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_nredo_set" "', argument " "2"" of type '" "int""'");
19262 arg2 =
static_cast< int >(val2);
19263 if (arg1) (arg1)->nredo = arg2;
19264 resultobj = SWIG_Py_Void();
19271 SWIGINTERN PyObject *_wrap_ClusteringParameters_nredo_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19272 PyObject *resultobj = 0;
19276 PyObject * obj0 = 0 ;
19279 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_nredo_get",&obj0)) SWIG_fail;
19280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19281 if (!SWIG_IsOK(res1)) {
19282 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_nredo_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19285 result = (int) ((arg1)->nredo);
19286 resultobj = SWIG_From_int(static_cast< int >(result));
19293 SWIGINTERN PyObject *_wrap_ClusteringParameters_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19294 PyObject *resultobj = 0;
19301 PyObject * obj0 = 0 ;
19302 PyObject * obj1 = 0 ;
19304 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_verbose_set",&obj0,&obj1)) SWIG_fail;
19305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19306 if (!SWIG_IsOK(res1)) {
19307 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_verbose_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19310 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19311 if (!SWIG_IsOK(ecode2)) {
19312 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_verbose_set" "', argument " "2"" of type '" "bool""'");
19314 arg2 =
static_cast< bool >(val2);
19315 if (arg1) (arg1)->verbose = arg2;
19316 resultobj = SWIG_Py_Void();
19323 SWIGINTERN PyObject *_wrap_ClusteringParameters_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19324 PyObject *resultobj = 0;
19328 PyObject * obj0 = 0 ;
19331 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_verbose_get",&obj0)) SWIG_fail;
19332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19333 if (!SWIG_IsOK(res1)) {
19334 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_verbose_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19337 result = (bool) ((arg1)->verbose);
19338 resultobj = SWIG_From_bool(static_cast< bool >(result));
19345 SWIGINTERN PyObject *_wrap_ClusteringParameters_spherical_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19346 PyObject *resultobj = 0;
19353 PyObject * obj0 = 0 ;
19354 PyObject * obj1 = 0 ;
19356 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_spherical_set",&obj0,&obj1)) SWIG_fail;
19357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19358 if (!SWIG_IsOK(res1)) {
19359 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_spherical_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19362 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19363 if (!SWIG_IsOK(ecode2)) {
19364 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_spherical_set" "', argument " "2"" of type '" "bool""'");
19366 arg2 =
static_cast< bool >(val2);
19367 if (arg1) (arg1)->spherical = arg2;
19368 resultobj = SWIG_Py_Void();
19375 SWIGINTERN PyObject *_wrap_ClusteringParameters_spherical_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19376 PyObject *resultobj = 0;
19380 PyObject * obj0 = 0 ;
19383 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_spherical_get",&obj0)) SWIG_fail;
19384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19385 if (!SWIG_IsOK(res1)) {
19386 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_spherical_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19389 result = (bool) ((arg1)->spherical);
19390 resultobj = SWIG_From_bool(static_cast< bool >(result));
19397 SWIGINTERN PyObject *_wrap_ClusteringParameters_update_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19398 PyObject *resultobj = 0;
19405 PyObject * obj0 = 0 ;
19406 PyObject * obj1 = 0 ;
19408 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_update_index_set",&obj0,&obj1)) SWIG_fail;
19409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19410 if (!SWIG_IsOK(res1)) {
19411 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_update_index_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19414 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19415 if (!SWIG_IsOK(ecode2)) {
19416 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_update_index_set" "', argument " "2"" of type '" "bool""'");
19418 arg2 =
static_cast< bool >(val2);
19419 if (arg1) (arg1)->update_index = arg2;
19420 resultobj = SWIG_Py_Void();
19427 SWIGINTERN PyObject *_wrap_ClusteringParameters_update_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19428 PyObject *resultobj = 0;
19432 PyObject * obj0 = 0 ;
19435 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_update_index_get",&obj0)) SWIG_fail;
19436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19437 if (!SWIG_IsOK(res1)) {
19438 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_update_index_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19441 result = (bool) ((arg1)->update_index);
19442 resultobj = SWIG_From_bool(static_cast< bool >(result));
19449 SWIGINTERN PyObject *_wrap_ClusteringParameters_frozen_centroids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19450 PyObject *resultobj = 0;
19457 PyObject * obj0 = 0 ;
19458 PyObject * obj1 = 0 ;
19460 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_frozen_centroids_set",&obj0,&obj1)) SWIG_fail;
19461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19462 if (!SWIG_IsOK(res1)) {
19463 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_frozen_centroids_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19466 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19467 if (!SWIG_IsOK(ecode2)) {
19468 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_frozen_centroids_set" "', argument " "2"" of type '" "bool""'");
19470 arg2 =
static_cast< bool >(val2);
19471 if (arg1) (arg1)->frozen_centroids = arg2;
19472 resultobj = SWIG_Py_Void();
19479 SWIGINTERN PyObject *_wrap_ClusteringParameters_frozen_centroids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19480 PyObject *resultobj = 0;
19484 PyObject * obj0 = 0 ;
19487 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_frozen_centroids_get",&obj0)) SWIG_fail;
19488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19489 if (!SWIG_IsOK(res1)) {
19490 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_frozen_centroids_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19493 result = (bool) ((arg1)->frozen_centroids);
19494 resultobj = SWIG_From_bool(static_cast< bool >(result));
19501 SWIGINTERN PyObject *_wrap_ClusteringParameters_min_points_per_centroid_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19502 PyObject *resultobj = 0;
19509 PyObject * obj0 = 0 ;
19510 PyObject * obj1 = 0 ;
19512 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_min_points_per_centroid_set",&obj0,&obj1)) SWIG_fail;
19513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19514 if (!SWIG_IsOK(res1)) {
19515 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_min_points_per_centroid_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19518 ecode2 = SWIG_AsVal_int(obj1, &val2);
19519 if (!SWIG_IsOK(ecode2)) {
19520 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_min_points_per_centroid_set" "', argument " "2"" of type '" "int""'");
19522 arg2 =
static_cast< int >(val2);
19523 if (arg1) (arg1)->min_points_per_centroid = arg2;
19524 resultobj = SWIG_Py_Void();
19531 SWIGINTERN PyObject *_wrap_ClusteringParameters_min_points_per_centroid_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19532 PyObject *resultobj = 0;
19536 PyObject * obj0 = 0 ;
19539 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_min_points_per_centroid_get",&obj0)) SWIG_fail;
19540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19541 if (!SWIG_IsOK(res1)) {
19542 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_min_points_per_centroid_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19545 result = (int) ((arg1)->min_points_per_centroid);
19546 resultobj = SWIG_From_int(static_cast< int >(result));
19553 SWIGINTERN PyObject *_wrap_ClusteringParameters_max_points_per_centroid_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19554 PyObject *resultobj = 0;
19561 PyObject * obj0 = 0 ;
19562 PyObject * obj1 = 0 ;
19564 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_max_points_per_centroid_set",&obj0,&obj1)) SWIG_fail;
19565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19566 if (!SWIG_IsOK(res1)) {
19567 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_max_points_per_centroid_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19570 ecode2 = SWIG_AsVal_int(obj1, &val2);
19571 if (!SWIG_IsOK(ecode2)) {
19572 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_max_points_per_centroid_set" "', argument " "2"" of type '" "int""'");
19574 arg2 =
static_cast< int >(val2);
19575 if (arg1) (arg1)->max_points_per_centroid = arg2;
19576 resultobj = SWIG_Py_Void();
19583 SWIGINTERN PyObject *_wrap_ClusteringParameters_max_points_per_centroid_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19584 PyObject *resultobj = 0;
19588 PyObject * obj0 = 0 ;
19591 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_max_points_per_centroid_get",&obj0)) SWIG_fail;
19592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19593 if (!SWIG_IsOK(res1)) {
19594 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_max_points_per_centroid_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19597 result = (int) ((arg1)->max_points_per_centroid);
19598 resultobj = SWIG_From_int(static_cast< int >(result));
19605 SWIGINTERN PyObject *_wrap_ClusteringParameters_seed_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19606 PyObject *resultobj = 0;
19613 PyObject * obj0 = 0 ;
19614 PyObject * obj1 = 0 ;
19616 if (!PyArg_ParseTuple(args,(
char *)
"OO:ClusteringParameters_seed_set",&obj0,&obj1)) SWIG_fail;
19617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19618 if (!SWIG_IsOK(res1)) {
19619 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_seed_set" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19622 ecode2 = SWIG_AsVal_int(obj1, &val2);
19623 if (!SWIG_IsOK(ecode2)) {
19624 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ClusteringParameters_seed_set" "', argument " "2"" of type '" "int""'");
19626 arg2 =
static_cast< int >(val2);
19627 if (arg1) (arg1)->seed = arg2;
19628 resultobj = SWIG_Py_Void();
19635 SWIGINTERN PyObject *_wrap_ClusteringParameters_seed_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19636 PyObject *resultobj = 0;
19640 PyObject * obj0 = 0 ;
19643 if (!PyArg_ParseTuple(args,(
char *)
"O:ClusteringParameters_seed_get",&obj0)) SWIG_fail;
19644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
19645 if (!SWIG_IsOK(res1)) {
19646 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ClusteringParameters_seed_get" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19649 result = (int) ((arg1)->seed);
19650 resultobj = SWIG_From_int(static_cast< int >(result));
19657 SWIGINTERN PyObject *_wrap_new_ClusteringParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19658 PyObject *resultobj = 0;
19661 if (!PyArg_ParseTuple(args,(
char *)
":new_ClusteringParameters")) SWIG_fail;
19663 Py_BEGIN_ALLOW_THREADS
19667 PyEval_RestoreThread(_save);
19668 PyErr_SetString(PyExc_RuntimeError, e.
what());
19671 Py_END_ALLOW_THREADS
19673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ClusteringParameters, SWIG_POINTER_NEW | 0 );
19680 SWIGINTERN PyObject *_wrap_delete_ClusteringParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19681 PyObject *resultobj = 0;
19685 PyObject * obj0 = 0 ;
19687 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ClusteringParameters",&obj0)) SWIG_fail;
19688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ClusteringParameters, SWIG_POINTER_DISOWN | 0 );
19689 if (!SWIG_IsOK(res1)) {
19690 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ClusteringParameters" "', argument " "1"" of type '" "faiss::ClusteringParameters *""'");
19694 resultobj = SWIG_Py_Void();
19701 SWIGINTERN PyObject *ClusteringParameters_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19703 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
19704 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ClusteringParameters, SWIG_NewClientData(obj));
19705 return SWIG_Py_Void();
19708 SWIGINTERN PyObject *_wrap_Clustering_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19709 PyObject *resultobj = 0;
19716 PyObject * obj0 = 0 ;
19717 PyObject * obj1 = 0 ;
19719 if (!PyArg_ParseTuple(args,(
char *)
"OO:Clustering_d_set",&obj0,&obj1)) SWIG_fail;
19720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
19721 if (!SWIG_IsOK(res1)) {
19722 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_d_set" "', argument " "1"" of type '" "faiss::Clustering *""'");
19725 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19726 if (!SWIG_IsOK(ecode2)) {
19727 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Clustering_d_set" "', argument " "2"" of type '" "size_t""'");
19729 arg2 =
static_cast< size_t >(val2);
19730 if (arg1) (arg1)->d = arg2;
19731 resultobj = SWIG_Py_Void();
19738 SWIGINTERN PyObject *_wrap_Clustering_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19739 PyObject *resultobj = 0;
19743 PyObject * obj0 = 0 ;
19746 if (!PyArg_ParseTuple(args,(
char *)
"O:Clustering_d_get",&obj0)) SWIG_fail;
19747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
19748 if (!SWIG_IsOK(res1)) {
19749 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_d_get" "', argument " "1"" of type '" "faiss::Clustering *""'");
19752 result = (size_t) ((arg1)->d);
19753 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19760 SWIGINTERN PyObject *_wrap_Clustering_k_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19761 PyObject *resultobj = 0;
19768 PyObject * obj0 = 0 ;
19769 PyObject * obj1 = 0 ;
19771 if (!PyArg_ParseTuple(args,(
char *)
"OO:Clustering_k_set",&obj0,&obj1)) SWIG_fail;
19772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
19773 if (!SWIG_IsOK(res1)) {
19774 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_k_set" "', argument " "1"" of type '" "faiss::Clustering *""'");
19777 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19778 if (!SWIG_IsOK(ecode2)) {
19779 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Clustering_k_set" "', argument " "2"" of type '" "size_t""'");
19781 arg2 =
static_cast< size_t >(val2);
19782 if (arg1) (arg1)->k = arg2;
19783 resultobj = SWIG_Py_Void();
19790 SWIGINTERN PyObject *_wrap_Clustering_k_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19791 PyObject *resultobj = 0;
19795 PyObject * obj0 = 0 ;
19798 if (!PyArg_ParseTuple(args,(
char *)
"O:Clustering_k_get",&obj0)) SWIG_fail;
19799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
19800 if (!SWIG_IsOK(res1)) {
19801 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_k_get" "', argument " "1"" of type '" "faiss::Clustering *""'");
19804 result = (size_t) ((arg1)->k);
19805 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19812 SWIGINTERN PyObject *_wrap_Clustering_centroids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19813 PyObject *resultobj = 0;
19815 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
19820 PyObject * obj0 = 0 ;
19821 PyObject * obj1 = 0 ;
19823 if (!PyArg_ParseTuple(args,(
char *)
"OO:Clustering_centroids_set",&obj0,&obj1)) SWIG_fail;
19824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
19825 if (!SWIG_IsOK(res1)) {
19826 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_centroids_set" "', argument " "1"" of type '" "faiss::Clustering *""'");
19829 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
19830 if (!SWIG_IsOK(res2)) {
19831 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Clustering_centroids_set" "', argument " "2"" of type '" "std::vector< float > *""'");
19833 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
19834 if (arg1) (arg1)->centroids = *arg2;
19835 resultobj = SWIG_Py_Void();
19842 SWIGINTERN PyObject *_wrap_Clustering_centroids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19843 PyObject *resultobj = 0;
19847 PyObject * obj0 = 0 ;
19848 std::vector< float > *result = 0 ;
19850 if (!PyArg_ParseTuple(args,(
char *)
"O:Clustering_centroids_get",&obj0)) SWIG_fail;
19851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
19852 if (!SWIG_IsOK(res1)) {
19853 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_centroids_get" "', argument " "1"" of type '" "faiss::Clustering *""'");
19856 result = (std::vector< float > *)& ((arg1)->centroids);
19857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
19864 SWIGINTERN PyObject *_wrap_Clustering_obj_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19865 PyObject *resultobj = 0;
19867 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
19872 PyObject * obj0 = 0 ;
19873 PyObject * obj1 = 0 ;
19875 if (!PyArg_ParseTuple(args,(
char *)
"OO:Clustering_obj_set",&obj0,&obj1)) SWIG_fail;
19876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
19877 if (!SWIG_IsOK(res1)) {
19878 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_obj_set" "', argument " "1"" of type '" "faiss::Clustering *""'");
19881 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
19882 if (!SWIG_IsOK(res2)) {
19883 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Clustering_obj_set" "', argument " "2"" of type '" "std::vector< float > *""'");
19885 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
19886 if (arg1) (arg1)->obj = *arg2;
19887 resultobj = SWIG_Py_Void();
19894 SWIGINTERN PyObject *_wrap_Clustering_obj_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19895 PyObject *resultobj = 0;
19899 PyObject * obj0 = 0 ;
19900 std::vector< float > *result = 0 ;
19902 if (!PyArg_ParseTuple(args,(
char *)
"O:Clustering_obj_get",&obj0)) SWIG_fail;
19903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
19904 if (!SWIG_IsOK(res1)) {
19905 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_obj_get" "', argument " "1"" of type '" "faiss::Clustering *""'");
19908 result = (std::vector< float > *)& ((arg1)->obj);
19909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
19916 SWIGINTERN PyObject *_wrap_new_Clustering__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19917 PyObject *resultobj = 0;
19924 PyObject * obj0 = 0 ;
19925 PyObject * obj1 = 0 ;
19928 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_Clustering",&obj0,&obj1)) SWIG_fail;
19929 ecode1 = SWIG_AsVal_int(obj0, &val1);
19930 if (!SWIG_IsOK(ecode1)) {
19931 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_Clustering" "', argument " "1"" of type '" "int""'");
19933 arg1 =
static_cast< int >(val1);
19934 ecode2 = SWIG_AsVal_int(obj1, &val2);
19935 if (!SWIG_IsOK(ecode2)) {
19936 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_Clustering" "', argument " "2"" of type '" "int""'");
19938 arg2 =
static_cast< int >(val2);
19940 Py_BEGIN_ALLOW_THREADS
19944 PyEval_RestoreThread(_save);
19945 PyErr_SetString(PyExc_RuntimeError, e.
what());
19948 Py_END_ALLOW_THREADS
19950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Clustering, SWIG_POINTER_NEW | 0 );
19957 SWIGINTERN PyObject *_wrap_new_Clustering__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19958 PyObject *resultobj = 0;
19968 PyObject * obj0 = 0 ;
19969 PyObject * obj1 = 0 ;
19970 PyObject * obj2 = 0 ;
19973 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_Clustering",&obj0,&obj1,&obj2)) SWIG_fail;
19974 ecode1 = SWIG_AsVal_int(obj0, &val1);
19975 if (!SWIG_IsOK(ecode1)) {
19976 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_Clustering" "', argument " "1"" of type '" "int""'");
19978 arg1 =
static_cast< int >(val1);
19979 ecode2 = SWIG_AsVal_int(obj1, &val2);
19980 if (!SWIG_IsOK(ecode2)) {
19981 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_Clustering" "', argument " "2"" of type '" "int""'");
19983 arg2 =
static_cast< int >(val2);
19984 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0);
19985 if (!SWIG_IsOK(res3)) {
19986 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_Clustering" "', argument " "3"" of type '" "faiss::ClusteringParameters const &""'");
19989 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_Clustering" "', argument " "3"" of type '" "faiss::ClusteringParameters const &""'");
19993 Py_BEGIN_ALLOW_THREADS
19997 PyEval_RestoreThread(_save);
19998 PyErr_SetString(PyExc_RuntimeError, e.
what());
20001 Py_END_ALLOW_THREADS
20003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Clustering, SWIG_POINTER_NEW | 0 );
20010 SWIGINTERN PyObject *_wrap_new_Clustering(PyObject *
self, PyObject *args) {
20012 PyObject *argv[4] = {
20017 if (!PyTuple_Check(args)) SWIG_fail;
20018 argc = args ? PyObject_Length(args) : 0;
20019 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
20020 argv[ii] = PyTuple_GET_ITEM(args,ii);
20025 int res = SWIG_AsVal_int(argv[0], NULL);
20026 _v = SWIG_CheckState(res);
20030 int res = SWIG_AsVal_int(argv[1], NULL);
20031 _v = SWIG_CheckState(res);
20034 return _wrap_new_Clustering__SWIG_0(
self, args);
20041 int res = SWIG_AsVal_int(argv[0], NULL);
20042 _v = SWIG_CheckState(res);
20046 int res = SWIG_AsVal_int(argv[1], NULL);
20047 _v = SWIG_CheckState(res);
20050 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_faiss__ClusteringParameters, 0);
20051 _v = SWIG_CheckState(res);
20053 return _wrap_new_Clustering__SWIG_1(
self, args);
20060 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_Clustering'.\n"
20061 " Possible C/C++ prototypes are:\n"
20062 " faiss::Clustering::Clustering(int,int)\n"
20063 " faiss::Clustering::Clustering(int,int,faiss::ClusteringParameters const &)\n");
20068 SWIGINTERN PyObject *_wrap_Clustering_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20069 PyObject *resultobj = 0;
20071 faiss::Clustering::idx_t arg2 ;
20072 float *arg3 = (
float *) 0 ;
20082 PyObject * obj0 = 0 ;
20083 PyObject * obj1 = 0 ;
20084 PyObject * obj2 = 0 ;
20085 PyObject * obj3 = 0 ;
20087 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Clustering_train",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, 0 | 0 );
20089 if (!SWIG_IsOK(res1)) {
20090 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clustering_train" "', argument " "1"" of type '" "faiss::Clustering *""'");
20093 ecode2 = SWIG_AsVal_long(obj1, &val2);
20094 if (!SWIG_IsOK(ecode2)) {
20095 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Clustering_train" "', argument " "2"" of type '" "faiss::Clustering::idx_t""'");
20097 arg2 =
static_cast< faiss::Clustering::idx_t
>(val2);
20098 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
20099 if (!SWIG_IsOK(res3)) {
20100 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Clustering_train" "', argument " "3"" of type '" "float const *""'");
20102 arg3 =
reinterpret_cast< float *
>(argp3);
20103 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_faiss__Index, 0 );
20104 if (!SWIG_IsOK(res4)) {
20105 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "Clustering_train" "', argument " "4"" of type '" "faiss::Index &""'");
20108 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Clustering_train" "', argument " "4"" of type '" "faiss::Index &""'");
20112 Py_BEGIN_ALLOW_THREADS
20114 (arg1)->train(arg2,(
float const *)arg3,*arg4);
20116 PyEval_RestoreThread(_save);
20117 PyErr_SetString(PyExc_RuntimeError, e.
what());
20120 Py_END_ALLOW_THREADS
20122 resultobj = SWIG_Py_Void();
20129 SWIGINTERN PyObject *_wrap_delete_Clustering(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20130 PyObject *resultobj = 0;
20134 PyObject * obj0 = 0 ;
20136 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Clustering",&obj0)) SWIG_fail;
20137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Clustering, SWIG_POINTER_DISOWN | 0 );
20138 if (!SWIG_IsOK(res1)) {
20139 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Clustering" "', argument " "1"" of type '" "faiss::Clustering *""'");
20143 Py_BEGIN_ALLOW_THREADS
20147 PyEval_RestoreThread(_save);
20148 PyErr_SetString(PyExc_RuntimeError, e.
what());
20151 Py_END_ALLOW_THREADS
20153 resultobj = SWIG_Py_Void();
20160 SWIGINTERN PyObject *Clustering_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20162 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
20163 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__Clustering, SWIG_NewClientData(obj));
20164 return SWIG_Py_Void();
20167 SWIGINTERN PyObject *_wrap_kmeans_clustering(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20168 PyObject *resultobj = 0;
20172 float *arg4 = (
float *) 0 ;
20173 float *arg5 = (
float *) 0 ;
20184 PyObject * obj0 = 0 ;
20185 PyObject * obj1 = 0 ;
20186 PyObject * obj2 = 0 ;
20187 PyObject * obj3 = 0 ;
20188 PyObject * obj4 = 0 ;
20191 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:kmeans_clustering",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20192 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
20193 if (!SWIG_IsOK(ecode1)) {
20194 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "kmeans_clustering" "', argument " "1"" of type '" "size_t""'");
20196 arg1 =
static_cast< size_t >(val1);
20197 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20198 if (!SWIG_IsOK(ecode2)) {
20199 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "kmeans_clustering" "', argument " "2"" of type '" "size_t""'");
20201 arg2 =
static_cast< size_t >(val2);
20202 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
20203 if (!SWIG_IsOK(ecode3)) {
20204 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "kmeans_clustering" "', argument " "3"" of type '" "size_t""'");
20206 arg3 =
static_cast< size_t >(val3);
20207 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
20208 if (!SWIG_IsOK(res4)) {
20209 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "kmeans_clustering" "', argument " "4"" of type '" "float const *""'");
20211 arg4 =
reinterpret_cast< float *
>(argp4);
20212 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
20213 if (!SWIG_IsOK(res5)) {
20214 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "kmeans_clustering" "', argument " "5"" of type '" "float *""'");
20216 arg5 =
reinterpret_cast< float *
>(argp5);
20218 Py_BEGIN_ALLOW_THREADS
20222 PyEval_RestoreThread(_save);
20223 PyErr_SetString(PyExc_RuntimeError, e.
what());
20226 Py_END_ALLOW_THREADS
20228 resultobj = SWIG_From_float(static_cast< float >(result));
20235 SWIGINTERN PyObject *_wrap_ProductQuantizer_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20236 PyObject *resultobj = 0;
20243 PyObject * obj0 = 0 ;
20244 PyObject * obj1 = 0 ;
20246 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_d_set",&obj0,&obj1)) SWIG_fail;
20247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20248 if (!SWIG_IsOK(res1)) {
20249 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_d_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20252 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20253 if (!SWIG_IsOK(ecode2)) {
20254 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_d_set" "', argument " "2"" of type '" "size_t""'");
20256 arg2 =
static_cast< size_t >(val2);
20257 if (arg1) (arg1)->d = arg2;
20258 resultobj = SWIG_Py_Void();
20265 SWIGINTERN PyObject *_wrap_ProductQuantizer_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20266 PyObject *resultobj = 0;
20270 PyObject * obj0 = 0 ;
20273 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_d_get",&obj0)) SWIG_fail;
20274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20275 if (!SWIG_IsOK(res1)) {
20276 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_d_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20279 result = (size_t) ((arg1)->d);
20280 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
20287 SWIGINTERN PyObject *_wrap_ProductQuantizer_M_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20288 PyObject *resultobj = 0;
20295 PyObject * obj0 = 0 ;
20296 PyObject * obj1 = 0 ;
20298 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_M_set",&obj0,&obj1)) SWIG_fail;
20299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20300 if (!SWIG_IsOK(res1)) {
20301 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_M_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20304 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20305 if (!SWIG_IsOK(ecode2)) {
20306 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_M_set" "', argument " "2"" of type '" "size_t""'");
20308 arg2 =
static_cast< size_t >(val2);
20309 if (arg1) (arg1)->M = arg2;
20310 resultobj = SWIG_Py_Void();
20317 SWIGINTERN PyObject *_wrap_ProductQuantizer_M_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20318 PyObject *resultobj = 0;
20322 PyObject * obj0 = 0 ;
20325 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_M_get",&obj0)) SWIG_fail;
20326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20327 if (!SWIG_IsOK(res1)) {
20328 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_M_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20331 result = (size_t) ((arg1)->M);
20332 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
20339 SWIGINTERN PyObject *_wrap_ProductQuantizer_nbits_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20340 PyObject *resultobj = 0;
20347 PyObject * obj0 = 0 ;
20348 PyObject * obj1 = 0 ;
20350 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_nbits_set",&obj0,&obj1)) SWIG_fail;
20351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20352 if (!SWIG_IsOK(res1)) {
20353 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_nbits_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20356 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20357 if (!SWIG_IsOK(ecode2)) {
20358 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_nbits_set" "', argument " "2"" of type '" "size_t""'");
20360 arg2 =
static_cast< size_t >(val2);
20361 if (arg1) (arg1)->nbits = arg2;
20362 resultobj = SWIG_Py_Void();
20369 SWIGINTERN PyObject *_wrap_ProductQuantizer_nbits_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20370 PyObject *resultobj = 0;
20374 PyObject * obj0 = 0 ;
20377 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_nbits_get",&obj0)) SWIG_fail;
20378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20379 if (!SWIG_IsOK(res1)) {
20380 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_nbits_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20383 result = (size_t) ((arg1)->nbits);
20384 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
20391 SWIGINTERN PyObject *_wrap_ProductQuantizer_dsub_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20392 PyObject *resultobj = 0;
20399 PyObject * obj0 = 0 ;
20400 PyObject * obj1 = 0 ;
20402 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_dsub_set",&obj0,&obj1)) SWIG_fail;
20403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20404 if (!SWIG_IsOK(res1)) {
20405 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_dsub_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20408 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20409 if (!SWIG_IsOK(ecode2)) {
20410 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_dsub_set" "', argument " "2"" of type '" "size_t""'");
20412 arg2 =
static_cast< size_t >(val2);
20413 if (arg1) (arg1)->dsub = arg2;
20414 resultobj = SWIG_Py_Void();
20421 SWIGINTERN PyObject *_wrap_ProductQuantizer_dsub_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20422 PyObject *resultobj = 0;
20426 PyObject * obj0 = 0 ;
20429 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_dsub_get",&obj0)) SWIG_fail;
20430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20431 if (!SWIG_IsOK(res1)) {
20432 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_dsub_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20435 result = (size_t) ((arg1)->dsub);
20436 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
20443 SWIGINTERN PyObject *_wrap_ProductQuantizer_byte_per_idx_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20444 PyObject *resultobj = 0;
20451 PyObject * obj0 = 0 ;
20452 PyObject * obj1 = 0 ;
20454 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_byte_per_idx_set",&obj0,&obj1)) SWIG_fail;
20455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20456 if (!SWIG_IsOK(res1)) {
20457 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_byte_per_idx_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20460 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20461 if (!SWIG_IsOK(ecode2)) {
20462 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_byte_per_idx_set" "', argument " "2"" of type '" "size_t""'");
20464 arg2 =
static_cast< size_t >(val2);
20465 if (arg1) (arg1)->byte_per_idx = arg2;
20466 resultobj = SWIG_Py_Void();
20473 SWIGINTERN PyObject *_wrap_ProductQuantizer_byte_per_idx_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20474 PyObject *resultobj = 0;
20478 PyObject * obj0 = 0 ;
20481 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_byte_per_idx_get",&obj0)) SWIG_fail;
20482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20483 if (!SWIG_IsOK(res1)) {
20484 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_byte_per_idx_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20487 result = (size_t) ((arg1)->byte_per_idx);
20488 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
20495 SWIGINTERN PyObject *_wrap_ProductQuantizer_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20496 PyObject *resultobj = 0;
20503 PyObject * obj0 = 0 ;
20504 PyObject * obj1 = 0 ;
20506 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_code_size_set",&obj0,&obj1)) SWIG_fail;
20507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20508 if (!SWIG_IsOK(res1)) {
20509 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_code_size_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20512 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20513 if (!SWIG_IsOK(ecode2)) {
20514 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_code_size_set" "', argument " "2"" of type '" "size_t""'");
20516 arg2 =
static_cast< size_t >(val2);
20517 if (arg1) (arg1)->code_size = arg2;
20518 resultobj = SWIG_Py_Void();
20525 SWIGINTERN PyObject *_wrap_ProductQuantizer_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20526 PyObject *resultobj = 0;
20530 PyObject * obj0 = 0 ;
20533 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_code_size_get",&obj0)) SWIG_fail;
20534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20535 if (!SWIG_IsOK(res1)) {
20536 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_code_size_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20539 result = (size_t) ((arg1)->code_size);
20540 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
20547 SWIGINTERN PyObject *_wrap_ProductQuantizer_ksub_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20548 PyObject *resultobj = 0;
20555 PyObject * obj0 = 0 ;
20556 PyObject * obj1 = 0 ;
20558 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_ksub_set",&obj0,&obj1)) SWIG_fail;
20559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20560 if (!SWIG_IsOK(res1)) {
20561 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_ksub_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20564 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20565 if (!SWIG_IsOK(ecode2)) {
20566 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_ksub_set" "', argument " "2"" of type '" "size_t""'");
20568 arg2 =
static_cast< size_t >(val2);
20569 if (arg1) (arg1)->ksub = arg2;
20570 resultobj = SWIG_Py_Void();
20577 SWIGINTERN PyObject *_wrap_ProductQuantizer_ksub_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20578 PyObject *resultobj = 0;
20582 PyObject * obj0 = 0 ;
20585 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_ksub_get",&obj0)) SWIG_fail;
20586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20587 if (!SWIG_IsOK(res1)) {
20588 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_ksub_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20591 result = (size_t) ((arg1)->ksub);
20592 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
20599 SWIGINTERN PyObject *_wrap_ProductQuantizer_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20600 PyObject *resultobj = 0;
20607 PyObject * obj0 = 0 ;
20608 PyObject * obj1 = 0 ;
20610 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_verbose_set",&obj0,&obj1)) SWIG_fail;
20611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20612 if (!SWIG_IsOK(res1)) {
20613 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_verbose_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20616 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20617 if (!SWIG_IsOK(ecode2)) {
20618 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_verbose_set" "', argument " "2"" of type '" "bool""'");
20620 arg2 =
static_cast< bool >(val2);
20621 if (arg1) (arg1)->verbose = arg2;
20622 resultobj = SWIG_Py_Void();
20629 SWIGINTERN PyObject *_wrap_ProductQuantizer_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20630 PyObject *resultobj = 0;
20634 PyObject * obj0 = 0 ;
20637 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_verbose_get",&obj0)) SWIG_fail;
20638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20639 if (!SWIG_IsOK(res1)) {
20640 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_verbose_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20643 result = (bool) ((arg1)->verbose);
20644 resultobj = SWIG_From_bool(static_cast< bool >(result));
20651 SWIGINTERN PyObject *_wrap_ProductQuantizer_train_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20652 PyObject *resultobj = 0;
20659 PyObject * obj0 = 0 ;
20660 PyObject * obj1 = 0 ;
20662 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_train_type_set",&obj0,&obj1)) SWIG_fail;
20663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20664 if (!SWIG_IsOK(res1)) {
20665 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_train_type_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20668 ecode2 = SWIG_AsVal_int(obj1, &val2);
20669 if (!SWIG_IsOK(ecode2)) {
20670 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_train_type_set" "', argument " "2"" of type '" "faiss::ProductQuantizer::train_type_t""'");
20673 if (arg1) (arg1)->train_type = arg2;
20674 resultobj = SWIG_Py_Void();
20681 SWIGINTERN PyObject *_wrap_ProductQuantizer_train_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20682 PyObject *resultobj = 0;
20686 PyObject * obj0 = 0 ;
20689 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_train_type_get",&obj0)) SWIG_fail;
20690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20691 if (!SWIG_IsOK(res1)) {
20692 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_train_type_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20696 resultobj = SWIG_From_int(static_cast< int >(result));
20703 SWIGINTERN PyObject *_wrap_ProductQuantizer_cp_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20704 PyObject *resultobj = 0;
20711 PyObject * obj0 = 0 ;
20712 PyObject * obj1 = 0 ;
20714 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_cp_set",&obj0,&obj1)) SWIG_fail;
20715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20716 if (!SWIG_IsOK(res1)) {
20717 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_cp_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20720 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
20721 if (!SWIG_IsOK(res2)) {
20722 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_cp_set" "', argument " "2"" of type '" "faiss::ClusteringParameters *""'");
20725 if (arg1) (arg1)->cp = *arg2;
20726 resultobj = SWIG_Py_Void();
20733 SWIGINTERN PyObject *_wrap_ProductQuantizer_cp_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20734 PyObject *resultobj = 0;
20738 PyObject * obj0 = 0 ;
20741 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_cp_get",&obj0)) 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_cp_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
20755 SWIGINTERN PyObject *_wrap_ProductQuantizer_assign_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20756 PyObject *resultobj = 0;
20763 PyObject * obj0 = 0 ;
20764 PyObject * obj1 = 0 ;
20766 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_assign_index_set",&obj0,&obj1)) SWIG_fail;
20767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20768 if (!SWIG_IsOK(res1)) {
20769 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_assign_index_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20772 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
20773 if (!SWIG_IsOK(res2)) {
20774 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_assign_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
20777 if (arg1) (arg1)->assign_index = arg2;
20778 resultobj = SWIG_Py_Void();
20785 SWIGINTERN PyObject *_wrap_ProductQuantizer_assign_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20786 PyObject *resultobj = 0;
20790 PyObject * obj0 = 0 ;
20793 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_assign_index_get",&obj0)) SWIG_fail;
20794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20795 if (!SWIG_IsOK(res1)) {
20796 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_assign_index_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20800 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
20807 SWIGINTERN PyObject *_wrap_ProductQuantizer_centroids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20808 PyObject *resultobj = 0;
20810 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
20815 PyObject * obj0 = 0 ;
20816 PyObject * obj1 = 0 ;
20818 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_centroids_set",&obj0,&obj1)) SWIG_fail;
20819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20820 if (!SWIG_IsOK(res1)) {
20821 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_centroids_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20824 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
20825 if (!SWIG_IsOK(res2)) {
20826 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_centroids_set" "', argument " "2"" of type '" "std::vector< float > *""'");
20828 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
20829 if (arg1) (arg1)->centroids = *arg2;
20830 resultobj = SWIG_Py_Void();
20837 SWIGINTERN PyObject *_wrap_ProductQuantizer_centroids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20838 PyObject *resultobj = 0;
20842 PyObject * obj0 = 0 ;
20843 std::vector< float > *result = 0 ;
20845 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_centroids_get",&obj0)) SWIG_fail;
20846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20847 if (!SWIG_IsOK(res1)) {
20848 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_centroids_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20851 result = (std::vector< float > *)& ((arg1)->centroids);
20852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
20859 SWIGINTERN PyObject *_wrap_ProductQuantizer_get_centroids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20860 PyObject *resultobj = 0;
20870 PyObject * obj0 = 0 ;
20871 PyObject * obj1 = 0 ;
20872 PyObject * obj2 = 0 ;
20873 float *result = 0 ;
20875 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_get_centroids",&obj0,&obj1,&obj2)) SWIG_fail;
20876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20877 if (!SWIG_IsOK(res1)) {
20878 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_get_centroids" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20881 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20882 if (!SWIG_IsOK(ecode2)) {
20883 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_get_centroids" "', argument " "2"" of type '" "size_t""'");
20885 arg2 =
static_cast< size_t >(val2);
20886 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
20887 if (!SWIG_IsOK(ecode3)) {
20888 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_get_centroids" "', argument " "3"" of type '" "size_t""'");
20890 arg3 =
static_cast< size_t >(val3);
20892 Py_BEGIN_ALLOW_THREADS
20894 result = (
float *)(arg1)->get_centroids(arg2,arg3);
20896 PyEval_RestoreThread(_save);
20897 PyErr_SetString(PyExc_RuntimeError, e.
what());
20900 Py_END_ALLOW_THREADS
20902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
20909 SWIGINTERN PyObject *_wrap_ProductQuantizer_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20910 PyObject *resultobj = 0;
20913 float *arg3 = (
float *) 0 ;
20920 PyObject * obj0 = 0 ;
20921 PyObject * obj1 = 0 ;
20922 PyObject * obj2 = 0 ;
20924 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_train",&obj0,&obj1,&obj2)) SWIG_fail;
20925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
20926 if (!SWIG_IsOK(res1)) {
20927 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_train" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
20930 ecode2 = SWIG_AsVal_int(obj1, &val2);
20931 if (!SWIG_IsOK(ecode2)) {
20932 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_train" "', argument " "2"" of type '" "int""'");
20934 arg2 =
static_cast< int >(val2);
20935 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
20936 if (!SWIG_IsOK(res3)) {
20937 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_train" "', argument " "3"" of type '" "float const *""'");
20939 arg3 =
reinterpret_cast< float *
>(argp3);
20941 Py_BEGIN_ALLOW_THREADS
20943 (arg1)->train(arg2,(
float const *)arg3);
20945 PyEval_RestoreThread(_save);
20946 PyErr_SetString(PyExc_RuntimeError, e.
what());
20949 Py_END_ALLOW_THREADS
20951 resultobj = SWIG_Py_Void();
20958 SWIGINTERN PyObject *_wrap_new_ProductQuantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20959 PyObject *resultobj = 0;
20969 PyObject * obj0 = 0 ;
20970 PyObject * obj1 = 0 ;
20971 PyObject * obj2 = 0 ;
20974 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_ProductQuantizer",&obj0,&obj1,&obj2)) SWIG_fail;
20975 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
20976 if (!SWIG_IsOK(ecode1)) {
20977 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_ProductQuantizer" "', argument " "1"" of type '" "size_t""'");
20979 arg1 =
static_cast< size_t >(val1);
20980 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20981 if (!SWIG_IsOK(ecode2)) {
20982 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_ProductQuantizer" "', argument " "2"" of type '" "size_t""'");
20984 arg2 =
static_cast< size_t >(val2);
20985 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
20986 if (!SWIG_IsOK(ecode3)) {
20987 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_ProductQuantizer" "', argument " "3"" of type '" "size_t""'");
20989 arg3 =
static_cast< size_t >(val3);
20991 Py_BEGIN_ALLOW_THREADS
20995 PyEval_RestoreThread(_save);
20996 PyErr_SetString(PyExc_RuntimeError, e.
what());
20999 Py_END_ALLOW_THREADS
21001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, SWIG_POINTER_NEW | 0 );
21008 SWIGINTERN PyObject *_wrap_new_ProductQuantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21009 PyObject *resultobj = 0;
21012 if (!PyArg_ParseTuple(args,(
char *)
":new_ProductQuantizer")) SWIG_fail;
21014 Py_BEGIN_ALLOW_THREADS
21018 PyEval_RestoreThread(_save);
21019 PyErr_SetString(PyExc_RuntimeError, e.
what());
21022 Py_END_ALLOW_THREADS
21024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, SWIG_POINTER_NEW | 0 );
21031 SWIGINTERN PyObject *_wrap_new_ProductQuantizer(PyObject *
self, PyObject *args) {
21033 PyObject *argv[4] = {
21038 if (!PyTuple_Check(args)) SWIG_fail;
21039 argc = args ? PyObject_Length(args) : 0;
21040 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
21041 argv[ii] = PyTuple_GET_ITEM(args,ii);
21044 return _wrap_new_ProductQuantizer__SWIG_1(
self, args);
21049 int res = SWIG_AsVal_size_t(argv[0], NULL);
21050 _v = SWIG_CheckState(res);
21054 int res = SWIG_AsVal_size_t(argv[1], NULL);
21055 _v = SWIG_CheckState(res);
21059 int res = SWIG_AsVal_size_t(argv[2], NULL);
21060 _v = SWIG_CheckState(res);
21063 return _wrap_new_ProductQuantizer__SWIG_0(
self, args);
21070 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_ProductQuantizer'.\n"
21071 " Possible C/C++ prototypes are:\n"
21072 " faiss::ProductQuantizer::ProductQuantizer(size_t,size_t,size_t)\n"
21073 " faiss::ProductQuantizer::ProductQuantizer()\n");
21078 SWIGINTERN PyObject *_wrap_ProductQuantizer_set_derived_values(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21079 PyObject *resultobj = 0;
21083 PyObject * obj0 = 0 ;
21085 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_set_derived_values",&obj0)) 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_set_derived_values" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
21092 Py_BEGIN_ALLOW_THREADS
21094 (arg1)->set_derived_values();
21096 PyEval_RestoreThread(_save);
21097 PyErr_SetString(PyExc_RuntimeError, e.
what());
21100 Py_END_ALLOW_THREADS
21102 resultobj = SWIG_Py_Void();
21109 SWIGINTERN PyObject *_wrap_ProductQuantizer_set_params(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21110 PyObject *resultobj = 0;
21112 float *arg2 = (
float *) 0 ;
21120 PyObject * obj0 = 0 ;
21121 PyObject * obj1 = 0 ;
21122 PyObject * obj2 = 0 ;
21124 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_set_params",&obj0,&obj1,&obj2)) SWIG_fail;
21125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21126 if (!SWIG_IsOK(res1)) {
21127 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_set_params" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
21130 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
21131 if (!SWIG_IsOK(res2)) {
21132 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_set_params" "', argument " "2"" of type '" "float const *""'");
21134 arg2 =
reinterpret_cast< float *
>(argp2);
21135 ecode3 = SWIG_AsVal_int(obj2, &val3);
21136 if (!SWIG_IsOK(ecode3)) {
21137 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_set_params" "', argument " "3"" of type '" "int""'");
21139 arg3 =
static_cast< int >(val3);
21141 Py_BEGIN_ALLOW_THREADS
21143 (arg1)->set_params((
float const *)arg2,arg3);
21145 PyEval_RestoreThread(_save);
21146 PyErr_SetString(PyExc_RuntimeError, e.
what());
21149 Py_END_ALLOW_THREADS
21151 resultobj = SWIG_Py_Void();
21158 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_code(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21159 PyObject *resultobj = 0;
21161 float *arg2 = (
float *) 0 ;
21162 uint8_t *arg3 = (uint8_t *) 0 ;
21169 PyObject * obj0 = 0 ;
21170 PyObject * obj1 = 0 ;
21171 PyObject * obj2 = 0 ;
21173 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_compute_code",&obj0,&obj1,&obj2)) SWIG_fail;
21174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21175 if (!SWIG_IsOK(res1)) {
21176 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_code" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
21179 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
21180 if (!SWIG_IsOK(res2)) {
21181 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_compute_code" "', argument " "2"" of type '" "float const *""'");
21183 arg2 =
reinterpret_cast< float *
>(argp2);
21184 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
21185 if (!SWIG_IsOK(res3)) {
21186 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_compute_code" "', argument " "3"" of type '" "uint8_t *""'");
21188 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
21190 Py_BEGIN_ALLOW_THREADS
21194 PyEval_RestoreThread(_save);
21195 PyErr_SetString(PyExc_RuntimeError, e.
what());
21198 Py_END_ALLOW_THREADS
21200 resultobj = SWIG_Py_Void();
21207 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21208 PyObject *resultobj = 0;
21210 float *arg2 = (
float *) 0 ;
21211 uint8_t *arg3 = (uint8_t *) 0 ;
21221 PyObject * obj0 = 0 ;
21222 PyObject * obj1 = 0 ;
21223 PyObject * obj2 = 0 ;
21224 PyObject * obj3 = 0 ;
21226 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ProductQuantizer_compute_codes",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21228 if (!SWIG_IsOK(res1)) {
21229 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_codes" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
21232 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
21233 if (!SWIG_IsOK(res2)) {
21234 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_compute_codes" "', argument " "2"" of type '" "float const *""'");
21236 arg2 =
reinterpret_cast< float *
>(argp2);
21237 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
21238 if (!SWIG_IsOK(res3)) {
21239 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_compute_codes" "', argument " "3"" of type '" "uint8_t *""'");
21241 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
21242 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
21243 if (!SWIG_IsOK(ecode4)) {
21244 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ProductQuantizer_compute_codes" "', argument " "4"" of type '" "size_t""'");
21246 arg4 =
static_cast< size_t >(val4);
21248 Py_BEGIN_ALLOW_THREADS
21252 PyEval_RestoreThread(_save);
21253 PyErr_SetString(PyExc_RuntimeError, e.
what());
21256 Py_END_ALLOW_THREADS
21258 resultobj = SWIG_Py_Void();
21265 SWIGINTERN PyObject *_wrap_ProductQuantizer_decode__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21266 PyObject *resultobj = 0;
21268 uint8_t *arg2 = (uint8_t *) 0 ;
21269 float *arg3 = (
float *) 0 ;
21276 PyObject * obj0 = 0 ;
21277 PyObject * obj1 = 0 ;
21278 PyObject * obj2 = 0 ;
21280 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_decode",&obj0,&obj1,&obj2)) SWIG_fail;
21281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21282 if (!SWIG_IsOK(res1)) {
21283 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_decode" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
21286 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
21287 if (!SWIG_IsOK(res2)) {
21288 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_decode" "', argument " "2"" of type '" "uint8_t const *""'");
21290 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
21291 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
21292 if (!SWIG_IsOK(res3)) {
21293 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_decode" "', argument " "3"" of type '" "float *""'");
21295 arg3 =
reinterpret_cast< float *
>(argp3);
21297 Py_BEGIN_ALLOW_THREADS
21301 PyEval_RestoreThread(_save);
21302 PyErr_SetString(PyExc_RuntimeError, e.
what());
21305 Py_END_ALLOW_THREADS
21307 resultobj = SWIG_Py_Void();
21314 SWIGINTERN PyObject *_wrap_ProductQuantizer_decode__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21315 PyObject *resultobj = 0;
21317 uint8_t *arg2 = (uint8_t *) 0 ;
21318 float *arg3 = (
float *) 0 ;
21328 PyObject * obj0 = 0 ;
21329 PyObject * obj1 = 0 ;
21330 PyObject * obj2 = 0 ;
21331 PyObject * obj3 = 0 ;
21333 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ProductQuantizer_decode",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21335 if (!SWIG_IsOK(res1)) {
21336 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_decode" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
21339 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
21340 if (!SWIG_IsOK(res2)) {
21341 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_decode" "', argument " "2"" of type '" "uint8_t const *""'");
21343 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
21344 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
21345 if (!SWIG_IsOK(res3)) {
21346 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_decode" "', argument " "3"" of type '" "float *""'");
21348 arg3 =
reinterpret_cast< float *
>(argp3);
21349 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
21350 if (!SWIG_IsOK(ecode4)) {
21351 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ProductQuantizer_decode" "', argument " "4"" of type '" "size_t""'");
21353 arg4 =
static_cast< size_t >(val4);
21355 Py_BEGIN_ALLOW_THREADS
21359 PyEval_RestoreThread(_save);
21360 PyErr_SetString(PyExc_RuntimeError, e.
what());
21363 Py_END_ALLOW_THREADS
21365 resultobj = SWIG_Py_Void();
21372 SWIGINTERN PyObject *_wrap_ProductQuantizer_decode(PyObject *
self, PyObject *args) {
21374 PyObject *argv[5] = {
21379 if (!PyTuple_Check(args)) SWIG_fail;
21380 argc = args ? PyObject_Length(args) : 0;
21381 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
21382 argv[ii] = PyTuple_GET_ITEM(args,ii);
21387 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
21388 _v = SWIG_CheckState(res);
21391 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
21392 _v = SWIG_CheckState(res);
21395 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
21396 _v = SWIG_CheckState(res);
21398 return _wrap_ProductQuantizer_decode__SWIG_0(
self, args);
21406 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
21407 _v = SWIG_CheckState(res);
21410 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
21411 _v = SWIG_CheckState(res);
21414 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
21415 _v = SWIG_CheckState(res);
21418 int res = SWIG_AsVal_size_t(argv[3], NULL);
21419 _v = SWIG_CheckState(res);
21422 return _wrap_ProductQuantizer_decode__SWIG_1(
self, args);
21430 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'ProductQuantizer_decode'.\n"
21431 " Possible C/C++ prototypes are:\n"
21432 " faiss::ProductQuantizer::decode(uint8_t const *,float *) const\n"
21433 " faiss::ProductQuantizer::decode(uint8_t const *,float *,size_t) const\n");
21438 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_code_from_distance_table(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21439 PyObject *resultobj = 0;
21441 float *arg2 = (
float *) 0 ;
21442 uint8_t *arg3 = (uint8_t *) 0 ;
21449 PyObject * obj0 = 0 ;
21450 PyObject * obj1 = 0 ;
21451 PyObject * obj2 = 0 ;
21453 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_compute_code_from_distance_table",&obj0,&obj1,&obj2)) SWIG_fail;
21454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21455 if (!SWIG_IsOK(res1)) {
21456 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_code_from_distance_table" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
21459 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
21460 if (!SWIG_IsOK(res2)) {
21461 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_compute_code_from_distance_table" "', argument " "2"" of type '" "float const *""'");
21463 arg2 =
reinterpret_cast< float *
>(argp2);
21464 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
21465 if (!SWIG_IsOK(res3)) {
21466 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_compute_code_from_distance_table" "', argument " "3"" of type '" "uint8_t *""'");
21468 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
21470 Py_BEGIN_ALLOW_THREADS
21474 PyEval_RestoreThread(_save);
21475 PyErr_SetString(PyExc_RuntimeError, e.
what());
21478 Py_END_ALLOW_THREADS
21480 resultobj = SWIG_Py_Void();
21487 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_distance_table(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21488 PyObject *resultobj = 0;
21490 float *arg2 = (
float *) 0 ;
21491 float *arg3 = (
float *) 0 ;
21498 PyObject * obj0 = 0 ;
21499 PyObject * obj1 = 0 ;
21500 PyObject * obj2 = 0 ;
21502 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_compute_distance_table",&obj0,&obj1,&obj2)) SWIG_fail;
21503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21504 if (!SWIG_IsOK(res1)) {
21505 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_distance_table" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
21508 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
21509 if (!SWIG_IsOK(res2)) {
21510 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_compute_distance_table" "', argument " "2"" of type '" "float const *""'");
21512 arg2 =
reinterpret_cast< float *
>(argp2);
21513 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
21514 if (!SWIG_IsOK(res3)) {
21515 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_compute_distance_table" "', argument " "3"" of type '" "float *""'");
21517 arg3 =
reinterpret_cast< float *
>(argp3);
21519 Py_BEGIN_ALLOW_THREADS
21523 PyEval_RestoreThread(_save);
21524 PyErr_SetString(PyExc_RuntimeError, e.
what());
21527 Py_END_ALLOW_THREADS
21529 resultobj = SWIG_Py_Void();
21536 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_inner_prod_table(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21537 PyObject *resultobj = 0;
21539 float *arg2 = (
float *) 0 ;
21540 float *arg3 = (
float *) 0 ;
21547 PyObject * obj0 = 0 ;
21548 PyObject * obj1 = 0 ;
21549 PyObject * obj2 = 0 ;
21551 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ProductQuantizer_compute_inner_prod_table",&obj0,&obj1,&obj2)) SWIG_fail;
21552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21553 if (!SWIG_IsOK(res1)) {
21554 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_inner_prod_table" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
21557 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
21558 if (!SWIG_IsOK(res2)) {
21559 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_compute_inner_prod_table" "', argument " "2"" of type '" "float const *""'");
21561 arg2 =
reinterpret_cast< float *
>(argp2);
21562 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
21563 if (!SWIG_IsOK(res3)) {
21564 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_compute_inner_prod_table" "', argument " "3"" of type '" "float *""'");
21566 arg3 =
reinterpret_cast< float *
>(argp3);
21568 Py_BEGIN_ALLOW_THREADS
21572 PyEval_RestoreThread(_save);
21573 PyErr_SetString(PyExc_RuntimeError, e.
what());
21576 Py_END_ALLOW_THREADS
21578 resultobj = SWIG_Py_Void();
21585 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_distance_tables(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21586 PyObject *resultobj = 0;
21589 float *arg3 = (
float *) 0 ;
21590 float *arg4 = (
float *) 0 ;
21599 PyObject * obj0 = 0 ;
21600 PyObject * obj1 = 0 ;
21601 PyObject * obj2 = 0 ;
21602 PyObject * obj3 = 0 ;
21604 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ProductQuantizer_compute_distance_tables",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21606 if (!SWIG_IsOK(res1)) {
21607 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_distance_tables" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
21610 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21611 if (!SWIG_IsOK(ecode2)) {
21612 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_compute_distance_tables" "', argument " "2"" of type '" "size_t""'");
21614 arg2 =
static_cast< size_t >(val2);
21615 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
21616 if (!SWIG_IsOK(res3)) {
21617 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_compute_distance_tables" "', argument " "3"" of type '" "float const *""'");
21619 arg3 =
reinterpret_cast< float *
>(argp3);
21620 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
21621 if (!SWIG_IsOK(res4)) {
21622 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_compute_distance_tables" "', argument " "4"" of type '" "float *""'");
21624 arg4 =
reinterpret_cast< float *
>(argp4);
21626 Py_BEGIN_ALLOW_THREADS
21630 PyEval_RestoreThread(_save);
21631 PyErr_SetString(PyExc_RuntimeError, e.
what());
21634 Py_END_ALLOW_THREADS
21636 resultobj = SWIG_Py_Void();
21643 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_inner_prod_tables(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21644 PyObject *resultobj = 0;
21647 float *arg3 = (
float *) 0 ;
21648 float *arg4 = (
float *) 0 ;
21657 PyObject * obj0 = 0 ;
21658 PyObject * obj1 = 0 ;
21659 PyObject * obj2 = 0 ;
21660 PyObject * obj3 = 0 ;
21662 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ProductQuantizer_compute_inner_prod_tables",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21664 if (!SWIG_IsOK(res1)) {
21665 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_inner_prod_tables" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
21668 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21669 if (!SWIG_IsOK(ecode2)) {
21670 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ProductQuantizer_compute_inner_prod_tables" "', argument " "2"" of type '" "size_t""'");
21672 arg2 =
static_cast< size_t >(val2);
21673 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
21674 if (!SWIG_IsOK(res3)) {
21675 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ProductQuantizer_compute_inner_prod_tables" "', argument " "3"" of type '" "float const *""'");
21677 arg3 =
reinterpret_cast< float *
>(argp3);
21678 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
21679 if (!SWIG_IsOK(res4)) {
21680 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_compute_inner_prod_tables" "', argument " "4"" of type '" "float *""'");
21682 arg4 =
reinterpret_cast< float *
>(argp4);
21684 Py_BEGIN_ALLOW_THREADS
21688 PyEval_RestoreThread(_save);
21689 PyErr_SetString(PyExc_RuntimeError, e.
what());
21692 Py_END_ALLOW_THREADS
21694 resultobj = SWIG_Py_Void();
21701 SWIGINTERN PyObject *_wrap_ProductQuantizer_search__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21702 PyObject *resultobj = 0;
21704 float *arg2 = (
float *) 0 ;
21706 uint8_t *arg4 = (uint8_t *) 0 ;
21724 PyObject * obj0 = 0 ;
21725 PyObject * obj1 = 0 ;
21726 PyObject * obj2 = 0 ;
21727 PyObject * obj3 = 0 ;
21728 PyObject * obj4 = 0 ;
21729 PyObject * obj5 = 0 ;
21730 PyObject * obj6 = 0 ;
21732 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:ProductQuantizer_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21734 if (!SWIG_IsOK(res1)) {
21735 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_search" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
21738 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
21739 if (!SWIG_IsOK(res2)) {
21740 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_search" "', argument " "2"" of type '" "float const *""'");
21742 arg2 =
reinterpret_cast< float *
>(argp2);
21743 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
21744 if (!SWIG_IsOK(ecode3)) {
21745 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_search" "', argument " "3"" of type '" "size_t""'");
21747 arg3 =
static_cast< size_t >(val3);
21748 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
21749 if (!SWIG_IsOK(res4)) {
21750 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_search" "', argument " "4"" of type '" "uint8_t const *""'");
21752 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
21753 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
21754 if (!SWIG_IsOK(ecode5)) {
21755 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "ProductQuantizer_search" "', argument " "5"" of type '" "size_t""'");
21757 arg5 =
static_cast< size_t >(val5);
21758 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
21759 if (!SWIG_IsOK(res6)) {
21760 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ProductQuantizer_search" "', argument " "6"" of type '" "faiss::float_maxheap_array_t *""'");
21763 ecode7 = SWIG_AsVal_bool(obj6, &val7);
21764 if (!SWIG_IsOK(ecode7)) {
21765 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "ProductQuantizer_search" "', argument " "7"" of type '" "bool""'");
21767 arg7 =
static_cast< bool >(val7);
21769 Py_BEGIN_ALLOW_THREADS
21771 ((
faiss::ProductQuantizer const *)arg1)->search((
float const *)arg2,arg3,(uint8_t
const *)arg4,arg5,arg6,arg7);
21773 PyEval_RestoreThread(_save);
21774 PyErr_SetString(PyExc_RuntimeError, e.
what());
21777 Py_END_ALLOW_THREADS
21779 resultobj = SWIG_Py_Void();
21786 SWIGINTERN PyObject *_wrap_ProductQuantizer_search__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21787 PyObject *resultobj = 0;
21789 float *arg2 = (
float *) 0 ;
21791 uint8_t *arg4 = (uint8_t *) 0 ;
21806 PyObject * obj0 = 0 ;
21807 PyObject * obj1 = 0 ;
21808 PyObject * obj2 = 0 ;
21809 PyObject * obj3 = 0 ;
21810 PyObject * obj4 = 0 ;
21811 PyObject * obj5 = 0 ;
21813 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:ProductQuantizer_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21815 if (!SWIG_IsOK(res1)) {
21816 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_search" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
21819 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
21820 if (!SWIG_IsOK(res2)) {
21821 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_search" "', argument " "2"" of type '" "float const *""'");
21823 arg2 =
reinterpret_cast< float *
>(argp2);
21824 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
21825 if (!SWIG_IsOK(ecode3)) {
21826 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_search" "', argument " "3"" of type '" "size_t""'");
21828 arg3 =
static_cast< size_t >(val3);
21829 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
21830 if (!SWIG_IsOK(res4)) {
21831 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_search" "', argument " "4"" of type '" "uint8_t const *""'");
21833 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
21834 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
21835 if (!SWIG_IsOK(ecode5)) {
21836 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "ProductQuantizer_search" "', argument " "5"" of type '" "size_t""'");
21838 arg5 =
static_cast< size_t >(val5);
21839 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
21840 if (!SWIG_IsOK(res6)) {
21841 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ProductQuantizer_search" "', argument " "6"" of type '" "faiss::float_maxheap_array_t *""'");
21845 Py_BEGIN_ALLOW_THREADS
21849 PyEval_RestoreThread(_save);
21850 PyErr_SetString(PyExc_RuntimeError, e.
what());
21853 Py_END_ALLOW_THREADS
21855 resultobj = SWIG_Py_Void();
21862 SWIGINTERN PyObject *_wrap_ProductQuantizer_search(PyObject *
self, PyObject *args) {
21864 PyObject *argv[8] = {
21869 if (!PyTuple_Check(args)) SWIG_fail;
21870 argc = args ? PyObject_Length(args) : 0;
21871 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
21872 argv[ii] = PyTuple_GET_ITEM(args,ii);
21877 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
21878 _v = SWIG_CheckState(res);
21881 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0);
21882 _v = SWIG_CheckState(res);
21885 int res = SWIG_AsVal_size_t(argv[2], NULL);
21886 _v = SWIG_CheckState(res);
21890 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
21891 _v = SWIG_CheckState(res);
21894 int res = SWIG_AsVal_size_t(argv[4], NULL);
21895 _v = SWIG_CheckState(res);
21899 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
21900 _v = SWIG_CheckState(res);
21902 return _wrap_ProductQuantizer_search__SWIG_1(
self, args);
21913 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
21914 _v = SWIG_CheckState(res);
21917 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0);
21918 _v = SWIG_CheckState(res);
21921 int res = SWIG_AsVal_size_t(argv[2], NULL);
21922 _v = SWIG_CheckState(res);
21926 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
21927 _v = SWIG_CheckState(res);
21930 int res = SWIG_AsVal_size_t(argv[4], NULL);
21931 _v = SWIG_CheckState(res);
21935 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
21936 _v = SWIG_CheckState(res);
21939 int res = SWIG_AsVal_bool(argv[6], NULL);
21940 _v = SWIG_CheckState(res);
21943 return _wrap_ProductQuantizer_search__SWIG_0(
self, args);
21954 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'ProductQuantizer_search'.\n"
21955 " Possible C/C++ prototypes are:\n"
21956 " faiss::ProductQuantizer::search(float const *,size_t,uint8_t const *,size_t const,faiss::float_maxheap_array_t *,bool) const\n"
21957 " faiss::ProductQuantizer::search(float const *,size_t,uint8_t const *,size_t const,faiss::float_maxheap_array_t *) const\n");
21962 SWIGINTERN PyObject *_wrap_ProductQuantizer_search_ip__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21963 PyObject *resultobj = 0;
21965 float *arg2 = (
float *) 0 ;
21967 uint8_t *arg4 = (uint8_t *) 0 ;
21985 PyObject * obj0 = 0 ;
21986 PyObject * obj1 = 0 ;
21987 PyObject * obj2 = 0 ;
21988 PyObject * obj3 = 0 ;
21989 PyObject * obj4 = 0 ;
21990 PyObject * obj5 = 0 ;
21991 PyObject * obj6 = 0 ;
21993 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:ProductQuantizer_search_ip",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
21995 if (!SWIG_IsOK(res1)) {
21996 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_search_ip" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
21999 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
22000 if (!SWIG_IsOK(res2)) {
22001 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_search_ip" "', argument " "2"" of type '" "float const *""'");
22003 arg2 =
reinterpret_cast< float *
>(argp2);
22004 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
22005 if (!SWIG_IsOK(ecode3)) {
22006 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_search_ip" "', argument " "3"" of type '" "size_t""'");
22008 arg3 =
static_cast< size_t >(val3);
22009 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
22010 if (!SWIG_IsOK(res4)) {
22011 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_search_ip" "', argument " "4"" of type '" "uint8_t const *""'");
22013 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
22014 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
22015 if (!SWIG_IsOK(ecode5)) {
22016 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "ProductQuantizer_search_ip" "', argument " "5"" of type '" "size_t""'");
22018 arg5 =
static_cast< size_t >(val5);
22019 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
22020 if (!SWIG_IsOK(res6)) {
22021 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ProductQuantizer_search_ip" "', argument " "6"" of type '" "faiss::float_minheap_array_t *""'");
22024 ecode7 = SWIG_AsVal_bool(obj6, &val7);
22025 if (!SWIG_IsOK(ecode7)) {
22026 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "ProductQuantizer_search_ip" "', argument " "7"" of type '" "bool""'");
22028 arg7 =
static_cast< bool >(val7);
22030 Py_BEGIN_ALLOW_THREADS
22032 ((
faiss::ProductQuantizer const *)arg1)->search_ip((
float const *)arg2,arg3,(uint8_t
const *)arg4,arg5,arg6,arg7);
22034 PyEval_RestoreThread(_save);
22035 PyErr_SetString(PyExc_RuntimeError, e.
what());
22038 Py_END_ALLOW_THREADS
22040 resultobj = SWIG_Py_Void();
22047 SWIGINTERN PyObject *_wrap_ProductQuantizer_search_ip__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22048 PyObject *resultobj = 0;
22050 float *arg2 = (
float *) 0 ;
22052 uint8_t *arg4 = (uint8_t *) 0 ;
22067 PyObject * obj0 = 0 ;
22068 PyObject * obj1 = 0 ;
22069 PyObject * obj2 = 0 ;
22070 PyObject * obj3 = 0 ;
22071 PyObject * obj4 = 0 ;
22072 PyObject * obj5 = 0 ;
22074 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:ProductQuantizer_search_ip",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
22076 if (!SWIG_IsOK(res1)) {
22077 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_search_ip" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
22080 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
22081 if (!SWIG_IsOK(res2)) {
22082 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_search_ip" "', argument " "2"" of type '" "float const *""'");
22084 arg2 =
reinterpret_cast< float *
>(argp2);
22085 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
22086 if (!SWIG_IsOK(ecode3)) {
22087 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_search_ip" "', argument " "3"" of type '" "size_t""'");
22089 arg3 =
static_cast< size_t >(val3);
22090 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
22091 if (!SWIG_IsOK(res4)) {
22092 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_search_ip" "', argument " "4"" of type '" "uint8_t const *""'");
22094 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
22095 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
22096 if (!SWIG_IsOK(ecode5)) {
22097 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "ProductQuantizer_search_ip" "', argument " "5"" of type '" "size_t""'");
22099 arg5 =
static_cast< size_t >(val5);
22100 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
22101 if (!SWIG_IsOK(res6)) {
22102 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ProductQuantizer_search_ip" "', argument " "6"" of type '" "faiss::float_minheap_array_t *""'");
22106 Py_BEGIN_ALLOW_THREADS
22108 ((
faiss::ProductQuantizer const *)arg1)->search_ip((
float const *)arg2,arg3,(uint8_t
const *)arg4,arg5,arg6);
22110 PyEval_RestoreThread(_save);
22111 PyErr_SetString(PyExc_RuntimeError, e.
what());
22114 Py_END_ALLOW_THREADS
22116 resultobj = SWIG_Py_Void();
22123 SWIGINTERN PyObject *_wrap_ProductQuantizer_search_ip(PyObject *
self, PyObject *args) {
22125 PyObject *argv[8] = {
22130 if (!PyTuple_Check(args)) SWIG_fail;
22131 argc = args ? PyObject_Length(args) : 0;
22132 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
22133 argv[ii] = PyTuple_GET_ITEM(args,ii);
22138 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
22139 _v = SWIG_CheckState(res);
22142 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0);
22143 _v = SWIG_CheckState(res);
22146 int res = SWIG_AsVal_size_t(argv[2], NULL);
22147 _v = SWIG_CheckState(res);
22151 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
22152 _v = SWIG_CheckState(res);
22155 int res = SWIG_AsVal_size_t(argv[4], NULL);
22156 _v = SWIG_CheckState(res);
22160 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
22161 _v = SWIG_CheckState(res);
22163 return _wrap_ProductQuantizer_search_ip__SWIG_1(
self, args);
22174 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
22175 _v = SWIG_CheckState(res);
22178 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0);
22179 _v = SWIG_CheckState(res);
22182 int res = SWIG_AsVal_size_t(argv[2], NULL);
22183 _v = SWIG_CheckState(res);
22187 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
22188 _v = SWIG_CheckState(res);
22191 int res = SWIG_AsVal_size_t(argv[4], NULL);
22192 _v = SWIG_CheckState(res);
22196 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
22197 _v = SWIG_CheckState(res);
22200 int res = SWIG_AsVal_bool(argv[6], NULL);
22201 _v = SWIG_CheckState(res);
22204 return _wrap_ProductQuantizer_search_ip__SWIG_0(
self, args);
22215 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'ProductQuantizer_search_ip'.\n"
22216 " Possible C/C++ prototypes are:\n"
22217 " faiss::ProductQuantizer::search_ip(float const *,size_t,uint8_t const *,size_t const,faiss::float_minheap_array_t *,bool) const\n"
22218 " faiss::ProductQuantizer::search_ip(float const *,size_t,uint8_t const *,size_t const,faiss::float_minheap_array_t *) const\n");
22223 SWIGINTERN PyObject *_wrap_ProductQuantizer_sdc_table_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22224 PyObject *resultobj = 0;
22226 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
22231 PyObject * obj0 = 0 ;
22232 PyObject * obj1 = 0 ;
22234 if (!PyArg_ParseTuple(args,(
char *)
"OO:ProductQuantizer_sdc_table_set",&obj0,&obj1)) SWIG_fail;
22235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
22236 if (!SWIG_IsOK(res1)) {
22237 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_sdc_table_set" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
22240 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
22241 if (!SWIG_IsOK(res2)) {
22242 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_sdc_table_set" "', argument " "2"" of type '" "std::vector< float > *""'");
22244 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
22245 if (arg1) (arg1)->sdc_table = *arg2;
22246 resultobj = SWIG_Py_Void();
22253 SWIGINTERN PyObject *_wrap_ProductQuantizer_sdc_table_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22254 PyObject *resultobj = 0;
22258 PyObject * obj0 = 0 ;
22259 std::vector< float > *result = 0 ;
22261 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_sdc_table_get",&obj0)) SWIG_fail;
22262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
22263 if (!SWIG_IsOK(res1)) {
22264 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_sdc_table_get" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
22267 result = (std::vector< float > *)& ((arg1)->sdc_table);
22268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
22275 SWIGINTERN PyObject *_wrap_ProductQuantizer_compute_sdc_table(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22276 PyObject *resultobj = 0;
22280 PyObject * obj0 = 0 ;
22282 if (!PyArg_ParseTuple(args,(
char *)
"O:ProductQuantizer_compute_sdc_table",&obj0)) SWIG_fail;
22283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
22284 if (!SWIG_IsOK(res1)) {
22285 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_compute_sdc_table" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
22289 Py_BEGIN_ALLOW_THREADS
22291 (arg1)->compute_sdc_table();
22293 PyEval_RestoreThread(_save);
22294 PyErr_SetString(PyExc_RuntimeError, e.
what());
22297 Py_END_ALLOW_THREADS
22299 resultobj = SWIG_Py_Void();
22306 SWIGINTERN PyObject *_wrap_ProductQuantizer_search_sdc__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22307 PyObject *resultobj = 0;
22309 uint8_t *arg2 = (uint8_t *) 0 ;
22311 uint8_t *arg4 = (uint8_t *) 0 ;
22329 PyObject * obj0 = 0 ;
22330 PyObject * obj1 = 0 ;
22331 PyObject * obj2 = 0 ;
22332 PyObject * obj3 = 0 ;
22333 PyObject * obj4 = 0 ;
22334 PyObject * obj5 = 0 ;
22335 PyObject * obj6 = 0 ;
22337 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:ProductQuantizer_search_sdc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
22339 if (!SWIG_IsOK(res1)) {
22340 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_search_sdc" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
22343 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
22344 if (!SWIG_IsOK(res2)) {
22345 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_search_sdc" "', argument " "2"" of type '" "uint8_t const *""'");
22347 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
22348 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
22349 if (!SWIG_IsOK(ecode3)) {
22350 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_search_sdc" "', argument " "3"" of type '" "size_t""'");
22352 arg3 =
static_cast< size_t >(val3);
22353 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
22354 if (!SWIG_IsOK(res4)) {
22355 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_search_sdc" "', argument " "4"" of type '" "uint8_t const *""'");
22357 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
22358 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
22359 if (!SWIG_IsOK(ecode5)) {
22360 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "ProductQuantizer_search_sdc" "', argument " "5"" of type '" "size_t""'");
22362 arg5 =
static_cast< size_t >(val5);
22363 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
22364 if (!SWIG_IsOK(res6)) {
22365 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ProductQuantizer_search_sdc" "', argument " "6"" of type '" "faiss::float_maxheap_array_t *""'");
22368 ecode7 = SWIG_AsVal_bool(obj6, &val7);
22369 if (!SWIG_IsOK(ecode7)) {
22370 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "ProductQuantizer_search_sdc" "', argument " "7"" of type '" "bool""'");
22372 arg7 =
static_cast< bool >(val7);
22374 Py_BEGIN_ALLOW_THREADS
22376 ((
faiss::ProductQuantizer const *)arg1)->search_sdc((uint8_t
const *)arg2,arg3,(uint8_t
const *)arg4,arg5,arg6,arg7);
22378 PyEval_RestoreThread(_save);
22379 PyErr_SetString(PyExc_RuntimeError, e.
what());
22382 Py_END_ALLOW_THREADS
22384 resultobj = SWIG_Py_Void();
22391 SWIGINTERN PyObject *_wrap_ProductQuantizer_search_sdc__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22392 PyObject *resultobj = 0;
22394 uint8_t *arg2 = (uint8_t *) 0 ;
22396 uint8_t *arg4 = (uint8_t *) 0 ;
22411 PyObject * obj0 = 0 ;
22412 PyObject * obj1 = 0 ;
22413 PyObject * obj2 = 0 ;
22414 PyObject * obj3 = 0 ;
22415 PyObject * obj4 = 0 ;
22416 PyObject * obj5 = 0 ;
22418 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:ProductQuantizer_search_sdc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
22420 if (!SWIG_IsOK(res1)) {
22421 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ProductQuantizer_search_sdc" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
22424 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
22425 if (!SWIG_IsOK(res2)) {
22426 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ProductQuantizer_search_sdc" "', argument " "2"" of type '" "uint8_t const *""'");
22428 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
22429 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
22430 if (!SWIG_IsOK(ecode3)) {
22431 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ProductQuantizer_search_sdc" "', argument " "3"" of type '" "size_t""'");
22433 arg3 =
static_cast< size_t >(val3);
22434 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
22435 if (!SWIG_IsOK(res4)) {
22436 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ProductQuantizer_search_sdc" "', argument " "4"" of type '" "uint8_t const *""'");
22438 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
22439 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
22440 if (!SWIG_IsOK(ecode5)) {
22441 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "ProductQuantizer_search_sdc" "', argument " "5"" of type '" "size_t""'");
22443 arg5 =
static_cast< size_t >(val5);
22444 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
22445 if (!SWIG_IsOK(res6)) {
22446 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ProductQuantizer_search_sdc" "', argument " "6"" of type '" "faiss::float_maxheap_array_t *""'");
22450 Py_BEGIN_ALLOW_THREADS
22452 ((
faiss::ProductQuantizer const *)arg1)->search_sdc((uint8_t
const *)arg2,arg3,(uint8_t
const *)arg4,arg5,arg6);
22454 PyEval_RestoreThread(_save);
22455 PyErr_SetString(PyExc_RuntimeError, e.
what());
22458 Py_END_ALLOW_THREADS
22460 resultobj = SWIG_Py_Void();
22467 SWIGINTERN PyObject *_wrap_ProductQuantizer_search_sdc(PyObject *
self, PyObject *args) {
22469 PyObject *argv[8] = {
22474 if (!PyTuple_Check(args)) SWIG_fail;
22475 argc = args ? PyObject_Length(args) : 0;
22476 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
22477 argv[ii] = PyTuple_GET_ITEM(args,ii);
22482 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
22483 _v = SWIG_CheckState(res);
22486 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
22487 _v = SWIG_CheckState(res);
22490 int res = SWIG_AsVal_size_t(argv[2], NULL);
22491 _v = SWIG_CheckState(res);
22495 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
22496 _v = SWIG_CheckState(res);
22499 int res = SWIG_AsVal_size_t(argv[4], NULL);
22500 _v = SWIG_CheckState(res);
22504 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
22505 _v = SWIG_CheckState(res);
22507 return _wrap_ProductQuantizer_search_sdc__SWIG_1(
self, args);
22518 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
22519 _v = SWIG_CheckState(res);
22522 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
22523 _v = SWIG_CheckState(res);
22526 int res = SWIG_AsVal_size_t(argv[2], NULL);
22527 _v = SWIG_CheckState(res);
22531 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
22532 _v = SWIG_CheckState(res);
22535 int res = SWIG_AsVal_size_t(argv[4], NULL);
22536 _v = SWIG_CheckState(res);
22540 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
22541 _v = SWIG_CheckState(res);
22544 int res = SWIG_AsVal_bool(argv[6], NULL);
22545 _v = SWIG_CheckState(res);
22548 return _wrap_ProductQuantizer_search_sdc__SWIG_0(
self, args);
22559 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'ProductQuantizer_search_sdc'.\n"
22560 " Possible C/C++ prototypes are:\n"
22561 " faiss::ProductQuantizer::search_sdc(uint8_t const *,size_t,uint8_t const *,size_t const,faiss::float_maxheap_array_t *,bool) const\n"
22562 " faiss::ProductQuantizer::search_sdc(uint8_t const *,size_t,uint8_t const *,size_t const,faiss::float_maxheap_array_t *) const\n");
22567 SWIGINTERN PyObject *_wrap_delete_ProductQuantizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22568 PyObject *resultobj = 0;
22572 PyObject * obj0 = 0 ;
22574 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ProductQuantizer",&obj0)) SWIG_fail;
22575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, SWIG_POINTER_DISOWN | 0 );
22576 if (!SWIG_IsOK(res1)) {
22577 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ProductQuantizer" "', argument " "1"" of type '" "faiss::ProductQuantizer *""'");
22581 resultobj = SWIG_Py_Void();
22588 SWIGINTERN PyObject *ProductQuantizer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22590 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
22591 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ProductQuantizer, SWIG_NewClientData(obj));
22592 return SWIG_Py_Void();
22595 SWIGINTERN PyObject *_wrap_VectorTransform_d_in_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22596 PyObject *resultobj = 0;
22603 PyObject * obj0 = 0 ;
22604 PyObject * obj1 = 0 ;
22606 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorTransform_d_in_set",&obj0,&obj1)) SWIG_fail;
22607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
22608 if (!SWIG_IsOK(res1)) {
22609 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_d_in_set" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
22612 ecode2 = SWIG_AsVal_int(obj1, &val2);
22613 if (!SWIG_IsOK(ecode2)) {
22614 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransform_d_in_set" "', argument " "2"" of type '" "int""'");
22616 arg2 =
static_cast< int >(val2);
22617 if (arg1) (arg1)->d_in = arg2;
22618 resultobj = SWIG_Py_Void();
22625 SWIGINTERN PyObject *_wrap_VectorTransform_d_in_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22626 PyObject *resultobj = 0;
22630 PyObject * obj0 = 0 ;
22633 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorTransform_d_in_get",&obj0)) SWIG_fail;
22634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
22635 if (!SWIG_IsOK(res1)) {
22636 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_d_in_get" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
22639 result = (int) ((arg1)->d_in);
22640 resultobj = SWIG_From_int(static_cast< int >(result));
22647 SWIGINTERN PyObject *_wrap_VectorTransform_d_out_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22648 PyObject *resultobj = 0;
22655 PyObject * obj0 = 0 ;
22656 PyObject * obj1 = 0 ;
22658 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorTransform_d_out_set",&obj0,&obj1)) SWIG_fail;
22659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
22660 if (!SWIG_IsOK(res1)) {
22661 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_d_out_set" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
22664 ecode2 = SWIG_AsVal_int(obj1, &val2);
22665 if (!SWIG_IsOK(ecode2)) {
22666 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransform_d_out_set" "', argument " "2"" of type '" "int""'");
22668 arg2 =
static_cast< int >(val2);
22669 if (arg1) (arg1)->d_out = arg2;
22670 resultobj = SWIG_Py_Void();
22677 SWIGINTERN PyObject *_wrap_VectorTransform_d_out_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22678 PyObject *resultobj = 0;
22682 PyObject * obj0 = 0 ;
22685 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorTransform_d_out_get",&obj0)) SWIG_fail;
22686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
22687 if (!SWIG_IsOK(res1)) {
22688 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_d_out_get" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
22691 result = (int) ((arg1)->d_out);
22692 resultobj = SWIG_From_int(static_cast< int >(result));
22699 SWIGINTERN PyObject *_wrap_VectorTransform_is_trained_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22700 PyObject *resultobj = 0;
22707 PyObject * obj0 = 0 ;
22708 PyObject * obj1 = 0 ;
22710 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorTransform_is_trained_set",&obj0,&obj1)) SWIG_fail;
22711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
22712 if (!SWIG_IsOK(res1)) {
22713 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_is_trained_set" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
22716 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22717 if (!SWIG_IsOK(ecode2)) {
22718 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransform_is_trained_set" "', argument " "2"" of type '" "bool""'");
22720 arg2 =
static_cast< bool >(val2);
22721 if (arg1) (arg1)->is_trained = arg2;
22722 resultobj = SWIG_Py_Void();
22729 SWIGINTERN PyObject *_wrap_VectorTransform_is_trained_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22730 PyObject *resultobj = 0;
22734 PyObject * obj0 = 0 ;
22737 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorTransform_is_trained_get",&obj0)) SWIG_fail;
22738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
22739 if (!SWIG_IsOK(res1)) {
22740 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_is_trained_get" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
22743 result = (bool) ((arg1)->is_trained);
22744 resultobj = SWIG_From_bool(static_cast< bool >(result));
22751 SWIGINTERN PyObject *_wrap_VectorTransform_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22752 PyObject *resultobj = 0;
22754 faiss::VectorTransform::idx_t arg2 ;
22755 float *arg3 = (
float *) 0 ;
22762 PyObject * obj0 = 0 ;
22763 PyObject * obj1 = 0 ;
22764 PyObject * obj2 = 0 ;
22766 if (!PyArg_ParseTuple(args,(
char *)
"OOO:VectorTransform_train",&obj0,&obj1,&obj2)) SWIG_fail;
22767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
22768 if (!SWIG_IsOK(res1)) {
22769 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_train" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
22772 ecode2 = SWIG_AsVal_long(obj1, &val2);
22773 if (!SWIG_IsOK(ecode2)) {
22774 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransform_train" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
22776 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
22777 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
22778 if (!SWIG_IsOK(res3)) {
22779 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "VectorTransform_train" "', argument " "3"" of type '" "float const *""'");
22781 arg3 =
reinterpret_cast< float *
>(argp3);
22783 Py_BEGIN_ALLOW_THREADS
22785 (arg1)->train(arg2,(
float const *)arg3);
22787 PyEval_RestoreThread(_save);
22788 PyErr_SetString(PyExc_RuntimeError, e.
what());
22791 Py_END_ALLOW_THREADS
22793 resultobj = SWIG_Py_Void();
22800 SWIGINTERN PyObject *_wrap_VectorTransform_apply(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22801 PyObject *resultobj = 0;
22803 faiss::VectorTransform::idx_t arg2 ;
22804 float *arg3 = (
float *) 0 ;
22811 PyObject * obj0 = 0 ;
22812 PyObject * obj1 = 0 ;
22813 PyObject * obj2 = 0 ;
22814 float *result = 0 ;
22816 if (!PyArg_ParseTuple(args,(
char *)
"OOO:VectorTransform_apply",&obj0,&obj1,&obj2)) SWIG_fail;
22817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
22818 if (!SWIG_IsOK(res1)) {
22819 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_apply" "', argument " "1"" of type '" "faiss::VectorTransform const *""'");
22822 ecode2 = SWIG_AsVal_long(obj1, &val2);
22823 if (!SWIG_IsOK(ecode2)) {
22824 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransform_apply" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
22826 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
22827 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
22828 if (!SWIG_IsOK(res3)) {
22829 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "VectorTransform_apply" "', argument " "3"" of type '" "float const *""'");
22831 arg3 =
reinterpret_cast< float *
>(argp3);
22833 Py_BEGIN_ALLOW_THREADS
22837 PyEval_RestoreThread(_save);
22838 PyErr_SetString(PyExc_RuntimeError, e.
what());
22841 Py_END_ALLOW_THREADS
22843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
22850 SWIGINTERN PyObject *_wrap_VectorTransform_apply_noalloc(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22851 PyObject *resultobj = 0;
22853 faiss::VectorTransform::idx_t arg2 ;
22854 float *arg3 = (
float *) 0 ;
22855 float *arg4 = (
float *) 0 ;
22864 PyObject * obj0 = 0 ;
22865 PyObject * obj1 = 0 ;
22866 PyObject * obj2 = 0 ;
22867 PyObject * obj3 = 0 ;
22869 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:VectorTransform_apply_noalloc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
22871 if (!SWIG_IsOK(res1)) {
22872 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_apply_noalloc" "', argument " "1"" of type '" "faiss::VectorTransform const *""'");
22875 ecode2 = SWIG_AsVal_long(obj1, &val2);
22876 if (!SWIG_IsOK(ecode2)) {
22877 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransform_apply_noalloc" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
22879 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
22880 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
22881 if (!SWIG_IsOK(res3)) {
22882 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "VectorTransform_apply_noalloc" "', argument " "3"" of type '" "float const *""'");
22884 arg3 =
reinterpret_cast< float *
>(argp3);
22885 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
22886 if (!SWIG_IsOK(res4)) {
22887 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "VectorTransform_apply_noalloc" "', argument " "4"" of type '" "float *""'");
22889 arg4 =
reinterpret_cast< float *
>(argp4);
22891 Py_BEGIN_ALLOW_THREADS
22895 PyEval_RestoreThread(_save);
22896 PyErr_SetString(PyExc_RuntimeError, e.
what());
22899 Py_END_ALLOW_THREADS
22901 resultobj = SWIG_Py_Void();
22908 SWIGINTERN PyObject *_wrap_VectorTransform_reverse_transform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22909 PyObject *resultobj = 0;
22911 faiss::VectorTransform::idx_t arg2 ;
22912 float *arg3 = (
float *) 0 ;
22913 float *arg4 = (
float *) 0 ;
22922 PyObject * obj0 = 0 ;
22923 PyObject * obj1 = 0 ;
22924 PyObject * obj2 = 0 ;
22925 PyObject * obj3 = 0 ;
22927 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:VectorTransform_reverse_transform",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
22929 if (!SWIG_IsOK(res1)) {
22930 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorTransform_reverse_transform" "', argument " "1"" of type '" "faiss::VectorTransform const *""'");
22933 ecode2 = SWIG_AsVal_long(obj1, &val2);
22934 if (!SWIG_IsOK(ecode2)) {
22935 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorTransform_reverse_transform" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
22937 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
22938 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
22939 if (!SWIG_IsOK(res3)) {
22940 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "VectorTransform_reverse_transform" "', argument " "3"" of type '" "float const *""'");
22942 arg3 =
reinterpret_cast< float *
>(argp3);
22943 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
22944 if (!SWIG_IsOK(res4)) {
22945 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "VectorTransform_reverse_transform" "', argument " "4"" of type '" "float *""'");
22947 arg4 =
reinterpret_cast< float *
>(argp4);
22949 Py_BEGIN_ALLOW_THREADS
22953 PyEval_RestoreThread(_save);
22954 PyErr_SetString(PyExc_RuntimeError, e.
what());
22957 Py_END_ALLOW_THREADS
22959 resultobj = SWIG_Py_Void();
22966 SWIGINTERN PyObject *_wrap_delete_VectorTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22967 PyObject *resultobj = 0;
22971 PyObject * obj0 = 0 ;
22973 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_VectorTransform",&obj0)) SWIG_fail;
22974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, SWIG_POINTER_DISOWN | 0 );
22975 if (!SWIG_IsOK(res1)) {
22976 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_VectorTransform" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
22980 Py_BEGIN_ALLOW_THREADS
22984 PyEval_RestoreThread(_save);
22985 PyErr_SetString(PyExc_RuntimeError, e.
what());
22988 Py_END_ALLOW_THREADS
22990 resultobj = SWIG_Py_Void();
22997 SWIGINTERN PyObject *VectorTransform_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22999 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
23000 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__VectorTransform, SWIG_NewClientData(obj));
23001 return SWIG_Py_Void();
23004 SWIGINTERN PyObject *_wrap_LinearTransform_have_bias_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23005 PyObject *resultobj = 0;
23012 PyObject * obj0 = 0 ;
23013 PyObject * obj1 = 0 ;
23015 if (!PyArg_ParseTuple(args,(
char *)
"OO:LinearTransform_have_bias_set",&obj0,&obj1)) SWIG_fail;
23016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
23017 if (!SWIG_IsOK(res1)) {
23018 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_have_bias_set" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
23021 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23022 if (!SWIG_IsOK(ecode2)) {
23023 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LinearTransform_have_bias_set" "', argument " "2"" of type '" "bool""'");
23025 arg2 =
static_cast< bool >(val2);
23026 if (arg1) (arg1)->have_bias = arg2;
23027 resultobj = SWIG_Py_Void();
23034 SWIGINTERN PyObject *_wrap_LinearTransform_have_bias_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23035 PyObject *resultobj = 0;
23039 PyObject * obj0 = 0 ;
23042 if (!PyArg_ParseTuple(args,(
char *)
"O:LinearTransform_have_bias_get",&obj0)) SWIG_fail;
23043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
23044 if (!SWIG_IsOK(res1)) {
23045 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_have_bias_get" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
23048 result = (bool) ((arg1)->have_bias);
23049 resultobj = SWIG_From_bool(static_cast< bool >(result));
23056 SWIGINTERN PyObject *_wrap_LinearTransform_is_orthonormal_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23057 PyObject *resultobj = 0;
23064 PyObject * obj0 = 0 ;
23065 PyObject * obj1 = 0 ;
23067 if (!PyArg_ParseTuple(args,(
char *)
"OO:LinearTransform_is_orthonormal_set",&obj0,&obj1)) SWIG_fail;
23068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
23069 if (!SWIG_IsOK(res1)) {
23070 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_is_orthonormal_set" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
23073 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23074 if (!SWIG_IsOK(ecode2)) {
23075 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LinearTransform_is_orthonormal_set" "', argument " "2"" of type '" "bool""'");
23077 arg2 =
static_cast< bool >(val2);
23078 if (arg1) (arg1)->is_orthonormal = arg2;
23079 resultobj = SWIG_Py_Void();
23086 SWIGINTERN PyObject *_wrap_LinearTransform_is_orthonormal_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23087 PyObject *resultobj = 0;
23091 PyObject * obj0 = 0 ;
23094 if (!PyArg_ParseTuple(args,(
char *)
"O:LinearTransform_is_orthonormal_get",&obj0)) SWIG_fail;
23095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
23096 if (!SWIG_IsOK(res1)) {
23097 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_is_orthonormal_get" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
23100 result = (bool) ((arg1)->is_orthonormal);
23101 resultobj = SWIG_From_bool(static_cast< bool >(result));
23108 SWIGINTERN PyObject *_wrap_LinearTransform_A_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23109 PyObject *resultobj = 0;
23111 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
23116 PyObject * obj0 = 0 ;
23117 PyObject * obj1 = 0 ;
23119 if (!PyArg_ParseTuple(args,(
char *)
"OO:LinearTransform_A_set",&obj0,&obj1)) SWIG_fail;
23120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
23121 if (!SWIG_IsOK(res1)) {
23122 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_A_set" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
23125 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
23126 if (!SWIG_IsOK(res2)) {
23127 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "LinearTransform_A_set" "', argument " "2"" of type '" "std::vector< float > *""'");
23129 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
23130 if (arg1) (arg1)->A = *arg2;
23131 resultobj = SWIG_Py_Void();
23138 SWIGINTERN PyObject *_wrap_LinearTransform_A_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23139 PyObject *resultobj = 0;
23143 PyObject * obj0 = 0 ;
23144 std::vector< float > *result = 0 ;
23146 if (!PyArg_ParseTuple(args,(
char *)
"O:LinearTransform_A_get",&obj0)) SWIG_fail;
23147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
23148 if (!SWIG_IsOK(res1)) {
23149 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_A_get" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
23152 result = (std::vector< float > *)& ((arg1)->A);
23153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
23160 SWIGINTERN PyObject *_wrap_LinearTransform_b_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23161 PyObject *resultobj = 0;
23163 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
23168 PyObject * obj0 = 0 ;
23169 PyObject * obj1 = 0 ;
23171 if (!PyArg_ParseTuple(args,(
char *)
"OO:LinearTransform_b_set",&obj0,&obj1)) SWIG_fail;
23172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
23173 if (!SWIG_IsOK(res1)) {
23174 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_b_set" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
23177 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
23178 if (!SWIG_IsOK(res2)) {
23179 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "LinearTransform_b_set" "', argument " "2"" of type '" "std::vector< float > *""'");
23181 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
23182 if (arg1) (arg1)->b = *arg2;
23183 resultobj = SWIG_Py_Void();
23190 SWIGINTERN PyObject *_wrap_LinearTransform_b_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23191 PyObject *resultobj = 0;
23195 PyObject * obj0 = 0 ;
23196 std::vector< float > *result = 0 ;
23198 if (!PyArg_ParseTuple(args,(
char *)
"O:LinearTransform_b_get",&obj0)) SWIG_fail;
23199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
23200 if (!SWIG_IsOK(res1)) {
23201 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_b_get" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
23204 result = (std::vector< float > *)& ((arg1)->b);
23205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
23212 SWIGINTERN PyObject *_wrap_new_LinearTransform__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23213 PyObject *resultobj = 0;
23223 PyObject * obj0 = 0 ;
23224 PyObject * obj1 = 0 ;
23225 PyObject * obj2 = 0 ;
23228 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_LinearTransform",&obj0,&obj1,&obj2)) SWIG_fail;
23229 ecode1 = SWIG_AsVal_int(obj0, &val1);
23230 if (!SWIG_IsOK(ecode1)) {
23231 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_LinearTransform" "', argument " "1"" of type '" "int""'");
23233 arg1 =
static_cast< int >(val1);
23234 ecode2 = SWIG_AsVal_int(obj1, &val2);
23235 if (!SWIG_IsOK(ecode2)) {
23236 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_LinearTransform" "', argument " "2"" of type '" "int""'");
23238 arg2 =
static_cast< int >(val2);
23239 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23240 if (!SWIG_IsOK(ecode3)) {
23241 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_LinearTransform" "', argument " "3"" of type '" "bool""'");
23243 arg3 =
static_cast< bool >(val3);
23245 Py_BEGIN_ALLOW_THREADS
23249 PyEval_RestoreThread(_save);
23250 PyErr_SetString(PyExc_RuntimeError, e.
what());
23253 Py_END_ALLOW_THREADS
23255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__LinearTransform, SWIG_POINTER_NEW | 0 );
23262 SWIGINTERN PyObject *_wrap_new_LinearTransform__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23263 PyObject *resultobj = 0;
23270 PyObject * obj0 = 0 ;
23271 PyObject * obj1 = 0 ;
23274 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_LinearTransform",&obj0,&obj1)) SWIG_fail;
23275 ecode1 = SWIG_AsVal_int(obj0, &val1);
23276 if (!SWIG_IsOK(ecode1)) {
23277 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_LinearTransform" "', argument " "1"" of type '" "int""'");
23279 arg1 =
static_cast< int >(val1);
23280 ecode2 = SWIG_AsVal_int(obj1, &val2);
23281 if (!SWIG_IsOK(ecode2)) {
23282 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_LinearTransform" "', argument " "2"" of type '" "int""'");
23284 arg2 =
static_cast< int >(val2);
23286 Py_BEGIN_ALLOW_THREADS
23290 PyEval_RestoreThread(_save);
23291 PyErr_SetString(PyExc_RuntimeError, e.
what());
23294 Py_END_ALLOW_THREADS
23296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__LinearTransform, SWIG_POINTER_NEW | 0 );
23303 SWIGINTERN PyObject *_wrap_new_LinearTransform__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23304 PyObject *resultobj = 0;
23308 PyObject * obj0 = 0 ;
23311 if (!PyArg_ParseTuple(args,(
char *)
"O:new_LinearTransform",&obj0)) SWIG_fail;
23312 ecode1 = SWIG_AsVal_int(obj0, &val1);
23313 if (!SWIG_IsOK(ecode1)) {
23314 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_LinearTransform" "', argument " "1"" of type '" "int""'");
23316 arg1 =
static_cast< int >(val1);
23318 Py_BEGIN_ALLOW_THREADS
23322 PyEval_RestoreThread(_save);
23323 PyErr_SetString(PyExc_RuntimeError, e.
what());
23326 Py_END_ALLOW_THREADS
23328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__LinearTransform, SWIG_POINTER_NEW | 0 );
23335 SWIGINTERN PyObject *_wrap_new_LinearTransform__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23336 PyObject *resultobj = 0;
23339 if (!PyArg_ParseTuple(args,(
char *)
":new_LinearTransform")) SWIG_fail;
23341 Py_BEGIN_ALLOW_THREADS
23345 PyEval_RestoreThread(_save);
23346 PyErr_SetString(PyExc_RuntimeError, e.
what());
23349 Py_END_ALLOW_THREADS
23351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__LinearTransform, SWIG_POINTER_NEW | 0 );
23358 SWIGINTERN PyObject *_wrap_new_LinearTransform(PyObject *
self, PyObject *args) {
23360 PyObject *argv[4] = {
23365 if (!PyTuple_Check(args)) SWIG_fail;
23366 argc = args ? PyObject_Length(args) : 0;
23367 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
23368 argv[ii] = PyTuple_GET_ITEM(args,ii);
23371 return _wrap_new_LinearTransform__SWIG_3(
self, args);
23376 int res = SWIG_AsVal_int(argv[0], NULL);
23377 _v = SWIG_CheckState(res);
23380 return _wrap_new_LinearTransform__SWIG_2(
self, args);
23386 int res = SWIG_AsVal_int(argv[0], NULL);
23387 _v = SWIG_CheckState(res);
23391 int res = SWIG_AsVal_int(argv[1], NULL);
23392 _v = SWIG_CheckState(res);
23395 return _wrap_new_LinearTransform__SWIG_1(
self, args);
23402 int res = SWIG_AsVal_int(argv[0], NULL);
23403 _v = SWIG_CheckState(res);
23407 int res = SWIG_AsVal_int(argv[1], NULL);
23408 _v = SWIG_CheckState(res);
23412 int res = SWIG_AsVal_bool(argv[2], NULL);
23413 _v = SWIG_CheckState(res);
23416 return _wrap_new_LinearTransform__SWIG_0(
self, args);
23423 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_LinearTransform'.\n"
23424 " Possible C/C++ prototypes are:\n"
23425 " faiss::LinearTransform::LinearTransform(int,int,bool)\n"
23426 " faiss::LinearTransform::LinearTransform(int,int)\n"
23427 " faiss::LinearTransform::LinearTransform(int)\n"
23428 " faiss::LinearTransform::LinearTransform()\n");
23433 SWIGINTERN PyObject *_wrap_LinearTransform_apply_noalloc(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23434 PyObject *resultobj = 0;
23436 faiss::VectorTransform::idx_t arg2 ;
23437 float *arg3 = (
float *) 0 ;
23438 float *arg4 = (
float *) 0 ;
23447 PyObject * obj0 = 0 ;
23448 PyObject * obj1 = 0 ;
23449 PyObject * obj2 = 0 ;
23450 PyObject * obj3 = 0 ;
23452 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:LinearTransform_apply_noalloc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
23454 if (!SWIG_IsOK(res1)) {
23455 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_apply_noalloc" "', argument " "1"" of type '" "faiss::LinearTransform const *""'");
23458 ecode2 = SWIG_AsVal_long(obj1, &val2);
23459 if (!SWIG_IsOK(ecode2)) {
23460 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LinearTransform_apply_noalloc" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
23462 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
23463 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
23464 if (!SWIG_IsOK(res3)) {
23465 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "LinearTransform_apply_noalloc" "', argument " "3"" of type '" "float const *""'");
23467 arg3 =
reinterpret_cast< float *
>(argp3);
23468 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
23469 if (!SWIG_IsOK(res4)) {
23470 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "LinearTransform_apply_noalloc" "', argument " "4"" of type '" "float *""'");
23472 arg4 =
reinterpret_cast< float *
>(argp4);
23474 Py_BEGIN_ALLOW_THREADS
23478 PyEval_RestoreThread(_save);
23479 PyErr_SetString(PyExc_RuntimeError, e.
what());
23482 Py_END_ALLOW_THREADS
23484 resultobj = SWIG_Py_Void();
23491 SWIGINTERN PyObject *_wrap_LinearTransform_transform_transpose(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23492 PyObject *resultobj = 0;
23494 faiss::VectorTransform::idx_t arg2 ;
23495 float *arg3 = (
float *) 0 ;
23496 float *arg4 = (
float *) 0 ;
23505 PyObject * obj0 = 0 ;
23506 PyObject * obj1 = 0 ;
23507 PyObject * obj2 = 0 ;
23508 PyObject * obj3 = 0 ;
23510 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:LinearTransform_transform_transpose",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
23512 if (!SWIG_IsOK(res1)) {
23513 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_transform_transpose" "', argument " "1"" of type '" "faiss::LinearTransform const *""'");
23516 ecode2 = SWIG_AsVal_long(obj1, &val2);
23517 if (!SWIG_IsOK(ecode2)) {
23518 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LinearTransform_transform_transpose" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
23520 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
23521 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
23522 if (!SWIG_IsOK(res3)) {
23523 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "LinearTransform_transform_transpose" "', argument " "3"" of type '" "float const *""'");
23525 arg3 =
reinterpret_cast< float *
>(argp3);
23526 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
23527 if (!SWIG_IsOK(res4)) {
23528 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "LinearTransform_transform_transpose" "', argument " "4"" of type '" "float *""'");
23530 arg4 =
reinterpret_cast< float *
>(argp4);
23532 Py_BEGIN_ALLOW_THREADS
23536 PyEval_RestoreThread(_save);
23537 PyErr_SetString(PyExc_RuntimeError, e.
what());
23540 Py_END_ALLOW_THREADS
23542 resultobj = SWIG_Py_Void();
23549 SWIGINTERN PyObject *_wrap_LinearTransform_reverse_transform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23550 PyObject *resultobj = 0;
23552 faiss::VectorTransform::idx_t arg2 ;
23553 float *arg3 = (
float *) 0 ;
23554 float *arg4 = (
float *) 0 ;
23563 PyObject * obj0 = 0 ;
23564 PyObject * obj1 = 0 ;
23565 PyObject * obj2 = 0 ;
23566 PyObject * obj3 = 0 ;
23568 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:LinearTransform_reverse_transform",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
23570 if (!SWIG_IsOK(res1)) {
23571 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_reverse_transform" "', argument " "1"" of type '" "faiss::LinearTransform const *""'");
23574 ecode2 = SWIG_AsVal_long(obj1, &val2);
23575 if (!SWIG_IsOK(ecode2)) {
23576 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LinearTransform_reverse_transform" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
23578 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
23579 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
23580 if (!SWIG_IsOK(res3)) {
23581 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "LinearTransform_reverse_transform" "', argument " "3"" of type '" "float const *""'");
23583 arg3 =
reinterpret_cast< float *
>(argp3);
23584 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
23585 if (!SWIG_IsOK(res4)) {
23586 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "LinearTransform_reverse_transform" "', argument " "4"" of type '" "float *""'");
23588 arg4 =
reinterpret_cast< float *
>(argp4);
23590 Py_BEGIN_ALLOW_THREADS
23594 PyEval_RestoreThread(_save);
23595 PyErr_SetString(PyExc_RuntimeError, e.
what());
23598 Py_END_ALLOW_THREADS
23600 resultobj = SWIG_Py_Void();
23607 SWIGINTERN PyObject *_wrap_LinearTransform_set_is_orthonormal(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23608 PyObject *resultobj = 0;
23612 PyObject * obj0 = 0 ;
23614 if (!PyArg_ParseTuple(args,(
char *)
"O:LinearTransform_set_is_orthonormal",&obj0)) SWIG_fail;
23615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
23616 if (!SWIG_IsOK(res1)) {
23617 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_set_is_orthonormal" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
23621 Py_BEGIN_ALLOW_THREADS
23623 (arg1)->set_is_orthonormal();
23625 PyEval_RestoreThread(_save);
23626 PyErr_SetString(PyExc_RuntimeError, e.
what());
23629 Py_END_ALLOW_THREADS
23631 resultobj = SWIG_Py_Void();
23638 SWIGINTERN PyObject *_wrap_LinearTransform_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23639 PyObject *resultobj = 0;
23646 PyObject * obj0 = 0 ;
23647 PyObject * obj1 = 0 ;
23649 if (!PyArg_ParseTuple(args,(
char *)
"OO:LinearTransform_verbose_set",&obj0,&obj1)) SWIG_fail;
23650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
23651 if (!SWIG_IsOK(res1)) {
23652 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_verbose_set" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
23655 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23656 if (!SWIG_IsOK(ecode2)) {
23657 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "LinearTransform_verbose_set" "', argument " "2"" of type '" "bool""'");
23659 arg2 =
static_cast< bool >(val2);
23660 if (arg1) (arg1)->verbose = arg2;
23661 resultobj = SWIG_Py_Void();
23668 SWIGINTERN PyObject *_wrap_LinearTransform_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23669 PyObject *resultobj = 0;
23673 PyObject * obj0 = 0 ;
23676 if (!PyArg_ParseTuple(args,(
char *)
"O:LinearTransform_verbose_get",&obj0)) SWIG_fail;
23677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
23678 if (!SWIG_IsOK(res1)) {
23679 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "LinearTransform_verbose_get" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
23682 result = (bool) ((arg1)->verbose);
23683 resultobj = SWIG_From_bool(static_cast< bool >(result));
23690 SWIGINTERN PyObject *_wrap_delete_LinearTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23691 PyObject *resultobj = 0;
23695 PyObject * obj0 = 0 ;
23697 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_LinearTransform",&obj0)) SWIG_fail;
23698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__LinearTransform, SWIG_POINTER_DISOWN | 0 );
23699 if (!SWIG_IsOK(res1)) {
23700 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_LinearTransform" "', argument " "1"" of type '" "faiss::LinearTransform *""'");
23704 Py_BEGIN_ALLOW_THREADS
23708 PyEval_RestoreThread(_save);
23709 PyErr_SetString(PyExc_RuntimeError, e.
what());
23712 Py_END_ALLOW_THREADS
23714 resultobj = SWIG_Py_Void();
23721 SWIGINTERN PyObject *LinearTransform_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23723 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
23724 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__LinearTransform, SWIG_NewClientData(obj));
23725 return SWIG_Py_Void();
23728 SWIGINTERN PyObject *_wrap_new_RandomRotationMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23729 PyObject *resultobj = 0;
23736 PyObject * obj0 = 0 ;
23737 PyObject * obj1 = 0 ;
23740 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_RandomRotationMatrix",&obj0,&obj1)) SWIG_fail;
23741 ecode1 = SWIG_AsVal_int(obj0, &val1);
23742 if (!SWIG_IsOK(ecode1)) {
23743 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_RandomRotationMatrix" "', argument " "1"" of type '" "int""'");
23745 arg1 =
static_cast< int >(val1);
23746 ecode2 = SWIG_AsVal_int(obj1, &val2);
23747 if (!SWIG_IsOK(ecode2)) {
23748 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_RandomRotationMatrix" "', argument " "2"" of type '" "int""'");
23750 arg2 =
static_cast< int >(val2);
23752 Py_BEGIN_ALLOW_THREADS
23756 PyEval_RestoreThread(_save);
23757 PyErr_SetString(PyExc_RuntimeError, e.
what());
23760 Py_END_ALLOW_THREADS
23762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RandomRotationMatrix, SWIG_POINTER_NEW | 0 );
23769 SWIGINTERN PyObject *_wrap_RandomRotationMatrix_init(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23770 PyObject *resultobj = 0;
23777 PyObject * obj0 = 0 ;
23778 PyObject * obj1 = 0 ;
23780 if (!PyArg_ParseTuple(args,(
char *)
"OO:RandomRotationMatrix_init",&obj0,&obj1)) SWIG_fail;
23781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomRotationMatrix, 0 | 0 );
23782 if (!SWIG_IsOK(res1)) {
23783 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomRotationMatrix_init" "', argument " "1"" of type '" "faiss::RandomRotationMatrix *""'");
23786 ecode2 = SWIG_AsVal_int(obj1, &val2);
23787 if (!SWIG_IsOK(ecode2)) {
23788 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RandomRotationMatrix_init" "', argument " "2"" of type '" "int""'");
23790 arg2 =
static_cast< int >(val2);
23792 Py_BEGIN_ALLOW_THREADS
23794 (arg1)->init(arg2);
23796 PyEval_RestoreThread(_save);
23797 PyErr_SetString(PyExc_RuntimeError, e.
what());
23800 Py_END_ALLOW_THREADS
23802 resultobj = SWIG_Py_Void();
23809 SWIGINTERN PyObject *_wrap_RandomRotationMatrix_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23810 PyObject *resultobj = 0;
23813 float *arg3 = (
float *) 0 ;
23820 PyObject * obj0 = 0 ;
23821 PyObject * obj1 = 0 ;
23822 PyObject * obj2 = 0 ;
23824 if (!PyArg_ParseTuple(args,(
char *)
"OOO:RandomRotationMatrix_train",&obj0,&obj1,&obj2)) SWIG_fail;
23825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomRotationMatrix, 0 | 0 );
23826 if (!SWIG_IsOK(res1)) {
23827 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RandomRotationMatrix_train" "', argument " "1"" of type '" "faiss::RandomRotationMatrix *""'");
23830 ecode2 = SWIG_AsVal_long(obj1, &val2);
23831 if (!SWIG_IsOK(ecode2)) {
23832 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RandomRotationMatrix_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
23835 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
23836 if (!SWIG_IsOK(res3)) {
23837 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "RandomRotationMatrix_train" "', argument " "3"" of type '" "float const *""'");
23839 arg3 =
reinterpret_cast< float *
>(argp3);
23841 Py_BEGIN_ALLOW_THREADS
23843 (arg1)->train(arg2,(
float const *)arg3);
23845 PyEval_RestoreThread(_save);
23846 PyErr_SetString(PyExc_RuntimeError, e.
what());
23849 Py_END_ALLOW_THREADS
23851 resultobj = SWIG_Py_Void();
23858 SWIGINTERN PyObject *_wrap_new_RandomRotationMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23859 PyObject *resultobj = 0;
23862 if (!PyArg_ParseTuple(args,(
char *)
":new_RandomRotationMatrix")) SWIG_fail;
23864 Py_BEGIN_ALLOW_THREADS
23868 PyEval_RestoreThread(_save);
23869 PyErr_SetString(PyExc_RuntimeError, e.
what());
23872 Py_END_ALLOW_THREADS
23874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RandomRotationMatrix, SWIG_POINTER_NEW | 0 );
23881 SWIGINTERN PyObject *_wrap_new_RandomRotationMatrix(PyObject *
self, PyObject *args) {
23883 PyObject *argv[3] = {
23888 if (!PyTuple_Check(args)) SWIG_fail;
23889 argc = args ? PyObject_Length(args) : 0;
23890 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
23891 argv[ii] = PyTuple_GET_ITEM(args,ii);
23894 return _wrap_new_RandomRotationMatrix__SWIG_1(
self, args);
23899 int res = SWIG_AsVal_int(argv[0], NULL);
23900 _v = SWIG_CheckState(res);
23904 int res = SWIG_AsVal_int(argv[1], NULL);
23905 _v = SWIG_CheckState(res);
23908 return _wrap_new_RandomRotationMatrix__SWIG_0(
self, args);
23914 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_RandomRotationMatrix'.\n"
23915 " Possible C/C++ prototypes are:\n"
23916 " faiss::RandomRotationMatrix::RandomRotationMatrix(int,int)\n"
23917 " faiss::RandomRotationMatrix::RandomRotationMatrix()\n");
23922 SWIGINTERN PyObject *_wrap_delete_RandomRotationMatrix(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23923 PyObject *resultobj = 0;
23927 PyObject * obj0 = 0 ;
23929 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RandomRotationMatrix",&obj0)) SWIG_fail;
23930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RandomRotationMatrix, SWIG_POINTER_DISOWN | 0 );
23931 if (!SWIG_IsOK(res1)) {
23932 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RandomRotationMatrix" "', argument " "1"" of type '" "faiss::RandomRotationMatrix *""'");
23936 resultobj = SWIG_Py_Void();
23943 SWIGINTERN PyObject *RandomRotationMatrix_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23945 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
23946 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__RandomRotationMatrix, SWIG_NewClientData(obj));
23947 return SWIG_Py_Void();
23950 SWIGINTERN PyObject *_wrap_PCAMatrix_eigen_power_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23951 PyObject *resultobj = 0;
23958 PyObject * obj0 = 0 ;
23959 PyObject * obj1 = 0 ;
23961 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_eigen_power_set",&obj0,&obj1)) SWIG_fail;
23962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
23963 if (!SWIG_IsOK(res1)) {
23964 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_eigen_power_set" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
23967 ecode2 = SWIG_AsVal_float(obj1, &val2);
23968 if (!SWIG_IsOK(ecode2)) {
23969 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PCAMatrix_eigen_power_set" "', argument " "2"" of type '" "float""'");
23971 arg2 =
static_cast< float >(val2);
23972 if (arg1) (arg1)->eigen_power = arg2;
23973 resultobj = SWIG_Py_Void();
23980 SWIGINTERN PyObject *_wrap_PCAMatrix_eigen_power_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23981 PyObject *resultobj = 0;
23985 PyObject * obj0 = 0 ;
23988 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_eigen_power_get",&obj0)) SWIG_fail;
23989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
23990 if (!SWIG_IsOK(res1)) {
23991 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_eigen_power_get" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
23994 result = (float) ((arg1)->eigen_power);
23995 resultobj = SWIG_From_float(static_cast< float >(result));
24002 SWIGINTERN PyObject *_wrap_PCAMatrix_random_rotation_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24003 PyObject *resultobj = 0;
24010 PyObject * obj0 = 0 ;
24011 PyObject * obj1 = 0 ;
24013 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_random_rotation_set",&obj0,&obj1)) SWIG_fail;
24014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24015 if (!SWIG_IsOK(res1)) {
24016 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_random_rotation_set" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24019 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24020 if (!SWIG_IsOK(ecode2)) {
24021 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PCAMatrix_random_rotation_set" "', argument " "2"" of type '" "bool""'");
24023 arg2 =
static_cast< bool >(val2);
24024 if (arg1) (arg1)->random_rotation = arg2;
24025 resultobj = SWIG_Py_Void();
24032 SWIGINTERN PyObject *_wrap_PCAMatrix_random_rotation_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24033 PyObject *resultobj = 0;
24037 PyObject * obj0 = 0 ;
24040 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_random_rotation_get",&obj0)) SWIG_fail;
24041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24042 if (!SWIG_IsOK(res1)) {
24043 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_random_rotation_get" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24046 result = (bool) ((arg1)->random_rotation);
24047 resultobj = SWIG_From_bool(static_cast< bool >(result));
24054 SWIGINTERN PyObject *_wrap_PCAMatrix_max_points_per_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24055 PyObject *resultobj = 0;
24062 PyObject * obj0 = 0 ;
24063 PyObject * obj1 = 0 ;
24065 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_max_points_per_d_set",&obj0,&obj1)) SWIG_fail;
24066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24067 if (!SWIG_IsOK(res1)) {
24068 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_max_points_per_d_set" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24071 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24072 if (!SWIG_IsOK(ecode2)) {
24073 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PCAMatrix_max_points_per_d_set" "', argument " "2"" of type '" "size_t""'");
24075 arg2 =
static_cast< size_t >(val2);
24076 if (arg1) (arg1)->max_points_per_d = arg2;
24077 resultobj = SWIG_Py_Void();
24084 SWIGINTERN PyObject *_wrap_PCAMatrix_max_points_per_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24085 PyObject *resultobj = 0;
24089 PyObject * obj0 = 0 ;
24092 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_max_points_per_d_get",&obj0)) SWIG_fail;
24093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24094 if (!SWIG_IsOK(res1)) {
24095 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_max_points_per_d_get" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24098 result = (size_t) ((arg1)->max_points_per_d);
24099 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
24106 SWIGINTERN PyObject *_wrap_PCAMatrix_balanced_bins_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24107 PyObject *resultobj = 0;
24114 PyObject * obj0 = 0 ;
24115 PyObject * obj1 = 0 ;
24117 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_balanced_bins_set",&obj0,&obj1)) SWIG_fail;
24118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24119 if (!SWIG_IsOK(res1)) {
24120 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_balanced_bins_set" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24123 ecode2 = SWIG_AsVal_int(obj1, &val2);
24124 if (!SWIG_IsOK(ecode2)) {
24125 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PCAMatrix_balanced_bins_set" "', argument " "2"" of type '" "int""'");
24127 arg2 =
static_cast< int >(val2);
24128 if (arg1) (arg1)->balanced_bins = arg2;
24129 resultobj = SWIG_Py_Void();
24136 SWIGINTERN PyObject *_wrap_PCAMatrix_balanced_bins_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24137 PyObject *resultobj = 0;
24141 PyObject * obj0 = 0 ;
24144 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_balanced_bins_get",&obj0)) SWIG_fail;
24145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24146 if (!SWIG_IsOK(res1)) {
24147 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_balanced_bins_get" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24150 result = (int) ((arg1)->balanced_bins);
24151 resultobj = SWIG_From_int(static_cast< int >(result));
24158 SWIGINTERN PyObject *_wrap_PCAMatrix_mean_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24159 PyObject *resultobj = 0;
24161 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
24166 PyObject * obj0 = 0 ;
24167 PyObject * obj1 = 0 ;
24169 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_mean_set",&obj0,&obj1)) SWIG_fail;
24170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24171 if (!SWIG_IsOK(res1)) {
24172 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_mean_set" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24175 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
24176 if (!SWIG_IsOK(res2)) {
24177 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PCAMatrix_mean_set" "', argument " "2"" of type '" "std::vector< float > *""'");
24179 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
24180 if (arg1) (arg1)->mean = *arg2;
24181 resultobj = SWIG_Py_Void();
24188 SWIGINTERN PyObject *_wrap_PCAMatrix_mean_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24189 PyObject *resultobj = 0;
24193 PyObject * obj0 = 0 ;
24194 std::vector< float > *result = 0 ;
24196 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_mean_get",&obj0)) SWIG_fail;
24197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24198 if (!SWIG_IsOK(res1)) {
24199 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_mean_get" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24202 result = (std::vector< float > *)& ((arg1)->mean);
24203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
24210 SWIGINTERN PyObject *_wrap_PCAMatrix_eigenvalues_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24211 PyObject *resultobj = 0;
24213 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
24218 PyObject * obj0 = 0 ;
24219 PyObject * obj1 = 0 ;
24221 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_eigenvalues_set",&obj0,&obj1)) SWIG_fail;
24222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24223 if (!SWIG_IsOK(res1)) {
24224 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_eigenvalues_set" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24227 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
24228 if (!SWIG_IsOK(res2)) {
24229 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PCAMatrix_eigenvalues_set" "', argument " "2"" of type '" "std::vector< float > *""'");
24231 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
24232 if (arg1) (arg1)->eigenvalues = *arg2;
24233 resultobj = SWIG_Py_Void();
24240 SWIGINTERN PyObject *_wrap_PCAMatrix_eigenvalues_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24241 PyObject *resultobj = 0;
24245 PyObject * obj0 = 0 ;
24246 std::vector< float > *result = 0 ;
24248 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_eigenvalues_get",&obj0)) SWIG_fail;
24249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24250 if (!SWIG_IsOK(res1)) {
24251 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_eigenvalues_get" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24254 result = (std::vector< float > *)& ((arg1)->eigenvalues);
24255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
24262 SWIGINTERN PyObject *_wrap_PCAMatrix_PCAMat_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24263 PyObject *resultobj = 0;
24265 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
24270 PyObject * obj0 = 0 ;
24271 PyObject * obj1 = 0 ;
24273 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_PCAMat_set",&obj0,&obj1)) SWIG_fail;
24274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24275 if (!SWIG_IsOK(res1)) {
24276 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_PCAMat_set" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24279 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
24280 if (!SWIG_IsOK(res2)) {
24281 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PCAMatrix_PCAMat_set" "', argument " "2"" of type '" "std::vector< float > *""'");
24283 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
24284 if (arg1) (arg1)->PCAMat = *arg2;
24285 resultobj = SWIG_Py_Void();
24292 SWIGINTERN PyObject *_wrap_PCAMatrix_PCAMat_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24293 PyObject *resultobj = 0;
24297 PyObject * obj0 = 0 ;
24298 std::vector< float > *result = 0 ;
24300 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_PCAMat_get",&obj0)) SWIG_fail;
24301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24302 if (!SWIG_IsOK(res1)) {
24303 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_PCAMat_get" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24306 result = (std::vector< float > *)& ((arg1)->PCAMat);
24307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
24314 SWIGINTERN PyObject *_wrap_new_PCAMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24315 PyObject *resultobj = 0;
24328 PyObject * obj0 = 0 ;
24329 PyObject * obj1 = 0 ;
24330 PyObject * obj2 = 0 ;
24331 PyObject * obj3 = 0 ;
24334 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_PCAMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24335 ecode1 = SWIG_AsVal_int(obj0, &val1);
24336 if (!SWIG_IsOK(ecode1)) {
24337 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_PCAMatrix" "', argument " "1"" of type '" "int""'");
24339 arg1 =
static_cast< int >(val1);
24340 ecode2 = SWIG_AsVal_int(obj1, &val2);
24341 if (!SWIG_IsOK(ecode2)) {
24342 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_PCAMatrix" "', argument " "2"" of type '" "int""'");
24344 arg2 =
static_cast< int >(val2);
24345 ecode3 = SWIG_AsVal_float(obj2, &val3);
24346 if (!SWIG_IsOK(ecode3)) {
24347 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_PCAMatrix" "', argument " "3"" of type '" "float""'");
24349 arg3 =
static_cast< float >(val3);
24350 ecode4 = SWIG_AsVal_bool(obj3, &val4);
24351 if (!SWIG_IsOK(ecode4)) {
24352 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_PCAMatrix" "', argument " "4"" of type '" "bool""'");
24354 arg4 =
static_cast< bool >(val4);
24356 Py_BEGIN_ALLOW_THREADS
24360 PyEval_RestoreThread(_save);
24361 PyErr_SetString(PyExc_RuntimeError, e.
what());
24364 Py_END_ALLOW_THREADS
24366 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PCAMatrix, SWIG_POINTER_NEW | 0 );
24373 SWIGINTERN PyObject *_wrap_new_PCAMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24374 PyObject *resultobj = 0;
24384 PyObject * obj0 = 0 ;
24385 PyObject * obj1 = 0 ;
24386 PyObject * obj2 = 0 ;
24389 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_PCAMatrix",&obj0,&obj1,&obj2)) SWIG_fail;
24390 ecode1 = SWIG_AsVal_int(obj0, &val1);
24391 if (!SWIG_IsOK(ecode1)) {
24392 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_PCAMatrix" "', argument " "1"" of type '" "int""'");
24394 arg1 =
static_cast< int >(val1);
24395 ecode2 = SWIG_AsVal_int(obj1, &val2);
24396 if (!SWIG_IsOK(ecode2)) {
24397 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_PCAMatrix" "', argument " "2"" of type '" "int""'");
24399 arg2 =
static_cast< int >(val2);
24400 ecode3 = SWIG_AsVal_float(obj2, &val3);
24401 if (!SWIG_IsOK(ecode3)) {
24402 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_PCAMatrix" "', argument " "3"" of type '" "float""'");
24404 arg3 =
static_cast< float >(val3);
24406 Py_BEGIN_ALLOW_THREADS
24410 PyEval_RestoreThread(_save);
24411 PyErr_SetString(PyExc_RuntimeError, e.
what());
24414 Py_END_ALLOW_THREADS
24416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PCAMatrix, SWIG_POINTER_NEW | 0 );
24423 SWIGINTERN PyObject *_wrap_new_PCAMatrix__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24424 PyObject *resultobj = 0;
24431 PyObject * obj0 = 0 ;
24432 PyObject * obj1 = 0 ;
24435 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_PCAMatrix",&obj0,&obj1)) SWIG_fail;
24436 ecode1 = SWIG_AsVal_int(obj0, &val1);
24437 if (!SWIG_IsOK(ecode1)) {
24438 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_PCAMatrix" "', argument " "1"" of type '" "int""'");
24440 arg1 =
static_cast< int >(val1);
24441 ecode2 = SWIG_AsVal_int(obj1, &val2);
24442 if (!SWIG_IsOK(ecode2)) {
24443 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_PCAMatrix" "', argument " "2"" of type '" "int""'");
24445 arg2 =
static_cast< int >(val2);
24447 Py_BEGIN_ALLOW_THREADS
24451 PyEval_RestoreThread(_save);
24452 PyErr_SetString(PyExc_RuntimeError, e.
what());
24455 Py_END_ALLOW_THREADS
24457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PCAMatrix, SWIG_POINTER_NEW | 0 );
24464 SWIGINTERN PyObject *_wrap_new_PCAMatrix__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24465 PyObject *resultobj = 0;
24469 PyObject * obj0 = 0 ;
24472 if (!PyArg_ParseTuple(args,(
char *)
"O:new_PCAMatrix",&obj0)) SWIG_fail;
24473 ecode1 = SWIG_AsVal_int(obj0, &val1);
24474 if (!SWIG_IsOK(ecode1)) {
24475 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_PCAMatrix" "', argument " "1"" of type '" "int""'");
24477 arg1 =
static_cast< int >(val1);
24479 Py_BEGIN_ALLOW_THREADS
24483 PyEval_RestoreThread(_save);
24484 PyErr_SetString(PyExc_RuntimeError, e.
what());
24487 Py_END_ALLOW_THREADS
24489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PCAMatrix, SWIG_POINTER_NEW | 0 );
24496 SWIGINTERN PyObject *_wrap_new_PCAMatrix__SWIG_4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24497 PyObject *resultobj = 0;
24500 if (!PyArg_ParseTuple(args,(
char *)
":new_PCAMatrix")) SWIG_fail;
24502 Py_BEGIN_ALLOW_THREADS
24506 PyEval_RestoreThread(_save);
24507 PyErr_SetString(PyExc_RuntimeError, e.
what());
24510 Py_END_ALLOW_THREADS
24512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PCAMatrix, SWIG_POINTER_NEW | 0 );
24519 SWIGINTERN PyObject *_wrap_new_PCAMatrix(PyObject *
self, PyObject *args) {
24521 PyObject *argv[5] = {
24526 if (!PyTuple_Check(args)) SWIG_fail;
24527 argc = args ? PyObject_Length(args) : 0;
24528 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
24529 argv[ii] = PyTuple_GET_ITEM(args,ii);
24532 return _wrap_new_PCAMatrix__SWIG_4(
self, args);
24537 int res = SWIG_AsVal_int(argv[0], NULL);
24538 _v = SWIG_CheckState(res);
24541 return _wrap_new_PCAMatrix__SWIG_3(
self, args);
24547 int res = SWIG_AsVal_int(argv[0], NULL);
24548 _v = SWIG_CheckState(res);
24552 int res = SWIG_AsVal_int(argv[1], NULL);
24553 _v = SWIG_CheckState(res);
24556 return _wrap_new_PCAMatrix__SWIG_2(
self, args);
24563 int res = SWIG_AsVal_int(argv[0], NULL);
24564 _v = SWIG_CheckState(res);
24568 int res = SWIG_AsVal_int(argv[1], NULL);
24569 _v = SWIG_CheckState(res);
24573 int res = SWIG_AsVal_float(argv[2], NULL);
24574 _v = SWIG_CheckState(res);
24577 return _wrap_new_PCAMatrix__SWIG_1(
self, args);
24585 int res = SWIG_AsVal_int(argv[0], NULL);
24586 _v = SWIG_CheckState(res);
24590 int res = SWIG_AsVal_int(argv[1], NULL);
24591 _v = SWIG_CheckState(res);
24595 int res = SWIG_AsVal_float(argv[2], NULL);
24596 _v = SWIG_CheckState(res);
24600 int res = SWIG_AsVal_bool(argv[3], NULL);
24601 _v = SWIG_CheckState(res);
24604 return _wrap_new_PCAMatrix__SWIG_0(
self, args);
24612 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_PCAMatrix'.\n"
24613 " Possible C/C++ prototypes are:\n"
24614 " faiss::PCAMatrix::PCAMatrix(int,int,float,bool)\n"
24615 " faiss::PCAMatrix::PCAMatrix(int,int,float)\n"
24616 " faiss::PCAMatrix::PCAMatrix(int,int)\n"
24617 " faiss::PCAMatrix::PCAMatrix(int)\n"
24618 " faiss::PCAMatrix::PCAMatrix()\n");
24623 SWIGINTERN PyObject *_wrap_PCAMatrix_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24624 PyObject *resultobj = 0;
24627 float *arg3 = (
float *) 0 ;
24634 PyObject * obj0 = 0 ;
24635 PyObject * obj1 = 0 ;
24636 PyObject * obj2 = 0 ;
24638 if (!PyArg_ParseTuple(args,(
char *)
"OOO:PCAMatrix_train",&obj0,&obj1,&obj2)) SWIG_fail;
24639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24640 if (!SWIG_IsOK(res1)) {
24641 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_train" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24644 ecode2 = SWIG_AsVal_long(obj1, &val2);
24645 if (!SWIG_IsOK(ecode2)) {
24646 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PCAMatrix_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
24649 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
24650 if (!SWIG_IsOK(res3)) {
24651 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "PCAMatrix_train" "', argument " "3"" of type '" "float const *""'");
24653 arg3 =
reinterpret_cast< float *
>(argp3);
24655 Py_BEGIN_ALLOW_THREADS
24657 (arg1)->train(arg2,(
float const *)arg3);
24659 PyEval_RestoreThread(_save);
24660 PyErr_SetString(PyExc_RuntimeError, e.
what());
24663 Py_END_ALLOW_THREADS
24665 resultobj = SWIG_Py_Void();
24672 SWIGINTERN PyObject *_wrap_PCAMatrix_copy_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24673 PyObject *resultobj = 0;
24680 PyObject * obj0 = 0 ;
24681 PyObject * obj1 = 0 ;
24683 if (!PyArg_ParseTuple(args,(
char *)
"OO:PCAMatrix_copy_from",&obj0,&obj1)) SWIG_fail;
24684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24685 if (!SWIG_IsOK(res1)) {
24686 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_copy_from" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24689 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__PCAMatrix, 0 | 0);
24690 if (!SWIG_IsOK(res2)) {
24691 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PCAMatrix_copy_from" "', argument " "2"" of type '" "faiss::PCAMatrix const &""'");
24694 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "PCAMatrix_copy_from" "', argument " "2"" of type '" "faiss::PCAMatrix const &""'");
24698 Py_BEGIN_ALLOW_THREADS
24702 PyEval_RestoreThread(_save);
24703 PyErr_SetString(PyExc_RuntimeError, e.
what());
24706 Py_END_ALLOW_THREADS
24708 resultobj = SWIG_Py_Void();
24715 SWIGINTERN PyObject *_wrap_PCAMatrix_prepare_Ab(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24716 PyObject *resultobj = 0;
24720 PyObject * obj0 = 0 ;
24722 if (!PyArg_ParseTuple(args,(
char *)
"O:PCAMatrix_prepare_Ab",&obj0)) SWIG_fail;
24723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, 0 | 0 );
24724 if (!SWIG_IsOK(res1)) {
24725 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PCAMatrix_prepare_Ab" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24729 Py_BEGIN_ALLOW_THREADS
24731 (arg1)->prepare_Ab();
24733 PyEval_RestoreThread(_save);
24734 PyErr_SetString(PyExc_RuntimeError, e.
what());
24737 Py_END_ALLOW_THREADS
24739 resultobj = SWIG_Py_Void();
24746 SWIGINTERN PyObject *_wrap_delete_PCAMatrix(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24747 PyObject *resultobj = 0;
24751 PyObject * obj0 = 0 ;
24753 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_PCAMatrix",&obj0)) SWIG_fail;
24754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PCAMatrix, SWIG_POINTER_DISOWN | 0 );
24755 if (!SWIG_IsOK(res1)) {
24756 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_PCAMatrix" "', argument " "1"" of type '" "faiss::PCAMatrix *""'");
24760 resultobj = SWIG_Py_Void();
24767 SWIGINTERN PyObject *PCAMatrix_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24769 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
24770 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__PCAMatrix, SWIG_NewClientData(obj));
24771 return SWIG_Py_Void();
24774 SWIGINTERN PyObject *_wrap_OPQMatrix_M_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24775 PyObject *resultobj = 0;
24782 PyObject * obj0 = 0 ;
24783 PyObject * obj1 = 0 ;
24785 if (!PyArg_ParseTuple(args,(
char *)
"OO:OPQMatrix_M_set",&obj0,&obj1)) SWIG_fail;
24786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
24787 if (!SWIG_IsOK(res1)) {
24788 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_M_set" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
24791 ecode2 = SWIG_AsVal_int(obj1, &val2);
24792 if (!SWIG_IsOK(ecode2)) {
24793 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OPQMatrix_M_set" "', argument " "2"" of type '" "int""'");
24795 arg2 =
static_cast< int >(val2);
24796 if (arg1) (arg1)->M = arg2;
24797 resultobj = SWIG_Py_Void();
24804 SWIGINTERN PyObject *_wrap_OPQMatrix_M_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24805 PyObject *resultobj = 0;
24809 PyObject * obj0 = 0 ;
24812 if (!PyArg_ParseTuple(args,(
char *)
"O:OPQMatrix_M_get",&obj0)) SWIG_fail;
24813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
24814 if (!SWIG_IsOK(res1)) {
24815 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_M_get" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
24818 result = (int) ((arg1)->M);
24819 resultobj = SWIG_From_int(static_cast< int >(result));
24826 SWIGINTERN PyObject *_wrap_OPQMatrix_niter_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24827 PyObject *resultobj = 0;
24834 PyObject * obj0 = 0 ;
24835 PyObject * obj1 = 0 ;
24837 if (!PyArg_ParseTuple(args,(
char *)
"OO:OPQMatrix_niter_set",&obj0,&obj1)) SWIG_fail;
24838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
24839 if (!SWIG_IsOK(res1)) {
24840 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_niter_set" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
24843 ecode2 = SWIG_AsVal_int(obj1, &val2);
24844 if (!SWIG_IsOK(ecode2)) {
24845 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OPQMatrix_niter_set" "', argument " "2"" of type '" "int""'");
24847 arg2 =
static_cast< int >(val2);
24848 if (arg1) (arg1)->niter = arg2;
24849 resultobj = SWIG_Py_Void();
24856 SWIGINTERN PyObject *_wrap_OPQMatrix_niter_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24857 PyObject *resultobj = 0;
24861 PyObject * obj0 = 0 ;
24864 if (!PyArg_ParseTuple(args,(
char *)
"O:OPQMatrix_niter_get",&obj0)) SWIG_fail;
24865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
24866 if (!SWIG_IsOK(res1)) {
24867 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_niter_get" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
24870 result = (int) ((arg1)->niter);
24871 resultobj = SWIG_From_int(static_cast< int >(result));
24878 SWIGINTERN PyObject *_wrap_OPQMatrix_niter_pq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24879 PyObject *resultobj = 0;
24886 PyObject * obj0 = 0 ;
24887 PyObject * obj1 = 0 ;
24889 if (!PyArg_ParseTuple(args,(
char *)
"OO:OPQMatrix_niter_pq_set",&obj0,&obj1)) SWIG_fail;
24890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
24891 if (!SWIG_IsOK(res1)) {
24892 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_niter_pq_set" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
24895 ecode2 = SWIG_AsVal_int(obj1, &val2);
24896 if (!SWIG_IsOK(ecode2)) {
24897 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OPQMatrix_niter_pq_set" "', argument " "2"" of type '" "int""'");
24899 arg2 =
static_cast< int >(val2);
24900 if (arg1) (arg1)->niter_pq = arg2;
24901 resultobj = SWIG_Py_Void();
24908 SWIGINTERN PyObject *_wrap_OPQMatrix_niter_pq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24909 PyObject *resultobj = 0;
24913 PyObject * obj0 = 0 ;
24916 if (!PyArg_ParseTuple(args,(
char *)
"O:OPQMatrix_niter_pq_get",&obj0)) SWIG_fail;
24917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
24918 if (!SWIG_IsOK(res1)) {
24919 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_niter_pq_get" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
24922 result = (int) ((arg1)->niter_pq);
24923 resultobj = SWIG_From_int(static_cast< int >(result));
24930 SWIGINTERN PyObject *_wrap_OPQMatrix_niter_pq_0_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24931 PyObject *resultobj = 0;
24938 PyObject * obj0 = 0 ;
24939 PyObject * obj1 = 0 ;
24941 if (!PyArg_ParseTuple(args,(
char *)
"OO:OPQMatrix_niter_pq_0_set",&obj0,&obj1)) SWIG_fail;
24942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
24943 if (!SWIG_IsOK(res1)) {
24944 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_niter_pq_0_set" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
24947 ecode2 = SWIG_AsVal_int(obj1, &val2);
24948 if (!SWIG_IsOK(ecode2)) {
24949 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OPQMatrix_niter_pq_0_set" "', argument " "2"" of type '" "int""'");
24951 arg2 =
static_cast< int >(val2);
24952 if (arg1) (arg1)->niter_pq_0 = arg2;
24953 resultobj = SWIG_Py_Void();
24960 SWIGINTERN PyObject *_wrap_OPQMatrix_niter_pq_0_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24961 PyObject *resultobj = 0;
24965 PyObject * obj0 = 0 ;
24968 if (!PyArg_ParseTuple(args,(
char *)
"O:OPQMatrix_niter_pq_0_get",&obj0)) SWIG_fail;
24969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
24970 if (!SWIG_IsOK(res1)) {
24971 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_niter_pq_0_get" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
24974 result = (int) ((arg1)->niter_pq_0);
24975 resultobj = SWIG_From_int(static_cast< int >(result));
24982 SWIGINTERN PyObject *_wrap_OPQMatrix_max_train_points_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24983 PyObject *resultobj = 0;
24990 PyObject * obj0 = 0 ;
24991 PyObject * obj1 = 0 ;
24993 if (!PyArg_ParseTuple(args,(
char *)
"OO:OPQMatrix_max_train_points_set",&obj0,&obj1)) SWIG_fail;
24994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
24995 if (!SWIG_IsOK(res1)) {
24996 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_max_train_points_set" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
24999 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
25000 if (!SWIG_IsOK(ecode2)) {
25001 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OPQMatrix_max_train_points_set" "', argument " "2"" of type '" "size_t""'");
25003 arg2 =
static_cast< size_t >(val2);
25004 if (arg1) (arg1)->max_train_points = arg2;
25005 resultobj = SWIG_Py_Void();
25012 SWIGINTERN PyObject *_wrap_OPQMatrix_max_train_points_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25013 PyObject *resultobj = 0;
25017 PyObject * obj0 = 0 ;
25020 if (!PyArg_ParseTuple(args,(
char *)
"O:OPQMatrix_max_train_points_get",&obj0)) SWIG_fail;
25021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
25022 if (!SWIG_IsOK(res1)) {
25023 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_max_train_points_get" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
25026 result = (size_t) ((arg1)->max_train_points);
25027 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25034 SWIGINTERN PyObject *_wrap_OPQMatrix_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25035 PyObject *resultobj = 0;
25042 PyObject * obj0 = 0 ;
25043 PyObject * obj1 = 0 ;
25045 if (!PyArg_ParseTuple(args,(
char *)
"OO:OPQMatrix_verbose_set",&obj0,&obj1)) SWIG_fail;
25046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
25047 if (!SWIG_IsOK(res1)) {
25048 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_verbose_set" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
25051 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25052 if (!SWIG_IsOK(ecode2)) {
25053 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OPQMatrix_verbose_set" "', argument " "2"" of type '" "bool""'");
25055 arg2 =
static_cast< bool >(val2);
25056 if (arg1) (arg1)->verbose = arg2;
25057 resultobj = SWIG_Py_Void();
25064 SWIGINTERN PyObject *_wrap_OPQMatrix_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25065 PyObject *resultobj = 0;
25069 PyObject * obj0 = 0 ;
25072 if (!PyArg_ParseTuple(args,(
char *)
"O:OPQMatrix_verbose_get",&obj0)) SWIG_fail;
25073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
25074 if (!SWIG_IsOK(res1)) {
25075 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_verbose_get" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
25078 result = (bool) ((arg1)->verbose);
25079 resultobj = SWIG_From_bool(static_cast< bool >(result));
25086 SWIGINTERN PyObject *_wrap_OPQMatrix_pq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25087 PyObject *resultobj = 0;
25094 PyObject * obj0 = 0 ;
25095 PyObject * obj1 = 0 ;
25097 if (!PyArg_ParseTuple(args,(
char *)
"OO:OPQMatrix_pq_set",&obj0,&obj1)) SWIG_fail;
25098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
25099 if (!SWIG_IsOK(res1)) {
25100 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_pq_set" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
25103 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ProductQuantizer, SWIG_POINTER_DISOWN | 0 );
25104 if (!SWIG_IsOK(res2)) {
25105 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OPQMatrix_pq_set" "', argument " "2"" of type '" "faiss::ProductQuantizer *""'");
25108 if (arg1) (arg1)->pq = arg2;
25109 resultobj = SWIG_Py_Void();
25116 SWIGINTERN PyObject *_wrap_OPQMatrix_pq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25117 PyObject *resultobj = 0;
25121 PyObject * obj0 = 0 ;
25124 if (!PyArg_ParseTuple(args,(
char *)
"O:OPQMatrix_pq_get",&obj0)) SWIG_fail;
25125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
25126 if (!SWIG_IsOK(res1)) {
25127 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_pq_get" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
25131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
25138 SWIGINTERN PyObject *_wrap_new_OPQMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25139 PyObject *resultobj = 0;
25149 PyObject * obj0 = 0 ;
25150 PyObject * obj1 = 0 ;
25151 PyObject * obj2 = 0 ;
25154 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_OPQMatrix",&obj0,&obj1,&obj2)) SWIG_fail;
25155 ecode1 = SWIG_AsVal_int(obj0, &val1);
25156 if (!SWIG_IsOK(ecode1)) {
25157 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_OPQMatrix" "', argument " "1"" of type '" "int""'");
25159 arg1 =
static_cast< int >(val1);
25160 ecode2 = SWIG_AsVal_int(obj1, &val2);
25161 if (!SWIG_IsOK(ecode2)) {
25162 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_OPQMatrix" "', argument " "2"" of type '" "int""'");
25164 arg2 =
static_cast< int >(val2);
25165 ecode3 = SWIG_AsVal_int(obj2, &val3);
25166 if (!SWIG_IsOK(ecode3)) {
25167 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_OPQMatrix" "', argument " "3"" of type '" "int""'");
25169 arg3 =
static_cast< int >(val3);
25171 Py_BEGIN_ALLOW_THREADS
25175 PyEval_RestoreThread(_save);
25176 PyErr_SetString(PyExc_RuntimeError, e.
what());
25179 Py_END_ALLOW_THREADS
25181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OPQMatrix, SWIG_POINTER_NEW | 0 );
25188 SWIGINTERN PyObject *_wrap_new_OPQMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25189 PyObject *resultobj = 0;
25196 PyObject * obj0 = 0 ;
25197 PyObject * obj1 = 0 ;
25200 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_OPQMatrix",&obj0,&obj1)) SWIG_fail;
25201 ecode1 = SWIG_AsVal_int(obj0, &val1);
25202 if (!SWIG_IsOK(ecode1)) {
25203 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_OPQMatrix" "', argument " "1"" of type '" "int""'");
25205 arg1 =
static_cast< int >(val1);
25206 ecode2 = SWIG_AsVal_int(obj1, &val2);
25207 if (!SWIG_IsOK(ecode2)) {
25208 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_OPQMatrix" "', argument " "2"" of type '" "int""'");
25210 arg2 =
static_cast< int >(val2);
25212 Py_BEGIN_ALLOW_THREADS
25216 PyEval_RestoreThread(_save);
25217 PyErr_SetString(PyExc_RuntimeError, e.
what());
25220 Py_END_ALLOW_THREADS
25222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OPQMatrix, SWIG_POINTER_NEW | 0 );
25229 SWIGINTERN PyObject *_wrap_new_OPQMatrix__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25230 PyObject *resultobj = 0;
25234 PyObject * obj0 = 0 ;
25237 if (!PyArg_ParseTuple(args,(
char *)
"O:new_OPQMatrix",&obj0)) SWIG_fail;
25238 ecode1 = SWIG_AsVal_int(obj0, &val1);
25239 if (!SWIG_IsOK(ecode1)) {
25240 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_OPQMatrix" "', argument " "1"" of type '" "int""'");
25242 arg1 =
static_cast< int >(val1);
25244 Py_BEGIN_ALLOW_THREADS
25248 PyEval_RestoreThread(_save);
25249 PyErr_SetString(PyExc_RuntimeError, e.
what());
25252 Py_END_ALLOW_THREADS
25254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OPQMatrix, SWIG_POINTER_NEW | 0 );
25261 SWIGINTERN PyObject *_wrap_new_OPQMatrix__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25262 PyObject *resultobj = 0;
25265 if (!PyArg_ParseTuple(args,(
char *)
":new_OPQMatrix")) SWIG_fail;
25267 Py_BEGIN_ALLOW_THREADS
25271 PyEval_RestoreThread(_save);
25272 PyErr_SetString(PyExc_RuntimeError, e.
what());
25275 Py_END_ALLOW_THREADS
25277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OPQMatrix, SWIG_POINTER_NEW | 0 );
25284 SWIGINTERN PyObject *_wrap_new_OPQMatrix(PyObject *
self, PyObject *args) {
25286 PyObject *argv[4] = {
25291 if (!PyTuple_Check(args)) SWIG_fail;
25292 argc = args ? PyObject_Length(args) : 0;
25293 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
25294 argv[ii] = PyTuple_GET_ITEM(args,ii);
25297 return _wrap_new_OPQMatrix__SWIG_3(
self, args);
25302 int res = SWIG_AsVal_int(argv[0], NULL);
25303 _v = SWIG_CheckState(res);
25306 return _wrap_new_OPQMatrix__SWIG_2(
self, args);
25312 int res = SWIG_AsVal_int(argv[0], NULL);
25313 _v = SWIG_CheckState(res);
25317 int res = SWIG_AsVal_int(argv[1], NULL);
25318 _v = SWIG_CheckState(res);
25321 return _wrap_new_OPQMatrix__SWIG_1(
self, args);
25328 int res = SWIG_AsVal_int(argv[0], NULL);
25329 _v = SWIG_CheckState(res);
25333 int res = SWIG_AsVal_int(argv[1], NULL);
25334 _v = SWIG_CheckState(res);
25338 int res = SWIG_AsVal_int(argv[2], NULL);
25339 _v = SWIG_CheckState(res);
25342 return _wrap_new_OPQMatrix__SWIG_0(
self, args);
25349 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_OPQMatrix'.\n"
25350 " Possible C/C++ prototypes are:\n"
25351 " faiss::OPQMatrix::OPQMatrix(int,int,int)\n"
25352 " faiss::OPQMatrix::OPQMatrix(int,int)\n"
25353 " faiss::OPQMatrix::OPQMatrix(int)\n"
25354 " faiss::OPQMatrix::OPQMatrix()\n");
25359 SWIGINTERN PyObject *_wrap_OPQMatrix_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25360 PyObject *resultobj = 0;
25363 float *arg3 = (
float *) 0 ;
25370 PyObject * obj0 = 0 ;
25371 PyObject * obj1 = 0 ;
25372 PyObject * obj2 = 0 ;
25374 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OPQMatrix_train",&obj0,&obj1,&obj2)) SWIG_fail;
25375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, 0 | 0 );
25376 if (!SWIG_IsOK(res1)) {
25377 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OPQMatrix_train" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
25380 ecode2 = SWIG_AsVal_long(obj1, &val2);
25381 if (!SWIG_IsOK(ecode2)) {
25382 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OPQMatrix_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
25385 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
25386 if (!SWIG_IsOK(res3)) {
25387 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "OPQMatrix_train" "', argument " "3"" of type '" "float const *""'");
25389 arg3 =
reinterpret_cast< float *
>(argp3);
25391 Py_BEGIN_ALLOW_THREADS
25393 (arg1)->train(arg2,(
float const *)arg3);
25395 PyEval_RestoreThread(_save);
25396 PyErr_SetString(PyExc_RuntimeError, e.
what());
25399 Py_END_ALLOW_THREADS
25401 resultobj = SWIG_Py_Void();
25408 SWIGINTERN PyObject *_wrap_delete_OPQMatrix(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25409 PyObject *resultobj = 0;
25413 PyObject * obj0 = 0 ;
25415 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_OPQMatrix",&obj0)) SWIG_fail;
25416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OPQMatrix, SWIG_POINTER_DISOWN | 0 );
25417 if (!SWIG_IsOK(res1)) {
25418 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_OPQMatrix" "', argument " "1"" of type '" "faiss::OPQMatrix *""'");
25422 resultobj = SWIG_Py_Void();
25429 SWIGINTERN PyObject *OPQMatrix_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25431 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
25432 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__OPQMatrix, SWIG_NewClientData(obj));
25433 return SWIG_Py_Void();
25436 SWIGINTERN PyObject *_wrap_RemapDimensionsTransform_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25437 PyObject *resultobj = 0;
25439 std::vector< int > *arg2 = (std::vector< int > *) 0 ;
25444 PyObject * obj0 = 0 ;
25445 PyObject * obj1 = 0 ;
25447 if (!PyArg_ParseTuple(args,(
char *)
"OO:RemapDimensionsTransform_map_set",&obj0,&obj1)) SWIG_fail;
25448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RemapDimensionsTransform, 0 | 0 );
25449 if (!SWIG_IsOK(res1)) {
25450 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RemapDimensionsTransform_map_set" "', argument " "1"" of type '" "faiss::RemapDimensionsTransform *""'");
25453 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
25454 if (!SWIG_IsOK(res2)) {
25455 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RemapDimensionsTransform_map_set" "', argument " "2"" of type '" "std::vector< int > *""'");
25457 arg2 =
reinterpret_cast< std::vector< int > *
>(argp2);
25458 if (arg1) (arg1)->map = *arg2;
25459 resultobj = SWIG_Py_Void();
25466 SWIGINTERN PyObject *_wrap_RemapDimensionsTransform_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25467 PyObject *resultobj = 0;
25471 PyObject * obj0 = 0 ;
25472 std::vector< int > *result = 0 ;
25474 if (!PyArg_ParseTuple(args,(
char *)
"O:RemapDimensionsTransform_map_get",&obj0)) SWIG_fail;
25475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RemapDimensionsTransform, 0 | 0 );
25476 if (!SWIG_IsOK(res1)) {
25477 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RemapDimensionsTransform_map_get" "', argument " "1"" of type '" "faiss::RemapDimensionsTransform *""'");
25480 result = (std::vector< int > *)& ((arg1)->map);
25481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
25488 SWIGINTERN PyObject *_wrap_new_RemapDimensionsTransform__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25489 PyObject *resultobj = 0;
25492 int *arg3 = (
int *) 0 ;
25499 PyObject * obj0 = 0 ;
25500 PyObject * obj1 = 0 ;
25501 PyObject * obj2 = 0 ;
25504 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_RemapDimensionsTransform",&obj0,&obj1,&obj2)) SWIG_fail;
25505 ecode1 = SWIG_AsVal_int(obj0, &val1);
25506 if (!SWIG_IsOK(ecode1)) {
25507 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_RemapDimensionsTransform" "', argument " "1"" of type '" "int""'");
25509 arg1 =
static_cast< int >(val1);
25510 ecode2 = SWIG_AsVal_int(obj1, &val2);
25511 if (!SWIG_IsOK(ecode2)) {
25512 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_RemapDimensionsTransform" "', argument " "2"" of type '" "int""'");
25514 arg2 =
static_cast< int >(val2);
25515 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
25516 if (!SWIG_IsOK(res3)) {
25517 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_RemapDimensionsTransform" "', argument " "3"" of type '" "int const *""'");
25519 arg3 =
reinterpret_cast< int *
>(argp3);
25521 Py_BEGIN_ALLOW_THREADS
25525 PyEval_RestoreThread(_save);
25526 PyErr_SetString(PyExc_RuntimeError, e.
what());
25529 Py_END_ALLOW_THREADS
25531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RemapDimensionsTransform, SWIG_POINTER_NEW | 0 );
25538 SWIGINTERN PyObject *_wrap_new_RemapDimensionsTransform__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25539 PyObject *resultobj = 0;
25549 PyObject * obj0 = 0 ;
25550 PyObject * obj1 = 0 ;
25551 PyObject * obj2 = 0 ;
25554 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_RemapDimensionsTransform",&obj0,&obj1,&obj2)) SWIG_fail;
25555 ecode1 = SWIG_AsVal_int(obj0, &val1);
25556 if (!SWIG_IsOK(ecode1)) {
25557 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_RemapDimensionsTransform" "', argument " "1"" of type '" "int""'");
25559 arg1 =
static_cast< int >(val1);
25560 ecode2 = SWIG_AsVal_int(obj1, &val2);
25561 if (!SWIG_IsOK(ecode2)) {
25562 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_RemapDimensionsTransform" "', argument " "2"" of type '" "int""'");
25564 arg2 =
static_cast< int >(val2);
25565 ecode3 = SWIG_AsVal_bool(obj2, &val3);
25566 if (!SWIG_IsOK(ecode3)) {
25567 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_RemapDimensionsTransform" "', argument " "3"" of type '" "bool""'");
25569 arg3 =
static_cast< bool >(val3);
25571 Py_BEGIN_ALLOW_THREADS
25575 PyEval_RestoreThread(_save);
25576 PyErr_SetString(PyExc_RuntimeError, e.
what());
25579 Py_END_ALLOW_THREADS
25581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RemapDimensionsTransform, SWIG_POINTER_NEW | 0 );
25588 SWIGINTERN PyObject *_wrap_new_RemapDimensionsTransform__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25589 PyObject *resultobj = 0;
25596 PyObject * obj0 = 0 ;
25597 PyObject * obj1 = 0 ;
25600 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_RemapDimensionsTransform",&obj0,&obj1)) SWIG_fail;
25601 ecode1 = SWIG_AsVal_int(obj0, &val1);
25602 if (!SWIG_IsOK(ecode1)) {
25603 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_RemapDimensionsTransform" "', argument " "1"" of type '" "int""'");
25605 arg1 =
static_cast< int >(val1);
25606 ecode2 = SWIG_AsVal_int(obj1, &val2);
25607 if (!SWIG_IsOK(ecode2)) {
25608 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_RemapDimensionsTransform" "', argument " "2"" of type '" "int""'");
25610 arg2 =
static_cast< int >(val2);
25612 Py_BEGIN_ALLOW_THREADS
25616 PyEval_RestoreThread(_save);
25617 PyErr_SetString(PyExc_RuntimeError, e.
what());
25620 Py_END_ALLOW_THREADS
25622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RemapDimensionsTransform, SWIG_POINTER_NEW | 0 );
25629 SWIGINTERN PyObject *_wrap_RemapDimensionsTransform_apply_noalloc(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25630 PyObject *resultobj = 0;
25632 faiss::VectorTransform::idx_t arg2 ;
25633 float *arg3 = (
float *) 0 ;
25634 float *arg4 = (
float *) 0 ;
25643 PyObject * obj0 = 0 ;
25644 PyObject * obj1 = 0 ;
25645 PyObject * obj2 = 0 ;
25646 PyObject * obj3 = 0 ;
25648 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:RemapDimensionsTransform_apply_noalloc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RemapDimensionsTransform, 0 | 0 );
25650 if (!SWIG_IsOK(res1)) {
25651 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RemapDimensionsTransform_apply_noalloc" "', argument " "1"" of type '" "faiss::RemapDimensionsTransform const *""'");
25654 ecode2 = SWIG_AsVal_long(obj1, &val2);
25655 if (!SWIG_IsOK(ecode2)) {
25656 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RemapDimensionsTransform_apply_noalloc" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
25658 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
25659 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
25660 if (!SWIG_IsOK(res3)) {
25661 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "RemapDimensionsTransform_apply_noalloc" "', argument " "3"" of type '" "float const *""'");
25663 arg3 =
reinterpret_cast< float *
>(argp3);
25664 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
25665 if (!SWIG_IsOK(res4)) {
25666 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "RemapDimensionsTransform_apply_noalloc" "', argument " "4"" of type '" "float *""'");
25668 arg4 =
reinterpret_cast< float *
>(argp4);
25670 Py_BEGIN_ALLOW_THREADS
25674 PyEval_RestoreThread(_save);
25675 PyErr_SetString(PyExc_RuntimeError, e.
what());
25678 Py_END_ALLOW_THREADS
25680 resultobj = SWIG_Py_Void();
25687 SWIGINTERN PyObject *_wrap_RemapDimensionsTransform_reverse_transform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25688 PyObject *resultobj = 0;
25690 faiss::VectorTransform::idx_t arg2 ;
25691 float *arg3 = (
float *) 0 ;
25692 float *arg4 = (
float *) 0 ;
25701 PyObject * obj0 = 0 ;
25702 PyObject * obj1 = 0 ;
25703 PyObject * obj2 = 0 ;
25704 PyObject * obj3 = 0 ;
25706 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:RemapDimensionsTransform_reverse_transform",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RemapDimensionsTransform, 0 | 0 );
25708 if (!SWIG_IsOK(res1)) {
25709 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RemapDimensionsTransform_reverse_transform" "', argument " "1"" of type '" "faiss::RemapDimensionsTransform const *""'");
25712 ecode2 = SWIG_AsVal_long(obj1, &val2);
25713 if (!SWIG_IsOK(ecode2)) {
25714 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RemapDimensionsTransform_reverse_transform" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
25716 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
25717 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
25718 if (!SWIG_IsOK(res3)) {
25719 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "RemapDimensionsTransform_reverse_transform" "', argument " "3"" of type '" "float const *""'");
25721 arg3 =
reinterpret_cast< float *
>(argp3);
25722 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
25723 if (!SWIG_IsOK(res4)) {
25724 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "RemapDimensionsTransform_reverse_transform" "', argument " "4"" of type '" "float *""'");
25726 arg4 =
reinterpret_cast< float *
>(argp4);
25728 Py_BEGIN_ALLOW_THREADS
25732 PyEval_RestoreThread(_save);
25733 PyErr_SetString(PyExc_RuntimeError, e.
what());
25736 Py_END_ALLOW_THREADS
25738 resultobj = SWIG_Py_Void();
25745 SWIGINTERN PyObject *_wrap_new_RemapDimensionsTransform__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25746 PyObject *resultobj = 0;
25749 if (!PyArg_ParseTuple(args,(
char *)
":new_RemapDimensionsTransform")) SWIG_fail;
25751 Py_BEGIN_ALLOW_THREADS
25755 PyEval_RestoreThread(_save);
25756 PyErr_SetString(PyExc_RuntimeError, e.
what());
25759 Py_END_ALLOW_THREADS
25761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RemapDimensionsTransform, SWIG_POINTER_NEW | 0 );
25768 SWIGINTERN PyObject *_wrap_new_RemapDimensionsTransform(PyObject *
self, PyObject *args) {
25770 PyObject *argv[4] = {
25775 if (!PyTuple_Check(args)) SWIG_fail;
25776 argc = args ? PyObject_Length(args) : 0;
25777 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
25778 argv[ii] = PyTuple_GET_ITEM(args,ii);
25781 return _wrap_new_RemapDimensionsTransform__SWIG_3(
self, args);
25786 int res = SWIG_AsVal_int(argv[0], NULL);
25787 _v = SWIG_CheckState(res);
25791 int res = SWIG_AsVal_int(argv[1], NULL);
25792 _v = SWIG_CheckState(res);
25795 return _wrap_new_RemapDimensionsTransform__SWIG_2(
self, args);
25802 int res = SWIG_AsVal_int(argv[0], NULL);
25803 _v = SWIG_CheckState(res);
25807 int res = SWIG_AsVal_int(argv[1], NULL);
25808 _v = SWIG_CheckState(res);
25812 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
25813 _v = SWIG_CheckState(res);
25815 return _wrap_new_RemapDimensionsTransform__SWIG_0(
self, args);
25823 int res = SWIG_AsVal_int(argv[0], NULL);
25824 _v = SWIG_CheckState(res);
25828 int res = SWIG_AsVal_int(argv[1], NULL);
25829 _v = SWIG_CheckState(res);
25833 int res = SWIG_AsVal_bool(argv[2], NULL);
25834 _v = SWIG_CheckState(res);
25837 return _wrap_new_RemapDimensionsTransform__SWIG_1(
self, args);
25844 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_RemapDimensionsTransform'.\n"
25845 " Possible C/C++ prototypes are:\n"
25846 " faiss::RemapDimensionsTransform::RemapDimensionsTransform(int,int,int const *)\n"
25847 " faiss::RemapDimensionsTransform::RemapDimensionsTransform(int,int,bool)\n"
25848 " faiss::RemapDimensionsTransform::RemapDimensionsTransform(int,int)\n"
25849 " faiss::RemapDimensionsTransform::RemapDimensionsTransform()\n");
25854 SWIGINTERN PyObject *_wrap_delete_RemapDimensionsTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25855 PyObject *resultobj = 0;
25859 PyObject * obj0 = 0 ;
25861 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RemapDimensionsTransform",&obj0)) SWIG_fail;
25862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RemapDimensionsTransform, SWIG_POINTER_DISOWN | 0 );
25863 if (!SWIG_IsOK(res1)) {
25864 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RemapDimensionsTransform" "', argument " "1"" of type '" "faiss::RemapDimensionsTransform *""'");
25868 resultobj = SWIG_Py_Void();
25875 SWIGINTERN PyObject *RemapDimensionsTransform_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25877 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
25878 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__RemapDimensionsTransform, SWIG_NewClientData(obj));
25879 return SWIG_Py_Void();
25882 SWIGINTERN PyObject *_wrap_NormalizationTransform_norm_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25883 PyObject *resultobj = 0;
25890 PyObject * obj0 = 0 ;
25891 PyObject * obj1 = 0 ;
25893 if (!PyArg_ParseTuple(args,(
char *)
"OO:NormalizationTransform_norm_set",&obj0,&obj1)) SWIG_fail;
25894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__NormalizationTransform, 0 | 0 );
25895 if (!SWIG_IsOK(res1)) {
25896 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "NormalizationTransform_norm_set" "', argument " "1"" of type '" "faiss::NormalizationTransform *""'");
25899 ecode2 = SWIG_AsVal_float(obj1, &val2);
25900 if (!SWIG_IsOK(ecode2)) {
25901 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "NormalizationTransform_norm_set" "', argument " "2"" of type '" "float""'");
25903 arg2 =
static_cast< float >(val2);
25904 if (arg1) (arg1)->norm = arg2;
25905 resultobj = SWIG_Py_Void();
25912 SWIGINTERN PyObject *_wrap_NormalizationTransform_norm_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25913 PyObject *resultobj = 0;
25917 PyObject * obj0 = 0 ;
25920 if (!PyArg_ParseTuple(args,(
char *)
"O:NormalizationTransform_norm_get",&obj0)) SWIG_fail;
25921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__NormalizationTransform, 0 | 0 );
25922 if (!SWIG_IsOK(res1)) {
25923 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "NormalizationTransform_norm_get" "', argument " "1"" of type '" "faiss::NormalizationTransform *""'");
25926 result = (float) ((arg1)->norm);
25927 resultobj = SWIG_From_float(static_cast< float >(result));
25934 SWIGINTERN PyObject *_wrap_new_NormalizationTransform__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25935 PyObject *resultobj = 0;
25942 PyObject * obj0 = 0 ;
25943 PyObject * obj1 = 0 ;
25946 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_NormalizationTransform",&obj0,&obj1)) SWIG_fail;
25947 ecode1 = SWIG_AsVal_int(obj0, &val1);
25948 if (!SWIG_IsOK(ecode1)) {
25949 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_NormalizationTransform" "', argument " "1"" of type '" "int""'");
25951 arg1 =
static_cast< int >(val1);
25952 ecode2 = SWIG_AsVal_float(obj1, &val2);
25953 if (!SWIG_IsOK(ecode2)) {
25954 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_NormalizationTransform" "', argument " "2"" of type '" "float""'");
25956 arg2 =
static_cast< float >(val2);
25958 Py_BEGIN_ALLOW_THREADS
25962 PyEval_RestoreThread(_save);
25963 PyErr_SetString(PyExc_RuntimeError, e.
what());
25966 Py_END_ALLOW_THREADS
25968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__NormalizationTransform, SWIG_POINTER_NEW | 0 );
25975 SWIGINTERN PyObject *_wrap_new_NormalizationTransform__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25976 PyObject *resultobj = 0;
25980 PyObject * obj0 = 0 ;
25983 if (!PyArg_ParseTuple(args,(
char *)
"O:new_NormalizationTransform",&obj0)) SWIG_fail;
25984 ecode1 = SWIG_AsVal_int(obj0, &val1);
25985 if (!SWIG_IsOK(ecode1)) {
25986 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_NormalizationTransform" "', argument " "1"" of type '" "int""'");
25988 arg1 =
static_cast< int >(val1);
25990 Py_BEGIN_ALLOW_THREADS
25994 PyEval_RestoreThread(_save);
25995 PyErr_SetString(PyExc_RuntimeError, e.
what());
25998 Py_END_ALLOW_THREADS
26000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__NormalizationTransform, SWIG_POINTER_NEW | 0 );
26007 SWIGINTERN PyObject *_wrap_new_NormalizationTransform__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26008 PyObject *resultobj = 0;
26011 if (!PyArg_ParseTuple(args,(
char *)
":new_NormalizationTransform")) SWIG_fail;
26013 Py_BEGIN_ALLOW_THREADS
26017 PyEval_RestoreThread(_save);
26018 PyErr_SetString(PyExc_RuntimeError, e.
what());
26021 Py_END_ALLOW_THREADS
26023 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__NormalizationTransform, SWIG_POINTER_NEW | 0 );
26030 SWIGINTERN PyObject *_wrap_new_NormalizationTransform(PyObject *
self, PyObject *args) {
26032 PyObject *argv[3] = {
26037 if (!PyTuple_Check(args)) SWIG_fail;
26038 argc = args ? PyObject_Length(args) : 0;
26039 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
26040 argv[ii] = PyTuple_GET_ITEM(args,ii);
26043 return _wrap_new_NormalizationTransform__SWIG_2(
self, args);
26048 int res = SWIG_AsVal_int(argv[0], NULL);
26049 _v = SWIG_CheckState(res);
26052 return _wrap_new_NormalizationTransform__SWIG_1(
self, args);
26058 int res = SWIG_AsVal_int(argv[0], NULL);
26059 _v = SWIG_CheckState(res);
26063 int res = SWIG_AsVal_float(argv[1], NULL);
26064 _v = SWIG_CheckState(res);
26067 return _wrap_new_NormalizationTransform__SWIG_0(
self, args);
26073 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_NormalizationTransform'.\n"
26074 " Possible C/C++ prototypes are:\n"
26075 " faiss::NormalizationTransform::NormalizationTransform(int,float)\n"
26076 " faiss::NormalizationTransform::NormalizationTransform(int)\n"
26077 " faiss::NormalizationTransform::NormalizationTransform()\n");
26082 SWIGINTERN PyObject *_wrap_NormalizationTransform_apply_noalloc(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26083 PyObject *resultobj = 0;
26085 faiss::VectorTransform::idx_t arg2 ;
26086 float *arg3 = (
float *) 0 ;
26087 float *arg4 = (
float *) 0 ;
26096 PyObject * obj0 = 0 ;
26097 PyObject * obj1 = 0 ;
26098 PyObject * obj2 = 0 ;
26099 PyObject * obj3 = 0 ;
26101 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:NormalizationTransform_apply_noalloc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__NormalizationTransform, 0 | 0 );
26103 if (!SWIG_IsOK(res1)) {
26104 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "NormalizationTransform_apply_noalloc" "', argument " "1"" of type '" "faiss::NormalizationTransform const *""'");
26107 ecode2 = SWIG_AsVal_long(obj1, &val2);
26108 if (!SWIG_IsOK(ecode2)) {
26109 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "NormalizationTransform_apply_noalloc" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
26111 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
26112 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
26113 if (!SWIG_IsOK(res3)) {
26114 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "NormalizationTransform_apply_noalloc" "', argument " "3"" of type '" "float const *""'");
26116 arg3 =
reinterpret_cast< float *
>(argp3);
26117 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
26118 if (!SWIG_IsOK(res4)) {
26119 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "NormalizationTransform_apply_noalloc" "', argument " "4"" of type '" "float *""'");
26121 arg4 =
reinterpret_cast< float *
>(argp4);
26123 Py_BEGIN_ALLOW_THREADS
26127 PyEval_RestoreThread(_save);
26128 PyErr_SetString(PyExc_RuntimeError, e.
what());
26131 Py_END_ALLOW_THREADS
26133 resultobj = SWIG_Py_Void();
26140 SWIGINTERN PyObject *_wrap_NormalizationTransform_reverse_transform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26141 PyObject *resultobj = 0;
26143 faiss::VectorTransform::idx_t arg2 ;
26144 float *arg3 = (
float *) 0 ;
26145 float *arg4 = (
float *) 0 ;
26154 PyObject * obj0 = 0 ;
26155 PyObject * obj1 = 0 ;
26156 PyObject * obj2 = 0 ;
26157 PyObject * obj3 = 0 ;
26159 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:NormalizationTransform_reverse_transform",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__NormalizationTransform, 0 | 0 );
26161 if (!SWIG_IsOK(res1)) {
26162 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "NormalizationTransform_reverse_transform" "', argument " "1"" of type '" "faiss::NormalizationTransform const *""'");
26165 ecode2 = SWIG_AsVal_long(obj1, &val2);
26166 if (!SWIG_IsOK(ecode2)) {
26167 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "NormalizationTransform_reverse_transform" "', argument " "2"" of type '" "faiss::VectorTransform::idx_t""'");
26169 arg2 =
static_cast< faiss::VectorTransform::idx_t
>(val2);
26170 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
26171 if (!SWIG_IsOK(res3)) {
26172 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "NormalizationTransform_reverse_transform" "', argument " "3"" of type '" "float const *""'");
26174 arg3 =
reinterpret_cast< float *
>(argp3);
26175 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
26176 if (!SWIG_IsOK(res4)) {
26177 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "NormalizationTransform_reverse_transform" "', argument " "4"" of type '" "float *""'");
26179 arg4 =
reinterpret_cast< float *
>(argp4);
26181 Py_BEGIN_ALLOW_THREADS
26185 PyEval_RestoreThread(_save);
26186 PyErr_SetString(PyExc_RuntimeError, e.
what());
26189 Py_END_ALLOW_THREADS
26191 resultobj = SWIG_Py_Void();
26198 SWIGINTERN PyObject *_wrap_delete_NormalizationTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26199 PyObject *resultobj = 0;
26203 PyObject * obj0 = 0 ;
26205 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_NormalizationTransform",&obj0)) SWIG_fail;
26206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__NormalizationTransform, SWIG_POINTER_DISOWN | 0 );
26207 if (!SWIG_IsOK(res1)) {
26208 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_NormalizationTransform" "', argument " "1"" of type '" "faiss::NormalizationTransform *""'");
26212 resultobj = SWIG_Py_Void();
26219 SWIGINTERN PyObject *NormalizationTransform_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26221 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
26222 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__NormalizationTransform, SWIG_NewClientData(obj));
26223 return SWIG_Py_Void();
26226 SWIGINTERN PyObject *_wrap_IndexPreTransform_chain_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26227 PyObject *resultobj = 0;
26229 std::vector< faiss::VectorTransform * > *arg2 = (std::vector< faiss::VectorTransform * > *) 0 ;
26234 PyObject * obj0 = 0 ;
26235 PyObject * obj1 = 0 ;
26237 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPreTransform_chain_set",&obj0,&obj1)) SWIG_fail;
26238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26239 if (!SWIG_IsOK(res1)) {
26240 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_chain_set" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
26243 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
26244 if (!SWIG_IsOK(res2)) {
26245 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPreTransform_chain_set" "', argument " "2"" of type '" "std::vector< faiss::VectorTransform * > *""'");
26247 arg2 =
reinterpret_cast< std::vector< faiss::VectorTransform * > *
>(argp2);
26248 if (arg1) (arg1)->chain = *arg2;
26249 resultobj = SWIG_Py_Void();
26256 SWIGINTERN PyObject *_wrap_IndexPreTransform_chain_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26257 PyObject *resultobj = 0;
26261 PyObject * obj0 = 0 ;
26262 std::vector< faiss::VectorTransform * > *result = 0 ;
26264 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPreTransform_chain_get",&obj0)) SWIG_fail;
26265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26266 if (!SWIG_IsOK(res1)) {
26267 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_chain_get" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
26270 result = (std::vector< faiss::VectorTransform * > *)& ((arg1)->chain);
26271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__VectorTransform_p_t, 0 | 0 );
26278 SWIGINTERN PyObject *_wrap_IndexPreTransform_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26279 PyObject *resultobj = 0;
26286 PyObject * obj0 = 0 ;
26287 PyObject * obj1 = 0 ;
26289 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPreTransform_index_set",&obj0,&obj1)) SWIG_fail;
26290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26291 if (!SWIG_IsOK(res1)) {
26292 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_index_set" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
26295 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
26296 if (!SWIG_IsOK(res2)) {
26297 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPreTransform_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
26300 if (arg1) (arg1)->index = arg2;
26301 resultobj = SWIG_Py_Void();
26308 SWIGINTERN PyObject *_wrap_IndexPreTransform_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26309 PyObject *resultobj = 0;
26313 PyObject * obj0 = 0 ;
26316 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPreTransform_index_get",&obj0)) SWIG_fail;
26317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26318 if (!SWIG_IsOK(res1)) {
26319 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_index_get" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
26323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
26330 SWIGINTERN PyObject *_wrap_IndexPreTransform_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26331 PyObject *resultobj = 0;
26338 PyObject * obj0 = 0 ;
26339 PyObject * obj1 = 0 ;
26341 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPreTransform_own_fields_set",&obj0,&obj1)) SWIG_fail;
26342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26343 if (!SWIG_IsOK(res1)) {
26344 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_own_fields_set" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
26347 ecode2 = SWIG_AsVal_bool(obj1, &val2);
26348 if (!SWIG_IsOK(ecode2)) {
26349 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_own_fields_set" "', argument " "2"" of type '" "bool""'");
26351 arg2 =
static_cast< bool >(val2);
26352 if (arg1) (arg1)->own_fields = arg2;
26353 resultobj = SWIG_Py_Void();
26360 SWIGINTERN PyObject *_wrap_IndexPreTransform_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26361 PyObject *resultobj = 0;
26365 PyObject * obj0 = 0 ;
26368 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPreTransform_own_fields_get",&obj0)) SWIG_fail;
26369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26370 if (!SWIG_IsOK(res1)) {
26371 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_own_fields_get" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
26374 result = (bool) ((arg1)->own_fields);
26375 resultobj = SWIG_From_bool(static_cast< bool >(result));
26382 SWIGINTERN PyObject *_wrap_new_IndexPreTransform__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26383 PyObject *resultobj = 0;
26387 PyObject * obj0 = 0 ;
26390 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexPreTransform",&obj0)) SWIG_fail;
26391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
26392 if (!SWIG_IsOK(res1)) {
26393 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexPreTransform" "', argument " "1"" of type '" "faiss::Index *""'");
26397 Py_BEGIN_ALLOW_THREADS
26401 PyEval_RestoreThread(_save);
26402 PyErr_SetString(PyExc_RuntimeError, e.
what());
26405 Py_END_ALLOW_THREADS
26407 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexPreTransform, SWIG_POINTER_NEW | 0 );
26414 SWIGINTERN PyObject *_wrap_new_IndexPreTransform__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26415 PyObject *resultobj = 0;
26418 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexPreTransform")) SWIG_fail;
26420 Py_BEGIN_ALLOW_THREADS
26424 PyEval_RestoreThread(_save);
26425 PyErr_SetString(PyExc_RuntimeError, e.
what());
26428 Py_END_ALLOW_THREADS
26430 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexPreTransform, SWIG_POINTER_NEW | 0 );
26437 SWIGINTERN PyObject *_wrap_new_IndexPreTransform__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26438 PyObject *resultobj = 0;
26445 PyObject * obj0 = 0 ;
26446 PyObject * obj1 = 0 ;
26449 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexPreTransform",&obj0,&obj1)) SWIG_fail;
26450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
26451 if (!SWIG_IsOK(res1)) {
26452 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexPreTransform" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
26455 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
26456 if (!SWIG_IsOK(res2)) {
26457 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_IndexPreTransform" "', argument " "2"" of type '" "faiss::Index *""'");
26461 Py_BEGIN_ALLOW_THREADS
26465 PyEval_RestoreThread(_save);
26466 PyErr_SetString(PyExc_RuntimeError, e.
what());
26469 Py_END_ALLOW_THREADS
26471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexPreTransform, SWIG_POINTER_NEW | 0 );
26478 SWIGINTERN PyObject *_wrap_new_IndexPreTransform(PyObject *
self, PyObject *args) {
26480 PyObject *argv[3] = {
26485 if (!PyTuple_Check(args)) SWIG_fail;
26486 argc = args ? PyObject_Length(args) : 0;
26487 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
26488 argv[ii] = PyTuple_GET_ITEM(args,ii);
26491 return _wrap_new_IndexPreTransform__SWIG_1(
self, args);
26496 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
26497 _v = SWIG_CheckState(res);
26499 return _wrap_new_IndexPreTransform__SWIG_0(
self, args);
26505 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__VectorTransform, 0);
26506 _v = SWIG_CheckState(res);
26509 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__Index, 0);
26510 _v = SWIG_CheckState(res);
26512 return _wrap_new_IndexPreTransform__SWIG_2(
self, args);
26518 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexPreTransform'.\n"
26519 " Possible C/C++ prototypes are:\n"
26520 " faiss::IndexPreTransform::IndexPreTransform(faiss::Index *)\n"
26521 " faiss::IndexPreTransform::IndexPreTransform()\n"
26522 " faiss::IndexPreTransform::IndexPreTransform(faiss::VectorTransform *,faiss::Index *)\n");
26527 SWIGINTERN PyObject *_wrap_IndexPreTransform_prepend_transform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26528 PyObject *resultobj = 0;
26535 PyObject * obj0 = 0 ;
26536 PyObject * obj1 = 0 ;
26538 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPreTransform_prepend_transform",&obj0,&obj1)) SWIG_fail;
26539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26540 if (!SWIG_IsOK(res1)) {
26541 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_prepend_transform" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
26544 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
26545 if (!SWIG_IsOK(res2)) {
26546 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPreTransform_prepend_transform" "', argument " "2"" of type '" "faiss::VectorTransform *""'");
26550 Py_BEGIN_ALLOW_THREADS
26552 (arg1)->prepend_transform(arg2);
26554 PyEval_RestoreThread(_save);
26555 PyErr_SetString(PyExc_RuntimeError, e.
what());
26558 Py_END_ALLOW_THREADS
26560 resultobj = SWIG_Py_Void();
26567 SWIGINTERN PyObject *_wrap_IndexPreTransform_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26568 PyObject *resultobj = 0;
26571 float *arg3 = (
float *) 0 ;
26578 PyObject * obj0 = 0 ;
26579 PyObject * obj1 = 0 ;
26580 PyObject * obj2 = 0 ;
26582 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexPreTransform_train",&obj0,&obj1,&obj2)) SWIG_fail;
26583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26584 if (!SWIG_IsOK(res1)) {
26585 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_train" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
26588 ecode2 = SWIG_AsVal_long(obj1, &val2);
26589 if (!SWIG_IsOK(ecode2)) {
26590 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
26593 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
26594 if (!SWIG_IsOK(res3)) {
26595 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_train" "', argument " "3"" of type '" "float const *""'");
26597 arg3 =
reinterpret_cast< float *
>(argp3);
26599 Py_BEGIN_ALLOW_THREADS
26601 (arg1)->train(arg2,(
float const *)arg3);
26603 PyEval_RestoreThread(_save);
26604 PyErr_SetString(PyExc_RuntimeError, e.
what());
26607 Py_END_ALLOW_THREADS
26609 resultobj = SWIG_Py_Void();
26616 SWIGINTERN PyObject *_wrap_IndexPreTransform_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26617 PyObject *resultobj = 0;
26620 float *arg3 = (
float *) 0 ;
26627 PyObject * obj0 = 0 ;
26628 PyObject * obj1 = 0 ;
26629 PyObject * obj2 = 0 ;
26631 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexPreTransform_add",&obj0,&obj1,&obj2)) SWIG_fail;
26632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26633 if (!SWIG_IsOK(res1)) {
26634 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_add" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
26637 ecode2 = SWIG_AsVal_long(obj1, &val2);
26638 if (!SWIG_IsOK(ecode2)) {
26639 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
26642 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
26643 if (!SWIG_IsOK(res3)) {
26644 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_add" "', argument " "3"" of type '" "float const *""'");
26646 arg3 =
reinterpret_cast< float *
>(argp3);
26648 Py_BEGIN_ALLOW_THREADS
26650 (arg1)->add(arg2,(
float const *)arg3);
26652 PyEval_RestoreThread(_save);
26653 PyErr_SetString(PyExc_RuntimeError, e.
what());
26656 Py_END_ALLOW_THREADS
26658 resultobj = SWIG_Py_Void();
26665 SWIGINTERN PyObject *_wrap_IndexPreTransform_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26666 PyObject *resultobj = 0;
26669 float *arg3 = (
float *) 0 ;
26670 long *arg4 = (
long *) 0 ;
26679 PyObject * obj0 = 0 ;
26680 PyObject * obj1 = 0 ;
26681 PyObject * obj2 = 0 ;
26682 PyObject * obj3 = 0 ;
26684 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexPreTransform_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26686 if (!SWIG_IsOK(res1)) {
26687 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_add_with_ids" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
26690 ecode2 = SWIG_AsVal_long(obj1, &val2);
26691 if (!SWIG_IsOK(ecode2)) {
26692 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
26695 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
26696 if (!SWIG_IsOK(res3)) {
26697 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_add_with_ids" "', argument " "3"" of type '" "float const *""'");
26699 arg3 =
reinterpret_cast< float *
>(argp3);
26700 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
26701 if (!SWIG_IsOK(res4)) {
26702 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexPreTransform_add_with_ids" "', argument " "4"" of type '" "long const *""'");
26704 arg4 =
reinterpret_cast< long *
>(argp4);
26706 Py_BEGIN_ALLOW_THREADS
26708 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
26710 PyEval_RestoreThread(_save);
26711 PyErr_SetString(PyExc_RuntimeError, e.
what());
26714 Py_END_ALLOW_THREADS
26716 resultobj = SWIG_Py_Void();
26723 SWIGINTERN PyObject *_wrap_IndexPreTransform_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26724 PyObject *resultobj = 0;
26728 PyObject * obj0 = 0 ;
26730 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPreTransform_reset",&obj0)) SWIG_fail;
26731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26732 if (!SWIG_IsOK(res1)) {
26733 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_reset" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
26737 Py_BEGIN_ALLOW_THREADS
26741 PyEval_RestoreThread(_save);
26742 PyErr_SetString(PyExc_RuntimeError, e.
what());
26745 Py_END_ALLOW_THREADS
26747 resultobj = SWIG_Py_Void();
26754 SWIGINTERN PyObject *_wrap_IndexPreTransform_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26755 PyObject *resultobj = 0;
26762 PyObject * obj0 = 0 ;
26763 PyObject * obj1 = 0 ;
26766 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPreTransform_remove_ids",&obj0,&obj1)) SWIG_fail;
26767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26768 if (!SWIG_IsOK(res1)) {
26769 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_remove_ids" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
26772 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
26773 if (!SWIG_IsOK(res2)) {
26774 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPreTransform_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
26777 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexPreTransform_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
26781 Py_BEGIN_ALLOW_THREADS
26785 PyEval_RestoreThread(_save);
26786 PyErr_SetString(PyExc_RuntimeError, e.
what());
26789 Py_END_ALLOW_THREADS
26791 resultobj = SWIG_From_long(static_cast< long >(result));
26798 SWIGINTERN PyObject *_wrap_IndexPreTransform_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26799 PyObject *resultobj = 0;
26802 float *arg3 = (
float *) 0 ;
26804 float *arg5 = (
float *) 0 ;
26818 PyObject * obj0 = 0 ;
26819 PyObject * obj1 = 0 ;
26820 PyObject * obj2 = 0 ;
26821 PyObject * obj3 = 0 ;
26822 PyObject * obj4 = 0 ;
26823 PyObject * obj5 = 0 ;
26825 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexPreTransform_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26827 if (!SWIG_IsOK(res1)) {
26828 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_search" "', argument " "1"" of type '" "faiss::IndexPreTransform const *""'");
26831 ecode2 = SWIG_AsVal_long(obj1, &val2);
26832 if (!SWIG_IsOK(ecode2)) {
26833 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
26836 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
26837 if (!SWIG_IsOK(res3)) {
26838 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_search" "', argument " "3"" of type '" "float const *""'");
26840 arg3 =
reinterpret_cast< float *
>(argp3);
26841 ecode4 = SWIG_AsVal_long(obj3, &val4);
26842 if (!SWIG_IsOK(ecode4)) {
26843 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexPreTransform_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
26846 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
26847 if (!SWIG_IsOK(res5)) {
26848 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexPreTransform_search" "', argument " "5"" of type '" "float *""'");
26850 arg5 =
reinterpret_cast< float *
>(argp5);
26851 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
26852 if (!SWIG_IsOK(res6)) {
26853 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexPreTransform_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
26857 Py_BEGIN_ALLOW_THREADS
26861 PyEval_RestoreThread(_save);
26862 PyErr_SetString(PyExc_RuntimeError, e.
what());
26865 Py_END_ALLOW_THREADS
26867 resultobj = SWIG_Py_Void();
26874 SWIGINTERN PyObject *_wrap_IndexPreTransform_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26875 PyObject *resultobj = 0;
26878 float *arg3 = (
float *) 0 ;
26885 PyObject * obj0 = 0 ;
26886 PyObject * obj1 = 0 ;
26887 PyObject * obj2 = 0 ;
26889 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexPreTransform_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
26890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26891 if (!SWIG_IsOK(res1)) {
26892 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_reconstruct" "', argument " "1"" of type '" "faiss::IndexPreTransform const *""'");
26895 ecode2 = SWIG_AsVal_long(obj1, &val2);
26896 if (!SWIG_IsOK(ecode2)) {
26897 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
26900 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
26901 if (!SWIG_IsOK(res3)) {
26902 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_reconstruct" "', argument " "3"" of type '" "float *""'");
26904 arg3 =
reinterpret_cast< float *
>(argp3);
26906 Py_BEGIN_ALLOW_THREADS
26910 PyEval_RestoreThread(_save);
26911 PyErr_SetString(PyExc_RuntimeError, e.
what());
26914 Py_END_ALLOW_THREADS
26916 resultobj = SWIG_Py_Void();
26923 SWIGINTERN PyObject *_wrap_IndexPreTransform_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26924 PyObject *resultobj = 0;
26928 float *arg4 = (
float *) 0 ;
26937 PyObject * obj0 = 0 ;
26938 PyObject * obj1 = 0 ;
26939 PyObject * obj2 = 0 ;
26940 PyObject * obj3 = 0 ;
26942 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexPreTransform_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
26944 if (!SWIG_IsOK(res1)) {
26945 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_reconstruct_n" "', argument " "1"" of type '" "faiss::IndexPreTransform const *""'");
26948 ecode2 = SWIG_AsVal_long(obj1, &val2);
26949 if (!SWIG_IsOK(ecode2)) {
26950 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_reconstruct_n" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
26953 ecode3 = SWIG_AsVal_long(obj2, &val3);
26954 if (!SWIG_IsOK(ecode3)) {
26955 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexPreTransform_reconstruct_n" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
26958 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
26959 if (!SWIG_IsOK(res4)) {
26960 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexPreTransform_reconstruct_n" "', argument " "4"" of type '" "float *""'");
26962 arg4 =
reinterpret_cast< float *
>(argp4);
26964 Py_BEGIN_ALLOW_THREADS
26968 PyEval_RestoreThread(_save);
26969 PyErr_SetString(PyExc_RuntimeError, e.
what());
26972 Py_END_ALLOW_THREADS
26974 resultobj = SWIG_Py_Void();
26981 SWIGINTERN PyObject *_wrap_IndexPreTransform_search_and_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
26982 PyObject *resultobj = 0;
26985 float *arg3 = (
float *) 0 ;
26987 float *arg5 = (
float *) 0 ;
26989 float *arg7 = (
float *) 0 ;
27004 PyObject * obj0 = 0 ;
27005 PyObject * obj1 = 0 ;
27006 PyObject * obj2 = 0 ;
27007 PyObject * obj3 = 0 ;
27008 PyObject * obj4 = 0 ;
27009 PyObject * obj5 = 0 ;
27010 PyObject * obj6 = 0 ;
27012 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:IndexPreTransform_search_and_reconstruct",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
27014 if (!SWIG_IsOK(res1)) {
27015 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_search_and_reconstruct" "', argument " "1"" of type '" "faiss::IndexPreTransform const *""'");
27018 ecode2 = SWIG_AsVal_long(obj1, &val2);
27019 if (!SWIG_IsOK(ecode2)) {
27020 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_search_and_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
27023 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
27024 if (!SWIG_IsOK(res3)) {
27025 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_search_and_reconstruct" "', argument " "3"" of type '" "float const *""'");
27027 arg3 =
reinterpret_cast< float *
>(argp3);
27028 ecode4 = SWIG_AsVal_long(obj3, &val4);
27029 if (!SWIG_IsOK(ecode4)) {
27030 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexPreTransform_search_and_reconstruct" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
27033 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
27034 if (!SWIG_IsOK(res5)) {
27035 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexPreTransform_search_and_reconstruct" "', argument " "5"" of type '" "float *""'");
27037 arg5 =
reinterpret_cast< float *
>(argp5);
27038 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
27039 if (!SWIG_IsOK(res6)) {
27040 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexPreTransform_search_and_reconstruct" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
27043 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
27044 if (!SWIG_IsOK(res7)) {
27045 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexPreTransform_search_and_reconstruct" "', argument " "7"" of type '" "float *""'");
27047 arg7 =
reinterpret_cast< float *
>(argp7);
27049 Py_BEGIN_ALLOW_THREADS
27053 PyEval_RestoreThread(_save);
27054 PyErr_SetString(PyExc_RuntimeError, e.
what());
27057 Py_END_ALLOW_THREADS
27059 resultobj = SWIG_Py_Void();
27066 SWIGINTERN PyObject *_wrap_IndexPreTransform_apply_chain(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27067 PyObject *resultobj = 0;
27070 float *arg3 = (
float *) 0 ;
27077 PyObject * obj0 = 0 ;
27078 PyObject * obj1 = 0 ;
27079 PyObject * obj2 = 0 ;
27080 float *result = 0 ;
27082 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexPreTransform_apply_chain",&obj0,&obj1,&obj2)) SWIG_fail;
27083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
27084 if (!SWIG_IsOK(res1)) {
27085 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_apply_chain" "', argument " "1"" of type '" "faiss::IndexPreTransform const *""'");
27088 ecode2 = SWIG_AsVal_long(obj1, &val2);
27089 if (!SWIG_IsOK(ecode2)) {
27090 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_apply_chain" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
27093 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
27094 if (!SWIG_IsOK(res3)) {
27095 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_apply_chain" "', argument " "3"" of type '" "float const *""'");
27097 arg3 =
reinterpret_cast< float *
>(argp3);
27099 Py_BEGIN_ALLOW_THREADS
27103 PyEval_RestoreThread(_save);
27104 PyErr_SetString(PyExc_RuntimeError, e.
what());
27107 Py_END_ALLOW_THREADS
27109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
27116 SWIGINTERN PyObject *_wrap_IndexPreTransform_reverse_chain(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27117 PyObject *resultobj = 0;
27120 float *arg3 = (
float *) 0 ;
27121 float *arg4 = (
float *) 0 ;
27130 PyObject * obj0 = 0 ;
27131 PyObject * obj1 = 0 ;
27132 PyObject * obj2 = 0 ;
27133 PyObject * obj3 = 0 ;
27135 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexPreTransform_reverse_chain",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, 0 | 0 );
27137 if (!SWIG_IsOK(res1)) {
27138 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPreTransform_reverse_chain" "', argument " "1"" of type '" "faiss::IndexPreTransform const *""'");
27141 ecode2 = SWIG_AsVal_long(obj1, &val2);
27142 if (!SWIG_IsOK(ecode2)) {
27143 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPreTransform_reverse_chain" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
27146 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
27147 if (!SWIG_IsOK(res3)) {
27148 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPreTransform_reverse_chain" "', argument " "3"" of type '" "float const *""'");
27150 arg3 =
reinterpret_cast< float *
>(argp3);
27151 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
27152 if (!SWIG_IsOK(res4)) {
27153 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexPreTransform_reverse_chain" "', argument " "4"" of type '" "float *""'");
27155 arg4 =
reinterpret_cast< float *
>(argp4);
27157 Py_BEGIN_ALLOW_THREADS
27161 PyEval_RestoreThread(_save);
27162 PyErr_SetString(PyExc_RuntimeError, e.
what());
27165 Py_END_ALLOW_THREADS
27167 resultobj = SWIG_Py_Void();
27174 SWIGINTERN PyObject *_wrap_delete_IndexPreTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27175 PyObject *resultobj = 0;
27179 PyObject * obj0 = 0 ;
27181 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexPreTransform",&obj0)) SWIG_fail;
27182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPreTransform, SWIG_POINTER_DISOWN | 0 );
27183 if (!SWIG_IsOK(res1)) {
27184 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexPreTransform" "', argument " "1"" of type '" "faiss::IndexPreTransform *""'");
27188 Py_BEGIN_ALLOW_THREADS
27192 PyEval_RestoreThread(_save);
27193 PyErr_SetString(PyExc_RuntimeError, e.
what());
27196 Py_END_ALLOW_THREADS
27198 resultobj = SWIG_Py_Void();
27205 SWIGINTERN PyObject *IndexPreTransform_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27207 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
27208 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexPreTransform, SWIG_NewClientData(obj));
27209 return SWIG_Py_Void();
27212 SWIGINTERN PyObject *_wrap_IndexFlat_xb_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27213 PyObject *resultobj = 0;
27215 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
27220 PyObject * obj0 = 0 ;
27221 PyObject * obj1 = 0 ;
27223 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexFlat_xb_set",&obj0,&obj1)) SWIG_fail;
27224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
27225 if (!SWIG_IsOK(res1)) {
27226 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_xb_set" "', argument " "1"" of type '" "faiss::IndexFlat *""'");
27229 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
27230 if (!SWIG_IsOK(res2)) {
27231 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexFlat_xb_set" "', argument " "2"" of type '" "std::vector< float > *""'");
27233 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
27234 if (arg1) (arg1)->xb = *arg2;
27235 resultobj = SWIG_Py_Void();
27242 SWIGINTERN PyObject *_wrap_IndexFlat_xb_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27243 PyObject *resultobj = 0;
27247 PyObject * obj0 = 0 ;
27248 std::vector< float > *result = 0 ;
27250 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexFlat_xb_get",&obj0)) SWIG_fail;
27251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
27252 if (!SWIG_IsOK(res1)) {
27253 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_xb_get" "', argument " "1"" of type '" "faiss::IndexFlat *""'");
27256 result = (std::vector< float > *)& ((arg1)->xb);
27257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
27264 SWIGINTERN PyObject *_wrap_new_IndexFlat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27265 PyObject *resultobj = 0;
27272 PyObject * obj0 = 0 ;
27273 PyObject * obj1 = 0 ;
27276 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexFlat",&obj0,&obj1)) SWIG_fail;
27277 ecode1 = SWIG_AsVal_long(obj0, &val1);
27278 if (!SWIG_IsOK(ecode1)) {
27279 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexFlat" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
27282 ecode2 = SWIG_AsVal_int(obj1, &val2);
27283 if (!SWIG_IsOK(ecode2)) {
27284 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexFlat" "', argument " "2"" of type '" "faiss::MetricType""'");
27288 Py_BEGIN_ALLOW_THREADS
27292 PyEval_RestoreThread(_save);
27293 PyErr_SetString(PyExc_RuntimeError, e.
what());
27296 Py_END_ALLOW_THREADS
27298 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlat, SWIG_POINTER_NEW | 0 );
27305 SWIGINTERN PyObject *_wrap_new_IndexFlat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27306 PyObject *resultobj = 0;
27310 PyObject * obj0 = 0 ;
27313 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexFlat",&obj0)) SWIG_fail;
27314 ecode1 = SWIG_AsVal_long(obj0, &val1);
27315 if (!SWIG_IsOK(ecode1)) {
27316 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexFlat" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
27320 Py_BEGIN_ALLOW_THREADS
27324 PyEval_RestoreThread(_save);
27325 PyErr_SetString(PyExc_RuntimeError, e.
what());
27328 Py_END_ALLOW_THREADS
27330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlat, SWIG_POINTER_NEW | 0 );
27337 SWIGINTERN PyObject *_wrap_IndexFlat_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27338 PyObject *resultobj = 0;
27341 float *arg3 = (
float *) 0 ;
27348 PyObject * obj0 = 0 ;
27349 PyObject * obj1 = 0 ;
27350 PyObject * obj2 = 0 ;
27352 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexFlat_add",&obj0,&obj1,&obj2)) SWIG_fail;
27353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
27354 if (!SWIG_IsOK(res1)) {
27355 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_add" "', argument " "1"" of type '" "faiss::IndexFlat *""'");
27358 ecode2 = SWIG_AsVal_long(obj1, &val2);
27359 if (!SWIG_IsOK(ecode2)) {
27360 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
27363 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
27364 if (!SWIG_IsOK(res3)) {
27365 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlat_add" "', argument " "3"" of type '" "float const *""'");
27367 arg3 =
reinterpret_cast< float *
>(argp3);
27369 Py_BEGIN_ALLOW_THREADS
27371 (arg1)->add(arg2,(
float const *)arg3);
27373 PyEval_RestoreThread(_save);
27374 PyErr_SetString(PyExc_RuntimeError, e.
what());
27377 Py_END_ALLOW_THREADS
27379 resultobj = SWIG_Py_Void();
27386 SWIGINTERN PyObject *_wrap_IndexFlat_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27387 PyObject *resultobj = 0;
27391 PyObject * obj0 = 0 ;
27393 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexFlat_reset",&obj0)) SWIG_fail;
27394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
27395 if (!SWIG_IsOK(res1)) {
27396 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_reset" "', argument " "1"" of type '" "faiss::IndexFlat *""'");
27400 Py_BEGIN_ALLOW_THREADS
27404 PyEval_RestoreThread(_save);
27405 PyErr_SetString(PyExc_RuntimeError, e.
what());
27408 Py_END_ALLOW_THREADS
27410 resultobj = SWIG_Py_Void();
27417 SWIGINTERN PyObject *_wrap_IndexFlat_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27418 PyObject *resultobj = 0;
27421 float *arg3 = (
float *) 0 ;
27423 float *arg5 = (
float *) 0 ;
27437 PyObject * obj0 = 0 ;
27438 PyObject * obj1 = 0 ;
27439 PyObject * obj2 = 0 ;
27440 PyObject * obj3 = 0 ;
27441 PyObject * obj4 = 0 ;
27442 PyObject * obj5 = 0 ;
27444 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexFlat_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
27446 if (!SWIG_IsOK(res1)) {
27447 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_search" "', argument " "1"" of type '" "faiss::IndexFlat const *""'");
27450 ecode2 = SWIG_AsVal_long(obj1, &val2);
27451 if (!SWIG_IsOK(ecode2)) {
27452 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
27455 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
27456 if (!SWIG_IsOK(res3)) {
27457 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlat_search" "', argument " "3"" of type '" "float const *""'");
27459 arg3 =
reinterpret_cast< float *
>(argp3);
27460 ecode4 = SWIG_AsVal_long(obj3, &val4);
27461 if (!SWIG_IsOK(ecode4)) {
27462 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexFlat_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
27465 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
27466 if (!SWIG_IsOK(res5)) {
27467 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexFlat_search" "', argument " "5"" of type '" "float *""'");
27469 arg5 =
reinterpret_cast< float *
>(argp5);
27470 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
27471 if (!SWIG_IsOK(res6)) {
27472 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexFlat_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
27476 Py_BEGIN_ALLOW_THREADS
27478 ((
faiss::IndexFlat const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
27480 PyEval_RestoreThread(_save);
27481 PyErr_SetString(PyExc_RuntimeError, e.
what());
27484 Py_END_ALLOW_THREADS
27486 resultobj = SWIG_Py_Void();
27493 SWIGINTERN PyObject *_wrap_IndexFlat_range_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27494 PyObject *resultobj = 0;
27497 float *arg3 = (
float *) 0 ;
27510 PyObject * obj0 = 0 ;
27511 PyObject * obj1 = 0 ;
27512 PyObject * obj2 = 0 ;
27513 PyObject * obj3 = 0 ;
27514 PyObject * obj4 = 0 ;
27516 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexFlat_range_search",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
27518 if (!SWIG_IsOK(res1)) {
27519 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_range_search" "', argument " "1"" of type '" "faiss::IndexFlat const *""'");
27522 ecode2 = SWIG_AsVal_long(obj1, &val2);
27523 if (!SWIG_IsOK(ecode2)) {
27524 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat_range_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
27527 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
27528 if (!SWIG_IsOK(res3)) {
27529 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlat_range_search" "', argument " "3"" of type '" "float const *""'");
27531 arg3 =
reinterpret_cast< float *
>(argp3);
27532 ecode4 = SWIG_AsVal_float(obj3, &val4);
27533 if (!SWIG_IsOK(ecode4)) {
27534 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexFlat_range_search" "', argument " "4"" of type '" "float""'");
27536 arg4 =
static_cast< float >(val4);
27537 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
27538 if (!SWIG_IsOK(res5)) {
27539 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexFlat_range_search" "', argument " "5"" of type '" "faiss::RangeSearchResult *""'");
27543 Py_BEGIN_ALLOW_THREADS
27545 ((
faiss::IndexFlat const *)arg1)->range_search(arg2,(
float const *)arg3,arg4,arg5);
27547 PyEval_RestoreThread(_save);
27548 PyErr_SetString(PyExc_RuntimeError, e.
what());
27551 Py_END_ALLOW_THREADS
27553 resultobj = SWIG_Py_Void();
27560 SWIGINTERN PyObject *_wrap_IndexFlat_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27561 PyObject *resultobj = 0;
27564 float *arg3 = (
float *) 0 ;
27571 PyObject * obj0 = 0 ;
27572 PyObject * obj1 = 0 ;
27573 PyObject * obj2 = 0 ;
27575 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexFlat_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
27576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
27577 if (!SWIG_IsOK(res1)) {
27578 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_reconstruct" "', argument " "1"" of type '" "faiss::IndexFlat const *""'");
27581 ecode2 = SWIG_AsVal_long(obj1, &val2);
27582 if (!SWIG_IsOK(ecode2)) {
27583 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
27586 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
27587 if (!SWIG_IsOK(res3)) {
27588 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlat_reconstruct" "', argument " "3"" of type '" "float *""'");
27590 arg3 =
reinterpret_cast< float *
>(argp3);
27592 Py_BEGIN_ALLOW_THREADS
27596 PyEval_RestoreThread(_save);
27597 PyErr_SetString(PyExc_RuntimeError, e.
what());
27600 Py_END_ALLOW_THREADS
27602 resultobj = SWIG_Py_Void();
27609 SWIGINTERN PyObject *_wrap_IndexFlat_compute_distance_subset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27610 PyObject *resultobj = 0;
27613 float *arg3 = (
float *) 0 ;
27615 float *arg5 = (
float *) 0 ;
27629 PyObject * obj0 = 0 ;
27630 PyObject * obj1 = 0 ;
27631 PyObject * obj2 = 0 ;
27632 PyObject * obj3 = 0 ;
27633 PyObject * obj4 = 0 ;
27634 PyObject * obj5 = 0 ;
27636 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexFlat_compute_distance_subset",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
27638 if (!SWIG_IsOK(res1)) {
27639 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_compute_distance_subset" "', argument " "1"" of type '" "faiss::IndexFlat const *""'");
27642 ecode2 = SWIG_AsVal_long(obj1, &val2);
27643 if (!SWIG_IsOK(ecode2)) {
27644 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat_compute_distance_subset" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
27647 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
27648 if (!SWIG_IsOK(res3)) {
27649 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlat_compute_distance_subset" "', argument " "3"" of type '" "float const *""'");
27651 arg3 =
reinterpret_cast< float *
>(argp3);
27652 ecode4 = SWIG_AsVal_long(obj3, &val4);
27653 if (!SWIG_IsOK(ecode4)) {
27654 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexFlat_compute_distance_subset" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
27657 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
27658 if (!SWIG_IsOK(res5)) {
27659 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexFlat_compute_distance_subset" "', argument " "5"" of type '" "float *""'");
27661 arg5 =
reinterpret_cast< float *
>(argp5);
27662 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
27663 if (!SWIG_IsOK(res6)) {
27664 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexFlat_compute_distance_subset" "', argument " "6"" of type '" "faiss::Index::idx_t const *""'");
27668 Py_BEGIN_ALLOW_THREADS
27672 PyEval_RestoreThread(_save);
27673 PyErr_SetString(PyExc_RuntimeError, e.
what());
27676 Py_END_ALLOW_THREADS
27678 resultobj = SWIG_Py_Void();
27685 SWIGINTERN PyObject *_wrap_IndexFlat_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27686 PyObject *resultobj = 0;
27693 PyObject * obj0 = 0 ;
27694 PyObject * obj1 = 0 ;
27697 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexFlat_remove_ids",&obj0,&obj1)) SWIG_fail;
27698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
27699 if (!SWIG_IsOK(res1)) {
27700 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat_remove_ids" "', argument " "1"" of type '" "faiss::IndexFlat *""'");
27703 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
27704 if (!SWIG_IsOK(res2)) {
27705 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexFlat_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
27708 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexFlat_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
27712 Py_BEGIN_ALLOW_THREADS
27716 PyEval_RestoreThread(_save);
27717 PyErr_SetString(PyExc_RuntimeError, e.
what());
27720 Py_END_ALLOW_THREADS
27722 resultobj = SWIG_From_long(static_cast< long >(result));
27729 SWIGINTERN PyObject *_wrap_new_IndexFlat__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27730 PyObject *resultobj = 0;
27733 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexFlat")) SWIG_fail;
27735 Py_BEGIN_ALLOW_THREADS
27739 PyEval_RestoreThread(_save);
27740 PyErr_SetString(PyExc_RuntimeError, e.
what());
27743 Py_END_ALLOW_THREADS
27745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlat, SWIG_POINTER_NEW | 0 );
27752 SWIGINTERN PyObject *_wrap_new_IndexFlat(PyObject *
self, PyObject *args) {
27754 PyObject *argv[3] = {
27759 if (!PyTuple_Check(args)) SWIG_fail;
27760 argc = args ? PyObject_Length(args) : 0;
27761 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
27762 argv[ii] = PyTuple_GET_ITEM(args,ii);
27765 return _wrap_new_IndexFlat__SWIG_2(
self, args);
27770 int res = SWIG_AsVal_long(argv[0], NULL);
27771 _v = SWIG_CheckState(res);
27774 return _wrap_new_IndexFlat__SWIG_1(
self, args);
27780 int res = SWIG_AsVal_long(argv[0], NULL);
27781 _v = SWIG_CheckState(res);
27785 int res = SWIG_AsVal_int(argv[1], NULL);
27786 _v = SWIG_CheckState(res);
27789 return _wrap_new_IndexFlat__SWIG_0(
self, args);
27795 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexFlat'.\n"
27796 " Possible C/C++ prototypes are:\n"
27797 " faiss::IndexFlat::IndexFlat(faiss::Index::idx_t,faiss::MetricType)\n"
27798 " faiss::IndexFlat::IndexFlat(faiss::Index::idx_t)\n"
27799 " faiss::IndexFlat::IndexFlat()\n");
27804 SWIGINTERN PyObject *_wrap_delete_IndexFlat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27805 PyObject *resultobj = 0;
27809 PyObject * obj0 = 0 ;
27811 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexFlat",&obj0)) SWIG_fail;
27812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat, SWIG_POINTER_DISOWN | 0 );
27813 if (!SWIG_IsOK(res1)) {
27814 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexFlat" "', argument " "1"" of type '" "faiss::IndexFlat *""'");
27818 resultobj = SWIG_Py_Void();
27825 SWIGINTERN PyObject *IndexFlat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27827 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
27828 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexFlat, SWIG_NewClientData(obj));
27829 return SWIG_Py_Void();
27832 SWIGINTERN PyObject *_wrap_new_IndexFlatIP__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27833 PyObject *resultobj = 0;
27837 PyObject * obj0 = 0 ;
27840 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexFlatIP",&obj0)) SWIG_fail;
27841 ecode1 = SWIG_AsVal_long(obj0, &val1);
27842 if (!SWIG_IsOK(ecode1)) {
27843 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexFlatIP" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
27847 Py_BEGIN_ALLOW_THREADS
27851 PyEval_RestoreThread(_save);
27852 PyErr_SetString(PyExc_RuntimeError, e.
what());
27855 Py_END_ALLOW_THREADS
27857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlatIP, SWIG_POINTER_NEW | 0 );
27864 SWIGINTERN PyObject *_wrap_new_IndexFlatIP__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27865 PyObject *resultobj = 0;
27868 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexFlatIP")) SWIG_fail;
27870 Py_BEGIN_ALLOW_THREADS
27874 PyEval_RestoreThread(_save);
27875 PyErr_SetString(PyExc_RuntimeError, e.
what());
27878 Py_END_ALLOW_THREADS
27880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlatIP, SWIG_POINTER_NEW | 0 );
27887 SWIGINTERN PyObject *_wrap_new_IndexFlatIP(PyObject *
self, PyObject *args) {
27889 PyObject *argv[2] = {
27894 if (!PyTuple_Check(args)) SWIG_fail;
27895 argc = args ? PyObject_Length(args) : 0;
27896 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
27897 argv[ii] = PyTuple_GET_ITEM(args,ii);
27900 return _wrap_new_IndexFlatIP__SWIG_1(
self, args);
27905 int res = SWIG_AsVal_long(argv[0], NULL);
27906 _v = SWIG_CheckState(res);
27909 return _wrap_new_IndexFlatIP__SWIG_0(
self, args);
27914 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexFlatIP'.\n"
27915 " Possible C/C++ prototypes are:\n"
27916 " faiss::IndexFlatIP::IndexFlatIP(faiss::Index::idx_t)\n"
27917 " faiss::IndexFlatIP::IndexFlatIP()\n");
27922 SWIGINTERN PyObject *_wrap_delete_IndexFlatIP(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27923 PyObject *resultobj = 0;
27927 PyObject * obj0 = 0 ;
27929 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexFlatIP",&obj0)) SWIG_fail;
27930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlatIP, SWIG_POINTER_DISOWN | 0 );
27931 if (!SWIG_IsOK(res1)) {
27932 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexFlatIP" "', argument " "1"" of type '" "faiss::IndexFlatIP *""'");
27936 resultobj = SWIG_Py_Void();
27943 SWIGINTERN PyObject *IndexFlatIP_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27945 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
27946 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexFlatIP, SWIG_NewClientData(obj));
27947 return SWIG_Py_Void();
27950 SWIGINTERN PyObject *_wrap_new_IndexFlatL2__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27951 PyObject *resultobj = 0;
27955 PyObject * obj0 = 0 ;
27958 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexFlatL2",&obj0)) SWIG_fail;
27959 ecode1 = SWIG_AsVal_long(obj0, &val1);
27960 if (!SWIG_IsOK(ecode1)) {
27961 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexFlatL2" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
27965 Py_BEGIN_ALLOW_THREADS
27969 PyEval_RestoreThread(_save);
27970 PyErr_SetString(PyExc_RuntimeError, e.
what());
27973 Py_END_ALLOW_THREADS
27975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlatL2, SWIG_POINTER_NEW | 0 );
27982 SWIGINTERN PyObject *_wrap_new_IndexFlatL2__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
27983 PyObject *resultobj = 0;
27986 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexFlatL2")) SWIG_fail;
27988 Py_BEGIN_ALLOW_THREADS
27992 PyEval_RestoreThread(_save);
27993 PyErr_SetString(PyExc_RuntimeError, e.
what());
27996 Py_END_ALLOW_THREADS
27998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlatL2, SWIG_POINTER_NEW | 0 );
28005 SWIGINTERN PyObject *_wrap_new_IndexFlatL2(PyObject *
self, PyObject *args) {
28007 PyObject *argv[2] = {
28012 if (!PyTuple_Check(args)) SWIG_fail;
28013 argc = args ? PyObject_Length(args) : 0;
28014 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
28015 argv[ii] = PyTuple_GET_ITEM(args,ii);
28018 return _wrap_new_IndexFlatL2__SWIG_1(
self, args);
28023 int res = SWIG_AsVal_long(argv[0], NULL);
28024 _v = SWIG_CheckState(res);
28027 return _wrap_new_IndexFlatL2__SWIG_0(
self, args);
28032 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexFlatL2'.\n"
28033 " Possible C/C++ prototypes are:\n"
28034 " faiss::IndexFlatL2::IndexFlatL2(faiss::Index::idx_t)\n"
28035 " faiss::IndexFlatL2::IndexFlatL2()\n");
28040 SWIGINTERN PyObject *_wrap_delete_IndexFlatL2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28041 PyObject *resultobj = 0;
28045 PyObject * obj0 = 0 ;
28047 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexFlatL2",&obj0)) SWIG_fail;
28048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlatL2, SWIG_POINTER_DISOWN | 0 );
28049 if (!SWIG_IsOK(res1)) {
28050 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexFlatL2" "', argument " "1"" of type '" "faiss::IndexFlatL2 *""'");
28054 resultobj = SWIG_Py_Void();
28061 SWIGINTERN PyObject *IndexFlatL2_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28063 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
28064 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexFlatL2, SWIG_NewClientData(obj));
28065 return SWIG_Py_Void();
28068 SWIGINTERN PyObject *_wrap_IndexFlatL2BaseShift_shift_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28069 PyObject *resultobj = 0;
28071 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
28076 PyObject * obj0 = 0 ;
28077 PyObject * obj1 = 0 ;
28079 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexFlatL2BaseShift_shift_set",&obj0,&obj1)) SWIG_fail;
28080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlatL2BaseShift, 0 | 0 );
28081 if (!SWIG_IsOK(res1)) {
28082 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlatL2BaseShift_shift_set" "', argument " "1"" of type '" "faiss::IndexFlatL2BaseShift *""'");
28085 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
28086 if (!SWIG_IsOK(res2)) {
28087 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexFlatL2BaseShift_shift_set" "', argument " "2"" of type '" "std::vector< float > *""'");
28089 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
28090 if (arg1) (arg1)->shift = *arg2;
28091 resultobj = SWIG_Py_Void();
28098 SWIGINTERN PyObject *_wrap_IndexFlatL2BaseShift_shift_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28099 PyObject *resultobj = 0;
28103 PyObject * obj0 = 0 ;
28104 std::vector< float > *result = 0 ;
28106 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexFlatL2BaseShift_shift_get",&obj0)) SWIG_fail;
28107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlatL2BaseShift, 0 | 0 );
28108 if (!SWIG_IsOK(res1)) {
28109 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlatL2BaseShift_shift_get" "', argument " "1"" of type '" "faiss::IndexFlatL2BaseShift *""'");
28112 result = (std::vector< float > *)& ((arg1)->shift);
28113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
28120 SWIGINTERN PyObject *_wrap_new_IndexFlatL2BaseShift(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28121 PyObject *resultobj = 0;
28124 float *arg3 = (
float *) 0 ;
28131 PyObject * obj0 = 0 ;
28132 PyObject * obj1 = 0 ;
28133 PyObject * obj2 = 0 ;
28136 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexFlatL2BaseShift",&obj0,&obj1,&obj2)) SWIG_fail;
28137 ecode1 = SWIG_AsVal_long(obj0, &val1);
28138 if (!SWIG_IsOK(ecode1)) {
28139 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexFlatL2BaseShift" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
28142 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
28143 if (!SWIG_IsOK(ecode2)) {
28144 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexFlatL2BaseShift" "', argument " "2"" of type '" "size_t""'");
28146 arg2 =
static_cast< size_t >(val2);
28147 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
28148 if (!SWIG_IsOK(res3)) {
28149 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_IndexFlatL2BaseShift" "', argument " "3"" of type '" "float const *""'");
28151 arg3 =
reinterpret_cast< float *
>(argp3);
28153 Py_BEGIN_ALLOW_THREADS
28157 PyEval_RestoreThread(_save);
28158 PyErr_SetString(PyExc_RuntimeError, e.
what());
28161 Py_END_ALLOW_THREADS
28163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlatL2BaseShift, SWIG_POINTER_NEW | 0 );
28170 SWIGINTERN PyObject *_wrap_IndexFlatL2BaseShift_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28171 PyObject *resultobj = 0;
28174 float *arg3 = (
float *) 0 ;
28176 float *arg5 = (
float *) 0 ;
28190 PyObject * obj0 = 0 ;
28191 PyObject * obj1 = 0 ;
28192 PyObject * obj2 = 0 ;
28193 PyObject * obj3 = 0 ;
28194 PyObject * obj4 = 0 ;
28195 PyObject * obj5 = 0 ;
28197 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexFlatL2BaseShift_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlatL2BaseShift, 0 | 0 );
28199 if (!SWIG_IsOK(res1)) {
28200 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlatL2BaseShift_search" "', argument " "1"" of type '" "faiss::IndexFlatL2BaseShift const *""'");
28203 ecode2 = SWIG_AsVal_long(obj1, &val2);
28204 if (!SWIG_IsOK(ecode2)) {
28205 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlatL2BaseShift_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
28208 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
28209 if (!SWIG_IsOK(res3)) {
28210 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlatL2BaseShift_search" "', argument " "3"" of type '" "float const *""'");
28212 arg3 =
reinterpret_cast< float *
>(argp3);
28213 ecode4 = SWIG_AsVal_long(obj3, &val4);
28214 if (!SWIG_IsOK(ecode4)) {
28215 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexFlatL2BaseShift_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
28218 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
28219 if (!SWIG_IsOK(res5)) {
28220 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexFlatL2BaseShift_search" "', argument " "5"" of type '" "float *""'");
28222 arg5 =
reinterpret_cast< float *
>(argp5);
28223 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
28224 if (!SWIG_IsOK(res6)) {
28225 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexFlatL2BaseShift_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
28229 Py_BEGIN_ALLOW_THREADS
28233 PyEval_RestoreThread(_save);
28234 PyErr_SetString(PyExc_RuntimeError, e.
what());
28237 Py_END_ALLOW_THREADS
28239 resultobj = SWIG_Py_Void();
28246 SWIGINTERN PyObject *_wrap_delete_IndexFlatL2BaseShift(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28247 PyObject *resultobj = 0;
28251 PyObject * obj0 = 0 ;
28253 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexFlatL2BaseShift",&obj0)) SWIG_fail;
28254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlatL2BaseShift, SWIG_POINTER_DISOWN | 0 );
28255 if (!SWIG_IsOK(res1)) {
28256 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexFlatL2BaseShift" "', argument " "1"" of type '" "faiss::IndexFlatL2BaseShift *""'");
28260 resultobj = SWIG_Py_Void();
28267 SWIGINTERN PyObject *IndexFlatL2BaseShift_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28269 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
28270 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexFlatL2BaseShift, SWIG_NewClientData(obj));
28271 return SWIG_Py_Void();
28274 SWIGINTERN PyObject *_wrap_IndexRefineFlat_refine_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28275 PyObject *resultobj = 0;
28282 PyObject * obj0 = 0 ;
28283 PyObject * obj1 = 0 ;
28285 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexRefineFlat_refine_index_set",&obj0,&obj1)) SWIG_fail;
28286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
28287 if (!SWIG_IsOK(res1)) {
28288 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_refine_index_set" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
28291 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
28292 if (!SWIG_IsOK(res2)) {
28293 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexRefineFlat_refine_index_set" "', argument " "2"" of type '" "faiss::IndexFlat *""'");
28296 if (arg1) (arg1)->refine_index = *arg2;
28297 resultobj = SWIG_Py_Void();
28304 SWIGINTERN PyObject *_wrap_IndexRefineFlat_refine_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28305 PyObject *resultobj = 0;
28309 PyObject * obj0 = 0 ;
28312 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexRefineFlat_refine_index_get",&obj0)) SWIG_fail;
28313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
28314 if (!SWIG_IsOK(res1)) {
28315 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_refine_index_get" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
28319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
28326 SWIGINTERN PyObject *_wrap_IndexRefineFlat_base_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28327 PyObject *resultobj = 0;
28334 PyObject * obj0 = 0 ;
28335 PyObject * obj1 = 0 ;
28337 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexRefineFlat_base_index_set",&obj0,&obj1)) SWIG_fail;
28338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
28339 if (!SWIG_IsOK(res1)) {
28340 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_base_index_set" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
28343 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
28344 if (!SWIG_IsOK(res2)) {
28345 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexRefineFlat_base_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
28348 if (arg1) (arg1)->base_index = arg2;
28349 resultobj = SWIG_Py_Void();
28356 SWIGINTERN PyObject *_wrap_IndexRefineFlat_base_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28357 PyObject *resultobj = 0;
28361 PyObject * obj0 = 0 ;
28364 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexRefineFlat_base_index_get",&obj0)) SWIG_fail;
28365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
28366 if (!SWIG_IsOK(res1)) {
28367 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_base_index_get" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
28371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
28378 SWIGINTERN PyObject *_wrap_IndexRefineFlat_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28379 PyObject *resultobj = 0;
28386 PyObject * obj0 = 0 ;
28387 PyObject * obj1 = 0 ;
28389 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexRefineFlat_own_fields_set",&obj0,&obj1)) SWIG_fail;
28390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
28391 if (!SWIG_IsOK(res1)) {
28392 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_own_fields_set" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
28395 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28396 if (!SWIG_IsOK(ecode2)) {
28397 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexRefineFlat_own_fields_set" "', argument " "2"" of type '" "bool""'");
28399 arg2 =
static_cast< bool >(val2);
28400 if (arg1) (arg1)->own_fields = arg2;
28401 resultobj = SWIG_Py_Void();
28408 SWIGINTERN PyObject *_wrap_IndexRefineFlat_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28409 PyObject *resultobj = 0;
28413 PyObject * obj0 = 0 ;
28416 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexRefineFlat_own_fields_get",&obj0)) SWIG_fail;
28417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
28418 if (!SWIG_IsOK(res1)) {
28419 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_own_fields_get" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
28422 result = (bool) ((arg1)->own_fields);
28423 resultobj = SWIG_From_bool(static_cast< bool >(result));
28430 SWIGINTERN PyObject *_wrap_IndexRefineFlat_k_factor_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28431 PyObject *resultobj = 0;
28438 PyObject * obj0 = 0 ;
28439 PyObject * obj1 = 0 ;
28441 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexRefineFlat_k_factor_set",&obj0,&obj1)) SWIG_fail;
28442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
28443 if (!SWIG_IsOK(res1)) {
28444 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_k_factor_set" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
28447 ecode2 = SWIG_AsVal_float(obj1, &val2);
28448 if (!SWIG_IsOK(ecode2)) {
28449 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexRefineFlat_k_factor_set" "', argument " "2"" of type '" "float""'");
28451 arg2 =
static_cast< float >(val2);
28452 if (arg1) (arg1)->k_factor = arg2;
28453 resultobj = SWIG_Py_Void();
28460 SWIGINTERN PyObject *_wrap_IndexRefineFlat_k_factor_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28461 PyObject *resultobj = 0;
28465 PyObject * obj0 = 0 ;
28468 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexRefineFlat_k_factor_get",&obj0)) SWIG_fail;
28469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
28470 if (!SWIG_IsOK(res1)) {
28471 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_k_factor_get" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
28474 result = (float) ((arg1)->k_factor);
28475 resultobj = SWIG_From_float(static_cast< float >(result));
28482 SWIGINTERN PyObject *_wrap_new_IndexRefineFlat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28483 PyObject *resultobj = 0;
28487 PyObject * obj0 = 0 ;
28490 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexRefineFlat",&obj0)) SWIG_fail;
28491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
28492 if (!SWIG_IsOK(res1)) {
28493 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexRefineFlat" "', argument " "1"" of type '" "faiss::Index *""'");
28497 Py_BEGIN_ALLOW_THREADS
28501 PyEval_RestoreThread(_save);
28502 PyErr_SetString(PyExc_RuntimeError, e.
what());
28505 Py_END_ALLOW_THREADS
28507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexRefineFlat, SWIG_POINTER_NEW | 0 );
28514 SWIGINTERN PyObject *_wrap_new_IndexRefineFlat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28515 PyObject *resultobj = 0;
28518 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexRefineFlat")) SWIG_fail;
28520 Py_BEGIN_ALLOW_THREADS
28524 PyEval_RestoreThread(_save);
28525 PyErr_SetString(PyExc_RuntimeError, e.
what());
28528 Py_END_ALLOW_THREADS
28530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexRefineFlat, SWIG_POINTER_NEW | 0 );
28537 SWIGINTERN PyObject *_wrap_new_IndexRefineFlat(PyObject *
self, PyObject *args) {
28539 PyObject *argv[2] = {
28544 if (!PyTuple_Check(args)) SWIG_fail;
28545 argc = args ? PyObject_Length(args) : 0;
28546 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
28547 argv[ii] = PyTuple_GET_ITEM(args,ii);
28550 return _wrap_new_IndexRefineFlat__SWIG_1(
self, args);
28555 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
28556 _v = SWIG_CheckState(res);
28558 return _wrap_new_IndexRefineFlat__SWIG_0(
self, args);
28563 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexRefineFlat'.\n"
28564 " Possible C/C++ prototypes are:\n"
28565 " faiss::IndexRefineFlat::IndexRefineFlat(faiss::Index *)\n"
28566 " faiss::IndexRefineFlat::IndexRefineFlat()\n");
28571 SWIGINTERN PyObject *_wrap_IndexRefineFlat_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28572 PyObject *resultobj = 0;
28575 float *arg3 = (
float *) 0 ;
28582 PyObject * obj0 = 0 ;
28583 PyObject * obj1 = 0 ;
28584 PyObject * obj2 = 0 ;
28586 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexRefineFlat_train",&obj0,&obj1,&obj2)) SWIG_fail;
28587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
28588 if (!SWIG_IsOK(res1)) {
28589 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_train" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
28592 ecode2 = SWIG_AsVal_long(obj1, &val2);
28593 if (!SWIG_IsOK(ecode2)) {
28594 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexRefineFlat_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
28597 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
28598 if (!SWIG_IsOK(res3)) {
28599 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexRefineFlat_train" "', argument " "3"" of type '" "float const *""'");
28601 arg3 =
reinterpret_cast< float *
>(argp3);
28603 Py_BEGIN_ALLOW_THREADS
28605 (arg1)->train(arg2,(
float const *)arg3);
28607 PyEval_RestoreThread(_save);
28608 PyErr_SetString(PyExc_RuntimeError, e.
what());
28611 Py_END_ALLOW_THREADS
28613 resultobj = SWIG_Py_Void();
28620 SWIGINTERN PyObject *_wrap_IndexRefineFlat_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28621 PyObject *resultobj = 0;
28624 float *arg3 = (
float *) 0 ;
28631 PyObject * obj0 = 0 ;
28632 PyObject * obj1 = 0 ;
28633 PyObject * obj2 = 0 ;
28635 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexRefineFlat_add",&obj0,&obj1,&obj2)) SWIG_fail;
28636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
28637 if (!SWIG_IsOK(res1)) {
28638 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_add" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
28641 ecode2 = SWIG_AsVal_long(obj1, &val2);
28642 if (!SWIG_IsOK(ecode2)) {
28643 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexRefineFlat_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
28646 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
28647 if (!SWIG_IsOK(res3)) {
28648 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexRefineFlat_add" "', argument " "3"" of type '" "float const *""'");
28650 arg3 =
reinterpret_cast< float *
>(argp3);
28652 Py_BEGIN_ALLOW_THREADS
28654 (arg1)->add(arg2,(
float const *)arg3);
28656 PyEval_RestoreThread(_save);
28657 PyErr_SetString(PyExc_RuntimeError, e.
what());
28660 Py_END_ALLOW_THREADS
28662 resultobj = SWIG_Py_Void();
28669 SWIGINTERN PyObject *_wrap_IndexRefineFlat_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28670 PyObject *resultobj = 0;
28674 PyObject * obj0 = 0 ;
28676 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexRefineFlat_reset",&obj0)) SWIG_fail;
28677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
28678 if (!SWIG_IsOK(res1)) {
28679 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_reset" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
28683 Py_BEGIN_ALLOW_THREADS
28687 PyEval_RestoreThread(_save);
28688 PyErr_SetString(PyExc_RuntimeError, e.
what());
28691 Py_END_ALLOW_THREADS
28693 resultobj = SWIG_Py_Void();
28700 SWIGINTERN PyObject *_wrap_IndexRefineFlat_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28701 PyObject *resultobj = 0;
28704 float *arg3 = (
float *) 0 ;
28706 float *arg5 = (
float *) 0 ;
28720 PyObject * obj0 = 0 ;
28721 PyObject * obj1 = 0 ;
28722 PyObject * obj2 = 0 ;
28723 PyObject * obj3 = 0 ;
28724 PyObject * obj4 = 0 ;
28725 PyObject * obj5 = 0 ;
28727 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexRefineFlat_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, 0 | 0 );
28729 if (!SWIG_IsOK(res1)) {
28730 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexRefineFlat_search" "', argument " "1"" of type '" "faiss::IndexRefineFlat const *""'");
28733 ecode2 = SWIG_AsVal_long(obj1, &val2);
28734 if (!SWIG_IsOK(ecode2)) {
28735 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexRefineFlat_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
28738 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
28739 if (!SWIG_IsOK(res3)) {
28740 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexRefineFlat_search" "', argument " "3"" of type '" "float const *""'");
28742 arg3 =
reinterpret_cast< float *
>(argp3);
28743 ecode4 = SWIG_AsVal_long(obj3, &val4);
28744 if (!SWIG_IsOK(ecode4)) {
28745 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexRefineFlat_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
28748 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
28749 if (!SWIG_IsOK(res5)) {
28750 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexRefineFlat_search" "', argument " "5"" of type '" "float *""'");
28752 arg5 =
reinterpret_cast< float *
>(argp5);
28753 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
28754 if (!SWIG_IsOK(res6)) {
28755 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexRefineFlat_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
28759 Py_BEGIN_ALLOW_THREADS
28763 PyEval_RestoreThread(_save);
28764 PyErr_SetString(PyExc_RuntimeError, e.
what());
28767 Py_END_ALLOW_THREADS
28769 resultobj = SWIG_Py_Void();
28776 SWIGINTERN PyObject *_wrap_delete_IndexRefineFlat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28777 PyObject *resultobj = 0;
28781 PyObject * obj0 = 0 ;
28783 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexRefineFlat",&obj0)) SWIG_fail;
28784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexRefineFlat, SWIG_POINTER_DISOWN | 0 );
28785 if (!SWIG_IsOK(res1)) {
28786 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexRefineFlat" "', argument " "1"" of type '" "faiss::IndexRefineFlat *""'");
28790 Py_BEGIN_ALLOW_THREADS
28794 PyEval_RestoreThread(_save);
28795 PyErr_SetString(PyExc_RuntimeError, e.
what());
28798 Py_END_ALLOW_THREADS
28800 resultobj = SWIG_Py_Void();
28807 SWIGINTERN PyObject *IndexRefineFlat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28809 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
28810 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexRefineFlat, SWIG_NewClientData(obj));
28811 return SWIG_Py_Void();
28814 SWIGINTERN PyObject *_wrap_IndexFlat1D_continuous_update_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28815 PyObject *resultobj = 0;
28822 PyObject * obj0 = 0 ;
28823 PyObject * obj1 = 0 ;
28825 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexFlat1D_continuous_update_set",&obj0,&obj1)) SWIG_fail;
28826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
28827 if (!SWIG_IsOK(res1)) {
28828 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_continuous_update_set" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
28831 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28832 if (!SWIG_IsOK(ecode2)) {
28833 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat1D_continuous_update_set" "', argument " "2"" of type '" "bool""'");
28835 arg2 =
static_cast< bool >(val2);
28836 if (arg1) (arg1)->continuous_update = arg2;
28837 resultobj = SWIG_Py_Void();
28844 SWIGINTERN PyObject *_wrap_IndexFlat1D_continuous_update_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28845 PyObject *resultobj = 0;
28849 PyObject * obj0 = 0 ;
28852 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexFlat1D_continuous_update_get",&obj0)) SWIG_fail;
28853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
28854 if (!SWIG_IsOK(res1)) {
28855 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_continuous_update_get" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
28858 result = (bool) ((arg1)->continuous_update);
28859 resultobj = SWIG_From_bool(static_cast< bool >(result));
28866 SWIGINTERN PyObject *_wrap_IndexFlat1D_perm_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28867 PyObject *resultobj = 0;
28869 std::vector< faiss::Index::idx_t > *arg2 = (std::vector< faiss::Index::idx_t > *) 0 ;
28874 PyObject * obj0 = 0 ;
28875 PyObject * obj1 = 0 ;
28877 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexFlat1D_perm_set",&obj0,&obj1)) SWIG_fail;
28878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
28879 if (!SWIG_IsOK(res1)) {
28880 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_perm_set" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
28883 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
28884 if (!SWIG_IsOK(res2)) {
28885 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexFlat1D_perm_set" "', argument " "2"" of type '" "std::vector< faiss::Index::idx_t > *""'");
28887 arg2 =
reinterpret_cast< std::vector< faiss::Index::idx_t > *
>(argp2);
28888 if (arg1) (arg1)->perm = *arg2;
28889 resultobj = SWIG_Py_Void();
28896 SWIGINTERN PyObject *_wrap_IndexFlat1D_perm_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28897 PyObject *resultobj = 0;
28901 PyObject * obj0 = 0 ;
28902 std::vector< faiss::Index::idx_t > *result = 0 ;
28904 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexFlat1D_perm_get",&obj0)) SWIG_fail;
28905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
28906 if (!SWIG_IsOK(res1)) {
28907 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_perm_get" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
28910 result = (std::vector< faiss::Index::idx_t > *)& ((arg1)->perm);
28911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
28918 SWIGINTERN PyObject *_wrap_new_IndexFlat1D__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28919 PyObject *resultobj = 0;
28923 PyObject * obj0 = 0 ;
28926 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexFlat1D",&obj0)) SWIG_fail;
28927 ecode1 = SWIG_AsVal_bool(obj0, &val1);
28928 if (!SWIG_IsOK(ecode1)) {
28929 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexFlat1D" "', argument " "1"" of type '" "bool""'");
28931 arg1 =
static_cast< bool >(val1);
28933 Py_BEGIN_ALLOW_THREADS
28937 PyEval_RestoreThread(_save);
28938 PyErr_SetString(PyExc_RuntimeError, e.
what());
28941 Py_END_ALLOW_THREADS
28943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlat1D, SWIG_POINTER_NEW | 0 );
28950 SWIGINTERN PyObject *_wrap_new_IndexFlat1D__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
28951 PyObject *resultobj = 0;
28954 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexFlat1D")) SWIG_fail;
28956 Py_BEGIN_ALLOW_THREADS
28960 PyEval_RestoreThread(_save);
28961 PyErr_SetString(PyExc_RuntimeError, e.
what());
28964 Py_END_ALLOW_THREADS
28966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexFlat1D, SWIG_POINTER_NEW | 0 );
28973 SWIGINTERN PyObject *_wrap_new_IndexFlat1D(PyObject *
self, PyObject *args) {
28975 PyObject *argv[2] = {
28980 if (!PyTuple_Check(args)) SWIG_fail;
28981 argc = args ? PyObject_Length(args) : 0;
28982 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
28983 argv[ii] = PyTuple_GET_ITEM(args,ii);
28986 return _wrap_new_IndexFlat1D__SWIG_1(
self, args);
28991 int res = SWIG_AsVal_bool(argv[0], NULL);
28992 _v = SWIG_CheckState(res);
28995 return _wrap_new_IndexFlat1D__SWIG_0(
self, args);
29000 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexFlat1D'.\n"
29001 " Possible C/C++ prototypes are:\n"
29002 " faiss::IndexFlat1D::IndexFlat1D(bool)\n"
29003 " faiss::IndexFlat1D::IndexFlat1D()\n");
29008 SWIGINTERN PyObject *_wrap_IndexFlat1D_update_permutation(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29009 PyObject *resultobj = 0;
29013 PyObject * obj0 = 0 ;
29015 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexFlat1D_update_permutation",&obj0)) SWIG_fail;
29016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
29017 if (!SWIG_IsOK(res1)) {
29018 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_update_permutation" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
29022 Py_BEGIN_ALLOW_THREADS
29024 (arg1)->update_permutation();
29026 PyEval_RestoreThread(_save);
29027 PyErr_SetString(PyExc_RuntimeError, e.
what());
29030 Py_END_ALLOW_THREADS
29032 resultobj = SWIG_Py_Void();
29039 SWIGINTERN PyObject *_wrap_IndexFlat1D_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29040 PyObject *resultobj = 0;
29043 float *arg3 = (
float *) 0 ;
29050 PyObject * obj0 = 0 ;
29051 PyObject * obj1 = 0 ;
29052 PyObject * obj2 = 0 ;
29054 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexFlat1D_add",&obj0,&obj1,&obj2)) SWIG_fail;
29055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
29056 if (!SWIG_IsOK(res1)) {
29057 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_add" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
29060 ecode2 = SWIG_AsVal_long(obj1, &val2);
29061 if (!SWIG_IsOK(ecode2)) {
29062 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat1D_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
29065 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
29066 if (!SWIG_IsOK(res3)) {
29067 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlat1D_add" "', argument " "3"" of type '" "float const *""'");
29069 arg3 =
reinterpret_cast< float *
>(argp3);
29071 Py_BEGIN_ALLOW_THREADS
29073 (arg1)->add(arg2,(
float const *)arg3);
29075 PyEval_RestoreThread(_save);
29076 PyErr_SetString(PyExc_RuntimeError, e.
what());
29079 Py_END_ALLOW_THREADS
29081 resultobj = SWIG_Py_Void();
29088 SWIGINTERN PyObject *_wrap_IndexFlat1D_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29089 PyObject *resultobj = 0;
29093 PyObject * obj0 = 0 ;
29095 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexFlat1D_reset",&obj0)) SWIG_fail;
29096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
29097 if (!SWIG_IsOK(res1)) {
29098 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_reset" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
29102 Py_BEGIN_ALLOW_THREADS
29106 PyEval_RestoreThread(_save);
29107 PyErr_SetString(PyExc_RuntimeError, e.
what());
29110 Py_END_ALLOW_THREADS
29112 resultobj = SWIG_Py_Void();
29119 SWIGINTERN PyObject *_wrap_IndexFlat1D_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29120 PyObject *resultobj = 0;
29123 float *arg3 = (
float *) 0 ;
29125 float *arg5 = (
float *) 0 ;
29139 PyObject * obj0 = 0 ;
29140 PyObject * obj1 = 0 ;
29141 PyObject * obj2 = 0 ;
29142 PyObject * obj3 = 0 ;
29143 PyObject * obj4 = 0 ;
29144 PyObject * obj5 = 0 ;
29146 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexFlat1D_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, 0 | 0 );
29148 if (!SWIG_IsOK(res1)) {
29149 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexFlat1D_search" "', argument " "1"" of type '" "faiss::IndexFlat1D const *""'");
29152 ecode2 = SWIG_AsVal_long(obj1, &val2);
29153 if (!SWIG_IsOK(ecode2)) {
29154 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexFlat1D_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
29157 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
29158 if (!SWIG_IsOK(res3)) {
29159 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexFlat1D_search" "', argument " "3"" of type '" "float const *""'");
29161 arg3 =
reinterpret_cast< float *
>(argp3);
29162 ecode4 = SWIG_AsVal_long(obj3, &val4);
29163 if (!SWIG_IsOK(ecode4)) {
29164 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexFlat1D_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
29167 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
29168 if (!SWIG_IsOK(res5)) {
29169 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexFlat1D_search" "', argument " "5"" of type '" "float *""'");
29171 arg5 =
reinterpret_cast< float *
>(argp5);
29172 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
29173 if (!SWIG_IsOK(res6)) {
29174 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexFlat1D_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
29178 Py_BEGIN_ALLOW_THREADS
29180 ((
faiss::IndexFlat1D const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
29182 PyEval_RestoreThread(_save);
29183 PyErr_SetString(PyExc_RuntimeError, e.
what());
29186 Py_END_ALLOW_THREADS
29188 resultobj = SWIG_Py_Void();
29195 SWIGINTERN PyObject *_wrap_delete_IndexFlat1D(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29196 PyObject *resultobj = 0;
29200 PyObject * obj0 = 0 ;
29202 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexFlat1D",&obj0)) SWIG_fail;
29203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexFlat1D, SWIG_POINTER_DISOWN | 0 );
29204 if (!SWIG_IsOK(res1)) {
29205 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexFlat1D" "', argument " "1"" of type '" "faiss::IndexFlat1D *""'");
29209 resultobj = SWIG_Py_Void();
29216 SWIGINTERN PyObject *IndexFlat1D_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29218 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
29219 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexFlat1D, SWIG_NewClientData(obj));
29220 return SWIG_Py_Void();
29223 SWIGINTERN PyObject *_wrap_IndexLSH_nbits_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29224 PyObject *resultobj = 0;
29231 PyObject * obj0 = 0 ;
29232 PyObject * obj1 = 0 ;
29234 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_nbits_set",&obj0,&obj1)) SWIG_fail;
29235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29236 if (!SWIG_IsOK(res1)) {
29237 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_nbits_set" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29240 ecode2 = SWIG_AsVal_int(obj1, &val2);
29241 if (!SWIG_IsOK(ecode2)) {
29242 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_nbits_set" "', argument " "2"" of type '" "int""'");
29244 arg2 =
static_cast< int >(val2);
29245 if (arg1) (arg1)->nbits = arg2;
29246 resultobj = SWIG_Py_Void();
29253 SWIGINTERN PyObject *_wrap_IndexLSH_nbits_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29254 PyObject *resultobj = 0;
29258 PyObject * obj0 = 0 ;
29261 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_nbits_get",&obj0)) SWIG_fail;
29262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29263 if (!SWIG_IsOK(res1)) {
29264 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_nbits_get" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29267 result = (int) ((arg1)->nbits);
29268 resultobj = SWIG_From_int(static_cast< int >(result));
29275 SWIGINTERN PyObject *_wrap_IndexLSH_bytes_per_vec_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29276 PyObject *resultobj = 0;
29283 PyObject * obj0 = 0 ;
29284 PyObject * obj1 = 0 ;
29286 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_bytes_per_vec_set",&obj0,&obj1)) SWIG_fail;
29287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29288 if (!SWIG_IsOK(res1)) {
29289 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_bytes_per_vec_set" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29292 ecode2 = SWIG_AsVal_int(obj1, &val2);
29293 if (!SWIG_IsOK(ecode2)) {
29294 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_bytes_per_vec_set" "', argument " "2"" of type '" "int""'");
29296 arg2 =
static_cast< int >(val2);
29297 if (arg1) (arg1)->bytes_per_vec = arg2;
29298 resultobj = SWIG_Py_Void();
29305 SWIGINTERN PyObject *_wrap_IndexLSH_bytes_per_vec_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29306 PyObject *resultobj = 0;
29310 PyObject * obj0 = 0 ;
29313 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_bytes_per_vec_get",&obj0)) SWIG_fail;
29314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29315 if (!SWIG_IsOK(res1)) {
29316 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_bytes_per_vec_get" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29319 result = (int) ((arg1)->bytes_per_vec);
29320 resultobj = SWIG_From_int(static_cast< int >(result));
29327 SWIGINTERN PyObject *_wrap_IndexLSH_rotate_data_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29328 PyObject *resultobj = 0;
29335 PyObject * obj0 = 0 ;
29336 PyObject * obj1 = 0 ;
29338 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_rotate_data_set",&obj0,&obj1)) SWIG_fail;
29339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29340 if (!SWIG_IsOK(res1)) {
29341 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_rotate_data_set" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29344 ecode2 = SWIG_AsVal_bool(obj1, &val2);
29345 if (!SWIG_IsOK(ecode2)) {
29346 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_rotate_data_set" "', argument " "2"" of type '" "bool""'");
29348 arg2 =
static_cast< bool >(val2);
29349 if (arg1) (arg1)->rotate_data = arg2;
29350 resultobj = SWIG_Py_Void();
29357 SWIGINTERN PyObject *_wrap_IndexLSH_rotate_data_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29358 PyObject *resultobj = 0;
29362 PyObject * obj0 = 0 ;
29365 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_rotate_data_get",&obj0)) SWIG_fail;
29366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29367 if (!SWIG_IsOK(res1)) {
29368 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_rotate_data_get" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29371 result = (bool) ((arg1)->rotate_data);
29372 resultobj = SWIG_From_bool(static_cast< bool >(result));
29379 SWIGINTERN PyObject *_wrap_IndexLSH_train_thresholds_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29380 PyObject *resultobj = 0;
29387 PyObject * obj0 = 0 ;
29388 PyObject * obj1 = 0 ;
29390 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_train_thresholds_set",&obj0,&obj1)) SWIG_fail;
29391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29392 if (!SWIG_IsOK(res1)) {
29393 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_train_thresholds_set" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29396 ecode2 = SWIG_AsVal_bool(obj1, &val2);
29397 if (!SWIG_IsOK(ecode2)) {
29398 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_train_thresholds_set" "', argument " "2"" of type '" "bool""'");
29400 arg2 =
static_cast< bool >(val2);
29401 if (arg1) (arg1)->train_thresholds = arg2;
29402 resultobj = SWIG_Py_Void();
29409 SWIGINTERN PyObject *_wrap_IndexLSH_train_thresholds_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29410 PyObject *resultobj = 0;
29414 PyObject * obj0 = 0 ;
29417 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_train_thresholds_get",&obj0)) SWIG_fail;
29418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29419 if (!SWIG_IsOK(res1)) {
29420 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_train_thresholds_get" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29423 result = (bool) ((arg1)->train_thresholds);
29424 resultobj = SWIG_From_bool(static_cast< bool >(result));
29431 SWIGINTERN PyObject *_wrap_IndexLSH_rrot_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29432 PyObject *resultobj = 0;
29439 PyObject * obj0 = 0 ;
29440 PyObject * obj1 = 0 ;
29442 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_rrot_set",&obj0,&obj1)) SWIG_fail;
29443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29444 if (!SWIG_IsOK(res1)) {
29445 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_rrot_set" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29448 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__RandomRotationMatrix, 0 | 0 );
29449 if (!SWIG_IsOK(res2)) {
29450 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexLSH_rrot_set" "', argument " "2"" of type '" "faiss::RandomRotationMatrix *""'");
29453 if (arg1) (arg1)->rrot = *arg2;
29454 resultobj = SWIG_Py_Void();
29461 SWIGINTERN PyObject *_wrap_IndexLSH_rrot_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29462 PyObject *resultobj = 0;
29466 PyObject * obj0 = 0 ;
29469 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_rrot_get",&obj0)) SWIG_fail;
29470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29471 if (!SWIG_IsOK(res1)) {
29472 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_rrot_get" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RandomRotationMatrix, 0 | 0 );
29483 SWIGINTERN PyObject *_wrap_IndexLSH_thresholds_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29484 PyObject *resultobj = 0;
29486 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
29491 PyObject * obj0 = 0 ;
29492 PyObject * obj1 = 0 ;
29494 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_thresholds_set",&obj0,&obj1)) SWIG_fail;
29495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29496 if (!SWIG_IsOK(res1)) {
29497 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_thresholds_set" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29500 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
29501 if (!SWIG_IsOK(res2)) {
29502 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexLSH_thresholds_set" "', argument " "2"" of type '" "std::vector< float > *""'");
29504 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
29505 if (arg1) (arg1)->thresholds = *arg2;
29506 resultobj = SWIG_Py_Void();
29513 SWIGINTERN PyObject *_wrap_IndexLSH_thresholds_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29514 PyObject *resultobj = 0;
29518 PyObject * obj0 = 0 ;
29519 std::vector< float > *result = 0 ;
29521 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_thresholds_get",&obj0)) SWIG_fail;
29522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29523 if (!SWIG_IsOK(res1)) {
29524 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_thresholds_get" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29527 result = (std::vector< float > *)& ((arg1)->thresholds);
29528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
29535 SWIGINTERN PyObject *_wrap_IndexLSH_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29536 PyObject *resultobj = 0;
29538 std::vector< faiss::IndexLSH::uint8_t > *arg2 = (std::vector< faiss::IndexLSH::uint8_t > *) 0 ;
29543 PyObject * obj0 = 0 ;
29544 PyObject * obj1 = 0 ;
29546 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_codes_set",&obj0,&obj1)) SWIG_fail;
29547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29548 if (!SWIG_IsOK(res1)) {
29549 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_codes_set" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29552 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
29553 if (!SWIG_IsOK(res2)) {
29554 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexLSH_codes_set" "', argument " "2"" of type '" "std::vector< faiss::IndexLSH::uint8_t > *""'");
29556 arg2 =
reinterpret_cast< std::vector< faiss::IndexLSH::uint8_t > *
>(argp2);
29557 if (arg1) (arg1)->codes = *arg2;
29558 resultobj = SWIG_Py_Void();
29565 SWIGINTERN PyObject *_wrap_IndexLSH_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29566 PyObject *resultobj = 0;
29570 PyObject * obj0 = 0 ;
29571 std::vector< faiss::IndexLSH::uint8_t > *result = 0 ;
29573 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_codes_get",&obj0)) SWIG_fail;
29574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29575 if (!SWIG_IsOK(res1)) {
29576 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_codes_get" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29579 result = (std::vector< faiss::IndexLSH::uint8_t > *)& ((arg1)->codes);
29580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
29587 SWIGINTERN PyObject *_wrap_new_IndexLSH__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29588 PyObject *resultobj = 0;
29601 PyObject * obj0 = 0 ;
29602 PyObject * obj1 = 0 ;
29603 PyObject * obj2 = 0 ;
29604 PyObject * obj3 = 0 ;
29607 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_IndexLSH",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29608 ecode1 = SWIG_AsVal_long(obj0, &val1);
29609 if (!SWIG_IsOK(ecode1)) {
29610 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexLSH" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
29613 ecode2 = SWIG_AsVal_int(obj1, &val2);
29614 if (!SWIG_IsOK(ecode2)) {
29615 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexLSH" "', argument " "2"" of type '" "int""'");
29617 arg2 =
static_cast< int >(val2);
29618 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29619 if (!SWIG_IsOK(ecode3)) {
29620 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexLSH" "', argument " "3"" of type '" "bool""'");
29622 arg3 =
static_cast< bool >(val3);
29623 ecode4 = SWIG_AsVal_bool(obj3, &val4);
29624 if (!SWIG_IsOK(ecode4)) {
29625 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexLSH" "', argument " "4"" of type '" "bool""'");
29627 arg4 =
static_cast< bool >(val4);
29629 Py_BEGIN_ALLOW_THREADS
29633 PyEval_RestoreThread(_save);
29634 PyErr_SetString(PyExc_RuntimeError, e.
what());
29637 Py_END_ALLOW_THREADS
29639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexLSH, SWIG_POINTER_NEW | 0 );
29646 SWIGINTERN PyObject *_wrap_new_IndexLSH__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29647 PyObject *resultobj = 0;
29657 PyObject * obj0 = 0 ;
29658 PyObject * obj1 = 0 ;
29659 PyObject * obj2 = 0 ;
29662 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexLSH",&obj0,&obj1,&obj2)) SWIG_fail;
29663 ecode1 = SWIG_AsVal_long(obj0, &val1);
29664 if (!SWIG_IsOK(ecode1)) {
29665 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexLSH" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
29668 ecode2 = SWIG_AsVal_int(obj1, &val2);
29669 if (!SWIG_IsOK(ecode2)) {
29670 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexLSH" "', argument " "2"" of type '" "int""'");
29672 arg2 =
static_cast< int >(val2);
29673 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29674 if (!SWIG_IsOK(ecode3)) {
29675 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexLSH" "', argument " "3"" of type '" "bool""'");
29677 arg3 =
static_cast< bool >(val3);
29679 Py_BEGIN_ALLOW_THREADS
29683 PyEval_RestoreThread(_save);
29684 PyErr_SetString(PyExc_RuntimeError, e.
what());
29687 Py_END_ALLOW_THREADS
29689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexLSH, SWIG_POINTER_NEW | 0 );
29696 SWIGINTERN PyObject *_wrap_new_IndexLSH__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29697 PyObject *resultobj = 0;
29704 PyObject * obj0 = 0 ;
29705 PyObject * obj1 = 0 ;
29708 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexLSH",&obj0,&obj1)) SWIG_fail;
29709 ecode1 = SWIG_AsVal_long(obj0, &val1);
29710 if (!SWIG_IsOK(ecode1)) {
29711 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexLSH" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
29714 ecode2 = SWIG_AsVal_int(obj1, &val2);
29715 if (!SWIG_IsOK(ecode2)) {
29716 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexLSH" "', argument " "2"" of type '" "int""'");
29718 arg2 =
static_cast< int >(val2);
29720 Py_BEGIN_ALLOW_THREADS
29724 PyEval_RestoreThread(_save);
29725 PyErr_SetString(PyExc_RuntimeError, e.
what());
29728 Py_END_ALLOW_THREADS
29730 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexLSH, SWIG_POINTER_NEW | 0 );
29737 SWIGINTERN PyObject *_wrap_IndexLSH_apply_preprocess(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29738 PyObject *resultobj = 0;
29741 float *arg3 = (
float *) 0 ;
29748 PyObject * obj0 = 0 ;
29749 PyObject * obj1 = 0 ;
29750 PyObject * obj2 = 0 ;
29751 float *result = 0 ;
29753 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexLSH_apply_preprocess",&obj0,&obj1,&obj2)) SWIG_fail;
29754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29755 if (!SWIG_IsOK(res1)) {
29756 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_apply_preprocess" "', argument " "1"" of type '" "faiss::IndexLSH const *""'");
29759 ecode2 = SWIG_AsVal_long(obj1, &val2);
29760 if (!SWIG_IsOK(ecode2)) {
29761 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_apply_preprocess" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
29764 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
29765 if (!SWIG_IsOK(res3)) {
29766 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexLSH_apply_preprocess" "', argument " "3"" of type '" "float const *""'");
29768 arg3 =
reinterpret_cast< float *
>(argp3);
29770 Py_BEGIN_ALLOW_THREADS
29772 result = (
float *)((
faiss::IndexLSH const *)arg1)->apply_preprocess(arg2,(
float const *)arg3);
29774 PyEval_RestoreThread(_save);
29775 PyErr_SetString(PyExc_RuntimeError, e.
what());
29778 Py_END_ALLOW_THREADS
29780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
29787 SWIGINTERN PyObject *_wrap_IndexLSH_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29788 PyObject *resultobj = 0;
29791 float *arg3 = (
float *) 0 ;
29798 PyObject * obj0 = 0 ;
29799 PyObject * obj1 = 0 ;
29800 PyObject * obj2 = 0 ;
29802 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexLSH_train",&obj0,&obj1,&obj2)) SWIG_fail;
29803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29804 if (!SWIG_IsOK(res1)) {
29805 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_train" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29808 ecode2 = SWIG_AsVal_long(obj1, &val2);
29809 if (!SWIG_IsOK(ecode2)) {
29810 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
29813 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
29814 if (!SWIG_IsOK(res3)) {
29815 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexLSH_train" "', argument " "3"" of type '" "float const *""'");
29817 arg3 =
reinterpret_cast< float *
>(argp3);
29819 Py_BEGIN_ALLOW_THREADS
29821 (arg1)->train(arg2,(
float const *)arg3);
29823 PyEval_RestoreThread(_save);
29824 PyErr_SetString(PyExc_RuntimeError, e.
what());
29827 Py_END_ALLOW_THREADS
29829 resultobj = SWIG_Py_Void();
29836 SWIGINTERN PyObject *_wrap_IndexLSH_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29837 PyObject *resultobj = 0;
29840 float *arg3 = (
float *) 0 ;
29847 PyObject * obj0 = 0 ;
29848 PyObject * obj1 = 0 ;
29849 PyObject * obj2 = 0 ;
29851 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexLSH_add",&obj0,&obj1,&obj2)) SWIG_fail;
29852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29853 if (!SWIG_IsOK(res1)) {
29854 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_add" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29857 ecode2 = SWIG_AsVal_long(obj1, &val2);
29858 if (!SWIG_IsOK(ecode2)) {
29859 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
29862 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
29863 if (!SWIG_IsOK(res3)) {
29864 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexLSH_add" "', argument " "3"" of type '" "float const *""'");
29866 arg3 =
reinterpret_cast< float *
>(argp3);
29868 Py_BEGIN_ALLOW_THREADS
29870 (arg1)->add(arg2,(
float const *)arg3);
29872 PyEval_RestoreThread(_save);
29873 PyErr_SetString(PyExc_RuntimeError, e.
what());
29876 Py_END_ALLOW_THREADS
29878 resultobj = SWIG_Py_Void();
29885 SWIGINTERN PyObject *_wrap_IndexLSH_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29886 PyObject *resultobj = 0;
29889 float *arg3 = (
float *) 0 ;
29891 float *arg5 = (
float *) 0 ;
29905 PyObject * obj0 = 0 ;
29906 PyObject * obj1 = 0 ;
29907 PyObject * obj2 = 0 ;
29908 PyObject * obj3 = 0 ;
29909 PyObject * obj4 = 0 ;
29910 PyObject * obj5 = 0 ;
29912 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexLSH_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29914 if (!SWIG_IsOK(res1)) {
29915 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_search" "', argument " "1"" of type '" "faiss::IndexLSH const *""'");
29918 ecode2 = SWIG_AsVal_long(obj1, &val2);
29919 if (!SWIG_IsOK(ecode2)) {
29920 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexLSH_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
29923 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
29924 if (!SWIG_IsOK(res3)) {
29925 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexLSH_search" "', argument " "3"" of type '" "float const *""'");
29927 arg3 =
reinterpret_cast< float *
>(argp3);
29928 ecode4 = SWIG_AsVal_long(obj3, &val4);
29929 if (!SWIG_IsOK(ecode4)) {
29930 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexLSH_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
29933 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
29934 if (!SWIG_IsOK(res5)) {
29935 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexLSH_search" "', argument " "5"" of type '" "float *""'");
29937 arg5 =
reinterpret_cast< float *
>(argp5);
29938 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
29939 if (!SWIG_IsOK(res6)) {
29940 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexLSH_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
29944 Py_BEGIN_ALLOW_THREADS
29946 ((
faiss::IndexLSH const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
29948 PyEval_RestoreThread(_save);
29949 PyErr_SetString(PyExc_RuntimeError, e.
what());
29952 Py_END_ALLOW_THREADS
29954 resultobj = SWIG_Py_Void();
29961 SWIGINTERN PyObject *_wrap_IndexLSH_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29962 PyObject *resultobj = 0;
29966 PyObject * obj0 = 0 ;
29968 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexLSH_reset",&obj0)) SWIG_fail;
29969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
29970 if (!SWIG_IsOK(res1)) {
29971 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_reset" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
29975 Py_BEGIN_ALLOW_THREADS
29979 PyEval_RestoreThread(_save);
29980 PyErr_SetString(PyExc_RuntimeError, e.
what());
29983 Py_END_ALLOW_THREADS
29985 resultobj = SWIG_Py_Void();
29992 SWIGINTERN PyObject *_wrap_IndexLSH_transfer_thresholds(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
29993 PyObject *resultobj = 0;
30000 PyObject * obj0 = 0 ;
30001 PyObject * obj1 = 0 ;
30003 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexLSH_transfer_thresholds",&obj0,&obj1)) SWIG_fail;
30004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, 0 | 0 );
30005 if (!SWIG_IsOK(res1)) {
30006 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexLSH_transfer_thresholds" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
30009 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__LinearTransform, 0 | 0 );
30010 if (!SWIG_IsOK(res2)) {
30011 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexLSH_transfer_thresholds" "', argument " "2"" of type '" "faiss::LinearTransform *""'");
30015 Py_BEGIN_ALLOW_THREADS
30017 (arg1)->transfer_thresholds(arg2);
30019 PyEval_RestoreThread(_save);
30020 PyErr_SetString(PyExc_RuntimeError, e.
what());
30023 Py_END_ALLOW_THREADS
30025 resultobj = SWIG_Py_Void();
30032 SWIGINTERN PyObject *_wrap_delete_IndexLSH(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30033 PyObject *resultobj = 0;
30037 PyObject * obj0 = 0 ;
30039 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexLSH",&obj0)) SWIG_fail;
30040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexLSH, SWIG_POINTER_DISOWN | 0 );
30041 if (!SWIG_IsOK(res1)) {
30042 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexLSH" "', argument " "1"" of type '" "faiss::IndexLSH *""'");
30046 Py_BEGIN_ALLOW_THREADS
30050 PyEval_RestoreThread(_save);
30051 PyErr_SetString(PyExc_RuntimeError, e.
what());
30054 Py_END_ALLOW_THREADS
30056 resultobj = SWIG_Py_Void();
30063 SWIGINTERN PyObject *_wrap_new_IndexLSH__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30064 PyObject *resultobj = 0;
30067 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexLSH")) SWIG_fail;
30069 Py_BEGIN_ALLOW_THREADS
30073 PyEval_RestoreThread(_save);
30074 PyErr_SetString(PyExc_RuntimeError, e.
what());
30077 Py_END_ALLOW_THREADS
30079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexLSH, SWIG_POINTER_NEW | 0 );
30086 SWIGINTERN PyObject *_wrap_new_IndexLSH(PyObject *
self, PyObject *args) {
30088 PyObject *argv[5] = {
30093 if (!PyTuple_Check(args)) SWIG_fail;
30094 argc = args ? PyObject_Length(args) : 0;
30095 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
30096 argv[ii] = PyTuple_GET_ITEM(args,ii);
30099 return _wrap_new_IndexLSH__SWIG_3(
self, args);
30104 int res = SWIG_AsVal_long(argv[0], NULL);
30105 _v = SWIG_CheckState(res);
30109 int res = SWIG_AsVal_int(argv[1], NULL);
30110 _v = SWIG_CheckState(res);
30113 return _wrap_new_IndexLSH__SWIG_2(
self, args);
30120 int res = SWIG_AsVal_long(argv[0], NULL);
30121 _v = SWIG_CheckState(res);
30125 int res = SWIG_AsVal_int(argv[1], NULL);
30126 _v = SWIG_CheckState(res);
30130 int res = SWIG_AsVal_bool(argv[2], NULL);
30131 _v = SWIG_CheckState(res);
30134 return _wrap_new_IndexLSH__SWIG_1(
self, args);
30142 int res = SWIG_AsVal_long(argv[0], NULL);
30143 _v = SWIG_CheckState(res);
30147 int res = SWIG_AsVal_int(argv[1], NULL);
30148 _v = SWIG_CheckState(res);
30152 int res = SWIG_AsVal_bool(argv[2], NULL);
30153 _v = SWIG_CheckState(res);
30157 int res = SWIG_AsVal_bool(argv[3], NULL);
30158 _v = SWIG_CheckState(res);
30161 return _wrap_new_IndexLSH__SWIG_0(
self, args);
30169 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexLSH'.\n"
30170 " Possible C/C++ prototypes are:\n"
30171 " faiss::IndexLSH::IndexLSH(faiss::Index::idx_t,int,bool,bool)\n"
30172 " faiss::IndexLSH::IndexLSH(faiss::Index::idx_t,int,bool)\n"
30173 " faiss::IndexLSH::IndexLSH(faiss::Index::idx_t,int)\n"
30174 " faiss::IndexLSH::IndexLSH()\n");
30179 SWIGINTERN PyObject *IndexLSH_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30181 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
30182 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexLSH, SWIG_NewClientData(obj));
30183 return SWIG_Py_Void();
30186 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_init_temperature_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30187 PyObject *resultobj = 0;
30194 PyObject * obj0 = 0 ;
30195 PyObject * obj1 = 0 ;
30197 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_init_temperature_set",&obj0,&obj1)) SWIG_fail;
30198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30199 if (!SWIG_IsOK(res1)) {
30200 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_init_temperature_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30203 ecode2 = SWIG_AsVal_double(obj1, &val2);
30204 if (!SWIG_IsOK(ecode2)) {
30205 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_init_temperature_set" "', argument " "2"" of type '" "double""'");
30207 arg2 =
static_cast< double >(val2);
30208 if (arg1) (arg1)->init_temperature = arg2;
30209 resultobj = SWIG_Py_Void();
30216 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_init_temperature_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30217 PyObject *resultobj = 0;
30221 PyObject * obj0 = 0 ;
30224 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_init_temperature_get",&obj0)) SWIG_fail;
30225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30226 if (!SWIG_IsOK(res1)) {
30227 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_init_temperature_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30230 result = (double) ((arg1)->init_temperature);
30231 resultobj = SWIG_From_double(static_cast< double >(result));
30238 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_temperature_decay_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30239 PyObject *resultobj = 0;
30246 PyObject * obj0 = 0 ;
30247 PyObject * obj1 = 0 ;
30249 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_temperature_decay_set",&obj0,&obj1)) SWIG_fail;
30250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30251 if (!SWIG_IsOK(res1)) {
30252 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_temperature_decay_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30255 ecode2 = SWIG_AsVal_double(obj1, &val2);
30256 if (!SWIG_IsOK(ecode2)) {
30257 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_temperature_decay_set" "', argument " "2"" of type '" "double""'");
30259 arg2 =
static_cast< double >(val2);
30260 if (arg1) (arg1)->temperature_decay = arg2;
30261 resultobj = SWIG_Py_Void();
30268 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_temperature_decay_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30269 PyObject *resultobj = 0;
30273 PyObject * obj0 = 0 ;
30276 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_temperature_decay_get",&obj0)) SWIG_fail;
30277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30278 if (!SWIG_IsOK(res1)) {
30279 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_temperature_decay_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30282 result = (double) ((arg1)->temperature_decay);
30283 resultobj = SWIG_From_double(static_cast< double >(result));
30290 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_n_iter_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30291 PyObject *resultobj = 0;
30298 PyObject * obj0 = 0 ;
30299 PyObject * obj1 = 0 ;
30301 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_n_iter_set",&obj0,&obj1)) SWIG_fail;
30302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30303 if (!SWIG_IsOK(res1)) {
30304 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_n_iter_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30307 ecode2 = SWIG_AsVal_int(obj1, &val2);
30308 if (!SWIG_IsOK(ecode2)) {
30309 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_n_iter_set" "', argument " "2"" of type '" "int""'");
30311 arg2 =
static_cast< int >(val2);
30312 if (arg1) (arg1)->n_iter = arg2;
30313 resultobj = SWIG_Py_Void();
30320 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_n_iter_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30321 PyObject *resultobj = 0;
30325 PyObject * obj0 = 0 ;
30328 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_n_iter_get",&obj0)) SWIG_fail;
30329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30330 if (!SWIG_IsOK(res1)) {
30331 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_n_iter_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30334 result = (int) ((arg1)->n_iter);
30335 resultobj = SWIG_From_int(static_cast< int >(result));
30342 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_n_redo_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30343 PyObject *resultobj = 0;
30350 PyObject * obj0 = 0 ;
30351 PyObject * obj1 = 0 ;
30353 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_n_redo_set",&obj0,&obj1)) SWIG_fail;
30354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30355 if (!SWIG_IsOK(res1)) {
30356 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_n_redo_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30359 ecode2 = SWIG_AsVal_int(obj1, &val2);
30360 if (!SWIG_IsOK(ecode2)) {
30361 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_n_redo_set" "', argument " "2"" of type '" "int""'");
30363 arg2 =
static_cast< int >(val2);
30364 if (arg1) (arg1)->n_redo = arg2;
30365 resultobj = SWIG_Py_Void();
30372 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_n_redo_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30373 PyObject *resultobj = 0;
30377 PyObject * obj0 = 0 ;
30380 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_n_redo_get",&obj0)) SWIG_fail;
30381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30382 if (!SWIG_IsOK(res1)) {
30383 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_n_redo_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30386 result = (int) ((arg1)->n_redo);
30387 resultobj = SWIG_From_int(static_cast< int >(result));
30394 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_seed_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30395 PyObject *resultobj = 0;
30402 PyObject * obj0 = 0 ;
30403 PyObject * obj1 = 0 ;
30405 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_seed_set",&obj0,&obj1)) SWIG_fail;
30406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30407 if (!SWIG_IsOK(res1)) {
30408 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_seed_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30411 ecode2 = SWIG_AsVal_int(obj1, &val2);
30412 if (!SWIG_IsOK(ecode2)) {
30413 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_seed_set" "', argument " "2"" of type '" "int""'");
30415 arg2 =
static_cast< int >(val2);
30416 if (arg1) (arg1)->seed = arg2;
30417 resultobj = SWIG_Py_Void();
30424 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_seed_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30425 PyObject *resultobj = 0;
30429 PyObject * obj0 = 0 ;
30432 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_seed_get",&obj0)) SWIG_fail;
30433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30434 if (!SWIG_IsOK(res1)) {
30435 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_seed_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30438 result = (int) ((arg1)->seed);
30439 resultobj = SWIG_From_int(static_cast< int >(result));
30446 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30447 PyObject *resultobj = 0;
30454 PyObject * obj0 = 0 ;
30455 PyObject * obj1 = 0 ;
30457 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_verbose_set",&obj0,&obj1)) SWIG_fail;
30458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30459 if (!SWIG_IsOK(res1)) {
30460 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_verbose_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30463 ecode2 = SWIG_AsVal_int(obj1, &val2);
30464 if (!SWIG_IsOK(ecode2)) {
30465 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_verbose_set" "', argument " "2"" of type '" "int""'");
30467 arg2 =
static_cast< int >(val2);
30468 if (arg1) (arg1)->verbose = arg2;
30469 resultobj = SWIG_Py_Void();
30476 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30477 PyObject *resultobj = 0;
30481 PyObject * obj0 = 0 ;
30484 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_verbose_get",&obj0)) SWIG_fail;
30485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30486 if (!SWIG_IsOK(res1)) {
30487 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_verbose_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30490 result = (int) ((arg1)->verbose);
30491 resultobj = SWIG_From_int(static_cast< int >(result));
30498 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_only_bit_flips_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30499 PyObject *resultobj = 0;
30506 PyObject * obj0 = 0 ;
30507 PyObject * obj1 = 0 ;
30509 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_only_bit_flips_set",&obj0,&obj1)) SWIG_fail;
30510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30511 if (!SWIG_IsOK(res1)) {
30512 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_only_bit_flips_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30515 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30516 if (!SWIG_IsOK(ecode2)) {
30517 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_only_bit_flips_set" "', argument " "2"" of type '" "bool""'");
30519 arg2 =
static_cast< bool >(val2);
30520 if (arg1) (arg1)->only_bit_flips = arg2;
30521 resultobj = SWIG_Py_Void();
30528 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_only_bit_flips_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30529 PyObject *resultobj = 0;
30533 PyObject * obj0 = 0 ;
30536 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_only_bit_flips_get",&obj0)) SWIG_fail;
30537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30538 if (!SWIG_IsOK(res1)) {
30539 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_only_bit_flips_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30542 result = (bool) ((arg1)->only_bit_flips);
30543 resultobj = SWIG_From_bool(static_cast< bool >(result));
30550 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_init_random_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30551 PyObject *resultobj = 0;
30558 PyObject * obj0 = 0 ;
30559 PyObject * obj1 = 0 ;
30561 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingParameters_init_random_set",&obj0,&obj1)) SWIG_fail;
30562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30563 if (!SWIG_IsOK(res1)) {
30564 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_init_random_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30567 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30568 if (!SWIG_IsOK(ecode2)) {
30569 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingParameters_init_random_set" "', argument " "2"" of type '" "bool""'");
30571 arg2 =
static_cast< bool >(val2);
30572 if (arg1) (arg1)->init_random = arg2;
30573 resultobj = SWIG_Py_Void();
30580 SWIGINTERN PyObject *_wrap_SimulatedAnnealingParameters_init_random_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30581 PyObject *resultobj = 0;
30585 PyObject * obj0 = 0 ;
30588 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingParameters_init_random_get",&obj0)) SWIG_fail;
30589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0 );
30590 if (!SWIG_IsOK(res1)) {
30591 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingParameters_init_random_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30594 result = (bool) ((arg1)->init_random);
30595 resultobj = SWIG_From_bool(static_cast< bool >(result));
30602 SWIGINTERN PyObject *_wrap_new_SimulatedAnnealingParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30603 PyObject *resultobj = 0;
30606 if (!PyArg_ParseTuple(args,(
char *)
":new_SimulatedAnnealingParameters")) SWIG_fail;
30608 Py_BEGIN_ALLOW_THREADS
30612 PyEval_RestoreThread(_save);
30613 PyErr_SetString(PyExc_RuntimeError, e.
what());
30616 Py_END_ALLOW_THREADS
30618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__SimulatedAnnealingParameters, SWIG_POINTER_NEW | 0 );
30625 SWIGINTERN PyObject *_wrap_delete_SimulatedAnnealingParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30626 PyObject *resultobj = 0;
30630 PyObject * obj0 = 0 ;
30632 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_SimulatedAnnealingParameters",&obj0)) SWIG_fail;
30633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingParameters, SWIG_POINTER_DISOWN | 0 );
30634 if (!SWIG_IsOK(res1)) {
30635 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_SimulatedAnnealingParameters" "', argument " "1"" of type '" "faiss::SimulatedAnnealingParameters *""'");
30639 resultobj = SWIG_Py_Void();
30646 SWIGINTERN PyObject *SimulatedAnnealingParameters_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30648 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
30649 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__SimulatedAnnealingParameters, SWIG_NewClientData(obj));
30650 return SWIG_Py_Void();
30653 SWIGINTERN PyObject *_wrap_PermutationObjective_n_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30654 PyObject *resultobj = 0;
30661 PyObject * obj0 = 0 ;
30662 PyObject * obj1 = 0 ;
30664 if (!PyArg_ParseTuple(args,(
char *)
"OO:PermutationObjective_n_set",&obj0,&obj1)) SWIG_fail;
30665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PermutationObjective, 0 | 0 );
30666 if (!SWIG_IsOK(res1)) {
30667 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PermutationObjective_n_set" "', argument " "1"" of type '" "faiss::PermutationObjective *""'");
30670 ecode2 = SWIG_AsVal_int(obj1, &val2);
30671 if (!SWIG_IsOK(ecode2)) {
30672 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PermutationObjective_n_set" "', argument " "2"" of type '" "int""'");
30674 arg2 =
static_cast< int >(val2);
30675 if (arg1) (arg1)->n = arg2;
30676 resultobj = SWIG_Py_Void();
30683 SWIGINTERN PyObject *_wrap_PermutationObjective_n_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30684 PyObject *resultobj = 0;
30688 PyObject * obj0 = 0 ;
30691 if (!PyArg_ParseTuple(args,(
char *)
"O:PermutationObjective_n_get",&obj0)) SWIG_fail;
30692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PermutationObjective, 0 | 0 );
30693 if (!SWIG_IsOK(res1)) {
30694 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PermutationObjective_n_get" "', argument " "1"" of type '" "faiss::PermutationObjective *""'");
30697 result = (int) ((arg1)->n);
30698 resultobj = SWIG_From_int(static_cast< int >(result));
30705 SWIGINTERN PyObject *_wrap_PermutationObjective_compute_cost(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30706 PyObject *resultobj = 0;
30708 int *arg2 = (
int *) 0 ;
30713 PyObject * obj0 = 0 ;
30714 PyObject * obj1 = 0 ;
30717 if (!PyArg_ParseTuple(args,(
char *)
"OO:PermutationObjective_compute_cost",&obj0,&obj1)) SWIG_fail;
30718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PermutationObjective, 0 | 0 );
30719 if (!SWIG_IsOK(res1)) {
30720 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PermutationObjective_compute_cost" "', argument " "1"" of type '" "faiss::PermutationObjective const *""'");
30723 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
30724 if (!SWIG_IsOK(res2)) {
30725 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PermutationObjective_compute_cost" "', argument " "2"" of type '" "int const *""'");
30727 arg2 =
reinterpret_cast< int *
>(argp2);
30729 Py_BEGIN_ALLOW_THREADS
30733 PyEval_RestoreThread(_save);
30734 PyErr_SetString(PyExc_RuntimeError, e.
what());
30737 Py_END_ALLOW_THREADS
30739 resultobj = SWIG_From_double(static_cast< double >(result));
30746 SWIGINTERN PyObject *_wrap_PermutationObjective_cost_update(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30747 PyObject *resultobj = 0;
30749 int *arg2 = (
int *) 0 ;
30760 PyObject * obj0 = 0 ;
30761 PyObject * obj1 = 0 ;
30762 PyObject * obj2 = 0 ;
30763 PyObject * obj3 = 0 ;
30766 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:PermutationObjective_cost_update",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PermutationObjective, 0 | 0 );
30768 if (!SWIG_IsOK(res1)) {
30769 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PermutationObjective_cost_update" "', argument " "1"" of type '" "faiss::PermutationObjective const *""'");
30772 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
30773 if (!SWIG_IsOK(res2)) {
30774 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PermutationObjective_cost_update" "', argument " "2"" of type '" "int const *""'");
30776 arg2 =
reinterpret_cast< int *
>(argp2);
30777 ecode3 = SWIG_AsVal_int(obj2, &val3);
30778 if (!SWIG_IsOK(ecode3)) {
30779 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "PermutationObjective_cost_update" "', argument " "3"" of type '" "int""'");
30781 arg3 =
static_cast< int >(val3);
30782 ecode4 = SWIG_AsVal_int(obj3, &val4);
30783 if (!SWIG_IsOK(ecode4)) {
30784 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "PermutationObjective_cost_update" "', argument " "4"" of type '" "int""'");
30786 arg4 =
static_cast< int >(val4);
30788 Py_BEGIN_ALLOW_THREADS
30792 PyEval_RestoreThread(_save);
30793 PyErr_SetString(PyExc_RuntimeError, e.
what());
30796 Py_END_ALLOW_THREADS
30798 resultobj = SWIG_From_double(static_cast< double >(result));
30805 SWIGINTERN PyObject *_wrap_delete_PermutationObjective(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30806 PyObject *resultobj = 0;
30810 PyObject * obj0 = 0 ;
30812 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_PermutationObjective",&obj0)) SWIG_fail;
30813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PermutationObjective, SWIG_POINTER_DISOWN | 0 );
30814 if (!SWIG_IsOK(res1)) {
30815 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_PermutationObjective" "', argument " "1"" of type '" "faiss::PermutationObjective *""'");
30819 Py_BEGIN_ALLOW_THREADS
30823 PyEval_RestoreThread(_save);
30824 PyErr_SetString(PyExc_RuntimeError, e.
what());
30827 Py_END_ALLOW_THREADS
30829 resultobj = SWIG_Py_Void();
30836 SWIGINTERN PyObject *PermutationObjective_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30838 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
30839 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__PermutationObjective, SWIG_NewClientData(obj));
30840 return SWIG_Py_Void();
30843 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_dis_weight_factor_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30844 PyObject *resultobj = 0;
30851 PyObject * obj0 = 0 ;
30852 PyObject * obj1 = 0 ;
30854 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReproduceDistancesObjective_dis_weight_factor_set",&obj0,&obj1)) SWIG_fail;
30855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
30856 if (!SWIG_IsOK(res1)) {
30857 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_dis_weight_factor_set" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
30860 ecode2 = SWIG_AsVal_double(obj1, &val2);
30861 if (!SWIG_IsOK(ecode2)) {
30862 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReproduceDistancesObjective_dis_weight_factor_set" "', argument " "2"" of type '" "double""'");
30864 arg2 =
static_cast< double >(val2);
30865 if (arg1) (arg1)->dis_weight_factor = arg2;
30866 resultobj = SWIG_Py_Void();
30873 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_dis_weight_factor_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30874 PyObject *resultobj = 0;
30878 PyObject * obj0 = 0 ;
30881 if (!PyArg_ParseTuple(args,(
char *)
"O:ReproduceDistancesObjective_dis_weight_factor_get",&obj0)) SWIG_fail;
30882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
30883 if (!SWIG_IsOK(res1)) {
30884 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_dis_weight_factor_get" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
30887 result = (double) ((arg1)->dis_weight_factor);
30888 resultobj = SWIG_From_double(static_cast< double >(result));
30895 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_sqr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30896 PyObject *resultobj = 0;
30900 PyObject * obj0 = 0 ;
30903 if (!PyArg_ParseTuple(args,(
char *)
"O:ReproduceDistancesObjective_sqr",&obj0)) SWIG_fail;
30904 ecode1 = SWIG_AsVal_double(obj0, &val1);
30905 if (!SWIG_IsOK(ecode1)) {
30906 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "ReproduceDistancesObjective_sqr" "', argument " "1"" of type '" "double""'");
30908 arg1 =
static_cast< double >(val1);
30910 Py_BEGIN_ALLOW_THREADS
30912 result = (double)faiss::ReproduceDistancesObjective::sqr(arg1);
30914 PyEval_RestoreThread(_save);
30915 PyErr_SetString(PyExc_RuntimeError, e.
what());
30918 Py_END_ALLOW_THREADS
30920 resultobj = SWIG_From_double(static_cast< double >(result));
30927 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_dis_weight(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30928 PyObject *resultobj = 0;
30935 PyObject * obj0 = 0 ;
30936 PyObject * obj1 = 0 ;
30939 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReproduceDistancesObjective_dis_weight",&obj0,&obj1)) SWIG_fail;
30940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
30941 if (!SWIG_IsOK(res1)) {
30942 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_dis_weight" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective const *""'");
30945 ecode2 = SWIG_AsVal_double(obj1, &val2);
30946 if (!SWIG_IsOK(ecode2)) {
30947 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReproduceDistancesObjective_dis_weight" "', argument " "2"" of type '" "double""'");
30949 arg2 =
static_cast< double >(val2);
30951 Py_BEGIN_ALLOW_THREADS
30955 PyEval_RestoreThread(_save);
30956 PyErr_SetString(PyExc_RuntimeError, e.
what());
30959 Py_END_ALLOW_THREADS
30961 resultobj = SWIG_From_double(static_cast< double >(result));
30968 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_source_dis_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30969 PyObject *resultobj = 0;
30971 std::vector< double > *arg2 = (std::vector< double > *) 0 ;
30976 PyObject * obj0 = 0 ;
30977 PyObject * obj1 = 0 ;
30979 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReproduceDistancesObjective_source_dis_set",&obj0,&obj1)) SWIG_fail;
30980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
30981 if (!SWIG_IsOK(res1)) {
30982 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_source_dis_set" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
30985 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
30986 if (!SWIG_IsOK(res2)) {
30987 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReproduceDistancesObjective_source_dis_set" "', argument " "2"" of type '" "std::vector< double > *""'");
30989 arg2 =
reinterpret_cast< std::vector< double > *
>(argp2);
30990 if (arg1) (arg1)->source_dis = *arg2;
30991 resultobj = SWIG_Py_Void();
30998 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_source_dis_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
30999 PyObject *resultobj = 0;
31003 PyObject * obj0 = 0 ;
31004 std::vector< double > *result = 0 ;
31006 if (!PyArg_ParseTuple(args,(
char *)
"O:ReproduceDistancesObjective_source_dis_get",&obj0)) SWIG_fail;
31007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
31008 if (!SWIG_IsOK(res1)) {
31009 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_source_dis_get" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
31012 result = (std::vector< double > *)& ((arg1)->source_dis);
31013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
31020 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_target_dis_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31021 PyObject *resultobj = 0;
31023 double *arg2 = (
double *) 0 ;
31028 PyObject * obj0 = 0 ;
31029 PyObject * obj1 = 0 ;
31031 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReproduceDistancesObjective_target_dis_set",&obj0,&obj1)) SWIG_fail;
31032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
31033 if (!SWIG_IsOK(res1)) {
31034 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_target_dis_set" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
31037 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 );
31038 if (!SWIG_IsOK(res2)) {
31039 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReproduceDistancesObjective_target_dis_set" "', argument " "2"" of type '" "double const *""'");
31041 arg2 =
reinterpret_cast< double *
>(argp2);
31042 if (arg1) (arg1)->target_dis = (
double const *)arg2;
31043 resultobj = SWIG_Py_Void();
31050 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_target_dis_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31051 PyObject *resultobj = 0;
31055 PyObject * obj0 = 0 ;
31056 double *result = 0 ;
31058 if (!PyArg_ParseTuple(args,(
char *)
"O:ReproduceDistancesObjective_target_dis_get",&obj0)) SWIG_fail;
31059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
31060 if (!SWIG_IsOK(res1)) {
31061 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_target_dis_get" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
31064 result = (
double *) ((arg1)->target_dis);
31065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 );
31072 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_weights_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31073 PyObject *resultobj = 0;
31075 std::vector< double > *arg2 = (std::vector< double > *) 0 ;
31080 PyObject * obj0 = 0 ;
31081 PyObject * obj1 = 0 ;
31083 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReproduceDistancesObjective_weights_set",&obj0,&obj1)) SWIG_fail;
31084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
31085 if (!SWIG_IsOK(res1)) {
31086 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_weights_set" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
31089 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
31090 if (!SWIG_IsOK(res2)) {
31091 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReproduceDistancesObjective_weights_set" "', argument " "2"" of type '" "std::vector< double > *""'");
31093 arg2 =
reinterpret_cast< std::vector< double > *
>(argp2);
31094 if (arg1) (arg1)->weights = *arg2;
31095 resultobj = SWIG_Py_Void();
31102 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_weights_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31103 PyObject *resultobj = 0;
31107 PyObject * obj0 = 0 ;
31108 std::vector< double > *result = 0 ;
31110 if (!PyArg_ParseTuple(args,(
char *)
"O:ReproduceDistancesObjective_weights_get",&obj0)) SWIG_fail;
31111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
31112 if (!SWIG_IsOK(res1)) {
31113 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_weights_get" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
31116 result = (std::vector< double > *)& ((arg1)->weights);
31117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
31124 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_get_source_dis(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31125 PyObject *resultobj = 0;
31135 PyObject * obj0 = 0 ;
31136 PyObject * obj1 = 0 ;
31137 PyObject * obj2 = 0 ;
31140 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ReproduceDistancesObjective_get_source_dis",&obj0,&obj1,&obj2)) SWIG_fail;
31141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
31142 if (!SWIG_IsOK(res1)) {
31143 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_get_source_dis" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective const *""'");
31146 ecode2 = SWIG_AsVal_int(obj1, &val2);
31147 if (!SWIG_IsOK(ecode2)) {
31148 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReproduceDistancesObjective_get_source_dis" "', argument " "2"" of type '" "int""'");
31150 arg2 =
static_cast< int >(val2);
31151 ecode3 = SWIG_AsVal_int(obj2, &val3);
31152 if (!SWIG_IsOK(ecode3)) {
31153 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ReproduceDistancesObjective_get_source_dis" "', argument " "3"" of type '" "int""'");
31155 arg3 =
static_cast< int >(val3);
31157 Py_BEGIN_ALLOW_THREADS
31161 PyEval_RestoreThread(_save);
31162 PyErr_SetString(PyExc_RuntimeError, e.
what());
31165 Py_END_ALLOW_THREADS
31167 resultobj = SWIG_From_double(static_cast< double >(result));
31174 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_compute_cost(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31175 PyObject *resultobj = 0;
31177 int *arg2 = (
int *) 0 ;
31182 PyObject * obj0 = 0 ;
31183 PyObject * obj1 = 0 ;
31186 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReproduceDistancesObjective_compute_cost",&obj0,&obj1)) SWIG_fail;
31187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
31188 if (!SWIG_IsOK(res1)) {
31189 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_compute_cost" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective const *""'");
31192 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
31193 if (!SWIG_IsOK(res2)) {
31194 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReproduceDistancesObjective_compute_cost" "', argument " "2"" of type '" "int const *""'");
31196 arg2 =
reinterpret_cast< int *
>(argp2);
31198 Py_BEGIN_ALLOW_THREADS
31202 PyEval_RestoreThread(_save);
31203 PyErr_SetString(PyExc_RuntimeError, e.
what());
31206 Py_END_ALLOW_THREADS
31208 resultobj = SWIG_From_double(static_cast< double >(result));
31215 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_cost_update(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31216 PyObject *resultobj = 0;
31218 int *arg2 = (
int *) 0 ;
31229 PyObject * obj0 = 0 ;
31230 PyObject * obj1 = 0 ;
31231 PyObject * obj2 = 0 ;
31232 PyObject * obj3 = 0 ;
31235 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ReproduceDistancesObjective_cost_update",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
31237 if (!SWIG_IsOK(res1)) {
31238 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_cost_update" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective const *""'");
31241 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
31242 if (!SWIG_IsOK(res2)) {
31243 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReproduceDistancesObjective_cost_update" "', argument " "2"" of type '" "int const *""'");
31245 arg2 =
reinterpret_cast< int *
>(argp2);
31246 ecode3 = SWIG_AsVal_int(obj2, &val3);
31247 if (!SWIG_IsOK(ecode3)) {
31248 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ReproduceDistancesObjective_cost_update" "', argument " "3"" of type '" "int""'");
31250 arg3 =
static_cast< int >(val3);
31251 ecode4 = SWIG_AsVal_int(obj3, &val4);
31252 if (!SWIG_IsOK(ecode4)) {
31253 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ReproduceDistancesObjective_cost_update" "', argument " "4"" of type '" "int""'");
31255 arg4 =
static_cast< int >(val4);
31257 Py_BEGIN_ALLOW_THREADS
31261 PyEval_RestoreThread(_save);
31262 PyErr_SetString(PyExc_RuntimeError, e.
what());
31265 Py_END_ALLOW_THREADS
31267 resultobj = SWIG_From_double(static_cast< double >(result));
31274 SWIGINTERN PyObject *_wrap_new_ReproduceDistancesObjective(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31275 PyObject *resultobj = 0;
31277 double *arg2 = (
double *) 0 ;
31278 double *arg3 = (
double *) 0 ;
31288 PyObject * obj0 = 0 ;
31289 PyObject * obj1 = 0 ;
31290 PyObject * obj2 = 0 ;
31291 PyObject * obj3 = 0 ;
31294 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_ReproduceDistancesObjective",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31295 ecode1 = SWIG_AsVal_int(obj0, &val1);
31296 if (!SWIG_IsOK(ecode1)) {
31297 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_ReproduceDistancesObjective" "', argument " "1"" of type '" "int""'");
31299 arg1 =
static_cast< int >(val1);
31300 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 );
31301 if (!SWIG_IsOK(res2)) {
31302 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_ReproduceDistancesObjective" "', argument " "2"" of type '" "double const *""'");
31304 arg2 =
reinterpret_cast< double *
>(argp2);
31305 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_double, 0 | 0 );
31306 if (!SWIG_IsOK(res3)) {
31307 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_ReproduceDistancesObjective" "', argument " "3"" of type '" "double const *""'");
31309 arg3 =
reinterpret_cast< double *
>(argp3);
31310 ecode4 = SWIG_AsVal_double(obj3, &val4);
31311 if (!SWIG_IsOK(ecode4)) {
31312 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_ReproduceDistancesObjective" "', argument " "4"" of type '" "double""'");
31314 arg4 =
static_cast< double >(val4);
31316 Py_BEGIN_ALLOW_THREADS
31320 PyEval_RestoreThread(_save);
31321 PyErr_SetString(PyExc_RuntimeError, e.
what());
31324 Py_END_ALLOW_THREADS
31326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ReproduceDistancesObjective, SWIG_POINTER_NEW | 0 );
31333 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_compute_mean_stdev(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31334 PyObject *resultobj = 0;
31335 double *arg1 = (
double *) 0 ;
31337 double *arg3 = (
double *) 0 ;
31338 double *arg4 = (
double *) 0 ;
31347 PyObject * obj0 = 0 ;
31348 PyObject * obj1 = 0 ;
31349 PyObject * obj2 = 0 ;
31350 PyObject * obj3 = 0 ;
31352 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ReproduceDistancesObjective_compute_mean_stdev",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_double, 0 | 0 );
31354 if (!SWIG_IsOK(res1)) {
31355 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_compute_mean_stdev" "', argument " "1"" of type '" "double const *""'");
31357 arg1 =
reinterpret_cast< double *
>(argp1);
31358 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
31359 if (!SWIG_IsOK(ecode2)) {
31360 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReproduceDistancesObjective_compute_mean_stdev" "', argument " "2"" of type '" "size_t""'");
31362 arg2 =
static_cast< size_t >(val2);
31363 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_double, 0 | 0 );
31364 if (!SWIG_IsOK(res3)) {
31365 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ReproduceDistancesObjective_compute_mean_stdev" "', argument " "3"" of type '" "double *""'");
31367 arg3 =
reinterpret_cast< double *
>(argp3);
31368 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_double, 0 | 0 );
31369 if (!SWIG_IsOK(res4)) {
31370 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ReproduceDistancesObjective_compute_mean_stdev" "', argument " "4"" of type '" "double *""'");
31372 arg4 =
reinterpret_cast< double *
>(argp4);
31374 Py_BEGIN_ALLOW_THREADS
31376 faiss::ReproduceDistancesObjective::compute_mean_stdev((
double const *)arg1,arg2,arg3,arg4);
31378 PyEval_RestoreThread(_save);
31379 PyErr_SetString(PyExc_RuntimeError, e.
what());
31382 Py_END_ALLOW_THREADS
31384 resultobj = SWIG_Py_Void();
31391 SWIGINTERN PyObject *_wrap_ReproduceDistancesObjective_set_affine_target_dis(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31392 PyObject *resultobj = 0;
31394 double *arg2 = (
double *) 0 ;
31399 PyObject * obj0 = 0 ;
31400 PyObject * obj1 = 0 ;
31402 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReproduceDistancesObjective_set_affine_target_dis",&obj0,&obj1)) SWIG_fail;
31403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, 0 | 0 );
31404 if (!SWIG_IsOK(res1)) {
31405 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReproduceDistancesObjective_set_affine_target_dis" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
31408 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 );
31409 if (!SWIG_IsOK(res2)) {
31410 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReproduceDistancesObjective_set_affine_target_dis" "', argument " "2"" of type '" "double const *""'");
31412 arg2 =
reinterpret_cast< double *
>(argp2);
31414 Py_BEGIN_ALLOW_THREADS
31416 (arg1)->set_affine_target_dis((
double const *)arg2);
31418 PyEval_RestoreThread(_save);
31419 PyErr_SetString(PyExc_RuntimeError, e.
what());
31422 Py_END_ALLOW_THREADS
31424 resultobj = SWIG_Py_Void();
31431 SWIGINTERN PyObject *_wrap_delete_ReproduceDistancesObjective(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31432 PyObject *resultobj = 0;
31436 PyObject * obj0 = 0 ;
31438 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ReproduceDistancesObjective",&obj0)) SWIG_fail;
31439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReproduceDistancesObjective, SWIG_POINTER_DISOWN | 0 );
31440 if (!SWIG_IsOK(res1)) {
31441 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ReproduceDistancesObjective" "', argument " "1"" of type '" "faiss::ReproduceDistancesObjective *""'");
31445 Py_BEGIN_ALLOW_THREADS
31449 PyEval_RestoreThread(_save);
31450 PyErr_SetString(PyExc_RuntimeError, e.
what());
31453 Py_END_ALLOW_THREADS
31455 resultobj = SWIG_Py_Void();
31462 SWIGINTERN PyObject *ReproduceDistancesObjective_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31464 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
31465 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ReproduceDistancesObjective, SWIG_NewClientData(obj));
31466 return SWIG_Py_Void();
31469 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_obj_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31470 PyObject *resultobj = 0;
31477 PyObject * obj0 = 0 ;
31478 PyObject * obj1 = 0 ;
31480 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingOptimizer_obj_set",&obj0,&obj1)) SWIG_fail;
31481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
31482 if (!SWIG_IsOK(res1)) {
31483 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_obj_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
31486 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__PermutationObjective, SWIG_POINTER_DISOWN | 0 );
31487 if (!SWIG_IsOK(res2)) {
31488 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SimulatedAnnealingOptimizer_obj_set" "', argument " "2"" of type '" "faiss::PermutationObjective *""'");
31491 if (arg1) (arg1)->obj = arg2;
31492 resultobj = SWIG_Py_Void();
31499 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_obj_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31500 PyObject *resultobj = 0;
31504 PyObject * obj0 = 0 ;
31507 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingOptimizer_obj_get",&obj0)) SWIG_fail;
31508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
31509 if (!SWIG_IsOK(res1)) {
31510 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_obj_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
31514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PermutationObjective, 0 | 0 );
31521 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_n_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31522 PyObject *resultobj = 0;
31529 PyObject * obj0 = 0 ;
31530 PyObject * obj1 = 0 ;
31532 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingOptimizer_n_set",&obj0,&obj1)) SWIG_fail;
31533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
31534 if (!SWIG_IsOK(res1)) {
31535 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_n_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
31538 ecode2 = SWIG_AsVal_int(obj1, &val2);
31539 if (!SWIG_IsOK(ecode2)) {
31540 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingOptimizer_n_set" "', argument " "2"" of type '" "int""'");
31542 arg2 =
static_cast< int >(val2);
31543 if (arg1) (arg1)->n = arg2;
31544 resultobj = SWIG_Py_Void();
31551 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_n_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31552 PyObject *resultobj = 0;
31556 PyObject * obj0 = 0 ;
31559 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingOptimizer_n_get",&obj0)) SWIG_fail;
31560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
31561 if (!SWIG_IsOK(res1)) {
31562 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_n_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
31565 result = (int) ((arg1)->n);
31566 resultobj = SWIG_From_int(static_cast< int >(result));
31573 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_logfile_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31574 PyObject *resultobj = 0;
31576 FILE *arg2 = (FILE *) 0 ;
31581 PyObject * obj0 = 0 ;
31582 PyObject * obj1 = 0 ;
31584 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingOptimizer_logfile_set",&obj0,&obj1)) SWIG_fail;
31585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
31586 if (!SWIG_IsOK(res1)) {
31587 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_logfile_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
31590 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_FILE, SWIG_POINTER_DISOWN | 0 );
31591 if (!SWIG_IsOK(res2)) {
31592 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SimulatedAnnealingOptimizer_logfile_set" "', argument " "2"" of type '" "FILE *""'");
31594 arg2 =
reinterpret_cast< FILE *
>(argp2);
31595 if (arg1) (arg1)->logfile = arg2;
31596 resultobj = SWIG_Py_Void();
31603 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_logfile_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31604 PyObject *resultobj = 0;
31608 PyObject * obj0 = 0 ;
31611 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingOptimizer_logfile_get",&obj0)) SWIG_fail;
31612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
31613 if (!SWIG_IsOK(res1)) {
31614 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_logfile_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
31617 result = (FILE *) ((arg1)->logfile);
31618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0 );
31625 SWIGINTERN PyObject *_wrap_new_SimulatedAnnealingOptimizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31626 PyObject *resultobj = 0;
31633 PyObject * obj0 = 0 ;
31634 PyObject * obj1 = 0 ;
31637 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_SimulatedAnnealingOptimizer",&obj0,&obj1)) SWIG_fail;
31638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PermutationObjective, 0 | 0 );
31639 if (!SWIG_IsOK(res1)) {
31640 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_SimulatedAnnealingOptimizer" "', argument " "1"" of type '" "faiss::PermutationObjective *""'");
31643 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__SimulatedAnnealingParameters, 0 | 0);
31644 if (!SWIG_IsOK(res2)) {
31645 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_SimulatedAnnealingOptimizer" "', argument " "2"" of type '" "faiss::SimulatedAnnealingParameters const &""'");
31648 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_SimulatedAnnealingOptimizer" "', argument " "2"" of type '" "faiss::SimulatedAnnealingParameters const &""'");
31652 Py_BEGIN_ALLOW_THREADS
31656 PyEval_RestoreThread(_save);
31657 PyErr_SetString(PyExc_RuntimeError, e.
what());
31660 Py_END_ALLOW_THREADS
31662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, SWIG_POINTER_NEW | 0 );
31669 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_rnd_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31670 PyObject *resultobj = 0;
31677 PyObject * obj0 = 0 ;
31678 PyObject * obj1 = 0 ;
31680 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingOptimizer_rnd_set",&obj0,&obj1)) SWIG_fail;
31681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
31682 if (!SWIG_IsOK(res1)) {
31683 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_rnd_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
31686 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__RandomGenerator, SWIG_POINTER_DISOWN | 0 );
31687 if (!SWIG_IsOK(res2)) {
31688 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SimulatedAnnealingOptimizer_rnd_set" "', argument " "2"" of type '" "faiss::RandomGenerator *""'");
31691 if (arg1) (arg1)->rnd = arg2;
31692 resultobj = SWIG_Py_Void();
31699 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_rnd_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31700 PyObject *resultobj = 0;
31704 PyObject * obj0 = 0 ;
31707 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingOptimizer_rnd_get",&obj0)) SWIG_fail;
31708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
31709 if (!SWIG_IsOK(res1)) {
31710 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_rnd_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
31714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
31721 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_init_cost_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31722 PyObject *resultobj = 0;
31729 PyObject * obj0 = 0 ;
31730 PyObject * obj1 = 0 ;
31732 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingOptimizer_init_cost_set",&obj0,&obj1)) SWIG_fail;
31733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
31734 if (!SWIG_IsOK(res1)) {
31735 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_init_cost_set" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
31738 ecode2 = SWIG_AsVal_double(obj1, &val2);
31739 if (!SWIG_IsOK(ecode2)) {
31740 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SimulatedAnnealingOptimizer_init_cost_set" "', argument " "2"" of type '" "double""'");
31742 arg2 =
static_cast< double >(val2);
31743 if (arg1) (arg1)->init_cost = arg2;
31744 resultobj = SWIG_Py_Void();
31751 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_init_cost_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31752 PyObject *resultobj = 0;
31756 PyObject * obj0 = 0 ;
31759 if (!PyArg_ParseTuple(args,(
char *)
"O:SimulatedAnnealingOptimizer_init_cost_get",&obj0)) SWIG_fail;
31760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
31761 if (!SWIG_IsOK(res1)) {
31762 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_init_cost_get" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
31765 result = (double) ((arg1)->init_cost);
31766 resultobj = SWIG_From_double(static_cast< double >(result));
31773 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_optimize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31774 PyObject *resultobj = 0;
31776 int *arg2 = (
int *) 0 ;
31781 PyObject * obj0 = 0 ;
31782 PyObject * obj1 = 0 ;
31785 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingOptimizer_optimize",&obj0,&obj1)) SWIG_fail;
31786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
31787 if (!SWIG_IsOK(res1)) {
31788 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_optimize" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
31791 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
31792 if (!SWIG_IsOK(res2)) {
31793 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SimulatedAnnealingOptimizer_optimize" "', argument " "2"" of type '" "int *""'");
31795 arg2 =
reinterpret_cast< int *
>(argp2);
31797 Py_BEGIN_ALLOW_THREADS
31799 result = (double)(arg1)->optimize(arg2);
31801 PyEval_RestoreThread(_save);
31802 PyErr_SetString(PyExc_RuntimeError, e.
what());
31805 Py_END_ALLOW_THREADS
31807 resultobj = SWIG_From_double(static_cast< double >(result));
31814 SWIGINTERN PyObject *_wrap_SimulatedAnnealingOptimizer_run_optimization(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31815 PyObject *resultobj = 0;
31817 int *arg2 = (
int *) 0 ;
31822 PyObject * obj0 = 0 ;
31823 PyObject * obj1 = 0 ;
31826 if (!PyArg_ParseTuple(args,(
char *)
"OO:SimulatedAnnealingOptimizer_run_optimization",&obj0,&obj1)) SWIG_fail;
31827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, 0 | 0 );
31828 if (!SWIG_IsOK(res1)) {
31829 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SimulatedAnnealingOptimizer_run_optimization" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
31832 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
31833 if (!SWIG_IsOK(res2)) {
31834 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SimulatedAnnealingOptimizer_run_optimization" "', argument " "2"" of type '" "int *""'");
31836 arg2 =
reinterpret_cast< int *
>(argp2);
31838 Py_BEGIN_ALLOW_THREADS
31840 result = (double)(arg1)->run_optimization(arg2);
31842 PyEval_RestoreThread(_save);
31843 PyErr_SetString(PyExc_RuntimeError, e.
what());
31846 Py_END_ALLOW_THREADS
31848 resultobj = SWIG_From_double(static_cast< double >(result));
31855 SWIGINTERN PyObject *_wrap_delete_SimulatedAnnealingOptimizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31856 PyObject *resultobj = 0;
31860 PyObject * obj0 = 0 ;
31862 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_SimulatedAnnealingOptimizer",&obj0)) SWIG_fail;
31863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, SWIG_POINTER_DISOWN | 0 );
31864 if (!SWIG_IsOK(res1)) {
31865 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_SimulatedAnnealingOptimizer" "', argument " "1"" of type '" "faiss::SimulatedAnnealingOptimizer *""'");
31869 Py_BEGIN_ALLOW_THREADS
31873 PyEval_RestoreThread(_save);
31874 PyErr_SetString(PyExc_RuntimeError, e.
what());
31877 Py_END_ALLOW_THREADS
31879 resultobj = SWIG_Py_Void();
31886 SWIGINTERN PyObject *SimulatedAnnealingOptimizer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31888 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
31889 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__SimulatedAnnealingOptimizer, SWIG_NewClientData(obj));
31890 return SWIG_Py_Void();
31893 SWIGINTERN PyObject *_wrap_PolysemousTraining_optimization_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31894 PyObject *resultobj = 0;
31901 PyObject * obj0 = 0 ;
31902 PyObject * obj1 = 0 ;
31904 if (!PyArg_ParseTuple(args,(
char *)
"OO:PolysemousTraining_optimization_type_set",&obj0,&obj1)) SWIG_fail;
31905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
31906 if (!SWIG_IsOK(res1)) {
31907 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_optimization_type_set" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
31910 ecode2 = SWIG_AsVal_int(obj1, &val2);
31911 if (!SWIG_IsOK(ecode2)) {
31912 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PolysemousTraining_optimization_type_set" "', argument " "2"" of type '" "faiss::PolysemousTraining::Optimization_type_t""'");
31915 if (arg1) (arg1)->optimization_type = arg2;
31916 resultobj = SWIG_Py_Void();
31923 SWIGINTERN PyObject *_wrap_PolysemousTraining_optimization_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31924 PyObject *resultobj = 0;
31928 PyObject * obj0 = 0 ;
31931 if (!PyArg_ParseTuple(args,(
char *)
"O:PolysemousTraining_optimization_type_get",&obj0)) SWIG_fail;
31932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
31933 if (!SWIG_IsOK(res1)) {
31934 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_optimization_type_get" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
31938 resultobj = SWIG_From_int(static_cast< int >(result));
31945 SWIGINTERN PyObject *_wrap_PolysemousTraining_ntrain_permutation_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31946 PyObject *resultobj = 0;
31953 PyObject * obj0 = 0 ;
31954 PyObject * obj1 = 0 ;
31956 if (!PyArg_ParseTuple(args,(
char *)
"OO:PolysemousTraining_ntrain_permutation_set",&obj0,&obj1)) SWIG_fail;
31957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
31958 if (!SWIG_IsOK(res1)) {
31959 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_ntrain_permutation_set" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
31962 ecode2 = SWIG_AsVal_int(obj1, &val2);
31963 if (!SWIG_IsOK(ecode2)) {
31964 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PolysemousTraining_ntrain_permutation_set" "', argument " "2"" of type '" "int""'");
31966 arg2 =
static_cast< int >(val2);
31967 if (arg1) (arg1)->ntrain_permutation = arg2;
31968 resultobj = SWIG_Py_Void();
31975 SWIGINTERN PyObject *_wrap_PolysemousTraining_ntrain_permutation_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31976 PyObject *resultobj = 0;
31980 PyObject * obj0 = 0 ;
31983 if (!PyArg_ParseTuple(args,(
char *)
"O:PolysemousTraining_ntrain_permutation_get",&obj0)) SWIG_fail;
31984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
31985 if (!SWIG_IsOK(res1)) {
31986 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_ntrain_permutation_get" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
31989 result = (int) ((arg1)->ntrain_permutation);
31990 resultobj = SWIG_From_int(static_cast< int >(result));
31997 SWIGINTERN PyObject *_wrap_PolysemousTraining_dis_weight_factor_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
31998 PyObject *resultobj = 0;
32005 PyObject * obj0 = 0 ;
32006 PyObject * obj1 = 0 ;
32008 if (!PyArg_ParseTuple(args,(
char *)
"OO:PolysemousTraining_dis_weight_factor_set",&obj0,&obj1)) SWIG_fail;
32009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
32010 if (!SWIG_IsOK(res1)) {
32011 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_dis_weight_factor_set" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
32014 ecode2 = SWIG_AsVal_double(obj1, &val2);
32015 if (!SWIG_IsOK(ecode2)) {
32016 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "PolysemousTraining_dis_weight_factor_set" "', argument " "2"" of type '" "double""'");
32018 arg2 =
static_cast< double >(val2);
32019 if (arg1) (arg1)->dis_weight_factor = arg2;
32020 resultobj = SWIG_Py_Void();
32027 SWIGINTERN PyObject *_wrap_PolysemousTraining_dis_weight_factor_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32028 PyObject *resultobj = 0;
32032 PyObject * obj0 = 0 ;
32035 if (!PyArg_ParseTuple(args,(
char *)
"O:PolysemousTraining_dis_weight_factor_get",&obj0)) SWIG_fail;
32036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
32037 if (!SWIG_IsOK(res1)) {
32038 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_dis_weight_factor_get" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
32041 result = (double) ((arg1)->dis_weight_factor);
32042 resultobj = SWIG_From_double(static_cast< double >(result));
32049 SWIGINTERN PyObject *_wrap_PolysemousTraining_log_pattern_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32050 PyObject *resultobj = 0;
32052 std::string *arg2 = 0 ;
32055 int res2 = SWIG_OLDOBJ ;
32056 PyObject * obj0 = 0 ;
32057 PyObject * obj1 = 0 ;
32059 if (!PyArg_ParseTuple(args,(
char *)
"OO:PolysemousTraining_log_pattern_set",&obj0,&obj1)) SWIG_fail;
32060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
32061 if (!SWIG_IsOK(res1)) {
32062 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_log_pattern_set" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
32066 std::string *ptr = (std::string *)0;
32067 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
32068 if (!SWIG_IsOK(res2)) {
32069 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PolysemousTraining_log_pattern_set" "', argument " "2"" of type '" "std::string const &""'");
32072 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "PolysemousTraining_log_pattern_set" "', argument " "2"" of type '" "std::string const &""'");
32076 if (arg1) (arg1)->log_pattern = *arg2;
32077 resultobj = SWIG_Py_Void();
32078 if (SWIG_IsNewObj(res2))
delete arg2;
32081 if (SWIG_IsNewObj(res2))
delete arg2;
32086 SWIGINTERN PyObject *_wrap_PolysemousTraining_log_pattern_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32087 PyObject *resultobj = 0;
32091 PyObject * obj0 = 0 ;
32092 std::string *result = 0 ;
32094 if (!PyArg_ParseTuple(args,(
char *)
"O:PolysemousTraining_log_pattern_get",&obj0)) SWIG_fail;
32095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
32096 if (!SWIG_IsOK(res1)) {
32097 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_log_pattern_get" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
32100 result = (std::string *) & ((arg1)->log_pattern);
32101 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
32108 SWIGINTERN PyObject *_wrap_new_PolysemousTraining(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32109 PyObject *resultobj = 0;
32112 if (!PyArg_ParseTuple(args,(
char *)
":new_PolysemousTraining")) SWIG_fail;
32114 Py_BEGIN_ALLOW_THREADS
32118 PyEval_RestoreThread(_save);
32119 PyErr_SetString(PyExc_RuntimeError, e.
what());
32122 Py_END_ALLOW_THREADS
32124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PolysemousTraining, SWIG_POINTER_NEW | 0 );
32131 SWIGINTERN PyObject *_wrap_PolysemousTraining_optimize_pq_for_hamming(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32132 PyObject *resultobj = 0;
32136 float *arg4 = (
float *) 0 ;
32145 PyObject * obj0 = 0 ;
32146 PyObject * obj1 = 0 ;
32147 PyObject * obj2 = 0 ;
32148 PyObject * obj3 = 0 ;
32150 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:PolysemousTraining_optimize_pq_for_hamming",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
32152 if (!SWIG_IsOK(res1)) {
32153 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_optimize_pq_for_hamming" "', argument " "1"" of type '" "faiss::PolysemousTraining const *""'");
32156 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__ProductQuantizer, 0 );
32157 if (!SWIG_IsOK(res2)) {
32158 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PolysemousTraining_optimize_pq_for_hamming" "', argument " "2"" of type '" "faiss::ProductQuantizer &""'");
32161 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "PolysemousTraining_optimize_pq_for_hamming" "', argument " "2"" of type '" "faiss::ProductQuantizer &""'");
32164 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
32165 if (!SWIG_IsOK(ecode3)) {
32166 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "PolysemousTraining_optimize_pq_for_hamming" "', argument " "3"" of type '" "size_t""'");
32168 arg3 =
static_cast< size_t >(val3);
32169 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
32170 if (!SWIG_IsOK(res4)) {
32171 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "PolysemousTraining_optimize_pq_for_hamming" "', argument " "4"" of type '" "float const *""'");
32173 arg4 =
reinterpret_cast< float *
>(argp4);
32175 Py_BEGIN_ALLOW_THREADS
32179 PyEval_RestoreThread(_save);
32180 PyErr_SetString(PyExc_RuntimeError, e.
what());
32183 Py_END_ALLOW_THREADS
32185 resultobj = SWIG_Py_Void();
32192 SWIGINTERN PyObject *_wrap_PolysemousTraining_optimize_ranking(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32193 PyObject *resultobj = 0;
32197 float *arg4 = (
float *) 0 ;
32206 PyObject * obj0 = 0 ;
32207 PyObject * obj1 = 0 ;
32208 PyObject * obj2 = 0 ;
32209 PyObject * obj3 = 0 ;
32211 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:PolysemousTraining_optimize_ranking",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
32213 if (!SWIG_IsOK(res1)) {
32214 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_optimize_ranking" "', argument " "1"" of type '" "faiss::PolysemousTraining const *""'");
32217 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__ProductQuantizer, 0 );
32218 if (!SWIG_IsOK(res2)) {
32219 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PolysemousTraining_optimize_ranking" "', argument " "2"" of type '" "faiss::ProductQuantizer &""'");
32222 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "PolysemousTraining_optimize_ranking" "', argument " "2"" of type '" "faiss::ProductQuantizer &""'");
32225 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
32226 if (!SWIG_IsOK(ecode3)) {
32227 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "PolysemousTraining_optimize_ranking" "', argument " "3"" of type '" "size_t""'");
32229 arg3 =
static_cast< size_t >(val3);
32230 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
32231 if (!SWIG_IsOK(res4)) {
32232 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "PolysemousTraining_optimize_ranking" "', argument " "4"" of type '" "float const *""'");
32234 arg4 =
reinterpret_cast< float *
>(argp4);
32236 Py_BEGIN_ALLOW_THREADS
32240 PyEval_RestoreThread(_save);
32241 PyErr_SetString(PyExc_RuntimeError, e.
what());
32244 Py_END_ALLOW_THREADS
32246 resultobj = SWIG_Py_Void();
32253 SWIGINTERN PyObject *_wrap_PolysemousTraining_optimize_reproduce_distances(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32254 PyObject *resultobj = 0;
32261 PyObject * obj0 = 0 ;
32262 PyObject * obj1 = 0 ;
32264 if (!PyArg_ParseTuple(args,(
char *)
"OO:PolysemousTraining_optimize_reproduce_distances",&obj0,&obj1)) SWIG_fail;
32265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
32266 if (!SWIG_IsOK(res1)) {
32267 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "PolysemousTraining_optimize_reproduce_distances" "', argument " "1"" of type '" "faiss::PolysemousTraining const *""'");
32270 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__ProductQuantizer, 0 );
32271 if (!SWIG_IsOK(res2)) {
32272 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "PolysemousTraining_optimize_reproduce_distances" "', argument " "2"" of type '" "faiss::ProductQuantizer &""'");
32275 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "PolysemousTraining_optimize_reproduce_distances" "', argument " "2"" of type '" "faiss::ProductQuantizer &""'");
32279 Py_BEGIN_ALLOW_THREADS
32283 PyEval_RestoreThread(_save);
32284 PyErr_SetString(PyExc_RuntimeError, e.
what());
32287 Py_END_ALLOW_THREADS
32289 resultobj = SWIG_Py_Void();
32296 SWIGINTERN PyObject *_wrap_delete_PolysemousTraining(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32297 PyObject *resultobj = 0;
32301 PyObject * obj0 = 0 ;
32303 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_PolysemousTraining",&obj0)) SWIG_fail;
32304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__PolysemousTraining, SWIG_POINTER_DISOWN | 0 );
32305 if (!SWIG_IsOK(res1)) {
32306 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_PolysemousTraining" "', argument " "1"" of type '" "faiss::PolysemousTraining *""'");
32310 resultobj = SWIG_Py_Void();
32317 SWIGINTERN PyObject *PolysemousTraining_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32319 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
32320 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__PolysemousTraining, SWIG_NewClientData(obj));
32321 return SWIG_Py_Void();
32324 SWIGINTERN PyObject *_wrap_IndexPQ_pq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32325 PyObject *resultobj = 0;
32332 PyObject * obj0 = 0 ;
32333 PyObject * obj1 = 0 ;
32335 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_pq_set",&obj0,&obj1)) SWIG_fail;
32336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
32337 if (!SWIG_IsOK(res1)) {
32338 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_pq_set" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
32341 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
32342 if (!SWIG_IsOK(res2)) {
32343 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPQ_pq_set" "', argument " "2"" of type '" "faiss::ProductQuantizer *""'");
32346 if (arg1) (arg1)->pq = *arg2;
32347 resultobj = SWIG_Py_Void();
32354 SWIGINTERN PyObject *_wrap_IndexPQ_pq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32355 PyObject *resultobj = 0;
32359 PyObject * obj0 = 0 ;
32362 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_pq_get",&obj0)) SWIG_fail;
32363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
32364 if (!SWIG_IsOK(res1)) {
32365 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_pq_get" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
32369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
32376 SWIGINTERN PyObject *_wrap_IndexPQ_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32377 PyObject *resultobj = 0;
32379 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
32384 PyObject * obj0 = 0 ;
32385 PyObject * obj1 = 0 ;
32387 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_codes_set",&obj0,&obj1)) SWIG_fail;
32388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
32389 if (!SWIG_IsOK(res1)) {
32390 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_codes_set" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
32393 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
32394 if (!SWIG_IsOK(res2)) {
32395 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPQ_codes_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
32397 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
32398 if (arg1) (arg1)->codes = *arg2;
32399 resultobj = SWIG_Py_Void();
32406 SWIGINTERN PyObject *_wrap_IndexPQ_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32407 PyObject *resultobj = 0;
32411 PyObject * obj0 = 0 ;
32412 std::vector< uint8_t > *result = 0 ;
32414 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_codes_get",&obj0)) SWIG_fail;
32415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
32416 if (!SWIG_IsOK(res1)) {
32417 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_codes_get" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
32420 result = (std::vector< uint8_t > *)& ((arg1)->codes);
32421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
32428 SWIGINTERN PyObject *_wrap_new_IndexPQ__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32429 PyObject *resultobj = 0;
32442 PyObject * obj0 = 0 ;
32443 PyObject * obj1 = 0 ;
32444 PyObject * obj2 = 0 ;
32445 PyObject * obj3 = 0 ;
32448 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_IndexPQ",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32449 ecode1 = SWIG_AsVal_int(obj0, &val1);
32450 if (!SWIG_IsOK(ecode1)) {
32451 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexPQ" "', argument " "1"" of type '" "int""'");
32453 arg1 =
static_cast< int >(val1);
32454 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
32455 if (!SWIG_IsOK(ecode2)) {
32456 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexPQ" "', argument " "2"" of type '" "size_t""'");
32458 arg2 =
static_cast< size_t >(val2);
32459 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
32460 if (!SWIG_IsOK(ecode3)) {
32461 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexPQ" "', argument " "3"" of type '" "size_t""'");
32463 arg3 =
static_cast< size_t >(val3);
32464 ecode4 = SWIG_AsVal_int(obj3, &val4);
32465 if (!SWIG_IsOK(ecode4)) {
32466 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexPQ" "', argument " "4"" of type '" "faiss::MetricType""'");
32470 Py_BEGIN_ALLOW_THREADS
32474 PyEval_RestoreThread(_save);
32475 PyErr_SetString(PyExc_RuntimeError, e.
what());
32478 Py_END_ALLOW_THREADS
32480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexPQ, SWIG_POINTER_NEW | 0 );
32487 SWIGINTERN PyObject *_wrap_new_IndexPQ__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32488 PyObject *resultobj = 0;
32498 PyObject * obj0 = 0 ;
32499 PyObject * obj1 = 0 ;
32500 PyObject * obj2 = 0 ;
32503 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexPQ",&obj0,&obj1,&obj2)) SWIG_fail;
32504 ecode1 = SWIG_AsVal_int(obj0, &val1);
32505 if (!SWIG_IsOK(ecode1)) {
32506 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexPQ" "', argument " "1"" of type '" "int""'");
32508 arg1 =
static_cast< int >(val1);
32509 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
32510 if (!SWIG_IsOK(ecode2)) {
32511 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexPQ" "', argument " "2"" of type '" "size_t""'");
32513 arg2 =
static_cast< size_t >(val2);
32514 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
32515 if (!SWIG_IsOK(ecode3)) {
32516 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexPQ" "', argument " "3"" of type '" "size_t""'");
32518 arg3 =
static_cast< size_t >(val3);
32520 Py_BEGIN_ALLOW_THREADS
32524 PyEval_RestoreThread(_save);
32525 PyErr_SetString(PyExc_RuntimeError, e.
what());
32528 Py_END_ALLOW_THREADS
32530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexPQ, SWIG_POINTER_NEW | 0 );
32537 SWIGINTERN PyObject *_wrap_new_IndexPQ__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32538 PyObject *resultobj = 0;
32541 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexPQ")) SWIG_fail;
32543 Py_BEGIN_ALLOW_THREADS
32547 PyEval_RestoreThread(_save);
32548 PyErr_SetString(PyExc_RuntimeError, e.
what());
32551 Py_END_ALLOW_THREADS
32553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexPQ, SWIG_POINTER_NEW | 0 );
32560 SWIGINTERN PyObject *_wrap_new_IndexPQ(PyObject *
self, PyObject *args) {
32562 PyObject *argv[5] = {
32567 if (!PyTuple_Check(args)) SWIG_fail;
32568 argc = args ? PyObject_Length(args) : 0;
32569 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
32570 argv[ii] = PyTuple_GET_ITEM(args,ii);
32573 return _wrap_new_IndexPQ__SWIG_2(
self, args);
32578 int res = SWIG_AsVal_int(argv[0], NULL);
32579 _v = SWIG_CheckState(res);
32583 int res = SWIG_AsVal_size_t(argv[1], NULL);
32584 _v = SWIG_CheckState(res);
32588 int res = SWIG_AsVal_size_t(argv[2], NULL);
32589 _v = SWIG_CheckState(res);
32592 return _wrap_new_IndexPQ__SWIG_1(
self, args);
32600 int res = SWIG_AsVal_int(argv[0], NULL);
32601 _v = SWIG_CheckState(res);
32605 int res = SWIG_AsVal_size_t(argv[1], NULL);
32606 _v = SWIG_CheckState(res);
32610 int res = SWIG_AsVal_size_t(argv[2], NULL);
32611 _v = SWIG_CheckState(res);
32615 int res = SWIG_AsVal_int(argv[3], NULL);
32616 _v = SWIG_CheckState(res);
32619 return _wrap_new_IndexPQ__SWIG_0(
self, args);
32627 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexPQ'.\n"
32628 " Possible C/C++ prototypes are:\n"
32629 " faiss::IndexPQ::IndexPQ(int,size_t,size_t,faiss::MetricType)\n"
32630 " faiss::IndexPQ::IndexPQ(int,size_t,size_t)\n"
32631 " faiss::IndexPQ::IndexPQ()\n");
32636 SWIGINTERN PyObject *_wrap_IndexPQ_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32637 PyObject *resultobj = 0;
32640 float *arg3 = (
float *) 0 ;
32647 PyObject * obj0 = 0 ;
32648 PyObject * obj1 = 0 ;
32649 PyObject * obj2 = 0 ;
32651 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexPQ_train",&obj0,&obj1,&obj2)) SWIG_fail;
32652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
32653 if (!SWIG_IsOK(res1)) {
32654 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_train" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
32657 ecode2 = SWIG_AsVal_long(obj1, &val2);
32658 if (!SWIG_IsOK(ecode2)) {
32659 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
32662 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
32663 if (!SWIG_IsOK(res3)) {
32664 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPQ_train" "', argument " "3"" of type '" "float const *""'");
32666 arg3 =
reinterpret_cast< float *
>(argp3);
32668 Py_BEGIN_ALLOW_THREADS
32670 (arg1)->train(arg2,(
float const *)arg3);
32672 PyEval_RestoreThread(_save);
32673 PyErr_SetString(PyExc_RuntimeError, e.
what());
32676 Py_END_ALLOW_THREADS
32678 resultobj = SWIG_Py_Void();
32685 SWIGINTERN PyObject *_wrap_IndexPQ_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32686 PyObject *resultobj = 0;
32689 float *arg3 = (
float *) 0 ;
32696 PyObject * obj0 = 0 ;
32697 PyObject * obj1 = 0 ;
32698 PyObject * obj2 = 0 ;
32700 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexPQ_add",&obj0,&obj1,&obj2)) SWIG_fail;
32701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
32702 if (!SWIG_IsOK(res1)) {
32703 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_add" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
32706 ecode2 = SWIG_AsVal_long(obj1, &val2);
32707 if (!SWIG_IsOK(ecode2)) {
32708 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
32711 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
32712 if (!SWIG_IsOK(res3)) {
32713 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPQ_add" "', argument " "3"" of type '" "float const *""'");
32715 arg3 =
reinterpret_cast< float *
>(argp3);
32717 Py_BEGIN_ALLOW_THREADS
32719 (arg1)->add(arg2,(
float const *)arg3);
32721 PyEval_RestoreThread(_save);
32722 PyErr_SetString(PyExc_RuntimeError, e.
what());
32725 Py_END_ALLOW_THREADS
32727 resultobj = SWIG_Py_Void();
32734 SWIGINTERN PyObject *_wrap_IndexPQ_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32735 PyObject *resultobj = 0;
32738 float *arg3 = (
float *) 0 ;
32740 float *arg5 = (
float *) 0 ;
32754 PyObject * obj0 = 0 ;
32755 PyObject * obj1 = 0 ;
32756 PyObject * obj2 = 0 ;
32757 PyObject * obj3 = 0 ;
32758 PyObject * obj4 = 0 ;
32759 PyObject * obj5 = 0 ;
32761 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexPQ_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
32763 if (!SWIG_IsOK(res1)) {
32764 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_search" "', argument " "1"" of type '" "faiss::IndexPQ const *""'");
32767 ecode2 = SWIG_AsVal_long(obj1, &val2);
32768 if (!SWIG_IsOK(ecode2)) {
32769 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
32772 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
32773 if (!SWIG_IsOK(res3)) {
32774 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPQ_search" "', argument " "3"" of type '" "float const *""'");
32776 arg3 =
reinterpret_cast< float *
>(argp3);
32777 ecode4 = SWIG_AsVal_long(obj3, &val4);
32778 if (!SWIG_IsOK(ecode4)) {
32779 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexPQ_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
32782 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
32783 if (!SWIG_IsOK(res5)) {
32784 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexPQ_search" "', argument " "5"" of type '" "float *""'");
32786 arg5 =
reinterpret_cast< float *
>(argp5);
32787 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
32788 if (!SWIG_IsOK(res6)) {
32789 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexPQ_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
32793 Py_BEGIN_ALLOW_THREADS
32795 ((
faiss::IndexPQ const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
32797 PyEval_RestoreThread(_save);
32798 PyErr_SetString(PyExc_RuntimeError, e.
what());
32801 Py_END_ALLOW_THREADS
32803 resultobj = SWIG_Py_Void();
32810 SWIGINTERN PyObject *_wrap_IndexPQ_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32811 PyObject *resultobj = 0;
32815 PyObject * obj0 = 0 ;
32817 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_reset",&obj0)) SWIG_fail;
32818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
32819 if (!SWIG_IsOK(res1)) {
32820 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_reset" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
32824 Py_BEGIN_ALLOW_THREADS
32828 PyEval_RestoreThread(_save);
32829 PyErr_SetString(PyExc_RuntimeError, e.
what());
32832 Py_END_ALLOW_THREADS
32834 resultobj = SWIG_Py_Void();
32841 SWIGINTERN PyObject *_wrap_IndexPQ_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32842 PyObject *resultobj = 0;
32846 float *arg4 = (
float *) 0 ;
32855 PyObject * obj0 = 0 ;
32856 PyObject * obj1 = 0 ;
32857 PyObject * obj2 = 0 ;
32858 PyObject * obj3 = 0 ;
32860 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexPQ_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
32862 if (!SWIG_IsOK(res1)) {
32863 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_reconstruct_n" "', argument " "1"" of type '" "faiss::IndexPQ const *""'");
32866 ecode2 = SWIG_AsVal_long(obj1, &val2);
32867 if (!SWIG_IsOK(ecode2)) {
32868 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_reconstruct_n" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
32871 ecode3 = SWIG_AsVal_long(obj2, &val3);
32872 if (!SWIG_IsOK(ecode3)) {
32873 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexPQ_reconstruct_n" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
32876 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
32877 if (!SWIG_IsOK(res4)) {
32878 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexPQ_reconstruct_n" "', argument " "4"" of type '" "float *""'");
32880 arg4 =
reinterpret_cast< float *
>(argp4);
32882 Py_BEGIN_ALLOW_THREADS
32886 PyEval_RestoreThread(_save);
32887 PyErr_SetString(PyExc_RuntimeError, e.
what());
32890 Py_END_ALLOW_THREADS
32892 resultobj = SWIG_Py_Void();
32899 SWIGINTERN PyObject *_wrap_IndexPQ_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32900 PyObject *resultobj = 0;
32903 float *arg3 = (
float *) 0 ;
32910 PyObject * obj0 = 0 ;
32911 PyObject * obj1 = 0 ;
32912 PyObject * obj2 = 0 ;
32914 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexPQ_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
32915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
32916 if (!SWIG_IsOK(res1)) {
32917 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_reconstruct" "', argument " "1"" of type '" "faiss::IndexPQ const *""'");
32920 ecode2 = SWIG_AsVal_long(obj1, &val2);
32921 if (!SWIG_IsOK(ecode2)) {
32922 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
32925 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
32926 if (!SWIG_IsOK(res3)) {
32927 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPQ_reconstruct" "', argument " "3"" of type '" "float *""'");
32929 arg3 =
reinterpret_cast< float *
>(argp3);
32931 Py_BEGIN_ALLOW_THREADS
32935 PyEval_RestoreThread(_save);
32936 PyErr_SetString(PyExc_RuntimeError, e.
what());
32939 Py_END_ALLOW_THREADS
32941 resultobj = SWIG_Py_Void();
32948 SWIGINTERN PyObject *_wrap_IndexPQ_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32949 PyObject *resultobj = 0;
32956 PyObject * obj0 = 0 ;
32957 PyObject * obj1 = 0 ;
32960 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_remove_ids",&obj0,&obj1)) SWIG_fail;
32961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
32962 if (!SWIG_IsOK(res1)) {
32963 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_remove_ids" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
32966 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
32967 if (!SWIG_IsOK(res2)) {
32968 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPQ_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
32971 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexPQ_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
32975 Py_BEGIN_ALLOW_THREADS
32979 PyEval_RestoreThread(_save);
32980 PyErr_SetString(PyExc_RuntimeError, e.
what());
32983 Py_END_ALLOW_THREADS
32985 resultobj = SWIG_From_long(static_cast< long >(result));
32992 SWIGINTERN PyObject *_wrap_IndexPQ_do_polysemous_training_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
32993 PyObject *resultobj = 0;
33000 PyObject * obj0 = 0 ;
33001 PyObject * obj1 = 0 ;
33003 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_do_polysemous_training_set",&obj0,&obj1)) SWIG_fail;
33004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
33005 if (!SWIG_IsOK(res1)) {
33006 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_do_polysemous_training_set" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
33009 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33010 if (!SWIG_IsOK(ecode2)) {
33011 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_do_polysemous_training_set" "', argument " "2"" of type '" "bool""'");
33013 arg2 =
static_cast< bool >(val2);
33014 if (arg1) (arg1)->do_polysemous_training = arg2;
33015 resultobj = SWIG_Py_Void();
33022 SWIGINTERN PyObject *_wrap_IndexPQ_do_polysemous_training_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33023 PyObject *resultobj = 0;
33027 PyObject * obj0 = 0 ;
33030 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_do_polysemous_training_get",&obj0)) SWIG_fail;
33031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
33032 if (!SWIG_IsOK(res1)) {
33033 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_do_polysemous_training_get" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
33036 result = (bool) ((arg1)->do_polysemous_training);
33037 resultobj = SWIG_From_bool(static_cast< bool >(result));
33044 SWIGINTERN PyObject *_wrap_IndexPQ_polysemous_training_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33045 PyObject *resultobj = 0;
33052 PyObject * obj0 = 0 ;
33053 PyObject * obj1 = 0 ;
33055 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_polysemous_training_set",&obj0,&obj1)) SWIG_fail;
33056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
33057 if (!SWIG_IsOK(res1)) {
33058 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_polysemous_training_set" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
33061 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
33062 if (!SWIG_IsOK(res2)) {
33063 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexPQ_polysemous_training_set" "', argument " "2"" of type '" "faiss::PolysemousTraining *""'");
33066 if (arg1) (arg1)->polysemous_training = *arg2;
33067 resultobj = SWIG_Py_Void();
33074 SWIGINTERN PyObject *_wrap_IndexPQ_polysemous_training_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33075 PyObject *resultobj = 0;
33079 PyObject * obj0 = 0 ;
33082 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_polysemous_training_get",&obj0)) SWIG_fail;
33083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
33084 if (!SWIG_IsOK(res1)) {
33085 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_polysemous_training_get" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
33089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
33096 SWIGINTERN PyObject *_wrap_IndexPQ_search_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33097 PyObject *resultobj = 0;
33104 PyObject * obj0 = 0 ;
33105 PyObject * obj1 = 0 ;
33107 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_search_type_set",&obj0,&obj1)) SWIG_fail;
33108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
33109 if (!SWIG_IsOK(res1)) {
33110 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_search_type_set" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
33113 ecode2 = SWIG_AsVal_int(obj1, &val2);
33114 if (!SWIG_IsOK(ecode2)) {
33115 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_search_type_set" "', argument " "2"" of type '" "faiss::IndexPQ::Search_type_t""'");
33118 if (arg1) (arg1)->search_type = arg2;
33119 resultobj = SWIG_Py_Void();
33126 SWIGINTERN PyObject *_wrap_IndexPQ_search_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33127 PyObject *resultobj = 0;
33131 PyObject * obj0 = 0 ;
33134 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_search_type_get",&obj0)) SWIG_fail;
33135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
33136 if (!SWIG_IsOK(res1)) {
33137 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_search_type_get" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
33141 resultobj = SWIG_From_int(static_cast< int >(result));
33148 SWIGINTERN PyObject *_wrap_IndexPQ_encode_signs_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33149 PyObject *resultobj = 0;
33156 PyObject * obj0 = 0 ;
33157 PyObject * obj1 = 0 ;
33159 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_encode_signs_set",&obj0,&obj1)) SWIG_fail;
33160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
33161 if (!SWIG_IsOK(res1)) {
33162 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_encode_signs_set" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
33165 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33166 if (!SWIG_IsOK(ecode2)) {
33167 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_encode_signs_set" "', argument " "2"" of type '" "bool""'");
33169 arg2 =
static_cast< bool >(val2);
33170 if (arg1) (arg1)->encode_signs = arg2;
33171 resultobj = SWIG_Py_Void();
33178 SWIGINTERN PyObject *_wrap_IndexPQ_encode_signs_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33179 PyObject *resultobj = 0;
33183 PyObject * obj0 = 0 ;
33186 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_encode_signs_get",&obj0)) SWIG_fail;
33187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
33188 if (!SWIG_IsOK(res1)) {
33189 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_encode_signs_get" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
33192 result = (bool) ((arg1)->encode_signs);
33193 resultobj = SWIG_From_bool(static_cast< bool >(result));
33200 SWIGINTERN PyObject *_wrap_IndexPQ_polysemous_ht_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33201 PyObject *resultobj = 0;
33208 PyObject * obj0 = 0 ;
33209 PyObject * obj1 = 0 ;
33211 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQ_polysemous_ht_set",&obj0,&obj1)) SWIG_fail;
33212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
33213 if (!SWIG_IsOK(res1)) {
33214 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_polysemous_ht_set" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
33217 ecode2 = SWIG_AsVal_int(obj1, &val2);
33218 if (!SWIG_IsOK(ecode2)) {
33219 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_polysemous_ht_set" "', argument " "2"" of type '" "int""'");
33221 arg2 =
static_cast< int >(val2);
33222 if (arg1) (arg1)->polysemous_ht = arg2;
33223 resultobj = SWIG_Py_Void();
33230 SWIGINTERN PyObject *_wrap_IndexPQ_polysemous_ht_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33231 PyObject *resultobj = 0;
33235 PyObject * obj0 = 0 ;
33238 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQ_polysemous_ht_get",&obj0)) SWIG_fail;
33239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
33240 if (!SWIG_IsOK(res1)) {
33241 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_polysemous_ht_get" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
33244 result = (int) ((arg1)->polysemous_ht);
33245 resultobj = SWIG_From_int(static_cast< int >(result));
33252 SWIGINTERN PyObject *_wrap_IndexPQ_search_core_polysemous(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33253 PyObject *resultobj = 0;
33256 float *arg3 = (
float *) 0 ;
33258 float *arg5 = (
float *) 0 ;
33272 PyObject * obj0 = 0 ;
33273 PyObject * obj1 = 0 ;
33274 PyObject * obj2 = 0 ;
33275 PyObject * obj3 = 0 ;
33276 PyObject * obj4 = 0 ;
33277 PyObject * obj5 = 0 ;
33279 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexPQ_search_core_polysemous",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
33281 if (!SWIG_IsOK(res1)) {
33282 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_search_core_polysemous" "', argument " "1"" of type '" "faiss::IndexPQ const *""'");
33285 ecode2 = SWIG_AsVal_long(obj1, &val2);
33286 if (!SWIG_IsOK(ecode2)) {
33287 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_search_core_polysemous" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
33290 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
33291 if (!SWIG_IsOK(res3)) {
33292 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPQ_search_core_polysemous" "', argument " "3"" of type '" "float const *""'");
33294 arg3 =
reinterpret_cast< float *
>(argp3);
33295 ecode4 = SWIG_AsVal_long(obj3, &val4);
33296 if (!SWIG_IsOK(ecode4)) {
33297 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexPQ_search_core_polysemous" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
33300 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
33301 if (!SWIG_IsOK(res5)) {
33302 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexPQ_search_core_polysemous" "', argument " "5"" of type '" "float *""'");
33304 arg5 =
reinterpret_cast< float *
>(argp5);
33305 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
33306 if (!SWIG_IsOK(res6)) {
33307 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexPQ_search_core_polysemous" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
33311 Py_BEGIN_ALLOW_THREADS
33313 ((
faiss::IndexPQ const *)arg1)->search_core_polysemous(arg2,(
float const *)arg3,arg4,arg5,arg6);
33315 PyEval_RestoreThread(_save);
33316 PyErr_SetString(PyExc_RuntimeError, e.
what());
33319 Py_END_ALLOW_THREADS
33321 resultobj = SWIG_Py_Void();
33328 SWIGINTERN PyObject *_wrap_IndexPQ_hamming_distance_histogram(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33329 PyObject *resultobj = 0;
33332 float *arg3 = (
float *) 0 ;
33334 float *arg5 = (
float *) 0 ;
33335 long *arg6 = (
long *) 0 ;
33348 PyObject * obj0 = 0 ;
33349 PyObject * obj1 = 0 ;
33350 PyObject * obj2 = 0 ;
33351 PyObject * obj3 = 0 ;
33352 PyObject * obj4 = 0 ;
33353 PyObject * obj5 = 0 ;
33355 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexPQ_hamming_distance_histogram",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
33357 if (!SWIG_IsOK(res1)) {
33358 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_hamming_distance_histogram" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
33361 ecode2 = SWIG_AsVal_long(obj1, &val2);
33362 if (!SWIG_IsOK(ecode2)) {
33363 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_hamming_distance_histogram" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
33366 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
33367 if (!SWIG_IsOK(res3)) {
33368 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPQ_hamming_distance_histogram" "', argument " "3"" of type '" "float const *""'");
33370 arg3 =
reinterpret_cast< float *
>(argp3);
33371 ecode4 = SWIG_AsVal_long(obj3, &val4);
33372 if (!SWIG_IsOK(ecode4)) {
33373 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexPQ_hamming_distance_histogram" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
33376 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
33377 if (!SWIG_IsOK(res5)) {
33378 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexPQ_hamming_distance_histogram" "', argument " "5"" of type '" "float const *""'");
33380 arg5 =
reinterpret_cast< float *
>(argp5);
33381 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
33382 if (!SWIG_IsOK(res6)) {
33383 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexPQ_hamming_distance_histogram" "', argument " "6"" of type '" "long *""'");
33385 arg6 =
reinterpret_cast< long *
>(argp6);
33387 Py_BEGIN_ALLOW_THREADS
33389 (arg1)->hamming_distance_histogram(arg2,(
float const *)arg3,arg4,(
float const *)arg5,arg6);
33391 PyEval_RestoreThread(_save);
33392 PyErr_SetString(PyExc_RuntimeError, e.
what());
33395 Py_END_ALLOW_THREADS
33397 resultobj = SWIG_Py_Void();
33404 SWIGINTERN PyObject *_wrap_IndexPQ_hamming_distance_table(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33405 PyObject *resultobj = 0;
33408 float *arg3 = (
float *) 0 ;
33409 int32_t *arg4 = (int32_t *) 0 ;
33418 PyObject * obj0 = 0 ;
33419 PyObject * obj1 = 0 ;
33420 PyObject * obj2 = 0 ;
33421 PyObject * obj3 = 0 ;
33423 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexPQ_hamming_distance_table",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, 0 | 0 );
33425 if (!SWIG_IsOK(res1)) {
33426 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQ_hamming_distance_table" "', argument " "1"" of type '" "faiss::IndexPQ const *""'");
33429 ecode2 = SWIG_AsVal_long(obj1, &val2);
33430 if (!SWIG_IsOK(ecode2)) {
33431 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQ_hamming_distance_table" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
33434 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
33435 if (!SWIG_IsOK(res3)) {
33436 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexPQ_hamming_distance_table" "', argument " "3"" of type '" "float const *""'");
33438 arg3 =
reinterpret_cast< float *
>(argp3);
33439 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 );
33440 if (!SWIG_IsOK(res4)) {
33441 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexPQ_hamming_distance_table" "', argument " "4"" of type '" "int32_t *""'");
33443 arg4 =
reinterpret_cast< int32_t *
>(argp4);
33445 Py_BEGIN_ALLOW_THREADS
33447 ((
faiss::IndexPQ const *)arg1)->hamming_distance_table(arg2,(
float const *)arg3,arg4);
33449 PyEval_RestoreThread(_save);
33450 PyErr_SetString(PyExc_RuntimeError, e.
what());
33453 Py_END_ALLOW_THREADS
33455 resultobj = SWIG_Py_Void();
33462 SWIGINTERN PyObject *_wrap_delete_IndexPQ(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33463 PyObject *resultobj = 0;
33467 PyObject * obj0 = 0 ;
33469 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexPQ",&obj0)) SWIG_fail;
33470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQ, SWIG_POINTER_DISOWN | 0 );
33471 if (!SWIG_IsOK(res1)) {
33472 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexPQ" "', argument " "1"" of type '" "faiss::IndexPQ *""'");
33476 resultobj = SWIG_Py_Void();
33483 SWIGINTERN PyObject *IndexPQ_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33485 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
33486 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexPQ, SWIG_NewClientData(obj));
33487 return SWIG_Py_Void();
33490 SWIGINTERN PyObject *_wrap_IndexPQStats_nq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33491 PyObject *resultobj = 0;
33498 PyObject * obj0 = 0 ;
33499 PyObject * obj1 = 0 ;
33501 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQStats_nq_set",&obj0,&obj1)) SWIG_fail;
33502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, 0 | 0 );
33503 if (!SWIG_IsOK(res1)) {
33504 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQStats_nq_set" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
33507 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33508 if (!SWIG_IsOK(ecode2)) {
33509 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQStats_nq_set" "', argument " "2"" of type '" "size_t""'");
33511 arg2 =
static_cast< size_t >(val2);
33512 if (arg1) (arg1)->nq = arg2;
33513 resultobj = SWIG_Py_Void();
33520 SWIGINTERN PyObject *_wrap_IndexPQStats_nq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33521 PyObject *resultobj = 0;
33525 PyObject * obj0 = 0 ;
33528 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQStats_nq_get",&obj0)) SWIG_fail;
33529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, 0 | 0 );
33530 if (!SWIG_IsOK(res1)) {
33531 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQStats_nq_get" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
33534 result = (size_t) ((arg1)->nq);
33535 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33542 SWIGINTERN PyObject *_wrap_IndexPQStats_ncode_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33543 PyObject *resultobj = 0;
33550 PyObject * obj0 = 0 ;
33551 PyObject * obj1 = 0 ;
33553 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQStats_ncode_set",&obj0,&obj1)) SWIG_fail;
33554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, 0 | 0 );
33555 if (!SWIG_IsOK(res1)) {
33556 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQStats_ncode_set" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
33559 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33560 if (!SWIG_IsOK(ecode2)) {
33561 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQStats_ncode_set" "', argument " "2"" of type '" "size_t""'");
33563 arg2 =
static_cast< size_t >(val2);
33564 if (arg1) (arg1)->ncode = arg2;
33565 resultobj = SWIG_Py_Void();
33572 SWIGINTERN PyObject *_wrap_IndexPQStats_ncode_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33573 PyObject *resultobj = 0;
33577 PyObject * obj0 = 0 ;
33580 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQStats_ncode_get",&obj0)) SWIG_fail;
33581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, 0 | 0 );
33582 if (!SWIG_IsOK(res1)) {
33583 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQStats_ncode_get" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
33586 result = (size_t) ((arg1)->ncode);
33587 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33594 SWIGINTERN PyObject *_wrap_IndexPQStats_n_hamming_pass_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33595 PyObject *resultobj = 0;
33602 PyObject * obj0 = 0 ;
33603 PyObject * obj1 = 0 ;
33605 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexPQStats_n_hamming_pass_set",&obj0,&obj1)) SWIG_fail;
33606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, 0 | 0 );
33607 if (!SWIG_IsOK(res1)) {
33608 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQStats_n_hamming_pass_set" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
33611 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33612 if (!SWIG_IsOK(ecode2)) {
33613 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexPQStats_n_hamming_pass_set" "', argument " "2"" of type '" "size_t""'");
33615 arg2 =
static_cast< size_t >(val2);
33616 if (arg1) (arg1)->n_hamming_pass = arg2;
33617 resultobj = SWIG_Py_Void();
33624 SWIGINTERN PyObject *_wrap_IndexPQStats_n_hamming_pass_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33625 PyObject *resultobj = 0;
33629 PyObject * obj0 = 0 ;
33632 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQStats_n_hamming_pass_get",&obj0)) SWIG_fail;
33633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, 0 | 0 );
33634 if (!SWIG_IsOK(res1)) {
33635 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQStats_n_hamming_pass_get" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
33638 result = (size_t) ((arg1)->n_hamming_pass);
33639 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33646 SWIGINTERN PyObject *_wrap_new_IndexPQStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33647 PyObject *resultobj = 0;
33650 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexPQStats")) SWIG_fail;
33652 Py_BEGIN_ALLOW_THREADS
33656 PyEval_RestoreThread(_save);
33657 PyErr_SetString(PyExc_RuntimeError, e.
what());
33660 Py_END_ALLOW_THREADS
33662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexPQStats, SWIG_POINTER_NEW | 0 );
33669 SWIGINTERN PyObject *_wrap_IndexPQStats_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33670 PyObject *resultobj = 0;
33674 PyObject * obj0 = 0 ;
33676 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexPQStats_reset",&obj0)) SWIG_fail;
33677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, 0 | 0 );
33678 if (!SWIG_IsOK(res1)) {
33679 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexPQStats_reset" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
33683 Py_BEGIN_ALLOW_THREADS
33687 PyEval_RestoreThread(_save);
33688 PyErr_SetString(PyExc_RuntimeError, e.
what());
33691 Py_END_ALLOW_THREADS
33693 resultobj = SWIG_Py_Void();
33700 SWIGINTERN PyObject *_wrap_delete_IndexPQStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33701 PyObject *resultobj = 0;
33705 PyObject * obj0 = 0 ;
33707 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexPQStats",&obj0)) SWIG_fail;
33708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexPQStats, SWIG_POINTER_DISOWN | 0 );
33709 if (!SWIG_IsOK(res1)) {
33710 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexPQStats" "', argument " "1"" of type '" "faiss::IndexPQStats *""'");
33714 resultobj = SWIG_Py_Void();
33721 SWIGINTERN PyObject *IndexPQStats_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33723 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
33724 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexPQStats, SWIG_NewClientData(obj));
33725 return SWIG_Py_Void();
33728 SWIGINTERN
int Swig_var_indexPQ_stats_set(PyObject *_val) {
33731 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_faiss__IndexPQStats, 0 | 0);
33732 if (!SWIG_IsOK(res)) {
33733 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""faiss::indexPQ_stats""' of type '""faiss::IndexPQStats""'");
33736 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""faiss::indexPQ_stats""' of type '""faiss::IndexPQStats""'");
33740 faiss::indexPQ_stats = *temp;
33741 if (SWIG_IsNewObj(res))
delete temp;
33750 SWIGINTERN PyObject *Swig_var_indexPQ_stats_get(
void) {
33751 PyObject *pyobj = 0;
33753 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&faiss::indexPQ_stats), SWIGTYPE_p_faiss__IndexPQStats, 0 );
33758 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer_pq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33759 PyObject *resultobj = 0;
33766 PyObject * obj0 = 0 ;
33767 PyObject * obj1 = 0 ;
33769 if (!PyArg_ParseTuple(args,(
char *)
"OO:MultiIndexQuantizer_pq_set",&obj0,&obj1)) SWIG_fail;
33770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, 0 | 0 );
33771 if (!SWIG_IsOK(res1)) {
33772 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer_pq_set" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer *""'");
33775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
33776 if (!SWIG_IsOK(res2)) {
33777 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "MultiIndexQuantizer_pq_set" "', argument " "2"" of type '" "faiss::ProductQuantizer *""'");
33780 if (arg1) (arg1)->pq = *arg2;
33781 resultobj = SWIG_Py_Void();
33788 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer_pq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33789 PyObject *resultobj = 0;
33793 PyObject * obj0 = 0 ;
33796 if (!PyArg_ParseTuple(args,(
char *)
"O:MultiIndexQuantizer_pq_get",&obj0)) SWIG_fail;
33797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, 0 | 0 );
33798 if (!SWIG_IsOK(res1)) {
33799 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer_pq_get" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer *""'");
33803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
33810 SWIGINTERN PyObject *_wrap_new_MultiIndexQuantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33811 PyObject *resultobj = 0;
33821 PyObject * obj0 = 0 ;
33822 PyObject * obj1 = 0 ;
33823 PyObject * obj2 = 0 ;
33826 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_MultiIndexQuantizer",&obj0,&obj1,&obj2)) SWIG_fail;
33827 ecode1 = SWIG_AsVal_int(obj0, &val1);
33828 if (!SWIG_IsOK(ecode1)) {
33829 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_MultiIndexQuantizer" "', argument " "1"" of type '" "int""'");
33831 arg1 =
static_cast< int >(val1);
33832 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33833 if (!SWIG_IsOK(ecode2)) {
33834 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_MultiIndexQuantizer" "', argument " "2"" of type '" "size_t""'");
33836 arg2 =
static_cast< size_t >(val2);
33837 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
33838 if (!SWIG_IsOK(ecode3)) {
33839 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_MultiIndexQuantizer" "', argument " "3"" of type '" "size_t""'");
33841 arg3 =
static_cast< size_t >(val3);
33843 Py_BEGIN_ALLOW_THREADS
33847 PyEval_RestoreThread(_save);
33848 PyErr_SetString(PyExc_RuntimeError, e.
what());
33851 Py_END_ALLOW_THREADS
33853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__MultiIndexQuantizer, SWIG_POINTER_NEW | 0 );
33860 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33861 PyObject *resultobj = 0;
33864 float *arg3 = (
float *) 0 ;
33871 PyObject * obj0 = 0 ;
33872 PyObject * obj1 = 0 ;
33873 PyObject * obj2 = 0 ;
33875 if (!PyArg_ParseTuple(args,(
char *)
"OOO:MultiIndexQuantizer_train",&obj0,&obj1,&obj2)) SWIG_fail;
33876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, 0 | 0 );
33877 if (!SWIG_IsOK(res1)) {
33878 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer_train" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer *""'");
33881 ecode2 = SWIG_AsVal_long(obj1, &val2);
33882 if (!SWIG_IsOK(ecode2)) {
33883 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MultiIndexQuantizer_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
33886 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
33887 if (!SWIG_IsOK(res3)) {
33888 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MultiIndexQuantizer_train" "', argument " "3"" of type '" "float const *""'");
33890 arg3 =
reinterpret_cast< float *
>(argp3);
33892 Py_BEGIN_ALLOW_THREADS
33894 (arg1)->train(arg2,(
float const *)arg3);
33896 PyEval_RestoreThread(_save);
33897 PyErr_SetString(PyExc_RuntimeError, e.
what());
33900 Py_END_ALLOW_THREADS
33902 resultobj = SWIG_Py_Void();
33909 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33910 PyObject *resultobj = 0;
33913 float *arg3 = (
float *) 0 ;
33915 float *arg5 = (
float *) 0 ;
33929 PyObject * obj0 = 0 ;
33930 PyObject * obj1 = 0 ;
33931 PyObject * obj2 = 0 ;
33932 PyObject * obj3 = 0 ;
33933 PyObject * obj4 = 0 ;
33934 PyObject * obj5 = 0 ;
33936 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:MultiIndexQuantizer_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, 0 | 0 );
33938 if (!SWIG_IsOK(res1)) {
33939 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer_search" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer const *""'");
33942 ecode2 = SWIG_AsVal_long(obj1, &val2);
33943 if (!SWIG_IsOK(ecode2)) {
33944 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MultiIndexQuantizer_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
33947 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
33948 if (!SWIG_IsOK(res3)) {
33949 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MultiIndexQuantizer_search" "', argument " "3"" of type '" "float const *""'");
33951 arg3 =
reinterpret_cast< float *
>(argp3);
33952 ecode4 = SWIG_AsVal_long(obj3, &val4);
33953 if (!SWIG_IsOK(ecode4)) {
33954 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "MultiIndexQuantizer_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
33957 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
33958 if (!SWIG_IsOK(res5)) {
33959 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "MultiIndexQuantizer_search" "', argument " "5"" of type '" "float *""'");
33961 arg5 =
reinterpret_cast< float *
>(argp5);
33962 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
33963 if (!SWIG_IsOK(res6)) {
33964 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "MultiIndexQuantizer_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
33968 Py_BEGIN_ALLOW_THREADS
33972 PyEval_RestoreThread(_save);
33973 PyErr_SetString(PyExc_RuntimeError, e.
what());
33976 Py_END_ALLOW_THREADS
33978 resultobj = SWIG_Py_Void();
33985 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
33986 PyObject *resultobj = 0;
33989 float *arg3 = (
float *) 0 ;
33996 PyObject * obj0 = 0 ;
33997 PyObject * obj1 = 0 ;
33998 PyObject * obj2 = 0 ;
34000 if (!PyArg_ParseTuple(args,(
char *)
"OOO:MultiIndexQuantizer_add",&obj0,&obj1,&obj2)) SWIG_fail;
34001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, 0 | 0 );
34002 if (!SWIG_IsOK(res1)) {
34003 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer_add" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer *""'");
34006 ecode2 = SWIG_AsVal_long(obj1, &val2);
34007 if (!SWIG_IsOK(ecode2)) {
34008 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MultiIndexQuantizer_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
34011 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
34012 if (!SWIG_IsOK(res3)) {
34013 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MultiIndexQuantizer_add" "', argument " "3"" of type '" "float const *""'");
34015 arg3 =
reinterpret_cast< float *
>(argp3);
34017 Py_BEGIN_ALLOW_THREADS
34019 (arg1)->add(arg2,(
float const *)arg3);
34021 PyEval_RestoreThread(_save);
34022 PyErr_SetString(PyExc_RuntimeError, e.
what());
34025 Py_END_ALLOW_THREADS
34027 resultobj = SWIG_Py_Void();
34034 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34035 PyObject *resultobj = 0;
34039 PyObject * obj0 = 0 ;
34041 if (!PyArg_ParseTuple(args,(
char *)
"O:MultiIndexQuantizer_reset",&obj0)) SWIG_fail;
34042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, 0 | 0 );
34043 if (!SWIG_IsOK(res1)) {
34044 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer_reset" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer *""'");
34048 Py_BEGIN_ALLOW_THREADS
34052 PyEval_RestoreThread(_save);
34053 PyErr_SetString(PyExc_RuntimeError, e.
what());
34056 Py_END_ALLOW_THREADS
34058 resultobj = SWIG_Py_Void();
34065 SWIGINTERN PyObject *_wrap_new_MultiIndexQuantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34066 PyObject *resultobj = 0;
34069 if (!PyArg_ParseTuple(args,(
char *)
":new_MultiIndexQuantizer")) SWIG_fail;
34071 Py_BEGIN_ALLOW_THREADS
34075 PyEval_RestoreThread(_save);
34076 PyErr_SetString(PyExc_RuntimeError, e.
what());
34079 Py_END_ALLOW_THREADS
34081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__MultiIndexQuantizer, SWIG_POINTER_NEW | 0 );
34088 SWIGINTERN PyObject *_wrap_new_MultiIndexQuantizer(PyObject *
self, PyObject *args) {
34090 PyObject *argv[4] = {
34095 if (!PyTuple_Check(args)) SWIG_fail;
34096 argc = args ? PyObject_Length(args) : 0;
34097 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
34098 argv[ii] = PyTuple_GET_ITEM(args,ii);
34101 return _wrap_new_MultiIndexQuantizer__SWIG_1(
self, args);
34106 int res = SWIG_AsVal_int(argv[0], NULL);
34107 _v = SWIG_CheckState(res);
34111 int res = SWIG_AsVal_size_t(argv[1], NULL);
34112 _v = SWIG_CheckState(res);
34116 int res = SWIG_AsVal_size_t(argv[2], NULL);
34117 _v = SWIG_CheckState(res);
34120 return _wrap_new_MultiIndexQuantizer__SWIG_0(
self, args);
34127 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_MultiIndexQuantizer'.\n"
34128 " Possible C/C++ prototypes are:\n"
34129 " faiss::MultiIndexQuantizer::MultiIndexQuantizer(int,size_t,size_t)\n"
34130 " faiss::MultiIndexQuantizer::MultiIndexQuantizer()\n");
34135 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34136 PyObject *resultobj = 0;
34139 float *arg3 = (
float *) 0 ;
34146 PyObject * obj0 = 0 ;
34147 PyObject * obj1 = 0 ;
34148 PyObject * obj2 = 0 ;
34150 if (!PyArg_ParseTuple(args,(
char *)
"OOO:MultiIndexQuantizer_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
34151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, 0 | 0 );
34152 if (!SWIG_IsOK(res1)) {
34153 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer_reconstruct" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer const *""'");
34156 ecode2 = SWIG_AsVal_long(obj1, &val2);
34157 if (!SWIG_IsOK(ecode2)) {
34158 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MultiIndexQuantizer_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
34161 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
34162 if (!SWIG_IsOK(res3)) {
34163 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MultiIndexQuantizer_reconstruct" "', argument " "3"" of type '" "float *""'");
34165 arg3 =
reinterpret_cast< float *
>(argp3);
34167 Py_BEGIN_ALLOW_THREADS
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_MultiIndexQuantizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34185 PyObject *resultobj = 0;
34189 PyObject * obj0 = 0 ;
34191 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_MultiIndexQuantizer",&obj0)) SWIG_fail;
34192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer, SWIG_POINTER_DISOWN | 0 );
34193 if (!SWIG_IsOK(res1)) {
34194 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_MultiIndexQuantizer" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer *""'");
34198 resultobj = SWIG_Py_Void();
34205 SWIGINTERN PyObject *MultiIndexQuantizer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34207 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
34208 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__MultiIndexQuantizer, SWIG_NewClientData(obj));
34209 return SWIG_Py_Void();
34212 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer2_assign_indexes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34213 PyObject *resultobj = 0;
34215 std::vector< faiss::Index * > *arg2 = (std::vector< faiss::Index * > *) 0 ;
34220 PyObject * obj0 = 0 ;
34221 PyObject * obj1 = 0 ;
34223 if (!PyArg_ParseTuple(args,(
char *)
"OO:MultiIndexQuantizer2_assign_indexes_set",&obj0,&obj1)) SWIG_fail;
34224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer2, 0 | 0 );
34225 if (!SWIG_IsOK(res1)) {
34226 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer2_assign_indexes_set" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer2 *""'");
34229 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__Index_p_t, 0 | 0 );
34230 if (!SWIG_IsOK(res2)) {
34231 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "MultiIndexQuantizer2_assign_indexes_set" "', argument " "2"" of type '" "std::vector< faiss::Index * > *""'");
34233 arg2 =
reinterpret_cast< std::vector< faiss::Index * > *
>(argp2);
34234 if (arg1) (arg1)->assign_indexes = *arg2;
34235 resultobj = SWIG_Py_Void();
34242 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer2_assign_indexes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34243 PyObject *resultobj = 0;
34247 PyObject * obj0 = 0 ;
34248 std::vector< faiss::Index * > *result = 0 ;
34250 if (!PyArg_ParseTuple(args,(
char *)
"O:MultiIndexQuantizer2_assign_indexes_get",&obj0)) SWIG_fail;
34251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer2, 0 | 0 );
34252 if (!SWIG_IsOK(res1)) {
34253 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer2_assign_indexes_get" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer2 *""'");
34256 result = (std::vector< faiss::Index * > *)& ((arg1)->assign_indexes);
34257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__Index_p_t, 0 | 0 );
34264 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer2_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34265 PyObject *resultobj = 0;
34272 PyObject * obj0 = 0 ;
34273 PyObject * obj1 = 0 ;
34275 if (!PyArg_ParseTuple(args,(
char *)
"OO:MultiIndexQuantizer2_own_fields_set",&obj0,&obj1)) SWIG_fail;
34276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer2, 0 | 0 );
34277 if (!SWIG_IsOK(res1)) {
34278 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer2_own_fields_set" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer2 *""'");
34281 ecode2 = SWIG_AsVal_bool(obj1, &val2);
34282 if (!SWIG_IsOK(ecode2)) {
34283 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MultiIndexQuantizer2_own_fields_set" "', argument " "2"" of type '" "bool""'");
34285 arg2 =
static_cast< bool >(val2);
34286 if (arg1) (arg1)->own_fields = arg2;
34287 resultobj = SWIG_Py_Void();
34294 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer2_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34295 PyObject *resultobj = 0;
34299 PyObject * obj0 = 0 ;
34302 if (!PyArg_ParseTuple(args,(
char *)
"O:MultiIndexQuantizer2_own_fields_get",&obj0)) SWIG_fail;
34303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer2, 0 | 0 );
34304 if (!SWIG_IsOK(res1)) {
34305 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer2_own_fields_get" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer2 *""'");
34308 result = (bool) ((arg1)->own_fields);
34309 resultobj = SWIG_From_bool(static_cast< bool >(result));
34316 SWIGINTERN PyObject *_wrap_new_MultiIndexQuantizer2__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34317 PyObject *resultobj = 0;
34330 PyObject * obj0 = 0 ;
34331 PyObject * obj1 = 0 ;
34332 PyObject * obj2 = 0 ;
34333 PyObject * obj3 = 0 ;
34336 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_MultiIndexQuantizer2",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34337 ecode1 = SWIG_AsVal_int(obj0, &val1);
34338 if (!SWIG_IsOK(ecode1)) {
34339 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_MultiIndexQuantizer2" "', argument " "1"" of type '" "int""'");
34341 arg1 =
static_cast< int >(val1);
34342 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34343 if (!SWIG_IsOK(ecode2)) {
34344 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_MultiIndexQuantizer2" "', argument " "2"" of type '" "size_t""'");
34346 arg2 =
static_cast< size_t >(val2);
34347 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
34348 if (!SWIG_IsOK(ecode3)) {
34349 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_MultiIndexQuantizer2" "', argument " "3"" of type '" "size_t""'");
34351 arg3 =
static_cast< size_t >(val3);
34352 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_p_faiss__Index, 0 | 0 );
34353 if (!SWIG_IsOK(res4)) {
34354 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "new_MultiIndexQuantizer2" "', argument " "4"" of type '" "faiss::Index **""'");
34358 Py_BEGIN_ALLOW_THREADS
34362 PyEval_RestoreThread(_save);
34363 PyErr_SetString(PyExc_RuntimeError, e.
what());
34366 Py_END_ALLOW_THREADS
34368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__MultiIndexQuantizer2, SWIG_POINTER_NEW | 0 );
34375 SWIGINTERN PyObject *_wrap_new_MultiIndexQuantizer2__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34376 PyObject *resultobj = 0;
34389 PyObject * obj0 = 0 ;
34390 PyObject * obj1 = 0 ;
34391 PyObject * obj2 = 0 ;
34392 PyObject * obj3 = 0 ;
34395 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_MultiIndexQuantizer2",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34396 ecode1 = SWIG_AsVal_int(obj0, &val1);
34397 if (!SWIG_IsOK(ecode1)) {
34398 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_MultiIndexQuantizer2" "', argument " "1"" of type '" "int""'");
34400 arg1 =
static_cast< int >(val1);
34401 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34402 if (!SWIG_IsOK(ecode2)) {
34403 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_MultiIndexQuantizer2" "', argument " "2"" of type '" "size_t""'");
34405 arg2 =
static_cast< size_t >(val2);
34406 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_faiss__Index, 0 | 0 );
34407 if (!SWIG_IsOK(res3)) {
34408 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_MultiIndexQuantizer2" "', argument " "3"" of type '" "faiss::Index *""'");
34411 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_faiss__Index, 0 | 0 );
34412 if (!SWIG_IsOK(res4)) {
34413 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "new_MultiIndexQuantizer2" "', argument " "4"" of type '" "faiss::Index *""'");
34417 Py_BEGIN_ALLOW_THREADS
34421 PyEval_RestoreThread(_save);
34422 PyErr_SetString(PyExc_RuntimeError, e.
what());
34425 Py_END_ALLOW_THREADS
34427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__MultiIndexQuantizer2, SWIG_POINTER_NEW | 0 );
34434 SWIGINTERN PyObject *_wrap_new_MultiIndexQuantizer2(PyObject *
self, PyObject *args) {
34436 PyObject *argv[5] = {
34441 if (!PyTuple_Check(args)) SWIG_fail;
34442 argc = args ? PyObject_Length(args) : 0;
34443 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
34444 argv[ii] = PyTuple_GET_ITEM(args,ii);
34449 int res = SWIG_AsVal_int(argv[0], NULL);
34450 _v = SWIG_CheckState(res);
34454 int res = SWIG_AsVal_size_t(argv[1], NULL);
34455 _v = SWIG_CheckState(res);
34459 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_faiss__Index, 0);
34460 _v = SWIG_CheckState(res);
34463 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_faiss__Index, 0);
34464 _v = SWIG_CheckState(res);
34466 return _wrap_new_MultiIndexQuantizer2__SWIG_1(
self, args);
34475 int res = SWIG_AsVal_int(argv[0], NULL);
34476 _v = SWIG_CheckState(res);
34480 int res = SWIG_AsVal_size_t(argv[1], NULL);
34481 _v = SWIG_CheckState(res);
34485 int res = SWIG_AsVal_size_t(argv[2], NULL);
34486 _v = SWIG_CheckState(res);
34490 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_p_faiss__Index, 0);
34491 _v = SWIG_CheckState(res);
34493 return _wrap_new_MultiIndexQuantizer2__SWIG_0(
self, args);
34501 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_MultiIndexQuantizer2'.\n"
34502 " Possible C/C++ prototypes are:\n"
34503 " faiss::MultiIndexQuantizer2::MultiIndexQuantizer2(int,size_t,size_t,faiss::Index **)\n"
34504 " faiss::MultiIndexQuantizer2::MultiIndexQuantizer2(int,size_t,faiss::Index *,faiss::Index *)\n");
34509 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer2_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34510 PyObject *resultobj = 0;
34513 float *arg3 = (
float *) 0 ;
34520 PyObject * obj0 = 0 ;
34521 PyObject * obj1 = 0 ;
34522 PyObject * obj2 = 0 ;
34524 if (!PyArg_ParseTuple(args,(
char *)
"OOO:MultiIndexQuantizer2_train",&obj0,&obj1,&obj2)) SWIG_fail;
34525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer2, 0 | 0 );
34526 if (!SWIG_IsOK(res1)) {
34527 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer2_train" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer2 *""'");
34530 ecode2 = SWIG_AsVal_long(obj1, &val2);
34531 if (!SWIG_IsOK(ecode2)) {
34532 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MultiIndexQuantizer2_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
34535 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
34536 if (!SWIG_IsOK(res3)) {
34537 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MultiIndexQuantizer2_train" "', argument " "3"" of type '" "float const *""'");
34539 arg3 =
reinterpret_cast< float *
>(argp3);
34541 Py_BEGIN_ALLOW_THREADS
34543 (arg1)->train(arg2,(
float const *)arg3);
34545 PyEval_RestoreThread(_save);
34546 PyErr_SetString(PyExc_RuntimeError, e.
what());
34549 Py_END_ALLOW_THREADS
34551 resultobj = SWIG_Py_Void();
34558 SWIGINTERN PyObject *_wrap_MultiIndexQuantizer2_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34559 PyObject *resultobj = 0;
34562 float *arg3 = (
float *) 0 ;
34564 float *arg5 = (
float *) 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:MultiIndexQuantizer2_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer2, 0 | 0 );
34587 if (!SWIG_IsOK(res1)) {
34588 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MultiIndexQuantizer2_search" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer2 const *""'");
34591 ecode2 = SWIG_AsVal_long(obj1, &val2);
34592 if (!SWIG_IsOK(ecode2)) {
34593 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MultiIndexQuantizer2_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
34596 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
34597 if (!SWIG_IsOK(res3)) {
34598 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MultiIndexQuantizer2_search" "', argument " "3"" of type '" "float const *""'");
34600 arg3 =
reinterpret_cast< float *
>(argp3);
34601 ecode4 = SWIG_AsVal_long(obj3, &val4);
34602 if (!SWIG_IsOK(ecode4)) {
34603 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "MultiIndexQuantizer2_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
34606 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
34607 if (!SWIG_IsOK(res5)) {
34608 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "MultiIndexQuantizer2_search" "', argument " "5"" of type '" "float *""'");
34610 arg5 =
reinterpret_cast< float *
>(argp5);
34611 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
34612 if (!SWIG_IsOK(res6)) {
34613 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "MultiIndexQuantizer2_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
34617 Py_BEGIN_ALLOW_THREADS
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_delete_MultiIndexQuantizer2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34635 PyObject *resultobj = 0;
34639 PyObject * obj0 = 0 ;
34641 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_MultiIndexQuantizer2",&obj0)) SWIG_fail;
34642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__MultiIndexQuantizer2, SWIG_POINTER_DISOWN | 0 );
34643 if (!SWIG_IsOK(res1)) {
34644 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_MultiIndexQuantizer2" "', argument " "1"" of type '" "faiss::MultiIndexQuantizer2 *""'");
34648 resultobj = SWIG_Py_Void();
34655 SWIGINTERN PyObject *MultiIndexQuantizer2_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34657 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
34658 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__MultiIndexQuantizer2, SWIG_NewClientData(obj));
34659 return SWIG_Py_Void();
34662 SWIGINTERN PyObject *_wrap_InvertedLists_nlist_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34663 PyObject *resultobj = 0;
34670 PyObject * obj0 = 0 ;
34671 PyObject * obj1 = 0 ;
34673 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedLists_nlist_set",&obj0,&obj1)) SWIG_fail;
34674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34675 if (!SWIG_IsOK(res1)) {
34676 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_nlist_set" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
34679 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34680 if (!SWIG_IsOK(ecode2)) {
34681 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_nlist_set" "', argument " "2"" of type '" "size_t""'");
34683 arg2 =
static_cast< size_t >(val2);
34684 if (arg1) (arg1)->nlist = arg2;
34685 resultobj = SWIG_Py_Void();
34692 SWIGINTERN PyObject *_wrap_InvertedLists_nlist_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34693 PyObject *resultobj = 0;
34697 PyObject * obj0 = 0 ;
34700 if (!PyArg_ParseTuple(args,(
char *)
"O:InvertedLists_nlist_get",&obj0)) SWIG_fail;
34701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34702 if (!SWIG_IsOK(res1)) {
34703 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_nlist_get" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
34706 result = (size_t) ((arg1)->nlist);
34707 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34714 SWIGINTERN PyObject *_wrap_InvertedLists_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34715 PyObject *resultobj = 0;
34722 PyObject * obj0 = 0 ;
34723 PyObject * obj1 = 0 ;
34725 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedLists_code_size_set",&obj0,&obj1)) SWIG_fail;
34726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34727 if (!SWIG_IsOK(res1)) {
34728 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_code_size_set" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
34731 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34732 if (!SWIG_IsOK(ecode2)) {
34733 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_code_size_set" "', argument " "2"" of type '" "size_t""'");
34735 arg2 =
static_cast< size_t >(val2);
34736 if (arg1) (arg1)->code_size = arg2;
34737 resultobj = SWIG_Py_Void();
34744 SWIGINTERN PyObject *_wrap_InvertedLists_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34745 PyObject *resultobj = 0;
34749 PyObject * obj0 = 0 ;
34752 if (!PyArg_ParseTuple(args,(
char *)
"O:InvertedLists_code_size_get",&obj0)) SWIG_fail;
34753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34754 if (!SWIG_IsOK(res1)) {
34755 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_code_size_get" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
34758 result = (size_t) ((arg1)->code_size);
34759 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34766 SWIGINTERN PyObject *_wrap_InvertedLists_list_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34767 PyObject *resultobj = 0;
34774 PyObject * obj0 = 0 ;
34775 PyObject * obj1 = 0 ;
34778 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedLists_list_size",&obj0,&obj1)) SWIG_fail;
34779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34780 if (!SWIG_IsOK(res1)) {
34781 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_list_size" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
34784 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34785 if (!SWIG_IsOK(ecode2)) {
34786 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_list_size" "', argument " "2"" of type '" "size_t""'");
34788 arg2 =
static_cast< size_t >(val2);
34790 Py_BEGIN_ALLOW_THREADS
34794 PyEval_RestoreThread(_save);
34795 PyErr_SetString(PyExc_RuntimeError, e.
what());
34798 Py_END_ALLOW_THREADS
34800 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34807 SWIGINTERN PyObject *_wrap_InvertedLists_get_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34808 PyObject *resultobj = 0;
34815 PyObject * obj0 = 0 ;
34816 PyObject * obj1 = 0 ;
34817 uint8_t *result = 0 ;
34819 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedLists_get_codes",&obj0,&obj1)) SWIG_fail;
34820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34821 if (!SWIG_IsOK(res1)) {
34822 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_get_codes" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
34825 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34826 if (!SWIG_IsOK(ecode2)) {
34827 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_get_codes" "', argument " "2"" of type '" "size_t""'");
34829 arg2 =
static_cast< size_t >(val2);
34831 Py_BEGIN_ALLOW_THREADS
34835 PyEval_RestoreThread(_save);
34836 PyErr_SetString(PyExc_RuntimeError, e.
what());
34839 Py_END_ALLOW_THREADS
34841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
34848 SWIGINTERN PyObject *_wrap_InvertedLists_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34849 PyObject *resultobj = 0;
34856 PyObject * obj0 = 0 ;
34857 PyObject * obj1 = 0 ;
34858 faiss::InvertedLists::idx_t *result = 0 ;
34860 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedLists_get_ids",&obj0,&obj1)) SWIG_fail;
34861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34862 if (!SWIG_IsOK(res1)) {
34863 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_get_ids" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
34866 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34867 if (!SWIG_IsOK(ecode2)) {
34868 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_get_ids" "', argument " "2"" of type '" "size_t""'");
34870 arg2 =
static_cast< size_t >(val2);
34872 Py_BEGIN_ALLOW_THREADS
34876 PyEval_RestoreThread(_save);
34877 PyErr_SetString(PyExc_RuntimeError, e.
what());
34880 Py_END_ALLOW_THREADS
34882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
34889 SWIGINTERN PyObject *_wrap_InvertedLists_release_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34890 PyObject *resultobj = 0;
34892 uint8_t *arg2 = (uint8_t *) 0 ;
34897 PyObject * obj0 = 0 ;
34898 PyObject * obj1 = 0 ;
34900 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedLists_release_codes",&obj0,&obj1)) SWIG_fail;
34901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34902 if (!SWIG_IsOK(res1)) {
34903 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_release_codes" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
34906 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
34907 if (!SWIG_IsOK(res2)) {
34908 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "InvertedLists_release_codes" "', argument " "2"" of type '" "uint8_t const *""'");
34910 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
34912 Py_BEGIN_ALLOW_THREADS
34916 PyEval_RestoreThread(_save);
34917 PyErr_SetString(PyExc_RuntimeError, e.
what());
34920 Py_END_ALLOW_THREADS
34922 resultobj = SWIG_Py_Void();
34929 SWIGINTERN PyObject *_wrap_InvertedLists_release_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34930 PyObject *resultobj = 0;
34932 faiss::InvertedLists::idx_t *arg2 = (faiss::InvertedLists::idx_t *) 0 ;
34937 PyObject * obj0 = 0 ;
34938 PyObject * obj1 = 0 ;
34940 if (!PyArg_ParseTuple(args,(
char *)
"OO:InvertedLists_release_ids",&obj0,&obj1)) SWIG_fail;
34941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34942 if (!SWIG_IsOK(res1)) {
34943 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_release_ids" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
34946 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
34947 if (!SWIG_IsOK(res2)) {
34948 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "InvertedLists_release_ids" "', argument " "2"" of type '" "faiss::InvertedLists::idx_t const *""'");
34950 arg2 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp2);
34952 Py_BEGIN_ALLOW_THREADS
34956 PyEval_RestoreThread(_save);
34957 PyErr_SetString(PyExc_RuntimeError, e.
what());
34960 Py_END_ALLOW_THREADS
34962 resultobj = SWIG_Py_Void();
34969 SWIGINTERN PyObject *_wrap_InvertedLists_get_single_id(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
34970 PyObject *resultobj = 0;
34980 PyObject * obj0 = 0 ;
34981 PyObject * obj1 = 0 ;
34982 PyObject * obj2 = 0 ;
34983 faiss::InvertedLists::idx_t result;
34985 if (!PyArg_ParseTuple(args,(
char *)
"OOO:InvertedLists_get_single_id",&obj0,&obj1,&obj2)) SWIG_fail;
34986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
34987 if (!SWIG_IsOK(res1)) {
34988 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_get_single_id" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
34991 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34992 if (!SWIG_IsOK(ecode2)) {
34993 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_get_single_id" "', argument " "2"" of type '" "size_t""'");
34995 arg2 =
static_cast< size_t >(val2);
34996 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
34997 if (!SWIG_IsOK(ecode3)) {
34998 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_get_single_id" "', argument " "3"" of type '" "size_t""'");
35000 arg3 =
static_cast< size_t >(val3);
35002 Py_BEGIN_ALLOW_THREADS
35004 result = (faiss::InvertedLists::idx_t)((
faiss::InvertedLists const *)arg1)->get_single_id(arg2,arg3);
35006 PyEval_RestoreThread(_save);
35007 PyErr_SetString(PyExc_RuntimeError, e.
what());
35010 Py_END_ALLOW_THREADS
35012 resultobj = SWIG_From_long(static_cast< long >(result));
35019 SWIGINTERN PyObject *_wrap_InvertedLists_get_single_code(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35020 PyObject *resultobj = 0;
35030 PyObject * obj0 = 0 ;
35031 PyObject * obj1 = 0 ;
35032 PyObject * obj2 = 0 ;
35033 uint8_t *result = 0 ;
35035 if (!PyArg_ParseTuple(args,(
char *)
"OOO:InvertedLists_get_single_code",&obj0,&obj1,&obj2)) SWIG_fail;
35036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
35037 if (!SWIG_IsOK(res1)) {
35038 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_get_single_code" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
35041 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35042 if (!SWIG_IsOK(ecode2)) {
35043 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_get_single_code" "', argument " "2"" of type '" "size_t""'");
35045 arg2 =
static_cast< size_t >(val2);
35046 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35047 if (!SWIG_IsOK(ecode3)) {
35048 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_get_single_code" "', argument " "3"" of type '" "size_t""'");
35050 arg3 =
static_cast< size_t >(val3);
35052 Py_BEGIN_ALLOW_THREADS
35056 PyEval_RestoreThread(_save);
35057 PyErr_SetString(PyExc_RuntimeError, e.
what());
35060 Py_END_ALLOW_THREADS
35062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
35069 SWIGINTERN PyObject *_wrap_InvertedLists_prefetch_lists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35070 PyObject *resultobj = 0;
35072 long *arg2 = (
long *) 0 ;
35080 PyObject * obj0 = 0 ;
35081 PyObject * obj1 = 0 ;
35082 PyObject * obj2 = 0 ;
35084 if (!PyArg_ParseTuple(args,(
char *)
"OOO:InvertedLists_prefetch_lists",&obj0,&obj1,&obj2)) SWIG_fail;
35085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
35086 if (!SWIG_IsOK(res1)) {
35087 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_prefetch_lists" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
35090 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
35091 if (!SWIG_IsOK(res2)) {
35092 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "InvertedLists_prefetch_lists" "', argument " "2"" of type '" "long const *""'");
35094 arg2 =
reinterpret_cast< long *
>(argp2);
35095 ecode3 = SWIG_AsVal_int(obj2, &val3);
35096 if (!SWIG_IsOK(ecode3)) {
35097 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_prefetch_lists" "', argument " "3"" of type '" "int""'");
35099 arg3 =
static_cast< int >(val3);
35101 Py_BEGIN_ALLOW_THREADS
35105 PyEval_RestoreThread(_save);
35106 PyErr_SetString(PyExc_RuntimeError, e.
what());
35109 Py_END_ALLOW_THREADS
35111 resultobj = SWIG_Py_Void();
35118 SWIGINTERN PyObject *_wrap_InvertedLists_add_entry(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35119 PyObject *resultobj = 0;
35122 faiss::InvertedLists::idx_t arg3 ;
35123 uint8_t *arg4 = (uint8_t *) 0 ;
35132 PyObject * obj0 = 0 ;
35133 PyObject * obj1 = 0 ;
35134 PyObject * obj2 = 0 ;
35135 PyObject * obj3 = 0 ;
35138 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:InvertedLists_add_entry",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
35140 if (!SWIG_IsOK(res1)) {
35141 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_add_entry" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
35144 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35145 if (!SWIG_IsOK(ecode2)) {
35146 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_add_entry" "', argument " "2"" of type '" "size_t""'");
35148 arg2 =
static_cast< size_t >(val2);
35149 ecode3 = SWIG_AsVal_long(obj2, &val3);
35150 if (!SWIG_IsOK(ecode3)) {
35151 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_add_entry" "', argument " "3"" of type '" "faiss::InvertedLists::idx_t""'");
35153 arg3 =
static_cast< faiss::InvertedLists::idx_t
>(val3);
35154 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
35155 if (!SWIG_IsOK(res4)) {
35156 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "InvertedLists_add_entry" "', argument " "4"" of type '" "uint8_t const *""'");
35158 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
35160 Py_BEGIN_ALLOW_THREADS
35162 result = (size_t)(arg1)->add_entry(arg2,arg3,(uint8_t
const *)arg4);
35164 PyEval_RestoreThread(_save);
35165 PyErr_SetString(PyExc_RuntimeError, e.
what());
35168 Py_END_ALLOW_THREADS
35170 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35177 SWIGINTERN PyObject *_wrap_InvertedLists_add_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35178 PyObject *resultobj = 0;
35182 faiss::InvertedLists::idx_t *arg4 = (faiss::InvertedLists::idx_t *) 0 ;
35183 uint8_t *arg5 = (uint8_t *) 0 ;
35194 PyObject * obj0 = 0 ;
35195 PyObject * obj1 = 0 ;
35196 PyObject * obj2 = 0 ;
35197 PyObject * obj3 = 0 ;
35198 PyObject * obj4 = 0 ;
35201 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:InvertedLists_add_entries",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
35203 if (!SWIG_IsOK(res1)) {
35204 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_add_entries" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
35207 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35208 if (!SWIG_IsOK(ecode2)) {
35209 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_add_entries" "', argument " "2"" of type '" "size_t""'");
35211 arg2 =
static_cast< size_t >(val2);
35212 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35213 if (!SWIG_IsOK(ecode3)) {
35214 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_add_entries" "', argument " "3"" of type '" "size_t""'");
35216 arg3 =
static_cast< size_t >(val3);
35217 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
35218 if (!SWIG_IsOK(res4)) {
35219 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "InvertedLists_add_entries" "', argument " "4"" of type '" "faiss::InvertedLists::idx_t const *""'");
35221 arg4 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp4);
35222 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
35223 if (!SWIG_IsOK(res5)) {
35224 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "InvertedLists_add_entries" "', argument " "5"" of type '" "uint8_t const *""'");
35226 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
35228 Py_BEGIN_ALLOW_THREADS
35230 result = (size_t)(arg1)->add_entries(arg2,arg3,(faiss::InvertedLists::idx_t
const *)arg4,(uint8_t
const *)arg5);
35232 PyEval_RestoreThread(_save);
35233 PyErr_SetString(PyExc_RuntimeError, e.
what());
35236 Py_END_ALLOW_THREADS
35238 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35245 SWIGINTERN PyObject *_wrap_InvertedLists_update_entry(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35246 PyObject *resultobj = 0;
35250 faiss::InvertedLists::idx_t arg4 ;
35251 uint8_t *arg5 = (uint8_t *) 0 ;
35262 PyObject * obj0 = 0 ;
35263 PyObject * obj1 = 0 ;
35264 PyObject * obj2 = 0 ;
35265 PyObject * obj3 = 0 ;
35266 PyObject * obj4 = 0 ;
35268 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:InvertedLists_update_entry",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
35270 if (!SWIG_IsOK(res1)) {
35271 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_update_entry" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
35274 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35275 if (!SWIG_IsOK(ecode2)) {
35276 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_update_entry" "', argument " "2"" of type '" "size_t""'");
35278 arg2 =
static_cast< size_t >(val2);
35279 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35280 if (!SWIG_IsOK(ecode3)) {
35281 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_update_entry" "', argument " "3"" of type '" "size_t""'");
35283 arg3 =
static_cast< size_t >(val3);
35284 ecode4 = SWIG_AsVal_long(obj3, &val4);
35285 if (!SWIG_IsOK(ecode4)) {
35286 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "InvertedLists_update_entry" "', argument " "4"" of type '" "faiss::InvertedLists::idx_t""'");
35288 arg4 =
static_cast< faiss::InvertedLists::idx_t
>(val4);
35289 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
35290 if (!SWIG_IsOK(res5)) {
35291 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "InvertedLists_update_entry" "', argument " "5"" of type '" "uint8_t const *""'");
35293 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
35295 Py_BEGIN_ALLOW_THREADS
35297 (arg1)->update_entry(arg2,arg3,arg4,(uint8_t
const *)arg5);
35299 PyEval_RestoreThread(_save);
35300 PyErr_SetString(PyExc_RuntimeError, e.
what());
35303 Py_END_ALLOW_THREADS
35305 resultobj = SWIG_Py_Void();
35312 SWIGINTERN PyObject *_wrap_InvertedLists_update_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35313 PyObject *resultobj = 0;
35318 faiss::InvertedLists::idx_t *arg5 = (faiss::InvertedLists::idx_t *) 0 ;
35319 uint8_t *arg6 = (uint8_t *) 0 ;
35332 PyObject * obj0 = 0 ;
35333 PyObject * obj1 = 0 ;
35334 PyObject * obj2 = 0 ;
35335 PyObject * obj3 = 0 ;
35336 PyObject * obj4 = 0 ;
35337 PyObject * obj5 = 0 ;
35339 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:InvertedLists_update_entries",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
35341 if (!SWIG_IsOK(res1)) {
35342 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_update_entries" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
35345 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35346 if (!SWIG_IsOK(ecode2)) {
35347 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_update_entries" "', argument " "2"" of type '" "size_t""'");
35349 arg2 =
static_cast< size_t >(val2);
35350 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35351 if (!SWIG_IsOK(ecode3)) {
35352 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_update_entries" "', argument " "3"" of type '" "size_t""'");
35354 arg3 =
static_cast< size_t >(val3);
35355 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
35356 if (!SWIG_IsOK(ecode4)) {
35357 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "InvertedLists_update_entries" "', argument " "4"" of type '" "size_t""'");
35359 arg4 =
static_cast< size_t >(val4);
35360 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
35361 if (!SWIG_IsOK(res5)) {
35362 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "InvertedLists_update_entries" "', argument " "5"" of type '" "faiss::InvertedLists::idx_t const *""'");
35364 arg5 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp5);
35365 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_unsigned_char, 0 | 0 );
35366 if (!SWIG_IsOK(res6)) {
35367 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "InvertedLists_update_entries" "', argument " "6"" of type '" "uint8_t const *""'");
35369 arg6 =
reinterpret_cast< uint8_t *
>(argp6);
35371 Py_BEGIN_ALLOW_THREADS
35373 (arg1)->update_entries(arg2,arg3,arg4,(faiss::InvertedLists::idx_t
const *)arg5,(uint8_t
const *)arg6);
35375 PyEval_RestoreThread(_save);
35376 PyErr_SetString(PyExc_RuntimeError, e.
what());
35379 Py_END_ALLOW_THREADS
35381 resultobj = SWIG_Py_Void();
35388 SWIGINTERN PyObject *_wrap_InvertedLists_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35389 PyObject *resultobj = 0;
35399 PyObject * obj0 = 0 ;
35400 PyObject * obj1 = 0 ;
35401 PyObject * obj2 = 0 ;
35403 if (!PyArg_ParseTuple(args,(
char *)
"OOO:InvertedLists_resize",&obj0,&obj1,&obj2)) SWIG_fail;
35404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
35405 if (!SWIG_IsOK(res1)) {
35406 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_resize" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
35409 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35410 if (!SWIG_IsOK(ecode2)) {
35411 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "InvertedLists_resize" "', argument " "2"" of type '" "size_t""'");
35413 arg2 =
static_cast< size_t >(val2);
35414 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35415 if (!SWIG_IsOK(ecode3)) {
35416 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_resize" "', argument " "3"" of type '" "size_t""'");
35418 arg3 =
static_cast< size_t >(val3);
35420 Py_BEGIN_ALLOW_THREADS
35422 (arg1)->resize(arg2,arg3);
35424 PyEval_RestoreThread(_save);
35425 PyErr_SetString(PyExc_RuntimeError, e.
what());
35428 Py_END_ALLOW_THREADS
35430 resultobj = SWIG_Py_Void();
35437 SWIGINTERN PyObject *_wrap_InvertedLists_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35438 PyObject *resultobj = 0;
35442 PyObject * obj0 = 0 ;
35444 if (!PyArg_ParseTuple(args,(
char *)
"O:InvertedLists_reset",&obj0)) SWIG_fail;
35445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
35446 if (!SWIG_IsOK(res1)) {
35447 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_reset" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
35451 Py_BEGIN_ALLOW_THREADS
35455 PyEval_RestoreThread(_save);
35456 PyErr_SetString(PyExc_RuntimeError, e.
what());
35459 Py_END_ALLOW_THREADS
35461 resultobj = SWIG_Py_Void();
35468 SWIGINTERN PyObject *_wrap_InvertedLists_merge_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35469 PyObject *resultobj = 0;
35479 PyObject * obj0 = 0 ;
35480 PyObject * obj1 = 0 ;
35481 PyObject * obj2 = 0 ;
35483 if (!PyArg_ParseTuple(args,(
char *)
"OOO:InvertedLists_merge_from",&obj0,&obj1,&obj2)) SWIG_fail;
35484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
35485 if (!SWIG_IsOK(res1)) {
35486 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "InvertedLists_merge_from" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
35489 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
35490 if (!SWIG_IsOK(res2)) {
35491 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "InvertedLists_merge_from" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
35494 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35495 if (!SWIG_IsOK(ecode3)) {
35496 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "InvertedLists_merge_from" "', argument " "3"" of type '" "size_t""'");
35498 arg3 =
static_cast< size_t >(val3);
35500 Py_BEGIN_ALLOW_THREADS
35502 (arg1)->merge_from(arg2,arg3);
35504 PyEval_RestoreThread(_save);
35505 PyErr_SetString(PyExc_RuntimeError, e.
what());
35508 Py_END_ALLOW_THREADS
35510 resultobj = SWIG_Py_Void();
35517 SWIGINTERN PyObject *_wrap_delete_InvertedLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35518 PyObject *resultobj = 0;
35522 PyObject * obj0 = 0 ;
35524 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_InvertedLists",&obj0)) SWIG_fail;
35525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, SWIG_POINTER_DISOWN | 0 );
35526 if (!SWIG_IsOK(res1)) {
35527 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_InvertedLists" "', argument " "1"" of type '" "faiss::InvertedLists *""'");
35531 Py_BEGIN_ALLOW_THREADS
35535 PyEval_RestoreThread(_save);
35536 PyErr_SetString(PyExc_RuntimeError, e.
what());
35539 Py_END_ALLOW_THREADS
35541 resultobj = SWIG_Py_Void();
35548 SWIGINTERN PyObject *InvertedLists_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35550 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
35551 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__InvertedLists, SWIG_NewClientData(obj));
35552 return SWIG_Py_Void();
35555 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35556 PyObject *resultobj = 0;
35558 std::vector< std::vector< uint8_t > > *arg2 = (std::vector< std::vector< uint8_t > > *) 0 ;
35563 PyObject * obj0 = 0 ;
35564 PyObject * obj1 = 0 ;
35566 if (!PyArg_ParseTuple(args,(
char *)
"OO:ArrayInvertedLists_codes_set",&obj0,&obj1)) SWIG_fail;
35567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
35568 if (!SWIG_IsOK(res1)) {
35569 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_codes_set" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
35572 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
35573 if (!SWIG_IsOK(res2)) {
35574 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ArrayInvertedLists_codes_set" "', argument " "2"" of type '" "std::vector< std::vector< uint8_t > > *""'");
35576 arg2 =
reinterpret_cast< std::vector< std::vector< uint8_t >
> * >(argp2);
35577 if (arg1) (arg1)->codes = *arg2;
35578 resultobj = SWIG_Py_Void();
35585 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35586 PyObject *resultobj = 0;
35590 PyObject * obj0 = 0 ;
35591 std::vector< std::vector< uint8_t > > *result = 0 ;
35593 if (!PyArg_ParseTuple(args,(
char *)
"O:ArrayInvertedLists_codes_get",&obj0)) SWIG_fail;
35594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
35595 if (!SWIG_IsOK(res1)) {
35596 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_codes_get" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
35599 result = (std::vector< std::vector< uint8_t > > *)& ((arg1)->codes);
35600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_uint8_t_t_t, 0 | 0 );
35607 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_ids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35608 PyObject *resultobj = 0;
35610 std::vector< std::vector< faiss::InvertedLists::idx_t > > *arg2 = (std::vector< std::vector< faiss::InvertedLists::idx_t > > *) 0 ;
35615 PyObject * obj0 = 0 ;
35616 PyObject * obj1 = 0 ;
35618 if (!PyArg_ParseTuple(args,(
char *)
"OO:ArrayInvertedLists_ids_set",&obj0,&obj1)) SWIG_fail;
35619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
35620 if (!SWIG_IsOK(res1)) {
35621 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_ids_set" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
35624 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
35625 if (!SWIG_IsOK(res2)) {
35626 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ArrayInvertedLists_ids_set" "', argument " "2"" of type '" "std::vector< std::vector< faiss::InvertedLists::idx_t > > *""'");
35628 arg2 =
reinterpret_cast< std::vector< std::vector< faiss::InvertedLists::idx_t >
> * >(argp2);
35629 if (arg1) (arg1)->ids = *arg2;
35630 resultobj = SWIG_Py_Void();
35637 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_ids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35638 PyObject *resultobj = 0;
35642 PyObject * obj0 = 0 ;
35643 std::vector< std::vector< faiss::InvertedLists::idx_t > > *result = 0 ;
35645 if (!PyArg_ParseTuple(args,(
char *)
"O:ArrayInvertedLists_ids_get",&obj0)) SWIG_fail;
35646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
35647 if (!SWIG_IsOK(res1)) {
35648 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_ids_get" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
35651 result = (std::vector< std::vector< faiss::InvertedLists::idx_t > > *)& ((arg1)->ids);
35652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t, 0 | 0 );
35659 SWIGINTERN PyObject *_wrap_new_ArrayInvertedLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35660 PyObject *resultobj = 0;
35667 PyObject * obj0 = 0 ;
35668 PyObject * obj1 = 0 ;
35671 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_ArrayInvertedLists",&obj0,&obj1)) SWIG_fail;
35672 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
35673 if (!SWIG_IsOK(ecode1)) {
35674 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_ArrayInvertedLists" "', argument " "1"" of type '" "size_t""'");
35676 arg1 =
static_cast< size_t >(val1);
35677 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35678 if (!SWIG_IsOK(ecode2)) {
35679 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_ArrayInvertedLists" "', argument " "2"" of type '" "size_t""'");
35681 arg2 =
static_cast< size_t >(val2);
35683 Py_BEGIN_ALLOW_THREADS
35687 PyEval_RestoreThread(_save);
35688 PyErr_SetString(PyExc_RuntimeError, e.
what());
35691 Py_END_ALLOW_THREADS
35693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ArrayInvertedLists, SWIG_POINTER_NEW | 0 );
35700 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_list_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35701 PyObject *resultobj = 0;
35708 PyObject * obj0 = 0 ;
35709 PyObject * obj1 = 0 ;
35712 if (!PyArg_ParseTuple(args,(
char *)
"OO:ArrayInvertedLists_list_size",&obj0,&obj1)) SWIG_fail;
35713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
35714 if (!SWIG_IsOK(res1)) {
35715 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_list_size" "', argument " "1"" of type '" "faiss::ArrayInvertedLists const *""'");
35718 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35719 if (!SWIG_IsOK(ecode2)) {
35720 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ArrayInvertedLists_list_size" "', argument " "2"" of type '" "size_t""'");
35722 arg2 =
static_cast< size_t >(val2);
35724 Py_BEGIN_ALLOW_THREADS
35728 PyEval_RestoreThread(_save);
35729 PyErr_SetString(PyExc_RuntimeError, e.
what());
35732 Py_END_ALLOW_THREADS
35734 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35741 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_get_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35742 PyObject *resultobj = 0;
35749 PyObject * obj0 = 0 ;
35750 PyObject * obj1 = 0 ;
35751 uint8_t *result = 0 ;
35753 if (!PyArg_ParseTuple(args,(
char *)
"OO:ArrayInvertedLists_get_codes",&obj0,&obj1)) SWIG_fail;
35754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
35755 if (!SWIG_IsOK(res1)) {
35756 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_get_codes" "', argument " "1"" of type '" "faiss::ArrayInvertedLists const *""'");
35759 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35760 if (!SWIG_IsOK(ecode2)) {
35761 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ArrayInvertedLists_get_codes" "', argument " "2"" of type '" "size_t""'");
35763 arg2 =
static_cast< size_t >(val2);
35765 Py_BEGIN_ALLOW_THREADS
35769 PyEval_RestoreThread(_save);
35770 PyErr_SetString(PyExc_RuntimeError, e.
what());
35773 Py_END_ALLOW_THREADS
35775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
35782 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35783 PyObject *resultobj = 0;
35790 PyObject * obj0 = 0 ;
35791 PyObject * obj1 = 0 ;
35792 faiss::InvertedLists::idx_t *result = 0 ;
35794 if (!PyArg_ParseTuple(args,(
char *)
"OO:ArrayInvertedLists_get_ids",&obj0,&obj1)) SWIG_fail;
35795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
35796 if (!SWIG_IsOK(res1)) {
35797 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_get_ids" "', argument " "1"" of type '" "faiss::ArrayInvertedLists const *""'");
35800 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35801 if (!SWIG_IsOK(ecode2)) {
35802 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ArrayInvertedLists_get_ids" "', argument " "2"" of type '" "size_t""'");
35804 arg2 =
static_cast< size_t >(val2);
35806 Py_BEGIN_ALLOW_THREADS
35810 PyEval_RestoreThread(_save);
35811 PyErr_SetString(PyExc_RuntimeError, e.
what());
35814 Py_END_ALLOW_THREADS
35816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
35823 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_add_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35824 PyObject *resultobj = 0;
35828 faiss::InvertedLists::idx_t *arg4 = (faiss::InvertedLists::idx_t *) 0 ;
35829 uint8_t *arg5 = (uint8_t *) 0 ;
35840 PyObject * obj0 = 0 ;
35841 PyObject * obj1 = 0 ;
35842 PyObject * obj2 = 0 ;
35843 PyObject * obj3 = 0 ;
35844 PyObject * obj4 = 0 ;
35847 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:ArrayInvertedLists_add_entries",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
35849 if (!SWIG_IsOK(res1)) {
35850 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_add_entries" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
35853 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35854 if (!SWIG_IsOK(ecode2)) {
35855 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ArrayInvertedLists_add_entries" "', argument " "2"" of type '" "size_t""'");
35857 arg2 =
static_cast< size_t >(val2);
35858 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35859 if (!SWIG_IsOK(ecode3)) {
35860 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ArrayInvertedLists_add_entries" "', argument " "3"" of type '" "size_t""'");
35862 arg3 =
static_cast< size_t >(val3);
35863 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
35864 if (!SWIG_IsOK(res4)) {
35865 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ArrayInvertedLists_add_entries" "', argument " "4"" of type '" "faiss::InvertedLists::idx_t const *""'");
35867 arg4 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp4);
35868 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
35869 if (!SWIG_IsOK(res5)) {
35870 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "ArrayInvertedLists_add_entries" "', argument " "5"" of type '" "uint8_t const *""'");
35872 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
35874 Py_BEGIN_ALLOW_THREADS
35876 result = (size_t)(arg1)->add_entries(arg2,arg3,(faiss::InvertedLists::idx_t
const *)arg4,(uint8_t
const *)arg5);
35878 PyEval_RestoreThread(_save);
35879 PyErr_SetString(PyExc_RuntimeError, e.
what());
35882 Py_END_ALLOW_THREADS
35884 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35891 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_update_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35892 PyObject *resultobj = 0;
35897 faiss::InvertedLists::idx_t *arg5 = (faiss::InvertedLists::idx_t *) 0 ;
35898 uint8_t *arg6 = (uint8_t *) 0 ;
35911 PyObject * obj0 = 0 ;
35912 PyObject * obj1 = 0 ;
35913 PyObject * obj2 = 0 ;
35914 PyObject * obj3 = 0 ;
35915 PyObject * obj4 = 0 ;
35916 PyObject * obj5 = 0 ;
35918 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:ArrayInvertedLists_update_entries",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
35920 if (!SWIG_IsOK(res1)) {
35921 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_update_entries" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
35924 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35925 if (!SWIG_IsOK(ecode2)) {
35926 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ArrayInvertedLists_update_entries" "', argument " "2"" of type '" "size_t""'");
35928 arg2 =
static_cast< size_t >(val2);
35929 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35930 if (!SWIG_IsOK(ecode3)) {
35931 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ArrayInvertedLists_update_entries" "', argument " "3"" of type '" "size_t""'");
35933 arg3 =
static_cast< size_t >(val3);
35934 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
35935 if (!SWIG_IsOK(ecode4)) {
35936 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ArrayInvertedLists_update_entries" "', argument " "4"" of type '" "size_t""'");
35938 arg4 =
static_cast< size_t >(val4);
35939 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
35940 if (!SWIG_IsOK(res5)) {
35941 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "ArrayInvertedLists_update_entries" "', argument " "5"" of type '" "faiss::InvertedLists::idx_t const *""'");
35943 arg5 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp5);
35944 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_unsigned_char, 0 | 0 );
35945 if (!SWIG_IsOK(res6)) {
35946 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ArrayInvertedLists_update_entries" "', argument " "6"" of type '" "uint8_t const *""'");
35948 arg6 =
reinterpret_cast< uint8_t *
>(argp6);
35950 Py_BEGIN_ALLOW_THREADS
35952 (arg1)->update_entries(arg2,arg3,arg4,(faiss::InvertedLists::idx_t
const *)arg5,(uint8_t
const *)arg6);
35954 PyEval_RestoreThread(_save);
35955 PyErr_SetString(PyExc_RuntimeError, e.
what());
35958 Py_END_ALLOW_THREADS
35960 resultobj = SWIG_Py_Void();
35967 SWIGINTERN PyObject *_wrap_ArrayInvertedLists_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
35968 PyObject *resultobj = 0;
35978 PyObject * obj0 = 0 ;
35979 PyObject * obj1 = 0 ;
35980 PyObject * obj2 = 0 ;
35982 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ArrayInvertedLists_resize",&obj0,&obj1,&obj2)) SWIG_fail;
35983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
35984 if (!SWIG_IsOK(res1)) {
35985 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ArrayInvertedLists_resize" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
35988 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35989 if (!SWIG_IsOK(ecode2)) {
35990 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ArrayInvertedLists_resize" "', argument " "2"" of type '" "size_t""'");
35992 arg2 =
static_cast< size_t >(val2);
35993 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35994 if (!SWIG_IsOK(ecode3)) {
35995 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ArrayInvertedLists_resize" "', argument " "3"" of type '" "size_t""'");
35997 arg3 =
static_cast< size_t >(val3);
35999 Py_BEGIN_ALLOW_THREADS
36001 (arg1)->resize(arg2,arg3);
36003 PyEval_RestoreThread(_save);
36004 PyErr_SetString(PyExc_RuntimeError, e.
what());
36007 Py_END_ALLOW_THREADS
36009 resultobj = SWIG_Py_Void();
36016 SWIGINTERN PyObject *_wrap_delete_ArrayInvertedLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36017 PyObject *resultobj = 0;
36021 PyObject * obj0 = 0 ;
36023 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ArrayInvertedLists",&obj0)) SWIG_fail;
36024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ArrayInvertedLists, SWIG_POINTER_DISOWN | 0 );
36025 if (!SWIG_IsOK(res1)) {
36026 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ArrayInvertedLists" "', argument " "1"" of type '" "faiss::ArrayInvertedLists *""'");
36030 Py_BEGIN_ALLOW_THREADS
36034 PyEval_RestoreThread(_save);
36035 PyErr_SetString(PyExc_RuntimeError, e.
what());
36038 Py_END_ALLOW_THREADS
36040 resultobj = SWIG_Py_Void();
36047 SWIGINTERN PyObject *ArrayInvertedLists_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36049 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
36050 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ArrayInvertedLists, SWIG_NewClientData(obj));
36051 return SWIG_Py_Void();
36054 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_ils_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36055 PyObject *resultobj = 0;
36057 std::vector< faiss::InvertedLists const * > *arg2 = (std::vector< faiss::InvertedLists const * > *) 0 ;
36062 PyObject * obj0 = 0 ;
36063 PyObject * obj1 = 0 ;
36065 if (!PyArg_ParseTuple(args,(
char *)
"OO:ConcatenatedInvertedLists_ils_set",&obj0,&obj1)) SWIG_fail;
36066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
36067 if (!SWIG_IsOK(res1)) {
36068 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_ils_set" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists *""'");
36071 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t, 0 | 0 );
36072 if (!SWIG_IsOK(res2)) {
36073 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ConcatenatedInvertedLists_ils_set" "', argument " "2"" of type '" "std::vector< faiss::InvertedLists const * > *""'");
36075 arg2 =
reinterpret_cast< std::vector< faiss::InvertedLists const * > *
>(argp2);
36076 if (arg1) (arg1)->ils = *arg2;
36077 resultobj = SWIG_Py_Void();
36084 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_ils_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36085 PyObject *resultobj = 0;
36089 PyObject * obj0 = 0 ;
36090 std::vector< faiss::InvertedLists const * > *result = 0 ;
36092 if (!PyArg_ParseTuple(args,(
char *)
"O:ConcatenatedInvertedLists_ils_get",&obj0)) SWIG_fail;
36093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
36094 if (!SWIG_IsOK(res1)) {
36095 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_ils_get" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists *""'");
36098 result = (std::vector< faiss::InvertedLists const * > *)& ((arg1)->ils);
36099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t, 0 | 0 );
36106 SWIGINTERN PyObject *_wrap_new_ConcatenatedInvertedLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36107 PyObject *resultobj = 0;
36114 PyObject * obj0 = 0 ;
36115 PyObject * obj1 = 0 ;
36118 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_ConcatenatedInvertedLists",&obj0,&obj1)) SWIG_fail;
36119 ecode1 = SWIG_AsVal_int(obj0, &val1);
36120 if (!SWIG_IsOK(ecode1)) {
36121 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_ConcatenatedInvertedLists" "', argument " "1"" of type '" "int""'");
36123 arg1 =
static_cast< int >(val1);
36124 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_faiss__InvertedLists, 0 | 0 );
36125 if (!SWIG_IsOK(res2)) {
36126 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_ConcatenatedInvertedLists" "', argument " "2"" of type '" "faiss::InvertedLists const **""'");
36130 Py_BEGIN_ALLOW_THREADS
36134 PyEval_RestoreThread(_save);
36135 PyErr_SetString(PyExc_RuntimeError, e.
what());
36138 Py_END_ALLOW_THREADS
36140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ConcatenatedInvertedLists, SWIG_POINTER_NEW | 0 );
36147 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_list_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36148 PyObject *resultobj = 0;
36155 PyObject * obj0 = 0 ;
36156 PyObject * obj1 = 0 ;
36159 if (!PyArg_ParseTuple(args,(
char *)
"OO:ConcatenatedInvertedLists_list_size",&obj0,&obj1)) SWIG_fail;
36160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
36161 if (!SWIG_IsOK(res1)) {
36162 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_list_size" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists const *""'");
36165 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
36166 if (!SWIG_IsOK(ecode2)) {
36167 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_list_size" "', argument " "2"" of type '" "size_t""'");
36169 arg2 =
static_cast< size_t >(val2);
36171 Py_BEGIN_ALLOW_THREADS
36175 PyEval_RestoreThread(_save);
36176 PyErr_SetString(PyExc_RuntimeError, e.
what());
36179 Py_END_ALLOW_THREADS
36181 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
36188 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_get_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36189 PyObject *resultobj = 0;
36196 PyObject * obj0 = 0 ;
36197 PyObject * obj1 = 0 ;
36198 uint8_t *result = 0 ;
36200 if (!PyArg_ParseTuple(args,(
char *)
"OO:ConcatenatedInvertedLists_get_codes",&obj0,&obj1)) SWIG_fail;
36201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
36202 if (!SWIG_IsOK(res1)) {
36203 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_get_codes" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists const *""'");
36206 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
36207 if (!SWIG_IsOK(ecode2)) {
36208 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_get_codes" "', argument " "2"" of type '" "size_t""'");
36210 arg2 =
static_cast< size_t >(val2);
36212 Py_BEGIN_ALLOW_THREADS
36216 PyEval_RestoreThread(_save);
36217 PyErr_SetString(PyExc_RuntimeError, e.
what());
36220 Py_END_ALLOW_THREADS
36222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
36229 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36230 PyObject *resultobj = 0;
36237 PyObject * obj0 = 0 ;
36238 PyObject * obj1 = 0 ;
36239 faiss::InvertedLists::idx_t *result = 0 ;
36241 if (!PyArg_ParseTuple(args,(
char *)
"OO:ConcatenatedInvertedLists_get_ids",&obj0,&obj1)) SWIG_fail;
36242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
36243 if (!SWIG_IsOK(res1)) {
36244 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_get_ids" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists const *""'");
36247 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
36248 if (!SWIG_IsOK(ecode2)) {
36249 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_get_ids" "', argument " "2"" of type '" "size_t""'");
36251 arg2 =
static_cast< size_t >(val2);
36253 Py_BEGIN_ALLOW_THREADS
36257 PyEval_RestoreThread(_save);
36258 PyErr_SetString(PyExc_RuntimeError, e.
what());
36261 Py_END_ALLOW_THREADS
36263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
36270 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_release_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36271 PyObject *resultobj = 0;
36273 uint8_t *arg2 = (uint8_t *) 0 ;
36278 PyObject * obj0 = 0 ;
36279 PyObject * obj1 = 0 ;
36281 if (!PyArg_ParseTuple(args,(
char *)
"OO:ConcatenatedInvertedLists_release_codes",&obj0,&obj1)) SWIG_fail;
36282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
36283 if (!SWIG_IsOK(res1)) {
36284 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_release_codes" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists const *""'");
36287 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
36288 if (!SWIG_IsOK(res2)) {
36289 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ConcatenatedInvertedLists_release_codes" "', argument " "2"" of type '" "uint8_t const *""'");
36291 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
36293 Py_BEGIN_ALLOW_THREADS
36297 PyEval_RestoreThread(_save);
36298 PyErr_SetString(PyExc_RuntimeError, e.
what());
36301 Py_END_ALLOW_THREADS
36303 resultobj = SWIG_Py_Void();
36310 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_release_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36311 PyObject *resultobj = 0;
36313 faiss::InvertedLists::idx_t *arg2 = (faiss::InvertedLists::idx_t *) 0 ;
36318 PyObject * obj0 = 0 ;
36319 PyObject * obj1 = 0 ;
36321 if (!PyArg_ParseTuple(args,(
char *)
"OO:ConcatenatedInvertedLists_release_ids",&obj0,&obj1)) SWIG_fail;
36322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
36323 if (!SWIG_IsOK(res1)) {
36324 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_release_ids" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists const *""'");
36327 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
36328 if (!SWIG_IsOK(res2)) {
36329 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ConcatenatedInvertedLists_release_ids" "', argument " "2"" of type '" "faiss::InvertedLists::idx_t const *""'");
36331 arg2 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp2);
36333 Py_BEGIN_ALLOW_THREADS
36337 PyEval_RestoreThread(_save);
36338 PyErr_SetString(PyExc_RuntimeError, e.
what());
36341 Py_END_ALLOW_THREADS
36343 resultobj = SWIG_Py_Void();
36350 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_get_single_id(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36351 PyObject *resultobj = 0;
36361 PyObject * obj0 = 0 ;
36362 PyObject * obj1 = 0 ;
36363 PyObject * obj2 = 0 ;
36364 faiss::InvertedLists::idx_t result;
36366 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ConcatenatedInvertedLists_get_single_id",&obj0,&obj1,&obj2)) SWIG_fail;
36367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
36368 if (!SWIG_IsOK(res1)) {
36369 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_get_single_id" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists const *""'");
36372 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
36373 if (!SWIG_IsOK(ecode2)) {
36374 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_get_single_id" "', argument " "2"" of type '" "size_t""'");
36376 arg2 =
static_cast< size_t >(val2);
36377 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36378 if (!SWIG_IsOK(ecode3)) {
36379 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ConcatenatedInvertedLists_get_single_id" "', argument " "3"" of type '" "size_t""'");
36381 arg3 =
static_cast< size_t >(val3);
36383 Py_BEGIN_ALLOW_THREADS
36387 PyEval_RestoreThread(_save);
36388 PyErr_SetString(PyExc_RuntimeError, e.
what());
36391 Py_END_ALLOW_THREADS
36393 resultobj = SWIG_From_long(static_cast< long >(result));
36400 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_get_single_code(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36401 PyObject *resultobj = 0;
36411 PyObject * obj0 = 0 ;
36412 PyObject * obj1 = 0 ;
36413 PyObject * obj2 = 0 ;
36414 uint8_t *result = 0 ;
36416 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ConcatenatedInvertedLists_get_single_code",&obj0,&obj1,&obj2)) SWIG_fail;
36417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
36418 if (!SWIG_IsOK(res1)) {
36419 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_get_single_code" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists const *""'");
36422 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
36423 if (!SWIG_IsOK(ecode2)) {
36424 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_get_single_code" "', argument " "2"" of type '" "size_t""'");
36426 arg2 =
static_cast< size_t >(val2);
36427 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36428 if (!SWIG_IsOK(ecode3)) {
36429 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ConcatenatedInvertedLists_get_single_code" "', argument " "3"" of type '" "size_t""'");
36431 arg3 =
static_cast< size_t >(val3);
36433 Py_BEGIN_ALLOW_THREADS
36437 PyEval_RestoreThread(_save);
36438 PyErr_SetString(PyExc_RuntimeError, e.
what());
36441 Py_END_ALLOW_THREADS
36443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
36450 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_add_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36451 PyObject *resultobj = 0;
36455 faiss::InvertedLists::idx_t *arg4 = (faiss::InvertedLists::idx_t *) 0 ;
36456 uint8_t *arg5 = (uint8_t *) 0 ;
36467 PyObject * obj0 = 0 ;
36468 PyObject * obj1 = 0 ;
36469 PyObject * obj2 = 0 ;
36470 PyObject * obj3 = 0 ;
36471 PyObject * obj4 = 0 ;
36474 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:ConcatenatedInvertedLists_add_entries",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
36476 if (!SWIG_IsOK(res1)) {
36477 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_add_entries" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists *""'");
36480 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
36481 if (!SWIG_IsOK(ecode2)) {
36482 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_add_entries" "', argument " "2"" of type '" "size_t""'");
36484 arg2 =
static_cast< size_t >(val2);
36485 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36486 if (!SWIG_IsOK(ecode3)) {
36487 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ConcatenatedInvertedLists_add_entries" "', argument " "3"" of type '" "size_t""'");
36489 arg3 =
static_cast< size_t >(val3);
36490 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
36491 if (!SWIG_IsOK(res4)) {
36492 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ConcatenatedInvertedLists_add_entries" "', argument " "4"" of type '" "faiss::InvertedLists::idx_t const *""'");
36494 arg4 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp4);
36495 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
36496 if (!SWIG_IsOK(res5)) {
36497 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "ConcatenatedInvertedLists_add_entries" "', argument " "5"" of type '" "uint8_t const *""'");
36499 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
36501 Py_BEGIN_ALLOW_THREADS
36503 result = (size_t)(arg1)->add_entries(arg2,arg3,(faiss::InvertedLists::idx_t
const *)arg4,(uint8_t
const *)arg5);
36505 PyEval_RestoreThread(_save);
36506 PyErr_SetString(PyExc_RuntimeError, e.
what());
36509 Py_END_ALLOW_THREADS
36511 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
36518 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_update_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36519 PyObject *resultobj = 0;
36524 faiss::InvertedLists::idx_t *arg5 = (faiss::InvertedLists::idx_t *) 0 ;
36525 uint8_t *arg6 = (uint8_t *) 0 ;
36538 PyObject * obj0 = 0 ;
36539 PyObject * obj1 = 0 ;
36540 PyObject * obj2 = 0 ;
36541 PyObject * obj3 = 0 ;
36542 PyObject * obj4 = 0 ;
36543 PyObject * obj5 = 0 ;
36545 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:ConcatenatedInvertedLists_update_entries",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
36547 if (!SWIG_IsOK(res1)) {
36548 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_update_entries" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists *""'");
36551 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
36552 if (!SWIG_IsOK(ecode2)) {
36553 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_update_entries" "', argument " "2"" of type '" "size_t""'");
36555 arg2 =
static_cast< size_t >(val2);
36556 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36557 if (!SWIG_IsOK(ecode3)) {
36558 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ConcatenatedInvertedLists_update_entries" "', argument " "3"" of type '" "size_t""'");
36560 arg3 =
static_cast< size_t >(val3);
36561 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
36562 if (!SWIG_IsOK(ecode4)) {
36563 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ConcatenatedInvertedLists_update_entries" "', argument " "4"" of type '" "size_t""'");
36565 arg4 =
static_cast< size_t >(val4);
36566 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
36567 if (!SWIG_IsOK(res5)) {
36568 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "ConcatenatedInvertedLists_update_entries" "', argument " "5"" of type '" "faiss::InvertedLists::idx_t const *""'");
36570 arg5 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp5);
36571 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_unsigned_char, 0 | 0 );
36572 if (!SWIG_IsOK(res6)) {
36573 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ConcatenatedInvertedLists_update_entries" "', argument " "6"" of type '" "uint8_t const *""'");
36575 arg6 =
reinterpret_cast< uint8_t *
>(argp6);
36577 Py_BEGIN_ALLOW_THREADS
36579 (arg1)->update_entries(arg2,arg3,arg4,(faiss::InvertedLists::idx_t
const *)arg5,(uint8_t
const *)arg6);
36581 PyEval_RestoreThread(_save);
36582 PyErr_SetString(PyExc_RuntimeError, e.
what());
36585 Py_END_ALLOW_THREADS
36587 resultobj = SWIG_Py_Void();
36594 SWIGINTERN PyObject *_wrap_ConcatenatedInvertedLists_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36595 PyObject *resultobj = 0;
36605 PyObject * obj0 = 0 ;
36606 PyObject * obj1 = 0 ;
36607 PyObject * obj2 = 0 ;
36609 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ConcatenatedInvertedLists_resize",&obj0,&obj1,&obj2)) SWIG_fail;
36610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, 0 | 0 );
36611 if (!SWIG_IsOK(res1)) {
36612 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ConcatenatedInvertedLists_resize" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists *""'");
36615 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
36616 if (!SWIG_IsOK(ecode2)) {
36617 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ConcatenatedInvertedLists_resize" "', argument " "2"" of type '" "size_t""'");
36619 arg2 =
static_cast< size_t >(val2);
36620 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36621 if (!SWIG_IsOK(ecode3)) {
36622 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ConcatenatedInvertedLists_resize" "', argument " "3"" of type '" "size_t""'");
36624 arg3 =
static_cast< size_t >(val3);
36626 Py_BEGIN_ALLOW_THREADS
36628 (arg1)->resize(arg2,arg3);
36630 PyEval_RestoreThread(_save);
36631 PyErr_SetString(PyExc_RuntimeError, e.
what());
36634 Py_END_ALLOW_THREADS
36636 resultobj = SWIG_Py_Void();
36643 SWIGINTERN PyObject *_wrap_delete_ConcatenatedInvertedLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36644 PyObject *resultobj = 0;
36648 PyObject * obj0 = 0 ;
36650 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ConcatenatedInvertedLists",&obj0)) SWIG_fail;
36651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ConcatenatedInvertedLists, SWIG_POINTER_DISOWN | 0 );
36652 if (!SWIG_IsOK(res1)) {
36653 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ConcatenatedInvertedLists" "', argument " "1"" of type '" "faiss::ConcatenatedInvertedLists *""'");
36657 resultobj = SWIG_Py_Void();
36664 SWIGINTERN PyObject *ConcatenatedInvertedLists_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36666 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
36667 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ConcatenatedInvertedLists, SWIG_NewClientData(obj));
36668 return SWIG_Py_Void();
36671 SWIGINTERN PyObject *_wrap_Level1Quantizer_quantizer_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36672 PyObject *resultobj = 0;
36679 PyObject * obj0 = 0 ;
36680 PyObject * obj1 = 0 ;
36682 if (!PyArg_ParseTuple(args,(
char *)
"OO:Level1Quantizer_quantizer_set",&obj0,&obj1)) SWIG_fail;
36683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
36684 if (!SWIG_IsOK(res1)) {
36685 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_quantizer_set" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
36688 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
36689 if (!SWIG_IsOK(res2)) {
36690 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Level1Quantizer_quantizer_set" "', argument " "2"" of type '" "faiss::Index *""'");
36693 if (arg1) (arg1)->quantizer = arg2;
36694 resultobj = SWIG_Py_Void();
36701 SWIGINTERN PyObject *_wrap_Level1Quantizer_quantizer_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36702 PyObject *resultobj = 0;
36706 PyObject * obj0 = 0 ;
36709 if (!PyArg_ParseTuple(args,(
char *)
"O:Level1Quantizer_quantizer_get",&obj0)) SWIG_fail;
36710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
36711 if (!SWIG_IsOK(res1)) {
36712 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_quantizer_get" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
36716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
36723 SWIGINTERN PyObject *_wrap_Level1Quantizer_nlist_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36724 PyObject *resultobj = 0;
36731 PyObject * obj0 = 0 ;
36732 PyObject * obj1 = 0 ;
36734 if (!PyArg_ParseTuple(args,(
char *)
"OO:Level1Quantizer_nlist_set",&obj0,&obj1)) SWIG_fail;
36735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
36736 if (!SWIG_IsOK(res1)) {
36737 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_nlist_set" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
36740 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
36741 if (!SWIG_IsOK(ecode2)) {
36742 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Level1Quantizer_nlist_set" "', argument " "2"" of type '" "size_t""'");
36744 arg2 =
static_cast< size_t >(val2);
36745 if (arg1) (arg1)->nlist = arg2;
36746 resultobj = SWIG_Py_Void();
36753 SWIGINTERN PyObject *_wrap_Level1Quantizer_nlist_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36754 PyObject *resultobj = 0;
36758 PyObject * obj0 = 0 ;
36761 if (!PyArg_ParseTuple(args,(
char *)
"O:Level1Quantizer_nlist_get",&obj0)) SWIG_fail;
36762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
36763 if (!SWIG_IsOK(res1)) {
36764 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_nlist_get" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
36767 result = (size_t) ((arg1)->nlist);
36768 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
36775 SWIGINTERN PyObject *_wrap_Level1Quantizer_quantizer_trains_alone_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36776 PyObject *resultobj = 0;
36783 PyObject * obj0 = 0 ;
36784 PyObject * obj1 = 0 ;
36786 if (!PyArg_ParseTuple(args,(
char *)
"OO:Level1Quantizer_quantizer_trains_alone_set",&obj0,&obj1)) SWIG_fail;
36787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
36788 if (!SWIG_IsOK(res1)) {
36789 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_quantizer_trains_alone_set" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
36792 ecode2 = SWIG_AsVal_char(obj1, &val2);
36793 if (!SWIG_IsOK(ecode2)) {
36794 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Level1Quantizer_quantizer_trains_alone_set" "', argument " "2"" of type '" "char""'");
36796 arg2 =
static_cast< char >(val2);
36797 if (arg1) (arg1)->quantizer_trains_alone = arg2;
36798 resultobj = SWIG_Py_Void();
36805 SWIGINTERN PyObject *_wrap_Level1Quantizer_quantizer_trains_alone_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36806 PyObject *resultobj = 0;
36810 PyObject * obj0 = 0 ;
36813 if (!PyArg_ParseTuple(args,(
char *)
"O:Level1Quantizer_quantizer_trains_alone_get",&obj0)) SWIG_fail;
36814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
36815 if (!SWIG_IsOK(res1)) {
36816 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_quantizer_trains_alone_get" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
36819 result = (char) ((arg1)->quantizer_trains_alone);
36820 resultobj = SWIG_From_char(static_cast< char >(result));
36827 SWIGINTERN PyObject *_wrap_Level1Quantizer_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36828 PyObject *resultobj = 0;
36835 PyObject * obj0 = 0 ;
36836 PyObject * obj1 = 0 ;
36838 if (!PyArg_ParseTuple(args,(
char *)
"OO:Level1Quantizer_own_fields_set",&obj0,&obj1)) SWIG_fail;
36839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
36840 if (!SWIG_IsOK(res1)) {
36841 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_own_fields_set" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
36844 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36845 if (!SWIG_IsOK(ecode2)) {
36846 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Level1Quantizer_own_fields_set" "', argument " "2"" of type '" "bool""'");
36848 arg2 =
static_cast< bool >(val2);
36849 if (arg1) (arg1)->own_fields = arg2;
36850 resultobj = SWIG_Py_Void();
36857 SWIGINTERN PyObject *_wrap_Level1Quantizer_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36858 PyObject *resultobj = 0;
36862 PyObject * obj0 = 0 ;
36865 if (!PyArg_ParseTuple(args,(
char *)
"O:Level1Quantizer_own_fields_get",&obj0)) SWIG_fail;
36866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
36867 if (!SWIG_IsOK(res1)) {
36868 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_own_fields_get" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
36871 result = (bool) ((arg1)->own_fields);
36872 resultobj = SWIG_From_bool(static_cast< bool >(result));
36879 SWIGINTERN PyObject *_wrap_Level1Quantizer_cp_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36880 PyObject *resultobj = 0;
36887 PyObject * obj0 = 0 ;
36888 PyObject * obj1 = 0 ;
36890 if (!PyArg_ParseTuple(args,(
char *)
"OO:Level1Quantizer_cp_set",&obj0,&obj1)) SWIG_fail;
36891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
36892 if (!SWIG_IsOK(res1)) {
36893 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_cp_set" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
36896 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
36897 if (!SWIG_IsOK(res2)) {
36898 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Level1Quantizer_cp_set" "', argument " "2"" of type '" "faiss::ClusteringParameters *""'");
36901 if (arg1) (arg1)->cp = *arg2;
36902 resultobj = SWIG_Py_Void();
36909 SWIGINTERN PyObject *_wrap_Level1Quantizer_cp_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36910 PyObject *resultobj = 0;
36914 PyObject * obj0 = 0 ;
36917 if (!PyArg_ParseTuple(args,(
char *)
"O:Level1Quantizer_cp_get",&obj0)) SWIG_fail;
36918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
36919 if (!SWIG_IsOK(res1)) {
36920 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_cp_get" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
36924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
36931 SWIGINTERN PyObject *_wrap_Level1Quantizer_clustering_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36932 PyObject *resultobj = 0;
36939 PyObject * obj0 = 0 ;
36940 PyObject * obj1 = 0 ;
36942 if (!PyArg_ParseTuple(args,(
char *)
"OO:Level1Quantizer_clustering_index_set",&obj0,&obj1)) SWIG_fail;
36943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
36944 if (!SWIG_IsOK(res1)) {
36945 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_clustering_index_set" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
36948 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
36949 if (!SWIG_IsOK(res2)) {
36950 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Level1Quantizer_clustering_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
36953 if (arg1) (arg1)->clustering_index = arg2;
36954 resultobj = SWIG_Py_Void();
36961 SWIGINTERN PyObject *_wrap_Level1Quantizer_clustering_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36962 PyObject *resultobj = 0;
36966 PyObject * obj0 = 0 ;
36969 if (!PyArg_ParseTuple(args,(
char *)
"O:Level1Quantizer_clustering_index_get",&obj0)) SWIG_fail;
36970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
36971 if (!SWIG_IsOK(res1)) {
36972 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_clustering_index_get" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
36976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
36983 SWIGINTERN PyObject *_wrap_Level1Quantizer_train_q1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
36984 PyObject *resultobj = 0;
36987 float *arg3 = (
float *) 0 ;
37000 PyObject * obj0 = 0 ;
37001 PyObject * obj1 = 0 ;
37002 PyObject * obj2 = 0 ;
37003 PyObject * obj3 = 0 ;
37004 PyObject * obj4 = 0 ;
37006 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:Level1Quantizer_train_q1",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
37008 if (!SWIG_IsOK(res1)) {
37009 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Level1Quantizer_train_q1" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
37012 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
37013 if (!SWIG_IsOK(ecode2)) {
37014 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Level1Quantizer_train_q1" "', argument " "2"" of type '" "size_t""'");
37016 arg2 =
static_cast< size_t >(val2);
37017 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
37018 if (!SWIG_IsOK(res3)) {
37019 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Level1Quantizer_train_q1" "', argument " "3"" of type '" "float const *""'");
37021 arg3 =
reinterpret_cast< float *
>(argp3);
37022 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37023 if (!SWIG_IsOK(ecode4)) {
37024 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Level1Quantizer_train_q1" "', argument " "4"" of type '" "bool""'");
37026 arg4 =
static_cast< bool >(val4);
37027 ecode5 = SWIG_AsVal_int(obj4, &val5);
37028 if (!SWIG_IsOK(ecode5)) {
37029 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "Level1Quantizer_train_q1" "', argument " "5"" of type '" "faiss::MetricType""'");
37033 Py_BEGIN_ALLOW_THREADS
37035 (arg1)->train_q1(arg2,(
float const *)arg3,arg4,arg5);
37037 PyEval_RestoreThread(_save);
37038 PyErr_SetString(PyExc_RuntimeError, e.
what());
37041 Py_END_ALLOW_THREADS
37043 resultobj = SWIG_Py_Void();
37050 SWIGINTERN PyObject *_wrap_new_Level1Quantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37051 PyObject *resultobj = 0;
37058 PyObject * obj0 = 0 ;
37059 PyObject * obj1 = 0 ;
37062 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_Level1Quantizer",&obj0,&obj1)) SWIG_fail;
37063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
37064 if (!SWIG_IsOK(res1)) {
37065 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_Level1Quantizer" "', argument " "1"" of type '" "faiss::Index *""'");
37068 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
37069 if (!SWIG_IsOK(ecode2)) {
37070 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_Level1Quantizer" "', argument " "2"" of type '" "size_t""'");
37072 arg2 =
static_cast< size_t >(val2);
37074 Py_BEGIN_ALLOW_THREADS
37078 PyEval_RestoreThread(_save);
37079 PyErr_SetString(PyExc_RuntimeError, e.
what());
37082 Py_END_ALLOW_THREADS
37084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Level1Quantizer, SWIG_POINTER_NEW | 0 );
37091 SWIGINTERN PyObject *_wrap_new_Level1Quantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37092 PyObject *resultobj = 0;
37095 if (!PyArg_ParseTuple(args,(
char *)
":new_Level1Quantizer")) SWIG_fail;
37097 Py_BEGIN_ALLOW_THREADS
37101 PyEval_RestoreThread(_save);
37102 PyErr_SetString(PyExc_RuntimeError, e.
what());
37105 Py_END_ALLOW_THREADS
37107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Level1Quantizer, SWIG_POINTER_NEW | 0 );
37114 SWIGINTERN PyObject *_wrap_new_Level1Quantizer(PyObject *
self, PyObject *args) {
37116 PyObject *argv[3] = {
37121 if (!PyTuple_Check(args)) SWIG_fail;
37122 argc = args ? PyObject_Length(args) : 0;
37123 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37124 argv[ii] = PyTuple_GET_ITEM(args,ii);
37127 return _wrap_new_Level1Quantizer__SWIG_1(
self, args);
37132 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
37133 _v = SWIG_CheckState(res);
37136 int res = SWIG_AsVal_size_t(argv[1], NULL);
37137 _v = SWIG_CheckState(res);
37140 return _wrap_new_Level1Quantizer__SWIG_0(
self, args);
37146 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_Level1Quantizer'.\n"
37147 " Possible C/C++ prototypes are:\n"
37148 " faiss::Level1Quantizer::Level1Quantizer(faiss::Index *,size_t)\n"
37149 " faiss::Level1Quantizer::Level1Quantizer()\n");
37154 SWIGINTERN PyObject *_wrap_delete_Level1Quantizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37155 PyObject *resultobj = 0;
37159 PyObject * obj0 = 0 ;
37161 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Level1Quantizer",&obj0)) SWIG_fail;
37162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Level1Quantizer, SWIG_POINTER_DISOWN | 0 );
37163 if (!SWIG_IsOK(res1)) {
37164 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Level1Quantizer" "', argument " "1"" of type '" "faiss::Level1Quantizer *""'");
37168 Py_BEGIN_ALLOW_THREADS
37172 PyEval_RestoreThread(_save);
37173 PyErr_SetString(PyExc_RuntimeError, e.
what());
37176 Py_END_ALLOW_THREADS
37178 resultobj = SWIG_Py_Void();
37185 SWIGINTERN PyObject *Level1Quantizer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37187 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
37188 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__Level1Quantizer, SWIG_NewClientData(obj));
37189 return SWIG_Py_Void();
37192 SWIGINTERN PyObject *_wrap_IVFSearchParameters_nprobe_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37193 PyObject *resultobj = 0;
37200 PyObject * obj0 = 0 ;
37201 PyObject * obj1 = 0 ;
37203 if (!PyArg_ParseTuple(args,(
char *)
"OO:IVFSearchParameters_nprobe_set",&obj0,&obj1)) SWIG_fail;
37204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
37205 if (!SWIG_IsOK(res1)) {
37206 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFSearchParameters_nprobe_set" "', argument " "1"" of type '" "faiss::IVFSearchParameters *""'");
37209 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
37210 if (!SWIG_IsOK(ecode2)) {
37211 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IVFSearchParameters_nprobe_set" "', argument " "2"" of type '" "size_t""'");
37213 arg2 =
static_cast< size_t >(val2);
37214 if (arg1) (arg1)->nprobe = arg2;
37215 resultobj = SWIG_Py_Void();
37222 SWIGINTERN PyObject *_wrap_IVFSearchParameters_nprobe_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37223 PyObject *resultobj = 0;
37227 PyObject * obj0 = 0 ;
37230 if (!PyArg_ParseTuple(args,(
char *)
"O:IVFSearchParameters_nprobe_get",&obj0)) SWIG_fail;
37231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
37232 if (!SWIG_IsOK(res1)) {
37233 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFSearchParameters_nprobe_get" "', argument " "1"" of type '" "faiss::IVFSearchParameters *""'");
37236 result = (size_t) ((arg1)->nprobe);
37237 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
37244 SWIGINTERN PyObject *_wrap_IVFSearchParameters_max_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37245 PyObject *resultobj = 0;
37252 PyObject * obj0 = 0 ;
37253 PyObject * obj1 = 0 ;
37255 if (!PyArg_ParseTuple(args,(
char *)
"OO:IVFSearchParameters_max_codes_set",&obj0,&obj1)) SWIG_fail;
37256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
37257 if (!SWIG_IsOK(res1)) {
37258 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFSearchParameters_max_codes_set" "', argument " "1"" of type '" "faiss::IVFSearchParameters *""'");
37261 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
37262 if (!SWIG_IsOK(ecode2)) {
37263 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IVFSearchParameters_max_codes_set" "', argument " "2"" of type '" "size_t""'");
37265 arg2 =
static_cast< size_t >(val2);
37266 if (arg1) (arg1)->max_codes = arg2;
37267 resultobj = SWIG_Py_Void();
37274 SWIGINTERN PyObject *_wrap_IVFSearchParameters_max_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37275 PyObject *resultobj = 0;
37279 PyObject * obj0 = 0 ;
37282 if (!PyArg_ParseTuple(args,(
char *)
"O:IVFSearchParameters_max_codes_get",&obj0)) SWIG_fail;
37283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
37284 if (!SWIG_IsOK(res1)) {
37285 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFSearchParameters_max_codes_get" "', argument " "1"" of type '" "faiss::IVFSearchParameters *""'");
37288 result = (size_t) ((arg1)->max_codes);
37289 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
37296 SWIGINTERN PyObject *_wrap_delete_IVFSearchParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37297 PyObject *resultobj = 0;
37301 PyObject * obj0 = 0 ;
37303 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IVFSearchParameters",&obj0)) SWIG_fail;
37304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFSearchParameters, SWIG_POINTER_DISOWN | 0 );
37305 if (!SWIG_IsOK(res1)) {
37306 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IVFSearchParameters" "', argument " "1"" of type '" "faiss::IVFSearchParameters *""'");
37310 Py_BEGIN_ALLOW_THREADS
37314 PyEval_RestoreThread(_save);
37315 PyErr_SetString(PyExc_RuntimeError, e.
what());
37318 Py_END_ALLOW_THREADS
37320 resultobj = SWIG_Py_Void();
37327 SWIGINTERN PyObject *_wrap_new_IVFSearchParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37328 PyObject *resultobj = 0;
37331 if (!PyArg_ParseTuple(args,(
char *)
":new_IVFSearchParameters")) SWIG_fail;
37333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IVFSearchParameters, SWIG_POINTER_NEW | 0 );
37340 SWIGINTERN PyObject *IVFSearchParameters_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37342 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
37343 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IVFSearchParameters, SWIG_NewClientData(obj));
37344 return SWIG_Py_Void();
37347 SWIGINTERN PyObject *_wrap_IndexIVF_invlists_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37348 PyObject *resultobj = 0;
37355 PyObject * obj0 = 0 ;
37356 PyObject * obj1 = 0 ;
37358 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_invlists_set",&obj0,&obj1)) SWIG_fail;
37359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37360 if (!SWIG_IsOK(res1)) {
37361 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_invlists_set" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37364 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, SWIG_POINTER_DISOWN | 0 );
37365 if (!SWIG_IsOK(res2)) {
37366 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_invlists_set" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
37369 if (arg1) (arg1)->invlists = arg2;
37370 resultobj = SWIG_Py_Void();
37377 SWIGINTERN PyObject *_wrap_IndexIVF_invlists_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37378 PyObject *resultobj = 0;
37382 PyObject * obj0 = 0 ;
37385 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_invlists_get",&obj0)) SWIG_fail;
37386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37387 if (!SWIG_IsOK(res1)) {
37388 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_invlists_get" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
37399 SWIGINTERN PyObject *_wrap_IndexIVF_own_invlists_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37400 PyObject *resultobj = 0;
37407 PyObject * obj0 = 0 ;
37408 PyObject * obj1 = 0 ;
37410 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_own_invlists_set",&obj0,&obj1)) SWIG_fail;
37411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37412 if (!SWIG_IsOK(res1)) {
37413 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_own_invlists_set" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37416 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37417 if (!SWIG_IsOK(ecode2)) {
37418 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_own_invlists_set" "', argument " "2"" of type '" "bool""'");
37420 arg2 =
static_cast< bool >(val2);
37421 if (arg1) (arg1)->own_invlists = arg2;
37422 resultobj = SWIG_Py_Void();
37429 SWIGINTERN PyObject *_wrap_IndexIVF_own_invlists_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37430 PyObject *resultobj = 0;
37434 PyObject * obj0 = 0 ;
37437 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_own_invlists_get",&obj0)) SWIG_fail;
37438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37439 if (!SWIG_IsOK(res1)) {
37440 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_own_invlists_get" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37443 result = (bool) ((arg1)->own_invlists);
37444 resultobj = SWIG_From_bool(static_cast< bool >(result));
37451 SWIGINTERN PyObject *_wrap_IndexIVF_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37452 PyObject *resultobj = 0;
37459 PyObject * obj0 = 0 ;
37460 PyObject * obj1 = 0 ;
37462 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_code_size_set",&obj0,&obj1)) SWIG_fail;
37463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37464 if (!SWIG_IsOK(res1)) {
37465 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_code_size_set" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37468 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
37469 if (!SWIG_IsOK(ecode2)) {
37470 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_code_size_set" "', argument " "2"" of type '" "size_t""'");
37472 arg2 =
static_cast< size_t >(val2);
37473 if (arg1) (arg1)->code_size = arg2;
37474 resultobj = SWIG_Py_Void();
37481 SWIGINTERN PyObject *_wrap_IndexIVF_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37482 PyObject *resultobj = 0;
37486 PyObject * obj0 = 0 ;
37489 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_code_size_get",&obj0)) SWIG_fail;
37490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37491 if (!SWIG_IsOK(res1)) {
37492 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_code_size_get" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37495 result = (size_t) ((arg1)->code_size);
37496 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
37503 SWIGINTERN PyObject *_wrap_IndexIVF_nprobe_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37504 PyObject *resultobj = 0;
37511 PyObject * obj0 = 0 ;
37512 PyObject * obj1 = 0 ;
37514 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_nprobe_set",&obj0,&obj1)) SWIG_fail;
37515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37516 if (!SWIG_IsOK(res1)) {
37517 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_nprobe_set" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37520 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
37521 if (!SWIG_IsOK(ecode2)) {
37522 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_nprobe_set" "', argument " "2"" of type '" "size_t""'");
37524 arg2 =
static_cast< size_t >(val2);
37525 if (arg1) (arg1)->nprobe = arg2;
37526 resultobj = SWIG_Py_Void();
37533 SWIGINTERN PyObject *_wrap_IndexIVF_nprobe_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37534 PyObject *resultobj = 0;
37538 PyObject * obj0 = 0 ;
37541 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_nprobe_get",&obj0)) SWIG_fail;
37542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37543 if (!SWIG_IsOK(res1)) {
37544 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_nprobe_get" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37547 result = (size_t) ((arg1)->nprobe);
37548 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
37555 SWIGINTERN PyObject *_wrap_IndexIVF_max_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37556 PyObject *resultobj = 0;
37563 PyObject * obj0 = 0 ;
37564 PyObject * obj1 = 0 ;
37566 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_max_codes_set",&obj0,&obj1)) SWIG_fail;
37567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37568 if (!SWIG_IsOK(res1)) {
37569 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_max_codes_set" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37572 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
37573 if (!SWIG_IsOK(ecode2)) {
37574 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_max_codes_set" "', argument " "2"" of type '" "size_t""'");
37576 arg2 =
static_cast< size_t >(val2);
37577 if (arg1) (arg1)->max_codes = arg2;
37578 resultobj = SWIG_Py_Void();
37585 SWIGINTERN PyObject *_wrap_IndexIVF_max_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37586 PyObject *resultobj = 0;
37590 PyObject * obj0 = 0 ;
37593 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_max_codes_get",&obj0)) SWIG_fail;
37594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37595 if (!SWIG_IsOK(res1)) {
37596 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_max_codes_get" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37599 result = (size_t) ((arg1)->max_codes);
37600 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
37607 SWIGINTERN PyObject *_wrap_IndexIVF_maintain_direct_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37608 PyObject *resultobj = 0;
37615 PyObject * obj0 = 0 ;
37616 PyObject * obj1 = 0 ;
37618 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_maintain_direct_map_set",&obj0,&obj1)) SWIG_fail;
37619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37620 if (!SWIG_IsOK(res1)) {
37621 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_maintain_direct_map_set" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37624 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37625 if (!SWIG_IsOK(ecode2)) {
37626 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_maintain_direct_map_set" "', argument " "2"" of type '" "bool""'");
37628 arg2 =
static_cast< bool >(val2);
37629 if (arg1) (arg1)->maintain_direct_map = arg2;
37630 resultobj = SWIG_Py_Void();
37637 SWIGINTERN PyObject *_wrap_IndexIVF_maintain_direct_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37638 PyObject *resultobj = 0;
37642 PyObject * obj0 = 0 ;
37645 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_maintain_direct_map_get",&obj0)) SWIG_fail;
37646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37647 if (!SWIG_IsOK(res1)) {
37648 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_maintain_direct_map_get" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37651 result = (bool) ((arg1)->maintain_direct_map);
37652 resultobj = SWIG_From_bool(static_cast< bool >(result));
37659 SWIGINTERN PyObject *_wrap_IndexIVF_direct_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37660 PyObject *resultobj = 0;
37662 std::vector< long > *arg2 = (std::vector< long > *) 0 ;
37667 PyObject * obj0 = 0 ;
37668 PyObject * obj1 = 0 ;
37670 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_direct_map_set",&obj0,&obj1)) SWIG_fail;
37671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37672 if (!SWIG_IsOK(res1)) {
37673 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_direct_map_set" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37676 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
37677 if (!SWIG_IsOK(res2)) {
37678 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_direct_map_set" "', argument " "2"" of type '" "std::vector< long > *""'");
37680 arg2 =
reinterpret_cast< std::vector< long > *
>(argp2);
37681 if (arg1) (arg1)->direct_map = *arg2;
37682 resultobj = SWIG_Py_Void();
37689 SWIGINTERN PyObject *_wrap_IndexIVF_direct_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37690 PyObject *resultobj = 0;
37694 PyObject * obj0 = 0 ;
37695 std::vector< long > *result = 0 ;
37697 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_direct_map_get",&obj0)) SWIG_fail;
37698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37699 if (!SWIG_IsOK(res1)) {
37700 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_direct_map_get" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37703 result = (std::vector< long > *)& ((arg1)->direct_map);
37704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
37711 SWIGINTERN PyObject *_wrap_IndexIVF_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37712 PyObject *resultobj = 0;
37716 PyObject * obj0 = 0 ;
37718 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_reset",&obj0)) SWIG_fail;
37719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37720 if (!SWIG_IsOK(res1)) {
37721 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_reset" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37725 Py_BEGIN_ALLOW_THREADS
37729 PyEval_RestoreThread(_save);
37730 PyErr_SetString(PyExc_RuntimeError, e.
what());
37733 Py_END_ALLOW_THREADS
37735 resultobj = SWIG_Py_Void();
37742 SWIGINTERN PyObject *_wrap_IndexIVF_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37743 PyObject *resultobj = 0;
37746 float *arg3 = (
float *) 0 ;
37753 PyObject * obj0 = 0 ;
37754 PyObject * obj1 = 0 ;
37755 PyObject * obj2 = 0 ;
37757 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVF_train",&obj0,&obj1,&obj2)) SWIG_fail;
37758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37759 if (!SWIG_IsOK(res1)) {
37760 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_train" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37763 ecode2 = SWIG_AsVal_long(obj1, &val2);
37764 if (!SWIG_IsOK(ecode2)) {
37765 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
37768 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
37769 if (!SWIG_IsOK(res3)) {
37770 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_train" "', argument " "3"" of type '" "float const *""'");
37772 arg3 =
reinterpret_cast< float *
>(argp3);
37774 Py_BEGIN_ALLOW_THREADS
37776 (arg1)->train(arg2,(
float const *)arg3);
37778 PyEval_RestoreThread(_save);
37779 PyErr_SetString(PyExc_RuntimeError, e.
what());
37782 Py_END_ALLOW_THREADS
37784 resultobj = SWIG_Py_Void();
37791 SWIGINTERN PyObject *_wrap_IndexIVF_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37792 PyObject *resultobj = 0;
37795 float *arg3 = (
float *) 0 ;
37802 PyObject * obj0 = 0 ;
37803 PyObject * obj1 = 0 ;
37804 PyObject * obj2 = 0 ;
37806 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVF_add",&obj0,&obj1,&obj2)) SWIG_fail;
37807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37808 if (!SWIG_IsOK(res1)) {
37809 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_add" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37812 ecode2 = SWIG_AsVal_long(obj1, &val2);
37813 if (!SWIG_IsOK(ecode2)) {
37814 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
37817 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
37818 if (!SWIG_IsOK(res3)) {
37819 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_add" "', argument " "3"" of type '" "float const *""'");
37821 arg3 =
reinterpret_cast< float *
>(argp3);
37823 Py_BEGIN_ALLOW_THREADS
37825 (arg1)->add(arg2,(
float const *)arg3);
37827 PyEval_RestoreThread(_save);
37828 PyErr_SetString(PyExc_RuntimeError, e.
what());
37831 Py_END_ALLOW_THREADS
37833 resultobj = SWIG_Py_Void();
37840 SWIGINTERN PyObject *_wrap_IndexIVF_encode_vectors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37841 PyObject *resultobj = 0;
37844 float *arg3 = (
float *) 0 ;
37846 uint8_t *arg5 = (uint8_t *) 0 ;
37857 PyObject * obj0 = 0 ;
37858 PyObject * obj1 = 0 ;
37859 PyObject * obj2 = 0 ;
37860 PyObject * obj3 = 0 ;
37861 PyObject * obj4 = 0 ;
37863 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVF_encode_vectors",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37865 if (!SWIG_IsOK(res1)) {
37866 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_encode_vectors" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
37869 ecode2 = SWIG_AsVal_long(obj1, &val2);
37870 if (!SWIG_IsOK(ecode2)) {
37871 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_encode_vectors" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
37874 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
37875 if (!SWIG_IsOK(res3)) {
37876 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_encode_vectors" "', argument " "3"" of type '" "float const *""'");
37878 arg3 =
reinterpret_cast< float *
>(argp3);
37879 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
37880 if (!SWIG_IsOK(res4)) {
37881 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVF_encode_vectors" "', argument " "4"" of type '" "faiss::Index::idx_t const *""'");
37884 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
37885 if (!SWIG_IsOK(res5)) {
37886 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVF_encode_vectors" "', argument " "5"" of type '" "uint8_t *""'");
37888 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
37890 Py_BEGIN_ALLOW_THREADS
37894 PyEval_RestoreThread(_save);
37895 PyErr_SetString(PyExc_RuntimeError, e.
what());
37898 Py_END_ALLOW_THREADS
37900 resultobj = SWIG_Py_Void();
37907 SWIGINTERN PyObject *_wrap_IndexIVF_train_residual(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37908 PyObject *resultobj = 0;
37911 float *arg3 = (
float *) 0 ;
37918 PyObject * obj0 = 0 ;
37919 PyObject * obj1 = 0 ;
37920 PyObject * obj2 = 0 ;
37922 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVF_train_residual",&obj0,&obj1,&obj2)) SWIG_fail;
37923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
37924 if (!SWIG_IsOK(res1)) {
37925 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_train_residual" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
37928 ecode2 = SWIG_AsVal_long(obj1, &val2);
37929 if (!SWIG_IsOK(ecode2)) {
37930 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_train_residual" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
37933 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
37934 if (!SWIG_IsOK(res3)) {
37935 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_train_residual" "', argument " "3"" of type '" "float const *""'");
37937 arg3 =
reinterpret_cast< float *
>(argp3);
37939 Py_BEGIN_ALLOW_THREADS
37941 (arg1)->train_residual(arg2,(
float const *)arg3);
37943 PyEval_RestoreThread(_save);
37944 PyErr_SetString(PyExc_RuntimeError, e.
what());
37947 Py_END_ALLOW_THREADS
37949 resultobj = SWIG_Py_Void();
37956 SWIGINTERN PyObject *_wrap_IndexIVF_search_preassigned__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
37957 PyObject *resultobj = 0;
37960 float *arg3 = (
float *) 0 ;
37963 float *arg6 = (
float *) 0 ;
37964 float *arg7 = (
float *) 0 ;
37988 PyObject * obj0 = 0 ;
37989 PyObject * obj1 = 0 ;
37990 PyObject * obj2 = 0 ;
37991 PyObject * obj3 = 0 ;
37992 PyObject * obj4 = 0 ;
37993 PyObject * obj5 = 0 ;
37994 PyObject * obj6 = 0 ;
37995 PyObject * obj7 = 0 ;
37996 PyObject * obj8 = 0 ;
37997 PyObject * obj9 = 0 ;
37999 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOOO:IndexIVF_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
38000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38001 if (!SWIG_IsOK(res1)) {
38002 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_search_preassigned" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
38005 ecode2 = SWIG_AsVal_long(obj1, &val2);
38006 if (!SWIG_IsOK(ecode2)) {
38007 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_search_preassigned" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
38010 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
38011 if (!SWIG_IsOK(res3)) {
38012 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_search_preassigned" "', argument " "3"" of type '" "float const *""'");
38014 arg3 =
reinterpret_cast< float *
>(argp3);
38015 ecode4 = SWIG_AsVal_long(obj3, &val4);
38016 if (!SWIG_IsOK(ecode4)) {
38017 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVF_search_preassigned" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
38020 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
38021 if (!SWIG_IsOK(res5)) {
38022 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVF_search_preassigned" "', argument " "5"" of type '" "faiss::Index::idx_t const *""'");
38025 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
38026 if (!SWIG_IsOK(res6)) {
38027 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVF_search_preassigned" "', argument " "6"" of type '" "float const *""'");
38029 arg6 =
reinterpret_cast< float *
>(argp6);
38030 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
38031 if (!SWIG_IsOK(res7)) {
38032 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexIVF_search_preassigned" "', argument " "7"" of type '" "float *""'");
38034 arg7 =
reinterpret_cast< float *
>(argp7);
38035 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
38036 if (!SWIG_IsOK(res8)) {
38037 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexIVF_search_preassigned" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
38040 ecode9 = SWIG_AsVal_bool(obj8, &val9);
38041 if (!SWIG_IsOK(ecode9)) {
38042 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexIVF_search_preassigned" "', argument " "9"" of type '" "bool""'");
38044 arg9 =
static_cast< bool >(val9);
38045 res10 = SWIG_ConvertPtr(obj9, &argp10,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
38046 if (!SWIG_IsOK(res10)) {
38047 SWIG_exception_fail(SWIG_ArgError(res10),
"in method '" "IndexIVF_search_preassigned" "', argument " "10"" of type '" "faiss::IVFSearchParameters const *""'");
38051 Py_BEGIN_ALLOW_THREADS
38055 PyEval_RestoreThread(_save);
38056 PyErr_SetString(PyExc_RuntimeError, e.
what());
38059 Py_END_ALLOW_THREADS
38061 resultobj = SWIG_Py_Void();
38068 SWIGINTERN PyObject *_wrap_IndexIVF_search_preassigned__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38069 PyObject *resultobj = 0;
38072 float *arg3 = (
float *) 0 ;
38075 float *arg6 = (
float *) 0 ;
38076 float *arg7 = (
float *) 0 ;
38097 PyObject * obj0 = 0 ;
38098 PyObject * obj1 = 0 ;
38099 PyObject * obj2 = 0 ;
38100 PyObject * obj3 = 0 ;
38101 PyObject * obj4 = 0 ;
38102 PyObject * obj5 = 0 ;
38103 PyObject * obj6 = 0 ;
38104 PyObject * obj7 = 0 ;
38105 PyObject * obj8 = 0 ;
38107 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOO:IndexIVF_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
38108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38109 if (!SWIG_IsOK(res1)) {
38110 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_search_preassigned" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
38113 ecode2 = SWIG_AsVal_long(obj1, &val2);
38114 if (!SWIG_IsOK(ecode2)) {
38115 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_search_preassigned" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
38118 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
38119 if (!SWIG_IsOK(res3)) {
38120 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_search_preassigned" "', argument " "3"" of type '" "float const *""'");
38122 arg3 =
reinterpret_cast< float *
>(argp3);
38123 ecode4 = SWIG_AsVal_long(obj3, &val4);
38124 if (!SWIG_IsOK(ecode4)) {
38125 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVF_search_preassigned" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
38128 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
38129 if (!SWIG_IsOK(res5)) {
38130 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVF_search_preassigned" "', argument " "5"" of type '" "faiss::Index::idx_t const *""'");
38133 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
38134 if (!SWIG_IsOK(res6)) {
38135 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVF_search_preassigned" "', argument " "6"" of type '" "float const *""'");
38137 arg6 =
reinterpret_cast< float *
>(argp6);
38138 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
38139 if (!SWIG_IsOK(res7)) {
38140 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexIVF_search_preassigned" "', argument " "7"" of type '" "float *""'");
38142 arg7 =
reinterpret_cast< float *
>(argp7);
38143 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
38144 if (!SWIG_IsOK(res8)) {
38145 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexIVF_search_preassigned" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
38148 ecode9 = SWIG_AsVal_bool(obj8, &val9);
38149 if (!SWIG_IsOK(ecode9)) {
38150 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexIVF_search_preassigned" "', argument " "9"" of type '" "bool""'");
38152 arg9 =
static_cast< bool >(val9);
38154 Py_BEGIN_ALLOW_THREADS
38158 PyEval_RestoreThread(_save);
38159 PyErr_SetString(PyExc_RuntimeError, e.
what());
38162 Py_END_ALLOW_THREADS
38164 resultobj = SWIG_Py_Void();
38171 SWIGINTERN PyObject *_wrap_IndexIVF_search_preassigned(PyObject *
self, PyObject *args) {
38173 PyObject *argv[11] = {
38178 if (!PyTuple_Check(args)) SWIG_fail;
38179 argc = args ? PyObject_Length(args) : 0;
38180 for (ii = 0; (ii < 10) && (ii < argc); ii++) {
38181 argv[ii] = PyTuple_GET_ITEM(args,ii);
38186 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
38187 _v = SWIG_CheckState(res);
38190 int res = SWIG_AsVal_long(argv[1], NULL);
38191 _v = SWIG_CheckState(res);
38195 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
38196 _v = SWIG_CheckState(res);
38199 int res = SWIG_AsVal_long(argv[3], NULL);
38200 _v = SWIG_CheckState(res);
38204 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
38205 _v = SWIG_CheckState(res);
38208 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
38209 _v = SWIG_CheckState(res);
38212 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
38213 _v = SWIG_CheckState(res);
38216 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
38217 _v = SWIG_CheckState(res);
38220 int res = SWIG_AsVal_bool(argv[8], NULL);
38221 _v = SWIG_CheckState(res);
38224 return _wrap_IndexIVF_search_preassigned__SWIG_1(
self, args);
38238 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
38239 _v = SWIG_CheckState(res);
38242 int res = SWIG_AsVal_long(argv[1], NULL);
38243 _v = SWIG_CheckState(res);
38247 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
38248 _v = SWIG_CheckState(res);
38251 int res = SWIG_AsVal_long(argv[3], NULL);
38252 _v = SWIG_CheckState(res);
38256 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
38257 _v = SWIG_CheckState(res);
38260 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
38261 _v = SWIG_CheckState(res);
38264 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
38265 _v = SWIG_CheckState(res);
38268 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
38269 _v = SWIG_CheckState(res);
38272 int res = SWIG_AsVal_bool(argv[8], NULL);
38273 _v = SWIG_CheckState(res);
38277 int res = SWIG_ConvertPtr(argv[9], &vptr, SWIGTYPE_p_faiss__IVFSearchParameters, 0);
38278 _v = SWIG_CheckState(res);
38280 return _wrap_IndexIVF_search_preassigned__SWIG_0(
self, args);
38294 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVF_search_preassigned'.\n"
38295 " Possible C/C++ prototypes are:\n"
38296 " 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"
38297 " 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");
38302 SWIGINTERN PyObject *_wrap_IndexIVF_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38303 PyObject *resultobj = 0;
38306 float *arg3 = (
float *) 0 ;
38308 float *arg5 = (
float *) 0 ;
38322 PyObject * obj0 = 0 ;
38323 PyObject * obj1 = 0 ;
38324 PyObject * obj2 = 0 ;
38325 PyObject * obj3 = 0 ;
38326 PyObject * obj4 = 0 ;
38327 PyObject * obj5 = 0 ;
38329 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexIVF_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38331 if (!SWIG_IsOK(res1)) {
38332 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_search" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
38335 ecode2 = SWIG_AsVal_long(obj1, &val2);
38336 if (!SWIG_IsOK(ecode2)) {
38337 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
38340 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
38341 if (!SWIG_IsOK(res3)) {
38342 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_search" "', argument " "3"" of type '" "float const *""'");
38344 arg3 =
reinterpret_cast< float *
>(argp3);
38345 ecode4 = SWIG_AsVal_long(obj3, &val4);
38346 if (!SWIG_IsOK(ecode4)) {
38347 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVF_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
38350 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
38351 if (!SWIG_IsOK(res5)) {
38352 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVF_search" "', argument " "5"" of type '" "float *""'");
38354 arg5 =
reinterpret_cast< float *
>(argp5);
38355 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
38356 if (!SWIG_IsOK(res6)) {
38357 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVF_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
38361 Py_BEGIN_ALLOW_THREADS
38363 ((
faiss::IndexIVF const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
38365 PyEval_RestoreThread(_save);
38366 PyErr_SetString(PyExc_RuntimeError, e.
what());
38369 Py_END_ALLOW_THREADS
38371 resultobj = SWIG_Py_Void();
38378 SWIGINTERN PyObject *_wrap_IndexIVF_get_InvertedListScanner__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38379 PyObject *resultobj = 0;
38386 PyObject * obj0 = 0 ;
38387 PyObject * obj1 = 0 ;
38390 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_get_InvertedListScanner",&obj0,&obj1)) SWIG_fail;
38391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38392 if (!SWIG_IsOK(res1)) {
38393 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_get_InvertedListScanner" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
38396 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38397 if (!SWIG_IsOK(ecode2)) {
38398 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_get_InvertedListScanner" "', argument " "2"" of type '" "bool""'");
38400 arg2 =
static_cast< bool >(val2);
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__InvertedListScanner, 0 | 0 );
38419 SWIGINTERN PyObject *_wrap_IndexIVF_get_InvertedListScanner__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38420 PyObject *resultobj = 0;
38424 PyObject * obj0 = 0 ;
38427 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_get_InvertedListScanner",&obj0)) SWIG_fail;
38428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38429 if (!SWIG_IsOK(res1)) {
38430 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_get_InvertedListScanner" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
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__InvertedListScanner, 0 | 0 );
38451 SWIGINTERN PyObject *_wrap_IndexIVF_get_InvertedListScanner(PyObject *
self, PyObject *args) {
38453 PyObject *argv[3] = {
38458 if (!PyTuple_Check(args)) SWIG_fail;
38459 argc = args ? PyObject_Length(args) : 0;
38460 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
38461 argv[ii] = PyTuple_GET_ITEM(args,ii);
38466 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
38467 _v = SWIG_CheckState(res);
38469 return _wrap_IndexIVF_get_InvertedListScanner__SWIG_1(
self, args);
38475 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
38476 _v = SWIG_CheckState(res);
38479 int res = SWIG_AsVal_bool(argv[1], NULL);
38480 _v = SWIG_CheckState(res);
38483 return _wrap_IndexIVF_get_InvertedListScanner__SWIG_0(
self, args);
38489 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVF_get_InvertedListScanner'.\n"
38490 " Possible C/C++ prototypes are:\n"
38491 " faiss::IndexIVF::get_InvertedListScanner(bool) const\n"
38492 " faiss::IndexIVF::get_InvertedListScanner() const\n");
38497 SWIGINTERN PyObject *_wrap_IndexIVF_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38498 PyObject *resultobj = 0;
38501 float *arg3 = (
float *) 0 ;
38508 PyObject * obj0 = 0 ;
38509 PyObject * obj1 = 0 ;
38510 PyObject * obj2 = 0 ;
38512 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVF_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
38513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38514 if (!SWIG_IsOK(res1)) {
38515 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_reconstruct" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
38518 ecode2 = SWIG_AsVal_long(obj1, &val2);
38519 if (!SWIG_IsOK(ecode2)) {
38520 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
38523 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
38524 if (!SWIG_IsOK(res3)) {
38525 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_reconstruct" "', argument " "3"" of type '" "float *""'");
38527 arg3 =
reinterpret_cast< float *
>(argp3);
38529 Py_BEGIN_ALLOW_THREADS
38533 PyEval_RestoreThread(_save);
38534 PyErr_SetString(PyExc_RuntimeError, e.
what());
38537 Py_END_ALLOW_THREADS
38539 resultobj = SWIG_Py_Void();
38546 SWIGINTERN PyObject *_wrap_IndexIVF_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38547 PyObject *resultobj = 0;
38551 float *arg4 = (
float *) 0 ;
38560 PyObject * obj0 = 0 ;
38561 PyObject * obj1 = 0 ;
38562 PyObject * obj2 = 0 ;
38563 PyObject * obj3 = 0 ;
38565 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVF_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38567 if (!SWIG_IsOK(res1)) {
38568 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_reconstruct_n" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
38571 ecode2 = SWIG_AsVal_long(obj1, &val2);
38572 if (!SWIG_IsOK(ecode2)) {
38573 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_reconstruct_n" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
38576 ecode3 = SWIG_AsVal_long(obj2, &val3);
38577 if (!SWIG_IsOK(ecode3)) {
38578 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVF_reconstruct_n" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
38581 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
38582 if (!SWIG_IsOK(res4)) {
38583 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVF_reconstruct_n" "', argument " "4"" of type '" "float *""'");
38585 arg4 =
reinterpret_cast< float *
>(argp4);
38587 Py_BEGIN_ALLOW_THREADS
38591 PyEval_RestoreThread(_save);
38592 PyErr_SetString(PyExc_RuntimeError, e.
what());
38595 Py_END_ALLOW_THREADS
38597 resultobj = SWIG_Py_Void();
38604 SWIGINTERN PyObject *_wrap_IndexIVF_search_and_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38605 PyObject *resultobj = 0;
38608 float *arg3 = (
float *) 0 ;
38610 float *arg5 = (
float *) 0 ;
38612 float *arg7 = (
float *) 0 ;
38627 PyObject * obj0 = 0 ;
38628 PyObject * obj1 = 0 ;
38629 PyObject * obj2 = 0 ;
38630 PyObject * obj3 = 0 ;
38631 PyObject * obj4 = 0 ;
38632 PyObject * obj5 = 0 ;
38633 PyObject * obj6 = 0 ;
38635 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:IndexIVF_search_and_reconstruct",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38637 if (!SWIG_IsOK(res1)) {
38638 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_search_and_reconstruct" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
38641 ecode2 = SWIG_AsVal_long(obj1, &val2);
38642 if (!SWIG_IsOK(ecode2)) {
38643 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_search_and_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
38646 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
38647 if (!SWIG_IsOK(res3)) {
38648 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVF_search_and_reconstruct" "', argument " "3"" of type '" "float const *""'");
38650 arg3 =
reinterpret_cast< float *
>(argp3);
38651 ecode4 = SWIG_AsVal_long(obj3, &val4);
38652 if (!SWIG_IsOK(ecode4)) {
38653 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVF_search_and_reconstruct" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
38656 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
38657 if (!SWIG_IsOK(res5)) {
38658 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVF_search_and_reconstruct" "', argument " "5"" of type '" "float *""'");
38660 arg5 =
reinterpret_cast< float *
>(argp5);
38661 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
38662 if (!SWIG_IsOK(res6)) {
38663 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVF_search_and_reconstruct" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
38666 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
38667 if (!SWIG_IsOK(res7)) {
38668 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexIVF_search_and_reconstruct" "', argument " "7"" of type '" "float *""'");
38670 arg7 =
reinterpret_cast< float *
>(argp7);
38672 Py_BEGIN_ALLOW_THREADS
38674 ((
faiss::IndexIVF const *)arg1)->search_and_reconstruct(arg2,(
float const *)arg3,arg4,arg5,arg6,arg7);
38676 PyEval_RestoreThread(_save);
38677 PyErr_SetString(PyExc_RuntimeError, e.
what());
38680 Py_END_ALLOW_THREADS
38682 resultobj = SWIG_Py_Void();
38689 SWIGINTERN PyObject *_wrap_IndexIVF_reconstruct_from_offset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38690 PyObject *resultobj = 0;
38694 float *arg4 = (
float *) 0 ;
38703 PyObject * obj0 = 0 ;
38704 PyObject * obj1 = 0 ;
38705 PyObject * obj2 = 0 ;
38706 PyObject * obj3 = 0 ;
38708 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVF_reconstruct_from_offset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38710 if (!SWIG_IsOK(res1)) {
38711 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_reconstruct_from_offset" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
38714 ecode2 = SWIG_AsVal_long(obj1, &val2);
38715 if (!SWIG_IsOK(ecode2)) {
38716 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_reconstruct_from_offset" "', argument " "2"" of type '" "long""'");
38718 arg2 =
static_cast< long >(val2);
38719 ecode3 = SWIG_AsVal_long(obj2, &val3);
38720 if (!SWIG_IsOK(ecode3)) {
38721 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVF_reconstruct_from_offset" "', argument " "3"" of type '" "long""'");
38723 arg3 =
static_cast< long >(val3);
38724 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
38725 if (!SWIG_IsOK(res4)) {
38726 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVF_reconstruct_from_offset" "', argument " "4"" of type '" "float *""'");
38728 arg4 =
reinterpret_cast< float *
>(argp4);
38730 Py_BEGIN_ALLOW_THREADS
38732 ((
faiss::IndexIVF const *)arg1)->reconstruct_from_offset(arg2,arg3,arg4);
38734 PyEval_RestoreThread(_save);
38735 PyErr_SetString(PyExc_RuntimeError, e.
what());
38738 Py_END_ALLOW_THREADS
38740 resultobj = SWIG_Py_Void();
38747 SWIGINTERN PyObject *_wrap_IndexIVF_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38748 PyObject *resultobj = 0;
38755 PyObject * obj0 = 0 ;
38756 PyObject * obj1 = 0 ;
38759 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_remove_ids",&obj0,&obj1)) SWIG_fail;
38760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38761 if (!SWIG_IsOK(res1)) {
38762 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_remove_ids" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
38765 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
38766 if (!SWIG_IsOK(res2)) {
38767 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
38770 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVF_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
38774 Py_BEGIN_ALLOW_THREADS
38778 PyEval_RestoreThread(_save);
38779 PyErr_SetString(PyExc_RuntimeError, e.
what());
38782 Py_END_ALLOW_THREADS
38784 resultobj = SWIG_From_long(static_cast< long >(result));
38791 SWIGINTERN PyObject *_wrap_IndexIVF_check_compatible_for_merge(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38792 PyObject *resultobj = 0;
38799 PyObject * obj0 = 0 ;
38800 PyObject * obj1 = 0 ;
38802 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_check_compatible_for_merge",&obj0,&obj1)) SWIG_fail;
38803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38804 if (!SWIG_IsOK(res1)) {
38805 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_check_compatible_for_merge" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
38808 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IndexIVF, 0 | 0);
38809 if (!SWIG_IsOK(res2)) {
38810 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_check_compatible_for_merge" "', argument " "2"" of type '" "faiss::IndexIVF const &""'");
38813 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVF_check_compatible_for_merge" "', argument " "2"" of type '" "faiss::IndexIVF const &""'");
38817 Py_BEGIN_ALLOW_THREADS
38821 PyEval_RestoreThread(_save);
38822 PyErr_SetString(PyExc_RuntimeError, e.
what());
38825 Py_END_ALLOW_THREADS
38827 resultobj = SWIG_Py_Void();
38834 SWIGINTERN PyObject *_wrap_IndexIVF_merge_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38835 PyObject *resultobj = 0;
38845 PyObject * obj0 = 0 ;
38846 PyObject * obj1 = 0 ;
38847 PyObject * obj2 = 0 ;
38849 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVF_merge_from",&obj0,&obj1,&obj2)) SWIG_fail;
38850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38851 if (!SWIG_IsOK(res1)) {
38852 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_merge_from" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
38855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IndexIVF, 0 );
38856 if (!SWIG_IsOK(res2)) {
38857 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_merge_from" "', argument " "2"" of type '" "faiss::IndexIVF &""'");
38860 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVF_merge_from" "', argument " "2"" of type '" "faiss::IndexIVF &""'");
38863 ecode3 = SWIG_AsVal_long(obj2, &val3);
38864 if (!SWIG_IsOK(ecode3)) {
38865 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVF_merge_from" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
38869 Py_BEGIN_ALLOW_THREADS
38871 (arg1)->merge_from(*arg2,arg3);
38873 PyEval_RestoreThread(_save);
38874 PyErr_SetString(PyExc_RuntimeError, e.
what());
38877 Py_END_ALLOW_THREADS
38879 resultobj = SWIG_Py_Void();
38886 SWIGINTERN PyObject *_wrap_IndexIVF_copy_subset_to(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38887 PyObject *resultobj = 0;
38903 PyObject * obj0 = 0 ;
38904 PyObject * obj1 = 0 ;
38905 PyObject * obj2 = 0 ;
38906 PyObject * obj3 = 0 ;
38907 PyObject * obj4 = 0 ;
38909 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVF_copy_subset_to",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
38911 if (!SWIG_IsOK(res1)) {
38912 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_copy_subset_to" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
38915 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IndexIVF, 0 );
38916 if (!SWIG_IsOK(res2)) {
38917 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_copy_subset_to" "', argument " "2"" of type '" "faiss::IndexIVF &""'");
38920 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVF_copy_subset_to" "', argument " "2"" of type '" "faiss::IndexIVF &""'");
38923 ecode3 = SWIG_AsVal_int(obj2, &val3);
38924 if (!SWIG_IsOK(ecode3)) {
38925 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVF_copy_subset_to" "', argument " "3"" of type '" "int""'");
38927 arg3 =
static_cast< int >(val3);
38928 ecode4 = SWIG_AsVal_long(obj3, &val4);
38929 if (!SWIG_IsOK(ecode4)) {
38930 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVF_copy_subset_to" "', argument " "4"" of type '" "long""'");
38932 arg4 =
static_cast< long >(val4);
38933 ecode5 = SWIG_AsVal_long(obj4, &val5);
38934 if (!SWIG_IsOK(ecode5)) {
38935 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "IndexIVF_copy_subset_to" "', argument " "5"" of type '" "long""'");
38937 arg5 =
static_cast< long >(val5);
38939 Py_BEGIN_ALLOW_THREADS
38941 ((
faiss::IndexIVF const *)arg1)->copy_subset_to(*arg2,arg3,arg4,arg5);
38943 PyEval_RestoreThread(_save);
38944 PyErr_SetString(PyExc_RuntimeError, e.
what());
38947 Py_END_ALLOW_THREADS
38949 resultobj = SWIG_Py_Void();
38956 SWIGINTERN PyObject *_wrap_delete_IndexIVF(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38957 PyObject *resultobj = 0;
38961 PyObject * obj0 = 0 ;
38963 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVF",&obj0)) SWIG_fail;
38964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, SWIG_POINTER_DISOWN | 0 );
38965 if (!SWIG_IsOK(res1)) {
38966 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVF" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
38970 Py_BEGIN_ALLOW_THREADS
38974 PyEval_RestoreThread(_save);
38975 PyErr_SetString(PyExc_RuntimeError, e.
what());
38978 Py_END_ALLOW_THREADS
38980 resultobj = SWIG_Py_Void();
38987 SWIGINTERN PyObject *_wrap_IndexIVF_get_list_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
38988 PyObject *resultobj = 0;
38995 PyObject * obj0 = 0 ;
38996 PyObject * obj1 = 0 ;
38999 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_get_list_size",&obj0,&obj1)) SWIG_fail;
39000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
39001 if (!SWIG_IsOK(res1)) {
39002 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_get_list_size" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
39005 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
39006 if (!SWIG_IsOK(ecode2)) {
39007 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_get_list_size" "', argument " "2"" of type '" "size_t""'");
39009 arg2 =
static_cast< size_t >(val2);
39011 Py_BEGIN_ALLOW_THREADS
39013 result = (size_t)((
faiss::IndexIVF const *)arg1)->get_list_size(arg2);
39015 PyEval_RestoreThread(_save);
39016 PyErr_SetString(PyExc_RuntimeError, e.
what());
39019 Py_END_ALLOW_THREADS
39021 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
39028 SWIGINTERN PyObject *_wrap_IndexIVF_make_direct_map__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39029 PyObject *resultobj = 0;
39036 PyObject * obj0 = 0 ;
39037 PyObject * obj1 = 0 ;
39039 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_make_direct_map",&obj0,&obj1)) SWIG_fail;
39040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
39041 if (!SWIG_IsOK(res1)) {
39042 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_make_direct_map" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
39045 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39046 if (!SWIG_IsOK(ecode2)) {
39047 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVF_make_direct_map" "', argument " "2"" of type '" "bool""'");
39049 arg2 =
static_cast< bool >(val2);
39051 Py_BEGIN_ALLOW_THREADS
39053 (arg1)->make_direct_map(arg2);
39055 PyEval_RestoreThread(_save);
39056 PyErr_SetString(PyExc_RuntimeError, e.
what());
39059 Py_END_ALLOW_THREADS
39061 resultobj = SWIG_Py_Void();
39068 SWIGINTERN PyObject *_wrap_IndexIVF_make_direct_map__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39069 PyObject *resultobj = 0;
39073 PyObject * obj0 = 0 ;
39075 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_make_direct_map",&obj0)) SWIG_fail;
39076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
39077 if (!SWIG_IsOK(res1)) {
39078 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_make_direct_map" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
39082 Py_BEGIN_ALLOW_THREADS
39084 (arg1)->make_direct_map();
39086 PyEval_RestoreThread(_save);
39087 PyErr_SetString(PyExc_RuntimeError, e.
what());
39090 Py_END_ALLOW_THREADS
39092 resultobj = SWIG_Py_Void();
39099 SWIGINTERN PyObject *_wrap_IndexIVF_make_direct_map(PyObject *
self, PyObject *args) {
39101 PyObject *argv[3] = {
39106 if (!PyTuple_Check(args)) SWIG_fail;
39107 argc = args ? PyObject_Length(args) : 0;
39108 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
39109 argv[ii] = PyTuple_GET_ITEM(args,ii);
39114 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
39115 _v = SWIG_CheckState(res);
39117 return _wrap_IndexIVF_make_direct_map__SWIG_1(
self, args);
39123 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
39124 _v = SWIG_CheckState(res);
39127 int res = SWIG_AsVal_bool(argv[1], NULL);
39128 _v = SWIG_CheckState(res);
39131 return _wrap_IndexIVF_make_direct_map__SWIG_0(
self, args);
39137 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVF_make_direct_map'.\n"
39138 " Possible C/C++ prototypes are:\n"
39139 " faiss::IndexIVF::make_direct_map(bool)\n"
39140 " faiss::IndexIVF::make_direct_map()\n");
39145 SWIGINTERN PyObject *_wrap_IndexIVF_imbalance_factor(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39146 PyObject *resultobj = 0;
39150 PyObject * obj0 = 0 ;
39153 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_imbalance_factor",&obj0)) SWIG_fail;
39154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
39155 if (!SWIG_IsOK(res1)) {
39156 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_imbalance_factor" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
39160 Py_BEGIN_ALLOW_THREADS
39164 PyEval_RestoreThread(_save);
39165 PyErr_SetString(PyExc_RuntimeError, e.
what());
39168 Py_END_ALLOW_THREADS
39170 resultobj = SWIG_From_double(static_cast< double >(result));
39177 SWIGINTERN PyObject *_wrap_IndexIVF_print_stats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39178 PyObject *resultobj = 0;
39182 PyObject * obj0 = 0 ;
39184 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVF_print_stats",&obj0)) SWIG_fail;
39185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
39186 if (!SWIG_IsOK(res1)) {
39187 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_print_stats" "', argument " "1"" of type '" "faiss::IndexIVF const *""'");
39191 Py_BEGIN_ALLOW_THREADS
39195 PyEval_RestoreThread(_save);
39196 PyErr_SetString(PyExc_RuntimeError, e.
what());
39199 Py_END_ALLOW_THREADS
39201 resultobj = SWIG_Py_Void();
39208 SWIGINTERN PyObject *_wrap_IndexIVF_replace_invlists__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39209 PyObject *resultobj = 0;
39219 PyObject * obj0 = 0 ;
39220 PyObject * obj1 = 0 ;
39221 PyObject * obj2 = 0 ;
39223 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVF_replace_invlists",&obj0,&obj1,&obj2)) SWIG_fail;
39224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
39225 if (!SWIG_IsOK(res1)) {
39226 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_replace_invlists" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
39229 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
39230 if (!SWIG_IsOK(res2)) {
39231 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_replace_invlists" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
39234 ecode3 = SWIG_AsVal_bool(obj2, &val3);
39235 if (!SWIG_IsOK(ecode3)) {
39236 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVF_replace_invlists" "', argument " "3"" of type '" "bool""'");
39238 arg3 =
static_cast< bool >(val3);
39240 Py_BEGIN_ALLOW_THREADS
39242 (arg1)->replace_invlists(arg2,arg3);
39244 PyEval_RestoreThread(_save);
39245 PyErr_SetString(PyExc_RuntimeError, e.
what());
39248 Py_END_ALLOW_THREADS
39250 resultobj = SWIG_Py_Void();
39257 SWIGINTERN PyObject *_wrap_IndexIVF_replace_invlists__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39258 PyObject *resultobj = 0;
39265 PyObject * obj0 = 0 ;
39266 PyObject * obj1 = 0 ;
39268 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVF_replace_invlists",&obj0,&obj1)) SWIG_fail;
39269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
39270 if (!SWIG_IsOK(res1)) {
39271 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVF_replace_invlists" "', argument " "1"" of type '" "faiss::IndexIVF *""'");
39274 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
39275 if (!SWIG_IsOK(res2)) {
39276 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVF_replace_invlists" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
39280 Py_BEGIN_ALLOW_THREADS
39282 (arg1)->replace_invlists(arg2);
39284 PyEval_RestoreThread(_save);
39285 PyErr_SetString(PyExc_RuntimeError, e.
what());
39288 Py_END_ALLOW_THREADS
39290 resultobj = SWIG_Py_Void();
39297 SWIGINTERN PyObject *_wrap_IndexIVF_replace_invlists(PyObject *
self, PyObject *args) {
39299 PyObject *argv[4] = {
39304 if (!PyTuple_Check(args)) SWIG_fail;
39305 argc = args ? PyObject_Length(args) : 0;
39306 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
39307 argv[ii] = PyTuple_GET_ITEM(args,ii);
39312 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
39313 _v = SWIG_CheckState(res);
39316 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__InvertedLists, 0);
39317 _v = SWIG_CheckState(res);
39319 return _wrap_IndexIVF_replace_invlists__SWIG_1(
self, args);
39326 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVF, 0);
39327 _v = SWIG_CheckState(res);
39330 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__InvertedLists, 0);
39331 _v = SWIG_CheckState(res);
39334 int res = SWIG_AsVal_bool(argv[2], NULL);
39335 _v = SWIG_CheckState(res);
39338 return _wrap_IndexIVF_replace_invlists__SWIG_0(
self, args);
39345 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVF_replace_invlists'.\n"
39346 " Possible C/C++ prototypes are:\n"
39347 " faiss::IndexIVF::replace_invlists(faiss::InvertedLists *,bool)\n"
39348 " faiss::IndexIVF::replace_invlists(faiss::InvertedLists *)\n");
39353 SWIGINTERN PyObject *IndexIVF_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39355 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
39356 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVF, SWIG_NewClientData(obj));
39357 return SWIG_Py_Void();
39360 SWIGINTERN PyObject *_wrap_IndexIVFStats_nq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39361 PyObject *resultobj = 0;
39368 PyObject * obj0 = 0 ;
39369 PyObject * obj1 = 0 ;
39371 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFStats_nq_set",&obj0,&obj1)) SWIG_fail;
39372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
39373 if (!SWIG_IsOK(res1)) {
39374 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_nq_set" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
39377 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
39378 if (!SWIG_IsOK(ecode2)) {
39379 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFStats_nq_set" "', argument " "2"" of type '" "size_t""'");
39381 arg2 =
static_cast< size_t >(val2);
39382 if (arg1) (arg1)->nq = arg2;
39383 resultobj = SWIG_Py_Void();
39390 SWIGINTERN PyObject *_wrap_IndexIVFStats_nq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39391 PyObject *resultobj = 0;
39395 PyObject * obj0 = 0 ;
39398 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFStats_nq_get",&obj0)) SWIG_fail;
39399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
39400 if (!SWIG_IsOK(res1)) {
39401 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_nq_get" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
39404 result = (size_t) ((arg1)->nq);
39405 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
39412 SWIGINTERN PyObject *_wrap_IndexIVFStats_nlist_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39413 PyObject *resultobj = 0;
39420 PyObject * obj0 = 0 ;
39421 PyObject * obj1 = 0 ;
39423 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFStats_nlist_set",&obj0,&obj1)) SWIG_fail;
39424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
39425 if (!SWIG_IsOK(res1)) {
39426 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_nlist_set" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
39429 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
39430 if (!SWIG_IsOK(ecode2)) {
39431 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFStats_nlist_set" "', argument " "2"" of type '" "size_t""'");
39433 arg2 =
static_cast< size_t >(val2);
39434 if (arg1) (arg1)->nlist = arg2;
39435 resultobj = SWIG_Py_Void();
39442 SWIGINTERN PyObject *_wrap_IndexIVFStats_nlist_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39443 PyObject *resultobj = 0;
39447 PyObject * obj0 = 0 ;
39450 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFStats_nlist_get",&obj0)) SWIG_fail;
39451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
39452 if (!SWIG_IsOK(res1)) {
39453 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_nlist_get" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
39456 result = (size_t) ((arg1)->nlist);
39457 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
39464 SWIGINTERN PyObject *_wrap_IndexIVFStats_ndis_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39465 PyObject *resultobj = 0;
39472 PyObject * obj0 = 0 ;
39473 PyObject * obj1 = 0 ;
39475 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFStats_ndis_set",&obj0,&obj1)) SWIG_fail;
39476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
39477 if (!SWIG_IsOK(res1)) {
39478 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_ndis_set" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
39481 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
39482 if (!SWIG_IsOK(ecode2)) {
39483 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFStats_ndis_set" "', argument " "2"" of type '" "size_t""'");
39485 arg2 =
static_cast< size_t >(val2);
39486 if (arg1) (arg1)->ndis = arg2;
39487 resultobj = SWIG_Py_Void();
39494 SWIGINTERN PyObject *_wrap_IndexIVFStats_ndis_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39495 PyObject *resultobj = 0;
39499 PyObject * obj0 = 0 ;
39502 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFStats_ndis_get",&obj0)) SWIG_fail;
39503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
39504 if (!SWIG_IsOK(res1)) {
39505 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_ndis_get" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
39508 result = (size_t) ((arg1)->ndis);
39509 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
39516 SWIGINTERN PyObject *_wrap_IndexIVFStats_nheap_updates_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39517 PyObject *resultobj = 0;
39524 PyObject * obj0 = 0 ;
39525 PyObject * obj1 = 0 ;
39527 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFStats_nheap_updates_set",&obj0,&obj1)) SWIG_fail;
39528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
39529 if (!SWIG_IsOK(res1)) {
39530 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_nheap_updates_set" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
39533 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
39534 if (!SWIG_IsOK(ecode2)) {
39535 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFStats_nheap_updates_set" "', argument " "2"" of type '" "size_t""'");
39537 arg2 =
static_cast< size_t >(val2);
39538 if (arg1) (arg1)->nheap_updates = arg2;
39539 resultobj = SWIG_Py_Void();
39546 SWIGINTERN PyObject *_wrap_IndexIVFStats_nheap_updates_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39547 PyObject *resultobj = 0;
39551 PyObject * obj0 = 0 ;
39554 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFStats_nheap_updates_get",&obj0)) SWIG_fail;
39555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
39556 if (!SWIG_IsOK(res1)) {
39557 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_nheap_updates_get" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
39560 result = (size_t) ((arg1)->nheap_updates);
39561 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
39568 SWIGINTERN PyObject *_wrap_new_IndexIVFStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39569 PyObject *resultobj = 0;
39572 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIVFStats")) SWIG_fail;
39574 Py_BEGIN_ALLOW_THREADS
39578 PyEval_RestoreThread(_save);
39579 PyErr_SetString(PyExc_RuntimeError, e.
what());
39582 Py_END_ALLOW_THREADS
39584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFStats, SWIG_POINTER_NEW | 0 );
39591 SWIGINTERN PyObject *_wrap_IndexIVFStats_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39592 PyObject *resultobj = 0;
39596 PyObject * obj0 = 0 ;
39598 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFStats_reset",&obj0)) SWIG_fail;
39599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0 );
39600 if (!SWIG_IsOK(res1)) {
39601 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFStats_reset" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
39605 Py_BEGIN_ALLOW_THREADS
39609 PyEval_RestoreThread(_save);
39610 PyErr_SetString(PyExc_RuntimeError, e.
what());
39613 Py_END_ALLOW_THREADS
39615 resultobj = SWIG_Py_Void();
39622 SWIGINTERN PyObject *_wrap_delete_IndexIVFStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39623 PyObject *resultobj = 0;
39627 PyObject * obj0 = 0 ;
39629 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVFStats",&obj0)) SWIG_fail;
39630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFStats, SWIG_POINTER_DISOWN | 0 );
39631 if (!SWIG_IsOK(res1)) {
39632 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVFStats" "', argument " "1"" of type '" "faiss::IndexIVFStats *""'");
39636 resultobj = SWIG_Py_Void();
39643 SWIGINTERN PyObject *IndexIVFStats_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39645 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
39646 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVFStats, SWIG_NewClientData(obj));
39647 return SWIG_Py_Void();
39650 SWIGINTERN
int Swig_var_indexIVF_stats_set(PyObject *_val) {
39653 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_faiss__IndexIVFStats, 0 | 0);
39654 if (!SWIG_IsOK(res)) {
39655 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""faiss::indexIVF_stats""' of type '""faiss::IndexIVFStats""'");
39658 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""faiss::indexIVF_stats""' of type '""faiss::IndexIVFStats""'");
39662 faiss::indexIVF_stats = *temp;
39663 if (SWIG_IsNewObj(res))
delete temp;
39672 SWIGINTERN PyObject *Swig_var_indexIVF_stats_get(
void) {
39673 PyObject *pyobj = 0;
39675 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&faiss::indexIVF_stats), SWIGTYPE_p_faiss__IndexIVFStats, 0 );
39680 SWIGINTERN PyObject *_wrap_check_compatible_for_merge(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39681 PyObject *resultobj = 0;
39688 PyObject * obj0 = 0 ;
39689 PyObject * obj1 = 0 ;
39691 if (!PyArg_ParseTuple(args,(
char *)
"OO:check_compatible_for_merge",&obj0,&obj1)) SWIG_fail;
39692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
39693 if (!SWIG_IsOK(res1)) {
39694 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "check_compatible_for_merge" "', argument " "1"" of type '" "faiss::Index const *""'");
39697 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
39698 if (!SWIG_IsOK(res2)) {
39699 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "check_compatible_for_merge" "', argument " "2"" of type '" "faiss::Index const *""'");
39703 Py_BEGIN_ALLOW_THREADS
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_extract_index_ivf__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39721 PyObject *resultobj = 0;
39725 PyObject * obj0 = 0 ;
39728 if (!PyArg_ParseTuple(args,(
char *)
"O:extract_index_ivf",&obj0)) SWIG_fail;
39729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
39730 if (!SWIG_IsOK(res1)) {
39731 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "extract_index_ivf" "', argument " "1"" of type '" "faiss::Index const *""'");
39735 Py_BEGIN_ALLOW_THREADS
39739 PyEval_RestoreThread(_save);
39740 PyErr_SetString(PyExc_RuntimeError, e.
what());
39743 Py_END_ALLOW_THREADS
39745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
39752 SWIGINTERN PyObject *_wrap_extract_index_ivf__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39753 PyObject *resultobj = 0;
39757 PyObject * obj0 = 0 ;
39760 if (!PyArg_ParseTuple(args,(
char *)
"O:extract_index_ivf",&obj0)) SWIG_fail;
39761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
39762 if (!SWIG_IsOK(res1)) {
39763 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "extract_index_ivf" "', argument " "1"" of type '" "faiss::Index *""'");
39767 Py_BEGIN_ALLOW_THREADS
39771 PyEval_RestoreThread(_save);
39772 PyErr_SetString(PyExc_RuntimeError, e.
what());
39775 Py_END_ALLOW_THREADS
39777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
39784 SWIGINTERN PyObject *_wrap_extract_index_ivf(PyObject *
self, PyObject *args) {
39786 PyObject *argv[2] = {
39791 if (!PyTuple_Check(args)) SWIG_fail;
39792 argc = args ? PyObject_Length(args) : 0;
39793 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
39794 argv[ii] = PyTuple_GET_ITEM(args,ii);
39799 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
39800 _v = SWIG_CheckState(res);
39802 return _wrap_extract_index_ivf__SWIG_0(
self, args);
39808 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
39809 _v = SWIG_CheckState(res);
39811 return _wrap_extract_index_ivf__SWIG_1(
self, args);
39816 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'extract_index_ivf'.\n"
39817 " Possible C/C++ prototypes are:\n"
39818 " faiss::ivflib::extract_index_ivf(faiss::Index const *)\n"
39819 " faiss::ivflib::extract_index_ivf(faiss::Index *)\n");
39824 SWIGINTERN PyObject *_wrap_merge_into(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39825 PyObject *resultobj = 0;
39835 PyObject * obj0 = 0 ;
39836 PyObject * obj1 = 0 ;
39837 PyObject * obj2 = 0 ;
39839 if (!PyArg_ParseTuple(args,(
char *)
"OOO:merge_into",&obj0,&obj1,&obj2)) SWIG_fail;
39840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
39841 if (!SWIG_IsOK(res1)) {
39842 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "merge_into" "', argument " "1"" of type '" "faiss::Index *""'");
39845 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
39846 if (!SWIG_IsOK(res2)) {
39847 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "merge_into" "', argument " "2"" of type '" "faiss::Index *""'");
39850 ecode3 = SWIG_AsVal_bool(obj2, &val3);
39851 if (!SWIG_IsOK(ecode3)) {
39852 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "merge_into" "', argument " "3"" of type '" "bool""'");
39854 arg3 =
static_cast< bool >(val3);
39856 Py_BEGIN_ALLOW_THREADS
39858 faiss::ivflib::merge_into(arg1,arg2,arg3);
39860 PyEval_RestoreThread(_save);
39861 PyErr_SetString(PyExc_RuntimeError, e.
what());
39864 Py_END_ALLOW_THREADS
39866 resultobj = SWIG_Py_Void();
39873 SWIGINTERN PyObject *_wrap_search_centroid(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39874 PyObject *resultobj = 0;
39876 float *arg2 = (
float *) 0 ;
39878 faiss::ivflib::idx_t *arg4 = (faiss::ivflib::idx_t *) 0 ;
39887 PyObject * obj0 = 0 ;
39888 PyObject * obj1 = 0 ;
39889 PyObject * obj2 = 0 ;
39890 PyObject * obj3 = 0 ;
39892 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:search_centroid",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
39894 if (!SWIG_IsOK(res1)) {
39895 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "search_centroid" "', argument " "1"" of type '" "faiss::Index *""'");
39898 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
39899 if (!SWIG_IsOK(res2)) {
39900 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "search_centroid" "', argument " "2"" of type '" "float const *""'");
39902 arg2 =
reinterpret_cast< float *
>(argp2);
39903 ecode3 = SWIG_AsVal_int(obj2, &val3);
39904 if (!SWIG_IsOK(ecode3)) {
39905 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "search_centroid" "', argument " "3"" of type '" "int""'");
39907 arg3 =
static_cast< int >(val3);
39908 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
39909 if (!SWIG_IsOK(res4)) {
39910 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "search_centroid" "', argument " "4"" of type '" "faiss::ivflib::idx_t *""'");
39912 arg4 =
reinterpret_cast< faiss::ivflib::idx_t *
>(argp4);
39914 Py_BEGIN_ALLOW_THREADS
39916 faiss::ivflib::search_centroid(arg1,(
float const *)arg2,arg3,arg4);
39918 PyEval_RestoreThread(_save);
39919 PyErr_SetString(PyExc_RuntimeError, e.
what());
39922 Py_END_ALLOW_THREADS
39924 resultobj = SWIG_Py_Void();
39931 SWIGINTERN PyObject *_wrap_search_and_return_centroids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
39932 PyObject *resultobj = 0;
39935 float *arg3 = (
float *) 0 ;
39937 float *arg5 = (
float *) 0 ;
39938 faiss::ivflib::idx_t *arg6 = (faiss::ivflib::idx_t *) 0 ;
39939 faiss::ivflib::idx_t *arg7 = (faiss::ivflib::idx_t *) 0 ;
39940 faiss::ivflib::idx_t *arg8 = (faiss::ivflib::idx_t *) 0 ;
39957 PyObject * obj0 = 0 ;
39958 PyObject * obj1 = 0 ;
39959 PyObject * obj2 = 0 ;
39960 PyObject * obj3 = 0 ;
39961 PyObject * obj4 = 0 ;
39962 PyObject * obj5 = 0 ;
39963 PyObject * obj6 = 0 ;
39964 PyObject * obj7 = 0 ;
39966 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:search_and_return_centroids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
39967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
39968 if (!SWIG_IsOK(res1)) {
39969 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "search_and_return_centroids" "', argument " "1"" of type '" "faiss::Index *""'");
39972 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
39973 if (!SWIG_IsOK(ecode2)) {
39974 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "search_and_return_centroids" "', argument " "2"" of type '" "size_t""'");
39976 arg2 =
static_cast< size_t >(val2);
39977 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
39978 if (!SWIG_IsOK(res3)) {
39979 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "search_and_return_centroids" "', argument " "3"" of type '" "float const *""'");
39981 arg3 =
reinterpret_cast< float *
>(argp3);
39982 ecode4 = SWIG_AsVal_long(obj3, &val4);
39983 if (!SWIG_IsOK(ecode4)) {
39984 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "search_and_return_centroids" "', argument " "4"" of type '" "long""'");
39986 arg4 =
static_cast< long >(val4);
39987 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
39988 if (!SWIG_IsOK(res5)) {
39989 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "search_and_return_centroids" "', argument " "5"" of type '" "float *""'");
39991 arg5 =
reinterpret_cast< float *
>(argp5);
39992 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
39993 if (!SWIG_IsOK(res6)) {
39994 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "search_and_return_centroids" "', argument " "6"" of type '" "faiss::ivflib::idx_t *""'");
39996 arg6 =
reinterpret_cast< faiss::ivflib::idx_t *
>(argp6);
39997 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_long, 0 | 0 );
39998 if (!SWIG_IsOK(res7)) {
39999 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "search_and_return_centroids" "', argument " "7"" of type '" "faiss::ivflib::idx_t *""'");
40001 arg7 =
reinterpret_cast< faiss::ivflib::idx_t *
>(argp7);
40002 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
40003 if (!SWIG_IsOK(res8)) {
40004 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "search_and_return_centroids" "', argument " "8"" of type '" "faiss::ivflib::idx_t *""'");
40006 arg8 =
reinterpret_cast< faiss::ivflib::idx_t *
>(argp8);
40008 Py_BEGIN_ALLOW_THREADS
40010 faiss::ivflib::search_and_return_centroids(arg1,arg2,(
float const *)arg3,arg4,arg5,arg6,arg7,arg8);
40012 PyEval_RestoreThread(_save);
40013 PyErr_SetString(PyExc_RuntimeError, e.
what());
40016 Py_END_ALLOW_THREADS
40018 resultobj = SWIG_Py_Void();
40025 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40026 PyObject *resultobj = 0;
40033 PyObject * obj0 = 0 ;
40034 PyObject * obj1 = 0 ;
40036 if (!PyArg_ParseTuple(args,(
char *)
"OO:SlidingIndexWindow_index_set",&obj0,&obj1)) SWIG_fail;
40037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
40038 if (!SWIG_IsOK(res1)) {
40039 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_index_set" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
40042 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
40043 if (!SWIG_IsOK(res2)) {
40044 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SlidingIndexWindow_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
40047 if (arg1) (arg1)->index = arg2;
40048 resultobj = SWIG_Py_Void();
40055 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40056 PyObject *resultobj = 0;
40060 PyObject * obj0 = 0 ;
40063 if (!PyArg_ParseTuple(args,(
char *)
"O:SlidingIndexWindow_index_get",&obj0)) SWIG_fail;
40064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
40065 if (!SWIG_IsOK(res1)) {
40066 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_index_get" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
40070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
40077 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_ils_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40078 PyObject *resultobj = 0;
40085 PyObject * obj0 = 0 ;
40086 PyObject * obj1 = 0 ;
40088 if (!PyArg_ParseTuple(args,(
char *)
"OO:SlidingIndexWindow_ils_set",&obj0,&obj1)) SWIG_fail;
40089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
40090 if (!SWIG_IsOK(res1)) {
40091 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_ils_set" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
40094 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ArrayInvertedLists, SWIG_POINTER_DISOWN | 0 );
40095 if (!SWIG_IsOK(res2)) {
40096 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SlidingIndexWindow_ils_set" "', argument " "2"" of type '" "faiss::ArrayInvertedLists *""'");
40099 if (arg1) (arg1)->ils = arg2;
40100 resultobj = SWIG_Py_Void();
40107 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_ils_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40108 PyObject *resultobj = 0;
40112 PyObject * obj0 = 0 ;
40115 if (!PyArg_ParseTuple(args,(
char *)
"O:SlidingIndexWindow_ils_get",&obj0)) SWIG_fail;
40116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
40117 if (!SWIG_IsOK(res1)) {
40118 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_ils_get" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
40122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
40129 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_n_slice_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40130 PyObject *resultobj = 0;
40137 PyObject * obj0 = 0 ;
40138 PyObject * obj1 = 0 ;
40140 if (!PyArg_ParseTuple(args,(
char *)
"OO:SlidingIndexWindow_n_slice_set",&obj0,&obj1)) SWIG_fail;
40141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
40142 if (!SWIG_IsOK(res1)) {
40143 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_n_slice_set" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
40146 ecode2 = SWIG_AsVal_int(obj1, &val2);
40147 if (!SWIG_IsOK(ecode2)) {
40148 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SlidingIndexWindow_n_slice_set" "', argument " "2"" of type '" "int""'");
40150 arg2 =
static_cast< int >(val2);
40151 if (arg1) (arg1)->n_slice = arg2;
40152 resultobj = SWIG_Py_Void();
40159 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_n_slice_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40160 PyObject *resultobj = 0;
40164 PyObject * obj0 = 0 ;
40167 if (!PyArg_ParseTuple(args,(
char *)
"O:SlidingIndexWindow_n_slice_get",&obj0)) SWIG_fail;
40168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
40169 if (!SWIG_IsOK(res1)) {
40170 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_n_slice_get" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
40173 result = (int) ((arg1)->n_slice);
40174 resultobj = SWIG_From_int(static_cast< int >(result));
40181 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_nlist_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40182 PyObject *resultobj = 0;
40189 PyObject * obj0 = 0 ;
40190 PyObject * obj1 = 0 ;
40192 if (!PyArg_ParseTuple(args,(
char *)
"OO:SlidingIndexWindow_nlist_set",&obj0,&obj1)) SWIG_fail;
40193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
40194 if (!SWIG_IsOK(res1)) {
40195 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_nlist_set" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
40198 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
40199 if (!SWIG_IsOK(ecode2)) {
40200 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "SlidingIndexWindow_nlist_set" "', argument " "2"" of type '" "size_t""'");
40202 arg2 =
static_cast< size_t >(val2);
40203 if (arg1) (arg1)->nlist = arg2;
40204 resultobj = SWIG_Py_Void();
40211 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_nlist_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40212 PyObject *resultobj = 0;
40216 PyObject * obj0 = 0 ;
40219 if (!PyArg_ParseTuple(args,(
char *)
"O:SlidingIndexWindow_nlist_get",&obj0)) SWIG_fail;
40220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
40221 if (!SWIG_IsOK(res1)) {
40222 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_nlist_get" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
40225 result = (size_t) ((arg1)->nlist);
40226 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
40233 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_sizes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40234 PyObject *resultobj = 0;
40236 std::vector< std::vector< size_t > > *arg2 = (std::vector< std::vector< size_t > > *) 0 ;
40241 PyObject * obj0 = 0 ;
40242 PyObject * obj1 = 0 ;
40244 if (!PyArg_ParseTuple(args,(
char *)
"OO:SlidingIndexWindow_sizes_set",&obj0,&obj1)) SWIG_fail;
40245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
40246 if (!SWIG_IsOK(res1)) {
40247 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_sizes_set" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
40250 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t, 0 | 0 );
40251 if (!SWIG_IsOK(res2)) {
40252 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SlidingIndexWindow_sizes_set" "', argument " "2"" of type '" "std::vector< std::vector< size_t > > *""'");
40254 arg2 =
reinterpret_cast< std::vector< std::vector< size_t >
> * >(argp2);
40255 if (arg1) (arg1)->sizes = *arg2;
40256 resultobj = SWIG_Py_Void();
40263 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_sizes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40264 PyObject *resultobj = 0;
40268 PyObject * obj0 = 0 ;
40269 std::vector< std::vector< size_t > > *result = 0 ;
40271 if (!PyArg_ParseTuple(args,(
char *)
"O:SlidingIndexWindow_sizes_get",&obj0)) SWIG_fail;
40272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
40273 if (!SWIG_IsOK(res1)) {
40274 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_sizes_get" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
40277 result = (std::vector< std::vector< size_t > > *)& ((arg1)->sizes);
40278 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t, 0 | 0 );
40285 SWIGINTERN PyObject *_wrap_new_SlidingIndexWindow(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40286 PyObject *resultobj = 0;
40290 PyObject * obj0 = 0 ;
40293 if (!PyArg_ParseTuple(args,(
char *)
"O:new_SlidingIndexWindow",&obj0)) SWIG_fail;
40294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
40295 if (!SWIG_IsOK(res1)) {
40296 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_SlidingIndexWindow" "', argument " "1"" of type '" "faiss::Index *""'");
40300 Py_BEGIN_ALLOW_THREADS
40304 PyEval_RestoreThread(_save);
40305 PyErr_SetString(PyExc_RuntimeError, e.
what());
40308 Py_END_ALLOW_THREADS
40310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, SWIG_POINTER_NEW | 0 );
40317 SWIGINTERN PyObject *_wrap_SlidingIndexWindow_step(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40318 PyObject *resultobj = 0;
40328 PyObject * obj0 = 0 ;
40329 PyObject * obj1 = 0 ;
40330 PyObject * obj2 = 0 ;
40332 if (!PyArg_ParseTuple(args,(
char *)
"OOO:SlidingIndexWindow_step",&obj0,&obj1,&obj2)) SWIG_fail;
40333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, 0 | 0 );
40334 if (!SWIG_IsOK(res1)) {
40335 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "SlidingIndexWindow_step" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
40338 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
40339 if (!SWIG_IsOK(res2)) {
40340 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "SlidingIndexWindow_step" "', argument " "2"" of type '" "faiss::Index const *""'");
40343 ecode3 = SWIG_AsVal_bool(obj2, &val3);
40344 if (!SWIG_IsOK(ecode3)) {
40345 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "SlidingIndexWindow_step" "', argument " "3"" of type '" "bool""'");
40347 arg3 =
static_cast< bool >(val3);
40349 Py_BEGIN_ALLOW_THREADS
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_delete_SlidingIndexWindow(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40367 PyObject *resultobj = 0;
40371 PyObject * obj0 = 0 ;
40373 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_SlidingIndexWindow",&obj0)) SWIG_fail;
40374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, SWIG_POINTER_DISOWN | 0 );
40375 if (!SWIG_IsOK(res1)) {
40376 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_SlidingIndexWindow" "', argument " "1"" of type '" "faiss::ivflib::SlidingIndexWindow *""'");
40380 resultobj = SWIG_Py_Void();
40387 SWIGINTERN PyObject *SlidingIndexWindow_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40389 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
40390 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ivflib__SlidingIndexWindow, SWIG_NewClientData(obj));
40391 return SWIG_Py_Void();
40394 SWIGINTERN PyObject *_wrap_get_invlist_range(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40395 PyObject *resultobj = 0;
40405 PyObject * obj0 = 0 ;
40406 PyObject * obj1 = 0 ;
40407 PyObject * obj2 = 0 ;
40410 if (!PyArg_ParseTuple(args,(
char *)
"OOO:get_invlist_range",&obj0,&obj1,&obj2)) SWIG_fail;
40411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
40412 if (!SWIG_IsOK(res1)) {
40413 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "get_invlist_range" "', argument " "1"" of type '" "faiss::Index const *""'");
40416 ecode2 = SWIG_AsVal_long(obj1, &val2);
40417 if (!SWIG_IsOK(ecode2)) {
40418 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "get_invlist_range" "', argument " "2"" of type '" "long""'");
40420 arg2 =
static_cast< long >(val2);
40421 ecode3 = SWIG_AsVal_long(obj2, &val3);
40422 if (!SWIG_IsOK(ecode3)) {
40423 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "get_invlist_range" "', argument " "3"" of type '" "long""'");
40425 arg3 =
static_cast< long >(val3);
40427 Py_BEGIN_ALLOW_THREADS
40431 PyEval_RestoreThread(_save);
40432 PyErr_SetString(PyExc_RuntimeError, e.
what());
40435 Py_END_ALLOW_THREADS
40437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
40444 SWIGINTERN PyObject *_wrap_set_invlist_range(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40445 PyObject *resultobj = 0;
40458 PyObject * obj0 = 0 ;
40459 PyObject * obj1 = 0 ;
40460 PyObject * obj2 = 0 ;
40461 PyObject * obj3 = 0 ;
40463 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:set_invlist_range",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
40465 if (!SWIG_IsOK(res1)) {
40466 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "set_invlist_range" "', argument " "1"" of type '" "faiss::Index *""'");
40469 ecode2 = SWIG_AsVal_long(obj1, &val2);
40470 if (!SWIG_IsOK(ecode2)) {
40471 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "set_invlist_range" "', argument " "2"" of type '" "long""'");
40473 arg2 =
static_cast< long >(val2);
40474 ecode3 = SWIG_AsVal_long(obj2, &val3);
40475 if (!SWIG_IsOK(ecode3)) {
40476 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "set_invlist_range" "', argument " "3"" of type '" "long""'");
40478 arg3 =
static_cast< long >(val3);
40479 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_faiss__ArrayInvertedLists, 0 | 0 );
40480 if (!SWIG_IsOK(res4)) {
40481 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "set_invlist_range" "', argument " "4"" of type '" "faiss::ArrayInvertedLists *""'");
40485 Py_BEGIN_ALLOW_THREADS
40487 faiss::ivflib::set_invlist_range(arg1,arg2,arg3,arg4);
40489 PyEval_RestoreThread(_save);
40490 PyErr_SetString(PyExc_RuntimeError, e.
what());
40493 Py_END_ALLOW_THREADS
40495 resultobj = SWIG_Py_Void();
40502 SWIGINTERN PyObject *_wrap_search_with_parameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40503 PyObject *resultobj = 0;
40505 faiss::ivflib::idx_t arg2 ;
40506 float *arg3 = (
float *) 0 ;
40507 faiss::ivflib::idx_t arg4 ;
40508 float *arg5 = (
float *) 0 ;
40509 faiss::ivflib::idx_t *arg6 = (faiss::ivflib::idx_t *) 0 ;
40525 PyObject * obj0 = 0 ;
40526 PyObject * obj1 = 0 ;
40527 PyObject * obj2 = 0 ;
40528 PyObject * obj3 = 0 ;
40529 PyObject * obj4 = 0 ;
40530 PyObject * obj5 = 0 ;
40531 PyObject * obj6 = 0 ;
40533 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:search_with_parameters",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
40534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
40535 if (!SWIG_IsOK(res1)) {
40536 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "search_with_parameters" "', argument " "1"" of type '" "faiss::Index const *""'");
40539 ecode2 = SWIG_AsVal_long(obj1, &val2);
40540 if (!SWIG_IsOK(ecode2)) {
40541 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "search_with_parameters" "', argument " "2"" of type '" "faiss::ivflib::idx_t""'");
40543 arg2 =
static_cast< faiss::ivflib::idx_t
>(val2);
40544 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
40545 if (!SWIG_IsOK(res3)) {
40546 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "search_with_parameters" "', argument " "3"" of type '" "float const *""'");
40548 arg3 =
reinterpret_cast< float *
>(argp3);
40549 ecode4 = SWIG_AsVal_long(obj3, &val4);
40550 if (!SWIG_IsOK(ecode4)) {
40551 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "search_with_parameters" "', argument " "4"" of type '" "faiss::ivflib::idx_t""'");
40553 arg4 =
static_cast< faiss::ivflib::idx_t
>(val4);
40554 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
40555 if (!SWIG_IsOK(res5)) {
40556 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "search_with_parameters" "', argument " "5"" of type '" "float *""'");
40558 arg5 =
reinterpret_cast< float *
>(argp5);
40559 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
40560 if (!SWIG_IsOK(res6)) {
40561 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "search_with_parameters" "', argument " "6"" of type '" "faiss::ivflib::idx_t *""'");
40563 arg6 =
reinterpret_cast< faiss::ivflib::idx_t *
>(argp6);
40564 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
40565 if (!SWIG_IsOK(res7)) {
40566 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "search_with_parameters" "', argument " "7"" of type '" "faiss::IVFSearchParameters *""'");
40570 Py_BEGIN_ALLOW_THREADS
40572 faiss::ivflib::search_with_parameters((
faiss::Index const *)arg1,arg2,(
float const *)arg3,arg4,arg5,arg6,arg7);
40574 PyEval_RestoreThread(_save);
40575 PyErr_SetString(PyExc_RuntimeError, e.
what());
40578 Py_END_ALLOW_THREADS
40580 resultobj = SWIG_Py_Void();
40587 SWIGINTERN PyObject *_wrap_ScalarQuantizer_qtype_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40588 PyObject *resultobj = 0;
40595 PyObject * obj0 = 0 ;
40596 PyObject * obj1 = 0 ;
40598 if (!PyArg_ParseTuple(args,(
char *)
"OO:ScalarQuantizer_qtype_set",&obj0,&obj1)) SWIG_fail;
40599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40600 if (!SWIG_IsOK(res1)) {
40601 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_qtype_set" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
40604 ecode2 = SWIG_AsVal_int(obj1, &val2);
40605 if (!SWIG_IsOK(ecode2)) {
40606 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ScalarQuantizer_qtype_set" "', argument " "2"" of type '" "faiss::ScalarQuantizer::QuantizerType""'");
40609 if (arg1) (arg1)->qtype = arg2;
40610 resultobj = SWIG_Py_Void();
40617 SWIGINTERN PyObject *_wrap_ScalarQuantizer_qtype_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40618 PyObject *resultobj = 0;
40622 PyObject * obj0 = 0 ;
40625 if (!PyArg_ParseTuple(args,(
char *)
"O:ScalarQuantizer_qtype_get",&obj0)) SWIG_fail;
40626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40627 if (!SWIG_IsOK(res1)) {
40628 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_qtype_get" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
40632 resultobj = SWIG_From_int(static_cast< int >(result));
40639 SWIGINTERN PyObject *_wrap_ScalarQuantizer_rangestat_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40640 PyObject *resultobj = 0;
40647 PyObject * obj0 = 0 ;
40648 PyObject * obj1 = 0 ;
40650 if (!PyArg_ParseTuple(args,(
char *)
"OO:ScalarQuantizer_rangestat_set",&obj0,&obj1)) SWIG_fail;
40651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40652 if (!SWIG_IsOK(res1)) {
40653 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_rangestat_set" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
40656 ecode2 = SWIG_AsVal_int(obj1, &val2);
40657 if (!SWIG_IsOK(ecode2)) {
40658 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ScalarQuantizer_rangestat_set" "', argument " "2"" of type '" "faiss::ScalarQuantizer::RangeStat""'");
40661 if (arg1) (arg1)->rangestat = arg2;
40662 resultobj = SWIG_Py_Void();
40669 SWIGINTERN PyObject *_wrap_ScalarQuantizer_rangestat_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40670 PyObject *resultobj = 0;
40674 PyObject * obj0 = 0 ;
40677 if (!PyArg_ParseTuple(args,(
char *)
"O:ScalarQuantizer_rangestat_get",&obj0)) SWIG_fail;
40678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40679 if (!SWIG_IsOK(res1)) {
40680 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_rangestat_get" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
40684 resultobj = SWIG_From_int(static_cast< int >(result));
40691 SWIGINTERN PyObject *_wrap_ScalarQuantizer_rangestat_arg_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40692 PyObject *resultobj = 0;
40699 PyObject * obj0 = 0 ;
40700 PyObject * obj1 = 0 ;
40702 if (!PyArg_ParseTuple(args,(
char *)
"OO:ScalarQuantizer_rangestat_arg_set",&obj0,&obj1)) SWIG_fail;
40703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40704 if (!SWIG_IsOK(res1)) {
40705 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_rangestat_arg_set" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
40708 ecode2 = SWIG_AsVal_float(obj1, &val2);
40709 if (!SWIG_IsOK(ecode2)) {
40710 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ScalarQuantizer_rangestat_arg_set" "', argument " "2"" of type '" "float""'");
40712 arg2 =
static_cast< float >(val2);
40713 if (arg1) (arg1)->rangestat_arg = arg2;
40714 resultobj = SWIG_Py_Void();
40721 SWIGINTERN PyObject *_wrap_ScalarQuantizer_rangestat_arg_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40722 PyObject *resultobj = 0;
40726 PyObject * obj0 = 0 ;
40729 if (!PyArg_ParseTuple(args,(
char *)
"O:ScalarQuantizer_rangestat_arg_get",&obj0)) SWIG_fail;
40730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40731 if (!SWIG_IsOK(res1)) {
40732 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_rangestat_arg_get" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
40735 result = (float) ((arg1)->rangestat_arg);
40736 resultobj = SWIG_From_float(static_cast< float >(result));
40743 SWIGINTERN PyObject *_wrap_ScalarQuantizer_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40744 PyObject *resultobj = 0;
40751 PyObject * obj0 = 0 ;
40752 PyObject * obj1 = 0 ;
40754 if (!PyArg_ParseTuple(args,(
char *)
"OO:ScalarQuantizer_d_set",&obj0,&obj1)) SWIG_fail;
40755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40756 if (!SWIG_IsOK(res1)) {
40757 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_d_set" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
40760 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
40761 if (!SWIG_IsOK(ecode2)) {
40762 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ScalarQuantizer_d_set" "', argument " "2"" of type '" "size_t""'");
40764 arg2 =
static_cast< size_t >(val2);
40765 if (arg1) (arg1)->d = arg2;
40766 resultobj = SWIG_Py_Void();
40773 SWIGINTERN PyObject *_wrap_ScalarQuantizer_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40774 PyObject *resultobj = 0;
40778 PyObject * obj0 = 0 ;
40781 if (!PyArg_ParseTuple(args,(
char *)
"O:ScalarQuantizer_d_get",&obj0)) SWIG_fail;
40782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40783 if (!SWIG_IsOK(res1)) {
40784 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_d_get" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
40787 result = (size_t) ((arg1)->d);
40788 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
40795 SWIGINTERN PyObject *_wrap_ScalarQuantizer_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40796 PyObject *resultobj = 0;
40803 PyObject * obj0 = 0 ;
40804 PyObject * obj1 = 0 ;
40806 if (!PyArg_ParseTuple(args,(
char *)
"OO:ScalarQuantizer_code_size_set",&obj0,&obj1)) SWIG_fail;
40807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40808 if (!SWIG_IsOK(res1)) {
40809 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_code_size_set" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
40812 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
40813 if (!SWIG_IsOK(ecode2)) {
40814 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ScalarQuantizer_code_size_set" "', argument " "2"" of type '" "size_t""'");
40816 arg2 =
static_cast< size_t >(val2);
40817 if (arg1) (arg1)->code_size = arg2;
40818 resultobj = SWIG_Py_Void();
40825 SWIGINTERN PyObject *_wrap_ScalarQuantizer_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40826 PyObject *resultobj = 0;
40830 PyObject * obj0 = 0 ;
40833 if (!PyArg_ParseTuple(args,(
char *)
"O:ScalarQuantizer_code_size_get",&obj0)) SWIG_fail;
40834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40835 if (!SWIG_IsOK(res1)) {
40836 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_code_size_get" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
40839 result = (size_t) ((arg1)->code_size);
40840 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
40847 SWIGINTERN PyObject *_wrap_ScalarQuantizer_trained_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40848 PyObject *resultobj = 0;
40850 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
40855 PyObject * obj0 = 0 ;
40856 PyObject * obj1 = 0 ;
40858 if (!PyArg_ParseTuple(args,(
char *)
"OO:ScalarQuantizer_trained_set",&obj0,&obj1)) SWIG_fail;
40859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40860 if (!SWIG_IsOK(res1)) {
40861 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_trained_set" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
40864 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
40865 if (!SWIG_IsOK(res2)) {
40866 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ScalarQuantizer_trained_set" "', argument " "2"" of type '" "std::vector< float > *""'");
40868 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
40869 if (arg1) (arg1)->trained = *arg2;
40870 resultobj = SWIG_Py_Void();
40877 SWIGINTERN PyObject *_wrap_ScalarQuantizer_trained_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40878 PyObject *resultobj = 0;
40882 PyObject * obj0 = 0 ;
40883 std::vector< float > *result = 0 ;
40885 if (!PyArg_ParseTuple(args,(
char *)
"O:ScalarQuantizer_trained_get",&obj0)) SWIG_fail;
40886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
40887 if (!SWIG_IsOK(res1)) {
40888 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_trained_get" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
40891 result = (std::vector< float > *)& ((arg1)->trained);
40892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
40899 SWIGINTERN PyObject *_wrap_new_ScalarQuantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40900 PyObject *resultobj = 0;
40907 PyObject * obj0 = 0 ;
40908 PyObject * obj1 = 0 ;
40911 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_ScalarQuantizer",&obj0,&obj1)) SWIG_fail;
40912 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
40913 if (!SWIG_IsOK(ecode1)) {
40914 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_ScalarQuantizer" "', argument " "1"" of type '" "size_t""'");
40916 arg1 =
static_cast< size_t >(val1);
40917 ecode2 = SWIG_AsVal_int(obj1, &val2);
40918 if (!SWIG_IsOK(ecode2)) {
40919 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_ScalarQuantizer" "', argument " "2"" of type '" "faiss::ScalarQuantizer::QuantizerType""'");
40923 Py_BEGIN_ALLOW_THREADS
40927 PyEval_RestoreThread(_save);
40928 PyErr_SetString(PyExc_RuntimeError, e.
what());
40931 Py_END_ALLOW_THREADS
40933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ScalarQuantizer, SWIG_POINTER_NEW | 0 );
40940 SWIGINTERN PyObject *_wrap_new_ScalarQuantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
40941 PyObject *resultobj = 0;
40944 if (!PyArg_ParseTuple(args,(
char *)
":new_ScalarQuantizer")) SWIG_fail;
40946 Py_BEGIN_ALLOW_THREADS
40950 PyEval_RestoreThread(_save);
40951 PyErr_SetString(PyExc_RuntimeError, e.
what());
40954 Py_END_ALLOW_THREADS
40956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ScalarQuantizer, SWIG_POINTER_NEW | 0 );
40963 SWIGINTERN PyObject *_wrap_new_ScalarQuantizer(PyObject *
self, PyObject *args) {
40965 PyObject *argv[3] = {
40970 if (!PyTuple_Check(args)) SWIG_fail;
40971 argc = args ? PyObject_Length(args) : 0;
40972 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
40973 argv[ii] = PyTuple_GET_ITEM(args,ii);
40976 return _wrap_new_ScalarQuantizer__SWIG_1(
self, args);
40981 int res = SWIG_AsVal_size_t(argv[0], NULL);
40982 _v = SWIG_CheckState(res);
40986 int res = SWIG_AsVal_int(argv[1], NULL);
40987 _v = SWIG_CheckState(res);
40990 return _wrap_new_ScalarQuantizer__SWIG_0(
self, args);
40996 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_ScalarQuantizer'.\n"
40997 " Possible C/C++ prototypes are:\n"
40998 " faiss::ScalarQuantizer::ScalarQuantizer(size_t,faiss::ScalarQuantizer::QuantizerType)\n"
40999 " faiss::ScalarQuantizer::ScalarQuantizer()\n");
41004 SWIGINTERN PyObject *_wrap_ScalarQuantizer_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41005 PyObject *resultobj = 0;
41008 float *arg3 = (
float *) 0 ;
41015 PyObject * obj0 = 0 ;
41016 PyObject * obj1 = 0 ;
41017 PyObject * obj2 = 0 ;
41019 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ScalarQuantizer_train",&obj0,&obj1,&obj2)) SWIG_fail;
41020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
41021 if (!SWIG_IsOK(res1)) {
41022 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_train" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
41025 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
41026 if (!SWIG_IsOK(ecode2)) {
41027 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ScalarQuantizer_train" "', argument " "2"" of type '" "size_t""'");
41029 arg2 =
static_cast< size_t >(val2);
41030 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
41031 if (!SWIG_IsOK(res3)) {
41032 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ScalarQuantizer_train" "', argument " "3"" of type '" "float const *""'");
41034 arg3 =
reinterpret_cast< float *
>(argp3);
41036 Py_BEGIN_ALLOW_THREADS
41038 (arg1)->train(arg2,(
float const *)arg3);
41040 PyEval_RestoreThread(_save);
41041 PyErr_SetString(PyExc_RuntimeError, e.
what());
41044 Py_END_ALLOW_THREADS
41046 resultobj = SWIG_Py_Void();
41053 SWIGINTERN PyObject *_wrap_ScalarQuantizer_compute_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41054 PyObject *resultobj = 0;
41056 float *arg2 = (
float *) 0 ;
41057 uint8_t *arg3 = (uint8_t *) 0 ;
41067 PyObject * obj0 = 0 ;
41068 PyObject * obj1 = 0 ;
41069 PyObject * obj2 = 0 ;
41070 PyObject * obj3 = 0 ;
41072 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ScalarQuantizer_compute_codes",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
41074 if (!SWIG_IsOK(res1)) {
41075 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_compute_codes" "', argument " "1"" of type '" "faiss::ScalarQuantizer const *""'");
41078 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
41079 if (!SWIG_IsOK(res2)) {
41080 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ScalarQuantizer_compute_codes" "', argument " "2"" of type '" "float const *""'");
41082 arg2 =
reinterpret_cast< float *
>(argp2);
41083 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
41084 if (!SWIG_IsOK(res3)) {
41085 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ScalarQuantizer_compute_codes" "', argument " "3"" of type '" "uint8_t *""'");
41087 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
41088 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
41089 if (!SWIG_IsOK(ecode4)) {
41090 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ScalarQuantizer_compute_codes" "', argument " "4"" of type '" "size_t""'");
41092 arg4 =
static_cast< size_t >(val4);
41094 Py_BEGIN_ALLOW_THREADS
41098 PyEval_RestoreThread(_save);
41099 PyErr_SetString(PyExc_RuntimeError, e.
what());
41102 Py_END_ALLOW_THREADS
41104 resultobj = SWIG_Py_Void();
41111 SWIGINTERN PyObject *_wrap_ScalarQuantizer_decode(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41112 PyObject *resultobj = 0;
41114 uint8_t *arg2 = (uint8_t *) 0 ;
41115 float *arg3 = (
float *) 0 ;
41125 PyObject * obj0 = 0 ;
41126 PyObject * obj1 = 0 ;
41127 PyObject * obj2 = 0 ;
41128 PyObject * obj3 = 0 ;
41130 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ScalarQuantizer_decode",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
41132 if (!SWIG_IsOK(res1)) {
41133 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_decode" "', argument " "1"" of type '" "faiss::ScalarQuantizer const *""'");
41136 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
41137 if (!SWIG_IsOK(res2)) {
41138 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ScalarQuantizer_decode" "', argument " "2"" of type '" "uint8_t const *""'");
41140 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
41141 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
41142 if (!SWIG_IsOK(res3)) {
41143 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ScalarQuantizer_decode" "', argument " "3"" of type '" "float *""'");
41145 arg3 =
reinterpret_cast< float *
>(argp3);
41146 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
41147 if (!SWIG_IsOK(ecode4)) {
41148 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ScalarQuantizer_decode" "', argument " "4"" of type '" "size_t""'");
41150 arg4 =
static_cast< size_t >(val4);
41152 Py_BEGIN_ALLOW_THREADS
41156 PyEval_RestoreThread(_save);
41157 PyErr_SetString(PyExc_RuntimeError, e.
what());
41160 Py_END_ALLOW_THREADS
41162 resultobj = SWIG_Py_Void();
41169 SWIGINTERN PyObject *_wrap_ScalarQuantizer_get_distance_computer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41170 PyObject *resultobj = 0;
41177 PyObject * obj0 = 0 ;
41178 PyObject * obj1 = 0 ;
41181 if (!PyArg_ParseTuple(args,(
char *)
"OO:ScalarQuantizer_get_distance_computer",&obj0,&obj1)) SWIG_fail;
41182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
41183 if (!SWIG_IsOK(res1)) {
41184 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_get_distance_computer" "', argument " "1"" of type '" "faiss::ScalarQuantizer const *""'");
41187 ecode2 = SWIG_AsVal_int(obj1, &val2);
41188 if (!SWIG_IsOK(ecode2)) {
41189 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ScalarQuantizer_get_distance_computer" "', argument " "2"" of type '" "faiss::MetricType""'");
41193 Py_BEGIN_ALLOW_THREADS
41197 PyEval_RestoreThread(_save);
41198 PyErr_SetString(PyExc_RuntimeError, e.
what());
41201 Py_END_ALLOW_THREADS
41203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ScalarQuantizer__DistanceComputer, 0 | 0 );
41210 SWIGINTERN PyObject *_wrap_ScalarQuantizer_get_distance_computer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41211 PyObject *resultobj = 0;
41215 PyObject * obj0 = 0 ;
41218 if (!PyArg_ParseTuple(args,(
char *)
"O:ScalarQuantizer_get_distance_computer",&obj0)) SWIG_fail;
41219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
41220 if (!SWIG_IsOK(res1)) {
41221 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ScalarQuantizer_get_distance_computer" "', argument " "1"" of type '" "faiss::ScalarQuantizer const *""'");
41225 Py_BEGIN_ALLOW_THREADS
41229 PyEval_RestoreThread(_save);
41230 PyErr_SetString(PyExc_RuntimeError, e.
what());
41233 Py_END_ALLOW_THREADS
41235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ScalarQuantizer__DistanceComputer, 0 | 0 );
41242 SWIGINTERN PyObject *_wrap_ScalarQuantizer_get_distance_computer(PyObject *
self, PyObject *args) {
41244 PyObject *argv[3] = {
41249 if (!PyTuple_Check(args)) SWIG_fail;
41250 argc = args ? PyObject_Length(args) : 0;
41251 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
41252 argv[ii] = PyTuple_GET_ITEM(args,ii);
41257 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ScalarQuantizer, 0);
41258 _v = SWIG_CheckState(res);
41260 return _wrap_ScalarQuantizer_get_distance_computer__SWIG_1(
self, args);
41266 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ScalarQuantizer, 0);
41267 _v = SWIG_CheckState(res);
41270 int res = SWIG_AsVal_int(argv[1], NULL);
41271 _v = SWIG_CheckState(res);
41274 return _wrap_ScalarQuantizer_get_distance_computer__SWIG_0(
self, args);
41280 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'ScalarQuantizer_get_distance_computer'.\n"
41281 " Possible C/C++ prototypes are:\n"
41282 " faiss::ScalarQuantizer::get_distance_computer(faiss::MetricType) const\n"
41283 " faiss::ScalarQuantizer::get_distance_computer() const\n");
41288 SWIGINTERN PyObject *_wrap_delete_ScalarQuantizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41289 PyObject *resultobj = 0;
41293 PyObject * obj0 = 0 ;
41295 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ScalarQuantizer",&obj0)) SWIG_fail;
41296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ScalarQuantizer, SWIG_POINTER_DISOWN | 0 );
41297 if (!SWIG_IsOK(res1)) {
41298 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ScalarQuantizer" "', argument " "1"" of type '" "faiss::ScalarQuantizer *""'");
41302 resultobj = SWIG_Py_Void();
41309 SWIGINTERN PyObject *ScalarQuantizer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41311 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
41312 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ScalarQuantizer, SWIG_NewClientData(obj));
41313 return SWIG_Py_Void();
41316 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_sq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41317 PyObject *resultobj = 0;
41324 PyObject * obj0 = 0 ;
41325 PyObject * obj1 = 0 ;
41327 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexScalarQuantizer_sq_set",&obj0,&obj1)) SWIG_fail;
41328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
41329 if (!SWIG_IsOK(res1)) {
41330 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_sq_set" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
41333 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
41334 if (!SWIG_IsOK(res2)) {
41335 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexScalarQuantizer_sq_set" "', argument " "2"" of type '" "faiss::ScalarQuantizer *""'");
41338 if (arg1) (arg1)->sq = *arg2;
41339 resultobj = SWIG_Py_Void();
41346 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_sq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41347 PyObject *resultobj = 0;
41351 PyObject * obj0 = 0 ;
41354 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexScalarQuantizer_sq_get",&obj0)) SWIG_fail;
41355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
41356 if (!SWIG_IsOK(res1)) {
41357 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_sq_get" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
41361 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
41368 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41369 PyObject *resultobj = 0;
41371 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
41376 PyObject * obj0 = 0 ;
41377 PyObject * obj1 = 0 ;
41379 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexScalarQuantizer_codes_set",&obj0,&obj1)) SWIG_fail;
41380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
41381 if (!SWIG_IsOK(res1)) {
41382 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_codes_set" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
41385 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
41386 if (!SWIG_IsOK(res2)) {
41387 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexScalarQuantizer_codes_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
41389 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
41390 if (arg1) (arg1)->codes = *arg2;
41391 resultobj = SWIG_Py_Void();
41398 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41399 PyObject *resultobj = 0;
41403 PyObject * obj0 = 0 ;
41404 std::vector< uint8_t > *result = 0 ;
41406 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexScalarQuantizer_codes_get",&obj0)) SWIG_fail;
41407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
41408 if (!SWIG_IsOK(res1)) {
41409 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_codes_get" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
41412 result = (std::vector< uint8_t > *)& ((arg1)->codes);
41413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
41420 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41421 PyObject *resultobj = 0;
41428 PyObject * obj0 = 0 ;
41429 PyObject * obj1 = 0 ;
41431 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexScalarQuantizer_code_size_set",&obj0,&obj1)) SWIG_fail;
41432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
41433 if (!SWIG_IsOK(res1)) {
41434 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_code_size_set" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
41437 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
41438 if (!SWIG_IsOK(ecode2)) {
41439 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexScalarQuantizer_code_size_set" "', argument " "2"" of type '" "size_t""'");
41441 arg2 =
static_cast< size_t >(val2);
41442 if (arg1) (arg1)->code_size = arg2;
41443 resultobj = SWIG_Py_Void();
41450 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41451 PyObject *resultobj = 0;
41455 PyObject * obj0 = 0 ;
41458 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexScalarQuantizer_code_size_get",&obj0)) SWIG_fail;
41459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
41460 if (!SWIG_IsOK(res1)) {
41461 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_code_size_get" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
41464 result = (size_t) ((arg1)->code_size);
41465 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
41472 SWIGINTERN PyObject *_wrap_new_IndexScalarQuantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41473 PyObject *resultobj = 0;
41483 PyObject * obj0 = 0 ;
41484 PyObject * obj1 = 0 ;
41485 PyObject * obj2 = 0 ;
41488 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexScalarQuantizer",&obj0,&obj1,&obj2)) SWIG_fail;
41489 ecode1 = SWIG_AsVal_int(obj0, &val1);
41490 if (!SWIG_IsOK(ecode1)) {
41491 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexScalarQuantizer" "', argument " "1"" of type '" "int""'");
41493 arg1 =
static_cast< int >(val1);
41494 ecode2 = SWIG_AsVal_int(obj1, &val2);
41495 if (!SWIG_IsOK(ecode2)) {
41496 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexScalarQuantizer" "', argument " "2"" of type '" "faiss::ScalarQuantizer::QuantizerType""'");
41499 ecode3 = SWIG_AsVal_int(obj2, &val3);
41500 if (!SWIG_IsOK(ecode3)) {
41501 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexScalarQuantizer" "', argument " "3"" of type '" "faiss::MetricType""'");
41505 Py_BEGIN_ALLOW_THREADS
41509 PyEval_RestoreThread(_save);
41510 PyErr_SetString(PyExc_RuntimeError, e.
what());
41513 Py_END_ALLOW_THREADS
41515 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexScalarQuantizer, SWIG_POINTER_NEW | 0 );
41522 SWIGINTERN PyObject *_wrap_new_IndexScalarQuantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41523 PyObject *resultobj = 0;
41530 PyObject * obj0 = 0 ;
41531 PyObject * obj1 = 0 ;
41534 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexScalarQuantizer",&obj0,&obj1)) SWIG_fail;
41535 ecode1 = SWIG_AsVal_int(obj0, &val1);
41536 if (!SWIG_IsOK(ecode1)) {
41537 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexScalarQuantizer" "', argument " "1"" of type '" "int""'");
41539 arg1 =
static_cast< int >(val1);
41540 ecode2 = SWIG_AsVal_int(obj1, &val2);
41541 if (!SWIG_IsOK(ecode2)) {
41542 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexScalarQuantizer" "', argument " "2"" of type '" "faiss::ScalarQuantizer::QuantizerType""'");
41546 Py_BEGIN_ALLOW_THREADS
41550 PyEval_RestoreThread(_save);
41551 PyErr_SetString(PyExc_RuntimeError, e.
what());
41554 Py_END_ALLOW_THREADS
41556 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexScalarQuantizer, SWIG_POINTER_NEW | 0 );
41563 SWIGINTERN PyObject *_wrap_new_IndexScalarQuantizer__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41564 PyObject *resultobj = 0;
41567 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexScalarQuantizer")) SWIG_fail;
41569 Py_BEGIN_ALLOW_THREADS
41573 PyEval_RestoreThread(_save);
41574 PyErr_SetString(PyExc_RuntimeError, e.
what());
41577 Py_END_ALLOW_THREADS
41579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexScalarQuantizer, SWIG_POINTER_NEW | 0 );
41586 SWIGINTERN PyObject *_wrap_new_IndexScalarQuantizer(PyObject *
self, PyObject *args) {
41588 PyObject *argv[4] = {
41593 if (!PyTuple_Check(args)) SWIG_fail;
41594 argc = args ? PyObject_Length(args) : 0;
41595 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
41596 argv[ii] = PyTuple_GET_ITEM(args,ii);
41599 return _wrap_new_IndexScalarQuantizer__SWIG_2(
self, args);
41604 int res = SWIG_AsVal_int(argv[0], NULL);
41605 _v = SWIG_CheckState(res);
41609 int res = SWIG_AsVal_int(argv[1], NULL);
41610 _v = SWIG_CheckState(res);
41613 return _wrap_new_IndexScalarQuantizer__SWIG_1(
self, args);
41620 int res = SWIG_AsVal_int(argv[0], NULL);
41621 _v = SWIG_CheckState(res);
41625 int res = SWIG_AsVal_int(argv[1], NULL);
41626 _v = SWIG_CheckState(res);
41630 int res = SWIG_AsVal_int(argv[2], NULL);
41631 _v = SWIG_CheckState(res);
41634 return _wrap_new_IndexScalarQuantizer__SWIG_0(
self, args);
41641 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexScalarQuantizer'.\n"
41642 " Possible C/C++ prototypes are:\n"
41643 " faiss::IndexScalarQuantizer::IndexScalarQuantizer(int,faiss::ScalarQuantizer::QuantizerType,faiss::MetricType)\n"
41644 " faiss::IndexScalarQuantizer::IndexScalarQuantizer(int,faiss::ScalarQuantizer::QuantizerType)\n"
41645 " faiss::IndexScalarQuantizer::IndexScalarQuantizer()\n");
41650 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41651 PyObject *resultobj = 0;
41654 float *arg3 = (
float *) 0 ;
41661 PyObject * obj0 = 0 ;
41662 PyObject * obj1 = 0 ;
41663 PyObject * obj2 = 0 ;
41665 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexScalarQuantizer_train",&obj0,&obj1,&obj2)) SWIG_fail;
41666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
41667 if (!SWIG_IsOK(res1)) {
41668 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_train" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
41671 ecode2 = SWIG_AsVal_long(obj1, &val2);
41672 if (!SWIG_IsOK(ecode2)) {
41673 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexScalarQuantizer_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
41676 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
41677 if (!SWIG_IsOK(res3)) {
41678 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexScalarQuantizer_train" "', argument " "3"" of type '" "float const *""'");
41680 arg3 =
reinterpret_cast< float *
>(argp3);
41682 Py_BEGIN_ALLOW_THREADS
41684 (arg1)->train(arg2,(
float const *)arg3);
41686 PyEval_RestoreThread(_save);
41687 PyErr_SetString(PyExc_RuntimeError, e.
what());
41690 Py_END_ALLOW_THREADS
41692 resultobj = SWIG_Py_Void();
41699 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41700 PyObject *resultobj = 0;
41703 float *arg3 = (
float *) 0 ;
41710 PyObject * obj0 = 0 ;
41711 PyObject * obj1 = 0 ;
41712 PyObject * obj2 = 0 ;
41714 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexScalarQuantizer_add",&obj0,&obj1,&obj2)) SWIG_fail;
41715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
41716 if (!SWIG_IsOK(res1)) {
41717 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_add" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
41720 ecode2 = SWIG_AsVal_long(obj1, &val2);
41721 if (!SWIG_IsOK(ecode2)) {
41722 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexScalarQuantizer_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
41725 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
41726 if (!SWIG_IsOK(res3)) {
41727 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexScalarQuantizer_add" "', argument " "3"" of type '" "float const *""'");
41729 arg3 =
reinterpret_cast< float *
>(argp3);
41731 Py_BEGIN_ALLOW_THREADS
41733 (arg1)->add(arg2,(
float const *)arg3);
41735 PyEval_RestoreThread(_save);
41736 PyErr_SetString(PyExc_RuntimeError, e.
what());
41739 Py_END_ALLOW_THREADS
41741 resultobj = SWIG_Py_Void();
41748 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41749 PyObject *resultobj = 0;
41752 float *arg3 = (
float *) 0 ;
41754 float *arg5 = (
float *) 0 ;
41768 PyObject * obj0 = 0 ;
41769 PyObject * obj1 = 0 ;
41770 PyObject * obj2 = 0 ;
41771 PyObject * obj3 = 0 ;
41772 PyObject * obj4 = 0 ;
41773 PyObject * obj5 = 0 ;
41775 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexScalarQuantizer_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
41776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
41777 if (!SWIG_IsOK(res1)) {
41778 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_search" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer const *""'");
41781 ecode2 = SWIG_AsVal_long(obj1, &val2);
41782 if (!SWIG_IsOK(ecode2)) {
41783 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexScalarQuantizer_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
41786 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
41787 if (!SWIG_IsOK(res3)) {
41788 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexScalarQuantizer_search" "', argument " "3"" of type '" "float const *""'");
41790 arg3 =
reinterpret_cast< float *
>(argp3);
41791 ecode4 = SWIG_AsVal_long(obj3, &val4);
41792 if (!SWIG_IsOK(ecode4)) {
41793 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexScalarQuantizer_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
41796 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
41797 if (!SWIG_IsOK(res5)) {
41798 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexScalarQuantizer_search" "', argument " "5"" of type '" "float *""'");
41800 arg5 =
reinterpret_cast< float *
>(argp5);
41801 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
41802 if (!SWIG_IsOK(res6)) {
41803 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexScalarQuantizer_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
41807 Py_BEGIN_ALLOW_THREADS
41811 PyEval_RestoreThread(_save);
41812 PyErr_SetString(PyExc_RuntimeError, e.
what());
41815 Py_END_ALLOW_THREADS
41817 resultobj = SWIG_Py_Void();
41824 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41825 PyObject *resultobj = 0;
41829 PyObject * obj0 = 0 ;
41831 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexScalarQuantizer_reset",&obj0)) SWIG_fail;
41832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
41833 if (!SWIG_IsOK(res1)) {
41834 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_reset" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
41838 Py_BEGIN_ALLOW_THREADS
41842 PyEval_RestoreThread(_save);
41843 PyErr_SetString(PyExc_RuntimeError, e.
what());
41846 Py_END_ALLOW_THREADS
41848 resultobj = SWIG_Py_Void();
41855 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41856 PyObject *resultobj = 0;
41860 float *arg4 = (
float *) 0 ;
41869 PyObject * obj0 = 0 ;
41870 PyObject * obj1 = 0 ;
41871 PyObject * obj2 = 0 ;
41872 PyObject * obj3 = 0 ;
41874 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexScalarQuantizer_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
41876 if (!SWIG_IsOK(res1)) {
41877 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_reconstruct_n" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer const *""'");
41880 ecode2 = SWIG_AsVal_long(obj1, &val2);
41881 if (!SWIG_IsOK(ecode2)) {
41882 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexScalarQuantizer_reconstruct_n" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
41885 ecode3 = SWIG_AsVal_long(obj2, &val3);
41886 if (!SWIG_IsOK(ecode3)) {
41887 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexScalarQuantizer_reconstruct_n" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
41890 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
41891 if (!SWIG_IsOK(res4)) {
41892 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexScalarQuantizer_reconstruct_n" "', argument " "4"" of type '" "float *""'");
41894 arg4 =
reinterpret_cast< float *
>(argp4);
41896 Py_BEGIN_ALLOW_THREADS
41900 PyEval_RestoreThread(_save);
41901 PyErr_SetString(PyExc_RuntimeError, e.
what());
41904 Py_END_ALLOW_THREADS
41906 resultobj = SWIG_Py_Void();
41913 SWIGINTERN PyObject *_wrap_IndexScalarQuantizer_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41914 PyObject *resultobj = 0;
41917 float *arg3 = (
float *) 0 ;
41924 PyObject * obj0 = 0 ;
41925 PyObject * obj1 = 0 ;
41926 PyObject * obj2 = 0 ;
41928 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexScalarQuantizer_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
41929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, 0 | 0 );
41930 if (!SWIG_IsOK(res1)) {
41931 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexScalarQuantizer_reconstruct" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer const *""'");
41934 ecode2 = SWIG_AsVal_long(obj1, &val2);
41935 if (!SWIG_IsOK(ecode2)) {
41936 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexScalarQuantizer_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
41939 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
41940 if (!SWIG_IsOK(res3)) {
41941 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexScalarQuantizer_reconstruct" "', argument " "3"" of type '" "float *""'");
41943 arg3 =
reinterpret_cast< float *
>(argp3);
41945 Py_BEGIN_ALLOW_THREADS
41949 PyEval_RestoreThread(_save);
41950 PyErr_SetString(PyExc_RuntimeError, e.
what());
41953 Py_END_ALLOW_THREADS
41955 resultobj = SWIG_Py_Void();
41962 SWIGINTERN PyObject *_wrap_delete_IndexScalarQuantizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41963 PyObject *resultobj = 0;
41967 PyObject * obj0 = 0 ;
41969 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexScalarQuantizer",&obj0)) SWIG_fail;
41970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexScalarQuantizer, SWIG_POINTER_DISOWN | 0 );
41971 if (!SWIG_IsOK(res1)) {
41972 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexScalarQuantizer" "', argument " "1"" of type '" "faiss::IndexScalarQuantizer *""'");
41976 resultobj = SWIG_Py_Void();
41983 SWIGINTERN PyObject *IndexScalarQuantizer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41985 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
41986 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexScalarQuantizer, SWIG_NewClientData(obj));
41987 return SWIG_Py_Void();
41990 SWIGINTERN PyObject *_wrap_IndexIVFScalarQuantizer_sq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
41991 PyObject *resultobj = 0;
41998 PyObject * obj0 = 0 ;
41999 PyObject * obj1 = 0 ;
42001 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFScalarQuantizer_sq_set",&obj0,&obj1)) SWIG_fail;
42002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, 0 | 0 );
42003 if (!SWIG_IsOK(res1)) {
42004 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFScalarQuantizer_sq_set" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer *""'");
42007 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
42008 if (!SWIG_IsOK(res2)) {
42009 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFScalarQuantizer_sq_set" "', argument " "2"" of type '" "faiss::ScalarQuantizer *""'");
42012 if (arg1) (arg1)->sq = *arg2;
42013 resultobj = SWIG_Py_Void();
42020 SWIGINTERN PyObject *_wrap_IndexIVFScalarQuantizer_sq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42021 PyObject *resultobj = 0;
42025 PyObject * obj0 = 0 ;
42028 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFScalarQuantizer_sq_get",&obj0)) SWIG_fail;
42029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, 0 | 0 );
42030 if (!SWIG_IsOK(res1)) {
42031 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFScalarQuantizer_sq_get" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer *""'");
42035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ScalarQuantizer, 0 | 0 );
42042 SWIGINTERN PyObject *_wrap_new_IndexIVFScalarQuantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42043 PyObject *resultobj = 0;
42059 PyObject * obj0 = 0 ;
42060 PyObject * obj1 = 0 ;
42061 PyObject * obj2 = 0 ;
42062 PyObject * obj3 = 0 ;
42063 PyObject * obj4 = 0 ;
42066 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:new_IndexIVFScalarQuantizer",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
42067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
42068 if (!SWIG_IsOK(res1)) {
42069 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "1"" of type '" "faiss::Index *""'");
42072 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42073 if (!SWIG_IsOK(ecode2)) {
42074 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "2"" of type '" "size_t""'");
42076 arg2 =
static_cast< size_t >(val2);
42077 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
42078 if (!SWIG_IsOK(ecode3)) {
42079 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "3"" of type '" "size_t""'");
42081 arg3 =
static_cast< size_t >(val3);
42082 ecode4 = SWIG_AsVal_int(obj3, &val4);
42083 if (!SWIG_IsOK(ecode4)) {
42084 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "4"" of type '" "faiss::ScalarQuantizer::QuantizerType""'");
42087 ecode5 = SWIG_AsVal_int(obj4, &val5);
42088 if (!SWIG_IsOK(ecode5)) {
42089 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "5"" of type '" "faiss::MetricType""'");
42093 Py_BEGIN_ALLOW_THREADS
42097 PyEval_RestoreThread(_save);
42098 PyErr_SetString(PyExc_RuntimeError, e.
what());
42101 Py_END_ALLOW_THREADS
42103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, SWIG_POINTER_NEW | 0 );
42110 SWIGINTERN PyObject *_wrap_new_IndexIVFScalarQuantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42111 PyObject *resultobj = 0;
42124 PyObject * obj0 = 0 ;
42125 PyObject * obj1 = 0 ;
42126 PyObject * obj2 = 0 ;
42127 PyObject * obj3 = 0 ;
42130 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_IndexIVFScalarQuantizer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
42131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
42132 if (!SWIG_IsOK(res1)) {
42133 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "1"" of type '" "faiss::Index *""'");
42136 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42137 if (!SWIG_IsOK(ecode2)) {
42138 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "2"" of type '" "size_t""'");
42140 arg2 =
static_cast< size_t >(val2);
42141 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
42142 if (!SWIG_IsOK(ecode3)) {
42143 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "3"" of type '" "size_t""'");
42145 arg3 =
static_cast< size_t >(val3);
42146 ecode4 = SWIG_AsVal_int(obj3, &val4);
42147 if (!SWIG_IsOK(ecode4)) {
42148 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexIVFScalarQuantizer" "', argument " "4"" of type '" "faiss::ScalarQuantizer::QuantizerType""'");
42152 Py_BEGIN_ALLOW_THREADS
42156 PyEval_RestoreThread(_save);
42157 PyErr_SetString(PyExc_RuntimeError, e.
what());
42160 Py_END_ALLOW_THREADS
42162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, SWIG_POINTER_NEW | 0 );
42169 SWIGINTERN PyObject *_wrap_new_IndexIVFScalarQuantizer__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42170 PyObject *resultobj = 0;
42173 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIVFScalarQuantizer")) SWIG_fail;
42175 Py_BEGIN_ALLOW_THREADS
42179 PyEval_RestoreThread(_save);
42180 PyErr_SetString(PyExc_RuntimeError, e.
what());
42183 Py_END_ALLOW_THREADS
42185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, SWIG_POINTER_NEW | 0 );
42192 SWIGINTERN PyObject *_wrap_new_IndexIVFScalarQuantizer(PyObject *
self, PyObject *args) {
42194 PyObject *argv[6] = {
42199 if (!PyTuple_Check(args)) SWIG_fail;
42200 argc = args ? PyObject_Length(args) : 0;
42201 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
42202 argv[ii] = PyTuple_GET_ITEM(args,ii);
42205 return _wrap_new_IndexIVFScalarQuantizer__SWIG_2(
self, args);
42210 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
42211 _v = SWIG_CheckState(res);
42214 int res = SWIG_AsVal_size_t(argv[1], NULL);
42215 _v = SWIG_CheckState(res);
42219 int res = SWIG_AsVal_size_t(argv[2], NULL);
42220 _v = SWIG_CheckState(res);
42224 int res = SWIG_AsVal_int(argv[3], NULL);
42225 _v = SWIG_CheckState(res);
42228 return _wrap_new_IndexIVFScalarQuantizer__SWIG_1(
self, args);
42237 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
42238 _v = SWIG_CheckState(res);
42241 int res = SWIG_AsVal_size_t(argv[1], NULL);
42242 _v = SWIG_CheckState(res);
42246 int res = SWIG_AsVal_size_t(argv[2], NULL);
42247 _v = SWIG_CheckState(res);
42251 int res = SWIG_AsVal_int(argv[3], NULL);
42252 _v = SWIG_CheckState(res);
42256 int res = SWIG_AsVal_int(argv[4], NULL);
42257 _v = SWIG_CheckState(res);
42260 return _wrap_new_IndexIVFScalarQuantizer__SWIG_0(
self, args);
42269 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexIVFScalarQuantizer'.\n"
42270 " Possible C/C++ prototypes are:\n"
42271 " faiss::IndexIVFScalarQuantizer::IndexIVFScalarQuantizer(faiss::Index *,size_t,size_t,faiss::ScalarQuantizer::QuantizerType,faiss::MetricType)\n"
42272 " faiss::IndexIVFScalarQuantizer::IndexIVFScalarQuantizer(faiss::Index *,size_t,size_t,faiss::ScalarQuantizer::QuantizerType)\n"
42273 " faiss::IndexIVFScalarQuantizer::IndexIVFScalarQuantizer()\n");
42278 SWIGINTERN PyObject *_wrap_IndexIVFScalarQuantizer_train_residual(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42279 PyObject *resultobj = 0;
42282 float *arg3 = (
float *) 0 ;
42289 PyObject * obj0 = 0 ;
42290 PyObject * obj1 = 0 ;
42291 PyObject * obj2 = 0 ;
42293 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVFScalarQuantizer_train_residual",&obj0,&obj1,&obj2)) SWIG_fail;
42294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, 0 | 0 );
42295 if (!SWIG_IsOK(res1)) {
42296 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFScalarQuantizer_train_residual" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer *""'");
42299 ecode2 = SWIG_AsVal_long(obj1, &val2);
42300 if (!SWIG_IsOK(ecode2)) {
42301 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFScalarQuantizer_train_residual" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
42304 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
42305 if (!SWIG_IsOK(res3)) {
42306 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFScalarQuantizer_train_residual" "', argument " "3"" of type '" "float const *""'");
42308 arg3 =
reinterpret_cast< float *
>(argp3);
42310 Py_BEGIN_ALLOW_THREADS
42312 (arg1)->train_residual(arg2,(
float const *)arg3);
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_IndexIVFScalarQuantizer_encode_vectors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42328 PyObject *resultobj = 0;
42331 float *arg3 = (
float *) 0 ;
42333 uint8_t *arg5 = (uint8_t *) 0 ;
42344 PyObject * obj0 = 0 ;
42345 PyObject * obj1 = 0 ;
42346 PyObject * obj2 = 0 ;
42347 PyObject * obj3 = 0 ;
42348 PyObject * obj4 = 0 ;
42350 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFScalarQuantizer_encode_vectors",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
42351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, 0 | 0 );
42352 if (!SWIG_IsOK(res1)) {
42353 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFScalarQuantizer_encode_vectors" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer const *""'");
42356 ecode2 = SWIG_AsVal_long(obj1, &val2);
42357 if (!SWIG_IsOK(ecode2)) {
42358 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFScalarQuantizer_encode_vectors" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
42361 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
42362 if (!SWIG_IsOK(res3)) {
42363 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFScalarQuantizer_encode_vectors" "', argument " "3"" of type '" "float const *""'");
42365 arg3 =
reinterpret_cast< float *
>(argp3);
42366 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
42367 if (!SWIG_IsOK(res4)) {
42368 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFScalarQuantizer_encode_vectors" "', argument " "4"" of type '" "faiss::Index::idx_t const *""'");
42371 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
42372 if (!SWIG_IsOK(res5)) {
42373 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFScalarQuantizer_encode_vectors" "', argument " "5"" of type '" "uint8_t *""'");
42375 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
42377 Py_BEGIN_ALLOW_THREADS
42381 PyEval_RestoreThread(_save);
42382 PyErr_SetString(PyExc_RuntimeError, e.
what());
42385 Py_END_ALLOW_THREADS
42387 resultobj = SWIG_Py_Void();
42394 SWIGINTERN PyObject *_wrap_IndexIVFScalarQuantizer_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42395 PyObject *resultobj = 0;
42398 float *arg3 = (
float *) 0 ;
42399 long *arg4 = (
long *) 0 ;
42408 PyObject * obj0 = 0 ;
42409 PyObject * obj1 = 0 ;
42410 PyObject * obj2 = 0 ;
42411 PyObject * obj3 = 0 ;
42413 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFScalarQuantizer_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
42414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, 0 | 0 );
42415 if (!SWIG_IsOK(res1)) {
42416 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFScalarQuantizer_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer *""'");
42419 ecode2 = SWIG_AsVal_long(obj1, &val2);
42420 if (!SWIG_IsOK(ecode2)) {
42421 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFScalarQuantizer_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
42424 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
42425 if (!SWIG_IsOK(res3)) {
42426 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFScalarQuantizer_add_with_ids" "', argument " "3"" of type '" "float const *""'");
42428 arg3 =
reinterpret_cast< float *
>(argp3);
42429 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
42430 if (!SWIG_IsOK(res4)) {
42431 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFScalarQuantizer_add_with_ids" "', argument " "4"" of type '" "long const *""'");
42433 arg4 =
reinterpret_cast< long *
>(argp4);
42435 Py_BEGIN_ALLOW_THREADS
42437 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
42439 PyEval_RestoreThread(_save);
42440 PyErr_SetString(PyExc_RuntimeError, e.
what());
42443 Py_END_ALLOW_THREADS
42445 resultobj = SWIG_Py_Void();
42452 SWIGINTERN PyObject *_wrap_IndexIVFScalarQuantizer_get_InvertedListScanner(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42453 PyObject *resultobj = 0;
42460 PyObject * obj0 = 0 ;
42461 PyObject * obj1 = 0 ;
42464 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFScalarQuantizer_get_InvertedListScanner",&obj0,&obj1)) SWIG_fail;
42465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, 0 | 0 );
42466 if (!SWIG_IsOK(res1)) {
42467 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFScalarQuantizer_get_InvertedListScanner" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer const *""'");
42470 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42471 if (!SWIG_IsOK(ecode2)) {
42472 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFScalarQuantizer_get_InvertedListScanner" "', argument " "2"" of type '" "bool""'");
42474 arg2 =
static_cast< bool >(val2);
42476 Py_BEGIN_ALLOW_THREADS
42480 PyEval_RestoreThread(_save);
42481 PyErr_SetString(PyExc_RuntimeError, e.
what());
42484 Py_END_ALLOW_THREADS
42486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedListScanner, 0 | 0 );
42493 SWIGINTERN PyObject *_wrap_IndexIVFScalarQuantizer_reconstruct_from_offset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42494 PyObject *resultobj = 0;
42498 float *arg4 = (
float *) 0 ;
42507 PyObject * obj0 = 0 ;
42508 PyObject * obj1 = 0 ;
42509 PyObject * obj2 = 0 ;
42510 PyObject * obj3 = 0 ;
42512 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFScalarQuantizer_reconstruct_from_offset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
42513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, 0 | 0 );
42514 if (!SWIG_IsOK(res1)) {
42515 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFScalarQuantizer_reconstruct_from_offset" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer const *""'");
42518 ecode2 = SWIG_AsVal_long(obj1, &val2);
42519 if (!SWIG_IsOK(ecode2)) {
42520 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFScalarQuantizer_reconstruct_from_offset" "', argument " "2"" of type '" "long""'");
42522 arg2 =
static_cast< long >(val2);
42523 ecode3 = SWIG_AsVal_long(obj2, &val3);
42524 if (!SWIG_IsOK(ecode3)) {
42525 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVFScalarQuantizer_reconstruct_from_offset" "', argument " "3"" of type '" "long""'");
42527 arg3 =
static_cast< long >(val3);
42528 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
42529 if (!SWIG_IsOK(res4)) {
42530 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFScalarQuantizer_reconstruct_from_offset" "', argument " "4"" of type '" "float *""'");
42532 arg4 =
reinterpret_cast< float *
>(argp4);
42534 Py_BEGIN_ALLOW_THREADS
42538 PyEval_RestoreThread(_save);
42539 PyErr_SetString(PyExc_RuntimeError, e.
what());
42542 Py_END_ALLOW_THREADS
42544 resultobj = SWIG_Py_Void();
42551 SWIGINTERN PyObject *_wrap_delete_IndexIVFScalarQuantizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42552 PyObject *resultobj = 0;
42556 PyObject * obj0 = 0 ;
42558 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVFScalarQuantizer",&obj0)) SWIG_fail;
42559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, SWIG_POINTER_DISOWN | 0 );
42560 if (!SWIG_IsOK(res1)) {
42561 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVFScalarQuantizer" "', argument " "1"" of type '" "faiss::IndexIVFScalarQuantizer *""'");
42565 resultobj = SWIG_Py_Void();
42572 SWIGINTERN PyObject *IndexIVFScalarQuantizer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42574 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
42575 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVFScalarQuantizer, SWIG_NewClientData(obj));
42576 return SWIG_Py_Void();
42579 SWIGINTERN PyObject *_wrap_HNSW_assign_probas_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42580 PyObject *resultobj = 0;
42582 std::vector< double > *arg2 = (std::vector< double > *) 0 ;
42587 PyObject * obj0 = 0 ;
42588 PyObject * obj1 = 0 ;
42590 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_assign_probas_set",&obj0,&obj1)) SWIG_fail;
42591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42592 if (!SWIG_IsOK(res1)) {
42593 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_assign_probas_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
42596 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
42597 if (!SWIG_IsOK(res2)) {
42598 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_assign_probas_set" "', argument " "2"" of type '" "std::vector< double > *""'");
42600 arg2 =
reinterpret_cast< std::vector< double > *
>(argp2);
42601 if (arg1) (arg1)->assign_probas = *arg2;
42602 resultobj = SWIG_Py_Void();
42609 SWIGINTERN PyObject *_wrap_HNSW_assign_probas_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42610 PyObject *resultobj = 0;
42614 PyObject * obj0 = 0 ;
42615 std::vector< double > *result = 0 ;
42617 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_assign_probas_get",&obj0)) SWIG_fail;
42618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42619 if (!SWIG_IsOK(res1)) {
42620 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_assign_probas_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
42623 result = (std::vector< double > *)& ((arg1)->assign_probas);
42624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
42631 SWIGINTERN PyObject *_wrap_HNSW_cum_nneighbor_per_level_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42632 PyObject *resultobj = 0;
42634 std::vector< int > *arg2 = (std::vector< int > *) 0 ;
42639 PyObject * obj0 = 0 ;
42640 PyObject * obj1 = 0 ;
42642 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_cum_nneighbor_per_level_set",&obj0,&obj1)) SWIG_fail;
42643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42644 if (!SWIG_IsOK(res1)) {
42645 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_cum_nneighbor_per_level_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
42648 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
42649 if (!SWIG_IsOK(res2)) {
42650 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_cum_nneighbor_per_level_set" "', argument " "2"" of type '" "std::vector< int > *""'");
42652 arg2 =
reinterpret_cast< std::vector< int > *
>(argp2);
42653 if (arg1) (arg1)->cum_nneighbor_per_level = *arg2;
42654 resultobj = SWIG_Py_Void();
42661 SWIGINTERN PyObject *_wrap_HNSW_cum_nneighbor_per_level_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42662 PyObject *resultobj = 0;
42666 PyObject * obj0 = 0 ;
42667 std::vector< int > *result = 0 ;
42669 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_cum_nneighbor_per_level_get",&obj0)) SWIG_fail;
42670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42671 if (!SWIG_IsOK(res1)) {
42672 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_cum_nneighbor_per_level_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
42675 result = (std::vector< int > *)& ((arg1)->cum_nneighbor_per_level);
42676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
42683 SWIGINTERN PyObject *_wrap_HNSW_levels_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42684 PyObject *resultobj = 0;
42686 std::vector< int > *arg2 = (std::vector< int > *) 0 ;
42691 PyObject * obj0 = 0 ;
42692 PyObject * obj1 = 0 ;
42694 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_levels_set",&obj0,&obj1)) SWIG_fail;
42695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42696 if (!SWIG_IsOK(res1)) {
42697 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_levels_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
42700 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
42701 if (!SWIG_IsOK(res2)) {
42702 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_levels_set" "', argument " "2"" of type '" "std::vector< int > *""'");
42704 arg2 =
reinterpret_cast< std::vector< int > *
>(argp2);
42705 if (arg1) (arg1)->levels = *arg2;
42706 resultobj = SWIG_Py_Void();
42713 SWIGINTERN PyObject *_wrap_HNSW_levels_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42714 PyObject *resultobj = 0;
42718 PyObject * obj0 = 0 ;
42719 std::vector< int > *result = 0 ;
42721 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_levels_get",&obj0)) SWIG_fail;
42722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42723 if (!SWIG_IsOK(res1)) {
42724 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_levels_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
42727 result = (std::vector< int > *)& ((arg1)->levels);
42728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
42735 SWIGINTERN PyObject *_wrap_HNSW_offsets_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42736 PyObject *resultobj = 0;
42738 std::vector< size_t > *arg2 = (std::vector< size_t > *) 0 ;
42743 PyObject * obj0 = 0 ;
42744 PyObject * obj1 = 0 ;
42746 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_offsets_set",&obj0,&obj1)) SWIG_fail;
42747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42748 if (!SWIG_IsOK(res1)) {
42749 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_offsets_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
42752 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
42753 if (!SWIG_IsOK(res2)) {
42754 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_offsets_set" "', argument " "2"" of type '" "std::vector< size_t > *""'");
42756 arg2 =
reinterpret_cast< std::vector< size_t > *
>(argp2);
42757 if (arg1) (arg1)->offsets = *arg2;
42758 resultobj = SWIG_Py_Void();
42765 SWIGINTERN PyObject *_wrap_HNSW_offsets_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42766 PyObject *resultobj = 0;
42770 PyObject * obj0 = 0 ;
42771 std::vector< size_t > *result = 0 ;
42773 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_offsets_get",&obj0)) 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_offsets_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
42779 result = (std::vector< size_t > *)& ((arg1)->offsets);
42780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_long_t, 0 | 0 );
42787 SWIGINTERN PyObject *_wrap_HNSW_neighbors_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42788 PyObject *resultobj = 0;
42790 std::vector< faiss::HNSW::storage_idx_t > *arg2 = (std::vector< faiss::HNSW::storage_idx_t > *) 0 ;
42795 PyObject * obj0 = 0 ;
42796 PyObject * obj1 = 0 ;
42798 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_neighbors_set",&obj0,&obj1)) SWIG_fail;
42799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42800 if (!SWIG_IsOK(res1)) {
42801 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_neighbors_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
42804 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
42805 if (!SWIG_IsOK(res2)) {
42806 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_neighbors_set" "', argument " "2"" of type '" "std::vector< faiss::HNSW::storage_idx_t > *""'");
42808 arg2 =
reinterpret_cast< std::vector< faiss::HNSW::storage_idx_t > *
>(argp2);
42809 if (arg1) (arg1)->neighbors = *arg2;
42810 resultobj = SWIG_Py_Void();
42817 SWIGINTERN PyObject *_wrap_HNSW_neighbors_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42818 PyObject *resultobj = 0;
42822 PyObject * obj0 = 0 ;
42823 std::vector< faiss::HNSW::storage_idx_t > *result = 0 ;
42825 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_neighbors_get",&obj0)) SWIG_fail;
42826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42827 if (!SWIG_IsOK(res1)) {
42828 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_neighbors_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
42831 result = (std::vector< faiss::HNSW::storage_idx_t > *)& ((arg1)->neighbors);
42832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_t, 0 | 0 );
42839 SWIGINTERN PyObject *_wrap_HNSW_entry_point_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42840 PyObject *resultobj = 0;
42847 PyObject * obj0 = 0 ;
42848 PyObject * obj1 = 0 ;
42850 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_entry_point_set",&obj0,&obj1)) 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_entry_point_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
42856 ecode2 = SWIG_AsVal_int(obj1, &val2);
42857 if (!SWIG_IsOK(ecode2)) {
42858 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_entry_point_set" "', argument " "2"" of type '" "faiss::HNSW::storage_idx_t""'");
42861 if (arg1) (arg1)->entry_point = arg2;
42862 resultobj = SWIG_Py_Void();
42869 SWIGINTERN PyObject *_wrap_HNSW_entry_point_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42870 PyObject *resultobj = 0;
42874 PyObject * obj0 = 0 ;
42877 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_entry_point_get",&obj0)) SWIG_fail;
42878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42879 if (!SWIG_IsOK(res1)) {
42880 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_entry_point_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
42884 resultobj = SWIG_From_int(static_cast< int >(result));
42891 SWIGINTERN PyObject *_wrap_HNSW_rng_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42892 PyObject *resultobj = 0;
42899 PyObject * obj0 = 0 ;
42900 PyObject * obj1 = 0 ;
42902 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_rng_set",&obj0,&obj1)) SWIG_fail;
42903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42904 if (!SWIG_IsOK(res1)) {
42905 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_rng_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
42908 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
42909 if (!SWIG_IsOK(res2)) {
42910 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_rng_set" "', argument " "2"" of type '" "faiss::RandomGenerator *""'");
42913 if (arg1) (arg1)->rng = *arg2;
42914 resultobj = SWIG_Py_Void();
42921 SWIGINTERN PyObject *_wrap_HNSW_rng_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42922 PyObject *resultobj = 0;
42926 PyObject * obj0 = 0 ;
42929 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_rng_get",&obj0)) SWIG_fail;
42930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42931 if (!SWIG_IsOK(res1)) {
42932 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_rng_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
42936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RandomGenerator, 0 | 0 );
42943 SWIGINTERN PyObject *_wrap_HNSW_max_level_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42944 PyObject *resultobj = 0;
42951 PyObject * obj0 = 0 ;
42952 PyObject * obj1 = 0 ;
42954 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_max_level_set",&obj0,&obj1)) SWIG_fail;
42955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42956 if (!SWIG_IsOK(res1)) {
42957 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_max_level_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
42960 ecode2 = SWIG_AsVal_int(obj1, &val2);
42961 if (!SWIG_IsOK(ecode2)) {
42962 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_max_level_set" "', argument " "2"" of type '" "int""'");
42964 arg2 =
static_cast< int >(val2);
42965 if (arg1) (arg1)->max_level = arg2;
42966 resultobj = SWIG_Py_Void();
42973 SWIGINTERN PyObject *_wrap_HNSW_max_level_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42974 PyObject *resultobj = 0;
42978 PyObject * obj0 = 0 ;
42981 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_max_level_get",&obj0)) SWIG_fail;
42982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
42983 if (!SWIG_IsOK(res1)) {
42984 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_max_level_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
42987 result = (int) ((arg1)->max_level);
42988 resultobj = SWIG_From_int(static_cast< int >(result));
42995 SWIGINTERN PyObject *_wrap_HNSW_efConstruction_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
42996 PyObject *resultobj = 0;
43003 PyObject * obj0 = 0 ;
43004 PyObject * obj1 = 0 ;
43006 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_efConstruction_set",&obj0,&obj1)) SWIG_fail;
43007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43008 if (!SWIG_IsOK(res1)) {
43009 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_efConstruction_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
43012 ecode2 = SWIG_AsVal_int(obj1, &val2);
43013 if (!SWIG_IsOK(ecode2)) {
43014 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_efConstruction_set" "', argument " "2"" of type '" "int""'");
43016 arg2 =
static_cast< int >(val2);
43017 if (arg1) (arg1)->efConstruction = arg2;
43018 resultobj = SWIG_Py_Void();
43025 SWIGINTERN PyObject *_wrap_HNSW_efConstruction_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43026 PyObject *resultobj = 0;
43030 PyObject * obj0 = 0 ;
43033 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_efConstruction_get",&obj0)) SWIG_fail;
43034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43035 if (!SWIG_IsOK(res1)) {
43036 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_efConstruction_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
43039 result = (int) ((arg1)->efConstruction);
43040 resultobj = SWIG_From_int(static_cast< int >(result));
43047 SWIGINTERN PyObject *_wrap_HNSW_efSearch_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43048 PyObject *resultobj = 0;
43055 PyObject * obj0 = 0 ;
43056 PyObject * obj1 = 0 ;
43058 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_efSearch_set",&obj0,&obj1)) SWIG_fail;
43059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43060 if (!SWIG_IsOK(res1)) {
43061 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_efSearch_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
43064 ecode2 = SWIG_AsVal_int(obj1, &val2);
43065 if (!SWIG_IsOK(ecode2)) {
43066 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_efSearch_set" "', argument " "2"" of type '" "int""'");
43068 arg2 =
static_cast< int >(val2);
43069 if (arg1) (arg1)->efSearch = arg2;
43070 resultobj = SWIG_Py_Void();
43077 SWIGINTERN PyObject *_wrap_HNSW_efSearch_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43078 PyObject *resultobj = 0;
43082 PyObject * obj0 = 0 ;
43085 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_efSearch_get",&obj0)) SWIG_fail;
43086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43087 if (!SWIG_IsOK(res1)) {
43088 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_efSearch_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
43091 result = (int) ((arg1)->efSearch);
43092 resultobj = SWIG_From_int(static_cast< int >(result));
43099 SWIGINTERN PyObject *_wrap_HNSW_upper_beam_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43100 PyObject *resultobj = 0;
43107 PyObject * obj0 = 0 ;
43108 PyObject * obj1 = 0 ;
43110 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_upper_beam_set",&obj0,&obj1)) SWIG_fail;
43111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43112 if (!SWIG_IsOK(res1)) {
43113 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_upper_beam_set" "', argument " "1"" of type '" "faiss::HNSW *""'");
43116 ecode2 = SWIG_AsVal_int(obj1, &val2);
43117 if (!SWIG_IsOK(ecode2)) {
43118 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_upper_beam_set" "', argument " "2"" of type '" "int""'");
43120 arg2 =
static_cast< int >(val2);
43121 if (arg1) (arg1)->upper_beam = arg2;
43122 resultobj = SWIG_Py_Void();
43129 SWIGINTERN PyObject *_wrap_HNSW_upper_beam_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43130 PyObject *resultobj = 0;
43134 PyObject * obj0 = 0 ;
43137 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_upper_beam_get",&obj0)) SWIG_fail;
43138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43139 if (!SWIG_IsOK(res1)) {
43140 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_upper_beam_get" "', argument " "1"" of type '" "faiss::HNSW *""'");
43143 result = (int) ((arg1)->upper_beam);
43144 resultobj = SWIG_From_int(static_cast< int >(result));
43151 SWIGINTERN PyObject *_wrap_HNSW_set_default_probas(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43152 PyObject *resultobj = 0;
43162 PyObject * obj0 = 0 ;
43163 PyObject * obj1 = 0 ;
43164 PyObject * obj2 = 0 ;
43166 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HNSW_set_default_probas",&obj0,&obj1,&obj2)) SWIG_fail;
43167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43168 if (!SWIG_IsOK(res1)) {
43169 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_set_default_probas" "', argument " "1"" of type '" "faiss::HNSW *""'");
43172 ecode2 = SWIG_AsVal_int(obj1, &val2);
43173 if (!SWIG_IsOK(ecode2)) {
43174 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_set_default_probas" "', argument " "2"" of type '" "int""'");
43176 arg2 =
static_cast< int >(val2);
43177 ecode3 = SWIG_AsVal_float(obj2, &val3);
43178 if (!SWIG_IsOK(ecode3)) {
43179 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_set_default_probas" "', argument " "3"" of type '" "float""'");
43181 arg3 =
static_cast< float >(val3);
43183 Py_BEGIN_ALLOW_THREADS
43185 (arg1)->set_default_probas(arg2,arg3);
43187 PyEval_RestoreThread(_save);
43188 PyErr_SetString(PyExc_RuntimeError, e.
what());
43191 Py_END_ALLOW_THREADS
43193 resultobj = SWIG_Py_Void();
43200 SWIGINTERN PyObject *_wrap_HNSW_set_nb_neighbors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43201 PyObject *resultobj = 0;
43211 PyObject * obj0 = 0 ;
43212 PyObject * obj1 = 0 ;
43213 PyObject * obj2 = 0 ;
43215 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HNSW_set_nb_neighbors",&obj0,&obj1,&obj2)) SWIG_fail;
43216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43217 if (!SWIG_IsOK(res1)) {
43218 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_set_nb_neighbors" "', argument " "1"" of type '" "faiss::HNSW *""'");
43221 ecode2 = SWIG_AsVal_int(obj1, &val2);
43222 if (!SWIG_IsOK(ecode2)) {
43223 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_set_nb_neighbors" "', argument " "2"" of type '" "int""'");
43225 arg2 =
static_cast< int >(val2);
43226 ecode3 = SWIG_AsVal_int(obj2, &val3);
43227 if (!SWIG_IsOK(ecode3)) {
43228 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_set_nb_neighbors" "', argument " "3"" of type '" "int""'");
43230 arg3 =
static_cast< int >(val3);
43232 Py_BEGIN_ALLOW_THREADS
43234 (arg1)->set_nb_neighbors(arg2,arg3);
43236 PyEval_RestoreThread(_save);
43237 PyErr_SetString(PyExc_RuntimeError, e.
what());
43240 Py_END_ALLOW_THREADS
43242 resultobj = SWIG_Py_Void();
43249 SWIGINTERN PyObject *_wrap_HNSW_nb_neighbors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43250 PyObject *resultobj = 0;
43257 PyObject * obj0 = 0 ;
43258 PyObject * obj1 = 0 ;
43261 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_nb_neighbors",&obj0,&obj1)) SWIG_fail;
43262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43263 if (!SWIG_IsOK(res1)) {
43264 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_nb_neighbors" "', argument " "1"" of type '" "faiss::HNSW const *""'");
43267 ecode2 = SWIG_AsVal_int(obj1, &val2);
43268 if (!SWIG_IsOK(ecode2)) {
43269 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_nb_neighbors" "', argument " "2"" of type '" "int""'");
43271 arg2 =
static_cast< int >(val2);
43273 Py_BEGIN_ALLOW_THREADS
43275 result = (int)((
faiss::HNSW const *)arg1)->nb_neighbors(arg2);
43277 PyEval_RestoreThread(_save);
43278 PyErr_SetString(PyExc_RuntimeError, e.
what());
43281 Py_END_ALLOW_THREADS
43283 resultobj = SWIG_From_int(static_cast< int >(result));
43290 SWIGINTERN PyObject *_wrap_HNSW_cum_nb_neighbors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43291 PyObject *resultobj = 0;
43298 PyObject * obj0 = 0 ;
43299 PyObject * obj1 = 0 ;
43302 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_cum_nb_neighbors",&obj0,&obj1)) SWIG_fail;
43303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43304 if (!SWIG_IsOK(res1)) {
43305 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_cum_nb_neighbors" "', argument " "1"" of type '" "faiss::HNSW const *""'");
43308 ecode2 = SWIG_AsVal_int(obj1, &val2);
43309 if (!SWIG_IsOK(ecode2)) {
43310 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_cum_nb_neighbors" "', argument " "2"" of type '" "int""'");
43312 arg2 =
static_cast< int >(val2);
43314 Py_BEGIN_ALLOW_THREADS
43316 result = (int)((
faiss::HNSW const *)arg1)->cum_nb_neighbors(arg2);
43318 PyEval_RestoreThread(_save);
43319 PyErr_SetString(PyExc_RuntimeError, e.
what());
43322 Py_END_ALLOW_THREADS
43324 resultobj = SWIG_From_int(static_cast< int >(result));
43331 SWIGINTERN PyObject *_wrap_HNSW_neighbor_range(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43332 PyObject *resultobj = 0;
43336 size_t *arg4 = (
size_t *) 0 ;
43337 size_t *arg5 = (
size_t *) 0 ;
43348 PyObject * obj0 = 0 ;
43349 PyObject * obj1 = 0 ;
43350 PyObject * obj2 = 0 ;
43351 PyObject * obj3 = 0 ;
43352 PyObject * obj4 = 0 ;
43354 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:HNSW_neighbor_range",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
43355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43356 if (!SWIG_IsOK(res1)) {
43357 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_neighbor_range" "', argument " "1"" of type '" "faiss::HNSW const *""'");
43360 ecode2 = SWIG_AsVal_long(obj1, &val2);
43361 if (!SWIG_IsOK(ecode2)) {
43362 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_neighbor_range" "', argument " "2"" of type '" "faiss::HNSW::idx_t""'");
43365 ecode3 = SWIG_AsVal_int(obj2, &val3);
43366 if (!SWIG_IsOK(ecode3)) {
43367 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_neighbor_range" "', argument " "3"" of type '" "int""'");
43369 arg3 =
static_cast< int >(val3);
43370 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_long, 0 | 0 );
43371 if (!SWIG_IsOK(res4)) {
43372 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "HNSW_neighbor_range" "', argument " "4"" of type '" "size_t *""'");
43374 arg4 =
reinterpret_cast< size_t *
>(argp4);
43375 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_long, 0 | 0 );
43376 if (!SWIG_IsOK(res5)) {
43377 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "HNSW_neighbor_range" "', argument " "5"" of type '" "size_t *""'");
43379 arg5 =
reinterpret_cast< size_t *
>(argp5);
43381 Py_BEGIN_ALLOW_THREADS
43383 ((
faiss::HNSW const *)arg1)->neighbor_range(arg2,arg3,arg4,arg5);
43385 PyEval_RestoreThread(_save);
43386 PyErr_SetString(PyExc_RuntimeError, e.
what());
43389 Py_END_ALLOW_THREADS
43391 resultobj = SWIG_Py_Void();
43398 SWIGINTERN PyObject *_wrap_new_HNSW__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43399 PyObject *resultobj = 0;
43403 PyObject * obj0 = 0 ;
43406 if (!PyArg_ParseTuple(args,(
char *)
"O:new_HNSW",&obj0)) SWIG_fail;
43407 ecode1 = SWIG_AsVal_int(obj0, &val1);
43408 if (!SWIG_IsOK(ecode1)) {
43409 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_HNSW" "', argument " "1"" of type '" "int""'");
43411 arg1 =
static_cast< int >(val1);
43413 Py_BEGIN_ALLOW_THREADS
43417 PyEval_RestoreThread(_save);
43418 PyErr_SetString(PyExc_RuntimeError, e.
what());
43421 Py_END_ALLOW_THREADS
43423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW, SWIG_POINTER_NEW | 0 );
43430 SWIGINTERN PyObject *_wrap_new_HNSW__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43431 PyObject *resultobj = 0;
43434 if (!PyArg_ParseTuple(args,(
char *)
":new_HNSW")) SWIG_fail;
43436 Py_BEGIN_ALLOW_THREADS
43440 PyEval_RestoreThread(_save);
43441 PyErr_SetString(PyExc_RuntimeError, e.
what());
43444 Py_END_ALLOW_THREADS
43446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW, SWIG_POINTER_NEW | 0 );
43453 SWIGINTERN PyObject *_wrap_new_HNSW(PyObject *
self, PyObject *args) {
43455 PyObject *argv[2] = {
43460 if (!PyTuple_Check(args)) SWIG_fail;
43461 argc = args ? PyObject_Length(args) : 0;
43462 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
43463 argv[ii] = PyTuple_GET_ITEM(args,ii);
43466 return _wrap_new_HNSW__SWIG_1(
self, args);
43471 int res = SWIG_AsVal_int(argv[0], NULL);
43472 _v = SWIG_CheckState(res);
43475 return _wrap_new_HNSW__SWIG_0(
self, args);
43480 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_HNSW'.\n"
43481 " Possible C/C++ prototypes are:\n"
43482 " faiss::HNSW::HNSW(int)\n"
43483 " faiss::HNSW::HNSW()\n");
43488 SWIGINTERN PyObject *_wrap_HNSW_random_level(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43489 PyObject *resultobj = 0;
43493 PyObject * obj0 = 0 ;
43496 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_random_level",&obj0)) SWIG_fail;
43497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43498 if (!SWIG_IsOK(res1)) {
43499 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_random_level" "', argument " "1"" of type '" "faiss::HNSW *""'");
43503 Py_BEGIN_ALLOW_THREADS
43507 PyEval_RestoreThread(_save);
43508 PyErr_SetString(PyExc_RuntimeError, e.
what());
43511 Py_END_ALLOW_THREADS
43513 resultobj = SWIG_From_int(static_cast< int >(result));
43520 SWIGINTERN PyObject *_wrap_HNSW_fill_with_random_links(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43521 PyObject *resultobj = 0;
43528 PyObject * obj0 = 0 ;
43529 PyObject * obj1 = 0 ;
43531 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_fill_with_random_links",&obj0,&obj1)) SWIG_fail;
43532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43533 if (!SWIG_IsOK(res1)) {
43534 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_fill_with_random_links" "', argument " "1"" of type '" "faiss::HNSW *""'");
43537 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
43538 if (!SWIG_IsOK(ecode2)) {
43539 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_fill_with_random_links" "', argument " "2"" of type '" "size_t""'");
43541 arg2 =
static_cast< size_t >(val2);
43543 Py_BEGIN_ALLOW_THREADS
43545 (arg1)->fill_with_random_links(arg2);
43547 PyEval_RestoreThread(_save);
43548 PyErr_SetString(PyExc_RuntimeError, e.
what());
43551 Py_END_ALLOW_THREADS
43553 resultobj = SWIG_Py_Void();
43560 SWIGINTERN PyObject *_wrap_HNSW_add_links_starting_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43561 PyObject *resultobj = 0;
43568 omp_lock_t *arg7 = (omp_lock_t *) 0 ;
43586 PyObject * obj0 = 0 ;
43587 PyObject * obj1 = 0 ;
43588 PyObject * obj2 = 0 ;
43589 PyObject * obj3 = 0 ;
43590 PyObject * obj4 = 0 ;
43591 PyObject * obj5 = 0 ;
43592 PyObject * obj6 = 0 ;
43593 PyObject * obj7 = 0 ;
43595 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:HNSW_add_links_starting_from",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43597 if (!SWIG_IsOK(res1)) {
43598 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_add_links_starting_from" "', argument " "1"" of type '" "faiss::HNSW *""'");
43601 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 );
43602 if (!SWIG_IsOK(res2)) {
43603 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_add_links_starting_from" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
43606 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_add_links_starting_from" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
43609 ecode3 = SWIG_AsVal_int(obj2, &val3);
43610 if (!SWIG_IsOK(ecode3)) {
43611 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_add_links_starting_from" "', argument " "3"" of type '" "faiss::HNSW::storage_idx_t""'");
43614 ecode4 = SWIG_AsVal_int(obj3, &val4);
43615 if (!SWIG_IsOK(ecode4)) {
43616 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "HNSW_add_links_starting_from" "', argument " "4"" of type '" "faiss::HNSW::storage_idx_t""'");
43619 ecode5 = SWIG_AsVal_float(obj4, &val5);
43620 if (!SWIG_IsOK(ecode5)) {
43621 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "HNSW_add_links_starting_from" "', argument " "5"" of type '" "float""'");
43623 arg5 =
static_cast< float >(val5);
43624 ecode6 = SWIG_AsVal_int(obj5, &val6);
43625 if (!SWIG_IsOK(ecode6)) {
43626 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "HNSW_add_links_starting_from" "', argument " "6"" of type '" "int""'");
43628 arg6 =
static_cast< int >(val6);
43629 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_omp_lock_t, 0 | 0 );
43630 if (!SWIG_IsOK(res7)) {
43631 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "HNSW_add_links_starting_from" "', argument " "7"" of type '" "omp_lock_t *""'");
43633 arg7 =
reinterpret_cast< omp_lock_t *
>(argp7);
43634 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_faiss__VisitedTable, 0 );
43635 if (!SWIG_IsOK(res8)) {
43636 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "HNSW_add_links_starting_from" "', argument " "8"" of type '" "faiss::VisitedTable &""'");
43639 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_add_links_starting_from" "', argument " "8"" of type '" "faiss::VisitedTable &""'");
43643 Py_BEGIN_ALLOW_THREADS
43645 (arg1)->add_links_starting_from(*arg2,arg3,arg4,arg5,arg6,arg7,*arg8);
43647 PyEval_RestoreThread(_save);
43648 PyErr_SetString(PyExc_RuntimeError, e.
what());
43651 Py_END_ALLOW_THREADS
43653 resultobj = SWIG_Py_Void();
43660 SWIGINTERN PyObject *_wrap_HNSW_add_with_locks(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43661 PyObject *resultobj = 0;
43666 std::vector< omp_lock_t > *arg5 = 0 ;
43680 PyObject * obj0 = 0 ;
43681 PyObject * obj1 = 0 ;
43682 PyObject * obj2 = 0 ;
43683 PyObject * obj3 = 0 ;
43684 PyObject * obj4 = 0 ;
43685 PyObject * obj5 = 0 ;
43687 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:HNSW_add_with_locks",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
43688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43689 if (!SWIG_IsOK(res1)) {
43690 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_add_with_locks" "', argument " "1"" of type '" "faiss::HNSW *""'");
43693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 );
43694 if (!SWIG_IsOK(res2)) {
43695 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_add_with_locks" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
43698 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_add_with_locks" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
43701 ecode3 = SWIG_AsVal_int(obj2, &val3);
43702 if (!SWIG_IsOK(ecode3)) {
43703 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_add_with_locks" "', argument " "3"" of type '" "int""'");
43705 arg3 =
static_cast< int >(val3);
43706 ecode4 = SWIG_AsVal_int(obj3, &val4);
43707 if (!SWIG_IsOK(ecode4)) {
43708 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "HNSW_add_with_locks" "', argument " "4"" of type '" "int""'");
43710 arg4 =
static_cast< int >(val4);
43711 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_std__vectorT_omp_lock_t_t, 0 );
43712 if (!SWIG_IsOK(res5)) {
43713 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "HNSW_add_with_locks" "', argument " "5"" of type '" "std::vector< omp_lock_t > &""'");
43716 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_add_with_locks" "', argument " "5"" of type '" "std::vector< omp_lock_t > &""'");
43718 arg5 =
reinterpret_cast< std::vector< omp_lock_t > *
>(argp5);
43719 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_faiss__VisitedTable, 0 );
43720 if (!SWIG_IsOK(res6)) {
43721 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "HNSW_add_with_locks" "', argument " "6"" of type '" "faiss::VisitedTable &""'");
43724 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_add_with_locks" "', argument " "6"" of type '" "faiss::VisitedTable &""'");
43728 Py_BEGIN_ALLOW_THREADS
43730 (arg1)->add_with_locks(*arg2,arg3,arg4,*arg5,*arg6);
43732 PyEval_RestoreThread(_save);
43733 PyErr_SetString(PyExc_RuntimeError, e.
what());
43736 Py_END_ALLOW_THREADS
43738 resultobj = SWIG_Py_Void();
43745 SWIGINTERN PyObject *_wrap_HNSW_search_from_candidates__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43746 PyObject *resultobj = 0;
43751 float *arg5 = (
float *) 0 ;
43774 PyObject * obj0 = 0 ;
43775 PyObject * obj1 = 0 ;
43776 PyObject * obj2 = 0 ;
43777 PyObject * obj3 = 0 ;
43778 PyObject * obj4 = 0 ;
43779 PyObject * obj5 = 0 ;
43780 PyObject * obj6 = 0 ;
43781 PyObject * obj7 = 0 ;
43782 PyObject * obj8 = 0 ;
43785 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOO:HNSW_search_from_candidates",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43787 if (!SWIG_IsOK(res1)) {
43788 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_search_from_candidates" "', argument " "1"" of type '" "faiss::HNSW const *""'");
43791 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 );
43792 if (!SWIG_IsOK(res2)) {
43793 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_search_from_candidates" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
43796 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from_candidates" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
43799 ecode3 = SWIG_AsVal_int(obj2, &val3);
43800 if (!SWIG_IsOK(ecode3)) {
43801 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_search_from_candidates" "', argument " "3"" of type '" "int""'");
43803 arg3 =
static_cast< int >(val3);
43804 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
43805 if (!SWIG_IsOK(res4)) {
43806 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "HNSW_search_from_candidates" "', argument " "4"" of type '" "faiss::HNSW::idx_t *""'");
43809 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
43810 if (!SWIG_IsOK(res5)) {
43811 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "HNSW_search_from_candidates" "', argument " "5"" of type '" "float *""'");
43813 arg5 =
reinterpret_cast< float *
>(argp5);
43814 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_faiss__HNSW__MinimaxHeap, 0 );
43815 if (!SWIG_IsOK(res6)) {
43816 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "HNSW_search_from_candidates" "', argument " "6"" of type '" "faiss::HNSW::MinimaxHeap &""'");
43819 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from_candidates" "', argument " "6"" of type '" "faiss::HNSW::MinimaxHeap &""'");
43822 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_faiss__VisitedTable, 0 );
43823 if (!SWIG_IsOK(res7)) {
43824 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "HNSW_search_from_candidates" "', argument " "7"" of type '" "faiss::VisitedTable &""'");
43827 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from_candidates" "', argument " "7"" of type '" "faiss::VisitedTable &""'");
43830 ecode8 = SWIG_AsVal_int(obj7, &val8);
43831 if (!SWIG_IsOK(ecode8)) {
43832 SWIG_exception_fail(SWIG_ArgError(ecode8),
"in method '" "HNSW_search_from_candidates" "', argument " "8"" of type '" "int""'");
43834 arg8 =
static_cast< int >(val8);
43835 ecode9 = SWIG_AsVal_int(obj8, &val9);
43836 if (!SWIG_IsOK(ecode9)) {
43837 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "HNSW_search_from_candidates" "', argument " "9"" of type '" "int""'");
43839 arg9 =
static_cast< int >(val9);
43841 Py_BEGIN_ALLOW_THREADS
43843 result = (int)((
faiss::HNSW const *)arg1)->search_from_candidates(*arg2,arg3,arg4,arg5,*arg6,*arg7,arg8,arg9);
43845 PyEval_RestoreThread(_save);
43846 PyErr_SetString(PyExc_RuntimeError, e.
what());
43849 Py_END_ALLOW_THREADS
43851 resultobj = SWIG_From_int(static_cast< int >(result));
43858 SWIGINTERN PyObject *_wrap_HNSW_search_from_candidates__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
43859 PyObject *resultobj = 0;
43864 float *arg5 = (
float *) 0 ;
43884 PyObject * obj0 = 0 ;
43885 PyObject * obj1 = 0 ;
43886 PyObject * obj2 = 0 ;
43887 PyObject * obj3 = 0 ;
43888 PyObject * obj4 = 0 ;
43889 PyObject * obj5 = 0 ;
43890 PyObject * obj6 = 0 ;
43891 PyObject * obj7 = 0 ;
43894 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:HNSW_search_from_candidates",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
43896 if (!SWIG_IsOK(res1)) {
43897 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_search_from_candidates" "', argument " "1"" of type '" "faiss::HNSW const *""'");
43900 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 );
43901 if (!SWIG_IsOK(res2)) {
43902 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_search_from_candidates" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
43905 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from_candidates" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
43908 ecode3 = SWIG_AsVal_int(obj2, &val3);
43909 if (!SWIG_IsOK(ecode3)) {
43910 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_search_from_candidates" "', argument " "3"" of type '" "int""'");
43912 arg3 =
static_cast< int >(val3);
43913 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
43914 if (!SWIG_IsOK(res4)) {
43915 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "HNSW_search_from_candidates" "', argument " "4"" of type '" "faiss::HNSW::idx_t *""'");
43918 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
43919 if (!SWIG_IsOK(res5)) {
43920 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "HNSW_search_from_candidates" "', argument " "5"" of type '" "float *""'");
43922 arg5 =
reinterpret_cast< float *
>(argp5);
43923 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_faiss__HNSW__MinimaxHeap, 0 );
43924 if (!SWIG_IsOK(res6)) {
43925 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "HNSW_search_from_candidates" "', argument " "6"" of type '" "faiss::HNSW::MinimaxHeap &""'");
43928 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from_candidates" "', argument " "6"" of type '" "faiss::HNSW::MinimaxHeap &""'");
43931 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_faiss__VisitedTable, 0 );
43932 if (!SWIG_IsOK(res7)) {
43933 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "HNSW_search_from_candidates" "', argument " "7"" of type '" "faiss::VisitedTable &""'");
43936 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from_candidates" "', argument " "7"" of type '" "faiss::VisitedTable &""'");
43939 ecode8 = SWIG_AsVal_int(obj7, &val8);
43940 if (!SWIG_IsOK(ecode8)) {
43941 SWIG_exception_fail(SWIG_ArgError(ecode8),
"in method '" "HNSW_search_from_candidates" "', argument " "8"" of type '" "int""'");
43943 arg8 =
static_cast< int >(val8);
43945 Py_BEGIN_ALLOW_THREADS
43947 result = (int)((
faiss::HNSW const *)arg1)->search_from_candidates(*arg2,arg3,arg4,arg5,*arg6,*arg7,arg8);
43949 PyEval_RestoreThread(_save);
43950 PyErr_SetString(PyExc_RuntimeError, e.
what());
43953 Py_END_ALLOW_THREADS
43955 resultobj = SWIG_From_int(static_cast< int >(result));
43962 SWIGINTERN PyObject *_wrap_HNSW_search_from_candidates(PyObject *
self, PyObject *args) {
43964 PyObject *argv[10] = {
43969 if (!PyTuple_Check(args)) SWIG_fail;
43970 argc = args ? PyObject_Length(args) : 0;
43971 for (ii = 0; (ii < 9) && (ii < argc); ii++) {
43972 argv[ii] = PyTuple_GET_ITEM(args,ii);
43977 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HNSW, 0);
43978 _v = SWIG_CheckState(res);
43981 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0);
43982 _v = SWIG_CheckState(res);
43985 int res = SWIG_AsVal_int(argv[2], NULL);
43986 _v = SWIG_CheckState(res);
43990 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
43991 _v = SWIG_CheckState(res);
43994 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
43995 _v = SWIG_CheckState(res);
43998 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HNSW__MinimaxHeap, 0);
43999 _v = SWIG_CheckState(res);
44002 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_faiss__VisitedTable, 0);
44003 _v = SWIG_CheckState(res);
44006 int res = SWIG_AsVal_int(argv[7], NULL);
44007 _v = SWIG_CheckState(res);
44010 return _wrap_HNSW_search_from_candidates__SWIG_1(
self, args);
44023 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HNSW, 0);
44024 _v = SWIG_CheckState(res);
44027 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0);
44028 _v = SWIG_CheckState(res);
44031 int res = SWIG_AsVal_int(argv[2], NULL);
44032 _v = SWIG_CheckState(res);
44036 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
44037 _v = SWIG_CheckState(res);
44040 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
44041 _v = SWIG_CheckState(res);
44044 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_faiss__HNSW__MinimaxHeap, 0);
44045 _v = SWIG_CheckState(res);
44048 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_faiss__VisitedTable, 0);
44049 _v = SWIG_CheckState(res);
44052 int res = SWIG_AsVal_int(argv[7], NULL);
44053 _v = SWIG_CheckState(res);
44057 int res = SWIG_AsVal_int(argv[8], NULL);
44058 _v = SWIG_CheckState(res);
44061 return _wrap_HNSW_search_from_candidates__SWIG_0(
self, args);
44074 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'HNSW_search_from_candidates'.\n"
44075 " Possible C/C++ prototypes are:\n"
44076 " faiss::HNSW::search_from_candidates(faiss::HNSW::DistanceComputer &,int,faiss::HNSW::idx_t *,float *,faiss::HNSW::MinimaxHeap &,faiss::VisitedTable &,int,int) const\n"
44077 " faiss::HNSW::search_from_candidates(faiss::HNSW::DistanceComputer &,int,faiss::HNSW::idx_t *,float *,faiss::HNSW::MinimaxHeap &,faiss::VisitedTable &,int) const\n");
44082 SWIGINTERN PyObject *_wrap_HNSW_search_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44083 PyObject *resultobj = 0;
44085 faiss::HNSW::Node *arg2 = 0 ;
44099 PyObject * obj0 = 0 ;
44100 PyObject * obj1 = 0 ;
44101 PyObject * obj2 = 0 ;
44102 PyObject * obj3 = 0 ;
44103 PyObject * obj4 = 0 ;
44104 std::priority_queue< faiss::HNSW::Node > result;
44106 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:HNSW_search_from",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
44107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
44108 if (!SWIG_IsOK(res1)) {
44109 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_search_from" "', argument " "1"" of type '" "faiss::HNSW const *""'");
44112 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__pairT_float_int_t, 0 | 0);
44113 if (!SWIG_IsOK(res2)) {
44114 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_search_from" "', argument " "2"" of type '" "faiss::HNSW::Node const &""'");
44117 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from" "', argument " "2"" of type '" "faiss::HNSW::Node const &""'");
44119 arg2 =
reinterpret_cast< faiss::HNSW::Node *
>(argp2);
44120 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 );
44121 if (!SWIG_IsOK(res3)) {
44122 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "HNSW_search_from" "', argument " "3"" of type '" "faiss::HNSW::DistanceComputer &""'");
44125 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search_from" "', argument " "3"" of type '" "faiss::HNSW::DistanceComputer &""'");
44128 ecode4 = SWIG_AsVal_int(obj3, &val4);
44129 if (!SWIG_IsOK(ecode4)) {
44130 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "HNSW_search_from" "', argument " "4"" of type '" "int""'");
44132 arg4 =
static_cast< int >(val4);
44133 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
44134 if (!SWIG_IsOK(res5)) {
44135 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "HNSW_search_from" "', argument " "5"" of type '" "faiss::VisitedTable *""'");
44139 Py_BEGIN_ALLOW_THREADS
44141 result = ((
faiss::HNSW const *)arg1)->search_from((faiss::HNSW::Node
const &)*arg2,*arg3,arg4,arg5);
44143 PyEval_RestoreThread(_save);
44144 PyErr_SetString(PyExc_RuntimeError, e.
what());
44147 Py_END_ALLOW_THREADS
44149 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 );
44156 SWIGINTERN PyObject *_wrap_HNSW_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44157 PyObject *resultobj = 0;
44162 float *arg5 = (
float *) 0 ;
44176 PyObject * obj0 = 0 ;
44177 PyObject * obj1 = 0 ;
44178 PyObject * obj2 = 0 ;
44179 PyObject * obj3 = 0 ;
44180 PyObject * obj4 = 0 ;
44181 PyObject * obj5 = 0 ;
44183 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:HNSW_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
44184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
44185 if (!SWIG_IsOK(res1)) {
44186 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_search" "', argument " "1"" of type '" "faiss::HNSW const *""'");
44189 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 );
44190 if (!SWIG_IsOK(res2)) {
44191 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_search" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
44194 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search" "', argument " "2"" of type '" "faiss::HNSW::DistanceComputer &""'");
44197 ecode3 = SWIG_AsVal_int(obj2, &val3);
44198 if (!SWIG_IsOK(ecode3)) {
44199 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_search" "', argument " "3"" of type '" "int""'");
44201 arg3 =
static_cast< int >(val3);
44202 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
44203 if (!SWIG_IsOK(res4)) {
44204 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "HNSW_search" "', argument " "4"" of type '" "faiss::HNSW::idx_t *""'");
44207 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
44208 if (!SWIG_IsOK(res5)) {
44209 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "HNSW_search" "', argument " "5"" of type '" "float *""'");
44211 arg5 =
reinterpret_cast< float *
>(argp5);
44212 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_faiss__VisitedTable, 0 );
44213 if (!SWIG_IsOK(res6)) {
44214 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "HNSW_search" "', argument " "6"" of type '" "faiss::VisitedTable &""'");
44217 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_search" "', argument " "6"" of type '" "faiss::VisitedTable &""'");
44221 Py_BEGIN_ALLOW_THREADS
44223 ((
faiss::HNSW const *)arg1)->search(*arg2,arg3,arg4,arg5,*arg6);
44225 PyEval_RestoreThread(_save);
44226 PyErr_SetString(PyExc_RuntimeError, e.
what());
44229 Py_END_ALLOW_THREADS
44231 resultobj = SWIG_Py_Void();
44238 SWIGINTERN PyObject *_wrap_HNSW_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44239 PyObject *resultobj = 0;
44243 PyObject * obj0 = 0 ;
44245 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSW_reset",&obj0)) SWIG_fail;
44246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
44247 if (!SWIG_IsOK(res1)) {
44248 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_reset" "', argument " "1"" of type '" "faiss::HNSW *""'");
44252 Py_BEGIN_ALLOW_THREADS
44256 PyEval_RestoreThread(_save);
44257 PyErr_SetString(PyExc_RuntimeError, e.
what());
44260 Py_END_ALLOW_THREADS
44262 resultobj = SWIG_Py_Void();
44269 SWIGINTERN PyObject *_wrap_HNSW_clear_neighbor_tables(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44270 PyObject *resultobj = 0;
44277 PyObject * obj0 = 0 ;
44278 PyObject * obj1 = 0 ;
44280 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_clear_neighbor_tables",&obj0,&obj1)) SWIG_fail;
44281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
44282 if (!SWIG_IsOK(res1)) {
44283 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_clear_neighbor_tables" "', argument " "1"" of type '" "faiss::HNSW *""'");
44286 ecode2 = SWIG_AsVal_int(obj1, &val2);
44287 if (!SWIG_IsOK(ecode2)) {
44288 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_clear_neighbor_tables" "', argument " "2"" of type '" "int""'");
44290 arg2 =
static_cast< int >(val2);
44292 Py_BEGIN_ALLOW_THREADS
44294 (arg1)->clear_neighbor_tables(arg2);
44296 PyEval_RestoreThread(_save);
44297 PyErr_SetString(PyExc_RuntimeError, e.
what());
44300 Py_END_ALLOW_THREADS
44302 resultobj = SWIG_Py_Void();
44309 SWIGINTERN PyObject *_wrap_HNSW_print_neighbor_stats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44310 PyObject *resultobj = 0;
44317 PyObject * obj0 = 0 ;
44318 PyObject * obj1 = 0 ;
44320 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_print_neighbor_stats",&obj0,&obj1)) SWIG_fail;
44321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
44322 if (!SWIG_IsOK(res1)) {
44323 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_print_neighbor_stats" "', argument " "1"" of type '" "faiss::HNSW const *""'");
44326 ecode2 = SWIG_AsVal_int(obj1, &val2);
44327 if (!SWIG_IsOK(ecode2)) {
44328 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_print_neighbor_stats" "', argument " "2"" of type '" "int""'");
44330 arg2 =
static_cast< int >(val2);
44332 Py_BEGIN_ALLOW_THREADS
44334 ((
faiss::HNSW const *)arg1)->print_neighbor_stats(arg2);
44336 PyEval_RestoreThread(_save);
44337 PyErr_SetString(PyExc_RuntimeError, e.
what());
44340 Py_END_ALLOW_THREADS
44342 resultobj = SWIG_Py_Void();
44349 SWIGINTERN PyObject *_wrap_HNSW_prepare_level_tab__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44350 PyObject *resultobj = 0;
44360 PyObject * obj0 = 0 ;
44361 PyObject * obj1 = 0 ;
44362 PyObject * obj2 = 0 ;
44365 if (!PyArg_ParseTuple(args,(
char *)
"OOO:HNSW_prepare_level_tab",&obj0,&obj1,&obj2)) SWIG_fail;
44366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
44367 if (!SWIG_IsOK(res1)) {
44368 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_prepare_level_tab" "', argument " "1"" of type '" "faiss::HNSW *""'");
44371 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44372 if (!SWIG_IsOK(ecode2)) {
44373 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_prepare_level_tab" "', argument " "2"" of type '" "size_t""'");
44375 arg2 =
static_cast< size_t >(val2);
44376 ecode3 = SWIG_AsVal_bool(obj2, &val3);
44377 if (!SWIG_IsOK(ecode3)) {
44378 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "HNSW_prepare_level_tab" "', argument " "3"" of type '" "bool""'");
44380 arg3 =
static_cast< bool >(val3);
44382 Py_BEGIN_ALLOW_THREADS
44384 result = (int)(arg1)->prepare_level_tab(arg2,arg3);
44386 PyEval_RestoreThread(_save);
44387 PyErr_SetString(PyExc_RuntimeError, e.
what());
44390 Py_END_ALLOW_THREADS
44392 resultobj = SWIG_From_int(static_cast< int >(result));
44399 SWIGINTERN PyObject *_wrap_HNSW_prepare_level_tab__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44400 PyObject *resultobj = 0;
44407 PyObject * obj0 = 0 ;
44408 PyObject * obj1 = 0 ;
44411 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSW_prepare_level_tab",&obj0,&obj1)) SWIG_fail;
44412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
44413 if (!SWIG_IsOK(res1)) {
44414 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_prepare_level_tab" "', argument " "1"" of type '" "faiss::HNSW *""'");
44417 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44418 if (!SWIG_IsOK(ecode2)) {
44419 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSW_prepare_level_tab" "', argument " "2"" of type '" "size_t""'");
44421 arg2 =
static_cast< size_t >(val2);
44423 Py_BEGIN_ALLOW_THREADS
44425 result = (int)(arg1)->prepare_level_tab(arg2);
44427 PyEval_RestoreThread(_save);
44428 PyErr_SetString(PyExc_RuntimeError, e.
what());
44431 Py_END_ALLOW_THREADS
44433 resultobj = SWIG_From_int(static_cast< int >(result));
44440 SWIGINTERN PyObject *_wrap_HNSW_prepare_level_tab(PyObject *
self, PyObject *args) {
44442 PyObject *argv[4] = {
44447 if (!PyTuple_Check(args)) SWIG_fail;
44448 argc = args ? PyObject_Length(args) : 0;
44449 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
44450 argv[ii] = PyTuple_GET_ITEM(args,ii);
44455 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HNSW, 0);
44456 _v = SWIG_CheckState(res);
44459 int res = SWIG_AsVal_size_t(argv[1], NULL);
44460 _v = SWIG_CheckState(res);
44463 return _wrap_HNSW_prepare_level_tab__SWIG_1(
self, args);
44470 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HNSW, 0);
44471 _v = SWIG_CheckState(res);
44474 int res = SWIG_AsVal_size_t(argv[1], NULL);
44475 _v = SWIG_CheckState(res);
44479 int res = SWIG_AsVal_bool(argv[2], NULL);
44480 _v = SWIG_CheckState(res);
44483 return _wrap_HNSW_prepare_level_tab__SWIG_0(
self, args);
44490 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'HNSW_prepare_level_tab'.\n"
44491 " Possible C/C++ prototypes are:\n"
44492 " faiss::HNSW::prepare_level_tab(size_t,bool)\n"
44493 " faiss::HNSW::prepare_level_tab(size_t)\n");
44498 SWIGINTERN PyObject *_wrap_HNSW_shrink_neighbor_list(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44499 PyObject *resultobj = 0;
44501 std::priority_queue< faiss::HNSW::NodeDistFarther > *arg2 = 0 ;
44502 std::vector< faiss::HNSW::NodeDistFarther > *arg3 = 0 ;
44512 PyObject * obj0 = 0 ;
44513 PyObject * obj1 = 0 ;
44514 PyObject * obj2 = 0 ;
44515 PyObject * obj3 = 0 ;
44517 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:HNSW_shrink_neighbor_list",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44518 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 );
44519 if (!SWIG_IsOK(res1)) {
44520 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSW_shrink_neighbor_list" "', argument " "1"" of type '" "faiss::HNSW::DistanceComputer &""'");
44523 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_shrink_neighbor_list" "', argument " "1"" of type '" "faiss::HNSW::DistanceComputer &""'");
44526 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t, 0 );
44527 if (!SWIG_IsOK(res2)) {
44528 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "HNSW_shrink_neighbor_list" "', argument " "2"" of type '" "std::priority_queue< faiss::HNSW::NodeDistFarther > &""'");
44531 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_shrink_neighbor_list" "', argument " "2"" of type '" "std::priority_queue< faiss::HNSW::NodeDistFarther > &""'");
44533 arg2 =
reinterpret_cast< std::priority_queue< faiss::HNSW::NodeDistFarther > *
>(argp2);
44534 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_faiss__HNSW__NodeDistFarther_t, 0 );
44535 if (!SWIG_IsOK(res3)) {
44536 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "HNSW_shrink_neighbor_list" "', argument " "3"" of type '" "std::vector< faiss::HNSW::NodeDistFarther > &""'");
44539 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "HNSW_shrink_neighbor_list" "', argument " "3"" of type '" "std::vector< faiss::HNSW::NodeDistFarther > &""'");
44541 arg3 =
reinterpret_cast< std::vector< faiss::HNSW::NodeDistFarther > *
>(argp3);
44542 ecode4 = SWIG_AsVal_int(obj3, &val4);
44543 if (!SWIG_IsOK(ecode4)) {
44544 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "HNSW_shrink_neighbor_list" "', argument " "4"" of type '" "int""'");
44546 arg4 =
static_cast< int >(val4);
44548 Py_BEGIN_ALLOW_THREADS
44552 PyEval_RestoreThread(_save);
44553 PyErr_SetString(PyExc_RuntimeError, e.
what());
44556 Py_END_ALLOW_THREADS
44558 resultobj = SWIG_Py_Void();
44565 SWIGINTERN PyObject *_wrap_delete_HNSW(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44566 PyObject *resultobj = 0;
44570 PyObject * obj0 = 0 ;
44572 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HNSW",&obj0)) SWIG_fail;
44573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSW, SWIG_POINTER_DISOWN | 0 );
44574 if (!SWIG_IsOK(res1)) {
44575 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HNSW" "', argument " "1"" of type '" "faiss::HNSW *""'");
44579 resultobj = SWIG_Py_Void();
44586 SWIGINTERN PyObject *HNSW_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44588 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
44589 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HNSW, SWIG_NewClientData(obj));
44590 return SWIG_Py_Void();
44593 SWIGINTERN PyObject *_wrap_VisitedTable_visited_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44594 PyObject *resultobj = 0;
44596 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
44601 PyObject * obj0 = 0 ;
44602 PyObject * obj1 = 0 ;
44604 if (!PyArg_ParseTuple(args,(
char *)
"OO:VisitedTable_visited_set",&obj0,&obj1)) SWIG_fail;
44605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
44606 if (!SWIG_IsOK(res1)) {
44607 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VisitedTable_visited_set" "', argument " "1"" of type '" "faiss::VisitedTable *""'");
44610 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
44611 if (!SWIG_IsOK(res2)) {
44612 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "VisitedTable_visited_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
44614 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
44615 if (arg1) (arg1)->visited = *arg2;
44616 resultobj = SWIG_Py_Void();
44623 SWIGINTERN PyObject *_wrap_VisitedTable_visited_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44624 PyObject *resultobj = 0;
44628 PyObject * obj0 = 0 ;
44629 std::vector< uint8_t > *result = 0 ;
44631 if (!PyArg_ParseTuple(args,(
char *)
"O:VisitedTable_visited_get",&obj0)) SWIG_fail;
44632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
44633 if (!SWIG_IsOK(res1)) {
44634 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VisitedTable_visited_get" "', argument " "1"" of type '" "faiss::VisitedTable *""'");
44637 result = (std::vector< uint8_t > *)& ((arg1)->visited);
44638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
44645 SWIGINTERN PyObject *_wrap_VisitedTable_visno_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44646 PyObject *resultobj = 0;
44653 PyObject * obj0 = 0 ;
44654 PyObject * obj1 = 0 ;
44656 if (!PyArg_ParseTuple(args,(
char *)
"OO:VisitedTable_visno_set",&obj0,&obj1)) SWIG_fail;
44657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
44658 if (!SWIG_IsOK(res1)) {
44659 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VisitedTable_visno_set" "', argument " "1"" of type '" "faiss::VisitedTable *""'");
44662 ecode2 = SWIG_AsVal_int(obj1, &val2);
44663 if (!SWIG_IsOK(ecode2)) {
44664 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VisitedTable_visno_set" "', argument " "2"" of type '" "int""'");
44666 arg2 =
static_cast< int >(val2);
44667 if (arg1) (arg1)->visno = arg2;
44668 resultobj = SWIG_Py_Void();
44675 SWIGINTERN PyObject *_wrap_VisitedTable_visno_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44676 PyObject *resultobj = 0;
44680 PyObject * obj0 = 0 ;
44683 if (!PyArg_ParseTuple(args,(
char *)
"O:VisitedTable_visno_get",&obj0)) SWIG_fail;
44684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
44685 if (!SWIG_IsOK(res1)) {
44686 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VisitedTable_visno_get" "', argument " "1"" of type '" "faiss::VisitedTable *""'");
44689 result = (int) ((arg1)->visno);
44690 resultobj = SWIG_From_int(static_cast< int >(result));
44697 SWIGINTERN PyObject *_wrap_new_VisitedTable(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44698 PyObject *resultobj = 0;
44702 PyObject * obj0 = 0 ;
44705 if (!PyArg_ParseTuple(args,(
char *)
"O:new_VisitedTable",&obj0)) SWIG_fail;
44706 ecode1 = SWIG_AsVal_int(obj0, &val1);
44707 if (!SWIG_IsOK(ecode1)) {
44708 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_VisitedTable" "', argument " "1"" of type '" "int""'");
44710 arg1 =
static_cast< int >(val1);
44712 Py_BEGIN_ALLOW_THREADS
44716 PyEval_RestoreThread(_save);
44717 PyErr_SetString(PyExc_RuntimeError, e.
what());
44720 Py_END_ALLOW_THREADS
44722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__VisitedTable, SWIG_POINTER_NEW | 0 );
44729 SWIGINTERN PyObject *_wrap_VisitedTable_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44730 PyObject *resultobj = 0;
44737 PyObject * obj0 = 0 ;
44738 PyObject * obj1 = 0 ;
44740 if (!PyArg_ParseTuple(args,(
char *)
"OO:VisitedTable_set",&obj0,&obj1)) SWIG_fail;
44741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
44742 if (!SWIG_IsOK(res1)) {
44743 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VisitedTable_set" "', argument " "1"" of type '" "faiss::VisitedTable *""'");
44746 ecode2 = SWIG_AsVal_int(obj1, &val2);
44747 if (!SWIG_IsOK(ecode2)) {
44748 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VisitedTable_set" "', argument " "2"" of type '" "int""'");
44750 arg2 =
static_cast< int >(val2);
44752 Py_BEGIN_ALLOW_THREADS
44756 PyEval_RestoreThread(_save);
44757 PyErr_SetString(PyExc_RuntimeError, e.
what());
44760 Py_END_ALLOW_THREADS
44762 resultobj = SWIG_Py_Void();
44769 SWIGINTERN PyObject *_wrap_VisitedTable_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44770 PyObject *resultobj = 0;
44777 PyObject * obj0 = 0 ;
44778 PyObject * obj1 = 0 ;
44781 if (!PyArg_ParseTuple(args,(
char *)
"OO:VisitedTable_get",&obj0,&obj1)) SWIG_fail;
44782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
44783 if (!SWIG_IsOK(res1)) {
44784 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VisitedTable_get" "', argument " "1"" of type '" "faiss::VisitedTable const *""'");
44787 ecode2 = SWIG_AsVal_int(obj1, &val2);
44788 if (!SWIG_IsOK(ecode2)) {
44789 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VisitedTable_get" "', argument " "2"" of type '" "int""'");
44791 arg2 =
static_cast< int >(val2);
44793 Py_BEGIN_ALLOW_THREADS
44797 PyEval_RestoreThread(_save);
44798 PyErr_SetString(PyExc_RuntimeError, e.
what());
44801 Py_END_ALLOW_THREADS
44803 resultobj = SWIG_From_bool(static_cast< bool >(result));
44810 SWIGINTERN PyObject *_wrap_VisitedTable_advance(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44811 PyObject *resultobj = 0;
44815 PyObject * obj0 = 0 ;
44817 if (!PyArg_ParseTuple(args,(
char *)
"O:VisitedTable_advance",&obj0)) SWIG_fail;
44818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, 0 | 0 );
44819 if (!SWIG_IsOK(res1)) {
44820 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VisitedTable_advance" "', argument " "1"" of type '" "faiss::VisitedTable *""'");
44824 Py_BEGIN_ALLOW_THREADS
44828 PyEval_RestoreThread(_save);
44829 PyErr_SetString(PyExc_RuntimeError, e.
what());
44832 Py_END_ALLOW_THREADS
44834 resultobj = SWIG_Py_Void();
44841 SWIGINTERN PyObject *_wrap_delete_VisitedTable(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44842 PyObject *resultobj = 0;
44846 PyObject * obj0 = 0 ;
44848 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_VisitedTable",&obj0)) SWIG_fail;
44849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VisitedTable, SWIG_POINTER_DISOWN | 0 );
44850 if (!SWIG_IsOK(res1)) {
44851 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_VisitedTable" "', argument " "1"" of type '" "faiss::VisitedTable *""'");
44855 resultobj = SWIG_Py_Void();
44862 SWIGINTERN PyObject *VisitedTable_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44864 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
44865 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__VisitedTable, SWIG_NewClientData(obj));
44866 return SWIG_Py_Void();
44869 SWIGINTERN PyObject *_wrap_HNSWStats_n1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44870 PyObject *resultobj = 0;
44877 PyObject * obj0 = 0 ;
44878 PyObject * obj1 = 0 ;
44880 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSWStats_n1_set",&obj0,&obj1)) SWIG_fail;
44881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
44882 if (!SWIG_IsOK(res1)) {
44883 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_n1_set" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
44886 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44887 if (!SWIG_IsOK(ecode2)) {
44888 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSWStats_n1_set" "', argument " "2"" of type '" "size_t""'");
44890 arg2 =
static_cast< size_t >(val2);
44891 if (arg1) (arg1)->n1 = arg2;
44892 resultobj = SWIG_Py_Void();
44899 SWIGINTERN PyObject *_wrap_HNSWStats_n1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44900 PyObject *resultobj = 0;
44904 PyObject * obj0 = 0 ;
44907 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSWStats_n1_get",&obj0)) SWIG_fail;
44908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
44909 if (!SWIG_IsOK(res1)) {
44910 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_n1_get" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
44913 result = (size_t) ((arg1)->n1);
44914 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
44921 SWIGINTERN PyObject *_wrap_HNSWStats_n2_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44922 PyObject *resultobj = 0;
44929 PyObject * obj0 = 0 ;
44930 PyObject * obj1 = 0 ;
44932 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSWStats_n2_set",&obj0,&obj1)) SWIG_fail;
44933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
44934 if (!SWIG_IsOK(res1)) {
44935 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_n2_set" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
44938 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44939 if (!SWIG_IsOK(ecode2)) {
44940 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSWStats_n2_set" "', argument " "2"" of type '" "size_t""'");
44942 arg2 =
static_cast< size_t >(val2);
44943 if (arg1) (arg1)->n2 = arg2;
44944 resultobj = SWIG_Py_Void();
44951 SWIGINTERN PyObject *_wrap_HNSWStats_n2_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44952 PyObject *resultobj = 0;
44956 PyObject * obj0 = 0 ;
44959 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSWStats_n2_get",&obj0)) SWIG_fail;
44960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
44961 if (!SWIG_IsOK(res1)) {
44962 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_n2_get" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
44965 result = (size_t) ((arg1)->n2);
44966 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
44973 SWIGINTERN PyObject *_wrap_HNSWStats_n3_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
44974 PyObject *resultobj = 0;
44981 PyObject * obj0 = 0 ;
44982 PyObject * obj1 = 0 ;
44984 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSWStats_n3_set",&obj0,&obj1)) SWIG_fail;
44985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
44986 if (!SWIG_IsOK(res1)) {
44987 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_n3_set" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
44990 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44991 if (!SWIG_IsOK(ecode2)) {
44992 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSWStats_n3_set" "', argument " "2"" of type '" "size_t""'");
44994 arg2 =
static_cast< size_t >(val2);
44995 if (arg1) (arg1)->n3 = arg2;
44996 resultobj = SWIG_Py_Void();
45003 SWIGINTERN PyObject *_wrap_HNSWStats_n3_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45004 PyObject *resultobj = 0;
45008 PyObject * obj0 = 0 ;
45011 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSWStats_n3_get",&obj0)) SWIG_fail;
45012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
45013 if (!SWIG_IsOK(res1)) {
45014 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_n3_get" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
45017 result = (size_t) ((arg1)->n3);
45018 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
45025 SWIGINTERN PyObject *_wrap_HNSWStats_ndis_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45026 PyObject *resultobj = 0;
45033 PyObject * obj0 = 0 ;
45034 PyObject * obj1 = 0 ;
45036 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSWStats_ndis_set",&obj0,&obj1)) SWIG_fail;
45037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
45038 if (!SWIG_IsOK(res1)) {
45039 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_ndis_set" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
45042 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
45043 if (!SWIG_IsOK(ecode2)) {
45044 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSWStats_ndis_set" "', argument " "2"" of type '" "size_t""'");
45046 arg2 =
static_cast< size_t >(val2);
45047 if (arg1) (arg1)->ndis = arg2;
45048 resultobj = SWIG_Py_Void();
45055 SWIGINTERN PyObject *_wrap_HNSWStats_ndis_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45056 PyObject *resultobj = 0;
45060 PyObject * obj0 = 0 ;
45063 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSWStats_ndis_get",&obj0)) SWIG_fail;
45064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
45065 if (!SWIG_IsOK(res1)) {
45066 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_ndis_get" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
45069 result = (size_t) ((arg1)->ndis);
45070 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
45077 SWIGINTERN PyObject *_wrap_HNSWStats_nreorder_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45078 PyObject *resultobj = 0;
45085 PyObject * obj0 = 0 ;
45086 PyObject * obj1 = 0 ;
45088 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSWStats_nreorder_set",&obj0,&obj1)) SWIG_fail;
45089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
45090 if (!SWIG_IsOK(res1)) {
45091 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_nreorder_set" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
45094 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
45095 if (!SWIG_IsOK(ecode2)) {
45096 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSWStats_nreorder_set" "', argument " "2"" of type '" "size_t""'");
45098 arg2 =
static_cast< size_t >(val2);
45099 if (arg1) (arg1)->nreorder = arg2;
45100 resultobj = SWIG_Py_Void();
45107 SWIGINTERN PyObject *_wrap_HNSWStats_nreorder_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45108 PyObject *resultobj = 0;
45112 PyObject * obj0 = 0 ;
45115 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSWStats_nreorder_get",&obj0)) SWIG_fail;
45116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
45117 if (!SWIG_IsOK(res1)) {
45118 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_nreorder_get" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
45121 result = (size_t) ((arg1)->nreorder);
45122 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
45129 SWIGINTERN PyObject *_wrap_HNSWStats_view_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45130 PyObject *resultobj = 0;
45137 PyObject * obj0 = 0 ;
45138 PyObject * obj1 = 0 ;
45140 if (!PyArg_ParseTuple(args,(
char *)
"OO:HNSWStats_view_set",&obj0,&obj1)) SWIG_fail;
45141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
45142 if (!SWIG_IsOK(res1)) {
45143 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_view_set" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
45146 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45147 if (!SWIG_IsOK(ecode2)) {
45148 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "HNSWStats_view_set" "', argument " "2"" of type '" "bool""'");
45150 arg2 =
static_cast< bool >(val2);
45151 if (arg1) (arg1)->view = arg2;
45152 resultobj = SWIG_Py_Void();
45159 SWIGINTERN PyObject *_wrap_HNSWStats_view_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45160 PyObject *resultobj = 0;
45164 PyObject * obj0 = 0 ;
45167 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSWStats_view_get",&obj0)) SWIG_fail;
45168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
45169 if (!SWIG_IsOK(res1)) {
45170 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_view_get" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
45173 result = (bool) ((arg1)->view);
45174 resultobj = SWIG_From_bool(static_cast< bool >(result));
45181 SWIGINTERN PyObject *_wrap_new_HNSWStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45182 PyObject *resultobj = 0;
45185 if (!PyArg_ParseTuple(args,(
char *)
":new_HNSWStats")) SWIG_fail;
45187 Py_BEGIN_ALLOW_THREADS
45191 PyEval_RestoreThread(_save);
45192 PyErr_SetString(PyExc_RuntimeError, e.
what());
45195 Py_END_ALLOW_THREADS
45197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSWStats, SWIG_POINTER_NEW | 0 );
45204 SWIGINTERN PyObject *_wrap_HNSWStats_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45205 PyObject *resultobj = 0;
45209 PyObject * obj0 = 0 ;
45211 if (!PyArg_ParseTuple(args,(
char *)
"O:HNSWStats_reset",&obj0)) SWIG_fail;
45212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, 0 | 0 );
45213 if (!SWIG_IsOK(res1)) {
45214 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "HNSWStats_reset" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
45218 Py_BEGIN_ALLOW_THREADS
45222 PyEval_RestoreThread(_save);
45223 PyErr_SetString(PyExc_RuntimeError, e.
what());
45226 Py_END_ALLOW_THREADS
45228 resultobj = SWIG_Py_Void();
45235 SWIGINTERN PyObject *_wrap_delete_HNSWStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45236 PyObject *resultobj = 0;
45240 PyObject * obj0 = 0 ;
45242 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_HNSWStats",&obj0)) SWIG_fail;
45243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HNSWStats, SWIG_POINTER_DISOWN | 0 );
45244 if (!SWIG_IsOK(res1)) {
45245 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_HNSWStats" "', argument " "1"" of type '" "faiss::HNSWStats *""'");
45249 resultobj = SWIG_Py_Void();
45256 SWIGINTERN PyObject *HNSWStats_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45258 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
45259 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HNSWStats, SWIG_NewClientData(obj));
45260 return SWIG_Py_Void();
45263 SWIGINTERN
int Swig_var_hnsw_stats_set(PyObject *_val) {
45266 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_faiss__HNSWStats, 0 | 0);
45267 if (!SWIG_IsOK(res)) {
45268 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""faiss::hnsw_stats""' of type '""faiss::HNSWStats""'");
45271 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""faiss::hnsw_stats""' of type '""faiss::HNSWStats""'");
45275 faiss::hnsw_stats = *temp;
45276 if (SWIG_IsNewObj(res))
delete temp;
45285 SWIGINTERN PyObject *Swig_var_hnsw_stats_get(
void) {
45286 PyObject *pyobj = 0;
45288 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&faiss::hnsw_stats), SWIGTYPE_p_faiss__HNSWStats, 0 );
45293 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45294 PyObject *resultobj = 0;
45298 PyObject * obj0 = 0 ;
45301 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_index_get",&obj0)) SWIG_fail;
45302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45303 if (!SWIG_IsOK(res1)) {
45304 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_index_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
45315 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_M_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45316 PyObject *resultobj = 0;
45323 PyObject * obj0 = 0 ;
45324 PyObject * obj1 = 0 ;
45326 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_M_set",&obj0,&obj1)) SWIG_fail;
45327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45328 if (!SWIG_IsOK(res1)) {
45329 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_M_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45332 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
45333 if (!SWIG_IsOK(ecode2)) {
45334 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_M_set" "', argument " "2"" of type '" "size_t""'");
45336 arg2 =
static_cast< size_t >(val2);
45337 if (arg1) (arg1)->M = arg2;
45338 resultobj = SWIG_Py_Void();
45345 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_M_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45346 PyObject *resultobj = 0;
45350 PyObject * obj0 = 0 ;
45353 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_M_get",&obj0)) SWIG_fail;
45354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45355 if (!SWIG_IsOK(res1)) {
45356 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_M_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45359 result = (size_t) ((arg1)->M);
45360 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
45367 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_k_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45368 PyObject *resultobj = 0;
45375 PyObject * obj0 = 0 ;
45376 PyObject * obj1 = 0 ;
45378 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_k_set",&obj0,&obj1)) SWIG_fail;
45379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45380 if (!SWIG_IsOK(res1)) {
45381 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_k_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45384 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
45385 if (!SWIG_IsOK(ecode2)) {
45386 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_k_set" "', argument " "2"" of type '" "size_t""'");
45388 arg2 =
static_cast< size_t >(val2);
45389 if (arg1) (arg1)->k = arg2;
45390 resultobj = SWIG_Py_Void();
45397 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_k_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45398 PyObject *resultobj = 0;
45402 PyObject * obj0 = 0 ;
45405 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_k_get",&obj0)) SWIG_fail;
45406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45407 if (!SWIG_IsOK(res1)) {
45408 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_k_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45411 result = (size_t) ((arg1)->k);
45412 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
45419 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_nsq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45420 PyObject *resultobj = 0;
45427 PyObject * obj0 = 0 ;
45428 PyObject * obj1 = 0 ;
45430 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_nsq_set",&obj0,&obj1)) SWIG_fail;
45431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45432 if (!SWIG_IsOK(res1)) {
45433 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_nsq_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45436 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
45437 if (!SWIG_IsOK(ecode2)) {
45438 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_nsq_set" "', argument " "2"" of type '" "size_t""'");
45440 arg2 =
static_cast< size_t >(val2);
45441 if (arg1) (arg1)->nsq = arg2;
45442 resultobj = SWIG_Py_Void();
45449 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_nsq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45450 PyObject *resultobj = 0;
45454 PyObject * obj0 = 0 ;
45457 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_nsq_get",&obj0)) SWIG_fail;
45458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45459 if (!SWIG_IsOK(res1)) {
45460 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_nsq_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45463 result = (size_t) ((arg1)->nsq);
45464 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
45471 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45472 PyObject *resultobj = 0;
45479 PyObject * obj0 = 0 ;
45480 PyObject * obj1 = 0 ;
45482 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_code_size_set",&obj0,&obj1)) SWIG_fail;
45483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45484 if (!SWIG_IsOK(res1)) {
45485 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_code_size_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45488 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
45489 if (!SWIG_IsOK(ecode2)) {
45490 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_code_size_set" "', argument " "2"" of type '" "size_t""'");
45492 arg2 =
static_cast< size_t >(val2);
45493 if (arg1) (arg1)->code_size = arg2;
45494 resultobj = SWIG_Py_Void();
45501 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45502 PyObject *resultobj = 0;
45506 PyObject * obj0 = 0 ;
45509 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_code_size_get",&obj0)) SWIG_fail;
45510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45511 if (!SWIG_IsOK(res1)) {
45512 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_code_size_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45515 result = (size_t) ((arg1)->code_size);
45516 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
45523 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_k_reorder_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45524 PyObject *resultobj = 0;
45531 PyObject * obj0 = 0 ;
45532 PyObject * obj1 = 0 ;
45534 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_k_reorder_set",&obj0,&obj1)) SWIG_fail;
45535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45536 if (!SWIG_IsOK(res1)) {
45537 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_k_reorder_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45540 ecode2 = SWIG_AsVal_int(obj1, &val2);
45541 if (!SWIG_IsOK(ecode2)) {
45542 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_k_reorder_set" "', argument " "2"" of type '" "int""'");
45544 arg2 =
static_cast< int >(val2);
45545 if (arg1) (arg1)->k_reorder = arg2;
45546 resultobj = SWIG_Py_Void();
45553 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_k_reorder_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45554 PyObject *resultobj = 0;
45558 PyObject * obj0 = 0 ;
45561 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_k_reorder_get",&obj0)) SWIG_fail;
45562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45563 if (!SWIG_IsOK(res1)) {
45564 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_k_reorder_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45567 result = (int) ((arg1)->k_reorder);
45568 resultobj = SWIG_From_int(static_cast< int >(result));
45575 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_codebook_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45576 PyObject *resultobj = 0;
45578 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
45583 PyObject * obj0 = 0 ;
45584 PyObject * obj1 = 0 ;
45586 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_codebook_set",&obj0,&obj1)) SWIG_fail;
45587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45588 if (!SWIG_IsOK(res1)) {
45589 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_codebook_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45592 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
45593 if (!SWIG_IsOK(res2)) {
45594 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReconstructFromNeighbors_codebook_set" "', argument " "2"" of type '" "std::vector< float > *""'");
45596 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
45597 if (arg1) (arg1)->codebook = *arg2;
45598 resultobj = SWIG_Py_Void();
45605 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_codebook_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45606 PyObject *resultobj = 0;
45610 PyObject * obj0 = 0 ;
45611 std::vector< float > *result = 0 ;
45613 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_codebook_get",&obj0)) SWIG_fail;
45614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45615 if (!SWIG_IsOK(res1)) {
45616 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_codebook_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45619 result = (std::vector< float > *)& ((arg1)->codebook);
45620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
45627 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45628 PyObject *resultobj = 0;
45630 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
45635 PyObject * obj0 = 0 ;
45636 PyObject * obj1 = 0 ;
45638 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_codes_set",&obj0,&obj1)) SWIG_fail;
45639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45640 if (!SWIG_IsOK(res1)) {
45641 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_codes_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45644 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
45645 if (!SWIG_IsOK(res2)) {
45646 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReconstructFromNeighbors_codes_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
45648 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
45649 if (arg1) (arg1)->codes = *arg2;
45650 resultobj = SWIG_Py_Void();
45657 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45658 PyObject *resultobj = 0;
45662 PyObject * obj0 = 0 ;
45663 std::vector< uint8_t > *result = 0 ;
45665 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_codes_get",&obj0)) SWIG_fail;
45666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45667 if (!SWIG_IsOK(res1)) {
45668 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_codes_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45671 result = (std::vector< uint8_t > *)& ((arg1)->codes);
45672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
45679 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_ntotal_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45680 PyObject *resultobj = 0;
45687 PyObject * obj0 = 0 ;
45688 PyObject * obj1 = 0 ;
45690 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_ntotal_set",&obj0,&obj1)) SWIG_fail;
45691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45692 if (!SWIG_IsOK(res1)) {
45693 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_ntotal_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45696 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
45697 if (!SWIG_IsOK(ecode2)) {
45698 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_ntotal_set" "', argument " "2"" of type '" "size_t""'");
45700 arg2 =
static_cast< size_t >(val2);
45701 if (arg1) (arg1)->ntotal = arg2;
45702 resultobj = SWIG_Py_Void();
45709 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_ntotal_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45710 PyObject *resultobj = 0;
45714 PyObject * obj0 = 0 ;
45717 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_ntotal_get",&obj0)) SWIG_fail;
45718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45719 if (!SWIG_IsOK(res1)) {
45720 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_ntotal_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45723 result = (size_t) ((arg1)->ntotal);
45724 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
45731 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45732 PyObject *resultobj = 0;
45739 PyObject * obj0 = 0 ;
45740 PyObject * obj1 = 0 ;
45742 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_d_set",&obj0,&obj1)) SWIG_fail;
45743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45744 if (!SWIG_IsOK(res1)) {
45745 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_d_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45748 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
45749 if (!SWIG_IsOK(ecode2)) {
45750 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_d_set" "', argument " "2"" of type '" "size_t""'");
45752 arg2 =
static_cast< size_t >(val2);
45753 if (arg1) (arg1)->d = arg2;
45754 resultobj = SWIG_Py_Void();
45761 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45762 PyObject *resultobj = 0;
45766 PyObject * obj0 = 0 ;
45769 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_d_get",&obj0)) SWIG_fail;
45770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45771 if (!SWIG_IsOK(res1)) {
45772 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_d_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45775 result = (size_t) ((arg1)->d);
45776 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
45783 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_dsub_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45784 PyObject *resultobj = 0;
45791 PyObject * obj0 = 0 ;
45792 PyObject * obj1 = 0 ;
45794 if (!PyArg_ParseTuple(args,(
char *)
"OO:ReconstructFromNeighbors_dsub_set",&obj0,&obj1)) SWIG_fail;
45795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45796 if (!SWIG_IsOK(res1)) {
45797 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_dsub_set" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45800 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
45801 if (!SWIG_IsOK(ecode2)) {
45802 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_dsub_set" "', argument " "2"" of type '" "size_t""'");
45804 arg2 =
static_cast< size_t >(val2);
45805 if (arg1) (arg1)->dsub = arg2;
45806 resultobj = SWIG_Py_Void();
45813 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_dsub_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45814 PyObject *resultobj = 0;
45818 PyObject * obj0 = 0 ;
45821 if (!PyArg_ParseTuple(args,(
char *)
"O:ReconstructFromNeighbors_dsub_get",&obj0)) SWIG_fail;
45822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
45823 if (!SWIG_IsOK(res1)) {
45824 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_dsub_get" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
45827 result = (size_t) ((arg1)->dsub);
45828 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
45835 SWIGINTERN PyObject *_wrap_new_ReconstructFromNeighbors__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45836 PyObject *resultobj = 0;
45846 PyObject * obj0 = 0 ;
45847 PyObject * obj1 = 0 ;
45848 PyObject * obj2 = 0 ;
45851 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_ReconstructFromNeighbors",&obj0,&obj1,&obj2)) SWIG_fail;
45852 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_faiss__IndexHNSW, 0 | 0);
45853 if (!SWIG_IsOK(res1)) {
45854 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_ReconstructFromNeighbors" "', argument " "1"" of type '" "faiss::IndexHNSW const &""'");
45857 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_ReconstructFromNeighbors" "', argument " "1"" of type '" "faiss::IndexHNSW const &""'");
45860 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
45861 if (!SWIG_IsOK(ecode2)) {
45862 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_ReconstructFromNeighbors" "', argument " "2"" of type '" "size_t""'");
45864 arg2 =
static_cast< size_t >(val2);
45865 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
45866 if (!SWIG_IsOK(ecode3)) {
45867 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_ReconstructFromNeighbors" "', argument " "3"" of type '" "size_t""'");
45869 arg3 =
static_cast< size_t >(val3);
45871 Py_BEGIN_ALLOW_THREADS
45875 PyEval_RestoreThread(_save);
45876 PyErr_SetString(PyExc_RuntimeError, e.
what());
45879 Py_END_ALLOW_THREADS
45881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ReconstructFromNeighbors, SWIG_POINTER_NEW | 0 );
45888 SWIGINTERN PyObject *_wrap_new_ReconstructFromNeighbors__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45889 PyObject *resultobj = 0;
45896 PyObject * obj0 = 0 ;
45897 PyObject * obj1 = 0 ;
45900 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_ReconstructFromNeighbors",&obj0,&obj1)) SWIG_fail;
45901 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_faiss__IndexHNSW, 0 | 0);
45902 if (!SWIG_IsOK(res1)) {
45903 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_ReconstructFromNeighbors" "', argument " "1"" of type '" "faiss::IndexHNSW const &""'");
45906 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_ReconstructFromNeighbors" "', argument " "1"" of type '" "faiss::IndexHNSW const &""'");
45909 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
45910 if (!SWIG_IsOK(ecode2)) {
45911 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_ReconstructFromNeighbors" "', argument " "2"" of type '" "size_t""'");
45913 arg2 =
static_cast< size_t >(val2);
45915 Py_BEGIN_ALLOW_THREADS
45919 PyEval_RestoreThread(_save);
45920 PyErr_SetString(PyExc_RuntimeError, e.
what());
45923 Py_END_ALLOW_THREADS
45925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ReconstructFromNeighbors, SWIG_POINTER_NEW | 0 );
45932 SWIGINTERN PyObject *_wrap_new_ReconstructFromNeighbors__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
45933 PyObject *resultobj = 0;
45937 PyObject * obj0 = 0 ;
45940 if (!PyArg_ParseTuple(args,(
char *)
"O:new_ReconstructFromNeighbors",&obj0)) SWIG_fail;
45941 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_faiss__IndexHNSW, 0 | 0);
45942 if (!SWIG_IsOK(res1)) {
45943 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_ReconstructFromNeighbors" "', argument " "1"" of type '" "faiss::IndexHNSW const &""'");
45946 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_ReconstructFromNeighbors" "', argument " "1"" of type '" "faiss::IndexHNSW const &""'");
45950 Py_BEGIN_ALLOW_THREADS
45954 PyEval_RestoreThread(_save);
45955 PyErr_SetString(PyExc_RuntimeError, e.
what());
45958 Py_END_ALLOW_THREADS
45960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ReconstructFromNeighbors, SWIG_POINTER_NEW | 0 );
45967 SWIGINTERN PyObject *_wrap_new_ReconstructFromNeighbors(PyObject *
self, PyObject *args) {
45969 PyObject *argv[4] = {
45974 if (!PyTuple_Check(args)) SWIG_fail;
45975 argc = args ? PyObject_Length(args) : 0;
45976 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
45977 argv[ii] = PyTuple_GET_ITEM(args,ii);
45981 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_faiss__IndexHNSW, 0);
45982 _v = SWIG_CheckState(res);
45984 return _wrap_new_ReconstructFromNeighbors__SWIG_2(
self, args);
45989 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_faiss__IndexHNSW, 0);
45990 _v = SWIG_CheckState(res);
45993 int res = SWIG_AsVal_size_t(argv[1], NULL);
45994 _v = SWIG_CheckState(res);
45997 return _wrap_new_ReconstructFromNeighbors__SWIG_1(
self, args);
46003 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_faiss__IndexHNSW, 0);
46004 _v = SWIG_CheckState(res);
46007 int res = SWIG_AsVal_size_t(argv[1], NULL);
46008 _v = SWIG_CheckState(res);
46012 int res = SWIG_AsVal_size_t(argv[2], NULL);
46013 _v = SWIG_CheckState(res);
46016 return _wrap_new_ReconstructFromNeighbors__SWIG_0(
self, args);
46023 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_ReconstructFromNeighbors'.\n"
46024 " Possible C/C++ prototypes are:\n"
46025 " faiss::ReconstructFromNeighbors::ReconstructFromNeighbors(faiss::IndexHNSW const &,size_t,size_t)\n"
46026 " faiss::ReconstructFromNeighbors::ReconstructFromNeighbors(faiss::IndexHNSW const &,size_t)\n"
46027 " faiss::ReconstructFromNeighbors::ReconstructFromNeighbors(faiss::IndexHNSW const &)\n");
46032 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_add_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46033 PyObject *resultobj = 0;
46036 float *arg3 = (
float *) 0 ;
46043 PyObject * obj0 = 0 ;
46044 PyObject * obj1 = 0 ;
46045 PyObject * obj2 = 0 ;
46047 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ReconstructFromNeighbors_add_codes",&obj0,&obj1,&obj2)) SWIG_fail;
46048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
46049 if (!SWIG_IsOK(res1)) {
46050 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_add_codes" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
46053 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
46054 if (!SWIG_IsOK(ecode2)) {
46055 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_add_codes" "', argument " "2"" of type '" "size_t""'");
46057 arg2 =
static_cast< size_t >(val2);
46058 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
46059 if (!SWIG_IsOK(res3)) {
46060 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ReconstructFromNeighbors_add_codes" "', argument " "3"" of type '" "float const *""'");
46062 arg3 =
reinterpret_cast< float *
>(argp3);
46064 Py_BEGIN_ALLOW_THREADS
46066 (arg1)->add_codes(arg2,(
float const *)arg3);
46068 PyEval_RestoreThread(_save);
46069 PyErr_SetString(PyExc_RuntimeError, e.
what());
46072 Py_END_ALLOW_THREADS
46074 resultobj = SWIG_Py_Void();
46081 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_compute_distances(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46082 PyObject *resultobj = 0;
46085 faiss::ReconstructFromNeighbors::idx_t *arg3 = (faiss::ReconstructFromNeighbors::idx_t *) 0 ;
46086 float *arg4 = (
float *) 0 ;
46087 float *arg5 = (
float *) 0 ;
46098 PyObject * obj0 = 0 ;
46099 PyObject * obj1 = 0 ;
46100 PyObject * obj2 = 0 ;
46101 PyObject * obj3 = 0 ;
46102 PyObject * obj4 = 0 ;
46105 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:ReconstructFromNeighbors_compute_distances",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
46106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
46107 if (!SWIG_IsOK(res1)) {
46108 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_compute_distances" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors const *""'");
46111 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
46112 if (!SWIG_IsOK(ecode2)) {
46113 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_compute_distances" "', argument " "2"" of type '" "size_t""'");
46115 arg2 =
static_cast< size_t >(val2);
46116 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
46117 if (!SWIG_IsOK(res3)) {
46118 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ReconstructFromNeighbors_compute_distances" "', argument " "3"" of type '" "faiss::ReconstructFromNeighbors::idx_t const *""'");
46120 arg3 =
reinterpret_cast< faiss::ReconstructFromNeighbors::idx_t *
>(argp3);
46121 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
46122 if (!SWIG_IsOK(res4)) {
46123 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ReconstructFromNeighbors_compute_distances" "', argument " "4"" of type '" "float const *""'");
46125 arg4 =
reinterpret_cast< float *
>(argp4);
46126 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
46127 if (!SWIG_IsOK(res5)) {
46128 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "ReconstructFromNeighbors_compute_distances" "', argument " "5"" of type '" "float *""'");
46130 arg5 =
reinterpret_cast< float *
>(argp5);
46132 Py_BEGIN_ALLOW_THREADS
46134 result = (size_t)((
faiss::ReconstructFromNeighbors const *)arg1)->compute_distances(arg2,(faiss::ReconstructFromNeighbors::idx_t
const *)arg3,(
float const *)arg4,arg5);
46136 PyEval_RestoreThread(_save);
46137 PyErr_SetString(PyExc_RuntimeError, e.
what());
46140 Py_END_ALLOW_THREADS
46142 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
46149 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_estimate_code(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46150 PyObject *resultobj = 0;
46152 float *arg2 = (
float *) 0 ;
46153 faiss::ReconstructFromNeighbors::storage_idx_t arg3 ;
46154 uint8_t *arg4 = (uint8_t *) 0 ;
46163 PyObject * obj0 = 0 ;
46164 PyObject * obj1 = 0 ;
46165 PyObject * obj2 = 0 ;
46166 PyObject * obj3 = 0 ;
46168 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ReconstructFromNeighbors_estimate_code",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
46169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
46170 if (!SWIG_IsOK(res1)) {
46171 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_estimate_code" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors const *""'");
46174 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
46175 if (!SWIG_IsOK(res2)) {
46176 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ReconstructFromNeighbors_estimate_code" "', argument " "2"" of type '" "float const *""'");
46178 arg2 =
reinterpret_cast< float *
>(argp2);
46179 ecode3 = SWIG_AsVal_int(obj2, &val3);
46180 if (!SWIG_IsOK(ecode3)) {
46181 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ReconstructFromNeighbors_estimate_code" "', argument " "3"" of type '" "faiss::ReconstructFromNeighbors::storage_idx_t""'");
46183 arg3 =
static_cast< faiss::ReconstructFromNeighbors::storage_idx_t
>(val3);
46184 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
46185 if (!SWIG_IsOK(res4)) {
46186 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ReconstructFromNeighbors_estimate_code" "', argument " "4"" of type '" "uint8_t *""'");
46188 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
46190 Py_BEGIN_ALLOW_THREADS
46194 PyEval_RestoreThread(_save);
46195 PyErr_SetString(PyExc_RuntimeError, e.
what());
46198 Py_END_ALLOW_THREADS
46200 resultobj = SWIG_Py_Void();
46207 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46208 PyObject *resultobj = 0;
46210 faiss::ReconstructFromNeighbors::storage_idx_t arg2 ;
46211 float *arg3 = (
float *) 0 ;
46212 float *arg4 = (
float *) 0 ;
46221 PyObject * obj0 = 0 ;
46222 PyObject * obj1 = 0 ;
46223 PyObject * obj2 = 0 ;
46224 PyObject * obj3 = 0 ;
46226 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ReconstructFromNeighbors_reconstruct",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
46227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
46228 if (!SWIG_IsOK(res1)) {
46229 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_reconstruct" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors const *""'");
46232 ecode2 = SWIG_AsVal_int(obj1, &val2);
46233 if (!SWIG_IsOK(ecode2)) {
46234 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_reconstruct" "', argument " "2"" of type '" "faiss::ReconstructFromNeighbors::storage_idx_t""'");
46236 arg2 =
static_cast< faiss::ReconstructFromNeighbors::storage_idx_t
>(val2);
46237 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
46238 if (!SWIG_IsOK(res3)) {
46239 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ReconstructFromNeighbors_reconstruct" "', argument " "3"" of type '" "float *""'");
46241 arg3 =
reinterpret_cast< float *
>(argp3);
46242 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
46243 if (!SWIG_IsOK(res4)) {
46244 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ReconstructFromNeighbors_reconstruct" "', argument " "4"" of type '" "float *""'");
46246 arg4 =
reinterpret_cast< float *
>(argp4);
46248 Py_BEGIN_ALLOW_THREADS
46252 PyEval_RestoreThread(_save);
46253 PyErr_SetString(PyExc_RuntimeError, e.
what());
46256 Py_END_ALLOW_THREADS
46258 resultobj = SWIG_Py_Void();
46265 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46266 PyObject *resultobj = 0;
46268 faiss::ReconstructFromNeighbors::storage_idx_t arg2 ;
46269 faiss::ReconstructFromNeighbors::storage_idx_t arg3 ;
46270 float *arg4 = (
float *) 0 ;
46279 PyObject * obj0 = 0 ;
46280 PyObject * obj1 = 0 ;
46281 PyObject * obj2 = 0 ;
46282 PyObject * obj3 = 0 ;
46284 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ReconstructFromNeighbors_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
46285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
46286 if (!SWIG_IsOK(res1)) {
46287 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_reconstruct_n" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors const *""'");
46290 ecode2 = SWIG_AsVal_int(obj1, &val2);
46291 if (!SWIG_IsOK(ecode2)) {
46292 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_reconstruct_n" "', argument " "2"" of type '" "faiss::ReconstructFromNeighbors::storage_idx_t""'");
46294 arg2 =
static_cast< faiss::ReconstructFromNeighbors::storage_idx_t
>(val2);
46295 ecode3 = SWIG_AsVal_int(obj2, &val3);
46296 if (!SWIG_IsOK(ecode3)) {
46297 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ReconstructFromNeighbors_reconstruct_n" "', argument " "3"" of type '" "faiss::ReconstructFromNeighbors::storage_idx_t""'");
46299 arg3 =
static_cast< faiss::ReconstructFromNeighbors::storage_idx_t
>(val3);
46300 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
46301 if (!SWIG_IsOK(res4)) {
46302 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ReconstructFromNeighbors_reconstruct_n" "', argument " "4"" of type '" "float *""'");
46304 arg4 =
reinterpret_cast< float *
>(argp4);
46306 Py_BEGIN_ALLOW_THREADS
46310 PyEval_RestoreThread(_save);
46311 PyErr_SetString(PyExc_RuntimeError, e.
what());
46314 Py_END_ALLOW_THREADS
46316 resultobj = SWIG_Py_Void();
46323 SWIGINTERN PyObject *_wrap_ReconstructFromNeighbors_get_neighbor_table(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46324 PyObject *resultobj = 0;
46326 faiss::ReconstructFromNeighbors::storage_idx_t arg2 ;
46327 float *arg3 = (
float *) 0 ;
46334 PyObject * obj0 = 0 ;
46335 PyObject * obj1 = 0 ;
46336 PyObject * obj2 = 0 ;
46338 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ReconstructFromNeighbors_get_neighbor_table",&obj0,&obj1,&obj2)) SWIG_fail;
46339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
46340 if (!SWIG_IsOK(res1)) {
46341 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ReconstructFromNeighbors_get_neighbor_table" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors const *""'");
46344 ecode2 = SWIG_AsVal_int(obj1, &val2);
46345 if (!SWIG_IsOK(ecode2)) {
46346 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ReconstructFromNeighbors_get_neighbor_table" "', argument " "2"" of type '" "faiss::ReconstructFromNeighbors::storage_idx_t""'");
46348 arg2 =
static_cast< faiss::ReconstructFromNeighbors::storage_idx_t
>(val2);
46349 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
46350 if (!SWIG_IsOK(res3)) {
46351 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ReconstructFromNeighbors_get_neighbor_table" "', argument " "3"" of type '" "float *""'");
46353 arg3 =
reinterpret_cast< float *
>(argp3);
46355 Py_BEGIN_ALLOW_THREADS
46359 PyEval_RestoreThread(_save);
46360 PyErr_SetString(PyExc_RuntimeError, e.
what());
46363 Py_END_ALLOW_THREADS
46365 resultobj = SWIG_Py_Void();
46372 SWIGINTERN PyObject *_wrap_delete_ReconstructFromNeighbors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46373 PyObject *resultobj = 0;
46377 PyObject * obj0 = 0 ;
46379 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ReconstructFromNeighbors",&obj0)) SWIG_fail;
46380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ReconstructFromNeighbors, SWIG_POINTER_DISOWN | 0 );
46381 if (!SWIG_IsOK(res1)) {
46382 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ReconstructFromNeighbors" "', argument " "1"" of type '" "faiss::ReconstructFromNeighbors *""'");
46386 resultobj = SWIG_Py_Void();
46393 SWIGINTERN PyObject *ReconstructFromNeighbors_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46395 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
46396 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ReconstructFromNeighbors, SWIG_NewClientData(obj));
46397 return SWIG_Py_Void();
46400 SWIGINTERN PyObject *_wrap_IndexHNSW_hnsw_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46401 PyObject *resultobj = 0;
46408 PyObject * obj0 = 0 ;
46409 PyObject * obj1 = 0 ;
46411 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexHNSW_hnsw_set",&obj0,&obj1)) SWIG_fail;
46412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46413 if (!SWIG_IsOK(res1)) {
46414 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_hnsw_set" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46417 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
46418 if (!SWIG_IsOK(res2)) {
46419 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexHNSW_hnsw_set" "', argument " "2"" of type '" "faiss::HNSW *""'");
46422 if (arg1) (arg1)->hnsw = *arg2;
46423 resultobj = SWIG_Py_Void();
46430 SWIGINTERN PyObject *_wrap_IndexHNSW_hnsw_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46431 PyObject *resultobj = 0;
46435 PyObject * obj0 = 0 ;
46438 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_hnsw_get",&obj0)) SWIG_fail;
46439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46440 if (!SWIG_IsOK(res1)) {
46441 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_hnsw_get" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46445 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW, 0 | 0 );
46452 SWIGINTERN PyObject *_wrap_IndexHNSW_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46453 PyObject *resultobj = 0;
46460 PyObject * obj0 = 0 ;
46461 PyObject * obj1 = 0 ;
46463 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexHNSW_own_fields_set",&obj0,&obj1)) SWIG_fail;
46464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46465 if (!SWIG_IsOK(res1)) {
46466 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_own_fields_set" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46469 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46470 if (!SWIG_IsOK(ecode2)) {
46471 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_own_fields_set" "', argument " "2"" of type '" "bool""'");
46473 arg2 =
static_cast< bool >(val2);
46474 if (arg1) (arg1)->own_fields = arg2;
46475 resultobj = SWIG_Py_Void();
46482 SWIGINTERN PyObject *_wrap_IndexHNSW_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46483 PyObject *resultobj = 0;
46487 PyObject * obj0 = 0 ;
46490 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_own_fields_get",&obj0)) SWIG_fail;
46491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46492 if (!SWIG_IsOK(res1)) {
46493 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_own_fields_get" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46496 result = (bool) ((arg1)->own_fields);
46497 resultobj = SWIG_From_bool(static_cast< bool >(result));
46504 SWIGINTERN PyObject *_wrap_IndexHNSW_storage_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46505 PyObject *resultobj = 0;
46512 PyObject * obj0 = 0 ;
46513 PyObject * obj1 = 0 ;
46515 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexHNSW_storage_set",&obj0,&obj1)) SWIG_fail;
46516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46517 if (!SWIG_IsOK(res1)) {
46518 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_storage_set" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46521 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
46522 if (!SWIG_IsOK(res2)) {
46523 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexHNSW_storage_set" "', argument " "2"" of type '" "faiss::Index *""'");
46526 if (arg1) (arg1)->storage = arg2;
46527 resultobj = SWIG_Py_Void();
46534 SWIGINTERN PyObject *_wrap_IndexHNSW_storage_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46535 PyObject *resultobj = 0;
46539 PyObject * obj0 = 0 ;
46542 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_storage_get",&obj0)) SWIG_fail;
46543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46544 if (!SWIG_IsOK(res1)) {
46545 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_storage_get" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
46556 SWIGINTERN PyObject *_wrap_IndexHNSW_reconstruct_from_neighbors_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46557 PyObject *resultobj = 0;
46564 PyObject * obj0 = 0 ;
46565 PyObject * obj1 = 0 ;
46567 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexHNSW_reconstruct_from_neighbors_set",&obj0,&obj1)) SWIG_fail;
46568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46569 if (!SWIG_IsOK(res1)) {
46570 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_reconstruct_from_neighbors_set" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46573 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ReconstructFromNeighbors, SWIG_POINTER_DISOWN | 0 );
46574 if (!SWIG_IsOK(res2)) {
46575 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexHNSW_reconstruct_from_neighbors_set" "', argument " "2"" of type '" "faiss::ReconstructFromNeighbors *""'");
46578 if (arg1) (arg1)->reconstruct_from_neighbors = arg2;
46579 resultobj = SWIG_Py_Void();
46586 SWIGINTERN PyObject *_wrap_IndexHNSW_reconstruct_from_neighbors_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46587 PyObject *resultobj = 0;
46591 PyObject * obj0 = 0 ;
46594 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_reconstruct_from_neighbors_get",&obj0)) SWIG_fail;
46595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46596 if (!SWIG_IsOK(res1)) {
46597 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_reconstruct_from_neighbors_get" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ReconstructFromNeighbors, 0 | 0 );
46608 SWIGINTERN PyObject *_wrap_delete_IndexHNSW(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46609 PyObject *resultobj = 0;
46613 PyObject * obj0 = 0 ;
46615 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexHNSW",&obj0)) SWIG_fail;
46616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, SWIG_POINTER_DISOWN | 0 );
46617 if (!SWIG_IsOK(res1)) {
46618 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexHNSW" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46622 Py_BEGIN_ALLOW_THREADS
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_IndexHNSW_get_distance_computer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46640 PyObject *resultobj = 0;
46644 PyObject * obj0 = 0 ;
46647 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_get_distance_computer",&obj0)) SWIG_fail;
46648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46649 if (!SWIG_IsOK(res1)) {
46650 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_get_distance_computer" "', argument " "1"" of type '" "faiss::IndexHNSW 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_IndexHNSW_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46672 PyObject *resultobj = 0;
46675 float *arg3 = (
float *) 0 ;
46682 PyObject * obj0 = 0 ;
46683 PyObject * obj1 = 0 ;
46684 PyObject * obj2 = 0 ;
46686 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexHNSW_add",&obj0,&obj1,&obj2)) SWIG_fail;
46687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46688 if (!SWIG_IsOK(res1)) {
46689 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_add" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46692 ecode2 = SWIG_AsVal_long(obj1, &val2);
46693 if (!SWIG_IsOK(ecode2)) {
46694 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
46697 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
46698 if (!SWIG_IsOK(res3)) {
46699 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_add" "', argument " "3"" of type '" "float const *""'");
46701 arg3 =
reinterpret_cast< float *
>(argp3);
46703 Py_BEGIN_ALLOW_THREADS
46705 (arg1)->add(arg2,(
float const *)arg3);
46707 PyEval_RestoreThread(_save);
46708 PyErr_SetString(PyExc_RuntimeError, e.
what());
46711 Py_END_ALLOW_THREADS
46713 resultobj = SWIG_Py_Void();
46720 SWIGINTERN PyObject *_wrap_IndexHNSW_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46721 PyObject *resultobj = 0;
46724 float *arg3 = (
float *) 0 ;
46731 PyObject * obj0 = 0 ;
46732 PyObject * obj1 = 0 ;
46733 PyObject * obj2 = 0 ;
46735 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexHNSW_train",&obj0,&obj1,&obj2)) SWIG_fail;
46736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46737 if (!SWIG_IsOK(res1)) {
46738 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_train" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46741 ecode2 = SWIG_AsVal_long(obj1, &val2);
46742 if (!SWIG_IsOK(ecode2)) {
46743 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
46746 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
46747 if (!SWIG_IsOK(res3)) {
46748 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_train" "', argument " "3"" of type '" "float const *""'");
46750 arg3 =
reinterpret_cast< float *
>(argp3);
46752 Py_BEGIN_ALLOW_THREADS
46754 (arg1)->train(arg2,(
float const *)arg3);
46756 PyEval_RestoreThread(_save);
46757 PyErr_SetString(PyExc_RuntimeError, e.
what());
46760 Py_END_ALLOW_THREADS
46762 resultobj = SWIG_Py_Void();
46769 SWIGINTERN PyObject *_wrap_IndexHNSW_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46770 PyObject *resultobj = 0;
46773 float *arg3 = (
float *) 0 ;
46775 float *arg5 = (
float *) 0 ;
46789 PyObject * obj0 = 0 ;
46790 PyObject * obj1 = 0 ;
46791 PyObject * obj2 = 0 ;
46792 PyObject * obj3 = 0 ;
46793 PyObject * obj4 = 0 ;
46794 PyObject * obj5 = 0 ;
46796 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexHNSW_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
46797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46798 if (!SWIG_IsOK(res1)) {
46799 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_search" "', argument " "1"" of type '" "faiss::IndexHNSW const *""'");
46802 ecode2 = SWIG_AsVal_long(obj1, &val2);
46803 if (!SWIG_IsOK(ecode2)) {
46804 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
46807 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
46808 if (!SWIG_IsOK(res3)) {
46809 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_search" "', argument " "3"" of type '" "float const *""'");
46811 arg3 =
reinterpret_cast< float *
>(argp3);
46812 ecode4 = SWIG_AsVal_long(obj3, &val4);
46813 if (!SWIG_IsOK(ecode4)) {
46814 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexHNSW_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
46817 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
46818 if (!SWIG_IsOK(res5)) {
46819 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexHNSW_search" "', argument " "5"" of type '" "float *""'");
46821 arg5 =
reinterpret_cast< float *
>(argp5);
46822 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
46823 if (!SWIG_IsOK(res6)) {
46824 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexHNSW_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
46828 Py_BEGIN_ALLOW_THREADS
46830 ((
faiss::IndexHNSW const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
46832 PyEval_RestoreThread(_save);
46833 PyErr_SetString(PyExc_RuntimeError, e.
what());
46836 Py_END_ALLOW_THREADS
46838 resultobj = SWIG_Py_Void();
46845 SWIGINTERN PyObject *_wrap_IndexHNSW_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46846 PyObject *resultobj = 0;
46849 float *arg3 = (
float *) 0 ;
46856 PyObject * obj0 = 0 ;
46857 PyObject * obj1 = 0 ;
46858 PyObject * obj2 = 0 ;
46860 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexHNSW_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
46861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46862 if (!SWIG_IsOK(res1)) {
46863 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_reconstruct" "', argument " "1"" of type '" "faiss::IndexHNSW const *""'");
46866 ecode2 = SWIG_AsVal_long(obj1, &val2);
46867 if (!SWIG_IsOK(ecode2)) {
46868 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
46871 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
46872 if (!SWIG_IsOK(res3)) {
46873 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_reconstruct" "', argument " "3"" of type '" "float *""'");
46875 arg3 =
reinterpret_cast< float *
>(argp3);
46877 Py_BEGIN_ALLOW_THREADS
46881 PyEval_RestoreThread(_save);
46882 PyErr_SetString(PyExc_RuntimeError, e.
what());
46885 Py_END_ALLOW_THREADS
46887 resultobj = SWIG_Py_Void();
46894 SWIGINTERN PyObject *_wrap_IndexHNSW_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46895 PyObject *resultobj = 0;
46899 PyObject * obj0 = 0 ;
46901 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_reset",&obj0)) SWIG_fail;
46902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46903 if (!SWIG_IsOK(res1)) {
46904 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_reset" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46908 Py_BEGIN_ALLOW_THREADS
46912 PyEval_RestoreThread(_save);
46913 PyErr_SetString(PyExc_RuntimeError, e.
what());
46916 Py_END_ALLOW_THREADS
46918 resultobj = SWIG_Py_Void();
46925 SWIGINTERN PyObject *_wrap_IndexHNSW_shrink_level_0_neighbors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46926 PyObject *resultobj = 0;
46933 PyObject * obj0 = 0 ;
46934 PyObject * obj1 = 0 ;
46936 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexHNSW_shrink_level_0_neighbors",&obj0,&obj1)) SWIG_fail;
46937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
46938 if (!SWIG_IsOK(res1)) {
46939 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_shrink_level_0_neighbors" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
46942 ecode2 = SWIG_AsVal_int(obj1, &val2);
46943 if (!SWIG_IsOK(ecode2)) {
46944 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_shrink_level_0_neighbors" "', argument " "2"" of type '" "int""'");
46946 arg2 =
static_cast< int >(val2);
46948 Py_BEGIN_ALLOW_THREADS
46950 (arg1)->shrink_level_0_neighbors(arg2);
46952 PyEval_RestoreThread(_save);
46953 PyErr_SetString(PyExc_RuntimeError, e.
what());
46956 Py_END_ALLOW_THREADS
46958 resultobj = SWIG_Py_Void();
46965 SWIGINTERN PyObject *_wrap_IndexHNSW_search_level_0__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
46966 PyObject *resultobj = 0;
46969 float *arg3 = (
float *) 0 ;
46971 faiss::IndexHNSW::storage_idx_t *arg5 = (faiss::IndexHNSW::storage_idx_t *) 0 ;
46972 float *arg6 = (
float *) 0 ;
46973 float *arg7 = (
float *) 0 ;
46997 PyObject * obj0 = 0 ;
46998 PyObject * obj1 = 0 ;
46999 PyObject * obj2 = 0 ;
47000 PyObject * obj3 = 0 ;
47001 PyObject * obj4 = 0 ;
47002 PyObject * obj5 = 0 ;
47003 PyObject * obj6 = 0 ;
47004 PyObject * obj7 = 0 ;
47005 PyObject * obj8 = 0 ;
47006 PyObject * obj9 = 0 ;
47008 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOOO:IndexHNSW_search_level_0",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
47009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
47010 if (!SWIG_IsOK(res1)) {
47011 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_search_level_0" "', argument " "1"" of type '" "faiss::IndexHNSW const *""'");
47014 ecode2 = SWIG_AsVal_long(obj1, &val2);
47015 if (!SWIG_IsOK(ecode2)) {
47016 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_search_level_0" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
47019 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
47020 if (!SWIG_IsOK(res3)) {
47021 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_search_level_0" "', argument " "3"" of type '" "float const *""'");
47023 arg3 =
reinterpret_cast< float *
>(argp3);
47024 ecode4 = SWIG_AsVal_long(obj3, &val4);
47025 if (!SWIG_IsOK(ecode4)) {
47026 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexHNSW_search_level_0" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
47029 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
47030 if (!SWIG_IsOK(res5)) {
47031 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexHNSW_search_level_0" "', argument " "5"" of type '" "faiss::IndexHNSW::storage_idx_t const *""'");
47033 arg5 =
reinterpret_cast< faiss::IndexHNSW::storage_idx_t *
>(argp5);
47034 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
47035 if (!SWIG_IsOK(res6)) {
47036 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexHNSW_search_level_0" "', argument " "6"" of type '" "float const *""'");
47038 arg6 =
reinterpret_cast< float *
>(argp6);
47039 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
47040 if (!SWIG_IsOK(res7)) {
47041 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexHNSW_search_level_0" "', argument " "7"" of type '" "float *""'");
47043 arg7 =
reinterpret_cast< float *
>(argp7);
47044 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
47045 if (!SWIG_IsOK(res8)) {
47046 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexHNSW_search_level_0" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
47049 ecode9 = SWIG_AsVal_int(obj8, &val9);
47050 if (!SWIG_IsOK(ecode9)) {
47051 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexHNSW_search_level_0" "', argument " "9"" of type '" "int""'");
47053 arg9 =
static_cast< int >(val9);
47054 ecode10 = SWIG_AsVal_int(obj9, &val10);
47055 if (!SWIG_IsOK(ecode10)) {
47056 SWIG_exception_fail(SWIG_ArgError(ecode10),
"in method '" "IndexHNSW_search_level_0" "', argument " "10"" of type '" "int""'");
47058 arg10 =
static_cast< int >(val10);
47060 Py_BEGIN_ALLOW_THREADS
47062 ((
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);
47064 PyEval_RestoreThread(_save);
47065 PyErr_SetString(PyExc_RuntimeError, e.
what());
47068 Py_END_ALLOW_THREADS
47070 resultobj = SWIG_Py_Void();
47077 SWIGINTERN PyObject *_wrap_IndexHNSW_search_level_0__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47078 PyObject *resultobj = 0;
47081 float *arg3 = (
float *) 0 ;
47083 faiss::IndexHNSW::storage_idx_t *arg5 = (faiss::IndexHNSW::storage_idx_t *) 0 ;
47084 float *arg6 = (
float *) 0 ;
47085 float *arg7 = (
float *) 0 ;
47106 PyObject * obj0 = 0 ;
47107 PyObject * obj1 = 0 ;
47108 PyObject * obj2 = 0 ;
47109 PyObject * obj3 = 0 ;
47110 PyObject * obj4 = 0 ;
47111 PyObject * obj5 = 0 ;
47112 PyObject * obj6 = 0 ;
47113 PyObject * obj7 = 0 ;
47114 PyObject * obj8 = 0 ;
47116 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOO:IndexHNSW_search_level_0",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
47117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
47118 if (!SWIG_IsOK(res1)) {
47119 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_search_level_0" "', argument " "1"" of type '" "faiss::IndexHNSW const *""'");
47122 ecode2 = SWIG_AsVal_long(obj1, &val2);
47123 if (!SWIG_IsOK(ecode2)) {
47124 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_search_level_0" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
47127 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
47128 if (!SWIG_IsOK(res3)) {
47129 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_search_level_0" "', argument " "3"" of type '" "float const *""'");
47131 arg3 =
reinterpret_cast< float *
>(argp3);
47132 ecode4 = SWIG_AsVal_long(obj3, &val4);
47133 if (!SWIG_IsOK(ecode4)) {
47134 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexHNSW_search_level_0" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
47137 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
47138 if (!SWIG_IsOK(res5)) {
47139 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexHNSW_search_level_0" "', argument " "5"" of type '" "faiss::IndexHNSW::storage_idx_t const *""'");
47141 arg5 =
reinterpret_cast< faiss::IndexHNSW::storage_idx_t *
>(argp5);
47142 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
47143 if (!SWIG_IsOK(res6)) {
47144 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexHNSW_search_level_0" "', argument " "6"" of type '" "float const *""'");
47146 arg6 =
reinterpret_cast< float *
>(argp6);
47147 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
47148 if (!SWIG_IsOK(res7)) {
47149 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexHNSW_search_level_0" "', argument " "7"" of type '" "float *""'");
47151 arg7 =
reinterpret_cast< float *
>(argp7);
47152 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
47153 if (!SWIG_IsOK(res8)) {
47154 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexHNSW_search_level_0" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
47157 ecode9 = SWIG_AsVal_int(obj8, &val9);
47158 if (!SWIG_IsOK(ecode9)) {
47159 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexHNSW_search_level_0" "', argument " "9"" of type '" "int""'");
47161 arg9 =
static_cast< int >(val9);
47163 Py_BEGIN_ALLOW_THREADS
47165 ((
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);
47167 PyEval_RestoreThread(_save);
47168 PyErr_SetString(PyExc_RuntimeError, e.
what());
47171 Py_END_ALLOW_THREADS
47173 resultobj = SWIG_Py_Void();
47180 SWIGINTERN PyObject *_wrap_IndexHNSW_search_level_0__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47181 PyObject *resultobj = 0;
47184 float *arg3 = (
float *) 0 ;
47186 faiss::IndexHNSW::storage_idx_t *arg5 = (faiss::IndexHNSW::storage_idx_t *) 0 ;
47187 float *arg6 = (
float *) 0 ;
47188 float *arg7 = (
float *) 0 ;
47206 PyObject * obj0 = 0 ;
47207 PyObject * obj1 = 0 ;
47208 PyObject * obj2 = 0 ;
47209 PyObject * obj3 = 0 ;
47210 PyObject * obj4 = 0 ;
47211 PyObject * obj5 = 0 ;
47212 PyObject * obj6 = 0 ;
47213 PyObject * obj7 = 0 ;
47215 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:IndexHNSW_search_level_0",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
47216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
47217 if (!SWIG_IsOK(res1)) {
47218 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_search_level_0" "', argument " "1"" of type '" "faiss::IndexHNSW const *""'");
47221 ecode2 = SWIG_AsVal_long(obj1, &val2);
47222 if (!SWIG_IsOK(ecode2)) {
47223 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_search_level_0" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
47226 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
47227 if (!SWIG_IsOK(res3)) {
47228 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_search_level_0" "', argument " "3"" of type '" "float const *""'");
47230 arg3 =
reinterpret_cast< float *
>(argp3);
47231 ecode4 = SWIG_AsVal_long(obj3, &val4);
47232 if (!SWIG_IsOK(ecode4)) {
47233 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexHNSW_search_level_0" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
47236 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
47237 if (!SWIG_IsOK(res5)) {
47238 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexHNSW_search_level_0" "', argument " "5"" of type '" "faiss::IndexHNSW::storage_idx_t const *""'");
47240 arg5 =
reinterpret_cast< faiss::IndexHNSW::storage_idx_t *
>(argp5);
47241 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
47242 if (!SWIG_IsOK(res6)) {
47243 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexHNSW_search_level_0" "', argument " "6"" of type '" "float const *""'");
47245 arg6 =
reinterpret_cast< float *
>(argp6);
47246 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
47247 if (!SWIG_IsOK(res7)) {
47248 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexHNSW_search_level_0" "', argument " "7"" of type '" "float *""'");
47250 arg7 =
reinterpret_cast< float *
>(argp7);
47251 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
47252 if (!SWIG_IsOK(res8)) {
47253 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexHNSW_search_level_0" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
47257 Py_BEGIN_ALLOW_THREADS
47259 ((
faiss::IndexHNSW const *)arg1)->search_level_0(arg2,(
float const *)arg3,arg4,(faiss::IndexHNSW::storage_idx_t
const *)arg5,(
float const *)arg6,arg7,arg8);
47261 PyEval_RestoreThread(_save);
47262 PyErr_SetString(PyExc_RuntimeError, e.
what());
47265 Py_END_ALLOW_THREADS
47267 resultobj = SWIG_Py_Void();
47274 SWIGINTERN PyObject *_wrap_IndexHNSW_search_level_0(PyObject *
self, PyObject *args) {
47276 PyObject *argv[11] = {
47281 if (!PyTuple_Check(args)) SWIG_fail;
47282 argc = args ? PyObject_Length(args) : 0;
47283 for (ii = 0; (ii < 10) && (ii < argc); ii++) {
47284 argv[ii] = PyTuple_GET_ITEM(args,ii);
47289 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexHNSW, 0);
47290 _v = SWIG_CheckState(res);
47293 int res = SWIG_AsVal_long(argv[1], NULL);
47294 _v = SWIG_CheckState(res);
47298 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
47299 _v = SWIG_CheckState(res);
47302 int res = SWIG_AsVal_long(argv[3], NULL);
47303 _v = SWIG_CheckState(res);
47307 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0);
47308 _v = SWIG_CheckState(res);
47311 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
47312 _v = SWIG_CheckState(res);
47315 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
47316 _v = SWIG_CheckState(res);
47319 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
47320 _v = SWIG_CheckState(res);
47322 return _wrap_IndexHNSW_search_level_0__SWIG_2(
self, args);
47335 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexHNSW, 0);
47336 _v = SWIG_CheckState(res);
47339 int res = SWIG_AsVal_long(argv[1], NULL);
47340 _v = SWIG_CheckState(res);
47344 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
47345 _v = SWIG_CheckState(res);
47348 int res = SWIG_AsVal_long(argv[3], NULL);
47349 _v = SWIG_CheckState(res);
47353 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0);
47354 _v = SWIG_CheckState(res);
47357 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
47358 _v = SWIG_CheckState(res);
47361 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
47362 _v = SWIG_CheckState(res);
47365 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
47366 _v = SWIG_CheckState(res);
47369 int res = SWIG_AsVal_int(argv[8], NULL);
47370 _v = SWIG_CheckState(res);
47373 return _wrap_IndexHNSW_search_level_0__SWIG_1(
self, args);
47387 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexHNSW, 0);
47388 _v = SWIG_CheckState(res);
47391 int res = SWIG_AsVal_long(argv[1], NULL);
47392 _v = SWIG_CheckState(res);
47396 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
47397 _v = SWIG_CheckState(res);
47400 int res = SWIG_AsVal_long(argv[3], NULL);
47401 _v = SWIG_CheckState(res);
47405 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0);
47406 _v = SWIG_CheckState(res);
47409 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
47410 _v = SWIG_CheckState(res);
47413 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
47414 _v = SWIG_CheckState(res);
47417 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
47418 _v = SWIG_CheckState(res);
47421 int res = SWIG_AsVal_int(argv[8], NULL);
47422 _v = SWIG_CheckState(res);
47426 int res = SWIG_AsVal_int(argv[9], NULL);
47427 _v = SWIG_CheckState(res);
47430 return _wrap_IndexHNSW_search_level_0__SWIG_0(
self, args);
47444 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexHNSW_search_level_0'.\n"
47445 " Possible C/C++ prototypes are:\n"
47446 " 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"
47447 " 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"
47448 " 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");
47453 SWIGINTERN PyObject *_wrap_IndexHNSW_init_level_0_from_knngraph(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47454 PyObject *resultobj = 0;
47457 float *arg3 = (
float *) 0 ;
47467 PyObject * obj0 = 0 ;
47468 PyObject * obj1 = 0 ;
47469 PyObject * obj2 = 0 ;
47470 PyObject * obj3 = 0 ;
47472 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexHNSW_init_level_0_from_knngraph",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
47473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
47474 if (!SWIG_IsOK(res1)) {
47475 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_init_level_0_from_knngraph" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
47478 ecode2 = SWIG_AsVal_int(obj1, &val2);
47479 if (!SWIG_IsOK(ecode2)) {
47480 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_init_level_0_from_knngraph" "', argument " "2"" of type '" "int""'");
47482 arg2 =
static_cast< int >(val2);
47483 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
47484 if (!SWIG_IsOK(res3)) {
47485 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW_init_level_0_from_knngraph" "', argument " "3"" of type '" "float const *""'");
47487 arg3 =
reinterpret_cast< float *
>(argp3);
47488 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
47489 if (!SWIG_IsOK(res4)) {
47490 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexHNSW_init_level_0_from_knngraph" "', argument " "4"" of type '" "faiss::Index::idx_t const *""'");
47494 Py_BEGIN_ALLOW_THREADS
47496 (arg1)->init_level_0_from_knngraph(arg2,(
float const *)arg3,(
faiss::Index::idx_t const *)arg4);
47498 PyEval_RestoreThread(_save);
47499 PyErr_SetString(PyExc_RuntimeError, e.
what());
47502 Py_END_ALLOW_THREADS
47504 resultobj = SWIG_Py_Void();
47511 SWIGINTERN PyObject *_wrap_IndexHNSW_init_level_0_from_entry_points(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47512 PyObject *resultobj = 0;
47515 faiss::IndexHNSW::storage_idx_t *arg3 = (faiss::IndexHNSW::storage_idx_t *) 0 ;
47516 faiss::IndexHNSW::storage_idx_t *arg4 = (faiss::IndexHNSW::storage_idx_t *) 0 ;
47525 PyObject * obj0 = 0 ;
47526 PyObject * obj1 = 0 ;
47527 PyObject * obj2 = 0 ;
47528 PyObject * obj3 = 0 ;
47530 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexHNSW_init_level_0_from_entry_points",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
47531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
47532 if (!SWIG_IsOK(res1)) {
47533 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_init_level_0_from_entry_points" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
47536 ecode2 = SWIG_AsVal_int(obj1, &val2);
47537 if (!SWIG_IsOK(ecode2)) {
47538 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW_init_level_0_from_entry_points" "', argument " "2"" of type '" "int""'");
47540 arg2 =
static_cast< int >(val2);
47541 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
47542 if (!SWIG_IsOK(res3)) {
47543 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 *""'");
47545 arg3 =
reinterpret_cast< faiss::IndexHNSW::storage_idx_t *
>(argp3);
47546 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 );
47547 if (!SWIG_IsOK(res4)) {
47548 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 *""'");
47550 arg4 =
reinterpret_cast< faiss::IndexHNSW::storage_idx_t *
>(argp4);
47552 Py_BEGIN_ALLOW_THREADS
47554 (arg1)->init_level_0_from_entry_points(arg2,(faiss::IndexHNSW::storage_idx_t
const *)arg3,(faiss::IndexHNSW::storage_idx_t
const *)arg4);
47556 PyEval_RestoreThread(_save);
47557 PyErr_SetString(PyExc_RuntimeError, e.
what());
47560 Py_END_ALLOW_THREADS
47562 resultobj = SWIG_Py_Void();
47569 SWIGINTERN PyObject *_wrap_IndexHNSW_reorder_links(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47570 PyObject *resultobj = 0;
47574 PyObject * obj0 = 0 ;
47576 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_reorder_links",&obj0)) SWIG_fail;
47577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
47578 if (!SWIG_IsOK(res1)) {
47579 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_reorder_links" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
47583 Py_BEGIN_ALLOW_THREADS
47585 (arg1)->reorder_links();
47587 PyEval_RestoreThread(_save);
47588 PyErr_SetString(PyExc_RuntimeError, e.
what());
47591 Py_END_ALLOW_THREADS
47593 resultobj = SWIG_Py_Void();
47600 SWIGINTERN PyObject *_wrap_IndexHNSW_link_singletons(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47601 PyObject *resultobj = 0;
47605 PyObject * obj0 = 0 ;
47607 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW_link_singletons",&obj0)) SWIG_fail;
47608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW, 0 | 0 );
47609 if (!SWIG_IsOK(res1)) {
47610 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW_link_singletons" "', argument " "1"" of type '" "faiss::IndexHNSW *""'");
47614 Py_BEGIN_ALLOW_THREADS
47616 (arg1)->link_singletons();
47618 PyEval_RestoreThread(_save);
47619 PyErr_SetString(PyExc_RuntimeError, e.
what());
47622 Py_END_ALLOW_THREADS
47624 resultobj = SWIG_Py_Void();
47631 SWIGINTERN PyObject *IndexHNSW_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47633 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
47634 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexHNSW, SWIG_NewClientData(obj));
47635 return SWIG_Py_Void();
47638 SWIGINTERN PyObject *_wrap_new_IndexHNSWFlat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47639 PyObject *resultobj = 0;
47642 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexHNSWFlat")) SWIG_fail;
47644 Py_BEGIN_ALLOW_THREADS
47648 PyEval_RestoreThread(_save);
47649 PyErr_SetString(PyExc_RuntimeError, e.
what());
47652 Py_END_ALLOW_THREADS
47654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSWFlat, SWIG_POINTER_NEW | 0 );
47661 SWIGINTERN PyObject *_wrap_new_IndexHNSWFlat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47662 PyObject *resultobj = 0;
47669 PyObject * obj0 = 0 ;
47670 PyObject * obj1 = 0 ;
47673 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexHNSWFlat",&obj0,&obj1)) SWIG_fail;
47674 ecode1 = SWIG_AsVal_int(obj0, &val1);
47675 if (!SWIG_IsOK(ecode1)) {
47676 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexHNSWFlat" "', argument " "1"" of type '" "int""'");
47678 arg1 =
static_cast< int >(val1);
47679 ecode2 = SWIG_AsVal_int(obj1, &val2);
47680 if (!SWIG_IsOK(ecode2)) {
47681 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexHNSWFlat" "', argument " "2"" of type '" "int""'");
47683 arg2 =
static_cast< int >(val2);
47685 Py_BEGIN_ALLOW_THREADS
47689 PyEval_RestoreThread(_save);
47690 PyErr_SetString(PyExc_RuntimeError, e.
what());
47693 Py_END_ALLOW_THREADS
47695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSWFlat, SWIG_POINTER_NEW | 0 );
47702 SWIGINTERN PyObject *_wrap_new_IndexHNSWFlat(PyObject *
self, PyObject *args) {
47704 PyObject *argv[3] = {
47709 if (!PyTuple_Check(args)) SWIG_fail;
47710 argc = args ? PyObject_Length(args) : 0;
47711 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
47712 argv[ii] = PyTuple_GET_ITEM(args,ii);
47715 return _wrap_new_IndexHNSWFlat__SWIG_0(
self, args);
47720 int res = SWIG_AsVal_int(argv[0], NULL);
47721 _v = SWIG_CheckState(res);
47725 int res = SWIG_AsVal_int(argv[1], NULL);
47726 _v = SWIG_CheckState(res);
47729 return _wrap_new_IndexHNSWFlat__SWIG_1(
self, args);
47735 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexHNSWFlat'.\n"
47736 " Possible C/C++ prototypes are:\n"
47737 " faiss::IndexHNSWFlat::IndexHNSWFlat()\n"
47738 " faiss::IndexHNSWFlat::IndexHNSWFlat(int,int)\n");
47743 SWIGINTERN PyObject *_wrap_IndexHNSWFlat_get_distance_computer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47744 PyObject *resultobj = 0;
47748 PyObject * obj0 = 0 ;
47751 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSWFlat_get_distance_computer",&obj0)) SWIG_fail;
47752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSWFlat, 0 | 0 );
47753 if (!SWIG_IsOK(res1)) {
47754 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSWFlat_get_distance_computer" "', argument " "1"" of type '" "faiss::IndexHNSWFlat const *""'");
47758 Py_BEGIN_ALLOW_THREADS
47762 PyEval_RestoreThread(_save);
47763 PyErr_SetString(PyExc_RuntimeError, e.
what());
47766 Py_END_ALLOW_THREADS
47768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 | 0 );
47775 SWIGINTERN PyObject *_wrap_delete_IndexHNSWFlat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47776 PyObject *resultobj = 0;
47780 PyObject * obj0 = 0 ;
47782 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexHNSWFlat",&obj0)) SWIG_fail;
47783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSWFlat, SWIG_POINTER_DISOWN | 0 );
47784 if (!SWIG_IsOK(res1)) {
47785 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexHNSWFlat" "', argument " "1"" of type '" "faiss::IndexHNSWFlat *""'");
47789 resultobj = SWIG_Py_Void();
47796 SWIGINTERN PyObject *IndexHNSWFlat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47798 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
47799 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexHNSWFlat, SWIG_NewClientData(obj));
47800 return SWIG_Py_Void();
47803 SWIGINTERN PyObject *_wrap_new_IndexHNSWPQ__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47804 PyObject *resultobj = 0;
47807 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexHNSWPQ")) SWIG_fail;
47809 Py_BEGIN_ALLOW_THREADS
47813 PyEval_RestoreThread(_save);
47814 PyErr_SetString(PyExc_RuntimeError, e.
what());
47817 Py_END_ALLOW_THREADS
47819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSWPQ, SWIG_POINTER_NEW | 0 );
47826 SWIGINTERN PyObject *_wrap_new_IndexHNSWPQ__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47827 PyObject *resultobj = 0;
47837 PyObject * obj0 = 0 ;
47838 PyObject * obj1 = 0 ;
47839 PyObject * obj2 = 0 ;
47842 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexHNSWPQ",&obj0,&obj1,&obj2)) SWIG_fail;
47843 ecode1 = SWIG_AsVal_int(obj0, &val1);
47844 if (!SWIG_IsOK(ecode1)) {
47845 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexHNSWPQ" "', argument " "1"" of type '" "int""'");
47847 arg1 =
static_cast< int >(val1);
47848 ecode2 = SWIG_AsVal_int(obj1, &val2);
47849 if (!SWIG_IsOK(ecode2)) {
47850 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexHNSWPQ" "', argument " "2"" of type '" "int""'");
47852 arg2 =
static_cast< int >(val2);
47853 ecode3 = SWIG_AsVal_int(obj2, &val3);
47854 if (!SWIG_IsOK(ecode3)) {
47855 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexHNSWPQ" "', argument " "3"" of type '" "int""'");
47857 arg3 =
static_cast< int >(val3);
47859 Py_BEGIN_ALLOW_THREADS
47863 PyEval_RestoreThread(_save);
47864 PyErr_SetString(PyExc_RuntimeError, e.
what());
47867 Py_END_ALLOW_THREADS
47869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSWPQ, SWIG_POINTER_NEW | 0 );
47876 SWIGINTERN PyObject *_wrap_new_IndexHNSWPQ(PyObject *
self, PyObject *args) {
47878 PyObject *argv[4] = {
47883 if (!PyTuple_Check(args)) SWIG_fail;
47884 argc = args ? PyObject_Length(args) : 0;
47885 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
47886 argv[ii] = PyTuple_GET_ITEM(args,ii);
47889 return _wrap_new_IndexHNSWPQ__SWIG_0(
self, args);
47894 int res = SWIG_AsVal_int(argv[0], NULL);
47895 _v = SWIG_CheckState(res);
47899 int res = SWIG_AsVal_int(argv[1], NULL);
47900 _v = SWIG_CheckState(res);
47904 int res = SWIG_AsVal_int(argv[2], NULL);
47905 _v = SWIG_CheckState(res);
47908 return _wrap_new_IndexHNSWPQ__SWIG_1(
self, args);
47915 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexHNSWPQ'.\n"
47916 " Possible C/C++ prototypes are:\n"
47917 " faiss::IndexHNSWPQ::IndexHNSWPQ()\n"
47918 " faiss::IndexHNSWPQ::IndexHNSWPQ(int,int,int)\n");
47923 SWIGINTERN PyObject *_wrap_IndexHNSWPQ_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47924 PyObject *resultobj = 0;
47927 float *arg3 = (
float *) 0 ;
47934 PyObject * obj0 = 0 ;
47935 PyObject * obj1 = 0 ;
47936 PyObject * obj2 = 0 ;
47938 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexHNSWPQ_train",&obj0,&obj1,&obj2)) SWIG_fail;
47939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSWPQ, 0 | 0 );
47940 if (!SWIG_IsOK(res1)) {
47941 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSWPQ_train" "', argument " "1"" of type '" "faiss::IndexHNSWPQ *""'");
47944 ecode2 = SWIG_AsVal_long(obj1, &val2);
47945 if (!SWIG_IsOK(ecode2)) {
47946 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSWPQ_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
47949 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
47950 if (!SWIG_IsOK(res3)) {
47951 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSWPQ_train" "', argument " "3"" of type '" "float const *""'");
47953 arg3 =
reinterpret_cast< float *
>(argp3);
47955 Py_BEGIN_ALLOW_THREADS
47957 (arg1)->train(arg2,(
float const *)arg3);
47959 PyEval_RestoreThread(_save);
47960 PyErr_SetString(PyExc_RuntimeError, e.
what());
47963 Py_END_ALLOW_THREADS
47965 resultobj = SWIG_Py_Void();
47972 SWIGINTERN PyObject *_wrap_IndexHNSWPQ_get_distance_computer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
47973 PyObject *resultobj = 0;
47977 PyObject * obj0 = 0 ;
47980 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSWPQ_get_distance_computer",&obj0)) SWIG_fail;
47981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSWPQ, 0 | 0 );
47982 if (!SWIG_IsOK(res1)) {
47983 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSWPQ_get_distance_computer" "', argument " "1"" of type '" "faiss::IndexHNSWPQ const *""'");
47987 Py_BEGIN_ALLOW_THREADS
47991 PyEval_RestoreThread(_save);
47992 PyErr_SetString(PyExc_RuntimeError, e.
what());
47995 Py_END_ALLOW_THREADS
47997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 | 0 );
48004 SWIGINTERN PyObject *_wrap_delete_IndexHNSWPQ(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48005 PyObject *resultobj = 0;
48009 PyObject * obj0 = 0 ;
48011 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexHNSWPQ",&obj0)) SWIG_fail;
48012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSWPQ, SWIG_POINTER_DISOWN | 0 );
48013 if (!SWIG_IsOK(res1)) {
48014 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexHNSWPQ" "', argument " "1"" of type '" "faiss::IndexHNSWPQ *""'");
48018 resultobj = SWIG_Py_Void();
48025 SWIGINTERN PyObject *IndexHNSWPQ_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48027 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
48028 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexHNSWPQ, SWIG_NewClientData(obj));
48029 return SWIG_Py_Void();
48032 SWIGINTERN PyObject *_wrap_new_IndexHNSWSQ__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48033 PyObject *resultobj = 0;
48036 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexHNSWSQ")) SWIG_fail;
48038 Py_BEGIN_ALLOW_THREADS
48042 PyEval_RestoreThread(_save);
48043 PyErr_SetString(PyExc_RuntimeError, e.
what());
48046 Py_END_ALLOW_THREADS
48048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSWSQ, SWIG_POINTER_NEW | 0 );
48055 SWIGINTERN PyObject *_wrap_new_IndexHNSWSQ__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48056 PyObject *resultobj = 0;
48066 PyObject * obj0 = 0 ;
48067 PyObject * obj1 = 0 ;
48068 PyObject * obj2 = 0 ;
48071 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexHNSWSQ",&obj0,&obj1,&obj2)) SWIG_fail;
48072 ecode1 = SWIG_AsVal_int(obj0, &val1);
48073 if (!SWIG_IsOK(ecode1)) {
48074 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexHNSWSQ" "', argument " "1"" of type '" "int""'");
48076 arg1 =
static_cast< int >(val1);
48077 ecode2 = SWIG_AsVal_int(obj1, &val2);
48078 if (!SWIG_IsOK(ecode2)) {
48079 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexHNSWSQ" "', argument " "2"" of type '" "faiss::ScalarQuantizer::QuantizerType""'");
48082 ecode3 = SWIG_AsVal_int(obj2, &val3);
48083 if (!SWIG_IsOK(ecode3)) {
48084 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexHNSWSQ" "', argument " "3"" of type '" "int""'");
48086 arg3 =
static_cast< int >(val3);
48088 Py_BEGIN_ALLOW_THREADS
48092 PyEval_RestoreThread(_save);
48093 PyErr_SetString(PyExc_RuntimeError, e.
what());
48096 Py_END_ALLOW_THREADS
48098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSWSQ, SWIG_POINTER_NEW | 0 );
48105 SWIGINTERN PyObject *_wrap_new_IndexHNSWSQ(PyObject *
self, PyObject *args) {
48107 PyObject *argv[4] = {
48112 if (!PyTuple_Check(args)) SWIG_fail;
48113 argc = args ? PyObject_Length(args) : 0;
48114 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
48115 argv[ii] = PyTuple_GET_ITEM(args,ii);
48118 return _wrap_new_IndexHNSWSQ__SWIG_0(
self, args);
48123 int res = SWIG_AsVal_int(argv[0], NULL);
48124 _v = SWIG_CheckState(res);
48128 int res = SWIG_AsVal_int(argv[1], NULL);
48129 _v = SWIG_CheckState(res);
48133 int res = SWIG_AsVal_int(argv[2], NULL);
48134 _v = SWIG_CheckState(res);
48137 return _wrap_new_IndexHNSWSQ__SWIG_1(
self, args);
48144 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexHNSWSQ'.\n"
48145 " Possible C/C++ prototypes are:\n"
48146 " faiss::IndexHNSWSQ::IndexHNSWSQ()\n"
48147 " faiss::IndexHNSWSQ::IndexHNSWSQ(int,faiss::ScalarQuantizer::QuantizerType,int)\n");
48152 SWIGINTERN PyObject *_wrap_IndexHNSWSQ_get_distance_computer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48153 PyObject *resultobj = 0;
48157 PyObject * obj0 = 0 ;
48160 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSWSQ_get_distance_computer",&obj0)) SWIG_fail;
48161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSWSQ, 0 | 0 );
48162 if (!SWIG_IsOK(res1)) {
48163 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSWSQ_get_distance_computer" "', argument " "1"" of type '" "faiss::IndexHNSWSQ const *""'");
48167 Py_BEGIN_ALLOW_THREADS
48171 PyEval_RestoreThread(_save);
48172 PyErr_SetString(PyExc_RuntimeError, e.
what());
48175 Py_END_ALLOW_THREADS
48177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 | 0 );
48184 SWIGINTERN PyObject *_wrap_delete_IndexHNSWSQ(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48185 PyObject *resultobj = 0;
48189 PyObject * obj0 = 0 ;
48191 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexHNSWSQ",&obj0)) SWIG_fail;
48192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSWSQ, SWIG_POINTER_DISOWN | 0 );
48193 if (!SWIG_IsOK(res1)) {
48194 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexHNSWSQ" "', argument " "1"" of type '" "faiss::IndexHNSWSQ *""'");
48198 resultobj = SWIG_Py_Void();
48205 SWIGINTERN PyObject *IndexHNSWSQ_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48207 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
48208 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexHNSWSQ, SWIG_NewClientData(obj));
48209 return SWIG_Py_Void();
48212 SWIGINTERN PyObject *_wrap_new_IndexHNSW2Level__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48213 PyObject *resultobj = 0;
48216 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexHNSW2Level")) SWIG_fail;
48218 Py_BEGIN_ALLOW_THREADS
48222 PyEval_RestoreThread(_save);
48223 PyErr_SetString(PyExc_RuntimeError, e.
what());
48226 Py_END_ALLOW_THREADS
48228 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSW2Level, SWIG_POINTER_NEW | 0 );
48235 SWIGINTERN PyObject *_wrap_new_IndexHNSW2Level__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48236 PyObject *resultobj = 0;
48249 PyObject * obj0 = 0 ;
48250 PyObject * obj1 = 0 ;
48251 PyObject * obj2 = 0 ;
48252 PyObject * obj3 = 0 ;
48255 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_IndexHNSW2Level",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
48256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
48257 if (!SWIG_IsOK(res1)) {
48258 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexHNSW2Level" "', argument " "1"" of type '" "faiss::Index *""'");
48261 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
48262 if (!SWIG_IsOK(ecode2)) {
48263 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexHNSW2Level" "', argument " "2"" of type '" "size_t""'");
48265 arg2 =
static_cast< size_t >(val2);
48266 ecode3 = SWIG_AsVal_int(obj2, &val3);
48267 if (!SWIG_IsOK(ecode3)) {
48268 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexHNSW2Level" "', argument " "3"" of type '" "int""'");
48270 arg3 =
static_cast< int >(val3);
48271 ecode4 = SWIG_AsVal_int(obj3, &val4);
48272 if (!SWIG_IsOK(ecode4)) {
48273 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexHNSW2Level" "', argument " "4"" of type '" "int""'");
48275 arg4 =
static_cast< int >(val4);
48277 Py_BEGIN_ALLOW_THREADS
48281 PyEval_RestoreThread(_save);
48282 PyErr_SetString(PyExc_RuntimeError, e.
what());
48285 Py_END_ALLOW_THREADS
48287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexHNSW2Level, SWIG_POINTER_NEW | 0 );
48294 SWIGINTERN PyObject *_wrap_new_IndexHNSW2Level(PyObject *
self, PyObject *args) {
48296 PyObject *argv[5] = {
48301 if (!PyTuple_Check(args)) SWIG_fail;
48302 argc = args ? PyObject_Length(args) : 0;
48303 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
48304 argv[ii] = PyTuple_GET_ITEM(args,ii);
48307 return _wrap_new_IndexHNSW2Level__SWIG_0(
self, args);
48312 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
48313 _v = SWIG_CheckState(res);
48316 int res = SWIG_AsVal_size_t(argv[1], NULL);
48317 _v = SWIG_CheckState(res);
48321 int res = SWIG_AsVal_int(argv[2], NULL);
48322 _v = SWIG_CheckState(res);
48326 int res = SWIG_AsVal_int(argv[3], NULL);
48327 _v = SWIG_CheckState(res);
48330 return _wrap_new_IndexHNSW2Level__SWIG_1(
self, args);
48338 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexHNSW2Level'.\n"
48339 " Possible C/C++ prototypes are:\n"
48340 " faiss::IndexHNSW2Level::IndexHNSW2Level()\n"
48341 " faiss::IndexHNSW2Level::IndexHNSW2Level(faiss::Index *,size_t,int,int)\n");
48346 SWIGINTERN PyObject *_wrap_IndexHNSW2Level_get_distance_computer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48347 PyObject *resultobj = 0;
48351 PyObject * obj0 = 0 ;
48354 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW2Level_get_distance_computer",&obj0)) SWIG_fail;
48355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW2Level, 0 | 0 );
48356 if (!SWIG_IsOK(res1)) {
48357 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW2Level_get_distance_computer" "', argument " "1"" of type '" "faiss::IndexHNSW2Level const *""'");
48361 Py_BEGIN_ALLOW_THREADS
48365 PyEval_RestoreThread(_save);
48366 PyErr_SetString(PyExc_RuntimeError, e.
what());
48369 Py_END_ALLOW_THREADS
48371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 | 0 );
48378 SWIGINTERN PyObject *_wrap_IndexHNSW2Level_flip_to_ivf(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48379 PyObject *resultobj = 0;
48383 PyObject * obj0 = 0 ;
48385 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexHNSW2Level_flip_to_ivf",&obj0)) SWIG_fail;
48386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW2Level, 0 | 0 );
48387 if (!SWIG_IsOK(res1)) {
48388 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW2Level_flip_to_ivf" "', argument " "1"" of type '" "faiss::IndexHNSW2Level *""'");
48392 Py_BEGIN_ALLOW_THREADS
48394 (arg1)->flip_to_ivf();
48396 PyEval_RestoreThread(_save);
48397 PyErr_SetString(PyExc_RuntimeError, e.
what());
48400 Py_END_ALLOW_THREADS
48402 resultobj = SWIG_Py_Void();
48409 SWIGINTERN PyObject *_wrap_IndexHNSW2Level_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48410 PyObject *resultobj = 0;
48413 float *arg3 = (
float *) 0 ;
48415 float *arg5 = (
float *) 0 ;
48429 PyObject * obj0 = 0 ;
48430 PyObject * obj1 = 0 ;
48431 PyObject * obj2 = 0 ;
48432 PyObject * obj3 = 0 ;
48433 PyObject * obj4 = 0 ;
48434 PyObject * obj5 = 0 ;
48436 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexHNSW2Level_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
48437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW2Level, 0 | 0 );
48438 if (!SWIG_IsOK(res1)) {
48439 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexHNSW2Level_search" "', argument " "1"" of type '" "faiss::IndexHNSW2Level const *""'");
48442 ecode2 = SWIG_AsVal_long(obj1, &val2);
48443 if (!SWIG_IsOK(ecode2)) {
48444 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexHNSW2Level_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
48447 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
48448 if (!SWIG_IsOK(res3)) {
48449 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexHNSW2Level_search" "', argument " "3"" of type '" "float const *""'");
48451 arg3 =
reinterpret_cast< float *
>(argp3);
48452 ecode4 = SWIG_AsVal_long(obj3, &val4);
48453 if (!SWIG_IsOK(ecode4)) {
48454 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexHNSW2Level_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
48457 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
48458 if (!SWIG_IsOK(res5)) {
48459 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexHNSW2Level_search" "', argument " "5"" of type '" "float *""'");
48461 arg5 =
reinterpret_cast< float *
>(argp5);
48462 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
48463 if (!SWIG_IsOK(res6)) {
48464 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexHNSW2Level_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
48468 Py_BEGIN_ALLOW_THREADS
48472 PyEval_RestoreThread(_save);
48473 PyErr_SetString(PyExc_RuntimeError, e.
what());
48476 Py_END_ALLOW_THREADS
48478 resultobj = SWIG_Py_Void();
48485 SWIGINTERN PyObject *_wrap_delete_IndexHNSW2Level(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48486 PyObject *resultobj = 0;
48490 PyObject * obj0 = 0 ;
48492 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexHNSW2Level",&obj0)) SWIG_fail;
48493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexHNSW2Level, SWIG_POINTER_DISOWN | 0 );
48494 if (!SWIG_IsOK(res1)) {
48495 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexHNSW2Level" "', argument " "1"" of type '" "faiss::IndexHNSW2Level *""'");
48499 resultobj = SWIG_Py_Void();
48506 SWIGINTERN PyObject *IndexHNSW2Level_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48508 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
48509 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexHNSW2Level, SWIG_NewClientData(obj));
48510 return SWIG_Py_Void();
48513 SWIGINTERN PyObject *_wrap_new_IndexIVFFlat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48514 PyObject *resultobj = 0;
48527 PyObject * obj0 = 0 ;
48528 PyObject * obj1 = 0 ;
48529 PyObject * obj2 = 0 ;
48530 PyObject * obj3 = 0 ;
48533 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_IndexIVFFlat",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
48534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
48535 if (!SWIG_IsOK(res1)) {
48536 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFFlat" "', argument " "1"" of type '" "faiss::Index *""'");
48539 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
48540 if (!SWIG_IsOK(ecode2)) {
48541 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFFlat" "', argument " "2"" of type '" "size_t""'");
48543 arg2 =
static_cast< size_t >(val2);
48544 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
48545 if (!SWIG_IsOK(ecode3)) {
48546 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFFlat" "', argument " "3"" of type '" "size_t""'");
48548 arg3 =
static_cast< size_t >(val3);
48549 ecode4 = SWIG_AsVal_int(obj3, &val4);
48550 if (!SWIG_IsOK(ecode4)) {
48551 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexIVFFlat" "', argument " "4"" of type '" "faiss::MetricType""'");
48555 Py_BEGIN_ALLOW_THREADS
48559 PyEval_RestoreThread(_save);
48560 PyErr_SetString(PyExc_RuntimeError, e.
what());
48563 Py_END_ALLOW_THREADS
48565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFFlat, SWIG_POINTER_NEW | 0 );
48572 SWIGINTERN PyObject *_wrap_new_IndexIVFFlat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48573 PyObject *resultobj = 0;
48583 PyObject * obj0 = 0 ;
48584 PyObject * obj1 = 0 ;
48585 PyObject * obj2 = 0 ;
48588 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexIVFFlat",&obj0,&obj1,&obj2)) SWIG_fail;
48589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
48590 if (!SWIG_IsOK(res1)) {
48591 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFFlat" "', argument " "1"" of type '" "faiss::Index *""'");
48594 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
48595 if (!SWIG_IsOK(ecode2)) {
48596 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFFlat" "', argument " "2"" of type '" "size_t""'");
48598 arg2 =
static_cast< size_t >(val2);
48599 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
48600 if (!SWIG_IsOK(ecode3)) {
48601 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFFlat" "', argument " "3"" of type '" "size_t""'");
48603 arg3 =
static_cast< size_t >(val3);
48605 Py_BEGIN_ALLOW_THREADS
48609 PyEval_RestoreThread(_save);
48610 PyErr_SetString(PyExc_RuntimeError, e.
what());
48613 Py_END_ALLOW_THREADS
48615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFFlat, SWIG_POINTER_NEW | 0 );
48622 SWIGINTERN PyObject *_wrap_IndexIVFFlat_add_core(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48623 PyObject *resultobj = 0;
48626 float *arg3 = (
float *) 0 ;
48627 long *arg4 = (
long *) 0 ;
48628 long *arg5 = (
long *) 0 ;
48639 PyObject * obj0 = 0 ;
48640 PyObject * obj1 = 0 ;
48641 PyObject * obj2 = 0 ;
48642 PyObject * obj3 = 0 ;
48643 PyObject * obj4 = 0 ;
48645 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFFlat_add_core",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
48646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
48647 if (!SWIG_IsOK(res1)) {
48648 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlat_add_core" "', argument " "1"" of type '" "faiss::IndexIVFFlat *""'");
48651 ecode2 = SWIG_AsVal_long(obj1, &val2);
48652 if (!SWIG_IsOK(ecode2)) {
48653 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlat_add_core" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
48656 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
48657 if (!SWIG_IsOK(res3)) {
48658 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlat_add_core" "', argument " "3"" of type '" "float const *""'");
48660 arg3 =
reinterpret_cast< float *
>(argp3);
48661 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
48662 if (!SWIG_IsOK(res4)) {
48663 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlat_add_core" "', argument " "4"" of type '" "long const *""'");
48665 arg4 =
reinterpret_cast< long *
>(argp4);
48666 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
48667 if (!SWIG_IsOK(res5)) {
48668 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFFlat_add_core" "', argument " "5"" of type '" "long const *""'");
48670 arg5 =
reinterpret_cast< long *
>(argp5);
48672 Py_BEGIN_ALLOW_THREADS
48674 (arg1)->add_core(arg2,(
float const *)arg3,(
long const *)arg4,(
long const *)arg5);
48675 } catch(faiss::FaissException & e) {
48676 PyEval_RestoreThread(_save);
48677 PyErr_SetString(PyExc_RuntimeError, e.what());
48680 Py_END_ALLOW_THREADS
48682 resultobj = SWIG_Py_Void();
48689 SWIGINTERN PyObject *_wrap_IndexIVFFlat_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48690 PyObject *resultobj = 0;
48693 float *arg3 = (
float *) 0 ;
48694 long *arg4 = (
long *) 0 ;
48703 PyObject * obj0 = 0 ;
48704 PyObject * obj1 = 0 ;
48705 PyObject * obj2 = 0 ;
48706 PyObject * obj3 = 0 ;
48708 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFFlat_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
48709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
48710 if (!SWIG_IsOK(res1)) {
48711 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlat_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIVFFlat *""'");
48714 ecode2 = SWIG_AsVal_long(obj1, &val2);
48715 if (!SWIG_IsOK(ecode2)) {
48716 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlat_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
48719 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
48720 if (!SWIG_IsOK(res3)) {
48721 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlat_add_with_ids" "', argument " "3"" of type '" "float const *""'");
48723 arg3 =
reinterpret_cast< float *
>(argp3);
48724 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
48725 if (!SWIG_IsOK(res4)) {
48726 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlat_add_with_ids" "', argument " "4"" of type '" "long const *""'");
48728 arg4 =
reinterpret_cast< long *
>(argp4);
48730 Py_BEGIN_ALLOW_THREADS
48732 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
48734 PyEval_RestoreThread(_save);
48735 PyErr_SetString(PyExc_RuntimeError, e.
what());
48738 Py_END_ALLOW_THREADS
48740 resultobj = SWIG_Py_Void();
48747 SWIGINTERN PyObject *_wrap_IndexIVFFlat_encode_vectors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48748 PyObject *resultobj = 0;
48751 float *arg3 = (
float *) 0 ;
48753 uint8_t *arg5 = (uint8_t *) 0 ;
48764 PyObject * obj0 = 0 ;
48765 PyObject * obj1 = 0 ;
48766 PyObject * obj2 = 0 ;
48767 PyObject * obj3 = 0 ;
48768 PyObject * obj4 = 0 ;
48770 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFFlat_encode_vectors",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
48771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
48772 if (!SWIG_IsOK(res1)) {
48773 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlat_encode_vectors" "', argument " "1"" of type '" "faiss::IndexIVFFlat const *""'");
48776 ecode2 = SWIG_AsVal_long(obj1, &val2);
48777 if (!SWIG_IsOK(ecode2)) {
48778 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlat_encode_vectors" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
48781 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
48782 if (!SWIG_IsOK(res3)) {
48783 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlat_encode_vectors" "', argument " "3"" of type '" "float const *""'");
48785 arg3 =
reinterpret_cast< float *
>(argp3);
48786 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
48787 if (!SWIG_IsOK(res4)) {
48788 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlat_encode_vectors" "', argument " "4"" of type '" "faiss::Index::idx_t const *""'");
48791 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
48792 if (!SWIG_IsOK(res5)) {
48793 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFFlat_encode_vectors" "', argument " "5"" of type '" "uint8_t *""'");
48795 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
48797 Py_BEGIN_ALLOW_THREADS
48801 PyEval_RestoreThread(_save);
48802 PyErr_SetString(PyExc_RuntimeError, e.
what());
48805 Py_END_ALLOW_THREADS
48807 resultobj = SWIG_Py_Void();
48814 SWIGINTERN PyObject *_wrap_IndexIVFFlat_get_InvertedListScanner(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48815 PyObject *resultobj = 0;
48822 PyObject * obj0 = 0 ;
48823 PyObject * obj1 = 0 ;
48826 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFFlat_get_InvertedListScanner",&obj0,&obj1)) SWIG_fail;
48827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
48828 if (!SWIG_IsOK(res1)) {
48829 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlat_get_InvertedListScanner" "', argument " "1"" of type '" "faiss::IndexIVFFlat const *""'");
48832 ecode2 = SWIG_AsVal_bool(obj1, &val2);
48833 if (!SWIG_IsOK(ecode2)) {
48834 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlat_get_InvertedListScanner" "', argument " "2"" of type '" "bool""'");
48836 arg2 =
static_cast< bool >(val2);
48838 Py_BEGIN_ALLOW_THREADS
48842 PyEval_RestoreThread(_save);
48843 PyErr_SetString(PyExc_RuntimeError, e.
what());
48846 Py_END_ALLOW_THREADS
48848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedListScanner, 0 | 0 );
48855 SWIGINTERN PyObject *_wrap_IndexIVFFlat_range_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48856 PyObject *resultobj = 0;
48859 float *arg3 = (
float *) 0 ;
48872 PyObject * obj0 = 0 ;
48873 PyObject * obj1 = 0 ;
48874 PyObject * obj2 = 0 ;
48875 PyObject * obj3 = 0 ;
48876 PyObject * obj4 = 0 ;
48878 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFFlat_range_search",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
48879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
48880 if (!SWIG_IsOK(res1)) {
48881 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlat_range_search" "', argument " "1"" of type '" "faiss::IndexIVFFlat const *""'");
48884 ecode2 = SWIG_AsVal_long(obj1, &val2);
48885 if (!SWIG_IsOK(ecode2)) {
48886 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlat_range_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
48889 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
48890 if (!SWIG_IsOK(res3)) {
48891 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlat_range_search" "', argument " "3"" of type '" "float const *""'");
48893 arg3 =
reinterpret_cast< float *
>(argp3);
48894 ecode4 = SWIG_AsVal_float(obj3, &val4);
48895 if (!SWIG_IsOK(ecode4)) {
48896 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVFFlat_range_search" "', argument " "4"" of type '" "float""'");
48898 arg4 =
static_cast< float >(val4);
48899 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
48900 if (!SWIG_IsOK(res5)) {
48901 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFFlat_range_search" "', argument " "5"" of type '" "faiss::RangeSearchResult *""'");
48905 Py_BEGIN_ALLOW_THREADS
48909 PyEval_RestoreThread(_save);
48910 PyErr_SetString(PyExc_RuntimeError, e.
what());
48913 Py_END_ALLOW_THREADS
48915 resultobj = SWIG_Py_Void();
48922 SWIGINTERN PyObject *_wrap_IndexIVFFlat_update_vectors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48923 PyObject *resultobj = 0;
48927 float *arg4 = (
float *) 0 ;
48936 PyObject * obj0 = 0 ;
48937 PyObject * obj1 = 0 ;
48938 PyObject * obj2 = 0 ;
48939 PyObject * obj3 = 0 ;
48941 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFFlat_update_vectors",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
48942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
48943 if (!SWIG_IsOK(res1)) {
48944 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlat_update_vectors" "', argument " "1"" of type '" "faiss::IndexIVFFlat *""'");
48947 ecode2 = SWIG_AsVal_int(obj1, &val2);
48948 if (!SWIG_IsOK(ecode2)) {
48949 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlat_update_vectors" "', argument " "2"" of type '" "int""'");
48951 arg2 =
static_cast< int >(val2);
48952 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
48953 if (!SWIG_IsOK(res3)) {
48954 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlat_update_vectors" "', argument " "3"" of type '" "faiss::Index::idx_t *""'");
48957 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
48958 if (!SWIG_IsOK(res4)) {
48959 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlat_update_vectors" "', argument " "4"" of type '" "float const *""'");
48961 arg4 =
reinterpret_cast< float *
>(argp4);
48963 Py_BEGIN_ALLOW_THREADS
48965 (arg1)->update_vectors(arg2,arg3,(
float const *)arg4);
48967 PyEval_RestoreThread(_save);
48968 PyErr_SetString(PyExc_RuntimeError, e.
what());
48971 Py_END_ALLOW_THREADS
48973 resultobj = SWIG_Py_Void();
48980 SWIGINTERN PyObject *_wrap_IndexIVFFlat_reconstruct_from_offset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
48981 PyObject *resultobj = 0;
48985 float *arg4 = (
float *) 0 ;
48994 PyObject * obj0 = 0 ;
48995 PyObject * obj1 = 0 ;
48996 PyObject * obj2 = 0 ;
48997 PyObject * obj3 = 0 ;
48999 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFFlat_reconstruct_from_offset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
49000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
49001 if (!SWIG_IsOK(res1)) {
49002 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlat_reconstruct_from_offset" "', argument " "1"" of type '" "faiss::IndexIVFFlat const *""'");
49005 ecode2 = SWIG_AsVal_long(obj1, &val2);
49006 if (!SWIG_IsOK(ecode2)) {
49007 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlat_reconstruct_from_offset" "', argument " "2"" of type '" "long""'");
49009 arg2 =
static_cast< long >(val2);
49010 ecode3 = SWIG_AsVal_long(obj2, &val3);
49011 if (!SWIG_IsOK(ecode3)) {
49012 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVFFlat_reconstruct_from_offset" "', argument " "3"" of type '" "long""'");
49014 arg3 =
static_cast< long >(val3);
49015 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
49016 if (!SWIG_IsOK(res4)) {
49017 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlat_reconstruct_from_offset" "', argument " "4"" of type '" "float *""'");
49019 arg4 =
reinterpret_cast< float *
>(argp4);
49021 Py_BEGIN_ALLOW_THREADS
49025 PyEval_RestoreThread(_save);
49026 PyErr_SetString(PyExc_RuntimeError, e.
what());
49029 Py_END_ALLOW_THREADS
49031 resultobj = SWIG_Py_Void();
49038 SWIGINTERN PyObject *_wrap_new_IndexIVFFlat__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49039 PyObject *resultobj = 0;
49042 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIVFFlat")) SWIG_fail;
49044 Py_BEGIN_ALLOW_THREADS
49048 PyEval_RestoreThread(_save);
49049 PyErr_SetString(PyExc_RuntimeError, e.
what());
49052 Py_END_ALLOW_THREADS
49054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFFlat, SWIG_POINTER_NEW | 0 );
49061 SWIGINTERN PyObject *_wrap_new_IndexIVFFlat(PyObject *
self, PyObject *args) {
49063 PyObject *argv[5] = {
49068 if (!PyTuple_Check(args)) SWIG_fail;
49069 argc = args ? PyObject_Length(args) : 0;
49070 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
49071 argv[ii] = PyTuple_GET_ITEM(args,ii);
49074 return _wrap_new_IndexIVFFlat__SWIG_2(
self, args);
49079 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
49080 _v = SWIG_CheckState(res);
49083 int res = SWIG_AsVal_size_t(argv[1], NULL);
49084 _v = SWIG_CheckState(res);
49088 int res = SWIG_AsVal_size_t(argv[2], NULL);
49089 _v = SWIG_CheckState(res);
49092 return _wrap_new_IndexIVFFlat__SWIG_1(
self, args);
49100 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
49101 _v = SWIG_CheckState(res);
49104 int res = SWIG_AsVal_size_t(argv[1], NULL);
49105 _v = SWIG_CheckState(res);
49109 int res = SWIG_AsVal_size_t(argv[2], NULL);
49110 _v = SWIG_CheckState(res);
49114 int res = SWIG_AsVal_int(argv[3], NULL);
49115 _v = SWIG_CheckState(res);
49118 return _wrap_new_IndexIVFFlat__SWIG_0(
self, args);
49126 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexIVFFlat'.\n"
49127 " Possible C/C++ prototypes are:\n"
49128 " faiss::IndexIVFFlat::IndexIVFFlat(faiss::Index *,size_t,size_t,faiss::MetricType)\n"
49129 " faiss::IndexIVFFlat::IndexIVFFlat(faiss::Index *,size_t,size_t)\n"
49130 " faiss::IndexIVFFlat::IndexIVFFlat()\n");
49135 SWIGINTERN PyObject *_wrap_delete_IndexIVFFlat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49136 PyObject *resultobj = 0;
49140 PyObject * obj0 = 0 ;
49142 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVFFlat",&obj0)) SWIG_fail;
49143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlat, SWIG_POINTER_DISOWN | 0 );
49144 if (!SWIG_IsOK(res1)) {
49145 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVFFlat" "', argument " "1"" of type '" "faiss::IndexIVFFlat *""'");
49149 resultobj = SWIG_Py_Void();
49156 SWIGINTERN PyObject *IndexIVFFlat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49158 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
49159 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVFFlat, SWIG_NewClientData(obj));
49160 return SWIG_Py_Void();
49163 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_instances_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49164 PyObject *resultobj = 0;
49166 std::unordered_multimap< faiss::Index::idx_t,faiss::Index::idx_t > arg2 ;
49171 PyObject * obj0 = 0 ;
49172 PyObject * obj1 = 0 ;
49174 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFFlatDedup_instances_set",&obj0,&obj1)) SWIG_fail;
49175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
49176 if (!SWIG_IsOK(res1)) {
49177 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_instances_set" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup *""'");
49181 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__unordered_multimapT_long_long_t, 0 | 0);
49182 if (!SWIG_IsOK(res2)) {
49183 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 >""'");
49186 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 >""'");
49188 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);
49190 if (SWIG_IsNewObj(res2))
delete temp;
49193 if (arg1) (arg1)->instances = arg2;
49194 resultobj = SWIG_Py_Void();
49201 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_instances_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49202 PyObject *resultobj = 0;
49206 PyObject * obj0 = 0 ;
49207 std::unordered_multimap< faiss::Index::idx_t,faiss::Index::idx_t > result;
49209 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFFlatDedup_instances_get",&obj0)) SWIG_fail;
49210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
49211 if (!SWIG_IsOK(res1)) {
49212 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_instances_get" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup *""'");
49215 result = ((arg1)->instances);
49216 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 );
49223 SWIGINTERN PyObject *_wrap_new_IndexIVFFlatDedup__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49224 PyObject *resultobj = 0;
49237 PyObject * obj0 = 0 ;
49238 PyObject * obj1 = 0 ;
49239 PyObject * obj2 = 0 ;
49240 PyObject * obj3 = 0 ;
49243 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_IndexIVFFlatDedup",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
49244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
49245 if (!SWIG_IsOK(res1)) {
49246 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFFlatDedup" "', argument " "1"" of type '" "faiss::Index *""'");
49249 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
49250 if (!SWIG_IsOK(ecode2)) {
49251 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFFlatDedup" "', argument " "2"" of type '" "size_t""'");
49253 arg2 =
static_cast< size_t >(val2);
49254 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
49255 if (!SWIG_IsOK(ecode3)) {
49256 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFFlatDedup" "', argument " "3"" of type '" "size_t""'");
49258 arg3 =
static_cast< size_t >(val3);
49259 ecode4 = SWIG_AsVal_int(obj3, &val4);
49260 if (!SWIG_IsOK(ecode4)) {
49261 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexIVFFlatDedup" "', argument " "4"" of type '" "faiss::MetricType""'");
49265 Py_BEGIN_ALLOW_THREADS
49269 PyEval_RestoreThread(_save);
49270 PyErr_SetString(PyExc_RuntimeError, e.
what());
49273 Py_END_ALLOW_THREADS
49275 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFFlatDedup, SWIG_POINTER_NEW | 0 );
49282 SWIGINTERN PyObject *_wrap_new_IndexIVFFlatDedup__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49283 PyObject *resultobj = 0;
49293 PyObject * obj0 = 0 ;
49294 PyObject * obj1 = 0 ;
49295 PyObject * obj2 = 0 ;
49298 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexIVFFlatDedup",&obj0,&obj1,&obj2)) SWIG_fail;
49299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
49300 if (!SWIG_IsOK(res1)) {
49301 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFFlatDedup" "', argument " "1"" of type '" "faiss::Index *""'");
49304 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
49305 if (!SWIG_IsOK(ecode2)) {
49306 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFFlatDedup" "', argument " "2"" of type '" "size_t""'");
49308 arg2 =
static_cast< size_t >(val2);
49309 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
49310 if (!SWIG_IsOK(ecode3)) {
49311 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFFlatDedup" "', argument " "3"" of type '" "size_t""'");
49313 arg3 =
static_cast< size_t >(val3);
49315 Py_BEGIN_ALLOW_THREADS
49319 PyEval_RestoreThread(_save);
49320 PyErr_SetString(PyExc_RuntimeError, e.
what());
49323 Py_END_ALLOW_THREADS
49325 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFFlatDedup, SWIG_POINTER_NEW | 0 );
49332 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49333 PyObject *resultobj = 0;
49336 float *arg3 = (
float *) 0 ;
49343 PyObject * obj0 = 0 ;
49344 PyObject * obj1 = 0 ;
49345 PyObject * obj2 = 0 ;
49347 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVFFlatDedup_train",&obj0,&obj1,&obj2)) SWIG_fail;
49348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
49349 if (!SWIG_IsOK(res1)) {
49350 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_train" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup *""'");
49353 ecode2 = SWIG_AsVal_long(obj1, &val2);
49354 if (!SWIG_IsOK(ecode2)) {
49355 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlatDedup_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
49358 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
49359 if (!SWIG_IsOK(res3)) {
49360 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlatDedup_train" "', argument " "3"" of type '" "float const *""'");
49362 arg3 =
reinterpret_cast< float *
>(argp3);
49364 Py_BEGIN_ALLOW_THREADS
49366 (arg1)->train(arg2,(
float const *)arg3);
49368 PyEval_RestoreThread(_save);
49369 PyErr_SetString(PyExc_RuntimeError, e.
what());
49372 Py_END_ALLOW_THREADS
49374 resultobj = SWIG_Py_Void();
49381 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49382 PyObject *resultobj = 0;
49385 float *arg3 = (
float *) 0 ;
49386 long *arg4 = (
long *) 0 ;
49395 PyObject * obj0 = 0 ;
49396 PyObject * obj1 = 0 ;
49397 PyObject * obj2 = 0 ;
49398 PyObject * obj3 = 0 ;
49400 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFFlatDedup_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
49401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
49402 if (!SWIG_IsOK(res1)) {
49403 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup *""'");
49406 ecode2 = SWIG_AsVal_long(obj1, &val2);
49407 if (!SWIG_IsOK(ecode2)) {
49408 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlatDedup_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
49411 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
49412 if (!SWIG_IsOK(res3)) {
49413 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlatDedup_add_with_ids" "', argument " "3"" of type '" "float const *""'");
49415 arg3 =
reinterpret_cast< float *
>(argp3);
49416 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
49417 if (!SWIG_IsOK(res4)) {
49418 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlatDedup_add_with_ids" "', argument " "4"" of type '" "long const *""'");
49420 arg4 =
reinterpret_cast< long *
>(argp4);
49422 Py_BEGIN_ALLOW_THREADS
49424 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
49426 PyEval_RestoreThread(_save);
49427 PyErr_SetString(PyExc_RuntimeError, e.
what());
49430 Py_END_ALLOW_THREADS
49432 resultobj = SWIG_Py_Void();
49439 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_search_preassigned__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49440 PyObject *resultobj = 0;
49443 float *arg3 = (
float *) 0 ;
49446 float *arg6 = (
float *) 0 ;
49447 float *arg7 = (
float *) 0 ;
49471 PyObject * obj0 = 0 ;
49472 PyObject * obj1 = 0 ;
49473 PyObject * obj2 = 0 ;
49474 PyObject * obj3 = 0 ;
49475 PyObject * obj4 = 0 ;
49476 PyObject * obj5 = 0 ;
49477 PyObject * obj6 = 0 ;
49478 PyObject * obj7 = 0 ;
49479 PyObject * obj8 = 0 ;
49480 PyObject * obj9 = 0 ;
49482 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOOO:IndexIVFFlatDedup_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
49483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
49484 if (!SWIG_IsOK(res1)) {
49485 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup const *""'");
49488 ecode2 = SWIG_AsVal_long(obj1, &val2);
49489 if (!SWIG_IsOK(ecode2)) {
49490 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
49493 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
49494 if (!SWIG_IsOK(res3)) {
49495 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "3"" of type '" "float const *""'");
49497 arg3 =
reinterpret_cast< float *
>(argp3);
49498 ecode4 = SWIG_AsVal_long(obj3, &val4);
49499 if (!SWIG_IsOK(ecode4)) {
49500 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
49503 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
49504 if (!SWIG_IsOK(res5)) {
49505 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "5"" of type '" "faiss::Index::idx_t const *""'");
49508 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
49509 if (!SWIG_IsOK(res6)) {
49510 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "6"" of type '" "float const *""'");
49512 arg6 =
reinterpret_cast< float *
>(argp6);
49513 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
49514 if (!SWIG_IsOK(res7)) {
49515 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "7"" of type '" "float *""'");
49517 arg7 =
reinterpret_cast< float *
>(argp7);
49518 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
49519 if (!SWIG_IsOK(res8)) {
49520 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
49523 ecode9 = SWIG_AsVal_bool(obj8, &val9);
49524 if (!SWIG_IsOK(ecode9)) {
49525 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "9"" of type '" "bool""'");
49527 arg9 =
static_cast< bool >(val9);
49528 res10 = SWIG_ConvertPtr(obj9, &argp10,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
49529 if (!SWIG_IsOK(res10)) {
49530 SWIG_exception_fail(SWIG_ArgError(res10),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "10"" of type '" "faiss::IVFSearchParameters const *""'");
49534 Py_BEGIN_ALLOW_THREADS
49538 PyEval_RestoreThread(_save);
49539 PyErr_SetString(PyExc_RuntimeError, e.
what());
49542 Py_END_ALLOW_THREADS
49544 resultobj = SWIG_Py_Void();
49551 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_search_preassigned__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49552 PyObject *resultobj = 0;
49555 float *arg3 = (
float *) 0 ;
49558 float *arg6 = (
float *) 0 ;
49559 float *arg7 = (
float *) 0 ;
49580 PyObject * obj0 = 0 ;
49581 PyObject * obj1 = 0 ;
49582 PyObject * obj2 = 0 ;
49583 PyObject * obj3 = 0 ;
49584 PyObject * obj4 = 0 ;
49585 PyObject * obj5 = 0 ;
49586 PyObject * obj6 = 0 ;
49587 PyObject * obj7 = 0 ;
49588 PyObject * obj8 = 0 ;
49590 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOO:IndexIVFFlatDedup_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
49591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
49592 if (!SWIG_IsOK(res1)) {
49593 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup const *""'");
49596 ecode2 = SWIG_AsVal_long(obj1, &val2);
49597 if (!SWIG_IsOK(ecode2)) {
49598 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
49601 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
49602 if (!SWIG_IsOK(res3)) {
49603 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "3"" of type '" "float const *""'");
49605 arg3 =
reinterpret_cast< float *
>(argp3);
49606 ecode4 = SWIG_AsVal_long(obj3, &val4);
49607 if (!SWIG_IsOK(ecode4)) {
49608 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
49611 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
49612 if (!SWIG_IsOK(res5)) {
49613 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "5"" of type '" "faiss::Index::idx_t const *""'");
49616 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
49617 if (!SWIG_IsOK(res6)) {
49618 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "6"" of type '" "float const *""'");
49620 arg6 =
reinterpret_cast< float *
>(argp6);
49621 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
49622 if (!SWIG_IsOK(res7)) {
49623 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "7"" of type '" "float *""'");
49625 arg7 =
reinterpret_cast< float *
>(argp7);
49626 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
49627 if (!SWIG_IsOK(res8)) {
49628 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
49631 ecode9 = SWIG_AsVal_bool(obj8, &val9);
49632 if (!SWIG_IsOK(ecode9)) {
49633 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexIVFFlatDedup_search_preassigned" "', argument " "9"" of type '" "bool""'");
49635 arg9 =
static_cast< bool >(val9);
49637 Py_BEGIN_ALLOW_THREADS
49641 PyEval_RestoreThread(_save);
49642 PyErr_SetString(PyExc_RuntimeError, e.
what());
49645 Py_END_ALLOW_THREADS
49647 resultobj = SWIG_Py_Void();
49654 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_search_preassigned(PyObject *
self, PyObject *args) {
49656 PyObject *argv[11] = {
49661 if (!PyTuple_Check(args)) SWIG_fail;
49662 argc = args ? PyObject_Length(args) : 0;
49663 for (ii = 0; (ii < 10) && (ii < argc); ii++) {
49664 argv[ii] = PyTuple_GET_ITEM(args,ii);
49669 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0);
49670 _v = SWIG_CheckState(res);
49673 int res = SWIG_AsVal_long(argv[1], NULL);
49674 _v = SWIG_CheckState(res);
49678 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
49679 _v = SWIG_CheckState(res);
49682 int res = SWIG_AsVal_long(argv[3], NULL);
49683 _v = SWIG_CheckState(res);
49687 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
49688 _v = SWIG_CheckState(res);
49691 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
49692 _v = SWIG_CheckState(res);
49695 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
49696 _v = SWIG_CheckState(res);
49699 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
49700 _v = SWIG_CheckState(res);
49703 int res = SWIG_AsVal_bool(argv[8], NULL);
49704 _v = SWIG_CheckState(res);
49707 return _wrap_IndexIVFFlatDedup_search_preassigned__SWIG_1(
self, args);
49721 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0);
49722 _v = SWIG_CheckState(res);
49725 int res = SWIG_AsVal_long(argv[1], NULL);
49726 _v = SWIG_CheckState(res);
49730 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
49731 _v = SWIG_CheckState(res);
49734 int res = SWIG_AsVal_long(argv[3], NULL);
49735 _v = SWIG_CheckState(res);
49739 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
49740 _v = SWIG_CheckState(res);
49743 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
49744 _v = SWIG_CheckState(res);
49747 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
49748 _v = SWIG_CheckState(res);
49751 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
49752 _v = SWIG_CheckState(res);
49755 int res = SWIG_AsVal_bool(argv[8], NULL);
49756 _v = SWIG_CheckState(res);
49760 int res = SWIG_ConvertPtr(argv[9], &vptr, SWIGTYPE_p_faiss__IVFSearchParameters, 0);
49761 _v = SWIG_CheckState(res);
49763 return _wrap_IndexIVFFlatDedup_search_preassigned__SWIG_0(
self, args);
49777 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVFFlatDedup_search_preassigned'.\n"
49778 " Possible C/C++ prototypes are:\n"
49779 " 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"
49780 " 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");
49785 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49786 PyObject *resultobj = 0;
49793 PyObject * obj0 = 0 ;
49794 PyObject * obj1 = 0 ;
49797 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFFlatDedup_remove_ids",&obj0,&obj1)) SWIG_fail;
49798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
49799 if (!SWIG_IsOK(res1)) {
49800 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_remove_ids" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup *""'");
49803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
49804 if (!SWIG_IsOK(res2)) {
49805 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFFlatDedup_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
49808 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVFFlatDedup_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
49812 Py_BEGIN_ALLOW_THREADS
49816 PyEval_RestoreThread(_save);
49817 PyErr_SetString(PyExc_RuntimeError, e.
what());
49820 Py_END_ALLOW_THREADS
49822 resultobj = SWIG_From_long(static_cast< long >(result));
49829 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_range_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49830 PyObject *resultobj = 0;
49833 float *arg3 = (
float *) 0 ;
49846 PyObject * obj0 = 0 ;
49847 PyObject * obj1 = 0 ;
49848 PyObject * obj2 = 0 ;
49849 PyObject * obj3 = 0 ;
49850 PyObject * obj4 = 0 ;
49852 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFFlatDedup_range_search",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
49853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
49854 if (!SWIG_IsOK(res1)) {
49855 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_range_search" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup const *""'");
49858 ecode2 = SWIG_AsVal_long(obj1, &val2);
49859 if (!SWIG_IsOK(ecode2)) {
49860 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlatDedup_range_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
49863 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
49864 if (!SWIG_IsOK(res3)) {
49865 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlatDedup_range_search" "', argument " "3"" of type '" "float const *""'");
49867 arg3 =
reinterpret_cast< float *
>(argp3);
49868 ecode4 = SWIG_AsVal_float(obj3, &val4);
49869 if (!SWIG_IsOK(ecode4)) {
49870 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVFFlatDedup_range_search" "', argument " "4"" of type '" "float""'");
49872 arg4 =
static_cast< float >(val4);
49873 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
49874 if (!SWIG_IsOK(res5)) {
49875 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFFlatDedup_range_search" "', argument " "5"" of type '" "faiss::RangeSearchResult *""'");
49879 Py_BEGIN_ALLOW_THREADS
49883 PyEval_RestoreThread(_save);
49884 PyErr_SetString(PyExc_RuntimeError, e.
what());
49887 Py_END_ALLOW_THREADS
49889 resultobj = SWIG_Py_Void();
49896 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_update_vectors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49897 PyObject *resultobj = 0;
49901 float *arg4 = (
float *) 0 ;
49910 PyObject * obj0 = 0 ;
49911 PyObject * obj1 = 0 ;
49912 PyObject * obj2 = 0 ;
49913 PyObject * obj3 = 0 ;
49915 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFFlatDedup_update_vectors",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
49916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
49917 if (!SWIG_IsOK(res1)) {
49918 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_update_vectors" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup *""'");
49921 ecode2 = SWIG_AsVal_int(obj1, &val2);
49922 if (!SWIG_IsOK(ecode2)) {
49923 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlatDedup_update_vectors" "', argument " "2"" of type '" "int""'");
49925 arg2 =
static_cast< int >(val2);
49926 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
49927 if (!SWIG_IsOK(res3)) {
49928 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFFlatDedup_update_vectors" "', argument " "3"" of type '" "faiss::Index::idx_t *""'");
49931 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
49932 if (!SWIG_IsOK(res4)) {
49933 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlatDedup_update_vectors" "', argument " "4"" of type '" "float const *""'");
49935 arg4 =
reinterpret_cast< float *
>(argp4);
49937 Py_BEGIN_ALLOW_THREADS
49939 (arg1)->update_vectors(arg2,arg3,(
float const *)arg4);
49941 PyEval_RestoreThread(_save);
49942 PyErr_SetString(PyExc_RuntimeError, e.
what());
49945 Py_END_ALLOW_THREADS
49947 resultobj = SWIG_Py_Void();
49954 SWIGINTERN PyObject *_wrap_IndexIVFFlatDedup_reconstruct_from_offset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
49955 PyObject *resultobj = 0;
49959 float *arg4 = (
float *) 0 ;
49968 PyObject * obj0 = 0 ;
49969 PyObject * obj1 = 0 ;
49970 PyObject * obj2 = 0 ;
49971 PyObject * obj3 = 0 ;
49973 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFFlatDedup_reconstruct_from_offset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
49974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, 0 | 0 );
49975 if (!SWIG_IsOK(res1)) {
49976 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFFlatDedup_reconstruct_from_offset" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup const *""'");
49979 ecode2 = SWIG_AsVal_long(obj1, &val2);
49980 if (!SWIG_IsOK(ecode2)) {
49981 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFFlatDedup_reconstruct_from_offset" "', argument " "2"" of type '" "long""'");
49983 arg2 =
static_cast< long >(val2);
49984 ecode3 = SWIG_AsVal_long(obj2, &val3);
49985 if (!SWIG_IsOK(ecode3)) {
49986 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVFFlatDedup_reconstruct_from_offset" "', argument " "3"" of type '" "long""'");
49988 arg3 =
static_cast< long >(val3);
49989 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
49990 if (!SWIG_IsOK(res4)) {
49991 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFFlatDedup_reconstruct_from_offset" "', argument " "4"" of type '" "float *""'");
49993 arg4 =
reinterpret_cast< float *
>(argp4);
49995 Py_BEGIN_ALLOW_THREADS
49999 PyEval_RestoreThread(_save);
50000 PyErr_SetString(PyExc_RuntimeError, e.
what());
50003 Py_END_ALLOW_THREADS
50005 resultobj = SWIG_Py_Void();
50012 SWIGINTERN PyObject *_wrap_new_IndexIVFFlatDedup__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50013 PyObject *resultobj = 0;
50016 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIVFFlatDedup")) SWIG_fail;
50018 Py_BEGIN_ALLOW_THREADS
50022 PyEval_RestoreThread(_save);
50023 PyErr_SetString(PyExc_RuntimeError, e.
what());
50026 Py_END_ALLOW_THREADS
50028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFFlatDedup, SWIG_POINTER_NEW | 0 );
50035 SWIGINTERN PyObject *_wrap_new_IndexIVFFlatDedup(PyObject *
self, PyObject *args) {
50037 PyObject *argv[5] = {
50042 if (!PyTuple_Check(args)) SWIG_fail;
50043 argc = args ? PyObject_Length(args) : 0;
50044 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
50045 argv[ii] = PyTuple_GET_ITEM(args,ii);
50048 return _wrap_new_IndexIVFFlatDedup__SWIG_2(
self, args);
50053 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
50054 _v = SWIG_CheckState(res);
50057 int res = SWIG_AsVal_size_t(argv[1], NULL);
50058 _v = SWIG_CheckState(res);
50062 int res = SWIG_AsVal_size_t(argv[2], NULL);
50063 _v = SWIG_CheckState(res);
50066 return _wrap_new_IndexIVFFlatDedup__SWIG_1(
self, args);
50074 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
50075 _v = SWIG_CheckState(res);
50078 int res = SWIG_AsVal_size_t(argv[1], NULL);
50079 _v = SWIG_CheckState(res);
50083 int res = SWIG_AsVal_size_t(argv[2], NULL);
50084 _v = SWIG_CheckState(res);
50088 int res = SWIG_AsVal_int(argv[3], NULL);
50089 _v = SWIG_CheckState(res);
50092 return _wrap_new_IndexIVFFlatDedup__SWIG_0(
self, args);
50100 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexIVFFlatDedup'.\n"
50101 " Possible C/C++ prototypes are:\n"
50102 " faiss::IndexIVFFlatDedup::IndexIVFFlatDedup(faiss::Index *,size_t,size_t,faiss::MetricType)\n"
50103 " faiss::IndexIVFFlatDedup::IndexIVFFlatDedup(faiss::Index *,size_t,size_t)\n"
50104 " faiss::IndexIVFFlatDedup::IndexIVFFlatDedup()\n");
50109 SWIGINTERN PyObject *_wrap_delete_IndexIVFFlatDedup(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50110 PyObject *resultobj = 0;
50114 PyObject * obj0 = 0 ;
50116 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVFFlatDedup",&obj0)) SWIG_fail;
50117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFFlatDedup, SWIG_POINTER_DISOWN | 0 );
50118 if (!SWIG_IsOK(res1)) {
50119 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVFFlatDedup" "', argument " "1"" of type '" "faiss::IndexIVFFlatDedup *""'");
50123 resultobj = SWIG_Py_Void();
50130 SWIGINTERN PyObject *IndexIVFFlatDedup_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50132 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
50133 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVFFlatDedup, SWIG_NewClientData(obj));
50134 return SWIG_Py_Void();
50137 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_lists_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50138 PyObject *resultobj = 0;
50140 std::vector< faiss::OnDiskInvertedLists::List > *arg2 = (std::vector< faiss::OnDiskInvertedLists::List > *) 0 ;
50145 PyObject * obj0 = 0 ;
50146 PyObject * obj1 = 0 ;
50148 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_lists_set",&obj0,&obj1)) SWIG_fail;
50149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50150 if (!SWIG_IsOK(res1)) {
50151 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_lists_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50154 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__OnDiskInvertedLists__List_t, 0 | 0 );
50155 if (!SWIG_IsOK(res2)) {
50156 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_lists_set" "', argument " "2"" of type '" "std::vector< faiss::OnDiskInvertedLists::List > *""'");
50158 arg2 =
reinterpret_cast< std::vector< faiss::OnDiskInvertedLists::List > *
>(argp2);
50159 if (arg1) (arg1)->lists = *arg2;
50160 resultobj = SWIG_Py_Void();
50167 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_lists_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50168 PyObject *resultobj = 0;
50172 PyObject * obj0 = 0 ;
50173 std::vector< faiss::OnDiskInvertedLists::List > *result = 0 ;
50175 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_lists_get",&obj0)) SWIG_fail;
50176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50177 if (!SWIG_IsOK(res1)) {
50178 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_lists_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50181 result = (std::vector< faiss::OnDiskInvertedLists::List > *)& ((arg1)->lists);
50182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__OnDiskInvertedLists__List_t, 0 | 0 );
50189 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_slots_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50190 PyObject *resultobj = 0;
50192 std::list< faiss::OnDiskInvertedLists::Slot > *arg2 = (std::list< faiss::OnDiskInvertedLists::Slot > *) 0 ;
50197 PyObject * obj0 = 0 ;
50198 PyObject * obj1 = 0 ;
50200 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_slots_set",&obj0,&obj1)) SWIG_fail;
50201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50202 if (!SWIG_IsOK(res1)) {
50203 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_slots_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t, 0 | 0 );
50207 if (!SWIG_IsOK(res2)) {
50208 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_slots_set" "', argument " "2"" of type '" "std::list< faiss::OnDiskInvertedLists::Slot > *""'");
50210 arg2 =
reinterpret_cast< std::list< faiss::OnDiskInvertedLists::Slot > *
>(argp2);
50211 if (arg1) (arg1)->slots = *arg2;
50212 resultobj = SWIG_Py_Void();
50219 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_slots_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50220 PyObject *resultobj = 0;
50224 PyObject * obj0 = 0 ;
50225 std::list< faiss::OnDiskInvertedLists::Slot > *result = 0 ;
50227 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_slots_get",&obj0)) SWIG_fail;
50228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50229 if (!SWIG_IsOK(res1)) {
50230 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_slots_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50233 result = (std::list< faiss::OnDiskInvertedLists::Slot > *)& ((arg1)->slots);
50234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t, 0 | 0 );
50241 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_filename_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50242 PyObject *resultobj = 0;
50244 std::string *arg2 = 0 ;
50247 int res2 = SWIG_OLDOBJ ;
50248 PyObject * obj0 = 0 ;
50249 PyObject * obj1 = 0 ;
50251 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_filename_set",&obj0,&obj1)) SWIG_fail;
50252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50253 if (!SWIG_IsOK(res1)) {
50254 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_filename_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50258 std::string *ptr = (std::string *)0;
50259 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
50260 if (!SWIG_IsOK(res2)) {
50261 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_filename_set" "', argument " "2"" of type '" "std::string const &""'");
50264 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OnDiskInvertedLists_filename_set" "', argument " "2"" of type '" "std::string const &""'");
50268 if (arg1) (arg1)->filename = *arg2;
50269 resultobj = SWIG_Py_Void();
50270 if (SWIG_IsNewObj(res2))
delete arg2;
50273 if (SWIG_IsNewObj(res2))
delete arg2;
50278 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_filename_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50279 PyObject *resultobj = 0;
50283 PyObject * obj0 = 0 ;
50284 std::string *result = 0 ;
50286 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_filename_get",&obj0)) SWIG_fail;
50287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50288 if (!SWIG_IsOK(res1)) {
50289 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_filename_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50292 result = (std::string *) & ((arg1)->filename);
50293 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
50300 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_totsize_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50301 PyObject *resultobj = 0;
50308 PyObject * obj0 = 0 ;
50309 PyObject * obj1 = 0 ;
50311 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_totsize_set",&obj0,&obj1)) SWIG_fail;
50312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50313 if (!SWIG_IsOK(res1)) {
50314 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_totsize_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50317 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50318 if (!SWIG_IsOK(ecode2)) {
50319 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_totsize_set" "', argument " "2"" of type '" "size_t""'");
50321 arg2 =
static_cast< size_t >(val2);
50322 if (arg1) (arg1)->totsize = arg2;
50323 resultobj = SWIG_Py_Void();
50330 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_totsize_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50331 PyObject *resultobj = 0;
50335 PyObject * obj0 = 0 ;
50338 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_totsize_get",&obj0)) SWIG_fail;
50339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50340 if (!SWIG_IsOK(res1)) {
50341 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_totsize_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50344 result = (size_t) ((arg1)->totsize);
50345 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
50352 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_ptr_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50353 PyObject *resultobj = 0;
50355 uint8_t *arg2 = (uint8_t *) 0 ;
50360 PyObject * obj0 = 0 ;
50361 PyObject * obj1 = 0 ;
50363 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_ptr_set",&obj0,&obj1)) SWIG_fail;
50364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50365 if (!SWIG_IsOK(res1)) {
50366 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_ptr_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50369 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, SWIG_POINTER_DISOWN | 0 );
50370 if (!SWIG_IsOK(res2)) {
50371 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_ptr_set" "', argument " "2"" of type '" "uint8_t *""'");
50373 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
50374 if (arg1) (arg1)->ptr = arg2;
50375 resultobj = SWIG_Py_Void();
50382 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_ptr_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50383 PyObject *resultobj = 0;
50387 PyObject * obj0 = 0 ;
50388 uint8_t *result = 0 ;
50390 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_ptr_get",&obj0)) SWIG_fail;
50391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50392 if (!SWIG_IsOK(res1)) {
50393 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_ptr_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50396 result = (uint8_t *) ((arg1)->ptr);
50397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
50404 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_read_only_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50405 PyObject *resultobj = 0;
50412 PyObject * obj0 = 0 ;
50413 PyObject * obj1 = 0 ;
50415 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_read_only_set",&obj0,&obj1)) SWIG_fail;
50416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50417 if (!SWIG_IsOK(res1)) {
50418 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_read_only_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50421 ecode2 = SWIG_AsVal_bool(obj1, &val2);
50422 if (!SWIG_IsOK(ecode2)) {
50423 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_read_only_set" "', argument " "2"" of type '" "bool""'");
50425 arg2 =
static_cast< bool >(val2);
50426 if (arg1) (arg1)->read_only = arg2;
50427 resultobj = SWIG_Py_Void();
50434 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_read_only_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50435 PyObject *resultobj = 0;
50439 PyObject * obj0 = 0 ;
50442 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_read_only_get",&obj0)) SWIG_fail;
50443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50444 if (!SWIG_IsOK(res1)) {
50445 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_read_only_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50448 result = (bool) ((arg1)->read_only);
50449 resultobj = SWIG_From_bool(static_cast< bool >(result));
50456 SWIGINTERN PyObject *_wrap_new_OnDiskInvertedLists__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50457 PyObject *resultobj = 0;
50460 char *arg3 = (
char *) 0 ;
50468 PyObject * obj0 = 0 ;
50469 PyObject * obj1 = 0 ;
50470 PyObject * obj2 = 0 ;
50473 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_OnDiskInvertedLists",&obj0,&obj1,&obj2)) SWIG_fail;
50474 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
50475 if (!SWIG_IsOK(ecode1)) {
50476 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_OnDiskInvertedLists" "', argument " "1"" of type '" "size_t""'");
50478 arg1 =
static_cast< size_t >(val1);
50479 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50480 if (!SWIG_IsOK(ecode2)) {
50481 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_OnDiskInvertedLists" "', argument " "2"" of type '" "size_t""'");
50483 arg2 =
static_cast< size_t >(val2);
50484 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
50485 if (!SWIG_IsOK(res3)) {
50486 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_OnDiskInvertedLists" "', argument " "3"" of type '" "char const *""'");
50488 arg3 =
reinterpret_cast< char *
>(buf3);
50490 Py_BEGIN_ALLOW_THREADS
50494 PyEval_RestoreThread(_save);
50495 PyErr_SetString(PyExc_RuntimeError, e.
what());
50498 Py_END_ALLOW_THREADS
50500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OnDiskInvertedLists, SWIG_POINTER_NEW | 0 );
50501 if (alloc3 == SWIG_NEWOBJ)
delete[] buf3;
50504 if (alloc3 == SWIG_NEWOBJ)
delete[] buf3;
50509 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_list_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50510 PyObject *resultobj = 0;
50517 PyObject * obj0 = 0 ;
50518 PyObject * obj1 = 0 ;
50521 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_list_size",&obj0,&obj1)) SWIG_fail;
50522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50523 if (!SWIG_IsOK(res1)) {
50524 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_list_size" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists const *""'");
50527 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50528 if (!SWIG_IsOK(ecode2)) {
50529 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_list_size" "', argument " "2"" of type '" "size_t""'");
50531 arg2 =
static_cast< size_t >(val2);
50533 Py_BEGIN_ALLOW_THREADS
50537 PyEval_RestoreThread(_save);
50538 PyErr_SetString(PyExc_RuntimeError, e.
what());
50541 Py_END_ALLOW_THREADS
50543 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
50550 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_get_codes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50551 PyObject *resultobj = 0;
50558 PyObject * obj0 = 0 ;
50559 PyObject * obj1 = 0 ;
50560 uint8_t *result = 0 ;
50562 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_get_codes",&obj0,&obj1)) SWIG_fail;
50563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50564 if (!SWIG_IsOK(res1)) {
50565 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_get_codes" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists const *""'");
50568 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50569 if (!SWIG_IsOK(ecode2)) {
50570 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_get_codes" "', argument " "2"" of type '" "size_t""'");
50572 arg2 =
static_cast< size_t >(val2);
50574 Py_BEGIN_ALLOW_THREADS
50578 PyEval_RestoreThread(_save);
50579 PyErr_SetString(PyExc_RuntimeError, e.
what());
50582 Py_END_ALLOW_THREADS
50584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
50591 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50592 PyObject *resultobj = 0;
50599 PyObject * obj0 = 0 ;
50600 PyObject * obj1 = 0 ;
50601 faiss::InvertedLists::idx_t *result = 0 ;
50603 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_get_ids",&obj0,&obj1)) SWIG_fail;
50604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50605 if (!SWIG_IsOK(res1)) {
50606 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_get_ids" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists const *""'");
50609 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50610 if (!SWIG_IsOK(ecode2)) {
50611 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_get_ids" "', argument " "2"" of type '" "size_t""'");
50613 arg2 =
static_cast< size_t >(val2);
50615 Py_BEGIN_ALLOW_THREADS
50619 PyEval_RestoreThread(_save);
50620 PyErr_SetString(PyExc_RuntimeError, e.
what());
50623 Py_END_ALLOW_THREADS
50625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
50632 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_add_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50633 PyObject *resultobj = 0;
50637 faiss::InvertedLists::idx_t *arg4 = (faiss::InvertedLists::idx_t *) 0 ;
50638 uint8_t *arg5 = (uint8_t *) 0 ;
50649 PyObject * obj0 = 0 ;
50650 PyObject * obj1 = 0 ;
50651 PyObject * obj2 = 0 ;
50652 PyObject * obj3 = 0 ;
50653 PyObject * obj4 = 0 ;
50656 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:OnDiskInvertedLists_add_entries",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50658 if (!SWIG_IsOK(res1)) {
50659 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_add_entries" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50662 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50663 if (!SWIG_IsOK(ecode2)) {
50664 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_add_entries" "', argument " "2"" of type '" "size_t""'");
50666 arg2 =
static_cast< size_t >(val2);
50667 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
50668 if (!SWIG_IsOK(ecode3)) {
50669 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OnDiskInvertedLists_add_entries" "', argument " "3"" of type '" "size_t""'");
50671 arg3 =
static_cast< size_t >(val3);
50672 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
50673 if (!SWIG_IsOK(res4)) {
50674 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "OnDiskInvertedLists_add_entries" "', argument " "4"" of type '" "faiss::InvertedLists::idx_t const *""'");
50676 arg4 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp4);
50677 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
50678 if (!SWIG_IsOK(res5)) {
50679 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "OnDiskInvertedLists_add_entries" "', argument " "5"" of type '" "uint8_t const *""'");
50681 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
50683 Py_BEGIN_ALLOW_THREADS
50685 result = (size_t)(arg1)->add_entries(arg2,arg3,(faiss::InvertedLists::idx_t
const *)arg4,(uint8_t
const *)arg5);
50687 PyEval_RestoreThread(_save);
50688 PyErr_SetString(PyExc_RuntimeError, e.
what());
50691 Py_END_ALLOW_THREADS
50693 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
50700 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_update_entries(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50701 PyObject *resultobj = 0;
50706 faiss::InvertedLists::idx_t *arg5 = (faiss::InvertedLists::idx_t *) 0 ;
50707 uint8_t *arg6 = (uint8_t *) 0 ;
50720 PyObject * obj0 = 0 ;
50721 PyObject * obj1 = 0 ;
50722 PyObject * obj2 = 0 ;
50723 PyObject * obj3 = 0 ;
50724 PyObject * obj4 = 0 ;
50725 PyObject * obj5 = 0 ;
50727 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:OnDiskInvertedLists_update_entries",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
50728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50729 if (!SWIG_IsOK(res1)) {
50730 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_update_entries" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50733 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50734 if (!SWIG_IsOK(ecode2)) {
50735 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_update_entries" "', argument " "2"" of type '" "size_t""'");
50737 arg2 =
static_cast< size_t >(val2);
50738 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
50739 if (!SWIG_IsOK(ecode3)) {
50740 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OnDiskInvertedLists_update_entries" "', argument " "3"" of type '" "size_t""'");
50742 arg3 =
static_cast< size_t >(val3);
50743 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
50744 if (!SWIG_IsOK(ecode4)) {
50745 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "OnDiskInvertedLists_update_entries" "', argument " "4"" of type '" "size_t""'");
50747 arg4 =
static_cast< size_t >(val4);
50748 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
50749 if (!SWIG_IsOK(res5)) {
50750 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "OnDiskInvertedLists_update_entries" "', argument " "5"" of type '" "faiss::InvertedLists::idx_t const *""'");
50752 arg5 =
reinterpret_cast< faiss::InvertedLists::idx_t *
>(argp5);
50753 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_unsigned_char, 0 | 0 );
50754 if (!SWIG_IsOK(res6)) {
50755 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "OnDiskInvertedLists_update_entries" "', argument " "6"" of type '" "uint8_t const *""'");
50757 arg6 =
reinterpret_cast< uint8_t *
>(argp6);
50759 Py_BEGIN_ALLOW_THREADS
50761 (arg1)->update_entries(arg2,arg3,arg4,(faiss::InvertedLists::idx_t
const *)arg5,(uint8_t
const *)arg6);
50763 PyEval_RestoreThread(_save);
50764 PyErr_SetString(PyExc_RuntimeError, e.
what());
50767 Py_END_ALLOW_THREADS
50769 resultobj = SWIG_Py_Void();
50776 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_resize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50777 PyObject *resultobj = 0;
50787 PyObject * obj0 = 0 ;
50788 PyObject * obj1 = 0 ;
50789 PyObject * obj2 = 0 ;
50791 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OnDiskInvertedLists_resize",&obj0,&obj1,&obj2)) SWIG_fail;
50792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50793 if (!SWIG_IsOK(res1)) {
50794 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_resize" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50797 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50798 if (!SWIG_IsOK(ecode2)) {
50799 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_resize" "', argument " "2"" of type '" "size_t""'");
50801 arg2 =
static_cast< size_t >(val2);
50802 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
50803 if (!SWIG_IsOK(ecode3)) {
50804 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OnDiskInvertedLists_resize" "', argument " "3"" of type '" "size_t""'");
50806 arg3 =
static_cast< size_t >(val3);
50808 Py_BEGIN_ALLOW_THREADS
50810 (arg1)->resize(arg2,arg3);
50812 PyEval_RestoreThread(_save);
50813 PyErr_SetString(PyExc_RuntimeError, e.
what());
50816 Py_END_ALLOW_THREADS
50818 resultobj = SWIG_Py_Void();
50825 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_merge_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50826 PyObject *resultobj = 0;
50836 PyObject * obj0 = 0 ;
50837 PyObject * obj1 = 0 ;
50838 PyObject * obj2 = 0 ;
50841 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OnDiskInvertedLists_merge_from",&obj0,&obj1,&obj2)) SWIG_fail;
50842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50843 if (!SWIG_IsOK(res1)) {
50844 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_merge_from" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50847 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_faiss__InvertedLists, 0 | 0 );
50848 if (!SWIG_IsOK(res2)) {
50849 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_merge_from" "', argument " "2"" of type '" "faiss::InvertedLists const **""'");
50852 ecode3 = SWIG_AsVal_int(obj2, &val3);
50853 if (!SWIG_IsOK(ecode3)) {
50854 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OnDiskInvertedLists_merge_from" "', argument " "3"" of type '" "int""'");
50856 arg3 =
static_cast< int >(val3);
50858 Py_BEGIN_ALLOW_THREADS
50862 PyEval_RestoreThread(_save);
50863 PyErr_SetString(PyExc_RuntimeError, e.
what());
50866 Py_END_ALLOW_THREADS
50868 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
50875 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_prefetch_lists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50876 PyObject *resultobj = 0;
50878 long *arg2 = (
long *) 0 ;
50886 PyObject * obj0 = 0 ;
50887 PyObject * obj1 = 0 ;
50888 PyObject * obj2 = 0 ;
50890 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OnDiskInvertedLists_prefetch_lists",&obj0,&obj1,&obj2)) SWIG_fail;
50891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50892 if (!SWIG_IsOK(res1)) {
50893 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_prefetch_lists" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists const *""'");
50896 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
50897 if (!SWIG_IsOK(res2)) {
50898 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_prefetch_lists" "', argument " "2"" of type '" "long const *""'");
50900 arg2 =
reinterpret_cast< long *
>(argp2);
50901 ecode3 = SWIG_AsVal_int(obj2, &val3);
50902 if (!SWIG_IsOK(ecode3)) {
50903 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OnDiskInvertedLists_prefetch_lists" "', argument " "3"" of type '" "int""'");
50905 arg3 =
static_cast< int >(val3);
50907 Py_BEGIN_ALLOW_THREADS
50911 PyEval_RestoreThread(_save);
50912 PyErr_SetString(PyExc_RuntimeError, e.
what());
50915 Py_END_ALLOW_THREADS
50917 resultobj = SWIG_Py_Void();
50924 SWIGINTERN PyObject *_wrap_delete_OnDiskInvertedLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50925 PyObject *resultobj = 0;
50929 PyObject * obj0 = 0 ;
50931 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_OnDiskInvertedLists",&obj0)) SWIG_fail;
50932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, SWIG_POINTER_DISOWN | 0 );
50933 if (!SWIG_IsOK(res1)) {
50934 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_OnDiskInvertedLists" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50938 Py_BEGIN_ALLOW_THREADS
50942 PyEval_RestoreThread(_save);
50943 PyErr_SetString(PyExc_RuntimeError, e.
what());
50946 Py_END_ALLOW_THREADS
50948 resultobj = SWIG_Py_Void();
50955 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_locks_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50956 PyObject *resultobj = 0;
50963 PyObject * obj0 = 0 ;
50964 PyObject * obj1 = 0 ;
50966 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_locks_set",&obj0,&obj1)) SWIG_fail;
50967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50968 if (!SWIG_IsOK(res1)) {
50969 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_locks_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
50972 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__LockLevels, SWIG_POINTER_DISOWN | 0 );
50973 if (!SWIG_IsOK(res2)) {
50974 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_locks_set" "', argument " "2"" of type '" "faiss::LockLevels *""'");
50977 if (arg1) (arg1)->locks = arg2;
50978 resultobj = SWIG_Py_Void();
50985 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_locks_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
50986 PyObject *resultobj = 0;
50990 PyObject * obj0 = 0 ;
50993 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_locks_get",&obj0)) SWIG_fail;
50994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
50995 if (!SWIG_IsOK(res1)) {
50996 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_locks_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
51000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__LockLevels, 0 | 0 );
51007 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_pf_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51008 PyObject *resultobj = 0;
51015 PyObject * obj0 = 0 ;
51016 PyObject * obj1 = 0 ;
51018 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_pf_set",&obj0,&obj1)) SWIG_fail;
51019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
51020 if (!SWIG_IsOK(res1)) {
51021 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_pf_set" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
51024 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch, SWIG_POINTER_DISOWN | 0 );
51025 if (!SWIG_IsOK(res2)) {
51026 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OnDiskInvertedLists_pf_set" "', argument " "2"" of type '" "faiss::OnDiskInvertedLists::OngoingPrefetch *""'");
51029 if (arg1) (arg1)->pf = arg2;
51030 resultobj = SWIG_Py_Void();
51037 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_pf_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51038 PyObject *resultobj = 0;
51042 PyObject * obj0 = 0 ;
51045 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_pf_get",&obj0)) SWIG_fail;
51046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
51047 if (!SWIG_IsOK(res1)) {
51048 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_pf_get" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
51052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch, 0 | 0 );
51059 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_do_mmap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51060 PyObject *resultobj = 0;
51064 PyObject * obj0 = 0 ;
51066 if (!PyArg_ParseTuple(args,(
char *)
"O:OnDiskInvertedLists_do_mmap",&obj0)) SWIG_fail;
51067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
51068 if (!SWIG_IsOK(res1)) {
51069 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_do_mmap" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
51073 Py_BEGIN_ALLOW_THREADS
51077 PyEval_RestoreThread(_save);
51078 PyErr_SetString(PyExc_RuntimeError, e.
what());
51081 Py_END_ALLOW_THREADS
51083 resultobj = SWIG_Py_Void();
51090 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_update_totsize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51091 PyObject *resultobj = 0;
51098 PyObject * obj0 = 0 ;
51099 PyObject * obj1 = 0 ;
51101 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_update_totsize",&obj0,&obj1)) SWIG_fail;
51102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
51103 if (!SWIG_IsOK(res1)) {
51104 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_update_totsize" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
51107 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51108 if (!SWIG_IsOK(ecode2)) {
51109 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_update_totsize" "', argument " "2"" of type '" "size_t""'");
51111 arg2 =
static_cast< size_t >(val2);
51113 Py_BEGIN_ALLOW_THREADS
51115 (arg1)->update_totsize(arg2);
51117 PyEval_RestoreThread(_save);
51118 PyErr_SetString(PyExc_RuntimeError, e.
what());
51121 Py_END_ALLOW_THREADS
51123 resultobj = SWIG_Py_Void();
51130 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_resize_locked(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51131 PyObject *resultobj = 0;
51141 PyObject * obj0 = 0 ;
51142 PyObject * obj1 = 0 ;
51143 PyObject * obj2 = 0 ;
51145 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OnDiskInvertedLists_resize_locked",&obj0,&obj1,&obj2)) SWIG_fail;
51146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
51147 if (!SWIG_IsOK(res1)) {
51148 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_resize_locked" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
51151 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51152 if (!SWIG_IsOK(ecode2)) {
51153 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_resize_locked" "', argument " "2"" of type '" "size_t""'");
51155 arg2 =
static_cast< size_t >(val2);
51156 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
51157 if (!SWIG_IsOK(ecode3)) {
51158 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OnDiskInvertedLists_resize_locked" "', argument " "3"" of type '" "size_t""'");
51160 arg3 =
static_cast< size_t >(val3);
51162 Py_BEGIN_ALLOW_THREADS
51164 (arg1)->resize_locked(arg2,arg3);
51166 PyEval_RestoreThread(_save);
51167 PyErr_SetString(PyExc_RuntimeError, e.
what());
51170 Py_END_ALLOW_THREADS
51172 resultobj = SWIG_Py_Void();
51179 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_allocate_slot(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51180 PyObject *resultobj = 0;
51187 PyObject * obj0 = 0 ;
51188 PyObject * obj1 = 0 ;
51191 if (!PyArg_ParseTuple(args,(
char *)
"OO:OnDiskInvertedLists_allocate_slot",&obj0,&obj1)) SWIG_fail;
51192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
51193 if (!SWIG_IsOK(res1)) {
51194 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_allocate_slot" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
51197 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51198 if (!SWIG_IsOK(ecode2)) {
51199 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_allocate_slot" "', argument " "2"" of type '" "size_t""'");
51201 arg2 =
static_cast< size_t >(val2);
51203 Py_BEGIN_ALLOW_THREADS
51205 result = (size_t)(arg1)->allocate_slot(arg2);
51207 PyEval_RestoreThread(_save);
51208 PyErr_SetString(PyExc_RuntimeError, e.
what());
51211 Py_END_ALLOW_THREADS
51213 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
51220 SWIGINTERN PyObject *_wrap_OnDiskInvertedLists_free_slot(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51221 PyObject *resultobj = 0;
51231 PyObject * obj0 = 0 ;
51232 PyObject * obj1 = 0 ;
51233 PyObject * obj2 = 0 ;
51235 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OnDiskInvertedLists_free_slot",&obj0,&obj1,&obj2)) SWIG_fail;
51236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OnDiskInvertedLists, 0 | 0 );
51237 if (!SWIG_IsOK(res1)) {
51238 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OnDiskInvertedLists_free_slot" "', argument " "1"" of type '" "faiss::OnDiskInvertedLists *""'");
51241 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51242 if (!SWIG_IsOK(ecode2)) {
51243 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OnDiskInvertedLists_free_slot" "', argument " "2"" of type '" "size_t""'");
51245 arg2 =
static_cast< size_t >(val2);
51246 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
51247 if (!SWIG_IsOK(ecode3)) {
51248 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OnDiskInvertedLists_free_slot" "', argument " "3"" of type '" "size_t""'");
51250 arg3 =
static_cast< size_t >(val3);
51252 Py_BEGIN_ALLOW_THREADS
51254 (arg1)->free_slot(arg2,arg3);
51256 PyEval_RestoreThread(_save);
51257 PyErr_SetString(PyExc_RuntimeError, e.
what());
51260 Py_END_ALLOW_THREADS
51262 resultobj = SWIG_Py_Void();
51269 SWIGINTERN PyObject *_wrap_new_OnDiskInvertedLists__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51270 PyObject *resultobj = 0;
51273 if (!PyArg_ParseTuple(args,(
char *)
":new_OnDiskInvertedLists")) SWIG_fail;
51275 Py_BEGIN_ALLOW_THREADS
51279 PyEval_RestoreThread(_save);
51280 PyErr_SetString(PyExc_RuntimeError, e.
what());
51283 Py_END_ALLOW_THREADS
51285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OnDiskInvertedLists, SWIG_POINTER_NEW | 0 );
51292 SWIGINTERN PyObject *_wrap_new_OnDiskInvertedLists(PyObject *
self, PyObject *args) {
51294 PyObject *argv[4] = {
51299 if (!PyTuple_Check(args)) SWIG_fail;
51300 argc = args ? PyObject_Length(args) : 0;
51301 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
51302 argv[ii] = PyTuple_GET_ITEM(args,ii);
51305 return _wrap_new_OnDiskInvertedLists__SWIG_1(
self, args);
51310 int res = SWIG_AsVal_size_t(argv[0], NULL);
51311 _v = SWIG_CheckState(res);
51315 int res = SWIG_AsVal_size_t(argv[1], NULL);
51316 _v = SWIG_CheckState(res);
51319 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
51320 _v = SWIG_CheckState(res);
51322 return _wrap_new_OnDiskInvertedLists__SWIG_0(
self, args);
51329 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_OnDiskInvertedLists'.\n"
51330 " Possible C/C++ prototypes are:\n"
51331 " faiss::OnDiskInvertedLists::OnDiskInvertedLists(size_t,size_t,char const *)\n"
51332 " faiss::OnDiskInvertedLists::OnDiskInvertedLists()\n");
51337 SWIGINTERN PyObject *OnDiskInvertedLists_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51339 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
51340 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__OnDiskInvertedLists, SWIG_NewClientData(obj));
51341 return SWIG_Py_Void();
51344 SWIGINTERN PyObject *_wrap_IVFPQSearchParameters_scan_table_threshold_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51345 PyObject *resultobj = 0;
51352 PyObject * obj0 = 0 ;
51353 PyObject * obj1 = 0 ;
51355 if (!PyArg_ParseTuple(args,(
char *)
"OO:IVFPQSearchParameters_scan_table_threshold_set",&obj0,&obj1)) SWIG_fail;
51356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFPQSearchParameters, 0 | 0 );
51357 if (!SWIG_IsOK(res1)) {
51358 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFPQSearchParameters_scan_table_threshold_set" "', argument " "1"" of type '" "faiss::IVFPQSearchParameters *""'");
51361 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51362 if (!SWIG_IsOK(ecode2)) {
51363 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IVFPQSearchParameters_scan_table_threshold_set" "', argument " "2"" of type '" "size_t""'");
51365 arg2 =
static_cast< size_t >(val2);
51366 if (arg1) (arg1)->scan_table_threshold = arg2;
51367 resultobj = SWIG_Py_Void();
51374 SWIGINTERN PyObject *_wrap_IVFPQSearchParameters_scan_table_threshold_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51375 PyObject *resultobj = 0;
51379 PyObject * obj0 = 0 ;
51382 if (!PyArg_ParseTuple(args,(
char *)
"O:IVFPQSearchParameters_scan_table_threshold_get",&obj0)) SWIG_fail;
51383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFPQSearchParameters, 0 | 0 );
51384 if (!SWIG_IsOK(res1)) {
51385 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFPQSearchParameters_scan_table_threshold_get" "', argument " "1"" of type '" "faiss::IVFPQSearchParameters *""'");
51388 result = (size_t) ((arg1)->scan_table_threshold);
51389 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
51396 SWIGINTERN PyObject *_wrap_IVFPQSearchParameters_polysemous_ht_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51397 PyObject *resultobj = 0;
51404 PyObject * obj0 = 0 ;
51405 PyObject * obj1 = 0 ;
51407 if (!PyArg_ParseTuple(args,(
char *)
"OO:IVFPQSearchParameters_polysemous_ht_set",&obj0,&obj1)) SWIG_fail;
51408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFPQSearchParameters, 0 | 0 );
51409 if (!SWIG_IsOK(res1)) {
51410 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFPQSearchParameters_polysemous_ht_set" "', argument " "1"" of type '" "faiss::IVFPQSearchParameters *""'");
51413 ecode2 = SWIG_AsVal_int(obj1, &val2);
51414 if (!SWIG_IsOK(ecode2)) {
51415 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IVFPQSearchParameters_polysemous_ht_set" "', argument " "2"" of type '" "int""'");
51417 arg2 =
static_cast< int >(val2);
51418 if (arg1) (arg1)->polysemous_ht = arg2;
51419 resultobj = SWIG_Py_Void();
51426 SWIGINTERN PyObject *_wrap_IVFPQSearchParameters_polysemous_ht_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51427 PyObject *resultobj = 0;
51431 PyObject * obj0 = 0 ;
51434 if (!PyArg_ParseTuple(args,(
char *)
"O:IVFPQSearchParameters_polysemous_ht_get",&obj0)) SWIG_fail;
51435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFPQSearchParameters, 0 | 0 );
51436 if (!SWIG_IsOK(res1)) {
51437 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IVFPQSearchParameters_polysemous_ht_get" "', argument " "1"" of type '" "faiss::IVFPQSearchParameters *""'");
51440 result = (int) ((arg1)->polysemous_ht);
51441 resultobj = SWIG_From_int(static_cast< int >(result));
51448 SWIGINTERN PyObject *_wrap_delete_IVFPQSearchParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51449 PyObject *resultobj = 0;
51453 PyObject * obj0 = 0 ;
51455 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IVFPQSearchParameters",&obj0)) SWIG_fail;
51456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IVFPQSearchParameters, SWIG_POINTER_DISOWN | 0 );
51457 if (!SWIG_IsOK(res1)) {
51458 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IVFPQSearchParameters" "', argument " "1"" of type '" "faiss::IVFPQSearchParameters *""'");
51462 Py_BEGIN_ALLOW_THREADS
51466 PyEval_RestoreThread(_save);
51467 PyErr_SetString(PyExc_RuntimeError, e.
what());
51470 Py_END_ALLOW_THREADS
51472 resultobj = SWIG_Py_Void();
51479 SWIGINTERN PyObject *_wrap_new_IVFPQSearchParameters(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51480 PyObject *resultobj = 0;
51483 if (!PyArg_ParseTuple(args,(
char *)
":new_IVFPQSearchParameters")) SWIG_fail;
51485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IVFPQSearchParameters, SWIG_POINTER_NEW | 0 );
51492 SWIGINTERN PyObject *IVFPQSearchParameters_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51494 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
51495 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IVFPQSearchParameters, SWIG_NewClientData(obj));
51496 return SWIG_Py_Void();
51499 SWIGINTERN PyObject *_wrap_IndexIVFPQ_by_residual_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51500 PyObject *resultobj = 0;
51507 PyObject * obj0 = 0 ;
51508 PyObject * obj1 = 0 ;
51510 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_by_residual_set",&obj0,&obj1)) SWIG_fail;
51511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51512 if (!SWIG_IsOK(res1)) {
51513 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_by_residual_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51516 ecode2 = SWIG_AsVal_bool(obj1, &val2);
51517 if (!SWIG_IsOK(ecode2)) {
51518 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_by_residual_set" "', argument " "2"" of type '" "bool""'");
51520 arg2 =
static_cast< bool >(val2);
51521 if (arg1) (arg1)->by_residual = arg2;
51522 resultobj = SWIG_Py_Void();
51529 SWIGINTERN PyObject *_wrap_IndexIVFPQ_by_residual_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51530 PyObject *resultobj = 0;
51534 PyObject * obj0 = 0 ;
51537 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_by_residual_get",&obj0)) SWIG_fail;
51538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51539 if (!SWIG_IsOK(res1)) {
51540 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_by_residual_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51543 result = (bool) ((arg1)->by_residual);
51544 resultobj = SWIG_From_bool(static_cast< bool >(result));
51551 SWIGINTERN PyObject *_wrap_IndexIVFPQ_pq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51552 PyObject *resultobj = 0;
51559 PyObject * obj0 = 0 ;
51560 PyObject * obj1 = 0 ;
51562 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_pq_set",&obj0,&obj1)) SWIG_fail;
51563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51564 if (!SWIG_IsOK(res1)) {
51565 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_pq_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51568 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
51569 if (!SWIG_IsOK(res2)) {
51570 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQ_pq_set" "', argument " "2"" of type '" "faiss::ProductQuantizer *""'");
51573 if (arg1) (arg1)->pq = *arg2;
51574 resultobj = SWIG_Py_Void();
51581 SWIGINTERN PyObject *_wrap_IndexIVFPQ_pq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51582 PyObject *resultobj = 0;
51586 PyObject * obj0 = 0 ;
51589 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_pq_get",&obj0)) SWIG_fail;
51590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51591 if (!SWIG_IsOK(res1)) {
51592 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_pq_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
51603 SWIGINTERN PyObject *_wrap_IndexIVFPQ_do_polysemous_training_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51604 PyObject *resultobj = 0;
51611 PyObject * obj0 = 0 ;
51612 PyObject * obj1 = 0 ;
51614 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_do_polysemous_training_set",&obj0,&obj1)) SWIG_fail;
51615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51616 if (!SWIG_IsOK(res1)) {
51617 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_do_polysemous_training_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51620 ecode2 = SWIG_AsVal_bool(obj1, &val2);
51621 if (!SWIG_IsOK(ecode2)) {
51622 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_do_polysemous_training_set" "', argument " "2"" of type '" "bool""'");
51624 arg2 =
static_cast< bool >(val2);
51625 if (arg1) (arg1)->do_polysemous_training = arg2;
51626 resultobj = SWIG_Py_Void();
51633 SWIGINTERN PyObject *_wrap_IndexIVFPQ_do_polysemous_training_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51634 PyObject *resultobj = 0;
51638 PyObject * obj0 = 0 ;
51641 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_do_polysemous_training_get",&obj0)) SWIG_fail;
51642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51643 if (!SWIG_IsOK(res1)) {
51644 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_do_polysemous_training_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51647 result = (bool) ((arg1)->do_polysemous_training);
51648 resultobj = SWIG_From_bool(static_cast< bool >(result));
51655 SWIGINTERN PyObject *_wrap_IndexIVFPQ_polysemous_training_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51656 PyObject *resultobj = 0;
51663 PyObject * obj0 = 0 ;
51664 PyObject * obj1 = 0 ;
51666 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_polysemous_training_set",&obj0,&obj1)) SWIG_fail;
51667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51668 if (!SWIG_IsOK(res1)) {
51669 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_polysemous_training_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51672 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__PolysemousTraining, SWIG_POINTER_DISOWN | 0 );
51673 if (!SWIG_IsOK(res2)) {
51674 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQ_polysemous_training_set" "', argument " "2"" of type '" "faiss::PolysemousTraining *""'");
51677 if (arg1) (arg1)->polysemous_training = arg2;
51678 resultobj = SWIG_Py_Void();
51685 SWIGINTERN PyObject *_wrap_IndexIVFPQ_polysemous_training_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51686 PyObject *resultobj = 0;
51690 PyObject * obj0 = 0 ;
51693 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_polysemous_training_get",&obj0)) SWIG_fail;
51694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51695 if (!SWIG_IsOK(res1)) {
51696 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_polysemous_training_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__PolysemousTraining, 0 | 0 );
51707 SWIGINTERN PyObject *_wrap_IndexIVFPQ_scan_table_threshold_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51708 PyObject *resultobj = 0;
51715 PyObject * obj0 = 0 ;
51716 PyObject * obj1 = 0 ;
51718 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_scan_table_threshold_set",&obj0,&obj1)) SWIG_fail;
51719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51720 if (!SWIG_IsOK(res1)) {
51721 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_scan_table_threshold_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51724 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51725 if (!SWIG_IsOK(ecode2)) {
51726 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_scan_table_threshold_set" "', argument " "2"" of type '" "size_t""'");
51728 arg2 =
static_cast< size_t >(val2);
51729 if (arg1) (arg1)->scan_table_threshold = arg2;
51730 resultobj = SWIG_Py_Void();
51737 SWIGINTERN PyObject *_wrap_IndexIVFPQ_scan_table_threshold_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51738 PyObject *resultobj = 0;
51742 PyObject * obj0 = 0 ;
51745 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_scan_table_threshold_get",&obj0)) SWIG_fail;
51746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51747 if (!SWIG_IsOK(res1)) {
51748 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_scan_table_threshold_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51751 result = (size_t) ((arg1)->scan_table_threshold);
51752 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
51759 SWIGINTERN PyObject *_wrap_IndexIVFPQ_polysemous_ht_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51760 PyObject *resultobj = 0;
51767 PyObject * obj0 = 0 ;
51768 PyObject * obj1 = 0 ;
51770 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_polysemous_ht_set",&obj0,&obj1)) SWIG_fail;
51771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51772 if (!SWIG_IsOK(res1)) {
51773 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_polysemous_ht_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51776 ecode2 = SWIG_AsVal_int(obj1, &val2);
51777 if (!SWIG_IsOK(ecode2)) {
51778 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_polysemous_ht_set" "', argument " "2"" of type '" "int""'");
51780 arg2 =
static_cast< int >(val2);
51781 if (arg1) (arg1)->polysemous_ht = arg2;
51782 resultobj = SWIG_Py_Void();
51789 SWIGINTERN PyObject *_wrap_IndexIVFPQ_polysemous_ht_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51790 PyObject *resultobj = 0;
51794 PyObject * obj0 = 0 ;
51797 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_polysemous_ht_get",&obj0)) SWIG_fail;
51798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51799 if (!SWIG_IsOK(res1)) {
51800 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_polysemous_ht_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51803 result = (int) ((arg1)->polysemous_ht);
51804 resultobj = SWIG_From_int(static_cast< int >(result));
51811 SWIGINTERN PyObject *_wrap_IndexIVFPQ_use_precomputed_table_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51812 PyObject *resultobj = 0;
51819 PyObject * obj0 = 0 ;
51820 PyObject * obj1 = 0 ;
51822 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_use_precomputed_table_set",&obj0,&obj1)) SWIG_fail;
51823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51824 if (!SWIG_IsOK(res1)) {
51825 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_use_precomputed_table_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51828 ecode2 = SWIG_AsVal_int(obj1, &val2);
51829 if (!SWIG_IsOK(ecode2)) {
51830 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_use_precomputed_table_set" "', argument " "2"" of type '" "int""'");
51832 arg2 =
static_cast< int >(val2);
51833 if (arg1) (arg1)->use_precomputed_table = arg2;
51834 resultobj = SWIG_Py_Void();
51841 SWIGINTERN PyObject *_wrap_IndexIVFPQ_use_precomputed_table_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51842 PyObject *resultobj = 0;
51846 PyObject * obj0 = 0 ;
51849 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_use_precomputed_table_get",&obj0)) SWIG_fail;
51850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51851 if (!SWIG_IsOK(res1)) {
51852 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_use_precomputed_table_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51855 result = (int) ((arg1)->use_precomputed_table);
51856 resultobj = SWIG_From_int(static_cast< int >(result));
51863 SWIGINTERN
int Swig_var_IndexIVFPQ_precomputed_table_max_bytes_set(PyObject *_val) {
51866 int res = SWIG_AsVal_size_t(_val, &val);
51867 if (!SWIG_IsOK(res)) {
51868 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""faiss::IndexIVFPQ::precomputed_table_max_bytes""' of type '""size_t""'");
51878 SWIGINTERN PyObject *Swig_var_IndexIVFPQ_precomputed_table_max_bytes_get(
void) {
51879 PyObject *pyobj = 0;
51886 SWIGINTERN PyObject *_wrap_IndexIVFPQ_precomputed_table_max_bytes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *SWIGUNUSEDPARM(args)) {
51887 return Swig_var_IndexIVFPQ_precomputed_table_max_bytes_get();
51891 SWIGINTERN PyObject *_wrap_IndexIVFPQ_precomputed_table_max_bytes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51895 if (!PyArg_ParseTuple(args,(
char *)
"O:set",&value))
return NULL;
51896 res = Swig_var_IndexIVFPQ_precomputed_table_max_bytes_set(value);
51897 return !res ? SWIG_Py_Void() : NULL;
51901 SWIGINTERN PyObject *_wrap_IndexIVFPQ_precomputed_table_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51902 PyObject *resultobj = 0;
51904 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
51909 PyObject * obj0 = 0 ;
51910 PyObject * obj1 = 0 ;
51912 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_precomputed_table_set",&obj0,&obj1)) SWIG_fail;
51913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51914 if (!SWIG_IsOK(res1)) {
51915 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_precomputed_table_set" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51918 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
51919 if (!SWIG_IsOK(res2)) {
51920 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQ_precomputed_table_set" "', argument " "2"" of type '" "std::vector< float > *""'");
51922 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
51923 if (arg1) (arg1)->precomputed_table = *arg2;
51924 resultobj = SWIG_Py_Void();
51931 SWIGINTERN PyObject *_wrap_IndexIVFPQ_precomputed_table_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51932 PyObject *resultobj = 0;
51936 PyObject * obj0 = 0 ;
51937 std::vector< float > *result = 0 ;
51939 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_precomputed_table_get",&obj0)) SWIG_fail;
51940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
51941 if (!SWIG_IsOK(res1)) {
51942 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_precomputed_table_get" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
51945 result = (std::vector< float > *)& ((arg1)->precomputed_table);
51946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
51953 SWIGINTERN PyObject *_wrap_new_IndexIVFPQ__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
51954 PyObject *resultobj = 0;
51970 PyObject * obj0 = 0 ;
51971 PyObject * obj1 = 0 ;
51972 PyObject * obj2 = 0 ;
51973 PyObject * obj3 = 0 ;
51974 PyObject * obj4 = 0 ;
51977 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:new_IndexIVFPQ",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
51978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
51979 if (!SWIG_IsOK(res1)) {
51980 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFPQ" "', argument " "1"" of type '" "faiss::Index *""'");
51983 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51984 if (!SWIG_IsOK(ecode2)) {
51985 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFPQ" "', argument " "2"" of type '" "size_t""'");
51987 arg2 =
static_cast< size_t >(val2);
51988 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
51989 if (!SWIG_IsOK(ecode3)) {
51990 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFPQ" "', argument " "3"" of type '" "size_t""'");
51992 arg3 =
static_cast< size_t >(val3);
51993 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
51994 if (!SWIG_IsOK(ecode4)) {
51995 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexIVFPQ" "', argument " "4"" of type '" "size_t""'");
51997 arg4 =
static_cast< size_t >(val4);
51998 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
51999 if (!SWIG_IsOK(ecode5)) {
52000 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "new_IndexIVFPQ" "', argument " "5"" of type '" "size_t""'");
52002 arg5 =
static_cast< size_t >(val5);
52004 Py_BEGIN_ALLOW_THREADS
52008 PyEval_RestoreThread(_save);
52009 PyErr_SetString(PyExc_RuntimeError, e.
what());
52012 Py_END_ALLOW_THREADS
52014 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFPQ, SWIG_POINTER_NEW | 0 );
52021 SWIGINTERN PyObject *_wrap_IndexIVFPQ_add_with_ids__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52022 PyObject *resultobj = 0;
52025 float *arg3 = (
float *) 0 ;
52026 long *arg4 = (
long *) 0 ;
52035 PyObject * obj0 = 0 ;
52036 PyObject * obj1 = 0 ;
52037 PyObject * obj2 = 0 ;
52038 PyObject * obj3 = 0 ;
52040 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFPQ_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
52041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
52042 if (!SWIG_IsOK(res1)) {
52043 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
52046 ecode2 = SWIG_AsVal_long(obj1, &val2);
52047 if (!SWIG_IsOK(ecode2)) {
52048 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
52051 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
52052 if (!SWIG_IsOK(res3)) {
52053 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_add_with_ids" "', argument " "3"" of type '" "float const *""'");
52055 arg3 =
reinterpret_cast< float *
>(argp3);
52056 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
52057 if (!SWIG_IsOK(res4)) {
52058 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_add_with_ids" "', argument " "4"" of type '" "long const *""'");
52060 arg4 =
reinterpret_cast< long *
>(argp4);
52062 Py_BEGIN_ALLOW_THREADS
52064 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
52066 PyEval_RestoreThread(_save);
52067 PyErr_SetString(PyExc_RuntimeError, e.
what());
52070 Py_END_ALLOW_THREADS
52072 resultobj = SWIG_Py_Void();
52079 SWIGINTERN PyObject *_wrap_IndexIVFPQ_add_with_ids__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52080 PyObject *resultobj = 0;
52083 float *arg3 = (
float *) 0 ;
52090 PyObject * obj0 = 0 ;
52091 PyObject * obj1 = 0 ;
52092 PyObject * obj2 = 0 ;
52094 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVFPQ_add_with_ids",&obj0,&obj1,&obj2)) SWIG_fail;
52095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
52096 if (!SWIG_IsOK(res1)) {
52097 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
52100 ecode2 = SWIG_AsVal_long(obj1, &val2);
52101 if (!SWIG_IsOK(ecode2)) {
52102 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
52105 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
52106 if (!SWIG_IsOK(res3)) {
52107 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_add_with_ids" "', argument " "3"" of type '" "float const *""'");
52109 arg3 =
reinterpret_cast< float *
>(argp3);
52111 Py_BEGIN_ALLOW_THREADS
52113 (arg1)->add_with_ids(arg2,(
float const *)arg3);
52115 PyEval_RestoreThread(_save);
52116 PyErr_SetString(PyExc_RuntimeError, e.
what());
52119 Py_END_ALLOW_THREADS
52121 resultobj = SWIG_Py_Void();
52128 SWIGINTERN PyObject *_wrap_IndexIVFPQ_add_with_ids(PyObject *
self, PyObject *args) {
52130 PyObject *argv[5] = {
52135 if (!PyTuple_Check(args)) SWIG_fail;
52136 argc = args ? PyObject_Length(args) : 0;
52137 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
52138 argv[ii] = PyTuple_GET_ITEM(args,ii);
52143 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQ, 0);
52144 _v = SWIG_CheckState(res);
52147 int res = SWIG_AsVal_long(argv[1], NULL);
52148 _v = SWIG_CheckState(res);
52152 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
52153 _v = SWIG_CheckState(res);
52155 return _wrap_IndexIVFPQ_add_with_ids__SWIG_1(
self, args);
52163 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQ, 0);
52164 _v = SWIG_CheckState(res);
52167 int res = SWIG_AsVal_long(argv[1], NULL);
52168 _v = SWIG_CheckState(res);
52172 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
52173 _v = SWIG_CheckState(res);
52176 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
52177 _v = SWIG_CheckState(res);
52179 return _wrap_IndexIVFPQ_add_with_ids__SWIG_0(
self, args);
52187 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVFPQ_add_with_ids'.\n"
52188 " Possible C/C++ prototypes are:\n"
52189 " faiss::IndexIVFPQ::add_with_ids(faiss::Index::idx_t,float const *,long const *)\n"
52190 " faiss::IndexIVFPQ::add_with_ids(faiss::Index::idx_t,float const *)\n");
52195 SWIGINTERN PyObject *_wrap_IndexIVFPQ_encode_vectors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52196 PyObject *resultobj = 0;
52199 float *arg3 = (
float *) 0 ;
52201 uint8_t *arg5 = (uint8_t *) 0 ;
52212 PyObject * obj0 = 0 ;
52213 PyObject * obj1 = 0 ;
52214 PyObject * obj2 = 0 ;
52215 PyObject * obj3 = 0 ;
52216 PyObject * obj4 = 0 ;
52218 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFPQ_encode_vectors",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
52219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
52220 if (!SWIG_IsOK(res1)) {
52221 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_encode_vectors" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
52224 ecode2 = SWIG_AsVal_long(obj1, &val2);
52225 if (!SWIG_IsOK(ecode2)) {
52226 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_encode_vectors" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
52229 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
52230 if (!SWIG_IsOK(res3)) {
52231 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_encode_vectors" "', argument " "3"" of type '" "float const *""'");
52233 arg3 =
reinterpret_cast< float *
>(argp3);
52234 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
52235 if (!SWIG_IsOK(res4)) {
52236 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_encode_vectors" "', argument " "4"" of type '" "faiss::Index::idx_t const *""'");
52239 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
52240 if (!SWIG_IsOK(res5)) {
52241 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQ_encode_vectors" "', argument " "5"" of type '" "uint8_t *""'");
52243 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
52245 Py_BEGIN_ALLOW_THREADS
52249 PyEval_RestoreThread(_save);
52250 PyErr_SetString(PyExc_RuntimeError, e.
what());
52253 Py_END_ALLOW_THREADS
52255 resultobj = SWIG_Py_Void();
52262 SWIGINTERN PyObject *_wrap_IndexIVFPQ_add_core_o__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52263 PyObject *resultobj = 0;
52266 float *arg3 = (
float *) 0 ;
52267 long *arg4 = (
long *) 0 ;
52268 float *arg5 = (
float *) 0 ;
52269 long *arg6 = (
long *) 0 ;
52282 PyObject * obj0 = 0 ;
52283 PyObject * obj1 = 0 ;
52284 PyObject * obj2 = 0 ;
52285 PyObject * obj3 = 0 ;
52286 PyObject * obj4 = 0 ;
52287 PyObject * obj5 = 0 ;
52289 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexIVFPQ_add_core_o",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
52290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
52291 if (!SWIG_IsOK(res1)) {
52292 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
52295 ecode2 = SWIG_AsVal_long(obj1, &val2);
52296 if (!SWIG_IsOK(ecode2)) {
52297 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
52300 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
52301 if (!SWIG_IsOK(res3)) {
52302 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "3"" of type '" "float const *""'");
52304 arg3 =
reinterpret_cast< float *
>(argp3);
52305 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
52306 if (!SWIG_IsOK(res4)) {
52307 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "4"" of type '" "long const *""'");
52309 arg4 =
reinterpret_cast< long *
>(argp4);
52310 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
52311 if (!SWIG_IsOK(res5)) {
52312 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "5"" of type '" "float *""'");
52314 arg5 =
reinterpret_cast< float *
>(argp5);
52315 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
52316 if (!SWIG_IsOK(res6)) {
52317 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "6"" of type '" "long const *""'");
52319 arg6 =
reinterpret_cast< long *
>(argp6);
52321 Py_BEGIN_ALLOW_THREADS
52323 (arg1)->add_core_o(arg2,(
float const *)arg3,(
long const *)arg4,arg5,(
long const *)arg6);
52324 } catch(faiss::FaissException & e) {
52325 PyEval_RestoreThread(_save);
52326 PyErr_SetString(PyExc_RuntimeError, e.what());
52329 Py_END_ALLOW_THREADS
52331 resultobj = SWIG_Py_Void();
52338 SWIGINTERN PyObject *_wrap_IndexIVFPQ_add_core_o__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52339 PyObject *resultobj = 0;
52342 float *arg3 = (
float *) 0 ;
52343 long *arg4 = (
long *) 0 ;
52344 float *arg5 = (
float *) 0 ;
52355 PyObject * obj0 = 0 ;
52356 PyObject * obj1 = 0 ;
52357 PyObject * obj2 = 0 ;
52358 PyObject * obj3 = 0 ;
52359 PyObject * obj4 = 0 ;
52361 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFPQ_add_core_o",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
52362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
52363 if (!SWIG_IsOK(res1)) {
52364 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
52367 ecode2 = SWIG_AsVal_long(obj1, &val2);
52368 if (!SWIG_IsOK(ecode2)) {
52369 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
52372 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
52373 if (!SWIG_IsOK(res3)) {
52374 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "3"" of type '" "float const *""'");
52376 arg3 =
reinterpret_cast< float *
>(argp3);
52377 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
52378 if (!SWIG_IsOK(res4)) {
52379 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "4"" of type '" "long const *""'");
52381 arg4 =
reinterpret_cast< long *
>(argp4);
52382 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
52383 if (!SWIG_IsOK(res5)) {
52384 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQ_add_core_o" "', argument " "5"" of type '" "float *""'");
52386 arg5 =
reinterpret_cast< float *
>(argp5);
52388 Py_BEGIN_ALLOW_THREADS
52390 (arg1)->add_core_o(arg2,(
float const *)arg3,(
long const *)arg4,arg5);
52392 PyEval_RestoreThread(_save);
52393 PyErr_SetString(PyExc_RuntimeError, e.
what());
52396 Py_END_ALLOW_THREADS
52398 resultobj = SWIG_Py_Void();
52405 SWIGINTERN PyObject *_wrap_IndexIVFPQ_add_core_o(PyObject *
self, PyObject *args) {
52407 PyObject *argv[7] = {
52412 if (!PyTuple_Check(args)) SWIG_fail;
52413 argc = args ? PyObject_Length(args) : 0;
52414 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
52415 argv[ii] = PyTuple_GET_ITEM(args,ii);
52420 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQ, 0);
52421 _v = SWIG_CheckState(res);
52424 int res = SWIG_AsVal_long(argv[1], NULL);
52425 _v = SWIG_CheckState(res);
52429 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
52430 _v = SWIG_CheckState(res);
52433 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
52434 _v = SWIG_CheckState(res);
52437 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
52438 _v = SWIG_CheckState(res);
52440 return _wrap_IndexIVFPQ_add_core_o__SWIG_1(
self, args);
52450 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQ, 0);
52451 _v = SWIG_CheckState(res);
52454 int res = SWIG_AsVal_long(argv[1], NULL);
52455 _v = SWIG_CheckState(res);
52459 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
52460 _v = SWIG_CheckState(res);
52463 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
52464 _v = SWIG_CheckState(res);
52467 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0);
52468 _v = SWIG_CheckState(res);
52471 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_long, 0);
52472 _v = SWIG_CheckState(res);
52474 return _wrap_IndexIVFPQ_add_core_o__SWIG_0(
self, args);
52484 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVFPQ_add_core_o'.\n"
52485 " Possible C/C++ prototypes are:\n"
52486 " faiss::IndexIVFPQ::add_core_o(faiss::Index::idx_t,float const *,long const *,float *,long const *)\n"
52487 " faiss::IndexIVFPQ::add_core_o(faiss::Index::idx_t,float const *,long const *,float *)\n");
52492 SWIGINTERN PyObject *_wrap_IndexIVFPQ_train_residual(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52493 PyObject *resultobj = 0;
52496 float *arg3 = (
float *) 0 ;
52503 PyObject * obj0 = 0 ;
52504 PyObject * obj1 = 0 ;
52505 PyObject * obj2 = 0 ;
52507 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVFPQ_train_residual",&obj0,&obj1,&obj2)) SWIG_fail;
52508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
52509 if (!SWIG_IsOK(res1)) {
52510 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_train_residual" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
52513 ecode2 = SWIG_AsVal_long(obj1, &val2);
52514 if (!SWIG_IsOK(ecode2)) {
52515 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_train_residual" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
52518 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
52519 if (!SWIG_IsOK(res3)) {
52520 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_train_residual" "', argument " "3"" of type '" "float const *""'");
52522 arg3 =
reinterpret_cast< float *
>(argp3);
52524 Py_BEGIN_ALLOW_THREADS
52526 (arg1)->train_residual(arg2,(
float const *)arg3);
52528 PyEval_RestoreThread(_save);
52529 PyErr_SetString(PyExc_RuntimeError, e.
what());
52532 Py_END_ALLOW_THREADS
52534 resultobj = SWIG_Py_Void();
52541 SWIGINTERN PyObject *_wrap_IndexIVFPQ_train_residual_o(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52542 PyObject *resultobj = 0;
52545 float *arg3 = (
float *) 0 ;
52546 float *arg4 = (
float *) 0 ;
52555 PyObject * obj0 = 0 ;
52556 PyObject * obj1 = 0 ;
52557 PyObject * obj2 = 0 ;
52558 PyObject * obj3 = 0 ;
52560 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFPQ_train_residual_o",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
52561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
52562 if (!SWIG_IsOK(res1)) {
52563 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_train_residual_o" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
52566 ecode2 = SWIG_AsVal_long(obj1, &val2);
52567 if (!SWIG_IsOK(ecode2)) {
52568 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_train_residual_o" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
52571 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
52572 if (!SWIG_IsOK(res3)) {
52573 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_train_residual_o" "', argument " "3"" of type '" "float const *""'");
52575 arg3 =
reinterpret_cast< float *
>(argp3);
52576 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
52577 if (!SWIG_IsOK(res4)) {
52578 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_train_residual_o" "', argument " "4"" of type '" "float *""'");
52580 arg4 =
reinterpret_cast< float *
>(argp4);
52582 Py_BEGIN_ALLOW_THREADS
52584 (arg1)->train_residual_o(arg2,(
float const *)arg3,arg4);
52586 PyEval_RestoreThread(_save);
52587 PyErr_SetString(PyExc_RuntimeError, e.
what());
52590 Py_END_ALLOW_THREADS
52592 resultobj = SWIG_Py_Void();
52599 SWIGINTERN PyObject *_wrap_IndexIVFPQ_reconstruct_from_offset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52600 PyObject *resultobj = 0;
52604 float *arg4 = (
float *) 0 ;
52613 PyObject * obj0 = 0 ;
52614 PyObject * obj1 = 0 ;
52615 PyObject * obj2 = 0 ;
52616 PyObject * obj3 = 0 ;
52618 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFPQ_reconstruct_from_offset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
52619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
52620 if (!SWIG_IsOK(res1)) {
52621 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_reconstruct_from_offset" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
52624 ecode2 = SWIG_AsVal_long(obj1, &val2);
52625 if (!SWIG_IsOK(ecode2)) {
52626 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_reconstruct_from_offset" "', argument " "2"" of type '" "long""'");
52628 arg2 =
static_cast< long >(val2);
52629 ecode3 = SWIG_AsVal_long(obj2, &val3);
52630 if (!SWIG_IsOK(ecode3)) {
52631 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVFPQ_reconstruct_from_offset" "', argument " "3"" of type '" "long""'");
52633 arg3 =
static_cast< long >(val3);
52634 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
52635 if (!SWIG_IsOK(res4)) {
52636 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_reconstruct_from_offset" "', argument " "4"" of type '" "float *""'");
52638 arg4 =
reinterpret_cast< float *
>(argp4);
52640 Py_BEGIN_ALLOW_THREADS
52644 PyEval_RestoreThread(_save);
52645 PyErr_SetString(PyExc_RuntimeError, e.
what());
52648 Py_END_ALLOW_THREADS
52650 resultobj = SWIG_Py_Void();
52657 SWIGINTERN PyObject *_wrap_IndexIVFPQ_find_duplicates(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52658 PyObject *resultobj = 0;
52661 size_t *arg3 = (
size_t *) 0 ;
52668 PyObject * obj0 = 0 ;
52669 PyObject * obj1 = 0 ;
52670 PyObject * obj2 = 0 ;
52673 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVFPQ_find_duplicates",&obj0,&obj1,&obj2)) SWIG_fail;
52674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
52675 if (!SWIG_IsOK(res1)) {
52676 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_find_duplicates" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
52679 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
52680 if (!SWIG_IsOK(res2)) {
52681 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQ_find_duplicates" "', argument " "2"" of type '" "faiss::Index::idx_t *""'");
52684 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_long, 0 | 0 );
52685 if (!SWIG_IsOK(res3)) {
52686 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_find_duplicates" "', argument " "3"" of type '" "size_t *""'");
52688 arg3 =
reinterpret_cast< size_t *
>(argp3);
52690 Py_BEGIN_ALLOW_THREADS
52692 result = (size_t)((
faiss::IndexIVFPQ const *)arg1)->find_duplicates(arg2,arg3);
52694 PyEval_RestoreThread(_save);
52695 PyErr_SetString(PyExc_RuntimeError, e.
what());
52698 Py_END_ALLOW_THREADS
52700 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
52707 SWIGINTERN PyObject *_wrap_IndexIVFPQ_encode(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52708 PyObject *resultobj = 0;
52711 float *arg3 = (
float *) 0 ;
52712 uint8_t *arg4 = (uint8_t *) 0 ;
52721 PyObject * obj0 = 0 ;
52722 PyObject * obj1 = 0 ;
52723 PyObject * obj2 = 0 ;
52724 PyObject * obj3 = 0 ;
52726 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFPQ_encode",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
52727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
52728 if (!SWIG_IsOK(res1)) {
52729 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_encode" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
52732 ecode2 = SWIG_AsVal_long(obj1, &val2);
52733 if (!SWIG_IsOK(ecode2)) {
52734 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_encode" "', argument " "2"" of type '" "long""'");
52736 arg2 =
static_cast< long >(val2);
52737 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
52738 if (!SWIG_IsOK(res3)) {
52739 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_encode" "', argument " "3"" of type '" "float const *""'");
52741 arg3 =
reinterpret_cast< float *
>(argp3);
52742 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
52743 if (!SWIG_IsOK(res4)) {
52744 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_encode" "', argument " "4"" of type '" "uint8_t *""'");
52746 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
52748 Py_BEGIN_ALLOW_THREADS
52752 PyEval_RestoreThread(_save);
52753 PyErr_SetString(PyExc_RuntimeError, e.
what());
52756 Py_END_ALLOW_THREADS
52758 resultobj = SWIG_Py_Void();
52765 SWIGINTERN PyObject *_wrap_IndexIVFPQ_encode_multiple__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52766 PyObject *resultobj = 0;
52769 long *arg3 = (
long *) 0 ;
52770 float *arg4 = (
float *) 0 ;
52771 uint8_t *arg5 = (uint8_t *) 0 ;
52785 PyObject * obj0 = 0 ;
52786 PyObject * obj1 = 0 ;
52787 PyObject * obj2 = 0 ;
52788 PyObject * obj3 = 0 ;
52789 PyObject * obj4 = 0 ;
52790 PyObject * obj5 = 0 ;
52792 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexIVFPQ_encode_multiple",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
52793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
52794 if (!SWIG_IsOK(res1)) {
52795 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
52798 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
52799 if (!SWIG_IsOK(ecode2)) {
52800 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "2"" of type '" "size_t""'");
52802 arg2 =
static_cast< size_t >(val2);
52803 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
52804 if (!SWIG_IsOK(res3)) {
52805 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "3"" of type '" "long *""'");
52807 arg3 =
reinterpret_cast< long *
>(argp3);
52808 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
52809 if (!SWIG_IsOK(res4)) {
52810 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "4"" of type '" "float const *""'");
52812 arg4 =
reinterpret_cast< float *
>(argp4);
52813 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
52814 if (!SWIG_IsOK(res5)) {
52815 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "5"" of type '" "uint8_t *""'");
52817 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
52818 ecode6 = SWIG_AsVal_bool(obj5, &val6);
52819 if (!SWIG_IsOK(ecode6)) {
52820 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "6"" of type '" "bool""'");
52822 arg6 =
static_cast< bool >(val6);
52824 Py_BEGIN_ALLOW_THREADS
52826 ((
faiss::IndexIVFPQ const *)arg1)->encode_multiple(arg2,arg3,(
float const *)arg4,arg5,arg6);
52828 PyEval_RestoreThread(_save);
52829 PyErr_SetString(PyExc_RuntimeError, e.
what());
52832 Py_END_ALLOW_THREADS
52834 resultobj = SWIG_Py_Void();
52841 SWIGINTERN PyObject *_wrap_IndexIVFPQ_encode_multiple__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52842 PyObject *resultobj = 0;
52845 long *arg3 = (
long *) 0 ;
52846 float *arg4 = (
float *) 0 ;
52847 uint8_t *arg5 = (uint8_t *) 0 ;
52858 PyObject * obj0 = 0 ;
52859 PyObject * obj1 = 0 ;
52860 PyObject * obj2 = 0 ;
52861 PyObject * obj3 = 0 ;
52862 PyObject * obj4 = 0 ;
52864 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFPQ_encode_multiple",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
52865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
52866 if (!SWIG_IsOK(res1)) {
52867 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
52870 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
52871 if (!SWIG_IsOK(ecode2)) {
52872 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "2"" of type '" "size_t""'");
52874 arg2 =
static_cast< size_t >(val2);
52875 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
52876 if (!SWIG_IsOK(res3)) {
52877 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "3"" of type '" "long *""'");
52879 arg3 =
reinterpret_cast< long *
>(argp3);
52880 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
52881 if (!SWIG_IsOK(res4)) {
52882 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "4"" of type '" "float const *""'");
52884 arg4 =
reinterpret_cast< float *
>(argp4);
52885 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
52886 if (!SWIG_IsOK(res5)) {
52887 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQ_encode_multiple" "', argument " "5"" of type '" "uint8_t *""'");
52889 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
52891 Py_BEGIN_ALLOW_THREADS
52893 ((
faiss::IndexIVFPQ const *)arg1)->encode_multiple(arg2,arg3,(
float const *)arg4,arg5);
52895 PyEval_RestoreThread(_save);
52896 PyErr_SetString(PyExc_RuntimeError, e.
what());
52899 Py_END_ALLOW_THREADS
52901 resultobj = SWIG_Py_Void();
52908 SWIGINTERN PyObject *_wrap_IndexIVFPQ_encode_multiple(PyObject *
self, PyObject *args) {
52910 PyObject *argv[7] = {
52915 if (!PyTuple_Check(args)) SWIG_fail;
52916 argc = args ? PyObject_Length(args) : 0;
52917 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
52918 argv[ii] = PyTuple_GET_ITEM(args,ii);
52923 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQ, 0);
52924 _v = SWIG_CheckState(res);
52927 int res = SWIG_AsVal_size_t(argv[1], NULL);
52928 _v = SWIG_CheckState(res);
52932 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_long, 0);
52933 _v = SWIG_CheckState(res);
52936 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
52937 _v = SWIG_CheckState(res);
52940 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0);
52941 _v = SWIG_CheckState(res);
52943 return _wrap_IndexIVFPQ_encode_multiple__SWIG_1(
self, args);
52953 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQ, 0);
52954 _v = SWIG_CheckState(res);
52957 int res = SWIG_AsVal_size_t(argv[1], NULL);
52958 _v = SWIG_CheckState(res);
52962 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_long, 0);
52963 _v = SWIG_CheckState(res);
52966 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0);
52967 _v = SWIG_CheckState(res);
52970 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0);
52971 _v = SWIG_CheckState(res);
52974 int res = SWIG_AsVal_bool(argv[5], NULL);
52975 _v = SWIG_CheckState(res);
52978 return _wrap_IndexIVFPQ_encode_multiple__SWIG_0(
self, args);
52988 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVFPQ_encode_multiple'.\n"
52989 " Possible C/C++ prototypes are:\n"
52990 " faiss::IndexIVFPQ::encode_multiple(size_t,long *,float const *,uint8_t *,bool) const\n"
52991 " faiss::IndexIVFPQ::encode_multiple(size_t,long *,float const *,uint8_t *) const\n");
52996 SWIGINTERN PyObject *_wrap_IndexIVFPQ_decode_multiple(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
52997 PyObject *resultobj = 0;
53000 long *arg3 = (
long *) 0 ;
53001 uint8_t *arg4 = (uint8_t *) 0 ;
53002 float *arg5 = (
float *) 0 ;
53013 PyObject * obj0 = 0 ;
53014 PyObject * obj1 = 0 ;
53015 PyObject * obj2 = 0 ;
53016 PyObject * obj3 = 0 ;
53017 PyObject * obj4 = 0 ;
53019 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFPQ_decode_multiple",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
53020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
53021 if (!SWIG_IsOK(res1)) {
53022 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_decode_multiple" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
53025 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
53026 if (!SWIG_IsOK(ecode2)) {
53027 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_decode_multiple" "', argument " "2"" of type '" "size_t""'");
53029 arg2 =
static_cast< size_t >(val2);
53030 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
53031 if (!SWIG_IsOK(res3)) {
53032 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQ_decode_multiple" "', argument " "3"" of type '" "long const *""'");
53034 arg3 =
reinterpret_cast< long *
>(argp3);
53035 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
53036 if (!SWIG_IsOK(res4)) {
53037 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQ_decode_multiple" "', argument " "4"" of type '" "uint8_t const *""'");
53039 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
53040 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
53041 if (!SWIG_IsOK(res5)) {
53042 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQ_decode_multiple" "', argument " "5"" of type '" "float *""'");
53044 arg5 =
reinterpret_cast< float *
>(argp5);
53046 Py_BEGIN_ALLOW_THREADS
53048 ((
faiss::IndexIVFPQ const *)arg1)->decode_multiple(arg2,(
long const *)arg3,(uint8_t
const *)arg4,arg5);
53050 PyEval_RestoreThread(_save);
53051 PyErr_SetString(PyExc_RuntimeError, e.
what());
53054 Py_END_ALLOW_THREADS
53056 resultobj = SWIG_Py_Void();
53063 SWIGINTERN PyObject *_wrap_IndexIVFPQ_get_InvertedListScanner(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53064 PyObject *resultobj = 0;
53071 PyObject * obj0 = 0 ;
53072 PyObject * obj1 = 0 ;
53075 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQ_get_InvertedListScanner",&obj0,&obj1)) SWIG_fail;
53076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
53077 if (!SWIG_IsOK(res1)) {
53078 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_get_InvertedListScanner" "', argument " "1"" of type '" "faiss::IndexIVFPQ const *""'");
53081 ecode2 = SWIG_AsVal_bool(obj1, &val2);
53082 if (!SWIG_IsOK(ecode2)) {
53083 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQ_get_InvertedListScanner" "', argument " "2"" of type '" "bool""'");
53085 arg2 =
static_cast< bool >(val2);
53087 Py_BEGIN_ALLOW_THREADS
53091 PyEval_RestoreThread(_save);
53092 PyErr_SetString(PyExc_RuntimeError, e.
what());
53095 Py_END_ALLOW_THREADS
53097 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedListScanner, 0 | 0 );
53104 SWIGINTERN PyObject *_wrap_IndexIVFPQ_precompute_table(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53105 PyObject *resultobj = 0;
53109 PyObject * obj0 = 0 ;
53111 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQ_precompute_table",&obj0)) SWIG_fail;
53112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
53113 if (!SWIG_IsOK(res1)) {
53114 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQ_precompute_table" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
53118 Py_BEGIN_ALLOW_THREADS
53120 (arg1)->precompute_table();
53122 PyEval_RestoreThread(_save);
53123 PyErr_SetString(PyExc_RuntimeError, e.
what());
53126 Py_END_ALLOW_THREADS
53128 resultobj = SWIG_Py_Void();
53135 SWIGINTERN PyObject *_wrap_new_IndexIVFPQ__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53136 PyObject *resultobj = 0;
53139 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIVFPQ")) SWIG_fail;
53141 Py_BEGIN_ALLOW_THREADS
53145 PyEval_RestoreThread(_save);
53146 PyErr_SetString(PyExc_RuntimeError, e.
what());
53149 Py_END_ALLOW_THREADS
53151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFPQ, SWIG_POINTER_NEW | 0 );
53158 SWIGINTERN PyObject *_wrap_new_IndexIVFPQ(PyObject *
self, PyObject *args) {
53160 PyObject *argv[6] = {
53165 if (!PyTuple_Check(args)) SWIG_fail;
53166 argc = args ? PyObject_Length(args) : 0;
53167 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
53168 argv[ii] = PyTuple_GET_ITEM(args,ii);
53171 return _wrap_new_IndexIVFPQ__SWIG_1(
self, args);
53176 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
53177 _v = SWIG_CheckState(res);
53180 int res = SWIG_AsVal_size_t(argv[1], NULL);
53181 _v = SWIG_CheckState(res);
53185 int res = SWIG_AsVal_size_t(argv[2], NULL);
53186 _v = SWIG_CheckState(res);
53190 int res = SWIG_AsVal_size_t(argv[3], NULL);
53191 _v = SWIG_CheckState(res);
53195 int res = SWIG_AsVal_size_t(argv[4], NULL);
53196 _v = SWIG_CheckState(res);
53199 return _wrap_new_IndexIVFPQ__SWIG_0(
self, args);
53208 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexIVFPQ'.\n"
53209 " Possible C/C++ prototypes are:\n"
53210 " faiss::IndexIVFPQ::IndexIVFPQ(faiss::Index *,size_t,size_t,size_t,size_t)\n"
53211 " faiss::IndexIVFPQ::IndexIVFPQ()\n");
53216 SWIGINTERN PyObject *_wrap_delete_IndexIVFPQ(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53217 PyObject *resultobj = 0;
53221 PyObject * obj0 = 0 ;
53223 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVFPQ",&obj0)) SWIG_fail;
53224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQ, SWIG_POINTER_DISOWN | 0 );
53225 if (!SWIG_IsOK(res1)) {
53226 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVFPQ" "', argument " "1"" of type '" "faiss::IndexIVFPQ *""'");
53230 resultobj = SWIG_Py_Void();
53237 SWIGINTERN PyObject *IndexIVFPQ_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53239 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
53240 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVFPQ, SWIG_NewClientData(obj));
53241 return SWIG_Py_Void();
53244 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_nrefine_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53245 PyObject *resultobj = 0;
53252 PyObject * obj0 = 0 ;
53253 PyObject * obj1 = 0 ;
53255 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQStats_nrefine_set",&obj0,&obj1)) SWIG_fail;
53256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
53257 if (!SWIG_IsOK(res1)) {
53258 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_nrefine_set" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
53261 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
53262 if (!SWIG_IsOK(ecode2)) {
53263 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQStats_nrefine_set" "', argument " "2"" of type '" "size_t""'");
53265 arg2 =
static_cast< size_t >(val2);
53266 if (arg1) (arg1)->nrefine = arg2;
53267 resultobj = SWIG_Py_Void();
53274 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_nrefine_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53275 PyObject *resultobj = 0;
53279 PyObject * obj0 = 0 ;
53282 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQStats_nrefine_get",&obj0)) SWIG_fail;
53283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
53284 if (!SWIG_IsOK(res1)) {
53285 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_nrefine_get" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
53288 result = (size_t) ((arg1)->nrefine);
53289 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
53296 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_n_hamming_pass_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53297 PyObject *resultobj = 0;
53304 PyObject * obj0 = 0 ;
53305 PyObject * obj1 = 0 ;
53307 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQStats_n_hamming_pass_set",&obj0,&obj1)) SWIG_fail;
53308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
53309 if (!SWIG_IsOK(res1)) {
53310 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_n_hamming_pass_set" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
53313 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
53314 if (!SWIG_IsOK(ecode2)) {
53315 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQStats_n_hamming_pass_set" "', argument " "2"" of type '" "size_t""'");
53317 arg2 =
static_cast< size_t >(val2);
53318 if (arg1) (arg1)->n_hamming_pass = arg2;
53319 resultobj = SWIG_Py_Void();
53326 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_n_hamming_pass_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53327 PyObject *resultobj = 0;
53331 PyObject * obj0 = 0 ;
53334 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQStats_n_hamming_pass_get",&obj0)) SWIG_fail;
53335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
53336 if (!SWIG_IsOK(res1)) {
53337 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_n_hamming_pass_get" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
53340 result = (size_t) ((arg1)->n_hamming_pass);
53341 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
53348 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_search_cycles_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53349 PyObject *resultobj = 0;
53356 PyObject * obj0 = 0 ;
53357 PyObject * obj1 = 0 ;
53359 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQStats_search_cycles_set",&obj0,&obj1)) SWIG_fail;
53360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
53361 if (!SWIG_IsOK(res1)) {
53362 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_search_cycles_set" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
53365 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
53366 if (!SWIG_IsOK(ecode2)) {
53367 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQStats_search_cycles_set" "', argument " "2"" of type '" "size_t""'");
53369 arg2 =
static_cast< size_t >(val2);
53370 if (arg1) (arg1)->search_cycles = arg2;
53371 resultobj = SWIG_Py_Void();
53378 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_search_cycles_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53379 PyObject *resultobj = 0;
53383 PyObject * obj0 = 0 ;
53386 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQStats_search_cycles_get",&obj0)) SWIG_fail;
53387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
53388 if (!SWIG_IsOK(res1)) {
53389 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_search_cycles_get" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
53392 result = (size_t) ((arg1)->search_cycles);
53393 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
53400 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_refine_cycles_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53401 PyObject *resultobj = 0;
53408 PyObject * obj0 = 0 ;
53409 PyObject * obj1 = 0 ;
53411 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQStats_refine_cycles_set",&obj0,&obj1)) SWIG_fail;
53412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
53413 if (!SWIG_IsOK(res1)) {
53414 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_refine_cycles_set" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
53417 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
53418 if (!SWIG_IsOK(ecode2)) {
53419 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQStats_refine_cycles_set" "', argument " "2"" of type '" "size_t""'");
53421 arg2 =
static_cast< size_t >(val2);
53422 if (arg1) (arg1)->refine_cycles = arg2;
53423 resultobj = SWIG_Py_Void();
53430 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_refine_cycles_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53431 PyObject *resultobj = 0;
53435 PyObject * obj0 = 0 ;
53438 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQStats_refine_cycles_get",&obj0)) SWIG_fail;
53439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
53440 if (!SWIG_IsOK(res1)) {
53441 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_refine_cycles_get" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
53444 result = (size_t) ((arg1)->refine_cycles);
53445 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
53452 SWIGINTERN PyObject *_wrap_new_IndexIVFPQStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53453 PyObject *resultobj = 0;
53456 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIVFPQStats")) SWIG_fail;
53458 Py_BEGIN_ALLOW_THREADS
53462 PyEval_RestoreThread(_save);
53463 PyErr_SetString(PyExc_RuntimeError, e.
what());
53466 Py_END_ALLOW_THREADS
53468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFPQStats, SWIG_POINTER_NEW | 0 );
53475 SWIGINTERN PyObject *_wrap_IndexIVFPQStats_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53476 PyObject *resultobj = 0;
53480 PyObject * obj0 = 0 ;
53482 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQStats_reset",&obj0)) SWIG_fail;
53483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0 );
53484 if (!SWIG_IsOK(res1)) {
53485 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQStats_reset" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
53489 Py_BEGIN_ALLOW_THREADS
53493 PyEval_RestoreThread(_save);
53494 PyErr_SetString(PyExc_RuntimeError, e.
what());
53497 Py_END_ALLOW_THREADS
53499 resultobj = SWIG_Py_Void();
53506 SWIGINTERN PyObject *_wrap_delete_IndexIVFPQStats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53507 PyObject *resultobj = 0;
53511 PyObject * obj0 = 0 ;
53513 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVFPQStats",&obj0)) SWIG_fail;
53514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQStats, SWIG_POINTER_DISOWN | 0 );
53515 if (!SWIG_IsOK(res1)) {
53516 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVFPQStats" "', argument " "1"" of type '" "faiss::IndexIVFPQStats *""'");
53520 resultobj = SWIG_Py_Void();
53527 SWIGINTERN PyObject *IndexIVFPQStats_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53529 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
53530 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVFPQStats, SWIG_NewClientData(obj));
53531 return SWIG_Py_Void();
53534 SWIGINTERN
int Swig_var_indexIVFPQ_stats_set(PyObject *_val) {
53537 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_faiss__IndexIVFPQStats, 0 | 0);
53538 if (!SWIG_IsOK(res)) {
53539 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""faiss::indexIVFPQ_stats""' of type '""faiss::IndexIVFPQStats""'");
53542 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""faiss::indexIVFPQ_stats""' of type '""faiss::IndexIVFPQStats""'");
53546 faiss::indexIVFPQ_stats = *temp;
53547 if (SWIG_IsNewObj(res))
delete temp;
53556 SWIGINTERN PyObject *Swig_var_indexIVFPQ_stats_get(
void) {
53557 PyObject *pyobj = 0;
53559 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&faiss::indexIVFPQ_stats), SWIGTYPE_p_faiss__IndexIVFPQStats, 0 );
53564 SWIGINTERN PyObject *_wrap_IndexIVFPQR_refine_pq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53565 PyObject *resultobj = 0;
53572 PyObject * obj0 = 0 ;
53573 PyObject * obj1 = 0 ;
53575 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQR_refine_pq_set",&obj0,&obj1)) SWIG_fail;
53576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
53577 if (!SWIG_IsOK(res1)) {
53578 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_refine_pq_set" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
53581 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
53582 if (!SWIG_IsOK(res2)) {
53583 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQR_refine_pq_set" "', argument " "2"" of type '" "faiss::ProductQuantizer *""'");
53586 if (arg1) (arg1)->refine_pq = *arg2;
53587 resultobj = SWIG_Py_Void();
53594 SWIGINTERN PyObject *_wrap_IndexIVFPQR_refine_pq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53595 PyObject *resultobj = 0;
53599 PyObject * obj0 = 0 ;
53602 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQR_refine_pq_get",&obj0)) SWIG_fail;
53603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
53604 if (!SWIG_IsOK(res1)) {
53605 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_refine_pq_get" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
53609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
53616 SWIGINTERN PyObject *_wrap_IndexIVFPQR_refine_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53617 PyObject *resultobj = 0;
53619 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
53624 PyObject * obj0 = 0 ;
53625 PyObject * obj1 = 0 ;
53627 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQR_refine_codes_set",&obj0,&obj1)) SWIG_fail;
53628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
53629 if (!SWIG_IsOK(res1)) {
53630 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_refine_codes_set" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
53633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
53634 if (!SWIG_IsOK(res2)) {
53635 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQR_refine_codes_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
53637 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
53638 if (arg1) (arg1)->refine_codes = *arg2;
53639 resultobj = SWIG_Py_Void();
53646 SWIGINTERN PyObject *_wrap_IndexIVFPQR_refine_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53647 PyObject *resultobj = 0;
53651 PyObject * obj0 = 0 ;
53652 std::vector< uint8_t > *result = 0 ;
53654 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQR_refine_codes_get",&obj0)) SWIG_fail;
53655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
53656 if (!SWIG_IsOK(res1)) {
53657 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_refine_codes_get" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
53660 result = (std::vector< uint8_t > *)& ((arg1)->refine_codes);
53661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
53668 SWIGINTERN PyObject *_wrap_IndexIVFPQR_k_factor_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53669 PyObject *resultobj = 0;
53676 PyObject * obj0 = 0 ;
53677 PyObject * obj1 = 0 ;
53679 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQR_k_factor_set",&obj0,&obj1)) SWIG_fail;
53680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
53681 if (!SWIG_IsOK(res1)) {
53682 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_k_factor_set" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
53685 ecode2 = SWIG_AsVal_float(obj1, &val2);
53686 if (!SWIG_IsOK(ecode2)) {
53687 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_k_factor_set" "', argument " "2"" of type '" "float""'");
53689 arg2 =
static_cast< float >(val2);
53690 if (arg1) (arg1)->k_factor = arg2;
53691 resultobj = SWIG_Py_Void();
53698 SWIGINTERN PyObject *_wrap_IndexIVFPQR_k_factor_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53699 PyObject *resultobj = 0;
53703 PyObject * obj0 = 0 ;
53706 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQR_k_factor_get",&obj0)) SWIG_fail;
53707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
53708 if (!SWIG_IsOK(res1)) {
53709 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_k_factor_get" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
53712 result = (float) ((arg1)->k_factor);
53713 resultobj = SWIG_From_float(static_cast< float >(result));
53720 SWIGINTERN PyObject *_wrap_new_IndexIVFPQR__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53721 PyObject *resultobj = 0;
53743 PyObject * obj0 = 0 ;
53744 PyObject * obj1 = 0 ;
53745 PyObject * obj2 = 0 ;
53746 PyObject * obj3 = 0 ;
53747 PyObject * obj4 = 0 ;
53748 PyObject * obj5 = 0 ;
53749 PyObject * obj6 = 0 ;
53752 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:new_IndexIVFPQR",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
53753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
53754 if (!SWIG_IsOK(res1)) {
53755 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIVFPQR" "', argument " "1"" of type '" "faiss::Index *""'");
53758 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
53759 if (!SWIG_IsOK(ecode2)) {
53760 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexIVFPQR" "', argument " "2"" of type '" "size_t""'");
53762 arg2 =
static_cast< size_t >(val2);
53763 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
53764 if (!SWIG_IsOK(ecode3)) {
53765 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexIVFPQR" "', argument " "3"" of type '" "size_t""'");
53767 arg3 =
static_cast< size_t >(val3);
53768 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
53769 if (!SWIG_IsOK(ecode4)) {
53770 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_IndexIVFPQR" "', argument " "4"" of type '" "size_t""'");
53772 arg4 =
static_cast< size_t >(val4);
53773 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
53774 if (!SWIG_IsOK(ecode5)) {
53775 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "new_IndexIVFPQR" "', argument " "5"" of type '" "size_t""'");
53777 arg5 =
static_cast< size_t >(val5);
53778 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
53779 if (!SWIG_IsOK(ecode6)) {
53780 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "new_IndexIVFPQR" "', argument " "6"" of type '" "size_t""'");
53782 arg6 =
static_cast< size_t >(val6);
53783 ecode7 = SWIG_AsVal_size_t(obj6, &val7);
53784 if (!SWIG_IsOK(ecode7)) {
53785 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "new_IndexIVFPQR" "', argument " "7"" of type '" "size_t""'");
53787 arg7 =
static_cast< size_t >(val7);
53789 Py_BEGIN_ALLOW_THREADS
53793 PyEval_RestoreThread(_save);
53794 PyErr_SetString(PyExc_RuntimeError, e.
what());
53797 Py_END_ALLOW_THREADS
53799 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFPQR, SWIG_POINTER_NEW | 0 );
53806 SWIGINTERN PyObject *_wrap_IndexIVFPQR_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53807 PyObject *resultobj = 0;
53811 PyObject * obj0 = 0 ;
53813 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIVFPQR_reset",&obj0)) SWIG_fail;
53814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
53815 if (!SWIG_IsOK(res1)) {
53816 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_reset" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
53820 Py_BEGIN_ALLOW_THREADS
53824 PyEval_RestoreThread(_save);
53825 PyErr_SetString(PyExc_RuntimeError, e.
what());
53828 Py_END_ALLOW_THREADS
53830 resultobj = SWIG_Py_Void();
53837 SWIGINTERN PyObject *_wrap_IndexIVFPQR_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53838 PyObject *resultobj = 0;
53845 PyObject * obj0 = 0 ;
53846 PyObject * obj1 = 0 ;
53849 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIVFPQR_remove_ids",&obj0,&obj1)) SWIG_fail;
53850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
53851 if (!SWIG_IsOK(res1)) {
53852 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_remove_ids" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
53855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
53856 if (!SWIG_IsOK(res2)) {
53857 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQR_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
53860 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVFPQR_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
53864 Py_BEGIN_ALLOW_THREADS
53868 PyEval_RestoreThread(_save);
53869 PyErr_SetString(PyExc_RuntimeError, e.
what());
53872 Py_END_ALLOW_THREADS
53874 resultobj = SWIG_From_long(static_cast< long >(result));
53881 SWIGINTERN PyObject *_wrap_IndexIVFPQR_train_residual(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53882 PyObject *resultobj = 0;
53885 float *arg3 = (
float *) 0 ;
53892 PyObject * obj0 = 0 ;
53893 PyObject * obj1 = 0 ;
53894 PyObject * obj2 = 0 ;
53896 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVFPQR_train_residual",&obj0,&obj1,&obj2)) SWIG_fail;
53897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
53898 if (!SWIG_IsOK(res1)) {
53899 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_train_residual" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
53902 ecode2 = SWIG_AsVal_long(obj1, &val2);
53903 if (!SWIG_IsOK(ecode2)) {
53904 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_train_residual" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
53907 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
53908 if (!SWIG_IsOK(res3)) {
53909 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQR_train_residual" "', argument " "3"" of type '" "float const *""'");
53911 arg3 =
reinterpret_cast< float *
>(argp3);
53913 Py_BEGIN_ALLOW_THREADS
53915 (arg1)->train_residual(arg2,(
float const *)arg3);
53917 PyEval_RestoreThread(_save);
53918 PyErr_SetString(PyExc_RuntimeError, e.
what());
53921 Py_END_ALLOW_THREADS
53923 resultobj = SWIG_Py_Void();
53930 SWIGINTERN PyObject *_wrap_IndexIVFPQR_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53931 PyObject *resultobj = 0;
53934 float *arg3 = (
float *) 0 ;
53935 long *arg4 = (
long *) 0 ;
53944 PyObject * obj0 = 0 ;
53945 PyObject * obj1 = 0 ;
53946 PyObject * obj2 = 0 ;
53947 PyObject * obj3 = 0 ;
53949 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFPQR_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
53950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
53951 if (!SWIG_IsOK(res1)) {
53952 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
53955 ecode2 = SWIG_AsVal_long(obj1, &val2);
53956 if (!SWIG_IsOK(ecode2)) {
53957 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
53960 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
53961 if (!SWIG_IsOK(res3)) {
53962 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQR_add_with_ids" "', argument " "3"" of type '" "float const *""'");
53964 arg3 =
reinterpret_cast< float *
>(argp3);
53965 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
53966 if (!SWIG_IsOK(res4)) {
53967 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQR_add_with_ids" "', argument " "4"" of type '" "long const *""'");
53969 arg4 =
reinterpret_cast< long *
>(argp4);
53971 Py_BEGIN_ALLOW_THREADS
53973 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
53975 PyEval_RestoreThread(_save);
53976 PyErr_SetString(PyExc_RuntimeError, e.
what());
53979 Py_END_ALLOW_THREADS
53981 resultobj = SWIG_Py_Void();
53988 SWIGINTERN PyObject *_wrap_IndexIVFPQR_add_core__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
53989 PyObject *resultobj = 0;
53992 float *arg3 = (
float *) 0 ;
53993 long *arg4 = (
long *) 0 ;
53994 long *arg5 = (
long *) 0 ;
54005 PyObject * obj0 = 0 ;
54006 PyObject * obj1 = 0 ;
54007 PyObject * obj2 = 0 ;
54008 PyObject * obj3 = 0 ;
54009 PyObject * obj4 = 0 ;
54011 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIVFPQR_add_core",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
54012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
54013 if (!SWIG_IsOK(res1)) {
54014 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_add_core" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
54017 ecode2 = SWIG_AsVal_long(obj1, &val2);
54018 if (!SWIG_IsOK(ecode2)) {
54019 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_add_core" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
54022 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
54023 if (!SWIG_IsOK(res3)) {
54024 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQR_add_core" "', argument " "3"" of type '" "float const *""'");
54026 arg3 =
reinterpret_cast< float *
>(argp3);
54027 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
54028 if (!SWIG_IsOK(res4)) {
54029 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQR_add_core" "', argument " "4"" of type '" "long const *""'");
54031 arg4 =
reinterpret_cast< long *
>(argp4);
54032 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
54033 if (!SWIG_IsOK(res5)) {
54034 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQR_add_core" "', argument " "5"" of type '" "long const *""'");
54036 arg5 =
reinterpret_cast< long *
>(argp5);
54038 Py_BEGIN_ALLOW_THREADS
54040 (arg1)->add_core(arg2,(
float const *)arg3,(
long const *)arg4,(
long const *)arg5);
54041 } catch(faiss::FaissException & e) {
54042 PyEval_RestoreThread(_save);
54043 PyErr_SetString(PyExc_RuntimeError, e.what());
54046 Py_END_ALLOW_THREADS
54048 resultobj = SWIG_Py_Void();
54055 SWIGINTERN PyObject *_wrap_IndexIVFPQR_add_core__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54056 PyObject *resultobj = 0;
54059 float *arg3 = (
float *) 0 ;
54060 long *arg4 = (
long *) 0 ;
54069 PyObject * obj0 = 0 ;
54070 PyObject * obj1 = 0 ;
54071 PyObject * obj2 = 0 ;
54072 PyObject * obj3 = 0 ;
54074 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFPQR_add_core",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
54075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
54076 if (!SWIG_IsOK(res1)) {
54077 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_add_core" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
54080 ecode2 = SWIG_AsVal_long(obj1, &val2);
54081 if (!SWIG_IsOK(ecode2)) {
54082 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_add_core" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
54085 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
54086 if (!SWIG_IsOK(res3)) {
54087 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQR_add_core" "', argument " "3"" of type '" "float const *""'");
54089 arg3 =
reinterpret_cast< float *
>(argp3);
54090 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
54091 if (!SWIG_IsOK(res4)) {
54092 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQR_add_core" "', argument " "4"" of type '" "long const *""'");
54094 arg4 =
reinterpret_cast< long *
>(argp4);
54096 Py_BEGIN_ALLOW_THREADS
54098 (arg1)->add_core(arg2,(
float const *)arg3,(
long const *)arg4);
54100 PyEval_RestoreThread(_save);
54101 PyErr_SetString(PyExc_RuntimeError, e.
what());
54104 Py_END_ALLOW_THREADS
54106 resultobj = SWIG_Py_Void();
54113 SWIGINTERN PyObject *_wrap_IndexIVFPQR_add_core(PyObject *
self, PyObject *args) {
54115 PyObject *argv[6] = {
54120 if (!PyTuple_Check(args)) SWIG_fail;
54121 argc = args ? PyObject_Length(args) : 0;
54122 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
54123 argv[ii] = PyTuple_GET_ITEM(args,ii);
54128 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQR, 0);
54129 _v = SWIG_CheckState(res);
54132 int res = SWIG_AsVal_long(argv[1], NULL);
54133 _v = SWIG_CheckState(res);
54137 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
54138 _v = SWIG_CheckState(res);
54141 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
54142 _v = SWIG_CheckState(res);
54144 return _wrap_IndexIVFPQR_add_core__SWIG_1(
self, args);
54153 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQR, 0);
54154 _v = SWIG_CheckState(res);
54157 int res = SWIG_AsVal_long(argv[1], NULL);
54158 _v = SWIG_CheckState(res);
54162 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
54163 _v = SWIG_CheckState(res);
54166 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
54167 _v = SWIG_CheckState(res);
54170 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
54171 _v = SWIG_CheckState(res);
54173 return _wrap_IndexIVFPQR_add_core__SWIG_0(
self, args);
54182 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVFPQR_add_core'.\n"
54183 " Possible C/C++ prototypes are:\n"
54184 " faiss::IndexIVFPQR::add_core(faiss::Index::idx_t,float const *,long const *,long const *)\n"
54185 " faiss::IndexIVFPQR::add_core(faiss::Index::idx_t,float const *,long const *)\n");
54190 SWIGINTERN PyObject *_wrap_IndexIVFPQR_reconstruct_from_offset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54191 PyObject *resultobj = 0;
54195 float *arg4 = (
float *) 0 ;
54204 PyObject * obj0 = 0 ;
54205 PyObject * obj1 = 0 ;
54206 PyObject * obj2 = 0 ;
54207 PyObject * obj3 = 0 ;
54209 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIVFPQR_reconstruct_from_offset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
54210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
54211 if (!SWIG_IsOK(res1)) {
54212 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_reconstruct_from_offset" "', argument " "1"" of type '" "faiss::IndexIVFPQR const *""'");
54215 ecode2 = SWIG_AsVal_long(obj1, &val2);
54216 if (!SWIG_IsOK(ecode2)) {
54217 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_reconstruct_from_offset" "', argument " "2"" of type '" "long""'");
54219 arg2 =
static_cast< long >(val2);
54220 ecode3 = SWIG_AsVal_long(obj2, &val3);
54221 if (!SWIG_IsOK(ecode3)) {
54222 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVFPQR_reconstruct_from_offset" "', argument " "3"" of type '" "long""'");
54224 arg3 =
static_cast< long >(val3);
54225 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
54226 if (!SWIG_IsOK(res4)) {
54227 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIVFPQR_reconstruct_from_offset" "', argument " "4"" of type '" "float *""'");
54229 arg4 =
reinterpret_cast< float *
>(argp4);
54231 Py_BEGIN_ALLOW_THREADS
54235 PyEval_RestoreThread(_save);
54236 PyErr_SetString(PyExc_RuntimeError, e.
what());
54239 Py_END_ALLOW_THREADS
54241 resultobj = SWIG_Py_Void();
54248 SWIGINTERN PyObject *_wrap_IndexIVFPQR_merge_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54249 PyObject *resultobj = 0;
54259 PyObject * obj0 = 0 ;
54260 PyObject * obj1 = 0 ;
54261 PyObject * obj2 = 0 ;
54263 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIVFPQR_merge_from",&obj0,&obj1,&obj2)) SWIG_fail;
54264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
54265 if (!SWIG_IsOK(res1)) {
54266 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_merge_from" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
54269 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IndexIVF, 0 );
54270 if (!SWIG_IsOK(res2)) {
54271 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIVFPQR_merge_from" "', argument " "2"" of type '" "faiss::IndexIVF &""'");
54274 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIVFPQR_merge_from" "', argument " "2"" of type '" "faiss::IndexIVF &""'");
54277 ecode3 = SWIG_AsVal_long(obj2, &val3);
54278 if (!SWIG_IsOK(ecode3)) {
54279 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexIVFPQR_merge_from" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
54283 Py_BEGIN_ALLOW_THREADS
54285 (arg1)->merge_from(*arg2,arg3);
54287 PyEval_RestoreThread(_save);
54288 PyErr_SetString(PyExc_RuntimeError, e.
what());
54291 Py_END_ALLOW_THREADS
54293 resultobj = SWIG_Py_Void();
54300 SWIGINTERN PyObject *_wrap_IndexIVFPQR_search_preassigned__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54301 PyObject *resultobj = 0;
54304 float *arg3 = (
float *) 0 ;
54307 float *arg6 = (
float *) 0 ;
54308 float *arg7 = (
float *) 0 ;
54332 PyObject * obj0 = 0 ;
54333 PyObject * obj1 = 0 ;
54334 PyObject * obj2 = 0 ;
54335 PyObject * obj3 = 0 ;
54336 PyObject * obj4 = 0 ;
54337 PyObject * obj5 = 0 ;
54338 PyObject * obj6 = 0 ;
54339 PyObject * obj7 = 0 ;
54340 PyObject * obj8 = 0 ;
54341 PyObject * obj9 = 0 ;
54343 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOOO:IndexIVFPQR_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
54344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
54345 if (!SWIG_IsOK(res1)) {
54346 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "1"" of type '" "faiss::IndexIVFPQR const *""'");
54349 ecode2 = SWIG_AsVal_long(obj1, &val2);
54350 if (!SWIG_IsOK(ecode2)) {
54351 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
54354 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
54355 if (!SWIG_IsOK(res3)) {
54356 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "3"" of type '" "float const *""'");
54358 arg3 =
reinterpret_cast< float *
>(argp3);
54359 ecode4 = SWIG_AsVal_long(obj3, &val4);
54360 if (!SWIG_IsOK(ecode4)) {
54361 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
54364 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
54365 if (!SWIG_IsOK(res5)) {
54366 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "5"" of type '" "faiss::Index::idx_t const *""'");
54369 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
54370 if (!SWIG_IsOK(res6)) {
54371 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "6"" of type '" "float const *""'");
54373 arg6 =
reinterpret_cast< float *
>(argp6);
54374 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
54375 if (!SWIG_IsOK(res7)) {
54376 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "7"" of type '" "float *""'");
54378 arg7 =
reinterpret_cast< float *
>(argp7);
54379 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
54380 if (!SWIG_IsOK(res8)) {
54381 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
54384 ecode9 = SWIG_AsVal_bool(obj8, &val9);
54385 if (!SWIG_IsOK(ecode9)) {
54386 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "9"" of type '" "bool""'");
54388 arg9 =
static_cast< bool >(val9);
54389 res10 = SWIG_ConvertPtr(obj9, &argp10,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
54390 if (!SWIG_IsOK(res10)) {
54391 SWIG_exception_fail(SWIG_ArgError(res10),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "10"" of type '" "faiss::IVFSearchParameters const *""'");
54395 Py_BEGIN_ALLOW_THREADS
54399 PyEval_RestoreThread(_save);
54400 PyErr_SetString(PyExc_RuntimeError, e.
what());
54403 Py_END_ALLOW_THREADS
54405 resultobj = SWIG_Py_Void();
54412 SWIGINTERN PyObject *_wrap_IndexIVFPQR_search_preassigned__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54413 PyObject *resultobj = 0;
54416 float *arg3 = (
float *) 0 ;
54419 float *arg6 = (
float *) 0 ;
54420 float *arg7 = (
float *) 0 ;
54441 PyObject * obj0 = 0 ;
54442 PyObject * obj1 = 0 ;
54443 PyObject * obj2 = 0 ;
54444 PyObject * obj3 = 0 ;
54445 PyObject * obj4 = 0 ;
54446 PyObject * obj5 = 0 ;
54447 PyObject * obj6 = 0 ;
54448 PyObject * obj7 = 0 ;
54449 PyObject * obj8 = 0 ;
54451 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOO:IndexIVFPQR_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
54452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, 0 | 0 );
54453 if (!SWIG_IsOK(res1)) {
54454 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "1"" of type '" "faiss::IndexIVFPQR const *""'");
54457 ecode2 = SWIG_AsVal_long(obj1, &val2);
54458 if (!SWIG_IsOK(ecode2)) {
54459 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
54462 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
54463 if (!SWIG_IsOK(res3)) {
54464 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "3"" of type '" "float const *""'");
54466 arg3 =
reinterpret_cast< float *
>(argp3);
54467 ecode4 = SWIG_AsVal_long(obj3, &val4);
54468 if (!SWIG_IsOK(ecode4)) {
54469 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
54472 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
54473 if (!SWIG_IsOK(res5)) {
54474 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "5"" of type '" "faiss::Index::idx_t const *""'");
54477 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
54478 if (!SWIG_IsOK(res6)) {
54479 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "6"" of type '" "float const *""'");
54481 arg6 =
reinterpret_cast< float *
>(argp6);
54482 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
54483 if (!SWIG_IsOK(res7)) {
54484 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "7"" of type '" "float *""'");
54486 arg7 =
reinterpret_cast< float *
>(argp7);
54487 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
54488 if (!SWIG_IsOK(res8)) {
54489 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "8"" of type '" "faiss::Index::idx_t *""'");
54492 ecode9 = SWIG_AsVal_bool(obj8, &val9);
54493 if (!SWIG_IsOK(ecode9)) {
54494 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexIVFPQR_search_preassigned" "', argument " "9"" of type '" "bool""'");
54496 arg9 =
static_cast< bool >(val9);
54498 Py_BEGIN_ALLOW_THREADS
54502 PyEval_RestoreThread(_save);
54503 PyErr_SetString(PyExc_RuntimeError, e.
what());
54506 Py_END_ALLOW_THREADS
54508 resultobj = SWIG_Py_Void();
54515 SWIGINTERN PyObject *_wrap_IndexIVFPQR_search_preassigned(PyObject *
self, PyObject *args) {
54517 PyObject *argv[11] = {
54522 if (!PyTuple_Check(args)) SWIG_fail;
54523 argc = args ? PyObject_Length(args) : 0;
54524 for (ii = 0; (ii < 10) && (ii < argc); ii++) {
54525 argv[ii] = PyTuple_GET_ITEM(args,ii);
54530 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQR, 0);
54531 _v = SWIG_CheckState(res);
54534 int res = SWIG_AsVal_long(argv[1], NULL);
54535 _v = SWIG_CheckState(res);
54539 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
54540 _v = SWIG_CheckState(res);
54543 int res = SWIG_AsVal_long(argv[3], NULL);
54544 _v = SWIG_CheckState(res);
54548 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
54549 _v = SWIG_CheckState(res);
54552 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
54553 _v = SWIG_CheckState(res);
54556 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
54557 _v = SWIG_CheckState(res);
54560 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
54561 _v = SWIG_CheckState(res);
54564 int res = SWIG_AsVal_bool(argv[8], NULL);
54565 _v = SWIG_CheckState(res);
54568 return _wrap_IndexIVFPQR_search_preassigned__SWIG_1(
self, args);
54582 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexIVFPQR, 0);
54583 _v = SWIG_CheckState(res);
54586 int res = SWIG_AsVal_long(argv[1], NULL);
54587 _v = SWIG_CheckState(res);
54591 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
54592 _v = SWIG_CheckState(res);
54595 int res = SWIG_AsVal_long(argv[3], NULL);
54596 _v = SWIG_CheckState(res);
54600 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
54601 _v = SWIG_CheckState(res);
54604 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_float, 0);
54605 _v = SWIG_CheckState(res);
54608 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_float, 0);
54609 _v = SWIG_CheckState(res);
54612 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
54613 _v = SWIG_CheckState(res);
54616 int res = SWIG_AsVal_bool(argv[8], NULL);
54617 _v = SWIG_CheckState(res);
54621 int res = SWIG_ConvertPtr(argv[9], &vptr, SWIGTYPE_p_faiss__IVFSearchParameters, 0);
54622 _v = SWIG_CheckState(res);
54624 return _wrap_IndexIVFPQR_search_preassigned__SWIG_0(
self, args);
54638 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexIVFPQR_search_preassigned'.\n"
54639 " Possible C/C++ prototypes are:\n"
54640 " 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"
54641 " 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");
54646 SWIGINTERN PyObject *_wrap_new_IndexIVFPQR__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54647 PyObject *resultobj = 0;
54650 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIVFPQR")) SWIG_fail;
54652 Py_BEGIN_ALLOW_THREADS
54656 PyEval_RestoreThread(_save);
54657 PyErr_SetString(PyExc_RuntimeError, e.
what());
54660 Py_END_ALLOW_THREADS
54662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVFPQR, SWIG_POINTER_NEW | 0 );
54669 SWIGINTERN PyObject *_wrap_new_IndexIVFPQR(PyObject *
self, PyObject *args) {
54671 PyObject *argv[8] = {
54676 if (!PyTuple_Check(args)) SWIG_fail;
54677 argc = args ? PyObject_Length(args) : 0;
54678 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
54679 argv[ii] = PyTuple_GET_ITEM(args,ii);
54682 return _wrap_new_IndexIVFPQR__SWIG_1(
self, args);
54687 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
54688 _v = SWIG_CheckState(res);
54691 int res = SWIG_AsVal_size_t(argv[1], NULL);
54692 _v = SWIG_CheckState(res);
54696 int res = SWIG_AsVal_size_t(argv[2], NULL);
54697 _v = SWIG_CheckState(res);
54701 int res = SWIG_AsVal_size_t(argv[3], NULL);
54702 _v = SWIG_CheckState(res);
54706 int res = SWIG_AsVal_size_t(argv[4], NULL);
54707 _v = SWIG_CheckState(res);
54711 int res = SWIG_AsVal_size_t(argv[5], NULL);
54712 _v = SWIG_CheckState(res);
54716 int res = SWIG_AsVal_size_t(argv[6], NULL);
54717 _v = SWIG_CheckState(res);
54720 return _wrap_new_IndexIVFPQR__SWIG_0(
self, args);
54731 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexIVFPQR'.\n"
54732 " Possible C/C++ prototypes are:\n"
54733 " faiss::IndexIVFPQR::IndexIVFPQR(faiss::Index *,size_t,size_t,size_t,size_t,size_t,size_t)\n"
54734 " faiss::IndexIVFPQR::IndexIVFPQR()\n");
54739 SWIGINTERN PyObject *_wrap_delete_IndexIVFPQR(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54740 PyObject *resultobj = 0;
54744 PyObject * obj0 = 0 ;
54746 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIVFPQR",&obj0)) SWIG_fail;
54747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIVFPQR, SWIG_POINTER_DISOWN | 0 );
54748 if (!SWIG_IsOK(res1)) {
54749 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIVFPQR" "', argument " "1"" of type '" "faiss::IndexIVFPQR *""'");
54753 resultobj = SWIG_Py_Void();
54760 SWIGINTERN PyObject *IndexIVFPQR_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54762 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
54763 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIVFPQR, SWIG_NewClientData(obj));
54764 return SWIG_Py_Void();
54767 SWIGINTERN PyObject *_wrap_Index2Layer_q1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54768 PyObject *resultobj = 0;
54775 PyObject * obj0 = 0 ;
54776 PyObject * obj1 = 0 ;
54778 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index2Layer_q1_set",&obj0,&obj1)) SWIG_fail;
54779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54780 if (!SWIG_IsOK(res1)) {
54781 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_q1_set" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
54784 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
54785 if (!SWIG_IsOK(res2)) {
54786 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Index2Layer_q1_set" "', argument " "2"" of type '" "faiss::Level1Quantizer *""'");
54789 if (arg1) (arg1)->q1 = *arg2;
54790 resultobj = SWIG_Py_Void();
54797 SWIGINTERN PyObject *_wrap_Index2Layer_q1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54798 PyObject *resultobj = 0;
54802 PyObject * obj0 = 0 ;
54805 if (!PyArg_ParseTuple(args,(
char *)
"O:Index2Layer_q1_get",&obj0)) SWIG_fail;
54806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54807 if (!SWIG_IsOK(res1)) {
54808 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_q1_get" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
54812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Level1Quantizer, 0 | 0 );
54819 SWIGINTERN PyObject *_wrap_Index2Layer_pq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54820 PyObject *resultobj = 0;
54827 PyObject * obj0 = 0 ;
54828 PyObject * obj1 = 0 ;
54830 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index2Layer_pq_set",&obj0,&obj1)) SWIG_fail;
54831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54832 if (!SWIG_IsOK(res1)) {
54833 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_pq_set" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
54836 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
54837 if (!SWIG_IsOK(res2)) {
54838 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Index2Layer_pq_set" "', argument " "2"" of type '" "faiss::ProductQuantizer *""'");
54841 if (arg1) (arg1)->pq = *arg2;
54842 resultobj = SWIG_Py_Void();
54849 SWIGINTERN PyObject *_wrap_Index2Layer_pq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54850 PyObject *resultobj = 0;
54854 PyObject * obj0 = 0 ;
54857 if (!PyArg_ParseTuple(args,(
char *)
"O:Index2Layer_pq_get",&obj0)) SWIG_fail;
54858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54859 if (!SWIG_IsOK(res1)) {
54860 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_pq_get" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
54864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
54871 SWIGINTERN PyObject *_wrap_Index2Layer_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54872 PyObject *resultobj = 0;
54874 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
54879 PyObject * obj0 = 0 ;
54880 PyObject * obj1 = 0 ;
54882 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index2Layer_codes_set",&obj0,&obj1)) SWIG_fail;
54883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54884 if (!SWIG_IsOK(res1)) {
54885 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_codes_set" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
54888 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
54889 if (!SWIG_IsOK(res2)) {
54890 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Index2Layer_codes_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
54892 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
54893 if (arg1) (arg1)->codes = *arg2;
54894 resultobj = SWIG_Py_Void();
54901 SWIGINTERN PyObject *_wrap_Index2Layer_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54902 PyObject *resultobj = 0;
54906 PyObject * obj0 = 0 ;
54907 std::vector< uint8_t > *result = 0 ;
54909 if (!PyArg_ParseTuple(args,(
char *)
"O:Index2Layer_codes_get",&obj0)) SWIG_fail;
54910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54911 if (!SWIG_IsOK(res1)) {
54912 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_codes_get" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
54915 result = (std::vector< uint8_t > *)& ((arg1)->codes);
54916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
54923 SWIGINTERN PyObject *_wrap_Index2Layer_code_size_1_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54924 PyObject *resultobj = 0;
54931 PyObject * obj0 = 0 ;
54932 PyObject * obj1 = 0 ;
54934 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index2Layer_code_size_1_set",&obj0,&obj1)) SWIG_fail;
54935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54936 if (!SWIG_IsOK(res1)) {
54937 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_code_size_1_set" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
54940 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
54941 if (!SWIG_IsOK(ecode2)) {
54942 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_code_size_1_set" "', argument " "2"" of type '" "size_t""'");
54944 arg2 =
static_cast< size_t >(val2);
54945 if (arg1) (arg1)->code_size_1 = arg2;
54946 resultobj = SWIG_Py_Void();
54953 SWIGINTERN PyObject *_wrap_Index2Layer_code_size_1_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54954 PyObject *resultobj = 0;
54958 PyObject * obj0 = 0 ;
54961 if (!PyArg_ParseTuple(args,(
char *)
"O:Index2Layer_code_size_1_get",&obj0)) SWIG_fail;
54962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54963 if (!SWIG_IsOK(res1)) {
54964 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_code_size_1_get" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
54967 result = (size_t) ((arg1)->code_size_1);
54968 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
54975 SWIGINTERN PyObject *_wrap_Index2Layer_code_size_2_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
54976 PyObject *resultobj = 0;
54983 PyObject * obj0 = 0 ;
54984 PyObject * obj1 = 0 ;
54986 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index2Layer_code_size_2_set",&obj0,&obj1)) SWIG_fail;
54987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
54988 if (!SWIG_IsOK(res1)) {
54989 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_code_size_2_set" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
54992 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
54993 if (!SWIG_IsOK(ecode2)) {
54994 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_code_size_2_set" "', argument " "2"" of type '" "size_t""'");
54996 arg2 =
static_cast< size_t >(val2);
54997 if (arg1) (arg1)->code_size_2 = arg2;
54998 resultobj = SWIG_Py_Void();
55005 SWIGINTERN PyObject *_wrap_Index2Layer_code_size_2_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55006 PyObject *resultobj = 0;
55010 PyObject * obj0 = 0 ;
55013 if (!PyArg_ParseTuple(args,(
char *)
"O:Index2Layer_code_size_2_get",&obj0)) SWIG_fail;
55014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
55015 if (!SWIG_IsOK(res1)) {
55016 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_code_size_2_get" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
55019 result = (size_t) ((arg1)->code_size_2);
55020 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
55027 SWIGINTERN PyObject *_wrap_Index2Layer_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55028 PyObject *resultobj = 0;
55035 PyObject * obj0 = 0 ;
55036 PyObject * obj1 = 0 ;
55038 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index2Layer_code_size_set",&obj0,&obj1)) SWIG_fail;
55039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
55040 if (!SWIG_IsOK(res1)) {
55041 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_code_size_set" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
55044 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
55045 if (!SWIG_IsOK(ecode2)) {
55046 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_code_size_set" "', argument " "2"" of type '" "size_t""'");
55048 arg2 =
static_cast< size_t >(val2);
55049 if (arg1) (arg1)->code_size = arg2;
55050 resultobj = SWIG_Py_Void();
55057 SWIGINTERN PyObject *_wrap_Index2Layer_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55058 PyObject *resultobj = 0;
55062 PyObject * obj0 = 0 ;
55065 if (!PyArg_ParseTuple(args,(
char *)
"O:Index2Layer_code_size_get",&obj0)) SWIG_fail;
55066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
55067 if (!SWIG_IsOK(res1)) {
55068 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_code_size_get" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
55071 result = (size_t) ((arg1)->code_size);
55072 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
55079 SWIGINTERN PyObject *_wrap_new_Index2Layer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55080 PyObject *resultobj = 0;
55093 PyObject * obj0 = 0 ;
55094 PyObject * obj1 = 0 ;
55095 PyObject * obj2 = 0 ;
55096 PyObject * obj3 = 0 ;
55099 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_Index2Layer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
55100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
55101 if (!SWIG_IsOK(res1)) {
55102 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_Index2Layer" "', argument " "1"" of type '" "faiss::Index *""'");
55105 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
55106 if (!SWIG_IsOK(ecode2)) {
55107 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_Index2Layer" "', argument " "2"" of type '" "size_t""'");
55109 arg2 =
static_cast< size_t >(val2);
55110 ecode3 = SWIG_AsVal_int(obj2, &val3);
55111 if (!SWIG_IsOK(ecode3)) {
55112 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_Index2Layer" "', argument " "3"" of type '" "int""'");
55114 arg3 =
static_cast< int >(val3);
55115 ecode4 = SWIG_AsVal_int(obj3, &val4);
55116 if (!SWIG_IsOK(ecode4)) {
55117 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_Index2Layer" "', argument " "4"" of type '" "faiss::MetricType""'");
55121 Py_BEGIN_ALLOW_THREADS
55125 PyEval_RestoreThread(_save);
55126 PyErr_SetString(PyExc_RuntimeError, e.
what());
55129 Py_END_ALLOW_THREADS
55131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index2Layer, SWIG_POINTER_NEW | 0 );
55138 SWIGINTERN PyObject *_wrap_new_Index2Layer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55139 PyObject *resultobj = 0;
55149 PyObject * obj0 = 0 ;
55150 PyObject * obj1 = 0 ;
55151 PyObject * obj2 = 0 ;
55154 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_Index2Layer",&obj0,&obj1,&obj2)) SWIG_fail;
55155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
55156 if (!SWIG_IsOK(res1)) {
55157 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_Index2Layer" "', argument " "1"" of type '" "faiss::Index *""'");
55160 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
55161 if (!SWIG_IsOK(ecode2)) {
55162 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_Index2Layer" "', argument " "2"" of type '" "size_t""'");
55164 arg2 =
static_cast< size_t >(val2);
55165 ecode3 = SWIG_AsVal_int(obj2, &val3);
55166 if (!SWIG_IsOK(ecode3)) {
55167 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_Index2Layer" "', argument " "3"" of type '" "int""'");
55169 arg3 =
static_cast< int >(val3);
55171 Py_BEGIN_ALLOW_THREADS
55175 PyEval_RestoreThread(_save);
55176 PyErr_SetString(PyExc_RuntimeError, e.
what());
55179 Py_END_ALLOW_THREADS
55181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index2Layer, SWIG_POINTER_NEW | 0 );
55188 SWIGINTERN PyObject *_wrap_new_Index2Layer__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55189 PyObject *resultobj = 0;
55192 if (!PyArg_ParseTuple(args,(
char *)
":new_Index2Layer")) SWIG_fail;
55194 Py_BEGIN_ALLOW_THREADS
55198 PyEval_RestoreThread(_save);
55199 PyErr_SetString(PyExc_RuntimeError, e.
what());
55202 Py_END_ALLOW_THREADS
55204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index2Layer, SWIG_POINTER_NEW | 0 );
55211 SWIGINTERN PyObject *_wrap_new_Index2Layer(PyObject *
self, PyObject *args) {
55213 PyObject *argv[5] = {
55218 if (!PyTuple_Check(args)) SWIG_fail;
55219 argc = args ? PyObject_Length(args) : 0;
55220 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
55221 argv[ii] = PyTuple_GET_ITEM(args,ii);
55224 return _wrap_new_Index2Layer__SWIG_2(
self, args);
55229 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
55230 _v = SWIG_CheckState(res);
55233 int res = SWIG_AsVal_size_t(argv[1], NULL);
55234 _v = SWIG_CheckState(res);
55238 int res = SWIG_AsVal_int(argv[2], NULL);
55239 _v = SWIG_CheckState(res);
55242 return _wrap_new_Index2Layer__SWIG_1(
self, args);
55250 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
55251 _v = SWIG_CheckState(res);
55254 int res = SWIG_AsVal_size_t(argv[1], NULL);
55255 _v = SWIG_CheckState(res);
55259 int res = SWIG_AsVal_int(argv[2], NULL);
55260 _v = SWIG_CheckState(res);
55264 int res = SWIG_AsVal_int(argv[3], NULL);
55265 _v = SWIG_CheckState(res);
55268 return _wrap_new_Index2Layer__SWIG_0(
self, args);
55276 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_Index2Layer'.\n"
55277 " Possible C/C++ prototypes are:\n"
55278 " faiss::Index2Layer::Index2Layer(faiss::Index *,size_t,int,faiss::MetricType)\n"
55279 " faiss::Index2Layer::Index2Layer(faiss::Index *,size_t,int)\n"
55280 " faiss::Index2Layer::Index2Layer()\n");
55285 SWIGINTERN PyObject *_wrap_delete_Index2Layer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55286 PyObject *resultobj = 0;
55290 PyObject * obj0 = 0 ;
55292 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Index2Layer",&obj0)) SWIG_fail;
55293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, SWIG_POINTER_DISOWN | 0 );
55294 if (!SWIG_IsOK(res1)) {
55295 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Index2Layer" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
55299 Py_BEGIN_ALLOW_THREADS
55303 PyEval_RestoreThread(_save);
55304 PyErr_SetString(PyExc_RuntimeError, e.
what());
55307 Py_END_ALLOW_THREADS
55309 resultobj = SWIG_Py_Void();
55316 SWIGINTERN PyObject *_wrap_Index2Layer_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55317 PyObject *resultobj = 0;
55320 float *arg3 = (
float *) 0 ;
55327 PyObject * obj0 = 0 ;
55328 PyObject * obj1 = 0 ;
55329 PyObject * obj2 = 0 ;
55331 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Index2Layer_train",&obj0,&obj1,&obj2)) SWIG_fail;
55332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
55333 if (!SWIG_IsOK(res1)) {
55334 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_train" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
55337 ecode2 = SWIG_AsVal_long(obj1, &val2);
55338 if (!SWIG_IsOK(ecode2)) {
55339 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
55342 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
55343 if (!SWIG_IsOK(res3)) {
55344 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index2Layer_train" "', argument " "3"" of type '" "float const *""'");
55346 arg3 =
reinterpret_cast< float *
>(argp3);
55348 Py_BEGIN_ALLOW_THREADS
55350 (arg1)->train(arg2,(
float const *)arg3);
55352 PyEval_RestoreThread(_save);
55353 PyErr_SetString(PyExc_RuntimeError, e.
what());
55356 Py_END_ALLOW_THREADS
55358 resultobj = SWIG_Py_Void();
55365 SWIGINTERN PyObject *_wrap_Index2Layer_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55366 PyObject *resultobj = 0;
55369 float *arg3 = (
float *) 0 ;
55376 PyObject * obj0 = 0 ;
55377 PyObject * obj1 = 0 ;
55378 PyObject * obj2 = 0 ;
55380 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Index2Layer_add",&obj0,&obj1,&obj2)) SWIG_fail;
55381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
55382 if (!SWIG_IsOK(res1)) {
55383 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_add" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
55386 ecode2 = SWIG_AsVal_long(obj1, &val2);
55387 if (!SWIG_IsOK(ecode2)) {
55388 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
55391 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
55392 if (!SWIG_IsOK(res3)) {
55393 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index2Layer_add" "', argument " "3"" of type '" "float const *""'");
55395 arg3 =
reinterpret_cast< float *
>(argp3);
55397 Py_BEGIN_ALLOW_THREADS
55399 (arg1)->add(arg2,(
float const *)arg3);
55401 PyEval_RestoreThread(_save);
55402 PyErr_SetString(PyExc_RuntimeError, e.
what());
55405 Py_END_ALLOW_THREADS
55407 resultobj = SWIG_Py_Void();
55414 SWIGINTERN PyObject *_wrap_Index2Layer_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55415 PyObject *resultobj = 0;
55418 float *arg3 = (
float *) 0 ;
55420 float *arg5 = (
float *) 0 ;
55434 PyObject * obj0 = 0 ;
55435 PyObject * obj1 = 0 ;
55436 PyObject * obj2 = 0 ;
55437 PyObject * obj3 = 0 ;
55438 PyObject * obj4 = 0 ;
55439 PyObject * obj5 = 0 ;
55441 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:Index2Layer_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
55442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
55443 if (!SWIG_IsOK(res1)) {
55444 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_search" "', argument " "1"" of type '" "faiss::Index2Layer const *""'");
55447 ecode2 = SWIG_AsVal_long(obj1, &val2);
55448 if (!SWIG_IsOK(ecode2)) {
55449 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
55452 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
55453 if (!SWIG_IsOK(res3)) {
55454 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index2Layer_search" "', argument " "3"" of type '" "float const *""'");
55456 arg3 =
reinterpret_cast< float *
>(argp3);
55457 ecode4 = SWIG_AsVal_long(obj3, &val4);
55458 if (!SWIG_IsOK(ecode4)) {
55459 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Index2Layer_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
55462 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
55463 if (!SWIG_IsOK(res5)) {
55464 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "Index2Layer_search" "', argument " "5"" of type '" "float *""'");
55466 arg5 =
reinterpret_cast< float *
>(argp5);
55467 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
55468 if (!SWIG_IsOK(res6)) {
55469 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "Index2Layer_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
55473 Py_BEGIN_ALLOW_THREADS
55475 ((
faiss::Index2Layer const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
55477 PyEval_RestoreThread(_save);
55478 PyErr_SetString(PyExc_RuntimeError, e.
what());
55481 Py_END_ALLOW_THREADS
55483 resultobj = SWIG_Py_Void();
55490 SWIGINTERN PyObject *_wrap_Index2Layer_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55491 PyObject *resultobj = 0;
55495 float *arg4 = (
float *) 0 ;
55504 PyObject * obj0 = 0 ;
55505 PyObject * obj1 = 0 ;
55506 PyObject * obj2 = 0 ;
55507 PyObject * obj3 = 0 ;
55509 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Index2Layer_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
55510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
55511 if (!SWIG_IsOK(res1)) {
55512 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_reconstruct_n" "', argument " "1"" of type '" "faiss::Index2Layer const *""'");
55515 ecode2 = SWIG_AsVal_long(obj1, &val2);
55516 if (!SWIG_IsOK(ecode2)) {
55517 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_reconstruct_n" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
55520 ecode3 = SWIG_AsVal_long(obj2, &val3);
55521 if (!SWIG_IsOK(ecode3)) {
55522 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Index2Layer_reconstruct_n" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
55525 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
55526 if (!SWIG_IsOK(res4)) {
55527 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "Index2Layer_reconstruct_n" "', argument " "4"" of type '" "float *""'");
55529 arg4 =
reinterpret_cast< float *
>(argp4);
55531 Py_BEGIN_ALLOW_THREADS
55535 PyEval_RestoreThread(_save);
55536 PyErr_SetString(PyExc_RuntimeError, e.
what());
55539 Py_END_ALLOW_THREADS
55541 resultobj = SWIG_Py_Void();
55548 SWIGINTERN PyObject *_wrap_Index2Layer_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55549 PyObject *resultobj = 0;
55552 float *arg3 = (
float *) 0 ;
55559 PyObject * obj0 = 0 ;
55560 PyObject * obj1 = 0 ;
55561 PyObject * obj2 = 0 ;
55563 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Index2Layer_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
55564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
55565 if (!SWIG_IsOK(res1)) {
55566 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_reconstruct" "', argument " "1"" of type '" "faiss::Index2Layer const *""'");
55569 ecode2 = SWIG_AsVal_long(obj1, &val2);
55570 if (!SWIG_IsOK(ecode2)) {
55571 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Index2Layer_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
55574 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
55575 if (!SWIG_IsOK(res3)) {
55576 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Index2Layer_reconstruct" "', argument " "3"" of type '" "float *""'");
55578 arg3 =
reinterpret_cast< float *
>(argp3);
55580 Py_BEGIN_ALLOW_THREADS
55584 PyEval_RestoreThread(_save);
55585 PyErr_SetString(PyExc_RuntimeError, e.
what());
55588 Py_END_ALLOW_THREADS
55590 resultobj = SWIG_Py_Void();
55597 SWIGINTERN PyObject *_wrap_Index2Layer_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55598 PyObject *resultobj = 0;
55602 PyObject * obj0 = 0 ;
55604 if (!PyArg_ParseTuple(args,(
char *)
"O:Index2Layer_reset",&obj0)) SWIG_fail;
55605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
55606 if (!SWIG_IsOK(res1)) {
55607 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_reset" "', argument " "1"" of type '" "faiss::Index2Layer *""'");
55611 Py_BEGIN_ALLOW_THREADS
55615 PyEval_RestoreThread(_save);
55616 PyErr_SetString(PyExc_RuntimeError, e.
what());
55619 Py_END_ALLOW_THREADS
55621 resultobj = SWIG_Py_Void();
55628 SWIGINTERN PyObject *_wrap_Index2Layer_transfer_to_IVFPQ(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55629 PyObject *resultobj = 0;
55636 PyObject * obj0 = 0 ;
55637 PyObject * obj1 = 0 ;
55639 if (!PyArg_ParseTuple(args,(
char *)
"OO:Index2Layer_transfer_to_IVFPQ",&obj0,&obj1)) SWIG_fail;
55640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index2Layer, 0 | 0 );
55641 if (!SWIG_IsOK(res1)) {
55642 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Index2Layer_transfer_to_IVFPQ" "', argument " "1"" of type '" "faiss::Index2Layer const *""'");
55645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IndexIVFPQ, 0 );
55646 if (!SWIG_IsOK(res2)) {
55647 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Index2Layer_transfer_to_IVFPQ" "', argument " "2"" of type '" "faiss::IndexIVFPQ &""'");
55650 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Index2Layer_transfer_to_IVFPQ" "', argument " "2"" of type '" "faiss::IndexIVFPQ &""'");
55654 Py_BEGIN_ALLOW_THREADS
55658 PyEval_RestoreThread(_save);
55659 PyErr_SetString(PyExc_RuntimeError, e.
what());
55662 Py_END_ALLOW_THREADS
55664 resultobj = SWIG_Py_Void();
55671 SWIGINTERN PyObject *Index2Layer_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55673 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
55674 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__Index2Layer, SWIG_NewClientData(obj));
55675 return SWIG_Py_Void();
55678 SWIGINTERN PyObject *_wrap_IndexBinary_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55679 PyObject *resultobj = 0;
55686 PyObject * obj0 = 0 ;
55687 PyObject * obj1 = 0 ;
55689 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinary_d_set",&obj0,&obj1)) SWIG_fail;
55690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55691 if (!SWIG_IsOK(res1)) {
55692 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_d_set" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55695 ecode2 = SWIG_AsVal_int(obj1, &val2);
55696 if (!SWIG_IsOK(ecode2)) {
55697 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_d_set" "', argument " "2"" of type '" "int""'");
55699 arg2 =
static_cast< int >(val2);
55700 if (arg1) (arg1)->d = arg2;
55701 resultobj = SWIG_Py_Void();
55708 SWIGINTERN PyObject *_wrap_IndexBinary_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55709 PyObject *resultobj = 0;
55713 PyObject * obj0 = 0 ;
55716 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_d_get",&obj0)) SWIG_fail;
55717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55718 if (!SWIG_IsOK(res1)) {
55719 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_d_get" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55722 result = (int) ((arg1)->d);
55723 resultobj = SWIG_From_int(static_cast< int >(result));
55730 SWIGINTERN PyObject *_wrap_IndexBinary_code_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55731 PyObject *resultobj = 0;
55738 PyObject * obj0 = 0 ;
55739 PyObject * obj1 = 0 ;
55741 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinary_code_size_set",&obj0,&obj1)) SWIG_fail;
55742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55743 if (!SWIG_IsOK(res1)) {
55744 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_code_size_set" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55747 ecode2 = SWIG_AsVal_int(obj1, &val2);
55748 if (!SWIG_IsOK(ecode2)) {
55749 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_code_size_set" "', argument " "2"" of type '" "int""'");
55751 arg2 =
static_cast< int >(val2);
55752 if (arg1) (arg1)->code_size = arg2;
55753 resultobj = SWIG_Py_Void();
55760 SWIGINTERN PyObject *_wrap_IndexBinary_code_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55761 PyObject *resultobj = 0;
55765 PyObject * obj0 = 0 ;
55768 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_code_size_get",&obj0)) SWIG_fail;
55769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55770 if (!SWIG_IsOK(res1)) {
55771 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_code_size_get" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55774 result = (int) ((arg1)->code_size);
55775 resultobj = SWIG_From_int(static_cast< int >(result));
55782 SWIGINTERN PyObject *_wrap_IndexBinary_ntotal_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55783 PyObject *resultobj = 0;
55790 PyObject * obj0 = 0 ;
55791 PyObject * obj1 = 0 ;
55793 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinary_ntotal_set",&obj0,&obj1)) SWIG_fail;
55794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55795 if (!SWIG_IsOK(res1)) {
55796 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_ntotal_set" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55799 ecode2 = SWIG_AsVal_long(obj1, &val2);
55800 if (!SWIG_IsOK(ecode2)) {
55801 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_ntotal_set" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
55804 if (arg1) (arg1)->ntotal = arg2;
55805 resultobj = SWIG_Py_Void();
55812 SWIGINTERN PyObject *_wrap_IndexBinary_ntotal_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55813 PyObject *resultobj = 0;
55817 PyObject * obj0 = 0 ;
55820 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_ntotal_get",&obj0)) SWIG_fail;
55821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55822 if (!SWIG_IsOK(res1)) {
55823 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_ntotal_get" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55827 resultobj = SWIG_From_long(static_cast< long >(result));
55834 SWIGINTERN PyObject *_wrap_IndexBinary_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55835 PyObject *resultobj = 0;
55842 PyObject * obj0 = 0 ;
55843 PyObject * obj1 = 0 ;
55845 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinary_verbose_set",&obj0,&obj1)) SWIG_fail;
55846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55847 if (!SWIG_IsOK(res1)) {
55848 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_verbose_set" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55851 ecode2 = SWIG_AsVal_bool(obj1, &val2);
55852 if (!SWIG_IsOK(ecode2)) {
55853 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_verbose_set" "', argument " "2"" of type '" "bool""'");
55855 arg2 =
static_cast< bool >(val2);
55856 if (arg1) (arg1)->verbose = arg2;
55857 resultobj = SWIG_Py_Void();
55864 SWIGINTERN PyObject *_wrap_IndexBinary_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55865 PyObject *resultobj = 0;
55869 PyObject * obj0 = 0 ;
55872 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_verbose_get",&obj0)) SWIG_fail;
55873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55874 if (!SWIG_IsOK(res1)) {
55875 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_verbose_get" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55878 result = (bool) ((arg1)->verbose);
55879 resultobj = SWIG_From_bool(static_cast< bool >(result));
55886 SWIGINTERN PyObject *_wrap_IndexBinary_is_trained_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55887 PyObject *resultobj = 0;
55894 PyObject * obj0 = 0 ;
55895 PyObject * obj1 = 0 ;
55897 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinary_is_trained_set",&obj0,&obj1)) SWIG_fail;
55898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55899 if (!SWIG_IsOK(res1)) {
55900 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_is_trained_set" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55903 ecode2 = SWIG_AsVal_bool(obj1, &val2);
55904 if (!SWIG_IsOK(ecode2)) {
55905 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_is_trained_set" "', argument " "2"" of type '" "bool""'");
55907 arg2 =
static_cast< bool >(val2);
55908 if (arg1) (arg1)->is_trained = arg2;
55909 resultobj = SWIG_Py_Void();
55916 SWIGINTERN PyObject *_wrap_IndexBinary_is_trained_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55917 PyObject *resultobj = 0;
55921 PyObject * obj0 = 0 ;
55924 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_is_trained_get",&obj0)) SWIG_fail;
55925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55926 if (!SWIG_IsOK(res1)) {
55927 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_is_trained_get" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55930 result = (bool) ((arg1)->is_trained);
55931 resultobj = SWIG_From_bool(static_cast< bool >(result));
55938 SWIGINTERN PyObject *_wrap_IndexBinary_metric_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55939 PyObject *resultobj = 0;
55946 PyObject * obj0 = 0 ;
55947 PyObject * obj1 = 0 ;
55949 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinary_metric_type_set",&obj0,&obj1)) SWIG_fail;
55950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55951 if (!SWIG_IsOK(res1)) {
55952 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_metric_type_set" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55955 ecode2 = SWIG_AsVal_int(obj1, &val2);
55956 if (!SWIG_IsOK(ecode2)) {
55957 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_metric_type_set" "', argument " "2"" of type '" "faiss::MetricType""'");
55960 if (arg1) (arg1)->metric_type = arg2;
55961 resultobj = SWIG_Py_Void();
55968 SWIGINTERN PyObject *_wrap_IndexBinary_metric_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55969 PyObject *resultobj = 0;
55973 PyObject * obj0 = 0 ;
55976 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_metric_type_get",&obj0)) SWIG_fail;
55977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
55978 if (!SWIG_IsOK(res1)) {
55979 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_metric_type_get" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
55983 resultobj = SWIG_From_int(static_cast< int >(result));
55990 SWIGINTERN PyObject *_wrap_delete_IndexBinary(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
55991 PyObject *resultobj = 0;
55995 PyObject * obj0 = 0 ;
55997 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexBinary",&obj0)) SWIG_fail;
55998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, SWIG_POINTER_DISOWN | 0 );
55999 if (!SWIG_IsOK(res1)) {
56000 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexBinary" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
56004 Py_BEGIN_ALLOW_THREADS
56008 PyEval_RestoreThread(_save);
56009 PyErr_SetString(PyExc_RuntimeError, e.
what());
56012 Py_END_ALLOW_THREADS
56014 resultobj = SWIG_Py_Void();
56021 SWIGINTERN PyObject *_wrap_IndexBinary_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56022 PyObject *resultobj = 0;
56025 uint8_t *arg3 = (uint8_t *) 0 ;
56032 PyObject * obj0 = 0 ;
56033 PyObject * obj1 = 0 ;
56034 PyObject * obj2 = 0 ;
56036 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinary_train",&obj0,&obj1,&obj2)) SWIG_fail;
56037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56038 if (!SWIG_IsOK(res1)) {
56039 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_train" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
56042 ecode2 = SWIG_AsVal_long(obj1, &val2);
56043 if (!SWIG_IsOK(ecode2)) {
56044 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_train" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
56047 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
56048 if (!SWIG_IsOK(res3)) {
56049 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_train" "', argument " "3"" of type '" "uint8_t const *""'");
56051 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
56053 Py_BEGIN_ALLOW_THREADS
56055 (arg1)->train(arg2,(uint8_t
const *)arg3);
56057 PyEval_RestoreThread(_save);
56058 PyErr_SetString(PyExc_RuntimeError, e.
what());
56061 Py_END_ALLOW_THREADS
56063 resultobj = SWIG_Py_Void();
56070 SWIGINTERN PyObject *_wrap_IndexBinary_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56071 PyObject *resultobj = 0;
56074 uint8_t *arg3 = (uint8_t *) 0 ;
56081 PyObject * obj0 = 0 ;
56082 PyObject * obj1 = 0 ;
56083 PyObject * obj2 = 0 ;
56085 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinary_add",&obj0,&obj1,&obj2)) SWIG_fail;
56086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56087 if (!SWIG_IsOK(res1)) {
56088 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_add" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
56091 ecode2 = SWIG_AsVal_long(obj1, &val2);
56092 if (!SWIG_IsOK(ecode2)) {
56093 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_add" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
56096 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
56097 if (!SWIG_IsOK(res3)) {
56098 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_add" "', argument " "3"" of type '" "uint8_t const *""'");
56100 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
56102 Py_BEGIN_ALLOW_THREADS
56104 (arg1)->add(arg2,(uint8_t
const *)arg3);
56106 PyEval_RestoreThread(_save);
56107 PyErr_SetString(PyExc_RuntimeError, e.
what());
56110 Py_END_ALLOW_THREADS
56112 resultobj = SWIG_Py_Void();
56119 SWIGINTERN PyObject *_wrap_IndexBinary_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56120 PyObject *resultobj = 0;
56123 uint8_t *arg3 = (uint8_t *) 0 ;
56124 long *arg4 = (
long *) 0 ;
56133 PyObject * obj0 = 0 ;
56134 PyObject * obj1 = 0 ;
56135 PyObject * obj2 = 0 ;
56136 PyObject * obj3 = 0 ;
56138 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexBinary_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
56139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56140 if (!SWIG_IsOK(res1)) {
56141 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_add_with_ids" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
56144 ecode2 = SWIG_AsVal_long(obj1, &val2);
56145 if (!SWIG_IsOK(ecode2)) {
56146 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_add_with_ids" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
56149 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
56150 if (!SWIG_IsOK(res3)) {
56151 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_add_with_ids" "', argument " "3"" of type '" "uint8_t const *""'");
56153 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
56154 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
56155 if (!SWIG_IsOK(res4)) {
56156 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinary_add_with_ids" "', argument " "4"" of type '" "long const *""'");
56158 arg4 =
reinterpret_cast< long *
>(argp4);
56160 Py_BEGIN_ALLOW_THREADS
56162 (arg1)->add_with_ids(arg2,(uint8_t
const *)arg3,(
long const *)arg4);
56164 PyEval_RestoreThread(_save);
56165 PyErr_SetString(PyExc_RuntimeError, e.
what());
56168 Py_END_ALLOW_THREADS
56170 resultobj = SWIG_Py_Void();
56177 SWIGINTERN PyObject *_wrap_IndexBinary_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56178 PyObject *resultobj = 0;
56181 uint8_t *arg3 = (uint8_t *) 0 ;
56183 int32_t *arg5 = (int32_t *) 0 ;
56197 PyObject * obj0 = 0 ;
56198 PyObject * obj1 = 0 ;
56199 PyObject * obj2 = 0 ;
56200 PyObject * obj3 = 0 ;
56201 PyObject * obj4 = 0 ;
56202 PyObject * obj5 = 0 ;
56204 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexBinary_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
56205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56206 if (!SWIG_IsOK(res1)) {
56207 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_search" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
56210 ecode2 = SWIG_AsVal_long(obj1, &val2);
56211 if (!SWIG_IsOK(ecode2)) {
56212 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_search" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
56215 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
56216 if (!SWIG_IsOK(res3)) {
56217 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_search" "', argument " "3"" of type '" "uint8_t const *""'");
56219 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
56220 ecode4 = SWIG_AsVal_long(obj3, &val4);
56221 if (!SWIG_IsOK(ecode4)) {
56222 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinary_search" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
56225 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
56226 if (!SWIG_IsOK(res5)) {
56227 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinary_search" "', argument " "5"" of type '" "int32_t *""'");
56229 arg5 =
reinterpret_cast< int32_t *
>(argp5);
56230 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
56231 if (!SWIG_IsOK(res6)) {
56232 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinary_search" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
56236 Py_BEGIN_ALLOW_THREADS
56238 ((
faiss::IndexBinary const *)arg1)->search(arg2,(uint8_t
const *)arg3,arg4,arg5,arg6);
56240 PyEval_RestoreThread(_save);
56241 PyErr_SetString(PyExc_RuntimeError, e.
what());
56244 Py_END_ALLOW_THREADS
56246 resultobj = SWIG_Py_Void();
56253 SWIGINTERN PyObject *_wrap_IndexBinary_range_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56254 PyObject *resultobj = 0;
56257 uint8_t *arg3 = (uint8_t *) 0 ;
56270 PyObject * obj0 = 0 ;
56271 PyObject * obj1 = 0 ;
56272 PyObject * obj2 = 0 ;
56273 PyObject * obj3 = 0 ;
56274 PyObject * obj4 = 0 ;
56276 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexBinary_range_search",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
56277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56278 if (!SWIG_IsOK(res1)) {
56279 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_range_search" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
56282 ecode2 = SWIG_AsVal_long(obj1, &val2);
56283 if (!SWIG_IsOK(ecode2)) {
56284 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_range_search" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
56287 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
56288 if (!SWIG_IsOK(res3)) {
56289 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_range_search" "', argument " "3"" of type '" "uint8_t const *""'");
56291 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
56292 ecode4 = SWIG_AsVal_int(obj3, &val4);
56293 if (!SWIG_IsOK(ecode4)) {
56294 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinary_range_search" "', argument " "4"" of type '" "int""'");
56296 arg4 =
static_cast< int >(val4);
56297 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
56298 if (!SWIG_IsOK(res5)) {
56299 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinary_range_search" "', argument " "5"" of type '" "faiss::RangeSearchResult *""'");
56303 Py_BEGIN_ALLOW_THREADS
56305 ((
faiss::IndexBinary const *)arg1)->range_search(arg2,(uint8_t
const *)arg3,arg4,arg5);
56307 PyEval_RestoreThread(_save);
56308 PyErr_SetString(PyExc_RuntimeError, e.
what());
56311 Py_END_ALLOW_THREADS
56313 resultobj = SWIG_Py_Void();
56320 SWIGINTERN PyObject *_wrap_IndexBinary_assign__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56321 PyObject *resultobj = 0;
56324 uint8_t *arg3 = (uint8_t *) 0 ;
56337 PyObject * obj0 = 0 ;
56338 PyObject * obj1 = 0 ;
56339 PyObject * obj2 = 0 ;
56340 PyObject * obj3 = 0 ;
56341 PyObject * obj4 = 0 ;
56343 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexBinary_assign",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
56344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56345 if (!SWIG_IsOK(res1)) {
56346 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_assign" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
56349 ecode2 = SWIG_AsVal_long(obj1, &val2);
56350 if (!SWIG_IsOK(ecode2)) {
56351 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_assign" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
56354 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
56355 if (!SWIG_IsOK(res3)) {
56356 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_assign" "', argument " "3"" of type '" "uint8_t const *""'");
56358 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
56359 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
56360 if (!SWIG_IsOK(res4)) {
56361 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinary_assign" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t *""'");
56364 ecode5 = SWIG_AsVal_long(obj4, &val5);
56365 if (!SWIG_IsOK(ecode5)) {
56366 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "IndexBinary_assign" "', argument " "5"" of type '" "faiss::IndexBinary::idx_t""'");
56370 Py_BEGIN_ALLOW_THREADS
56372 (arg1)->assign(arg2,(uint8_t
const *)arg3,arg4,arg5);
56374 PyEval_RestoreThread(_save);
56375 PyErr_SetString(PyExc_RuntimeError, e.
what());
56378 Py_END_ALLOW_THREADS
56380 resultobj = SWIG_Py_Void();
56387 SWIGINTERN PyObject *_wrap_IndexBinary_assign__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56388 PyObject *resultobj = 0;
56391 uint8_t *arg3 = (uint8_t *) 0 ;
56401 PyObject * obj0 = 0 ;
56402 PyObject * obj1 = 0 ;
56403 PyObject * obj2 = 0 ;
56404 PyObject * obj3 = 0 ;
56406 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexBinary_assign",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
56407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56408 if (!SWIG_IsOK(res1)) {
56409 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_assign" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
56412 ecode2 = SWIG_AsVal_long(obj1, &val2);
56413 if (!SWIG_IsOK(ecode2)) {
56414 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_assign" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
56417 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
56418 if (!SWIG_IsOK(res3)) {
56419 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_assign" "', argument " "3"" of type '" "uint8_t const *""'");
56421 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
56422 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
56423 if (!SWIG_IsOK(res4)) {
56424 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinary_assign" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t *""'");
56428 Py_BEGIN_ALLOW_THREADS
56430 (arg1)->assign(arg2,(uint8_t
const *)arg3,arg4);
56432 PyEval_RestoreThread(_save);
56433 PyErr_SetString(PyExc_RuntimeError, e.
what());
56436 Py_END_ALLOW_THREADS
56438 resultobj = SWIG_Py_Void();
56445 SWIGINTERN PyObject *_wrap_IndexBinary_assign(PyObject *
self, PyObject *args) {
56447 PyObject *argv[6] = {
56452 if (!PyTuple_Check(args)) SWIG_fail;
56453 argc = args ? PyObject_Length(args) : 0;
56454 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
56455 argv[ii] = PyTuple_GET_ITEM(args,ii);
56460 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
56461 _v = SWIG_CheckState(res);
56464 int res = SWIG_AsVal_long(argv[1], NULL);
56465 _v = SWIG_CheckState(res);
56469 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
56470 _v = SWIG_CheckState(res);
56473 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
56474 _v = SWIG_CheckState(res);
56476 return _wrap_IndexBinary_assign__SWIG_1(
self, args);
56485 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
56486 _v = SWIG_CheckState(res);
56489 int res = SWIG_AsVal_long(argv[1], NULL);
56490 _v = SWIG_CheckState(res);
56494 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
56495 _v = SWIG_CheckState(res);
56498 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
56499 _v = SWIG_CheckState(res);
56502 int res = SWIG_AsVal_long(argv[4], NULL);
56503 _v = SWIG_CheckState(res);
56506 return _wrap_IndexBinary_assign__SWIG_0(
self, args);
56515 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexBinary_assign'.\n"
56516 " Possible C/C++ prototypes are:\n"
56517 " faiss::IndexBinary::assign(faiss::IndexBinary::idx_t,uint8_t const *,faiss::IndexBinary::idx_t *,faiss::IndexBinary::idx_t)\n"
56518 " faiss::IndexBinary::assign(faiss::IndexBinary::idx_t,uint8_t const *,faiss::IndexBinary::idx_t *)\n");
56523 SWIGINTERN PyObject *_wrap_IndexBinary_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56524 PyObject *resultobj = 0;
56528 PyObject * obj0 = 0 ;
56530 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_reset",&obj0)) SWIG_fail;
56531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56532 if (!SWIG_IsOK(res1)) {
56533 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_reset" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
56537 Py_BEGIN_ALLOW_THREADS
56541 PyEval_RestoreThread(_save);
56542 PyErr_SetString(PyExc_RuntimeError, e.
what());
56545 Py_END_ALLOW_THREADS
56547 resultobj = SWIG_Py_Void();
56554 SWIGINTERN PyObject *_wrap_IndexBinary_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56555 PyObject *resultobj = 0;
56562 PyObject * obj0 = 0 ;
56563 PyObject * obj1 = 0 ;
56566 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinary_remove_ids",&obj0,&obj1)) SWIG_fail;
56567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56568 if (!SWIG_IsOK(res1)) {
56569 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_remove_ids" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
56572 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
56573 if (!SWIG_IsOK(res2)) {
56574 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinary_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
56577 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexBinary_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
56581 Py_BEGIN_ALLOW_THREADS
56585 PyEval_RestoreThread(_save);
56586 PyErr_SetString(PyExc_RuntimeError, e.
what());
56589 Py_END_ALLOW_THREADS
56591 resultobj = SWIG_From_long(static_cast< long >(result));
56598 SWIGINTERN PyObject *_wrap_IndexBinary_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56599 PyObject *resultobj = 0;
56602 uint8_t *arg3 = (uint8_t *) 0 ;
56609 PyObject * obj0 = 0 ;
56610 PyObject * obj1 = 0 ;
56611 PyObject * obj2 = 0 ;
56613 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinary_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
56614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56615 if (!SWIG_IsOK(res1)) {
56616 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_reconstruct" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
56619 ecode2 = SWIG_AsVal_long(obj1, &val2);
56620 if (!SWIG_IsOK(ecode2)) {
56621 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_reconstruct" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
56624 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
56625 if (!SWIG_IsOK(res3)) {
56626 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_reconstruct" "', argument " "3"" of type '" "uint8_t *""'");
56628 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
56630 Py_BEGIN_ALLOW_THREADS
56634 PyEval_RestoreThread(_save);
56635 PyErr_SetString(PyExc_RuntimeError, e.
what());
56638 Py_END_ALLOW_THREADS
56640 resultobj = SWIG_Py_Void();
56647 SWIGINTERN PyObject *_wrap_IndexBinary_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56648 PyObject *resultobj = 0;
56652 uint8_t *arg4 = (uint8_t *) 0 ;
56661 PyObject * obj0 = 0 ;
56662 PyObject * obj1 = 0 ;
56663 PyObject * obj2 = 0 ;
56664 PyObject * obj3 = 0 ;
56666 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexBinary_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
56667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56668 if (!SWIG_IsOK(res1)) {
56669 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_reconstruct_n" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
56672 ecode2 = SWIG_AsVal_long(obj1, &val2);
56673 if (!SWIG_IsOK(ecode2)) {
56674 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_reconstruct_n" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
56677 ecode3 = SWIG_AsVal_long(obj2, &val3);
56678 if (!SWIG_IsOK(ecode3)) {
56679 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexBinary_reconstruct_n" "', argument " "3"" of type '" "faiss::IndexBinary::idx_t""'");
56682 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
56683 if (!SWIG_IsOK(res4)) {
56684 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinary_reconstruct_n" "', argument " "4"" of type '" "uint8_t *""'");
56686 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
56688 Py_BEGIN_ALLOW_THREADS
56692 PyEval_RestoreThread(_save);
56693 PyErr_SetString(PyExc_RuntimeError, e.
what());
56696 Py_END_ALLOW_THREADS
56698 resultobj = SWIG_Py_Void();
56705 SWIGINTERN PyObject *_wrap_IndexBinary_search_and_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56706 PyObject *resultobj = 0;
56709 uint8_t *arg3 = (uint8_t *) 0 ;
56711 int32_t *arg5 = (int32_t *) 0 ;
56713 uint8_t *arg7 = (uint8_t *) 0 ;
56728 PyObject * obj0 = 0 ;
56729 PyObject * obj1 = 0 ;
56730 PyObject * obj2 = 0 ;
56731 PyObject * obj3 = 0 ;
56732 PyObject * obj4 = 0 ;
56733 PyObject * obj5 = 0 ;
56734 PyObject * obj6 = 0 ;
56736 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:IndexBinary_search_and_reconstruct",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
56737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56738 if (!SWIG_IsOK(res1)) {
56739 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_search_and_reconstruct" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
56742 ecode2 = SWIG_AsVal_long(obj1, &val2);
56743 if (!SWIG_IsOK(ecode2)) {
56744 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinary_search_and_reconstruct" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
56747 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
56748 if (!SWIG_IsOK(res3)) {
56749 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinary_search_and_reconstruct" "', argument " "3"" of type '" "uint8_t const *""'");
56751 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
56752 ecode4 = SWIG_AsVal_long(obj3, &val4);
56753 if (!SWIG_IsOK(ecode4)) {
56754 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinary_search_and_reconstruct" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
56757 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
56758 if (!SWIG_IsOK(res5)) {
56759 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinary_search_and_reconstruct" "', argument " "5"" of type '" "int32_t *""'");
56761 arg5 =
reinterpret_cast< int32_t *
>(argp5);
56762 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
56763 if (!SWIG_IsOK(res6)) {
56764 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinary_search_and_reconstruct" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
56767 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_char, 0 | 0 );
56768 if (!SWIG_IsOK(res7)) {
56769 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexBinary_search_and_reconstruct" "', argument " "7"" of type '" "uint8_t *""'");
56771 arg7 =
reinterpret_cast< uint8_t *
>(argp7);
56773 Py_BEGIN_ALLOW_THREADS
56775 ((
faiss::IndexBinary const *)arg1)->search_and_reconstruct(arg2,(uint8_t
const *)arg3,arg4,arg5,arg6,arg7);
56777 PyEval_RestoreThread(_save);
56778 PyErr_SetString(PyExc_RuntimeError, e.
what());
56781 Py_END_ALLOW_THREADS
56783 resultobj = SWIG_Py_Void();
56790 SWIGINTERN PyObject *_wrap_IndexBinary_display(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56791 PyObject *resultobj = 0;
56795 PyObject * obj0 = 0 ;
56797 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinary_display",&obj0)) SWIG_fail;
56798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
56799 if (!SWIG_IsOK(res1)) {
56800 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinary_display" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
56804 Py_BEGIN_ALLOW_THREADS
56808 PyEval_RestoreThread(_save);
56809 PyErr_SetString(PyExc_RuntimeError, e.
what());
56812 Py_END_ALLOW_THREADS
56814 resultobj = SWIG_Py_Void();
56821 SWIGINTERN PyObject *IndexBinary_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56823 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
56824 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexBinary, SWIG_NewClientData(obj));
56825 return SWIG_Py_Void();
56828 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_xb_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56829 PyObject *resultobj = 0;
56831 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
56836 PyObject * obj0 = 0 ;
56837 PyObject * obj1 = 0 ;
56839 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryFlat_xb_set",&obj0,&obj1)) SWIG_fail;
56840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
56841 if (!SWIG_IsOK(res1)) {
56842 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_xb_set" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
56845 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
56846 if (!SWIG_IsOK(res2)) {
56847 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryFlat_xb_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
56849 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
56850 if (arg1) (arg1)->xb = *arg2;
56851 resultobj = SWIG_Py_Void();
56858 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_xb_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56859 PyObject *resultobj = 0;
56863 PyObject * obj0 = 0 ;
56864 std::vector< uint8_t > *result = 0 ;
56866 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryFlat_xb_get",&obj0)) SWIG_fail;
56867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
56868 if (!SWIG_IsOK(res1)) {
56869 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_xb_get" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
56872 result = (std::vector< uint8_t > *)& ((arg1)->xb);
56873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
56880 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_use_heap_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56881 PyObject *resultobj = 0;
56888 PyObject * obj0 = 0 ;
56889 PyObject * obj1 = 0 ;
56891 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryFlat_use_heap_set",&obj0,&obj1)) SWIG_fail;
56892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
56893 if (!SWIG_IsOK(res1)) {
56894 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_use_heap_set" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
56897 ecode2 = SWIG_AsVal_bool(obj1, &val2);
56898 if (!SWIG_IsOK(ecode2)) {
56899 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFlat_use_heap_set" "', argument " "2"" of type '" "bool""'");
56901 arg2 =
static_cast< bool >(val2);
56902 if (arg1) (arg1)->use_heap = arg2;
56903 resultobj = SWIG_Py_Void();
56910 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_use_heap_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56911 PyObject *resultobj = 0;
56915 PyObject * obj0 = 0 ;
56918 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryFlat_use_heap_get",&obj0)) SWIG_fail;
56919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
56920 if (!SWIG_IsOK(res1)) {
56921 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_use_heap_get" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
56924 result = (bool) ((arg1)->use_heap);
56925 resultobj = SWIG_From_bool(static_cast< bool >(result));
56932 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_query_batch_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56933 PyObject *resultobj = 0;
56940 PyObject * obj0 = 0 ;
56941 PyObject * obj1 = 0 ;
56943 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryFlat_query_batch_size_set",&obj0,&obj1)) SWIG_fail;
56944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
56945 if (!SWIG_IsOK(res1)) {
56946 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_query_batch_size_set" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
56949 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
56950 if (!SWIG_IsOK(ecode2)) {
56951 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFlat_query_batch_size_set" "', argument " "2"" of type '" "size_t""'");
56953 arg2 =
static_cast< size_t >(val2);
56954 if (arg1) (arg1)->query_batch_size = arg2;
56955 resultobj = SWIG_Py_Void();
56962 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_query_batch_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56963 PyObject *resultobj = 0;
56967 PyObject * obj0 = 0 ;
56970 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryFlat_query_batch_size_get",&obj0)) SWIG_fail;
56971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
56972 if (!SWIG_IsOK(res1)) {
56973 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_query_batch_size_get" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
56976 result = (size_t) ((arg1)->query_batch_size);
56977 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
56984 SWIGINTERN PyObject *_wrap_new_IndexBinaryFlat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
56985 PyObject *resultobj = 0;
56989 PyObject * obj0 = 0 ;
56992 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexBinaryFlat",&obj0)) SWIG_fail;
56993 ecode1 = SWIG_AsVal_long(obj0, &val1);
56994 if (!SWIG_IsOK(ecode1)) {
56995 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexBinaryFlat" "', argument " "1"" of type '" "faiss::IndexBinary::idx_t""'");
56999 Py_BEGIN_ALLOW_THREADS
57003 PyEval_RestoreThread(_save);
57004 PyErr_SetString(PyExc_RuntimeError, e.
what());
57007 Py_END_ALLOW_THREADS
57009 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryFlat, SWIG_POINTER_NEW | 0 );
57016 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57017 PyObject *resultobj = 0;
57020 uint8_t *arg3 = (uint8_t *) 0 ;
57027 PyObject * obj0 = 0 ;
57028 PyObject * obj1 = 0 ;
57029 PyObject * obj2 = 0 ;
57031 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryFlat_add",&obj0,&obj1,&obj2)) SWIG_fail;
57032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
57033 if (!SWIG_IsOK(res1)) {
57034 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_add" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
57037 ecode2 = SWIG_AsVal_long(obj1, &val2);
57038 if (!SWIG_IsOK(ecode2)) {
57039 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFlat_add" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
57042 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
57043 if (!SWIG_IsOK(res3)) {
57044 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryFlat_add" "', argument " "3"" of type '" "uint8_t const *""'");
57046 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
57048 Py_BEGIN_ALLOW_THREADS
57050 (arg1)->add(arg2,(uint8_t
const *)arg3);
57052 PyEval_RestoreThread(_save);
57053 PyErr_SetString(PyExc_RuntimeError, e.
what());
57056 Py_END_ALLOW_THREADS
57058 resultobj = SWIG_Py_Void();
57065 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57066 PyObject *resultobj = 0;
57070 PyObject * obj0 = 0 ;
57072 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryFlat_reset",&obj0)) SWIG_fail;
57073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
57074 if (!SWIG_IsOK(res1)) {
57075 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_reset" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
57079 Py_BEGIN_ALLOW_THREADS
57083 PyEval_RestoreThread(_save);
57084 PyErr_SetString(PyExc_RuntimeError, e.
what());
57087 Py_END_ALLOW_THREADS
57089 resultobj = SWIG_Py_Void();
57096 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57097 PyObject *resultobj = 0;
57100 uint8_t *arg3 = (uint8_t *) 0 ;
57102 int32_t *arg5 = (int32_t *) 0 ;
57116 PyObject * obj0 = 0 ;
57117 PyObject * obj1 = 0 ;
57118 PyObject * obj2 = 0 ;
57119 PyObject * obj3 = 0 ;
57120 PyObject * obj4 = 0 ;
57121 PyObject * obj5 = 0 ;
57123 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexBinaryFlat_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
57124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
57125 if (!SWIG_IsOK(res1)) {
57126 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_search" "', argument " "1"" of type '" "faiss::IndexBinaryFlat const *""'");
57129 ecode2 = SWIG_AsVal_long(obj1, &val2);
57130 if (!SWIG_IsOK(ecode2)) {
57131 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFlat_search" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
57134 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
57135 if (!SWIG_IsOK(res3)) {
57136 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryFlat_search" "', argument " "3"" of type '" "uint8_t const *""'");
57138 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
57139 ecode4 = SWIG_AsVal_long(obj3, &val4);
57140 if (!SWIG_IsOK(ecode4)) {
57141 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryFlat_search" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
57144 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
57145 if (!SWIG_IsOK(res5)) {
57146 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryFlat_search" "', argument " "5"" of type '" "int32_t *""'");
57148 arg5 =
reinterpret_cast< int32_t *
>(argp5);
57149 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
57150 if (!SWIG_IsOK(res6)) {
57151 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinaryFlat_search" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
57155 Py_BEGIN_ALLOW_THREADS
57159 PyEval_RestoreThread(_save);
57160 PyErr_SetString(PyExc_RuntimeError, e.
what());
57163 Py_END_ALLOW_THREADS
57165 resultobj = SWIG_Py_Void();
57172 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57173 PyObject *resultobj = 0;
57176 uint8_t *arg3 = (uint8_t *) 0 ;
57183 PyObject * obj0 = 0 ;
57184 PyObject * obj1 = 0 ;
57185 PyObject * obj2 = 0 ;
57187 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryFlat_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
57188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
57189 if (!SWIG_IsOK(res1)) {
57190 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_reconstruct" "', argument " "1"" of type '" "faiss::IndexBinaryFlat const *""'");
57193 ecode2 = SWIG_AsVal_long(obj1, &val2);
57194 if (!SWIG_IsOK(ecode2)) {
57195 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFlat_reconstruct" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
57198 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
57199 if (!SWIG_IsOK(res3)) {
57200 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryFlat_reconstruct" "', argument " "3"" of type '" "uint8_t *""'");
57202 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
57204 Py_BEGIN_ALLOW_THREADS
57208 PyEval_RestoreThread(_save);
57209 PyErr_SetString(PyExc_RuntimeError, e.
what());
57212 Py_END_ALLOW_THREADS
57214 resultobj = SWIG_Py_Void();
57221 SWIGINTERN PyObject *_wrap_IndexBinaryFlat_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57222 PyObject *resultobj = 0;
57229 PyObject * obj0 = 0 ;
57230 PyObject * obj1 = 0 ;
57233 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryFlat_remove_ids",&obj0,&obj1)) SWIG_fail;
57234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
57235 if (!SWIG_IsOK(res1)) {
57236 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFlat_remove_ids" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
57239 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
57240 if (!SWIG_IsOK(res2)) {
57241 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryFlat_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
57244 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexBinaryFlat_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
57248 Py_BEGIN_ALLOW_THREADS
57252 PyEval_RestoreThread(_save);
57253 PyErr_SetString(PyExc_RuntimeError, e.
what());
57256 Py_END_ALLOW_THREADS
57258 resultobj = SWIG_From_long(static_cast< long >(result));
57265 SWIGINTERN PyObject *_wrap_new_IndexBinaryFlat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57266 PyObject *resultobj = 0;
57269 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexBinaryFlat")) SWIG_fail;
57271 Py_BEGIN_ALLOW_THREADS
57275 PyEval_RestoreThread(_save);
57276 PyErr_SetString(PyExc_RuntimeError, e.
what());
57279 Py_END_ALLOW_THREADS
57281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryFlat, SWIG_POINTER_NEW | 0 );
57288 SWIGINTERN PyObject *_wrap_new_IndexBinaryFlat(PyObject *
self, PyObject *args) {
57290 PyObject *argv[2] = {
57295 if (!PyTuple_Check(args)) SWIG_fail;
57296 argc = args ? PyObject_Length(args) : 0;
57297 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
57298 argv[ii] = PyTuple_GET_ITEM(args,ii);
57301 return _wrap_new_IndexBinaryFlat__SWIG_1(
self, args);
57306 int res = SWIG_AsVal_long(argv[0], NULL);
57307 _v = SWIG_CheckState(res);
57310 return _wrap_new_IndexBinaryFlat__SWIG_0(
self, args);
57315 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexBinaryFlat'.\n"
57316 " Possible C/C++ prototypes are:\n"
57317 " faiss::IndexBinaryFlat::IndexBinaryFlat(faiss::IndexBinary::idx_t)\n"
57318 " faiss::IndexBinaryFlat::IndexBinaryFlat()\n");
57323 SWIGINTERN PyObject *_wrap_delete_IndexBinaryFlat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57324 PyObject *resultobj = 0;
57328 PyObject * obj0 = 0 ;
57330 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexBinaryFlat",&obj0)) SWIG_fail;
57331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFlat, SWIG_POINTER_DISOWN | 0 );
57332 if (!SWIG_IsOK(res1)) {
57333 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexBinaryFlat" "', argument " "1"" of type '" "faiss::IndexBinaryFlat *""'");
57337 resultobj = SWIG_Py_Void();
57344 SWIGINTERN PyObject *IndexBinaryFlat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57346 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
57347 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexBinaryFlat, SWIG_NewClientData(obj));
57348 return SWIG_Py_Void();
57351 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_invlists_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57352 PyObject *resultobj = 0;
57359 PyObject * obj0 = 0 ;
57360 PyObject * obj1 = 0 ;
57362 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_invlists_set",&obj0,&obj1)) SWIG_fail;
57363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57364 if (!SWIG_IsOK(res1)) {
57365 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_invlists_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57368 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, SWIG_POINTER_DISOWN | 0 );
57369 if (!SWIG_IsOK(res2)) {
57370 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_invlists_set" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
57373 if (arg1) (arg1)->invlists = arg2;
57374 resultobj = SWIG_Py_Void();
57381 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_invlists_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57382 PyObject *resultobj = 0;
57386 PyObject * obj0 = 0 ;
57389 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_invlists_get",&obj0)) SWIG_fail;
57390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57391 if (!SWIG_IsOK(res1)) {
57392 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_invlists_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
57403 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_own_invlists_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57404 PyObject *resultobj = 0;
57411 PyObject * obj0 = 0 ;
57412 PyObject * obj1 = 0 ;
57414 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_own_invlists_set",&obj0,&obj1)) SWIG_fail;
57415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57416 if (!SWIG_IsOK(res1)) {
57417 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_own_invlists_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57420 ecode2 = SWIG_AsVal_bool(obj1, &val2);
57421 if (!SWIG_IsOK(ecode2)) {
57422 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_own_invlists_set" "', argument " "2"" of type '" "bool""'");
57424 arg2 =
static_cast< bool >(val2);
57425 if (arg1) (arg1)->own_invlists = arg2;
57426 resultobj = SWIG_Py_Void();
57433 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_own_invlists_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57434 PyObject *resultobj = 0;
57438 PyObject * obj0 = 0 ;
57441 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_own_invlists_get",&obj0)) SWIG_fail;
57442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57443 if (!SWIG_IsOK(res1)) {
57444 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_own_invlists_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57447 result = (bool) ((arg1)->own_invlists);
57448 resultobj = SWIG_From_bool(static_cast< bool >(result));
57455 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_nprobe_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57456 PyObject *resultobj = 0;
57463 PyObject * obj0 = 0 ;
57464 PyObject * obj1 = 0 ;
57466 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_nprobe_set",&obj0,&obj1)) SWIG_fail;
57467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57468 if (!SWIG_IsOK(res1)) {
57469 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_nprobe_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57472 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
57473 if (!SWIG_IsOK(ecode2)) {
57474 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_nprobe_set" "', argument " "2"" of type '" "size_t""'");
57476 arg2 =
static_cast< size_t >(val2);
57477 if (arg1) (arg1)->nprobe = arg2;
57478 resultobj = SWIG_Py_Void();
57485 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_nprobe_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57486 PyObject *resultobj = 0;
57490 PyObject * obj0 = 0 ;
57493 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_nprobe_get",&obj0)) SWIG_fail;
57494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57495 if (!SWIG_IsOK(res1)) {
57496 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_nprobe_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57499 result = (size_t) ((arg1)->nprobe);
57500 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
57507 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_max_codes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57508 PyObject *resultobj = 0;
57515 PyObject * obj0 = 0 ;
57516 PyObject * obj1 = 0 ;
57518 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_max_codes_set",&obj0,&obj1)) SWIG_fail;
57519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57520 if (!SWIG_IsOK(res1)) {
57521 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_max_codes_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57524 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
57525 if (!SWIG_IsOK(ecode2)) {
57526 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_max_codes_set" "', argument " "2"" of type '" "size_t""'");
57528 arg2 =
static_cast< size_t >(val2);
57529 if (arg1) (arg1)->max_codes = arg2;
57530 resultobj = SWIG_Py_Void();
57537 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_max_codes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57538 PyObject *resultobj = 0;
57542 PyObject * obj0 = 0 ;
57545 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_max_codes_get",&obj0)) SWIG_fail;
57546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57547 if (!SWIG_IsOK(res1)) {
57548 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_max_codes_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57551 result = (size_t) ((arg1)->max_codes);
57552 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
57559 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_use_heap_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57560 PyObject *resultobj = 0;
57567 PyObject * obj0 = 0 ;
57568 PyObject * obj1 = 0 ;
57570 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_use_heap_set",&obj0,&obj1)) SWIG_fail;
57571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57572 if (!SWIG_IsOK(res1)) {
57573 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_use_heap_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57576 ecode2 = SWIG_AsVal_bool(obj1, &val2);
57577 if (!SWIG_IsOK(ecode2)) {
57578 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_use_heap_set" "', argument " "2"" of type '" "bool""'");
57580 arg2 =
static_cast< bool >(val2);
57581 if (arg1) (arg1)->use_heap = arg2;
57582 resultobj = SWIG_Py_Void();
57589 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_use_heap_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57590 PyObject *resultobj = 0;
57594 PyObject * obj0 = 0 ;
57597 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_use_heap_get",&obj0)) SWIG_fail;
57598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57599 if (!SWIG_IsOK(res1)) {
57600 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_use_heap_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57603 result = (bool) ((arg1)->use_heap);
57604 resultobj = SWIG_From_bool(static_cast< bool >(result));
57611 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_maintain_direct_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57612 PyObject *resultobj = 0;
57619 PyObject * obj0 = 0 ;
57620 PyObject * obj1 = 0 ;
57622 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_maintain_direct_map_set",&obj0,&obj1)) SWIG_fail;
57623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57624 if (!SWIG_IsOK(res1)) {
57625 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_maintain_direct_map_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57628 ecode2 = SWIG_AsVal_bool(obj1, &val2);
57629 if (!SWIG_IsOK(ecode2)) {
57630 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_maintain_direct_map_set" "', argument " "2"" of type '" "bool""'");
57632 arg2 =
static_cast< bool >(val2);
57633 if (arg1) (arg1)->maintain_direct_map = arg2;
57634 resultobj = SWIG_Py_Void();
57641 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_maintain_direct_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57642 PyObject *resultobj = 0;
57646 PyObject * obj0 = 0 ;
57649 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_maintain_direct_map_get",&obj0)) SWIG_fail;
57650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57651 if (!SWIG_IsOK(res1)) {
57652 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_maintain_direct_map_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57655 result = (bool) ((arg1)->maintain_direct_map);
57656 resultobj = SWIG_From_bool(static_cast< bool >(result));
57663 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_direct_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57664 PyObject *resultobj = 0;
57666 std::vector< long > *arg2 = (std::vector< long > *) 0 ;
57671 PyObject * obj0 = 0 ;
57672 PyObject * obj1 = 0 ;
57674 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_direct_map_set",&obj0,&obj1)) SWIG_fail;
57675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57676 if (!SWIG_IsOK(res1)) {
57677 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_direct_map_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57680 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
57681 if (!SWIG_IsOK(res2)) {
57682 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_direct_map_set" "', argument " "2"" of type '" "std::vector< long > *""'");
57684 arg2 =
reinterpret_cast< std::vector< long > *
>(argp2);
57685 if (arg1) (arg1)->direct_map = *arg2;
57686 resultobj = SWIG_Py_Void();
57693 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_direct_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57694 PyObject *resultobj = 0;
57698 PyObject * obj0 = 0 ;
57699 std::vector< long > *result = 0 ;
57701 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_direct_map_get",&obj0)) SWIG_fail;
57702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57703 if (!SWIG_IsOK(res1)) {
57704 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_direct_map_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57707 result = (std::vector< long > *)& ((arg1)->direct_map);
57708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
57715 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_quantizer_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57716 PyObject *resultobj = 0;
57723 PyObject * obj0 = 0 ;
57724 PyObject * obj1 = 0 ;
57726 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_quantizer_set",&obj0,&obj1)) SWIG_fail;
57727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57728 if (!SWIG_IsOK(res1)) {
57729 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_quantizer_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57732 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexBinary, SWIG_POINTER_DISOWN | 0 );
57733 if (!SWIG_IsOK(res2)) {
57734 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_quantizer_set" "', argument " "2"" of type '" "faiss::IndexBinary *""'");
57737 if (arg1) (arg1)->quantizer = arg2;
57738 resultobj = SWIG_Py_Void();
57745 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_quantizer_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57746 PyObject *resultobj = 0;
57750 PyObject * obj0 = 0 ;
57753 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_quantizer_get",&obj0)) SWIG_fail;
57754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57755 if (!SWIG_IsOK(res1)) {
57756 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_quantizer_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
57767 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_nlist_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57768 PyObject *resultobj = 0;
57775 PyObject * obj0 = 0 ;
57776 PyObject * obj1 = 0 ;
57778 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_nlist_set",&obj0,&obj1)) SWIG_fail;
57779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57780 if (!SWIG_IsOK(res1)) {
57781 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_nlist_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57784 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
57785 if (!SWIG_IsOK(ecode2)) {
57786 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_nlist_set" "', argument " "2"" of type '" "size_t""'");
57788 arg2 =
static_cast< size_t >(val2);
57789 if (arg1) (arg1)->nlist = arg2;
57790 resultobj = SWIG_Py_Void();
57797 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_nlist_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57798 PyObject *resultobj = 0;
57802 PyObject * obj0 = 0 ;
57805 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_nlist_get",&obj0)) SWIG_fail;
57806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57807 if (!SWIG_IsOK(res1)) {
57808 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_nlist_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57811 result = (size_t) ((arg1)->nlist);
57812 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
57819 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57820 PyObject *resultobj = 0;
57827 PyObject * obj0 = 0 ;
57828 PyObject * obj1 = 0 ;
57830 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_own_fields_set",&obj0,&obj1)) SWIG_fail;
57831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57832 if (!SWIG_IsOK(res1)) {
57833 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_own_fields_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57836 ecode2 = SWIG_AsVal_bool(obj1, &val2);
57837 if (!SWIG_IsOK(ecode2)) {
57838 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_own_fields_set" "', argument " "2"" of type '" "bool""'");
57840 arg2 =
static_cast< bool >(val2);
57841 if (arg1) (arg1)->own_fields = arg2;
57842 resultobj = SWIG_Py_Void();
57849 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57850 PyObject *resultobj = 0;
57854 PyObject * obj0 = 0 ;
57857 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_own_fields_get",&obj0)) SWIG_fail;
57858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57859 if (!SWIG_IsOK(res1)) {
57860 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_own_fields_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57863 result = (bool) ((arg1)->own_fields);
57864 resultobj = SWIG_From_bool(static_cast< bool >(result));
57871 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_cp_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57872 PyObject *resultobj = 0;
57879 PyObject * obj0 = 0 ;
57880 PyObject * obj1 = 0 ;
57882 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_cp_set",&obj0,&obj1)) SWIG_fail;
57883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57884 if (!SWIG_IsOK(res1)) {
57885 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_cp_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57888 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
57889 if (!SWIG_IsOK(res2)) {
57890 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_cp_set" "', argument " "2"" of type '" "faiss::ClusteringParameters *""'");
57893 if (arg1) (arg1)->cp = *arg2;
57894 resultobj = SWIG_Py_Void();
57901 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_cp_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57902 PyObject *resultobj = 0;
57906 PyObject * obj0 = 0 ;
57909 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_cp_get",&obj0)) SWIG_fail;
57910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57911 if (!SWIG_IsOK(res1)) {
57912 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_cp_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
57923 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_clustering_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57924 PyObject *resultobj = 0;
57931 PyObject * obj0 = 0 ;
57932 PyObject * obj1 = 0 ;
57934 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_clustering_index_set",&obj0,&obj1)) SWIG_fail;
57935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57936 if (!SWIG_IsOK(res1)) {
57937 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_clustering_index_set" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57940 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
57941 if (!SWIG_IsOK(res2)) {
57942 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_clustering_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
57945 if (arg1) (arg1)->clustering_index = arg2;
57946 resultobj = SWIG_Py_Void();
57953 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_clustering_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57954 PyObject *resultobj = 0;
57958 PyObject * obj0 = 0 ;
57961 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_clustering_index_get",&obj0)) SWIG_fail;
57962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57963 if (!SWIG_IsOK(res1)) {
57964 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_clustering_index_get" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
57968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
57975 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_train_q1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
57976 PyObject *resultobj = 0;
57979 uint8_t *arg3 = (uint8_t *) 0 ;
57989 PyObject * obj0 = 0 ;
57990 PyObject * obj1 = 0 ;
57991 PyObject * obj2 = 0 ;
57992 PyObject * obj3 = 0 ;
57994 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexBinaryIVF_train_q1",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
57995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
57996 if (!SWIG_IsOK(res1)) {
57997 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_train_q1" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
58000 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
58001 if (!SWIG_IsOK(ecode2)) {
58002 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_train_q1" "', argument " "2"" of type '" "size_t""'");
58004 arg2 =
static_cast< size_t >(val2);
58005 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
58006 if (!SWIG_IsOK(res3)) {
58007 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_train_q1" "', argument " "3"" of type '" "uint8_t const *""'");
58009 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
58010 ecode4 = SWIG_AsVal_bool(obj3, &val4);
58011 if (!SWIG_IsOK(ecode4)) {
58012 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryIVF_train_q1" "', argument " "4"" of type '" "bool""'");
58014 arg4 =
static_cast< bool >(val4);
58016 Py_BEGIN_ALLOW_THREADS
58018 (arg1)->train_q1(arg2,(uint8_t
const *)arg3,arg4);
58020 PyEval_RestoreThread(_save);
58021 PyErr_SetString(PyExc_RuntimeError, e.
what());
58024 Py_END_ALLOW_THREADS
58026 resultobj = SWIG_Py_Void();
58033 SWIGINTERN PyObject *_wrap_new_IndexBinaryIVF__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58034 PyObject *resultobj = 0;
58044 PyObject * obj0 = 0 ;
58045 PyObject * obj1 = 0 ;
58046 PyObject * obj2 = 0 ;
58049 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexBinaryIVF",&obj0,&obj1,&obj2)) SWIG_fail;
58050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
58051 if (!SWIG_IsOK(res1)) {
58052 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexBinaryIVF" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
58055 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
58056 if (!SWIG_IsOK(ecode2)) {
58057 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexBinaryIVF" "', argument " "2"" of type '" "size_t""'");
58059 arg2 =
static_cast< size_t >(val2);
58060 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
58061 if (!SWIG_IsOK(ecode3)) {
58062 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexBinaryIVF" "', argument " "3"" of type '" "size_t""'");
58064 arg3 =
static_cast< size_t >(val3);
58066 Py_BEGIN_ALLOW_THREADS
58070 PyEval_RestoreThread(_save);
58071 PyErr_SetString(PyExc_RuntimeError, e.
what());
58074 Py_END_ALLOW_THREADS
58076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryIVF, SWIG_POINTER_NEW | 0 );
58083 SWIGINTERN PyObject *_wrap_new_IndexBinaryIVF__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58084 PyObject *resultobj = 0;
58087 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexBinaryIVF")) SWIG_fail;
58089 Py_BEGIN_ALLOW_THREADS
58093 PyEval_RestoreThread(_save);
58094 PyErr_SetString(PyExc_RuntimeError, e.
what());
58097 Py_END_ALLOW_THREADS
58099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryIVF, SWIG_POINTER_NEW | 0 );
58106 SWIGINTERN PyObject *_wrap_new_IndexBinaryIVF(PyObject *
self, PyObject *args) {
58108 PyObject *argv[4] = {
58113 if (!PyTuple_Check(args)) SWIG_fail;
58114 argc = args ? PyObject_Length(args) : 0;
58115 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
58116 argv[ii] = PyTuple_GET_ITEM(args,ii);
58119 return _wrap_new_IndexBinaryIVF__SWIG_1(
self, args);
58124 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
58125 _v = SWIG_CheckState(res);
58128 int res = SWIG_AsVal_size_t(argv[1], NULL);
58129 _v = SWIG_CheckState(res);
58133 int res = SWIG_AsVal_size_t(argv[2], NULL);
58134 _v = SWIG_CheckState(res);
58137 return _wrap_new_IndexBinaryIVF__SWIG_0(
self, args);
58144 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexBinaryIVF'.\n"
58145 " Possible C/C++ prototypes are:\n"
58146 " faiss::IndexBinaryIVF::IndexBinaryIVF(faiss::IndexBinary *,size_t,size_t)\n"
58147 " faiss::IndexBinaryIVF::IndexBinaryIVF()\n");
58152 SWIGINTERN PyObject *_wrap_delete_IndexBinaryIVF(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58153 PyObject *resultobj = 0;
58157 PyObject * obj0 = 0 ;
58159 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexBinaryIVF",&obj0)) SWIG_fail;
58160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, SWIG_POINTER_DISOWN | 0 );
58161 if (!SWIG_IsOK(res1)) {
58162 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexBinaryIVF" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
58166 Py_BEGIN_ALLOW_THREADS
58170 PyEval_RestoreThread(_save);
58171 PyErr_SetString(PyExc_RuntimeError, e.
what());
58174 Py_END_ALLOW_THREADS
58176 resultobj = SWIG_Py_Void();
58183 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58184 PyObject *resultobj = 0;
58188 PyObject * obj0 = 0 ;
58190 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_reset",&obj0)) SWIG_fail;
58191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58192 if (!SWIG_IsOK(res1)) {
58193 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_reset" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
58197 Py_BEGIN_ALLOW_THREADS
58201 PyEval_RestoreThread(_save);
58202 PyErr_SetString(PyExc_RuntimeError, e.
what());
58205 Py_END_ALLOW_THREADS
58207 resultobj = SWIG_Py_Void();
58214 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58215 PyObject *resultobj = 0;
58218 uint8_t *arg3 = (uint8_t *) 0 ;
58225 PyObject * obj0 = 0 ;
58226 PyObject * obj1 = 0 ;
58227 PyObject * obj2 = 0 ;
58229 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryIVF_train",&obj0,&obj1,&obj2)) SWIG_fail;
58230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58231 if (!SWIG_IsOK(res1)) {
58232 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_train" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
58235 ecode2 = SWIG_AsVal_long(obj1, &val2);
58236 if (!SWIG_IsOK(ecode2)) {
58237 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_train" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
58240 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
58241 if (!SWIG_IsOK(res3)) {
58242 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_train" "', argument " "3"" of type '" "uint8_t const *""'");
58244 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
58246 Py_BEGIN_ALLOW_THREADS
58248 (arg1)->train(arg2,(uint8_t
const *)arg3);
58250 PyEval_RestoreThread(_save);
58251 PyErr_SetString(PyExc_RuntimeError, e.
what());
58254 Py_END_ALLOW_THREADS
58256 resultobj = SWIG_Py_Void();
58263 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58264 PyObject *resultobj = 0;
58267 uint8_t *arg3 = (uint8_t *) 0 ;
58274 PyObject * obj0 = 0 ;
58275 PyObject * obj1 = 0 ;
58276 PyObject * obj2 = 0 ;
58278 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryIVF_add",&obj0,&obj1,&obj2)) SWIG_fail;
58279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58280 if (!SWIG_IsOK(res1)) {
58281 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_add" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
58284 ecode2 = SWIG_AsVal_long(obj1, &val2);
58285 if (!SWIG_IsOK(ecode2)) {
58286 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_add" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
58289 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
58290 if (!SWIG_IsOK(res3)) {
58291 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_add" "', argument " "3"" of type '" "uint8_t const *""'");
58293 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
58295 Py_BEGIN_ALLOW_THREADS
58297 (arg1)->add(arg2,(uint8_t
const *)arg3);
58299 PyEval_RestoreThread(_save);
58300 PyErr_SetString(PyExc_RuntimeError, e.
what());
58303 Py_END_ALLOW_THREADS
58305 resultobj = SWIG_Py_Void();
58312 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58313 PyObject *resultobj = 0;
58316 uint8_t *arg3 = (uint8_t *) 0 ;
58317 long *arg4 = (
long *) 0 ;
58326 PyObject * obj0 = 0 ;
58327 PyObject * obj1 = 0 ;
58328 PyObject * obj2 = 0 ;
58329 PyObject * obj3 = 0 ;
58331 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexBinaryIVF_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
58332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58333 if (!SWIG_IsOK(res1)) {
58334 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_add_with_ids" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
58337 ecode2 = SWIG_AsVal_long(obj1, &val2);
58338 if (!SWIG_IsOK(ecode2)) {
58339 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_add_with_ids" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
58342 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
58343 if (!SWIG_IsOK(res3)) {
58344 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_add_with_ids" "', argument " "3"" of type '" "uint8_t const *""'");
58346 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
58347 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
58348 if (!SWIG_IsOK(res4)) {
58349 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinaryIVF_add_with_ids" "', argument " "4"" of type '" "long const *""'");
58351 arg4 =
reinterpret_cast< long *
>(argp4);
58353 Py_BEGIN_ALLOW_THREADS
58355 (arg1)->add_with_ids(arg2,(uint8_t
const *)arg3,(
long const *)arg4);
58357 PyEval_RestoreThread(_save);
58358 PyErr_SetString(PyExc_RuntimeError, e.
what());
58361 Py_END_ALLOW_THREADS
58363 resultobj = SWIG_Py_Void();
58370 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_add_core(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58371 PyObject *resultobj = 0;
58374 uint8_t *arg3 = (uint8_t *) 0 ;
58375 long *arg4 = (
long *) 0 ;
58376 long *arg5 = (
long *) 0 ;
58387 PyObject * obj0 = 0 ;
58388 PyObject * obj1 = 0 ;
58389 PyObject * obj2 = 0 ;
58390 PyObject * obj3 = 0 ;
58391 PyObject * obj4 = 0 ;
58393 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexBinaryIVF_add_core",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
58394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58395 if (!SWIG_IsOK(res1)) {
58396 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_add_core" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
58399 ecode2 = SWIG_AsVal_long(obj1, &val2);
58400 if (!SWIG_IsOK(ecode2)) {
58401 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_add_core" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
58404 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
58405 if (!SWIG_IsOK(res3)) {
58406 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_add_core" "', argument " "3"" of type '" "uint8_t const *""'");
58408 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
58409 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
58410 if (!SWIG_IsOK(res4)) {
58411 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinaryIVF_add_core" "', argument " "4"" of type '" "long const *""'");
58413 arg4 =
reinterpret_cast< long *
>(argp4);
58414 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
58415 if (!SWIG_IsOK(res5)) {
58416 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryIVF_add_core" "', argument " "5"" of type '" "long const *""'");
58418 arg5 =
reinterpret_cast< long *
>(argp5);
58420 Py_BEGIN_ALLOW_THREADS
58422 (arg1)->add_core(arg2,(uint8_t
const *)arg3,(
long const *)arg4,(
long const *)arg5);
58423 } catch(faiss::FaissException & e) {
58424 PyEval_RestoreThread(_save);
58425 PyErr_SetString(PyExc_RuntimeError, e.what());
58428 Py_END_ALLOW_THREADS
58430 resultobj = SWIG_Py_Void();
58437 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_search_preassigned__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58438 PyObject *resultobj = 0;
58441 uint8_t *arg3 = (uint8_t *) 0 ;
58444 int32_t *arg6 = (int32_t *) 0 ;
58445 int32_t *arg7 = (int32_t *) 0 ;
58469 PyObject * obj0 = 0 ;
58470 PyObject * obj1 = 0 ;
58471 PyObject * obj2 = 0 ;
58472 PyObject * obj3 = 0 ;
58473 PyObject * obj4 = 0 ;
58474 PyObject * obj5 = 0 ;
58475 PyObject * obj6 = 0 ;
58476 PyObject * obj7 = 0 ;
58477 PyObject * obj8 = 0 ;
58478 PyObject * obj9 = 0 ;
58480 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOOO:IndexBinaryIVF_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
58481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58482 if (!SWIG_IsOK(res1)) {
58483 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
58486 ecode2 = SWIG_AsVal_long(obj1, &val2);
58487 if (!SWIG_IsOK(ecode2)) {
58488 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
58491 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
58492 if (!SWIG_IsOK(res3)) {
58493 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "3"" of type '" "uint8_t const *""'");
58495 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
58496 ecode4 = SWIG_AsVal_long(obj3, &val4);
58497 if (!SWIG_IsOK(ecode4)) {
58498 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
58501 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
58502 if (!SWIG_IsOK(res5)) {
58503 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "5"" of type '" "faiss::IndexBinary::idx_t const *""'");
58506 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 | 0 );
58507 if (!SWIG_IsOK(res6)) {
58508 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "6"" of type '" "int32_t const *""'");
58510 arg6 =
reinterpret_cast< int32_t *
>(argp6);
58511 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_int, 0 | 0 );
58512 if (!SWIG_IsOK(res7)) {
58513 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "7"" of type '" "int32_t *""'");
58515 arg7 =
reinterpret_cast< int32_t *
>(argp7);
58516 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
58517 if (!SWIG_IsOK(res8)) {
58518 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "8"" of type '" "faiss::IndexBinary::idx_t *""'");
58521 ecode9 = SWIG_AsVal_bool(obj8, &val9);
58522 if (!SWIG_IsOK(ecode9)) {
58523 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "9"" of type '" "bool""'");
58525 arg9 =
static_cast< bool >(val9);
58526 res10 = SWIG_ConvertPtr(obj9, &argp10,SWIGTYPE_p_faiss__IVFSearchParameters, 0 | 0 );
58527 if (!SWIG_IsOK(res10)) {
58528 SWIG_exception_fail(SWIG_ArgError(res10),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "10"" of type '" "faiss::IVFSearchParameters const *""'");
58532 Py_BEGIN_ALLOW_THREADS
58536 PyEval_RestoreThread(_save);
58537 PyErr_SetString(PyExc_RuntimeError, e.
what());
58540 Py_END_ALLOW_THREADS
58542 resultobj = SWIG_Py_Void();
58549 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_search_preassigned__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58550 PyObject *resultobj = 0;
58553 uint8_t *arg3 = (uint8_t *) 0 ;
58556 int32_t *arg6 = (int32_t *) 0 ;
58557 int32_t *arg7 = (int32_t *) 0 ;
58578 PyObject * obj0 = 0 ;
58579 PyObject * obj1 = 0 ;
58580 PyObject * obj2 = 0 ;
58581 PyObject * obj3 = 0 ;
58582 PyObject * obj4 = 0 ;
58583 PyObject * obj5 = 0 ;
58584 PyObject * obj6 = 0 ;
58585 PyObject * obj7 = 0 ;
58586 PyObject * obj8 = 0 ;
58588 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOO:IndexBinaryIVF_search_preassigned",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
58589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58590 if (!SWIG_IsOK(res1)) {
58591 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
58594 ecode2 = SWIG_AsVal_long(obj1, &val2);
58595 if (!SWIG_IsOK(ecode2)) {
58596 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
58599 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
58600 if (!SWIG_IsOK(res3)) {
58601 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "3"" of type '" "uint8_t const *""'");
58603 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
58604 ecode4 = SWIG_AsVal_long(obj3, &val4);
58605 if (!SWIG_IsOK(ecode4)) {
58606 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
58609 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_long, 0 | 0 );
58610 if (!SWIG_IsOK(res5)) {
58611 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "5"" of type '" "faiss::IndexBinary::idx_t const *""'");
58614 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 | 0 );
58615 if (!SWIG_IsOK(res6)) {
58616 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "6"" of type '" "int32_t const *""'");
58618 arg6 =
reinterpret_cast< int32_t *
>(argp6);
58619 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_int, 0 | 0 );
58620 if (!SWIG_IsOK(res7)) {
58621 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "7"" of type '" "int32_t *""'");
58623 arg7 =
reinterpret_cast< int32_t *
>(argp7);
58624 res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_long, 0 | 0 );
58625 if (!SWIG_IsOK(res8)) {
58626 SWIG_exception_fail(SWIG_ArgError(res8),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "8"" of type '" "faiss::IndexBinary::idx_t *""'");
58629 ecode9 = SWIG_AsVal_bool(obj8, &val9);
58630 if (!SWIG_IsOK(ecode9)) {
58631 SWIG_exception_fail(SWIG_ArgError(ecode9),
"in method '" "IndexBinaryIVF_search_preassigned" "', argument " "9"" of type '" "bool""'");
58633 arg9 =
static_cast< bool >(val9);
58635 Py_BEGIN_ALLOW_THREADS
58639 PyEval_RestoreThread(_save);
58640 PyErr_SetString(PyExc_RuntimeError, e.
what());
58643 Py_END_ALLOW_THREADS
58645 resultobj = SWIG_Py_Void();
58652 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_search_preassigned(PyObject *
self, PyObject *args) {
58654 PyObject *argv[11] = {
58659 if (!PyTuple_Check(args)) SWIG_fail;
58660 argc = args ? PyObject_Length(args) : 0;
58661 for (ii = 0; (ii < 10) && (ii < argc); ii++) {
58662 argv[ii] = PyTuple_GET_ITEM(args,ii);
58667 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
58668 _v = SWIG_CheckState(res);
58671 int res = SWIG_AsVal_long(argv[1], NULL);
58672 _v = SWIG_CheckState(res);
58676 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
58677 _v = SWIG_CheckState(res);
58680 int res = SWIG_AsVal_long(argv[3], NULL);
58681 _v = SWIG_CheckState(res);
58685 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
58686 _v = SWIG_CheckState(res);
58689 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0);
58690 _v = SWIG_CheckState(res);
58693 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_int, 0);
58694 _v = SWIG_CheckState(res);
58697 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
58698 _v = SWIG_CheckState(res);
58701 int res = SWIG_AsVal_bool(argv[8], NULL);
58702 _v = SWIG_CheckState(res);
58705 return _wrap_IndexBinaryIVF_search_preassigned__SWIG_1(
self, args);
58719 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
58720 _v = SWIG_CheckState(res);
58723 int res = SWIG_AsVal_long(argv[1], NULL);
58724 _v = SWIG_CheckState(res);
58728 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
58729 _v = SWIG_CheckState(res);
58732 int res = SWIG_AsVal_long(argv[3], NULL);
58733 _v = SWIG_CheckState(res);
58737 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_long, 0);
58738 _v = SWIG_CheckState(res);
58741 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0);
58742 _v = SWIG_CheckState(res);
58745 int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_int, 0);
58746 _v = SWIG_CheckState(res);
58749 int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_long, 0);
58750 _v = SWIG_CheckState(res);
58753 int res = SWIG_AsVal_bool(argv[8], NULL);
58754 _v = SWIG_CheckState(res);
58758 int res = SWIG_ConvertPtr(argv[9], &vptr, SWIGTYPE_p_faiss__IVFSearchParameters, 0);
58759 _v = SWIG_CheckState(res);
58761 return _wrap_IndexBinaryIVF_search_preassigned__SWIG_0(
self, args);
58775 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexBinaryIVF_search_preassigned'.\n"
58776 " Possible C/C++ prototypes are:\n"
58777 " 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"
58778 " 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");
58783 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_get_InvertedListScanner__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58784 PyObject *resultobj = 0;
58791 PyObject * obj0 = 0 ;
58792 PyObject * obj1 = 0 ;
58795 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_get_InvertedListScanner",&obj0,&obj1)) SWIG_fail;
58796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58797 if (!SWIG_IsOK(res1)) {
58798 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_get_InvertedListScanner" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
58801 ecode2 = SWIG_AsVal_bool(obj1, &val2);
58802 if (!SWIG_IsOK(ecode2)) {
58803 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_get_InvertedListScanner" "', argument " "2"" of type '" "bool""'");
58805 arg2 =
static_cast< bool >(val2);
58807 Py_BEGIN_ALLOW_THREADS
58811 PyEval_RestoreThread(_save);
58812 PyErr_SetString(PyExc_RuntimeError, e.
what());
58815 Py_END_ALLOW_THREADS
58817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__BinaryInvertedListScanner, 0 | 0 );
58824 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_get_InvertedListScanner__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58825 PyObject *resultobj = 0;
58829 PyObject * obj0 = 0 ;
58832 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_get_InvertedListScanner",&obj0)) SWIG_fail;
58833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58834 if (!SWIG_IsOK(res1)) {
58835 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_get_InvertedListScanner" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
58839 Py_BEGIN_ALLOW_THREADS
58843 PyEval_RestoreThread(_save);
58844 PyErr_SetString(PyExc_RuntimeError, e.
what());
58847 Py_END_ALLOW_THREADS
58849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__BinaryInvertedListScanner, 0 | 0 );
58856 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_get_InvertedListScanner(PyObject *
self, PyObject *args) {
58858 PyObject *argv[3] = {
58863 if (!PyTuple_Check(args)) SWIG_fail;
58864 argc = args ? PyObject_Length(args) : 0;
58865 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
58866 argv[ii] = PyTuple_GET_ITEM(args,ii);
58871 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
58872 _v = SWIG_CheckState(res);
58874 return _wrap_IndexBinaryIVF_get_InvertedListScanner__SWIG_1(
self, args);
58880 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
58881 _v = SWIG_CheckState(res);
58884 int res = SWIG_AsVal_bool(argv[1], NULL);
58885 _v = SWIG_CheckState(res);
58888 return _wrap_IndexBinaryIVF_get_InvertedListScanner__SWIG_0(
self, args);
58894 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexBinaryIVF_get_InvertedListScanner'.\n"
58895 " Possible C/C++ prototypes are:\n"
58896 " faiss::IndexBinaryIVF::get_InvertedListScanner(bool) const\n"
58897 " faiss::IndexBinaryIVF::get_InvertedListScanner() const\n");
58902 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58903 PyObject *resultobj = 0;
58906 uint8_t *arg3 = (uint8_t *) 0 ;
58908 int32_t *arg5 = (int32_t *) 0 ;
58922 PyObject * obj0 = 0 ;
58923 PyObject * obj1 = 0 ;
58924 PyObject * obj2 = 0 ;
58925 PyObject * obj3 = 0 ;
58926 PyObject * obj4 = 0 ;
58927 PyObject * obj5 = 0 ;
58929 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexBinaryIVF_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
58930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58931 if (!SWIG_IsOK(res1)) {
58932 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_search" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
58935 ecode2 = SWIG_AsVal_long(obj1, &val2);
58936 if (!SWIG_IsOK(ecode2)) {
58937 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_search" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
58940 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
58941 if (!SWIG_IsOK(res3)) {
58942 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_search" "', argument " "3"" of type '" "uint8_t const *""'");
58944 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
58945 ecode4 = SWIG_AsVal_long(obj3, &val4);
58946 if (!SWIG_IsOK(ecode4)) {
58947 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryIVF_search" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
58950 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
58951 if (!SWIG_IsOK(res5)) {
58952 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryIVF_search" "', argument " "5"" of type '" "int32_t *""'");
58954 arg5 =
reinterpret_cast< int32_t *
>(argp5);
58955 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
58956 if (!SWIG_IsOK(res6)) {
58957 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinaryIVF_search" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
58961 Py_BEGIN_ALLOW_THREADS
58965 PyEval_RestoreThread(_save);
58966 PyErr_SetString(PyExc_RuntimeError, e.
what());
58969 Py_END_ALLOW_THREADS
58971 resultobj = SWIG_Py_Void();
58978 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
58979 PyObject *resultobj = 0;
58982 uint8_t *arg3 = (uint8_t *) 0 ;
58989 PyObject * obj0 = 0 ;
58990 PyObject * obj1 = 0 ;
58991 PyObject * obj2 = 0 ;
58993 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryIVF_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
58994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
58995 if (!SWIG_IsOK(res1)) {
58996 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_reconstruct" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
58999 ecode2 = SWIG_AsVal_long(obj1, &val2);
59000 if (!SWIG_IsOK(ecode2)) {
59001 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_reconstruct" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
59004 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
59005 if (!SWIG_IsOK(res3)) {
59006 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_reconstruct" "', argument " "3"" of type '" "uint8_t *""'");
59008 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
59010 Py_BEGIN_ALLOW_THREADS
59014 PyEval_RestoreThread(_save);
59015 PyErr_SetString(PyExc_RuntimeError, e.
what());
59018 Py_END_ALLOW_THREADS
59020 resultobj = SWIG_Py_Void();
59027 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59028 PyObject *resultobj = 0;
59032 uint8_t *arg4 = (uint8_t *) 0 ;
59041 PyObject * obj0 = 0 ;
59042 PyObject * obj1 = 0 ;
59043 PyObject * obj2 = 0 ;
59044 PyObject * obj3 = 0 ;
59046 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexBinaryIVF_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
59047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
59048 if (!SWIG_IsOK(res1)) {
59049 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_reconstruct_n" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
59052 ecode2 = SWIG_AsVal_long(obj1, &val2);
59053 if (!SWIG_IsOK(ecode2)) {
59054 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_reconstruct_n" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
59057 ecode3 = SWIG_AsVal_long(obj2, &val3);
59058 if (!SWIG_IsOK(ecode3)) {
59059 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexBinaryIVF_reconstruct_n" "', argument " "3"" of type '" "faiss::IndexBinary::idx_t""'");
59062 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
59063 if (!SWIG_IsOK(res4)) {
59064 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinaryIVF_reconstruct_n" "', argument " "4"" of type '" "uint8_t *""'");
59066 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
59068 Py_BEGIN_ALLOW_THREADS
59072 PyEval_RestoreThread(_save);
59073 PyErr_SetString(PyExc_RuntimeError, e.
what());
59076 Py_END_ALLOW_THREADS
59078 resultobj = SWIG_Py_Void();
59085 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_search_and_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59086 PyObject *resultobj = 0;
59089 uint8_t *arg3 = (uint8_t *) 0 ;
59091 int32_t *arg5 = (int32_t *) 0 ;
59093 uint8_t *arg7 = (uint8_t *) 0 ;
59108 PyObject * obj0 = 0 ;
59109 PyObject * obj1 = 0 ;
59110 PyObject * obj2 = 0 ;
59111 PyObject * obj3 = 0 ;
59112 PyObject * obj4 = 0 ;
59113 PyObject * obj5 = 0 ;
59114 PyObject * obj6 = 0 ;
59116 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:IndexBinaryIVF_search_and_reconstruct",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
59117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
59118 if (!SWIG_IsOK(res1)) {
59119 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_search_and_reconstruct" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
59122 ecode2 = SWIG_AsVal_long(obj1, &val2);
59123 if (!SWIG_IsOK(ecode2)) {
59124 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_search_and_reconstruct" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
59127 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
59128 if (!SWIG_IsOK(res3)) {
59129 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryIVF_search_and_reconstruct" "', argument " "3"" of type '" "uint8_t const *""'");
59131 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
59132 ecode4 = SWIG_AsVal_long(obj3, &val4);
59133 if (!SWIG_IsOK(ecode4)) {
59134 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryIVF_search_and_reconstruct" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
59137 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
59138 if (!SWIG_IsOK(res5)) {
59139 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryIVF_search_and_reconstruct" "', argument " "5"" of type '" "int32_t *""'");
59141 arg5 =
reinterpret_cast< int32_t *
>(argp5);
59142 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
59143 if (!SWIG_IsOK(res6)) {
59144 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinaryIVF_search_and_reconstruct" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
59147 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_char, 0 | 0 );
59148 if (!SWIG_IsOK(res7)) {
59149 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "IndexBinaryIVF_search_and_reconstruct" "', argument " "7"" of type '" "uint8_t *""'");
59151 arg7 =
reinterpret_cast< uint8_t *
>(argp7);
59153 Py_BEGIN_ALLOW_THREADS
59155 ((
faiss::IndexBinaryIVF const *)arg1)->search_and_reconstruct(arg2,(uint8_t
const *)arg3,arg4,arg5,arg6,arg7);
59157 PyEval_RestoreThread(_save);
59158 PyErr_SetString(PyExc_RuntimeError, e.
what());
59161 Py_END_ALLOW_THREADS
59163 resultobj = SWIG_Py_Void();
59170 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_reconstruct_from_offset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59171 PyObject *resultobj = 0;
59175 uint8_t *arg4 = (uint8_t *) 0 ;
59184 PyObject * obj0 = 0 ;
59185 PyObject * obj1 = 0 ;
59186 PyObject * obj2 = 0 ;
59187 PyObject * obj3 = 0 ;
59189 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexBinaryIVF_reconstruct_from_offset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
59190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
59191 if (!SWIG_IsOK(res1)) {
59192 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_reconstruct_from_offset" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
59195 ecode2 = SWIG_AsVal_long(obj1, &val2);
59196 if (!SWIG_IsOK(ecode2)) {
59197 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_reconstruct_from_offset" "', argument " "2"" of type '" "long""'");
59199 arg2 =
static_cast< long >(val2);
59200 ecode3 = SWIG_AsVal_long(obj2, &val3);
59201 if (!SWIG_IsOK(ecode3)) {
59202 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexBinaryIVF_reconstruct_from_offset" "', argument " "3"" of type '" "long""'");
59204 arg3 =
static_cast< long >(val3);
59205 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
59206 if (!SWIG_IsOK(res4)) {
59207 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexBinaryIVF_reconstruct_from_offset" "', argument " "4"" of type '" "uint8_t *""'");
59209 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
59211 Py_BEGIN_ALLOW_THREADS
59215 PyEval_RestoreThread(_save);
59216 PyErr_SetString(PyExc_RuntimeError, e.
what());
59219 Py_END_ALLOW_THREADS
59221 resultobj = SWIG_Py_Void();
59228 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59229 PyObject *resultobj = 0;
59236 PyObject * obj0 = 0 ;
59237 PyObject * obj1 = 0 ;
59240 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_remove_ids",&obj0,&obj1)) SWIG_fail;
59241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
59242 if (!SWIG_IsOK(res1)) {
59243 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_remove_ids" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
59246 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
59247 if (!SWIG_IsOK(res2)) {
59248 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
59251 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexBinaryIVF_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
59255 Py_BEGIN_ALLOW_THREADS
59259 PyEval_RestoreThread(_save);
59260 PyErr_SetString(PyExc_RuntimeError, e.
what());
59263 Py_END_ALLOW_THREADS
59265 resultobj = SWIG_From_long(static_cast< long >(result));
59272 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_merge_from(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59273 PyObject *resultobj = 0;
59283 PyObject * obj0 = 0 ;
59284 PyObject * obj1 = 0 ;
59285 PyObject * obj2 = 0 ;
59287 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryIVF_merge_from",&obj0,&obj1,&obj2)) SWIG_fail;
59288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
59289 if (!SWIG_IsOK(res1)) {
59290 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_merge_from" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
59293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IndexBinaryIVF, 0 );
59294 if (!SWIG_IsOK(res2)) {
59295 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_merge_from" "', argument " "2"" of type '" "faiss::IndexBinaryIVF &""'");
59298 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexBinaryIVF_merge_from" "', argument " "2"" of type '" "faiss::IndexBinaryIVF &""'");
59301 ecode3 = SWIG_AsVal_long(obj2, &val3);
59302 if (!SWIG_IsOK(ecode3)) {
59303 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexBinaryIVF_merge_from" "', argument " "3"" of type '" "faiss::IndexBinary::idx_t""'");
59307 Py_BEGIN_ALLOW_THREADS
59309 (arg1)->merge_from(*arg2,arg3);
59311 PyEval_RestoreThread(_save);
59312 PyErr_SetString(PyExc_RuntimeError, e.
what());
59315 Py_END_ALLOW_THREADS
59317 resultobj = SWIG_Py_Void();
59324 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_get_list_size(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59325 PyObject *resultobj = 0;
59332 PyObject * obj0 = 0 ;
59333 PyObject * obj1 = 0 ;
59336 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_get_list_size",&obj0,&obj1)) SWIG_fail;
59337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
59338 if (!SWIG_IsOK(res1)) {
59339 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_get_list_size" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
59342 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
59343 if (!SWIG_IsOK(ecode2)) {
59344 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_get_list_size" "', argument " "2"" of type '" "size_t""'");
59346 arg2 =
static_cast< size_t >(val2);
59348 Py_BEGIN_ALLOW_THREADS
59352 PyEval_RestoreThread(_save);
59353 PyErr_SetString(PyExc_RuntimeError, e.
what());
59356 Py_END_ALLOW_THREADS
59358 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
59365 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_make_direct_map__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59366 PyObject *resultobj = 0;
59373 PyObject * obj0 = 0 ;
59374 PyObject * obj1 = 0 ;
59376 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_make_direct_map",&obj0,&obj1)) SWIG_fail;
59377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
59378 if (!SWIG_IsOK(res1)) {
59379 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_make_direct_map" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
59382 ecode2 = SWIG_AsVal_bool(obj1, &val2);
59383 if (!SWIG_IsOK(ecode2)) {
59384 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryIVF_make_direct_map" "', argument " "2"" of type '" "bool""'");
59386 arg2 =
static_cast< bool >(val2);
59388 Py_BEGIN_ALLOW_THREADS
59390 (arg1)->make_direct_map(arg2);
59392 PyEval_RestoreThread(_save);
59393 PyErr_SetString(PyExc_RuntimeError, e.
what());
59396 Py_END_ALLOW_THREADS
59398 resultobj = SWIG_Py_Void();
59405 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_make_direct_map__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59406 PyObject *resultobj = 0;
59410 PyObject * obj0 = 0 ;
59412 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_make_direct_map",&obj0)) SWIG_fail;
59413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
59414 if (!SWIG_IsOK(res1)) {
59415 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_make_direct_map" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
59419 Py_BEGIN_ALLOW_THREADS
59421 (arg1)->make_direct_map();
59423 PyEval_RestoreThread(_save);
59424 PyErr_SetString(PyExc_RuntimeError, e.
what());
59427 Py_END_ALLOW_THREADS
59429 resultobj = SWIG_Py_Void();
59436 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_make_direct_map(PyObject *
self, PyObject *args) {
59438 PyObject *argv[3] = {
59443 if (!PyTuple_Check(args)) SWIG_fail;
59444 argc = args ? PyObject_Length(args) : 0;
59445 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
59446 argv[ii] = PyTuple_GET_ITEM(args,ii);
59451 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
59452 _v = SWIG_CheckState(res);
59454 return _wrap_IndexBinaryIVF_make_direct_map__SWIG_1(
self, args);
59460 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
59461 _v = SWIG_CheckState(res);
59464 int res = SWIG_AsVal_bool(argv[1], NULL);
59465 _v = SWIG_CheckState(res);
59468 return _wrap_IndexBinaryIVF_make_direct_map__SWIG_0(
self, args);
59474 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexBinaryIVF_make_direct_map'.\n"
59475 " Possible C/C++ prototypes are:\n"
59476 " faiss::IndexBinaryIVF::make_direct_map(bool)\n"
59477 " faiss::IndexBinaryIVF::make_direct_map()\n");
59482 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_imbalance_factor(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59483 PyObject *resultobj = 0;
59487 PyObject * obj0 = 0 ;
59490 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_imbalance_factor",&obj0)) SWIG_fail;
59491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
59492 if (!SWIG_IsOK(res1)) {
59493 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_imbalance_factor" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
59497 Py_BEGIN_ALLOW_THREADS
59501 PyEval_RestoreThread(_save);
59502 PyErr_SetString(PyExc_RuntimeError, e.
what());
59505 Py_END_ALLOW_THREADS
59507 resultobj = SWIG_From_double(static_cast< double >(result));
59514 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_print_stats(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59515 PyObject *resultobj = 0;
59519 PyObject * obj0 = 0 ;
59521 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryIVF_print_stats",&obj0)) SWIG_fail;
59522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
59523 if (!SWIG_IsOK(res1)) {
59524 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_print_stats" "', argument " "1"" of type '" "faiss::IndexBinaryIVF const *""'");
59528 Py_BEGIN_ALLOW_THREADS
59532 PyEval_RestoreThread(_save);
59533 PyErr_SetString(PyExc_RuntimeError, e.
what());
59536 Py_END_ALLOW_THREADS
59538 resultobj = SWIG_Py_Void();
59545 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_replace_invlists__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59546 PyObject *resultobj = 0;
59556 PyObject * obj0 = 0 ;
59557 PyObject * obj1 = 0 ;
59558 PyObject * obj2 = 0 ;
59560 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryIVF_replace_invlists",&obj0,&obj1,&obj2)) SWIG_fail;
59561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
59562 if (!SWIG_IsOK(res1)) {
59563 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_replace_invlists" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
59566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
59567 if (!SWIG_IsOK(res2)) {
59568 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_replace_invlists" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
59571 ecode3 = SWIG_AsVal_bool(obj2, &val3);
59572 if (!SWIG_IsOK(ecode3)) {
59573 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IndexBinaryIVF_replace_invlists" "', argument " "3"" of type '" "bool""'");
59575 arg3 =
static_cast< bool >(val3);
59577 Py_BEGIN_ALLOW_THREADS
59579 (arg1)->replace_invlists(arg2,arg3);
59581 PyEval_RestoreThread(_save);
59582 PyErr_SetString(PyExc_RuntimeError, e.
what());
59585 Py_END_ALLOW_THREADS
59587 resultobj = SWIG_Py_Void();
59594 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_replace_invlists__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59595 PyObject *resultobj = 0;
59602 PyObject * obj0 = 0 ;
59603 PyObject * obj1 = 0 ;
59605 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryIVF_replace_invlists",&obj0,&obj1)) SWIG_fail;
59606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryIVF, 0 | 0 );
59607 if (!SWIG_IsOK(res1)) {
59608 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryIVF_replace_invlists" "', argument " "1"" of type '" "faiss::IndexBinaryIVF *""'");
59611 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
59612 if (!SWIG_IsOK(res2)) {
59613 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryIVF_replace_invlists" "', argument " "2"" of type '" "faiss::InvertedLists *""'");
59617 Py_BEGIN_ALLOW_THREADS
59619 (arg1)->replace_invlists(arg2);
59621 PyEval_RestoreThread(_save);
59622 PyErr_SetString(PyExc_RuntimeError, e.
what());
59625 Py_END_ALLOW_THREADS
59627 resultobj = SWIG_Py_Void();
59634 SWIGINTERN PyObject *_wrap_IndexBinaryIVF_replace_invlists(PyObject *
self, PyObject *args) {
59636 PyObject *argv[4] = {
59641 if (!PyTuple_Check(args)) SWIG_fail;
59642 argc = args ? PyObject_Length(args) : 0;
59643 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
59644 argv[ii] = PyTuple_GET_ITEM(args,ii);
59649 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
59650 _v = SWIG_CheckState(res);
59653 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__InvertedLists, 0);
59654 _v = SWIG_CheckState(res);
59656 return _wrap_IndexBinaryIVF_replace_invlists__SWIG_1(
self, args);
59663 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinaryIVF, 0);
59664 _v = SWIG_CheckState(res);
59667 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__InvertedLists, 0);
59668 _v = SWIG_CheckState(res);
59671 int res = SWIG_AsVal_bool(argv[2], NULL);
59672 _v = SWIG_CheckState(res);
59675 return _wrap_IndexBinaryIVF_replace_invlists__SWIG_0(
self, args);
59682 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'IndexBinaryIVF_replace_invlists'.\n"
59683 " Possible C/C++ prototypes are:\n"
59684 " faiss::IndexBinaryIVF::replace_invlists(faiss::InvertedLists *,bool)\n"
59685 " faiss::IndexBinaryIVF::replace_invlists(faiss::InvertedLists *)\n");
59690 SWIGINTERN PyObject *IndexBinaryIVF_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59692 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
59693 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexBinaryIVF, SWIG_NewClientData(obj));
59694 return SWIG_Py_Void();
59697 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59698 PyObject *resultobj = 0;
59705 PyObject * obj0 = 0 ;
59706 PyObject * obj1 = 0 ;
59708 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryFromFloat_index_set",&obj0,&obj1)) SWIG_fail;
59709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
59710 if (!SWIG_IsOK(res1)) {
59711 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_index_set" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
59714 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
59715 if (!SWIG_IsOK(res2)) {
59716 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryFromFloat_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
59719 if (arg1) (arg1)->index = arg2;
59720 resultobj = SWIG_Py_Void();
59727 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59728 PyObject *resultobj = 0;
59732 PyObject * obj0 = 0 ;
59735 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryFromFloat_index_get",&obj0)) SWIG_fail;
59736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
59737 if (!SWIG_IsOK(res1)) {
59738 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_index_get" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
59742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
59749 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59750 PyObject *resultobj = 0;
59757 PyObject * obj0 = 0 ;
59758 PyObject * obj1 = 0 ;
59760 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryFromFloat_own_fields_set",&obj0,&obj1)) SWIG_fail;
59761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
59762 if (!SWIG_IsOK(res1)) {
59763 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_own_fields_set" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
59766 ecode2 = SWIG_AsVal_bool(obj1, &val2);
59767 if (!SWIG_IsOK(ecode2)) {
59768 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFromFloat_own_fields_set" "', argument " "2"" of type '" "bool""'");
59770 arg2 =
static_cast< bool >(val2);
59771 if (arg1) (arg1)->own_fields = arg2;
59772 resultobj = SWIG_Py_Void();
59779 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59780 PyObject *resultobj = 0;
59784 PyObject * obj0 = 0 ;
59787 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryFromFloat_own_fields_get",&obj0)) SWIG_fail;
59788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
59789 if (!SWIG_IsOK(res1)) {
59790 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_own_fields_get" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
59793 result = (bool) ((arg1)->own_fields);
59794 resultobj = SWIG_From_bool(static_cast< bool >(result));
59801 SWIGINTERN PyObject *_wrap_new_IndexBinaryFromFloat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59802 PyObject *resultobj = 0;
59805 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexBinaryFromFloat")) SWIG_fail;
59807 Py_BEGIN_ALLOW_THREADS
59811 PyEval_RestoreThread(_save);
59812 PyErr_SetString(PyExc_RuntimeError, e.
what());
59815 Py_END_ALLOW_THREADS
59817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryFromFloat, SWIG_POINTER_NEW | 0 );
59824 SWIGINTERN PyObject *_wrap_new_IndexBinaryFromFloat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59825 PyObject *resultobj = 0;
59829 PyObject * obj0 = 0 ;
59832 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexBinaryFromFloat",&obj0)) SWIG_fail;
59833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
59834 if (!SWIG_IsOK(res1)) {
59835 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexBinaryFromFloat" "', argument " "1"" of type '" "faiss::Index *""'");
59839 Py_BEGIN_ALLOW_THREADS
59843 PyEval_RestoreThread(_save);
59844 PyErr_SetString(PyExc_RuntimeError, e.
what());
59847 Py_END_ALLOW_THREADS
59849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryFromFloat, SWIG_POINTER_NEW | 0 );
59856 SWIGINTERN PyObject *_wrap_new_IndexBinaryFromFloat(PyObject *
self, PyObject *args) {
59858 PyObject *argv[2] = {
59863 if (!PyTuple_Check(args)) SWIG_fail;
59864 argc = args ? PyObject_Length(args) : 0;
59865 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
59866 argv[ii] = PyTuple_GET_ITEM(args,ii);
59869 return _wrap_new_IndexBinaryFromFloat__SWIG_0(
self, args);
59874 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
59875 _v = SWIG_CheckState(res);
59877 return _wrap_new_IndexBinaryFromFloat__SWIG_1(
self, args);
59882 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexBinaryFromFloat'.\n"
59883 " Possible C/C++ prototypes are:\n"
59884 " faiss::IndexBinaryFromFloat::IndexBinaryFromFloat()\n"
59885 " faiss::IndexBinaryFromFloat::IndexBinaryFromFloat(faiss::Index *)\n");
59890 SWIGINTERN PyObject *_wrap_delete_IndexBinaryFromFloat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59891 PyObject *resultobj = 0;
59895 PyObject * obj0 = 0 ;
59897 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexBinaryFromFloat",&obj0)) SWIG_fail;
59898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, SWIG_POINTER_DISOWN | 0 );
59899 if (!SWIG_IsOK(res1)) {
59900 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexBinaryFromFloat" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
59904 Py_BEGIN_ALLOW_THREADS
59908 PyEval_RestoreThread(_save);
59909 PyErr_SetString(PyExc_RuntimeError, e.
what());
59912 Py_END_ALLOW_THREADS
59914 resultobj = SWIG_Py_Void();
59921 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59922 PyObject *resultobj = 0;
59925 uint8_t *arg3 = (uint8_t *) 0 ;
59932 PyObject * obj0 = 0 ;
59933 PyObject * obj1 = 0 ;
59934 PyObject * obj2 = 0 ;
59936 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryFromFloat_add",&obj0,&obj1,&obj2)) SWIG_fail;
59937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
59938 if (!SWIG_IsOK(res1)) {
59939 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_add" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
59942 ecode2 = SWIG_AsVal_long(obj1, &val2);
59943 if (!SWIG_IsOK(ecode2)) {
59944 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFromFloat_add" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
59947 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
59948 if (!SWIG_IsOK(res3)) {
59949 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryFromFloat_add" "', argument " "3"" of type '" "uint8_t const *""'");
59951 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
59953 Py_BEGIN_ALLOW_THREADS
59955 (arg1)->add(arg2,(uint8_t
const *)arg3);
59957 PyEval_RestoreThread(_save);
59958 PyErr_SetString(PyExc_RuntimeError, e.
what());
59961 Py_END_ALLOW_THREADS
59963 resultobj = SWIG_Py_Void();
59970 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
59971 PyObject *resultobj = 0;
59975 PyObject * obj0 = 0 ;
59977 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryFromFloat_reset",&obj0)) SWIG_fail;
59978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
59979 if (!SWIG_IsOK(res1)) {
59980 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_reset" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
59984 Py_BEGIN_ALLOW_THREADS
59988 PyEval_RestoreThread(_save);
59989 PyErr_SetString(PyExc_RuntimeError, e.
what());
59992 Py_END_ALLOW_THREADS
59994 resultobj = SWIG_Py_Void();
60001 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60002 PyObject *resultobj = 0;
60005 uint8_t *arg3 = (uint8_t *) 0 ;
60007 int32_t *arg5 = (int32_t *) 0 ;
60021 PyObject * obj0 = 0 ;
60022 PyObject * obj1 = 0 ;
60023 PyObject * obj2 = 0 ;
60024 PyObject * obj3 = 0 ;
60025 PyObject * obj4 = 0 ;
60026 PyObject * obj5 = 0 ;
60028 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexBinaryFromFloat_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
60029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
60030 if (!SWIG_IsOK(res1)) {
60031 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_search" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat const *""'");
60034 ecode2 = SWIG_AsVal_long(obj1, &val2);
60035 if (!SWIG_IsOK(ecode2)) {
60036 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFromFloat_search" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
60039 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
60040 if (!SWIG_IsOK(res3)) {
60041 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryFromFloat_search" "', argument " "3"" of type '" "uint8_t const *""'");
60043 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
60044 ecode4 = SWIG_AsVal_long(obj3, &val4);
60045 if (!SWIG_IsOK(ecode4)) {
60046 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryFromFloat_search" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
60049 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
60050 if (!SWIG_IsOK(res5)) {
60051 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryFromFloat_search" "', argument " "5"" of type '" "int32_t *""'");
60053 arg5 =
reinterpret_cast< int32_t *
>(argp5);
60054 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
60055 if (!SWIG_IsOK(res6)) {
60056 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinaryFromFloat_search" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
60060 Py_BEGIN_ALLOW_THREADS
60064 PyEval_RestoreThread(_save);
60065 PyErr_SetString(PyExc_RuntimeError, e.
what());
60068 Py_END_ALLOW_THREADS
60070 resultobj = SWIG_Py_Void();
60077 SWIGINTERN PyObject *_wrap_IndexBinaryFromFloat_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60078 PyObject *resultobj = 0;
60081 uint8_t *arg3 = (uint8_t *) 0 ;
60088 PyObject * obj0 = 0 ;
60089 PyObject * obj1 = 0 ;
60090 PyObject * obj2 = 0 ;
60092 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryFromFloat_train",&obj0,&obj1,&obj2)) SWIG_fail;
60093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryFromFloat, 0 | 0 );
60094 if (!SWIG_IsOK(res1)) {
60095 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryFromFloat_train" "', argument " "1"" of type '" "faiss::IndexBinaryFromFloat *""'");
60098 ecode2 = SWIG_AsVal_long(obj1, &val2);
60099 if (!SWIG_IsOK(ecode2)) {
60100 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryFromFloat_train" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
60103 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
60104 if (!SWIG_IsOK(res3)) {
60105 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryFromFloat_train" "', argument " "3"" of type '" "uint8_t const *""'");
60107 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
60109 Py_BEGIN_ALLOW_THREADS
60111 (arg1)->train(arg2,(uint8_t
const *)arg3);
60113 PyEval_RestoreThread(_save);
60114 PyErr_SetString(PyExc_RuntimeError, e.
what());
60117 Py_END_ALLOW_THREADS
60119 resultobj = SWIG_Py_Void();
60126 SWIGINTERN PyObject *IndexBinaryFromFloat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60128 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
60129 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexBinaryFromFloat, SWIG_NewClientData(obj));
60130 return SWIG_Py_Void();
60133 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_hnsw_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60134 PyObject *resultobj = 0;
60141 PyObject * obj0 = 0 ;
60142 PyObject * obj1 = 0 ;
60144 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryHNSW_hnsw_set",&obj0,&obj1)) SWIG_fail;
60145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
60146 if (!SWIG_IsOK(res1)) {
60147 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_hnsw_set" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
60150 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__HNSW, 0 | 0 );
60151 if (!SWIG_IsOK(res2)) {
60152 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryHNSW_hnsw_set" "', argument " "2"" of type '" "faiss::HNSW *""'");
60155 if (arg1) (arg1)->hnsw = *arg2;
60156 resultobj = SWIG_Py_Void();
60163 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_hnsw_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60164 PyObject *resultobj = 0;
60168 PyObject * obj0 = 0 ;
60171 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryHNSW_hnsw_get",&obj0)) SWIG_fail;
60172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
60173 if (!SWIG_IsOK(res1)) {
60174 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_hnsw_get" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
60178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW, 0 | 0 );
60185 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60186 PyObject *resultobj = 0;
60193 PyObject * obj0 = 0 ;
60194 PyObject * obj1 = 0 ;
60196 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryHNSW_own_fields_set",&obj0,&obj1)) SWIG_fail;
60197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
60198 if (!SWIG_IsOK(res1)) {
60199 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_own_fields_set" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
60202 ecode2 = SWIG_AsVal_bool(obj1, &val2);
60203 if (!SWIG_IsOK(ecode2)) {
60204 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryHNSW_own_fields_set" "', argument " "2"" of type '" "bool""'");
60206 arg2 =
static_cast< bool >(val2);
60207 if (arg1) (arg1)->own_fields = arg2;
60208 resultobj = SWIG_Py_Void();
60215 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60216 PyObject *resultobj = 0;
60220 PyObject * obj0 = 0 ;
60223 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryHNSW_own_fields_get",&obj0)) SWIG_fail;
60224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
60225 if (!SWIG_IsOK(res1)) {
60226 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_own_fields_get" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
60229 result = (bool) ((arg1)->own_fields);
60230 resultobj = SWIG_From_bool(static_cast< bool >(result));
60237 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_storage_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60238 PyObject *resultobj = 0;
60245 PyObject * obj0 = 0 ;
60246 PyObject * obj1 = 0 ;
60248 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexBinaryHNSW_storage_set",&obj0,&obj1)) SWIG_fail;
60249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
60250 if (!SWIG_IsOK(res1)) {
60251 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_storage_set" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
60254 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexBinary, SWIG_POINTER_DISOWN | 0 );
60255 if (!SWIG_IsOK(res2)) {
60256 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexBinaryHNSW_storage_set" "', argument " "2"" of type '" "faiss::IndexBinary *""'");
60259 if (arg1) (arg1)->storage = arg2;
60260 resultobj = SWIG_Py_Void();
60267 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_storage_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60268 PyObject *resultobj = 0;
60272 PyObject * obj0 = 0 ;
60275 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryHNSW_storage_get",&obj0)) SWIG_fail;
60276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
60277 if (!SWIG_IsOK(res1)) {
60278 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_storage_get" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
60282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
60289 SWIGINTERN PyObject *_wrap_new_IndexBinaryHNSW__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60290 PyObject *resultobj = 0;
60293 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexBinaryHNSW")) SWIG_fail;
60295 Py_BEGIN_ALLOW_THREADS
60299 PyEval_RestoreThread(_save);
60300 PyErr_SetString(PyExc_RuntimeError, e.
what());
60303 Py_END_ALLOW_THREADS
60305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryHNSW, SWIG_POINTER_NEW | 0 );
60312 SWIGINTERN PyObject *_wrap_new_IndexBinaryHNSW__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60313 PyObject *resultobj = 0;
60320 PyObject * obj0 = 0 ;
60321 PyObject * obj1 = 0 ;
60324 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexBinaryHNSW",&obj0,&obj1)) SWIG_fail;
60325 ecode1 = SWIG_AsVal_int(obj0, &val1);
60326 if (!SWIG_IsOK(ecode1)) {
60327 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexBinaryHNSW" "', argument " "1"" of type '" "int""'");
60329 arg1 =
static_cast< int >(val1);
60330 ecode2 = SWIG_AsVal_int(obj1, &val2);
60331 if (!SWIG_IsOK(ecode2)) {
60332 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexBinaryHNSW" "', argument " "2"" of type '" "int""'");
60334 arg2 =
static_cast< int >(val2);
60336 Py_BEGIN_ALLOW_THREADS
60340 PyEval_RestoreThread(_save);
60341 PyErr_SetString(PyExc_RuntimeError, e.
what());
60344 Py_END_ALLOW_THREADS
60346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryHNSW, SWIG_POINTER_NEW | 0 );
60353 SWIGINTERN PyObject *_wrap_new_IndexBinaryHNSW__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60354 PyObject *resultobj = 0;
60358 PyObject * obj0 = 0 ;
60361 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexBinaryHNSW",&obj0)) SWIG_fail;
60362 ecode1 = SWIG_AsVal_int(obj0, &val1);
60363 if (!SWIG_IsOK(ecode1)) {
60364 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexBinaryHNSW" "', argument " "1"" of type '" "int""'");
60366 arg1 =
static_cast< int >(val1);
60368 Py_BEGIN_ALLOW_THREADS
60372 PyEval_RestoreThread(_save);
60373 PyErr_SetString(PyExc_RuntimeError, e.
what());
60376 Py_END_ALLOW_THREADS
60378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryHNSW, SWIG_POINTER_NEW | 0 );
60385 SWIGINTERN PyObject *_wrap_new_IndexBinaryHNSW__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60386 PyObject *resultobj = 0;
60393 PyObject * obj0 = 0 ;
60394 PyObject * obj1 = 0 ;
60397 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexBinaryHNSW",&obj0,&obj1)) SWIG_fail;
60398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
60399 if (!SWIG_IsOK(res1)) {
60400 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexBinaryHNSW" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
60403 ecode2 = SWIG_AsVal_int(obj1, &val2);
60404 if (!SWIG_IsOK(ecode2)) {
60405 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexBinaryHNSW" "', argument " "2"" of type '" "int""'");
60407 arg2 =
static_cast< int >(val2);
60409 Py_BEGIN_ALLOW_THREADS
60413 PyEval_RestoreThread(_save);
60414 PyErr_SetString(PyExc_RuntimeError, e.
what());
60417 Py_END_ALLOW_THREADS
60419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryHNSW, SWIG_POINTER_NEW | 0 );
60426 SWIGINTERN PyObject *_wrap_new_IndexBinaryHNSW__SWIG_4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60427 PyObject *resultobj = 0;
60431 PyObject * obj0 = 0 ;
60434 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexBinaryHNSW",&obj0)) SWIG_fail;
60435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
60436 if (!SWIG_IsOK(res1)) {
60437 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexBinaryHNSW" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
60441 Py_BEGIN_ALLOW_THREADS
60445 PyEval_RestoreThread(_save);
60446 PyErr_SetString(PyExc_RuntimeError, e.
what());
60449 Py_END_ALLOW_THREADS
60451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexBinaryHNSW, SWIG_POINTER_NEW | 0 );
60458 SWIGINTERN PyObject *_wrap_new_IndexBinaryHNSW(PyObject *
self, PyObject *args) {
60460 PyObject *argv[3] = {
60465 if (!PyTuple_Check(args)) SWIG_fail;
60466 argc = args ? PyObject_Length(args) : 0;
60467 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
60468 argv[ii] = PyTuple_GET_ITEM(args,ii);
60471 return _wrap_new_IndexBinaryHNSW__SWIG_0(
self, args);
60476 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
60477 _v = SWIG_CheckState(res);
60479 return _wrap_new_IndexBinaryHNSW__SWIG_4(
self, args);
60485 int res = SWIG_AsVal_int(argv[0], NULL);
60486 _v = SWIG_CheckState(res);
60489 return _wrap_new_IndexBinaryHNSW__SWIG_2(
self, args);
60495 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
60496 _v = SWIG_CheckState(res);
60499 int res = SWIG_AsVal_int(argv[1], NULL);
60500 _v = SWIG_CheckState(res);
60503 return _wrap_new_IndexBinaryHNSW__SWIG_3(
self, args);
60510 int res = SWIG_AsVal_int(argv[0], NULL);
60511 _v = SWIG_CheckState(res);
60515 int res = SWIG_AsVal_int(argv[1], NULL);
60516 _v = SWIG_CheckState(res);
60519 return _wrap_new_IndexBinaryHNSW__SWIG_1(
self, args);
60525 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexBinaryHNSW'.\n"
60526 " Possible C/C++ prototypes are:\n"
60527 " faiss::IndexBinaryHNSW::IndexBinaryHNSW()\n"
60528 " faiss::IndexBinaryHNSW::IndexBinaryHNSW(int,int)\n"
60529 " faiss::IndexBinaryHNSW::IndexBinaryHNSW(int)\n"
60530 " faiss::IndexBinaryHNSW::IndexBinaryHNSW(faiss::IndexBinary *,int)\n"
60531 " faiss::IndexBinaryHNSW::IndexBinaryHNSW(faiss::IndexBinary *)\n");
60536 SWIGINTERN PyObject *_wrap_delete_IndexBinaryHNSW(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60537 PyObject *resultobj = 0;
60541 PyObject * obj0 = 0 ;
60543 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexBinaryHNSW",&obj0)) SWIG_fail;
60544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, SWIG_POINTER_DISOWN | 0 );
60545 if (!SWIG_IsOK(res1)) {
60546 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexBinaryHNSW" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
60550 Py_BEGIN_ALLOW_THREADS
60554 PyEval_RestoreThread(_save);
60555 PyErr_SetString(PyExc_RuntimeError, e.
what());
60558 Py_END_ALLOW_THREADS
60560 resultobj = SWIG_Py_Void();
60567 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_get_distance_computer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60568 PyObject *resultobj = 0;
60572 PyObject * obj0 = 0 ;
60575 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryHNSW_get_distance_computer",&obj0)) SWIG_fail;
60576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
60577 if (!SWIG_IsOK(res1)) {
60578 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_get_distance_computer" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW const *""'");
60582 Py_BEGIN_ALLOW_THREADS
60586 PyEval_RestoreThread(_save);
60587 PyErr_SetString(PyExc_RuntimeError, e.
what());
60590 Py_END_ALLOW_THREADS
60592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HNSW__DistanceComputer, 0 | 0 );
60599 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60600 PyObject *resultobj = 0;
60603 uint8_t *arg3 = (uint8_t *) 0 ;
60610 PyObject * obj0 = 0 ;
60611 PyObject * obj1 = 0 ;
60612 PyObject * obj2 = 0 ;
60614 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryHNSW_add",&obj0,&obj1,&obj2)) SWIG_fail;
60615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
60616 if (!SWIG_IsOK(res1)) {
60617 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_add" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
60620 ecode2 = SWIG_AsVal_long(obj1, &val2);
60621 if (!SWIG_IsOK(ecode2)) {
60622 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryHNSW_add" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
60625 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
60626 if (!SWIG_IsOK(res3)) {
60627 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryHNSW_add" "', argument " "3"" of type '" "uint8_t const *""'");
60629 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
60631 Py_BEGIN_ALLOW_THREADS
60633 (arg1)->add(arg2,(uint8_t
const *)arg3);
60635 PyEval_RestoreThread(_save);
60636 PyErr_SetString(PyExc_RuntimeError, e.
what());
60639 Py_END_ALLOW_THREADS
60641 resultobj = SWIG_Py_Void();
60648 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60649 PyObject *resultobj = 0;
60652 uint8_t *arg3 = (uint8_t *) 0 ;
60659 PyObject * obj0 = 0 ;
60660 PyObject * obj1 = 0 ;
60661 PyObject * obj2 = 0 ;
60663 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryHNSW_train",&obj0,&obj1,&obj2)) SWIG_fail;
60664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
60665 if (!SWIG_IsOK(res1)) {
60666 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_train" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
60669 ecode2 = SWIG_AsVal_long(obj1, &val2);
60670 if (!SWIG_IsOK(ecode2)) {
60671 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryHNSW_train" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
60674 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
60675 if (!SWIG_IsOK(res3)) {
60676 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryHNSW_train" "', argument " "3"" of type '" "uint8_t const *""'");
60678 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
60680 Py_BEGIN_ALLOW_THREADS
60682 (arg1)->train(arg2,(uint8_t
const *)arg3);
60684 PyEval_RestoreThread(_save);
60685 PyErr_SetString(PyExc_RuntimeError, e.
what());
60688 Py_END_ALLOW_THREADS
60690 resultobj = SWIG_Py_Void();
60697 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60698 PyObject *resultobj = 0;
60701 uint8_t *arg3 = (uint8_t *) 0 ;
60703 int32_t *arg5 = (int32_t *) 0 ;
60717 PyObject * obj0 = 0 ;
60718 PyObject * obj1 = 0 ;
60719 PyObject * obj2 = 0 ;
60720 PyObject * obj3 = 0 ;
60721 PyObject * obj4 = 0 ;
60722 PyObject * obj5 = 0 ;
60724 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexBinaryHNSW_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
60725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
60726 if (!SWIG_IsOK(res1)) {
60727 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_search" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW const *""'");
60730 ecode2 = SWIG_AsVal_long(obj1, &val2);
60731 if (!SWIG_IsOK(ecode2)) {
60732 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryHNSW_search" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
60735 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
60736 if (!SWIG_IsOK(res3)) {
60737 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryHNSW_search" "', argument " "3"" of type '" "uint8_t const *""'");
60739 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
60740 ecode4 = SWIG_AsVal_long(obj3, &val4);
60741 if (!SWIG_IsOK(ecode4)) {
60742 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexBinaryHNSW_search" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
60745 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
60746 if (!SWIG_IsOK(res5)) {
60747 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexBinaryHNSW_search" "', argument " "5"" of type '" "int32_t *""'");
60749 arg5 =
reinterpret_cast< int32_t *
>(argp5);
60750 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
60751 if (!SWIG_IsOK(res6)) {
60752 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexBinaryHNSW_search" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
60756 Py_BEGIN_ALLOW_THREADS
60760 PyEval_RestoreThread(_save);
60761 PyErr_SetString(PyExc_RuntimeError, e.
what());
60764 Py_END_ALLOW_THREADS
60766 resultobj = SWIG_Py_Void();
60773 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60774 PyObject *resultobj = 0;
60777 uint8_t *arg3 = (uint8_t *) 0 ;
60784 PyObject * obj0 = 0 ;
60785 PyObject * obj1 = 0 ;
60786 PyObject * obj2 = 0 ;
60788 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexBinaryHNSW_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
60789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
60790 if (!SWIG_IsOK(res1)) {
60791 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_reconstruct" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW const *""'");
60794 ecode2 = SWIG_AsVal_long(obj1, &val2);
60795 if (!SWIG_IsOK(ecode2)) {
60796 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexBinaryHNSW_reconstruct" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
60799 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
60800 if (!SWIG_IsOK(res3)) {
60801 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexBinaryHNSW_reconstruct" "', argument " "3"" of type '" "uint8_t *""'");
60803 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
60805 Py_BEGIN_ALLOW_THREADS
60809 PyEval_RestoreThread(_save);
60810 PyErr_SetString(PyExc_RuntimeError, e.
what());
60813 Py_END_ALLOW_THREADS
60815 resultobj = SWIG_Py_Void();
60822 SWIGINTERN PyObject *_wrap_IndexBinaryHNSW_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60823 PyObject *resultobj = 0;
60827 PyObject * obj0 = 0 ;
60829 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexBinaryHNSW_reset",&obj0)) SWIG_fail;
60830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinaryHNSW, 0 | 0 );
60831 if (!SWIG_IsOK(res1)) {
60832 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexBinaryHNSW_reset" "', argument " "1"" of type '" "faiss::IndexBinaryHNSW *""'");
60836 Py_BEGIN_ALLOW_THREADS
60840 PyEval_RestoreThread(_save);
60841 PyErr_SetString(PyExc_RuntimeError, e.
what());
60844 Py_END_ALLOW_THREADS
60846 resultobj = SWIG_Py_Void();
60853 SWIGINTERN PyObject *IndexBinaryHNSW_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60855 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
60856 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexBinaryHNSW, SWIG_NewClientData(obj));
60857 return SWIG_Py_Void();
60860 SWIGINTERN PyObject *_wrap_IndexIDMap_index_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60861 PyObject *resultobj = 0;
60868 PyObject * obj0 = 0 ;
60869 PyObject * obj1 = 0 ;
60871 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIDMap_index_set",&obj0,&obj1)) SWIG_fail;
60872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
60873 if (!SWIG_IsOK(res1)) {
60874 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_index_set" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
60877 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, SWIG_POINTER_DISOWN | 0 );
60878 if (!SWIG_IsOK(res2)) {
60879 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIDMap_index_set" "', argument " "2"" of type '" "faiss::Index *""'");
60882 if (arg1) (arg1)->index = arg2;
60883 resultobj = SWIG_Py_Void();
60890 SWIGINTERN PyObject *_wrap_IndexIDMap_index_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60891 PyObject *resultobj = 0;
60895 PyObject * obj0 = 0 ;
60898 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIDMap_index_get",&obj0)) SWIG_fail;
60899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
60900 if (!SWIG_IsOK(res1)) {
60901 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_index_get" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
60905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
60912 SWIGINTERN PyObject *_wrap_IndexIDMap_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60913 PyObject *resultobj = 0;
60920 PyObject * obj0 = 0 ;
60921 PyObject * obj1 = 0 ;
60923 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIDMap_own_fields_set",&obj0,&obj1)) SWIG_fail;
60924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
60925 if (!SWIG_IsOK(res1)) {
60926 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_own_fields_set" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
60929 ecode2 = SWIG_AsVal_bool(obj1, &val2);
60930 if (!SWIG_IsOK(ecode2)) {
60931 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap_own_fields_set" "', argument " "2"" of type '" "bool""'");
60933 arg2 =
static_cast< bool >(val2);
60934 if (arg1) (arg1)->own_fields = arg2;
60935 resultobj = SWIG_Py_Void();
60942 SWIGINTERN PyObject *_wrap_IndexIDMap_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60943 PyObject *resultobj = 0;
60947 PyObject * obj0 = 0 ;
60950 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIDMap_own_fields_get",&obj0)) SWIG_fail;
60951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
60952 if (!SWIG_IsOK(res1)) {
60953 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_own_fields_get" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
60956 result = (bool) ((arg1)->own_fields);
60957 resultobj = SWIG_From_bool(static_cast< bool >(result));
60964 SWIGINTERN PyObject *_wrap_IndexIDMap_id_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60965 PyObject *resultobj = 0;
60967 std::vector< long > *arg2 = (std::vector< long > *) 0 ;
60972 PyObject * obj0 = 0 ;
60973 PyObject * obj1 = 0 ;
60975 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIDMap_id_map_set",&obj0,&obj1)) SWIG_fail;
60976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
60977 if (!SWIG_IsOK(res1)) {
60978 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_id_map_set" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
60981 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
60982 if (!SWIG_IsOK(res2)) {
60983 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIDMap_id_map_set" "', argument " "2"" of type '" "std::vector< long > *""'");
60985 arg2 =
reinterpret_cast< std::vector< long > *
>(argp2);
60986 if (arg1) (arg1)->id_map = *arg2;
60987 resultobj = SWIG_Py_Void();
60994 SWIGINTERN PyObject *_wrap_IndexIDMap_id_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
60995 PyObject *resultobj = 0;
60999 PyObject * obj0 = 0 ;
61000 std::vector< long > *result = 0 ;
61002 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIDMap_id_map_get",&obj0)) SWIG_fail;
61003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
61004 if (!SWIG_IsOK(res1)) {
61005 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_id_map_get" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
61008 result = (std::vector< long > *)& ((arg1)->id_map);
61009 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
61016 SWIGINTERN PyObject *_wrap_new_IndexIDMap__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61017 PyObject *resultobj = 0;
61021 PyObject * obj0 = 0 ;
61024 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexIDMap",&obj0)) SWIG_fail;
61025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
61026 if (!SWIG_IsOK(res1)) {
61027 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIDMap" "', argument " "1"" of type '" "faiss::Index *""'");
61031 Py_BEGIN_ALLOW_THREADS
61035 PyEval_RestoreThread(_save);
61036 PyErr_SetString(PyExc_RuntimeError, e.
what());
61039 Py_END_ALLOW_THREADS
61041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIDMap, SWIG_POINTER_NEW | 0 );
61048 SWIGINTERN PyObject *_wrap_IndexIDMap_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61049 PyObject *resultobj = 0;
61052 float *arg3 = (
float *) 0 ;
61053 long *arg4 = (
long *) 0 ;
61062 PyObject * obj0 = 0 ;
61063 PyObject * obj1 = 0 ;
61064 PyObject * obj2 = 0 ;
61065 PyObject * obj3 = 0 ;
61067 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIDMap_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
61068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
61069 if (!SWIG_IsOK(res1)) {
61070 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
61073 ecode2 = SWIG_AsVal_long(obj1, &val2);
61074 if (!SWIG_IsOK(ecode2)) {
61075 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61078 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
61079 if (!SWIG_IsOK(res3)) {
61080 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIDMap_add_with_ids" "', argument " "3"" of type '" "float const *""'");
61082 arg3 =
reinterpret_cast< float *
>(argp3);
61083 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
61084 if (!SWIG_IsOK(res4)) {
61085 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIDMap_add_with_ids" "', argument " "4"" of type '" "long const *""'");
61087 arg4 =
reinterpret_cast< long *
>(argp4);
61089 Py_BEGIN_ALLOW_THREADS
61091 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
61093 PyEval_RestoreThread(_save);
61094 PyErr_SetString(PyExc_RuntimeError, e.
what());
61097 Py_END_ALLOW_THREADS
61099 resultobj = SWIG_Py_Void();
61106 SWIGINTERN PyObject *_wrap_IndexIDMap_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61107 PyObject *resultobj = 0;
61110 float *arg3 = (
float *) 0 ;
61117 PyObject * obj0 = 0 ;
61118 PyObject * obj1 = 0 ;
61119 PyObject * obj2 = 0 ;
61121 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIDMap_add",&obj0,&obj1,&obj2)) SWIG_fail;
61122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
61123 if (!SWIG_IsOK(res1)) {
61124 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_add" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
61127 ecode2 = SWIG_AsVal_long(obj1, &val2);
61128 if (!SWIG_IsOK(ecode2)) {
61129 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61132 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
61133 if (!SWIG_IsOK(res3)) {
61134 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIDMap_add" "', argument " "3"" of type '" "float const *""'");
61136 arg3 =
reinterpret_cast< float *
>(argp3);
61138 Py_BEGIN_ALLOW_THREADS
61140 (arg1)->add(arg2,(
float const *)arg3);
61142 PyEval_RestoreThread(_save);
61143 PyErr_SetString(PyExc_RuntimeError, e.
what());
61146 Py_END_ALLOW_THREADS
61148 resultobj = SWIG_Py_Void();
61155 SWIGINTERN PyObject *_wrap_IndexIDMap_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61156 PyObject *resultobj = 0;
61159 float *arg3 = (
float *) 0 ;
61161 float *arg5 = (
float *) 0 ;
61175 PyObject * obj0 = 0 ;
61176 PyObject * obj1 = 0 ;
61177 PyObject * obj2 = 0 ;
61178 PyObject * obj3 = 0 ;
61179 PyObject * obj4 = 0 ;
61180 PyObject * obj5 = 0 ;
61182 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexIDMap_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
61183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
61184 if (!SWIG_IsOK(res1)) {
61185 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_search" "', argument " "1"" of type '" "faiss::IndexIDMap const *""'");
61188 ecode2 = SWIG_AsVal_long(obj1, &val2);
61189 if (!SWIG_IsOK(ecode2)) {
61190 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61193 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
61194 if (!SWIG_IsOK(res3)) {
61195 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIDMap_search" "', argument " "3"" of type '" "float const *""'");
61197 arg3 =
reinterpret_cast< float *
>(argp3);
61198 ecode4 = SWIG_AsVal_long(obj3, &val4);
61199 if (!SWIG_IsOK(ecode4)) {
61200 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIDMap_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
61203 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
61204 if (!SWIG_IsOK(res5)) {
61205 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIDMap_search" "', argument " "5"" of type '" "float *""'");
61207 arg5 =
reinterpret_cast< float *
>(argp5);
61208 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
61209 if (!SWIG_IsOK(res6)) {
61210 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexIDMap_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
61214 Py_BEGIN_ALLOW_THREADS
61216 ((
faiss::IndexIDMap const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
61218 PyEval_RestoreThread(_save);
61219 PyErr_SetString(PyExc_RuntimeError, e.
what());
61222 Py_END_ALLOW_THREADS
61224 resultobj = SWIG_Py_Void();
61231 SWIGINTERN PyObject *_wrap_IndexIDMap_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61232 PyObject *resultobj = 0;
61235 float *arg3 = (
float *) 0 ;
61242 PyObject * obj0 = 0 ;
61243 PyObject * obj1 = 0 ;
61244 PyObject * obj2 = 0 ;
61246 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIDMap_train",&obj0,&obj1,&obj2)) SWIG_fail;
61247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
61248 if (!SWIG_IsOK(res1)) {
61249 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_train" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
61252 ecode2 = SWIG_AsVal_long(obj1, &val2);
61253 if (!SWIG_IsOK(ecode2)) {
61254 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61257 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
61258 if (!SWIG_IsOK(res3)) {
61259 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIDMap_train" "', argument " "3"" of type '" "float const *""'");
61261 arg3 =
reinterpret_cast< float *
>(argp3);
61263 Py_BEGIN_ALLOW_THREADS
61265 (arg1)->train(arg2,(
float const *)arg3);
61267 PyEval_RestoreThread(_save);
61268 PyErr_SetString(PyExc_RuntimeError, e.
what());
61271 Py_END_ALLOW_THREADS
61273 resultobj = SWIG_Py_Void();
61280 SWIGINTERN PyObject *_wrap_IndexIDMap_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61281 PyObject *resultobj = 0;
61285 PyObject * obj0 = 0 ;
61287 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIDMap_reset",&obj0)) SWIG_fail;
61288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
61289 if (!SWIG_IsOK(res1)) {
61290 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_reset" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
61294 Py_BEGIN_ALLOW_THREADS
61298 PyEval_RestoreThread(_save);
61299 PyErr_SetString(PyExc_RuntimeError, e.
what());
61302 Py_END_ALLOW_THREADS
61304 resultobj = SWIG_Py_Void();
61311 SWIGINTERN PyObject *_wrap_IndexIDMap_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61312 PyObject *resultobj = 0;
61319 PyObject * obj0 = 0 ;
61320 PyObject * obj1 = 0 ;
61323 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIDMap_remove_ids",&obj0,&obj1)) SWIG_fail;
61324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
61325 if (!SWIG_IsOK(res1)) {
61326 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_remove_ids" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
61329 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
61330 if (!SWIG_IsOK(res2)) {
61331 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIDMap_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
61334 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIDMap_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
61338 Py_BEGIN_ALLOW_THREADS
61342 PyEval_RestoreThread(_save);
61343 PyErr_SetString(PyExc_RuntimeError, e.
what());
61346 Py_END_ALLOW_THREADS
61348 resultobj = SWIG_From_long(static_cast< long >(result));
61355 SWIGINTERN PyObject *_wrap_IndexIDMap_range_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61356 PyObject *resultobj = 0;
61359 float *arg3 = (
float *) 0 ;
61372 PyObject * obj0 = 0 ;
61373 PyObject * obj1 = 0 ;
61374 PyObject * obj2 = 0 ;
61375 PyObject * obj3 = 0 ;
61376 PyObject * obj4 = 0 ;
61378 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:IndexIDMap_range_search",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
61379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, 0 | 0 );
61380 if (!SWIG_IsOK(res1)) {
61381 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap_range_search" "', argument " "1"" of type '" "faiss::IndexIDMap const *""'");
61384 ecode2 = SWIG_AsVal_long(obj1, &val2);
61385 if (!SWIG_IsOK(ecode2)) {
61386 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap_range_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61389 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
61390 if (!SWIG_IsOK(res3)) {
61391 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIDMap_range_search" "', argument " "3"" of type '" "float const *""'");
61393 arg3 =
reinterpret_cast< float *
>(argp3);
61394 ecode4 = SWIG_AsVal_float(obj3, &val4);
61395 if (!SWIG_IsOK(ecode4)) {
61396 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexIDMap_range_search" "', argument " "4"" of type '" "float""'");
61398 arg4 =
static_cast< float >(val4);
61399 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
61400 if (!SWIG_IsOK(res5)) {
61401 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexIDMap_range_search" "', argument " "5"" of type '" "faiss::RangeSearchResult *""'");
61405 Py_BEGIN_ALLOW_THREADS
61407 ((
faiss::IndexIDMap const *)arg1)->range_search(arg2,(
float const *)arg3,arg4,arg5);
61409 PyEval_RestoreThread(_save);
61410 PyErr_SetString(PyExc_RuntimeError, e.
what());
61413 Py_END_ALLOW_THREADS
61415 resultobj = SWIG_Py_Void();
61422 SWIGINTERN PyObject *_wrap_delete_IndexIDMap(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61423 PyObject *resultobj = 0;
61427 PyObject * obj0 = 0 ;
61429 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIDMap",&obj0)) SWIG_fail;
61430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap, SWIG_POINTER_DISOWN | 0 );
61431 if (!SWIG_IsOK(res1)) {
61432 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIDMap" "', argument " "1"" of type '" "faiss::IndexIDMap *""'");
61436 Py_BEGIN_ALLOW_THREADS
61440 PyEval_RestoreThread(_save);
61441 PyErr_SetString(PyExc_RuntimeError, e.
what());
61444 Py_END_ALLOW_THREADS
61446 resultobj = SWIG_Py_Void();
61453 SWIGINTERN PyObject *_wrap_new_IndexIDMap__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61454 PyObject *resultobj = 0;
61457 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIDMap")) SWIG_fail;
61459 Py_BEGIN_ALLOW_THREADS
61463 PyEval_RestoreThread(_save);
61464 PyErr_SetString(PyExc_RuntimeError, e.
what());
61467 Py_END_ALLOW_THREADS
61469 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIDMap, SWIG_POINTER_NEW | 0 );
61476 SWIGINTERN PyObject *_wrap_new_IndexIDMap(PyObject *
self, PyObject *args) {
61478 PyObject *argv[2] = {
61483 if (!PyTuple_Check(args)) SWIG_fail;
61484 argc = args ? PyObject_Length(args) : 0;
61485 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
61486 argv[ii] = PyTuple_GET_ITEM(args,ii);
61489 return _wrap_new_IndexIDMap__SWIG_1(
self, args);
61494 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
61495 _v = SWIG_CheckState(res);
61497 return _wrap_new_IndexIDMap__SWIG_0(
self, args);
61502 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexIDMap'.\n"
61503 " Possible C/C++ prototypes are:\n"
61504 " faiss::IndexIDMap::IndexIDMap(faiss::Index *)\n"
61505 " faiss::IndexIDMap::IndexIDMap()\n");
61510 SWIGINTERN PyObject *IndexIDMap_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61512 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
61513 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIDMap, SWIG_NewClientData(obj));
61514 return SWIG_Py_Void();
61517 SWIGINTERN PyObject *_wrap_IndexIDMap2_rev_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61518 PyObject *resultobj = 0;
61520 std::unordered_map< faiss::Index::idx_t,faiss::Index::idx_t > arg2 ;
61525 PyObject * obj0 = 0 ;
61526 PyObject * obj1 = 0 ;
61528 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIDMap2_rev_map_set",&obj0,&obj1)) SWIG_fail;
61529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap2, 0 | 0 );
61530 if (!SWIG_IsOK(res1)) {
61531 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap2_rev_map_set" "', argument " "1"" of type '" "faiss::IndexIDMap2 *""'");
61535 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__unordered_mapT_long_long_t, 0 | 0);
61536 if (!SWIG_IsOK(res2)) {
61537 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 >""'");
61540 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 >""'");
61542 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);
61544 if (SWIG_IsNewObj(res2))
delete temp;
61547 if (arg1) (arg1)->rev_map = arg2;
61548 resultobj = SWIG_Py_Void();
61555 SWIGINTERN PyObject *_wrap_IndexIDMap2_rev_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61556 PyObject *resultobj = 0;
61560 PyObject * obj0 = 0 ;
61561 std::unordered_map< faiss::Index::idx_t,faiss::Index::idx_t > result;
61563 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIDMap2_rev_map_get",&obj0)) SWIG_fail;
61564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap2, 0 | 0 );
61565 if (!SWIG_IsOK(res1)) {
61566 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap2_rev_map_get" "', argument " "1"" of type '" "faiss::IndexIDMap2 *""'");
61569 result = ((arg1)->rev_map);
61570 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 );
61577 SWIGINTERN PyObject *_wrap_new_IndexIDMap2__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61578 PyObject *resultobj = 0;
61582 PyObject * obj0 = 0 ;
61585 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexIDMap2",&obj0)) SWIG_fail;
61586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
61587 if (!SWIG_IsOK(res1)) {
61588 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_IndexIDMap2" "', argument " "1"" of type '" "faiss::Index *""'");
61592 Py_BEGIN_ALLOW_THREADS
61596 PyEval_RestoreThread(_save);
61597 PyErr_SetString(PyExc_RuntimeError, e.
what());
61600 Py_END_ALLOW_THREADS
61602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIDMap2, SWIG_POINTER_NEW | 0 );
61609 SWIGINTERN PyObject *_wrap_IndexIDMap2_construct_rev_map(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61610 PyObject *resultobj = 0;
61614 PyObject * obj0 = 0 ;
61616 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexIDMap2_construct_rev_map",&obj0)) SWIG_fail;
61617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap2, 0 | 0 );
61618 if (!SWIG_IsOK(res1)) {
61619 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap2_construct_rev_map" "', argument " "1"" of type '" "faiss::IndexIDMap2 *""'");
61623 Py_BEGIN_ALLOW_THREADS
61625 (arg1)->construct_rev_map();
61627 PyEval_RestoreThread(_save);
61628 PyErr_SetString(PyExc_RuntimeError, e.
what());
61631 Py_END_ALLOW_THREADS
61633 resultobj = SWIG_Py_Void();
61640 SWIGINTERN PyObject *_wrap_IndexIDMap2_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61641 PyObject *resultobj = 0;
61644 float *arg3 = (
float *) 0 ;
61645 long *arg4 = (
long *) 0 ;
61654 PyObject * obj0 = 0 ;
61655 PyObject * obj1 = 0 ;
61656 PyObject * obj2 = 0 ;
61657 PyObject * obj3 = 0 ;
61659 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexIDMap2_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
61660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap2, 0 | 0 );
61661 if (!SWIG_IsOK(res1)) {
61662 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap2_add_with_ids" "', argument " "1"" of type '" "faiss::IndexIDMap2 *""'");
61665 ecode2 = SWIG_AsVal_long(obj1, &val2);
61666 if (!SWIG_IsOK(ecode2)) {
61667 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap2_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61670 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
61671 if (!SWIG_IsOK(res3)) {
61672 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIDMap2_add_with_ids" "', argument " "3"" of type '" "float const *""'");
61674 arg3 =
reinterpret_cast< float *
>(argp3);
61675 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
61676 if (!SWIG_IsOK(res4)) {
61677 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexIDMap2_add_with_ids" "', argument " "4"" of type '" "long const *""'");
61679 arg4 =
reinterpret_cast< long *
>(argp4);
61681 Py_BEGIN_ALLOW_THREADS
61683 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
61685 PyEval_RestoreThread(_save);
61686 PyErr_SetString(PyExc_RuntimeError, e.
what());
61689 Py_END_ALLOW_THREADS
61691 resultobj = SWIG_Py_Void();
61698 SWIGINTERN PyObject *_wrap_IndexIDMap2_remove_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61699 PyObject *resultobj = 0;
61706 PyObject * obj0 = 0 ;
61707 PyObject * obj1 = 0 ;
61710 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexIDMap2_remove_ids",&obj0,&obj1)) SWIG_fail;
61711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap2, 0 | 0 );
61712 if (!SWIG_IsOK(res1)) {
61713 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap2_remove_ids" "', argument " "1"" of type '" "faiss::IndexIDMap2 *""'");
61716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__IDSelector, 0 | 0);
61717 if (!SWIG_IsOK(res2)) {
61718 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexIDMap2_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
61721 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexIDMap2_remove_ids" "', argument " "2"" of type '" "faiss::IDSelector const &""'");
61725 Py_BEGIN_ALLOW_THREADS
61729 PyEval_RestoreThread(_save);
61730 PyErr_SetString(PyExc_RuntimeError, e.
what());
61733 Py_END_ALLOW_THREADS
61735 resultobj = SWIG_From_long(static_cast< long >(result));
61742 SWIGINTERN PyObject *_wrap_IndexIDMap2_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61743 PyObject *resultobj = 0;
61746 float *arg3 = (
float *) 0 ;
61753 PyObject * obj0 = 0 ;
61754 PyObject * obj1 = 0 ;
61755 PyObject * obj2 = 0 ;
61757 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexIDMap2_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
61758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap2, 0 | 0 );
61759 if (!SWIG_IsOK(res1)) {
61760 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexIDMap2_reconstruct" "', argument " "1"" of type '" "faiss::IndexIDMap2 const *""'");
61763 ecode2 = SWIG_AsVal_long(obj1, &val2);
61764 if (!SWIG_IsOK(ecode2)) {
61765 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexIDMap2_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
61768 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
61769 if (!SWIG_IsOK(res3)) {
61770 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexIDMap2_reconstruct" "', argument " "3"" of type '" "float *""'");
61772 arg3 =
reinterpret_cast< float *
>(argp3);
61774 Py_BEGIN_ALLOW_THREADS
61778 PyEval_RestoreThread(_save);
61779 PyErr_SetString(PyExc_RuntimeError, e.
what());
61782 Py_END_ALLOW_THREADS
61784 resultobj = SWIG_Py_Void();
61791 SWIGINTERN PyObject *_wrap_delete_IndexIDMap2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61792 PyObject *resultobj = 0;
61796 PyObject * obj0 = 0 ;
61798 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexIDMap2",&obj0)) SWIG_fail;
61799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexIDMap2, SWIG_POINTER_DISOWN | 0 );
61800 if (!SWIG_IsOK(res1)) {
61801 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexIDMap2" "', argument " "1"" of type '" "faiss::IndexIDMap2 *""'");
61805 Py_BEGIN_ALLOW_THREADS
61809 PyEval_RestoreThread(_save);
61810 PyErr_SetString(PyExc_RuntimeError, e.
what());
61813 Py_END_ALLOW_THREADS
61815 resultobj = SWIG_Py_Void();
61822 SWIGINTERN PyObject *_wrap_new_IndexIDMap2__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61823 PyObject *resultobj = 0;
61826 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexIDMap2")) SWIG_fail;
61828 Py_BEGIN_ALLOW_THREADS
61832 PyEval_RestoreThread(_save);
61833 PyErr_SetString(PyExc_RuntimeError, e.
what());
61836 Py_END_ALLOW_THREADS
61838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIDMap2, SWIG_POINTER_NEW | 0 );
61845 SWIGINTERN PyObject *_wrap_new_IndexIDMap2(PyObject *
self, PyObject *args) {
61847 PyObject *argv[2] = {
61852 if (!PyTuple_Check(args)) SWIG_fail;
61853 argc = args ? PyObject_Length(args) : 0;
61854 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
61855 argv[ii] = PyTuple_GET_ITEM(args,ii);
61858 return _wrap_new_IndexIDMap2__SWIG_1(
self, args);
61863 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
61864 _v = SWIG_CheckState(res);
61866 return _wrap_new_IndexIDMap2__SWIG_0(
self, args);
61871 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexIDMap2'.\n"
61872 " Possible C/C++ prototypes are:\n"
61873 " faiss::IndexIDMap2::IndexIDMap2(faiss::Index *)\n"
61874 " faiss::IndexIDMap2::IndexIDMap2()\n");
61879 SWIGINTERN PyObject *IndexIDMap2_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61881 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
61882 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexIDMap2, SWIG_NewClientData(obj));
61883 return SWIG_Py_Void();
61886 SWIGINTERN PyObject *_wrap_IndexShards_shard_indexes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61887 PyObject *resultobj = 0;
61889 std::vector< faiss::Index * > *arg2 = (std::vector< faiss::Index * > *) 0 ;
61894 PyObject * obj0 = 0 ;
61895 PyObject * obj1 = 0 ;
61897 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexShards_shard_indexes_set",&obj0,&obj1)) SWIG_fail;
61898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
61899 if (!SWIG_IsOK(res1)) {
61900 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_shard_indexes_set" "', argument " "1"" of type '" "faiss::IndexShards *""'");
61903 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__Index_p_t, 0 | 0 );
61904 if (!SWIG_IsOK(res2)) {
61905 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexShards_shard_indexes_set" "', argument " "2"" of type '" "std::vector< faiss::Index * > *""'");
61907 arg2 =
reinterpret_cast< std::vector< faiss::Index * > *
>(argp2);
61908 if (arg1) (arg1)->shard_indexes = *arg2;
61909 resultobj = SWIG_Py_Void();
61916 SWIGINTERN PyObject *_wrap_IndexShards_shard_indexes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61917 PyObject *resultobj = 0;
61921 PyObject * obj0 = 0 ;
61922 std::vector< faiss::Index * > *result = 0 ;
61924 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexShards_shard_indexes_get",&obj0)) SWIG_fail;
61925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
61926 if (!SWIG_IsOK(res1)) {
61927 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_shard_indexes_get" "', argument " "1"" of type '" "faiss::IndexShards *""'");
61930 result = (std::vector< faiss::Index * > *)& ((arg1)->shard_indexes);
61931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__Index_p_t, 0 | 0 );
61938 SWIGINTERN PyObject *_wrap_IndexShards_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61939 PyObject *resultobj = 0;
61946 PyObject * obj0 = 0 ;
61947 PyObject * obj1 = 0 ;
61949 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexShards_own_fields_set",&obj0,&obj1)) SWIG_fail;
61950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
61951 if (!SWIG_IsOK(res1)) {
61952 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_own_fields_set" "', argument " "1"" of type '" "faiss::IndexShards *""'");
61955 ecode2 = SWIG_AsVal_bool(obj1, &val2);
61956 if (!SWIG_IsOK(ecode2)) {
61957 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_own_fields_set" "', argument " "2"" of type '" "bool""'");
61959 arg2 =
static_cast< bool >(val2);
61960 if (arg1) (arg1)->own_fields = arg2;
61961 resultobj = SWIG_Py_Void();
61968 SWIGINTERN PyObject *_wrap_IndexShards_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61969 PyObject *resultobj = 0;
61973 PyObject * obj0 = 0 ;
61976 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexShards_own_fields_get",&obj0)) SWIG_fail;
61977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
61978 if (!SWIG_IsOK(res1)) {
61979 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_own_fields_get" "', argument " "1"" of type '" "faiss::IndexShards *""'");
61982 result = (bool) ((arg1)->own_fields);
61983 resultobj = SWIG_From_bool(static_cast< bool >(result));
61990 SWIGINTERN PyObject *_wrap_IndexShards_threaded_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
61991 PyObject *resultobj = 0;
61998 PyObject * obj0 = 0 ;
61999 PyObject * obj1 = 0 ;
62001 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexShards_threaded_set",&obj0,&obj1)) SWIG_fail;
62002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
62003 if (!SWIG_IsOK(res1)) {
62004 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_threaded_set" "', argument " "1"" of type '" "faiss::IndexShards *""'");
62007 ecode2 = SWIG_AsVal_bool(obj1, &val2);
62008 if (!SWIG_IsOK(ecode2)) {
62009 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_threaded_set" "', argument " "2"" of type '" "bool""'");
62011 arg2 =
static_cast< bool >(val2);
62012 if (arg1) (arg1)->threaded = arg2;
62013 resultobj = SWIG_Py_Void();
62020 SWIGINTERN PyObject *_wrap_IndexShards_threaded_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62021 PyObject *resultobj = 0;
62025 PyObject * obj0 = 0 ;
62028 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexShards_threaded_get",&obj0)) SWIG_fail;
62029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
62030 if (!SWIG_IsOK(res1)) {
62031 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_threaded_get" "', argument " "1"" of type '" "faiss::IndexShards *""'");
62034 result = (bool) ((arg1)->threaded);
62035 resultobj = SWIG_From_bool(static_cast< bool >(result));
62042 SWIGINTERN PyObject *_wrap_IndexShards_successive_ids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62043 PyObject *resultobj = 0;
62050 PyObject * obj0 = 0 ;
62051 PyObject * obj1 = 0 ;
62053 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexShards_successive_ids_set",&obj0,&obj1)) SWIG_fail;
62054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
62055 if (!SWIG_IsOK(res1)) {
62056 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_successive_ids_set" "', argument " "1"" of type '" "faiss::IndexShards *""'");
62059 ecode2 = SWIG_AsVal_bool(obj1, &val2);
62060 if (!SWIG_IsOK(ecode2)) {
62061 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_successive_ids_set" "', argument " "2"" of type '" "bool""'");
62063 arg2 =
static_cast< bool >(val2);
62064 if (arg1) (arg1)->successive_ids = arg2;
62065 resultobj = SWIG_Py_Void();
62072 SWIGINTERN PyObject *_wrap_IndexShards_successive_ids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62073 PyObject *resultobj = 0;
62077 PyObject * obj0 = 0 ;
62080 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexShards_successive_ids_get",&obj0)) SWIG_fail;
62081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
62082 if (!SWIG_IsOK(res1)) {
62083 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_successive_ids_get" "', argument " "1"" of type '" "faiss::IndexShards *""'");
62086 result = (bool) ((arg1)->successive_ids);
62087 resultobj = SWIG_From_bool(static_cast< bool >(result));
62094 SWIGINTERN PyObject *_wrap_new_IndexShards__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62095 PyObject *resultobj = 0;
62105 PyObject * obj0 = 0 ;
62106 PyObject * obj1 = 0 ;
62107 PyObject * obj2 = 0 ;
62110 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_IndexShards",&obj0,&obj1,&obj2)) SWIG_fail;
62111 ecode1 = SWIG_AsVal_long(obj0, &val1);
62112 if (!SWIG_IsOK(ecode1)) {
62113 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexShards" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
62116 ecode2 = SWIG_AsVal_bool(obj1, &val2);
62117 if (!SWIG_IsOK(ecode2)) {
62118 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexShards" "', argument " "2"" of type '" "bool""'");
62120 arg2 =
static_cast< bool >(val2);
62121 ecode3 = SWIG_AsVal_bool(obj2, &val3);
62122 if (!SWIG_IsOK(ecode3)) {
62123 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_IndexShards" "', argument " "3"" of type '" "bool""'");
62125 arg3 =
static_cast< bool >(val3);
62127 Py_BEGIN_ALLOW_THREADS
62131 PyEval_RestoreThread(_save);
62132 PyErr_SetString(PyExc_RuntimeError, e.
what());
62135 Py_END_ALLOW_THREADS
62137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexShards, SWIG_POINTER_NEW | 0 );
62144 SWIGINTERN PyObject *_wrap_new_IndexShards__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62145 PyObject *resultobj = 0;
62152 PyObject * obj0 = 0 ;
62153 PyObject * obj1 = 0 ;
62156 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexShards",&obj0,&obj1)) SWIG_fail;
62157 ecode1 = SWIG_AsVal_long(obj0, &val1);
62158 if (!SWIG_IsOK(ecode1)) {
62159 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexShards" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
62162 ecode2 = SWIG_AsVal_bool(obj1, &val2);
62163 if (!SWIG_IsOK(ecode2)) {
62164 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexShards" "', argument " "2"" of type '" "bool""'");
62166 arg2 =
static_cast< bool >(val2);
62168 Py_BEGIN_ALLOW_THREADS
62172 PyEval_RestoreThread(_save);
62173 PyErr_SetString(PyExc_RuntimeError, e.
what());
62176 Py_END_ALLOW_THREADS
62178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexShards, SWIG_POINTER_NEW | 0 );
62185 SWIGINTERN PyObject *_wrap_new_IndexShards__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62186 PyObject *resultobj = 0;
62190 PyObject * obj0 = 0 ;
62193 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexShards",&obj0)) SWIG_fail;
62194 ecode1 = SWIG_AsVal_long(obj0, &val1);
62195 if (!SWIG_IsOK(ecode1)) {
62196 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexShards" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
62200 Py_BEGIN_ALLOW_THREADS
62204 PyEval_RestoreThread(_save);
62205 PyErr_SetString(PyExc_RuntimeError, e.
what());
62208 Py_END_ALLOW_THREADS
62210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexShards, SWIG_POINTER_NEW | 0 );
62217 SWIGINTERN PyObject *_wrap_new_IndexShards(PyObject *
self, PyObject *args) {
62219 PyObject *argv[4] = {
62224 if (!PyTuple_Check(args)) SWIG_fail;
62225 argc = args ? PyObject_Length(args) : 0;
62226 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
62227 argv[ii] = PyTuple_GET_ITEM(args,ii);
62232 int res = SWIG_AsVal_long(argv[0], NULL);
62233 _v = SWIG_CheckState(res);
62236 return _wrap_new_IndexShards__SWIG_2(
self, args);
62242 int res = SWIG_AsVal_long(argv[0], NULL);
62243 _v = SWIG_CheckState(res);
62247 int res = SWIG_AsVal_bool(argv[1], NULL);
62248 _v = SWIG_CheckState(res);
62251 return _wrap_new_IndexShards__SWIG_1(
self, args);
62258 int res = SWIG_AsVal_long(argv[0], NULL);
62259 _v = SWIG_CheckState(res);
62263 int res = SWIG_AsVal_bool(argv[1], NULL);
62264 _v = SWIG_CheckState(res);
62268 int res = SWIG_AsVal_bool(argv[2], NULL);
62269 _v = SWIG_CheckState(res);
62272 return _wrap_new_IndexShards__SWIG_0(
self, args);
62279 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexShards'.\n"
62280 " Possible C/C++ prototypes are:\n"
62281 " faiss::IndexShards::IndexShards(faiss::Index::idx_t,bool,bool)\n"
62282 " faiss::IndexShards::IndexShards(faiss::Index::idx_t,bool)\n"
62283 " faiss::IndexShards::IndexShards(faiss::Index::idx_t)\n");
62288 SWIGINTERN PyObject *_wrap_IndexShards_add_shard(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62289 PyObject *resultobj = 0;
62296 PyObject * obj0 = 0 ;
62297 PyObject * obj1 = 0 ;
62299 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexShards_add_shard",&obj0,&obj1)) SWIG_fail;
62300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
62301 if (!SWIG_IsOK(res1)) {
62302 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_add_shard" "', argument " "1"" of type '" "faiss::IndexShards *""'");
62305 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
62306 if (!SWIG_IsOK(res2)) {
62307 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexShards_add_shard" "', argument " "2"" of type '" "faiss::Index *""'");
62311 Py_BEGIN_ALLOW_THREADS
62313 (arg1)->add_shard(arg2);
62315 PyEval_RestoreThread(_save);
62316 PyErr_SetString(PyExc_RuntimeError, e.
what());
62319 Py_END_ALLOW_THREADS
62321 resultobj = SWIG_Py_Void();
62328 SWIGINTERN PyObject *_wrap_IndexShards_sync_with_shard_indexes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62329 PyObject *resultobj = 0;
62333 PyObject * obj0 = 0 ;
62335 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexShards_sync_with_shard_indexes",&obj0)) SWIG_fail;
62336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
62337 if (!SWIG_IsOK(res1)) {
62338 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_sync_with_shard_indexes" "', argument " "1"" of type '" "faiss::IndexShards *""'");
62342 Py_BEGIN_ALLOW_THREADS
62344 (arg1)->sync_with_shard_indexes();
62346 PyEval_RestoreThread(_save);
62347 PyErr_SetString(PyExc_RuntimeError, e.
what());
62350 Py_END_ALLOW_THREADS
62352 resultobj = SWIG_Py_Void();
62359 SWIGINTERN PyObject *_wrap_IndexShards_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62360 PyObject *resultobj = 0;
62367 PyObject * obj0 = 0 ;
62368 PyObject * obj1 = 0 ;
62371 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexShards_at",&obj0,&obj1)) SWIG_fail;
62372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
62373 if (!SWIG_IsOK(res1)) {
62374 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_at" "', argument " "1"" of type '" "faiss::IndexShards *""'");
62377 ecode2 = SWIG_AsVal_int(obj1, &val2);
62378 if (!SWIG_IsOK(ecode2)) {
62379 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_at" "', argument " "2"" of type '" "int""'");
62381 arg2 =
static_cast< int >(val2);
62383 Py_BEGIN_ALLOW_THREADS
62387 PyEval_RestoreThread(_save);
62388 PyErr_SetString(PyExc_RuntimeError, e.
what());
62391 Py_END_ALLOW_THREADS
62393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
62400 SWIGINTERN PyObject *_wrap_IndexShards_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62401 PyObject *resultobj = 0;
62404 float *arg3 = (
float *) 0 ;
62411 PyObject * obj0 = 0 ;
62412 PyObject * obj1 = 0 ;
62413 PyObject * obj2 = 0 ;
62415 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexShards_add",&obj0,&obj1,&obj2)) SWIG_fail;
62416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
62417 if (!SWIG_IsOK(res1)) {
62418 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_add" "', argument " "1"" of type '" "faiss::IndexShards *""'");
62421 ecode2 = SWIG_AsVal_long(obj1, &val2);
62422 if (!SWIG_IsOK(ecode2)) {
62423 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
62426 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
62427 if (!SWIG_IsOK(res3)) {
62428 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexShards_add" "', argument " "3"" of type '" "float const *""'");
62430 arg3 =
reinterpret_cast< float *
>(argp3);
62432 Py_BEGIN_ALLOW_THREADS
62434 (arg1)->add(arg2,(
float const *)arg3);
62436 PyEval_RestoreThread(_save);
62437 PyErr_SetString(PyExc_RuntimeError, e.
what());
62440 Py_END_ALLOW_THREADS
62442 resultobj = SWIG_Py_Void();
62449 SWIGINTERN PyObject *_wrap_IndexShards_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62450 PyObject *resultobj = 0;
62453 float *arg3 = (
float *) 0 ;
62454 long *arg4 = (
long *) 0 ;
62463 PyObject * obj0 = 0 ;
62464 PyObject * obj1 = 0 ;
62465 PyObject * obj2 = 0 ;
62466 PyObject * obj3 = 0 ;
62468 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IndexShards_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
62469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
62470 if (!SWIG_IsOK(res1)) {
62471 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_add_with_ids" "', argument " "1"" of type '" "faiss::IndexShards *""'");
62474 ecode2 = SWIG_AsVal_long(obj1, &val2);
62475 if (!SWIG_IsOK(ecode2)) {
62476 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
62479 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
62480 if (!SWIG_IsOK(res3)) {
62481 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexShards_add_with_ids" "', argument " "3"" of type '" "float const *""'");
62483 arg3 =
reinterpret_cast< float *
>(argp3);
62484 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
62485 if (!SWIG_IsOK(res4)) {
62486 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "IndexShards_add_with_ids" "', argument " "4"" of type '" "long const *""'");
62488 arg4 =
reinterpret_cast< long *
>(argp4);
62490 Py_BEGIN_ALLOW_THREADS
62492 (arg1)->add_with_ids(arg2,(
float const *)arg3,(
long const *)arg4);
62494 PyEval_RestoreThread(_save);
62495 PyErr_SetString(PyExc_RuntimeError, e.
what());
62498 Py_END_ALLOW_THREADS
62500 resultobj = SWIG_Py_Void();
62507 SWIGINTERN PyObject *_wrap_IndexShards_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62508 PyObject *resultobj = 0;
62511 float *arg3 = (
float *) 0 ;
62513 float *arg5 = (
float *) 0 ;
62527 PyObject * obj0 = 0 ;
62528 PyObject * obj1 = 0 ;
62529 PyObject * obj2 = 0 ;
62530 PyObject * obj3 = 0 ;
62531 PyObject * obj4 = 0 ;
62532 PyObject * obj5 = 0 ;
62534 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexShards_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
62535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
62536 if (!SWIG_IsOK(res1)) {
62537 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_search" "', argument " "1"" of type '" "faiss::IndexShards const *""'");
62540 ecode2 = SWIG_AsVal_long(obj1, &val2);
62541 if (!SWIG_IsOK(ecode2)) {
62542 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
62545 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
62546 if (!SWIG_IsOK(res3)) {
62547 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexShards_search" "', argument " "3"" of type '" "float const *""'");
62549 arg3 =
reinterpret_cast< float *
>(argp3);
62550 ecode4 = SWIG_AsVal_long(obj3, &val4);
62551 if (!SWIG_IsOK(ecode4)) {
62552 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexShards_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
62555 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
62556 if (!SWIG_IsOK(res5)) {
62557 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexShards_search" "', argument " "5"" of type '" "float *""'");
62559 arg5 =
reinterpret_cast< float *
>(argp5);
62560 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
62561 if (!SWIG_IsOK(res6)) {
62562 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexShards_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
62566 Py_BEGIN_ALLOW_THREADS
62568 ((
faiss::IndexShards const *)arg1)->search(arg2,(
float const *)arg3,arg4,arg5,arg6);
62570 PyEval_RestoreThread(_save);
62571 PyErr_SetString(PyExc_RuntimeError, e.
what());
62574 Py_END_ALLOW_THREADS
62576 resultobj = SWIG_Py_Void();
62583 SWIGINTERN PyObject *_wrap_IndexShards_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62584 PyObject *resultobj = 0;
62587 float *arg3 = (
float *) 0 ;
62594 PyObject * obj0 = 0 ;
62595 PyObject * obj1 = 0 ;
62596 PyObject * obj2 = 0 ;
62598 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexShards_train",&obj0,&obj1,&obj2)) SWIG_fail;
62599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
62600 if (!SWIG_IsOK(res1)) {
62601 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_train" "', argument " "1"" of type '" "faiss::IndexShards *""'");
62604 ecode2 = SWIG_AsVal_long(obj1, &val2);
62605 if (!SWIG_IsOK(ecode2)) {
62606 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexShards_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
62609 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
62610 if (!SWIG_IsOK(res3)) {
62611 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexShards_train" "', argument " "3"" of type '" "float const *""'");
62613 arg3 =
reinterpret_cast< float *
>(argp3);
62615 Py_BEGIN_ALLOW_THREADS
62617 (arg1)->train(arg2,(
float const *)arg3);
62619 PyEval_RestoreThread(_save);
62620 PyErr_SetString(PyExc_RuntimeError, e.
what());
62623 Py_END_ALLOW_THREADS
62625 resultobj = SWIG_Py_Void();
62632 SWIGINTERN PyObject *_wrap_IndexShards_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62633 PyObject *resultobj = 0;
62637 PyObject * obj0 = 0 ;
62639 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexShards_reset",&obj0)) SWIG_fail;
62640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, 0 | 0 );
62641 if (!SWIG_IsOK(res1)) {
62642 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexShards_reset" "', argument " "1"" of type '" "faiss::IndexShards *""'");
62646 Py_BEGIN_ALLOW_THREADS
62650 PyEval_RestoreThread(_save);
62651 PyErr_SetString(PyExc_RuntimeError, e.
what());
62654 Py_END_ALLOW_THREADS
62656 resultobj = SWIG_Py_Void();
62663 SWIGINTERN PyObject *_wrap_delete_IndexShards(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62664 PyObject *resultobj = 0;
62668 PyObject * obj0 = 0 ;
62670 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexShards",&obj0)) SWIG_fail;
62671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexShards, SWIG_POINTER_DISOWN | 0 );
62672 if (!SWIG_IsOK(res1)) {
62673 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexShards" "', argument " "1"" of type '" "faiss::IndexShards *""'");
62677 Py_BEGIN_ALLOW_THREADS
62681 PyEval_RestoreThread(_save);
62682 PyErr_SetString(PyExc_RuntimeError, e.
what());
62685 Py_END_ALLOW_THREADS
62687 resultobj = SWIG_Py_Void();
62694 SWIGINTERN PyObject *IndexShards_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62696 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
62697 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexShards, SWIG_NewClientData(obj));
62698 return SWIG_Py_Void();
62701 SWIGINTERN PyObject *_wrap_IndexSplitVectors_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62702 PyObject *resultobj = 0;
62709 PyObject * obj0 = 0 ;
62710 PyObject * obj1 = 0 ;
62712 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexSplitVectors_own_fields_set",&obj0,&obj1)) SWIG_fail;
62713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
62714 if (!SWIG_IsOK(res1)) {
62715 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_own_fields_set" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
62718 ecode2 = SWIG_AsVal_bool(obj1, &val2);
62719 if (!SWIG_IsOK(ecode2)) {
62720 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexSplitVectors_own_fields_set" "', argument " "2"" of type '" "bool""'");
62722 arg2 =
static_cast< bool >(val2);
62723 if (arg1) (arg1)->own_fields = arg2;
62724 resultobj = SWIG_Py_Void();
62731 SWIGINTERN PyObject *_wrap_IndexSplitVectors_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62732 PyObject *resultobj = 0;
62736 PyObject * obj0 = 0 ;
62739 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexSplitVectors_own_fields_get",&obj0)) SWIG_fail;
62740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
62741 if (!SWIG_IsOK(res1)) {
62742 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_own_fields_get" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
62745 result = (bool) ((arg1)->own_fields);
62746 resultobj = SWIG_From_bool(static_cast< bool >(result));
62753 SWIGINTERN PyObject *_wrap_IndexSplitVectors_threaded_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62754 PyObject *resultobj = 0;
62761 PyObject * obj0 = 0 ;
62762 PyObject * obj1 = 0 ;
62764 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexSplitVectors_threaded_set",&obj0,&obj1)) SWIG_fail;
62765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
62766 if (!SWIG_IsOK(res1)) {
62767 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_threaded_set" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
62770 ecode2 = SWIG_AsVal_bool(obj1, &val2);
62771 if (!SWIG_IsOK(ecode2)) {
62772 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexSplitVectors_threaded_set" "', argument " "2"" of type '" "bool""'");
62774 arg2 =
static_cast< bool >(val2);
62775 if (arg1) (arg1)->threaded = arg2;
62776 resultobj = SWIG_Py_Void();
62783 SWIGINTERN PyObject *_wrap_IndexSplitVectors_threaded_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62784 PyObject *resultobj = 0;
62788 PyObject * obj0 = 0 ;
62791 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexSplitVectors_threaded_get",&obj0)) SWIG_fail;
62792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
62793 if (!SWIG_IsOK(res1)) {
62794 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_threaded_get" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
62797 result = (bool) ((arg1)->threaded);
62798 resultobj = SWIG_From_bool(static_cast< bool >(result));
62805 SWIGINTERN PyObject *_wrap_IndexSplitVectors_sub_indexes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62806 PyObject *resultobj = 0;
62808 std::vector< faiss::Index * > *arg2 = (std::vector< faiss::Index * > *) 0 ;
62813 PyObject * obj0 = 0 ;
62814 PyObject * obj1 = 0 ;
62816 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexSplitVectors_sub_indexes_set",&obj0,&obj1)) SWIG_fail;
62817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
62818 if (!SWIG_IsOK(res1)) {
62819 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_sub_indexes_set" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
62822 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__Index_p_t, 0 | 0 );
62823 if (!SWIG_IsOK(res2)) {
62824 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexSplitVectors_sub_indexes_set" "', argument " "2"" of type '" "std::vector< faiss::Index * > *""'");
62826 arg2 =
reinterpret_cast< std::vector< faiss::Index * > *
>(argp2);
62827 if (arg1) (arg1)->sub_indexes = *arg2;
62828 resultobj = SWIG_Py_Void();
62835 SWIGINTERN PyObject *_wrap_IndexSplitVectors_sub_indexes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62836 PyObject *resultobj = 0;
62840 PyObject * obj0 = 0 ;
62841 std::vector< faiss::Index * > *result = 0 ;
62843 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexSplitVectors_sub_indexes_get",&obj0)) SWIG_fail;
62844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
62845 if (!SWIG_IsOK(res1)) {
62846 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_sub_indexes_get" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
62849 result = (std::vector< faiss::Index * > *)& ((arg1)->sub_indexes);
62850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__Index_p_t, 0 | 0 );
62857 SWIGINTERN PyObject *_wrap_IndexSplitVectors_sum_d_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62858 PyObject *resultobj = 0;
62865 PyObject * obj0 = 0 ;
62866 PyObject * obj1 = 0 ;
62868 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexSplitVectors_sum_d_set",&obj0,&obj1)) SWIG_fail;
62869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
62870 if (!SWIG_IsOK(res1)) {
62871 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_sum_d_set" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
62874 ecode2 = SWIG_AsVal_long(obj1, &val2);
62875 if (!SWIG_IsOK(ecode2)) {
62876 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexSplitVectors_sum_d_set" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
62879 if (arg1) (arg1)->sum_d = arg2;
62880 resultobj = SWIG_Py_Void();
62887 SWIGINTERN PyObject *_wrap_IndexSplitVectors_sum_d_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62888 PyObject *resultobj = 0;
62892 PyObject * obj0 = 0 ;
62895 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexSplitVectors_sum_d_get",&obj0)) SWIG_fail;
62896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
62897 if (!SWIG_IsOK(res1)) {
62898 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_sum_d_get" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
62902 resultobj = SWIG_From_long(static_cast< long >(result));
62909 SWIGINTERN PyObject *_wrap_new_IndexSplitVectors__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62910 PyObject *resultobj = 0;
62917 PyObject * obj0 = 0 ;
62918 PyObject * obj1 = 0 ;
62921 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IndexSplitVectors",&obj0,&obj1)) SWIG_fail;
62922 ecode1 = SWIG_AsVal_long(obj0, &val1);
62923 if (!SWIG_IsOK(ecode1)) {
62924 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexSplitVectors" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
62927 ecode2 = SWIG_AsVal_bool(obj1, &val2);
62928 if (!SWIG_IsOK(ecode2)) {
62929 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IndexSplitVectors" "', argument " "2"" of type '" "bool""'");
62931 arg2 =
static_cast< bool >(val2);
62933 Py_BEGIN_ALLOW_THREADS
62937 PyEval_RestoreThread(_save);
62938 PyErr_SetString(PyExc_RuntimeError, e.
what());
62941 Py_END_ALLOW_THREADS
62943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexSplitVectors, SWIG_POINTER_NEW | 0 );
62950 SWIGINTERN PyObject *_wrap_new_IndexSplitVectors__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
62951 PyObject *resultobj = 0;
62955 PyObject * obj0 = 0 ;
62958 if (!PyArg_ParseTuple(args,(
char *)
"O:new_IndexSplitVectors",&obj0)) SWIG_fail;
62959 ecode1 = SWIG_AsVal_long(obj0, &val1);
62960 if (!SWIG_IsOK(ecode1)) {
62961 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IndexSplitVectors" "', argument " "1"" of type '" "faiss::Index::idx_t""'");
62965 Py_BEGIN_ALLOW_THREADS
62969 PyEval_RestoreThread(_save);
62970 PyErr_SetString(PyExc_RuntimeError, e.
what());
62973 Py_END_ALLOW_THREADS
62975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexSplitVectors, SWIG_POINTER_NEW | 0 );
62982 SWIGINTERN PyObject *_wrap_new_IndexSplitVectors(PyObject *
self, PyObject *args) {
62984 PyObject *argv[3] = {
62989 if (!PyTuple_Check(args)) SWIG_fail;
62990 argc = args ? PyObject_Length(args) : 0;
62991 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
62992 argv[ii] = PyTuple_GET_ITEM(args,ii);
62997 int res = SWIG_AsVal_long(argv[0], NULL);
62998 _v = SWIG_CheckState(res);
63001 return _wrap_new_IndexSplitVectors__SWIG_1(
self, args);
63007 int res = SWIG_AsVal_long(argv[0], NULL);
63008 _v = SWIG_CheckState(res);
63012 int res = SWIG_AsVal_bool(argv[1], NULL);
63013 _v = SWIG_CheckState(res);
63016 return _wrap_new_IndexSplitVectors__SWIG_0(
self, args);
63022 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_IndexSplitVectors'.\n"
63023 " Possible C/C++ prototypes are:\n"
63024 " faiss::IndexSplitVectors::IndexSplitVectors(faiss::Index::idx_t,bool)\n"
63025 " faiss::IndexSplitVectors::IndexSplitVectors(faiss::Index::idx_t)\n");
63030 SWIGINTERN PyObject *_wrap_IndexSplitVectors_add_sub_index(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63031 PyObject *resultobj = 0;
63038 PyObject * obj0 = 0 ;
63039 PyObject * obj1 = 0 ;
63041 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexSplitVectors_add_sub_index",&obj0,&obj1)) SWIG_fail;
63042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
63043 if (!SWIG_IsOK(res1)) {
63044 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_add_sub_index" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
63047 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
63048 if (!SWIG_IsOK(res2)) {
63049 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexSplitVectors_add_sub_index" "', argument " "2"" of type '" "faiss::Index *""'");
63053 Py_BEGIN_ALLOW_THREADS
63055 (arg1)->add_sub_index(arg2);
63057 PyEval_RestoreThread(_save);
63058 PyErr_SetString(PyExc_RuntimeError, e.
what());
63061 Py_END_ALLOW_THREADS
63063 resultobj = SWIG_Py_Void();
63070 SWIGINTERN PyObject *_wrap_IndexSplitVectors_sync_with_sub_indexes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63071 PyObject *resultobj = 0;
63075 PyObject * obj0 = 0 ;
63077 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexSplitVectors_sync_with_sub_indexes",&obj0)) SWIG_fail;
63078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
63079 if (!SWIG_IsOK(res1)) {
63080 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_sync_with_sub_indexes" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
63084 Py_BEGIN_ALLOW_THREADS
63086 (arg1)->sync_with_sub_indexes();
63088 PyEval_RestoreThread(_save);
63089 PyErr_SetString(PyExc_RuntimeError, e.
what());
63092 Py_END_ALLOW_THREADS
63094 resultobj = SWIG_Py_Void();
63101 SWIGINTERN PyObject *_wrap_IndexSplitVectors_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63102 PyObject *resultobj = 0;
63105 float *arg3 = (
float *) 0 ;
63112 PyObject * obj0 = 0 ;
63113 PyObject * obj1 = 0 ;
63114 PyObject * obj2 = 0 ;
63116 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexSplitVectors_add",&obj0,&obj1,&obj2)) SWIG_fail;
63117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
63118 if (!SWIG_IsOK(res1)) {
63119 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_add" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
63122 ecode2 = SWIG_AsVal_long(obj1, &val2);
63123 if (!SWIG_IsOK(ecode2)) {
63124 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexSplitVectors_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
63127 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
63128 if (!SWIG_IsOK(res3)) {
63129 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexSplitVectors_add" "', argument " "3"" of type '" "float const *""'");
63131 arg3 =
reinterpret_cast< float *
>(argp3);
63133 Py_BEGIN_ALLOW_THREADS
63135 (arg1)->add(arg2,(
float const *)arg3);
63137 PyEval_RestoreThread(_save);
63138 PyErr_SetString(PyExc_RuntimeError, e.
what());
63141 Py_END_ALLOW_THREADS
63143 resultobj = SWIG_Py_Void();
63150 SWIGINTERN PyObject *_wrap_IndexSplitVectors_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63151 PyObject *resultobj = 0;
63154 float *arg3 = (
float *) 0 ;
63156 float *arg5 = (
float *) 0 ;
63170 PyObject * obj0 = 0 ;
63171 PyObject * obj1 = 0 ;
63172 PyObject * obj2 = 0 ;
63173 PyObject * obj3 = 0 ;
63174 PyObject * obj4 = 0 ;
63175 PyObject * obj5 = 0 ;
63177 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexSplitVectors_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
63178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
63179 if (!SWIG_IsOK(res1)) {
63180 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_search" "', argument " "1"" of type '" "faiss::IndexSplitVectors const *""'");
63183 ecode2 = SWIG_AsVal_long(obj1, &val2);
63184 if (!SWIG_IsOK(ecode2)) {
63185 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexSplitVectors_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
63188 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
63189 if (!SWIG_IsOK(res3)) {
63190 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexSplitVectors_search" "', argument " "3"" of type '" "float const *""'");
63192 arg3 =
reinterpret_cast< float *
>(argp3);
63193 ecode4 = SWIG_AsVal_long(obj3, &val4);
63194 if (!SWIG_IsOK(ecode4)) {
63195 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexSplitVectors_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
63198 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
63199 if (!SWIG_IsOK(res5)) {
63200 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexSplitVectors_search" "', argument " "5"" of type '" "float *""'");
63202 arg5 =
reinterpret_cast< float *
>(argp5);
63203 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
63204 if (!SWIG_IsOK(res6)) {
63205 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexSplitVectors_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
63209 Py_BEGIN_ALLOW_THREADS
63213 PyEval_RestoreThread(_save);
63214 PyErr_SetString(PyExc_RuntimeError, e.
what());
63217 Py_END_ALLOW_THREADS
63219 resultobj = SWIG_Py_Void();
63226 SWIGINTERN PyObject *_wrap_IndexSplitVectors_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63227 PyObject *resultobj = 0;
63230 float *arg3 = (
float *) 0 ;
63237 PyObject * obj0 = 0 ;
63238 PyObject * obj1 = 0 ;
63239 PyObject * obj2 = 0 ;
63241 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexSplitVectors_train",&obj0,&obj1,&obj2)) SWIG_fail;
63242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
63243 if (!SWIG_IsOK(res1)) {
63244 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_train" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
63247 ecode2 = SWIG_AsVal_long(obj1, &val2);
63248 if (!SWIG_IsOK(ecode2)) {
63249 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexSplitVectors_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
63252 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
63253 if (!SWIG_IsOK(res3)) {
63254 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexSplitVectors_train" "', argument " "3"" of type '" "float const *""'");
63256 arg3 =
reinterpret_cast< float *
>(argp3);
63258 Py_BEGIN_ALLOW_THREADS
63260 (arg1)->train(arg2,(
float const *)arg3);
63262 PyEval_RestoreThread(_save);
63263 PyErr_SetString(PyExc_RuntimeError, e.
what());
63266 Py_END_ALLOW_THREADS
63268 resultobj = SWIG_Py_Void();
63275 SWIGINTERN PyObject *_wrap_IndexSplitVectors_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63276 PyObject *resultobj = 0;
63280 PyObject * obj0 = 0 ;
63282 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexSplitVectors_reset",&obj0)) SWIG_fail;
63283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, 0 | 0 );
63284 if (!SWIG_IsOK(res1)) {
63285 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexSplitVectors_reset" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
63289 Py_BEGIN_ALLOW_THREADS
63293 PyEval_RestoreThread(_save);
63294 PyErr_SetString(PyExc_RuntimeError, e.
what());
63297 Py_END_ALLOW_THREADS
63299 resultobj = SWIG_Py_Void();
63306 SWIGINTERN PyObject *_wrap_delete_IndexSplitVectors(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63307 PyObject *resultobj = 0;
63311 PyObject * obj0 = 0 ;
63313 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexSplitVectors",&obj0)) SWIG_fail;
63314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexSplitVectors, SWIG_POINTER_DISOWN | 0 );
63315 if (!SWIG_IsOK(res1)) {
63316 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexSplitVectors" "', argument " "1"" of type '" "faiss::IndexSplitVectors *""'");
63320 Py_BEGIN_ALLOW_THREADS
63324 PyEval_RestoreThread(_save);
63325 PyErr_SetString(PyExc_RuntimeError, e.
what());
63328 Py_END_ALLOW_THREADS
63330 resultobj = SWIG_Py_Void();
63337 SWIGINTERN PyObject *IndexSplitVectors_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63339 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
63340 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IndexSplitVectors, SWIG_NewClientData(obj));
63341 return SWIG_Py_Void();
63344 SWIGINTERN PyObject *_wrap_new_GpuClonerOptions(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63345 PyObject *resultobj = 0;
63348 if (!PyArg_ParseTuple(args,(
char *)
":new_GpuClonerOptions")) SWIG_fail;
63350 Py_BEGIN_ALLOW_THREADS
63354 PyEval_RestoreThread(_save);
63355 PyErr_SetString(PyExc_RuntimeError, e.
what());
63358 Py_END_ALLOW_THREADS
63360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuClonerOptions, SWIG_POINTER_NEW | 0 );
63367 SWIGINTERN PyObject *_wrap_GpuClonerOptions_indicesOptions_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63368 PyObject *resultobj = 0;
63370 faiss::gpu::IndicesOptions arg2 ;
63375 PyObject * obj0 = 0 ;
63376 PyObject * obj1 = 0 ;
63378 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuClonerOptions_indicesOptions_set",&obj0,&obj1)) SWIG_fail;
63379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
63380 if (!SWIG_IsOK(res1)) {
63381 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuClonerOptions_indicesOptions_set" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63384 ecode2 = SWIG_AsVal_int(obj1, &val2);
63385 if (!SWIG_IsOK(ecode2)) {
63386 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuClonerOptions_indicesOptions_set" "', argument " "2"" of type '" "faiss::gpu::IndicesOptions""'");
63388 arg2 =
static_cast< faiss::gpu::IndicesOptions
>(val2);
63389 if (arg1) (arg1)->indicesOptions = arg2;
63390 resultobj = SWIG_Py_Void();
63397 SWIGINTERN PyObject *_wrap_GpuClonerOptions_indicesOptions_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63398 PyObject *resultobj = 0;
63402 PyObject * obj0 = 0 ;
63403 faiss::gpu::IndicesOptions result;
63405 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuClonerOptions_indicesOptions_get",&obj0)) SWIG_fail;
63406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
63407 if (!SWIG_IsOK(res1)) {
63408 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuClonerOptions_indicesOptions_get" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63411 result = (faiss::gpu::IndicesOptions) ((arg1)->indicesOptions);
63412 resultobj = SWIG_From_int(static_cast< int >(result));
63419 SWIGINTERN PyObject *_wrap_GpuClonerOptions_useFloat16CoarseQuantizer_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63420 PyObject *resultobj = 0;
63427 PyObject * obj0 = 0 ;
63428 PyObject * obj1 = 0 ;
63430 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuClonerOptions_useFloat16CoarseQuantizer_set",&obj0,&obj1)) SWIG_fail;
63431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
63432 if (!SWIG_IsOK(res1)) {
63433 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuClonerOptions_useFloat16CoarseQuantizer_set" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63436 ecode2 = SWIG_AsVal_bool(obj1, &val2);
63437 if (!SWIG_IsOK(ecode2)) {
63438 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuClonerOptions_useFloat16CoarseQuantizer_set" "', argument " "2"" of type '" "bool""'");
63440 arg2 =
static_cast< bool >(val2);
63441 if (arg1) (arg1)->useFloat16CoarseQuantizer = arg2;
63442 resultobj = SWIG_Py_Void();
63449 SWIGINTERN PyObject *_wrap_GpuClonerOptions_useFloat16CoarseQuantizer_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63450 PyObject *resultobj = 0;
63454 PyObject * obj0 = 0 ;
63457 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuClonerOptions_useFloat16CoarseQuantizer_get",&obj0)) SWIG_fail;
63458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
63459 if (!SWIG_IsOK(res1)) {
63460 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuClonerOptions_useFloat16CoarseQuantizer_get" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63463 result = (bool) ((arg1)->useFloat16CoarseQuantizer);
63464 resultobj = SWIG_From_bool(static_cast< bool >(result));
63471 SWIGINTERN PyObject *_wrap_GpuClonerOptions_useFloat16_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63472 PyObject *resultobj = 0;
63479 PyObject * obj0 = 0 ;
63480 PyObject * obj1 = 0 ;
63482 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuClonerOptions_useFloat16_set",&obj0,&obj1)) SWIG_fail;
63483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
63484 if (!SWIG_IsOK(res1)) {
63485 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuClonerOptions_useFloat16_set" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63488 ecode2 = SWIG_AsVal_bool(obj1, &val2);
63489 if (!SWIG_IsOK(ecode2)) {
63490 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuClonerOptions_useFloat16_set" "', argument " "2"" of type '" "bool""'");
63492 arg2 =
static_cast< bool >(val2);
63493 if (arg1) (arg1)->useFloat16 = arg2;
63494 resultobj = SWIG_Py_Void();
63501 SWIGINTERN PyObject *_wrap_GpuClonerOptions_useFloat16_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63502 PyObject *resultobj = 0;
63506 PyObject * obj0 = 0 ;
63509 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuClonerOptions_useFloat16_get",&obj0)) SWIG_fail;
63510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
63511 if (!SWIG_IsOK(res1)) {
63512 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuClonerOptions_useFloat16_get" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63515 result = (bool) ((arg1)->useFloat16);
63516 resultobj = SWIG_From_bool(static_cast< bool >(result));
63523 SWIGINTERN PyObject *_wrap_GpuClonerOptions_usePrecomputed_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63524 PyObject *resultobj = 0;
63531 PyObject * obj0 = 0 ;
63532 PyObject * obj1 = 0 ;
63534 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuClonerOptions_usePrecomputed_set",&obj0,&obj1)) SWIG_fail;
63535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
63536 if (!SWIG_IsOK(res1)) {
63537 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuClonerOptions_usePrecomputed_set" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63540 ecode2 = SWIG_AsVal_bool(obj1, &val2);
63541 if (!SWIG_IsOK(ecode2)) {
63542 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuClonerOptions_usePrecomputed_set" "', argument " "2"" of type '" "bool""'");
63544 arg2 =
static_cast< bool >(val2);
63545 if (arg1) (arg1)->usePrecomputed = arg2;
63546 resultobj = SWIG_Py_Void();
63553 SWIGINTERN PyObject *_wrap_GpuClonerOptions_usePrecomputed_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63554 PyObject *resultobj = 0;
63558 PyObject * obj0 = 0 ;
63561 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuClonerOptions_usePrecomputed_get",&obj0)) SWIG_fail;
63562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
63563 if (!SWIG_IsOK(res1)) {
63564 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuClonerOptions_usePrecomputed_get" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63567 result = (bool) ((arg1)->usePrecomputed);
63568 resultobj = SWIG_From_bool(static_cast< bool >(result));
63575 SWIGINTERN PyObject *_wrap_GpuClonerOptions_reserveVecs_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63576 PyObject *resultobj = 0;
63583 PyObject * obj0 = 0 ;
63584 PyObject * obj1 = 0 ;
63586 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuClonerOptions_reserveVecs_set",&obj0,&obj1)) SWIG_fail;
63587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
63588 if (!SWIG_IsOK(res1)) {
63589 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuClonerOptions_reserveVecs_set" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63592 ecode2 = SWIG_AsVal_long(obj1, &val2);
63593 if (!SWIG_IsOK(ecode2)) {
63594 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuClonerOptions_reserveVecs_set" "', argument " "2"" of type '" "long""'");
63596 arg2 =
static_cast< long >(val2);
63597 if (arg1) (arg1)->reserveVecs = arg2;
63598 resultobj = SWIG_Py_Void();
63605 SWIGINTERN PyObject *_wrap_GpuClonerOptions_reserveVecs_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63606 PyObject *resultobj = 0;
63610 PyObject * obj0 = 0 ;
63613 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuClonerOptions_reserveVecs_get",&obj0)) SWIG_fail;
63614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
63615 if (!SWIG_IsOK(res1)) {
63616 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuClonerOptions_reserveVecs_get" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63619 result = (long) ((arg1)->reserveVecs);
63620 resultobj = SWIG_From_long(static_cast< long >(result));
63627 SWIGINTERN PyObject *_wrap_GpuClonerOptions_storeTransposed_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63628 PyObject *resultobj = 0;
63635 PyObject * obj0 = 0 ;
63636 PyObject * obj1 = 0 ;
63638 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuClonerOptions_storeTransposed_set",&obj0,&obj1)) SWIG_fail;
63639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
63640 if (!SWIG_IsOK(res1)) {
63641 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuClonerOptions_storeTransposed_set" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63644 ecode2 = SWIG_AsVal_bool(obj1, &val2);
63645 if (!SWIG_IsOK(ecode2)) {
63646 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuClonerOptions_storeTransposed_set" "', argument " "2"" of type '" "bool""'");
63648 arg2 =
static_cast< bool >(val2);
63649 if (arg1) (arg1)->storeTransposed = arg2;
63650 resultobj = SWIG_Py_Void();
63657 SWIGINTERN PyObject *_wrap_GpuClonerOptions_storeTransposed_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63658 PyObject *resultobj = 0;
63662 PyObject * obj0 = 0 ;
63665 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuClonerOptions_storeTransposed_get",&obj0)) SWIG_fail;
63666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
63667 if (!SWIG_IsOK(res1)) {
63668 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuClonerOptions_storeTransposed_get" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63671 result = (bool) ((arg1)->storeTransposed);
63672 resultobj = SWIG_From_bool(static_cast< bool >(result));
63679 SWIGINTERN PyObject *_wrap_GpuClonerOptions_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63680 PyObject *resultobj = 0;
63687 PyObject * obj0 = 0 ;
63688 PyObject * obj1 = 0 ;
63690 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuClonerOptions_verbose_set",&obj0,&obj1)) SWIG_fail;
63691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
63692 if (!SWIG_IsOK(res1)) {
63693 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuClonerOptions_verbose_set" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63696 ecode2 = SWIG_AsVal_bool(obj1, &val2);
63697 if (!SWIG_IsOK(ecode2)) {
63698 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuClonerOptions_verbose_set" "', argument " "2"" of type '" "bool""'");
63700 arg2 =
static_cast< bool >(val2);
63701 if (arg1) (arg1)->verbose = arg2;
63702 resultobj = SWIG_Py_Void();
63709 SWIGINTERN PyObject *_wrap_GpuClonerOptions_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63710 PyObject *resultobj = 0;
63714 PyObject * obj0 = 0 ;
63717 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuClonerOptions_verbose_get",&obj0)) SWIG_fail;
63718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
63719 if (!SWIG_IsOK(res1)) {
63720 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuClonerOptions_verbose_get" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63723 result = (bool) ((arg1)->verbose);
63724 resultobj = SWIG_From_bool(static_cast< bool >(result));
63731 SWIGINTERN PyObject *_wrap_delete_GpuClonerOptions(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63732 PyObject *resultobj = 0;
63736 PyObject * obj0 = 0 ;
63738 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuClonerOptions",&obj0)) SWIG_fail;
63739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, SWIG_POINTER_DISOWN | 0 );
63740 if (!SWIG_IsOK(res1)) {
63741 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuClonerOptions" "', argument " "1"" of type '" "faiss::gpu::GpuClonerOptions *""'");
63745 resultobj = SWIG_Py_Void();
63752 SWIGINTERN PyObject *GpuClonerOptions_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63754 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
63755 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuClonerOptions, SWIG_NewClientData(obj));
63756 return SWIG_Py_Void();
63759 SWIGINTERN PyObject *_wrap_new_GpuMultipleClonerOptions(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63760 PyObject *resultobj = 0;
63763 if (!PyArg_ParseTuple(args,(
char *)
":new_GpuMultipleClonerOptions")) SWIG_fail;
63765 Py_BEGIN_ALLOW_THREADS
63769 PyEval_RestoreThread(_save);
63770 PyErr_SetString(PyExc_RuntimeError, e.
what());
63773 Py_END_ALLOW_THREADS
63775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuMultipleClonerOptions, SWIG_POINTER_NEW | 0 );
63782 SWIGINTERN PyObject *_wrap_GpuMultipleClonerOptions_shard_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63783 PyObject *resultobj = 0;
63790 PyObject * obj0 = 0 ;
63791 PyObject * obj1 = 0 ;
63793 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuMultipleClonerOptions_shard_set",&obj0,&obj1)) SWIG_fail;
63794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuMultipleClonerOptions, 0 | 0 );
63795 if (!SWIG_IsOK(res1)) {
63796 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuMultipleClonerOptions_shard_set" "', argument " "1"" of type '" "faiss::gpu::GpuMultipleClonerOptions *""'");
63799 ecode2 = SWIG_AsVal_bool(obj1, &val2);
63800 if (!SWIG_IsOK(ecode2)) {
63801 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuMultipleClonerOptions_shard_set" "', argument " "2"" of type '" "bool""'");
63803 arg2 =
static_cast< bool >(val2);
63804 if (arg1) (arg1)->shard = arg2;
63805 resultobj = SWIG_Py_Void();
63812 SWIGINTERN PyObject *_wrap_GpuMultipleClonerOptions_shard_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63813 PyObject *resultobj = 0;
63817 PyObject * obj0 = 0 ;
63820 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuMultipleClonerOptions_shard_get",&obj0)) SWIG_fail;
63821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuMultipleClonerOptions, 0 | 0 );
63822 if (!SWIG_IsOK(res1)) {
63823 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuMultipleClonerOptions_shard_get" "', argument " "1"" of type '" "faiss::gpu::GpuMultipleClonerOptions *""'");
63826 result = (bool) ((arg1)->shard);
63827 resultobj = SWIG_From_bool(static_cast< bool >(result));
63834 SWIGINTERN PyObject *_wrap_GpuMultipleClonerOptions_shard_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63835 PyObject *resultobj = 0;
63842 PyObject * obj0 = 0 ;
63843 PyObject * obj1 = 0 ;
63845 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuMultipleClonerOptions_shard_type_set",&obj0,&obj1)) SWIG_fail;
63846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuMultipleClonerOptions, 0 | 0 );
63847 if (!SWIG_IsOK(res1)) {
63848 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuMultipleClonerOptions_shard_type_set" "', argument " "1"" of type '" "faiss::gpu::GpuMultipleClonerOptions *""'");
63851 ecode2 = SWIG_AsVal_int(obj1, &val2);
63852 if (!SWIG_IsOK(ecode2)) {
63853 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuMultipleClonerOptions_shard_type_set" "', argument " "2"" of type '" "int""'");
63855 arg2 =
static_cast< int >(val2);
63856 if (arg1) (arg1)->shard_type = arg2;
63857 resultobj = SWIG_Py_Void();
63864 SWIGINTERN PyObject *_wrap_GpuMultipleClonerOptions_shard_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63865 PyObject *resultobj = 0;
63869 PyObject * obj0 = 0 ;
63872 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuMultipleClonerOptions_shard_type_get",&obj0)) SWIG_fail;
63873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuMultipleClonerOptions, 0 | 0 );
63874 if (!SWIG_IsOK(res1)) {
63875 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuMultipleClonerOptions_shard_type_get" "', argument " "1"" of type '" "faiss::gpu::GpuMultipleClonerOptions *""'");
63878 result = (int) ((arg1)->shard_type);
63879 resultobj = SWIG_From_int(static_cast< int >(result));
63886 SWIGINTERN PyObject *_wrap_delete_GpuMultipleClonerOptions(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63887 PyObject *resultobj = 0;
63891 PyObject * obj0 = 0 ;
63893 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuMultipleClonerOptions",&obj0)) SWIG_fail;
63894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuMultipleClonerOptions, SWIG_POINTER_DISOWN | 0 );
63895 if (!SWIG_IsOK(res1)) {
63896 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuMultipleClonerOptions" "', argument " "1"" of type '" "faiss::gpu::GpuMultipleClonerOptions *""'");
63900 resultobj = SWIG_Py_Void();
63907 SWIGINTERN PyObject *GpuMultipleClonerOptions_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63909 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
63910 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuMultipleClonerOptions, SWIG_NewClientData(obj));
63911 return SWIG_Py_Void();
63914 SWIGINTERN PyObject *_wrap_allocMemorySpace(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63915 PyObject *resultobj = 0;
63916 faiss::gpu::MemorySpace arg1 ;
63917 void **arg2 = (
void **) 0 ;
63925 PyObject * obj0 = 0 ;
63926 PyObject * obj1 = 0 ;
63927 PyObject * obj2 = 0 ;
63929 if (!PyArg_ParseTuple(args,(
char *)
"OOO:allocMemorySpace",&obj0,&obj1,&obj2)) SWIG_fail;
63930 ecode1 = SWIG_AsVal_int(obj0, &val1);
63931 if (!SWIG_IsOK(ecode1)) {
63932 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "allocMemorySpace" "', argument " "1"" of type '" "faiss::gpu::MemorySpace""'");
63934 arg1 =
static_cast< faiss::gpu::MemorySpace
>(val1);
63935 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_void, 0 | 0 );
63936 if (!SWIG_IsOK(res2)) {
63937 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "allocMemorySpace" "', argument " "2"" of type '" "void **""'");
63939 arg2 =
reinterpret_cast< void **
>(argp2);
63940 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
63941 if (!SWIG_IsOK(ecode3)) {
63942 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "allocMemorySpace" "', argument " "3"" of type '" "size_t""'");
63944 arg3 =
static_cast< size_t >(val3);
63946 Py_BEGIN_ALLOW_THREADS
63948 faiss::gpu::allocMemorySpace(arg1,arg2,arg3);
63950 PyEval_RestoreThread(_save);
63951 PyErr_SetString(PyExc_RuntimeError, e.
what());
63954 Py_END_ALLOW_THREADS
63956 resultobj = SWIG_Py_Void();
63963 SWIGINTERN PyObject *_wrap_new_GpuIndexConfig(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63964 PyObject *resultobj = 0;
63967 if (!PyArg_ParseTuple(args,(
char *)
":new_GpuIndexConfig")) SWIG_fail;
63969 Py_BEGIN_ALLOW_THREADS
63973 PyEval_RestoreThread(_save);
63974 PyErr_SetString(PyExc_RuntimeError, e.
what());
63977 Py_END_ALLOW_THREADS
63979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexConfig, SWIG_POINTER_NEW | 0 );
63986 SWIGINTERN PyObject *_wrap_GpuIndexConfig_device_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
63987 PyObject *resultobj = 0;
63994 PyObject * obj0 = 0 ;
63995 PyObject * obj1 = 0 ;
63997 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexConfig_device_set",&obj0,&obj1)) SWIG_fail;
63998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexConfig, 0 | 0 );
63999 if (!SWIG_IsOK(res1)) {
64000 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexConfig_device_set" "', argument " "1"" of type '" "faiss::gpu::GpuIndexConfig *""'");
64003 ecode2 = SWIG_AsVal_int(obj1, &val2);
64004 if (!SWIG_IsOK(ecode2)) {
64005 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexConfig_device_set" "', argument " "2"" of type '" "int""'");
64007 arg2 =
static_cast< int >(val2);
64008 if (arg1) (arg1)->device = arg2;
64009 resultobj = SWIG_Py_Void();
64016 SWIGINTERN PyObject *_wrap_GpuIndexConfig_device_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64017 PyObject *resultobj = 0;
64021 PyObject * obj0 = 0 ;
64024 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexConfig_device_get",&obj0)) SWIG_fail;
64025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexConfig, 0 | 0 );
64026 if (!SWIG_IsOK(res1)) {
64027 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexConfig_device_get" "', argument " "1"" of type '" "faiss::gpu::GpuIndexConfig *""'");
64030 result = (int) ((arg1)->device);
64031 resultobj = SWIG_From_int(static_cast< int >(result));
64038 SWIGINTERN PyObject *_wrap_GpuIndexConfig_memorySpace_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64039 PyObject *resultobj = 0;
64041 faiss::gpu::MemorySpace arg2 ;
64046 PyObject * obj0 = 0 ;
64047 PyObject * obj1 = 0 ;
64049 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexConfig_memorySpace_set",&obj0,&obj1)) SWIG_fail;
64050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexConfig, 0 | 0 );
64051 if (!SWIG_IsOK(res1)) {
64052 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexConfig_memorySpace_set" "', argument " "1"" of type '" "faiss::gpu::GpuIndexConfig *""'");
64055 ecode2 = SWIG_AsVal_int(obj1, &val2);
64056 if (!SWIG_IsOK(ecode2)) {
64057 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexConfig_memorySpace_set" "', argument " "2"" of type '" "faiss::gpu::MemorySpace""'");
64059 arg2 =
static_cast< faiss::gpu::MemorySpace
>(val2);
64060 if (arg1) (arg1)->memorySpace = arg2;
64061 resultobj = SWIG_Py_Void();
64068 SWIGINTERN PyObject *_wrap_GpuIndexConfig_memorySpace_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64069 PyObject *resultobj = 0;
64073 PyObject * obj0 = 0 ;
64074 faiss::gpu::MemorySpace result;
64076 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexConfig_memorySpace_get",&obj0)) SWIG_fail;
64077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexConfig, 0 | 0 );
64078 if (!SWIG_IsOK(res1)) {
64079 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexConfig_memorySpace_get" "', argument " "1"" of type '" "faiss::gpu::GpuIndexConfig *""'");
64082 result = (faiss::gpu::MemorySpace) ((arg1)->memorySpace);
64083 resultobj = SWIG_From_int(static_cast< int >(result));
64090 SWIGINTERN PyObject *_wrap_delete_GpuIndexConfig(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64091 PyObject *resultobj = 0;
64095 PyObject * obj0 = 0 ;
64097 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuIndexConfig",&obj0)) SWIG_fail;
64098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexConfig, SWIG_POINTER_DISOWN | 0 );
64099 if (!SWIG_IsOK(res1)) {
64100 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuIndexConfig" "', argument " "1"" of type '" "faiss::gpu::GpuIndexConfig *""'");
64104 resultobj = SWIG_Py_Void();
64111 SWIGINTERN PyObject *GpuIndexConfig_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64113 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
64114 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuIndexConfig, SWIG_NewClientData(obj));
64115 return SWIG_Py_Void();
64118 SWIGINTERN PyObject *_wrap_GpuIndex_getDevice(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64119 PyObject *resultobj = 0;
64123 PyObject * obj0 = 0 ;
64126 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndex_getDevice",&obj0)) SWIG_fail;
64127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndex, 0 | 0 );
64128 if (!SWIG_IsOK(res1)) {
64129 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndex_getDevice" "', argument " "1"" of type '" "faiss::gpu::GpuIndex const *""'");
64133 Py_BEGIN_ALLOW_THREADS
64137 PyEval_RestoreThread(_save);
64138 PyErr_SetString(PyExc_RuntimeError, e.
what());
64141 Py_END_ALLOW_THREADS
64143 resultobj = SWIG_From_int(static_cast< int >(result));
64150 SWIGINTERN PyObject *_wrap_GpuIndex_getResources(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64151 PyObject *resultobj = 0;
64155 PyObject * obj0 = 0 ;
64158 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndex_getResources",&obj0)) SWIG_fail;
64159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndex, 0 | 0 );
64160 if (!SWIG_IsOK(res1)) {
64161 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndex_getResources" "', argument " "1"" of type '" "faiss::gpu::GpuIndex *""'");
64165 Py_BEGIN_ALLOW_THREADS
64169 PyEval_RestoreThread(_save);
64170 PyErr_SetString(PyExc_RuntimeError, e.
what());
64173 Py_END_ALLOW_THREADS
64175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
64182 SWIGINTERN PyObject *_wrap_GpuIndex_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64183 PyObject *resultobj = 0;
64186 float *arg3 = (
float *) 0 ;
64193 PyObject * obj0 = 0 ;
64194 PyObject * obj1 = 0 ;
64195 PyObject * obj2 = 0 ;
64197 if (!PyArg_ParseTuple(args,(
char *)
"OOO:GpuIndex_add",&obj0,&obj1,&obj2)) SWIG_fail;
64198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndex, 0 | 0 );
64199 if (!SWIG_IsOK(res1)) {
64200 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndex_add" "', argument " "1"" of type '" "faiss::gpu::GpuIndex *""'");
64203 ecode2 = SWIG_AsVal_long(obj1, &val2);
64204 if (!SWIG_IsOK(ecode2)) {
64205 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndex_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
64208 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
64209 if (!SWIG_IsOK(res3)) {
64210 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "GpuIndex_add" "', argument " "3"" of type '" "float const *""'");
64212 arg3 =
reinterpret_cast< float *
>(argp3);
64214 Py_BEGIN_ALLOW_THREADS
64216 (arg1)->add(arg2,(
float const *)arg3);
64218 PyEval_RestoreThread(_save);
64219 PyErr_SetString(PyExc_RuntimeError, e.
what());
64222 Py_END_ALLOW_THREADS
64224 resultobj = SWIG_Py_Void();
64231 SWIGINTERN PyObject *_wrap_GpuIndex_add_with_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64232 PyObject *resultobj = 0;
64235 float *arg3 = (
float *) 0 ;
64245 PyObject * obj0 = 0 ;
64246 PyObject * obj1 = 0 ;
64247 PyObject * obj2 = 0 ;
64248 PyObject * obj3 = 0 ;
64250 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:GpuIndex_add_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
64251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndex, 0 | 0 );
64252 if (!SWIG_IsOK(res1)) {
64253 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndex_add_with_ids" "', argument " "1"" of type '" "faiss::gpu::GpuIndex *""'");
64256 ecode2 = SWIG_AsVal_long(obj1, &val2);
64257 if (!SWIG_IsOK(ecode2)) {
64258 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndex_add_with_ids" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
64261 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
64262 if (!SWIG_IsOK(res3)) {
64263 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "GpuIndex_add_with_ids" "', argument " "3"" of type '" "float const *""'");
64265 arg3 =
reinterpret_cast< float *
>(argp3);
64266 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
64267 if (!SWIG_IsOK(res4)) {
64268 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "GpuIndex_add_with_ids" "', argument " "4"" of type '" "faiss::Index::idx_t const *""'");
64272 Py_BEGIN_ALLOW_THREADS
64276 PyEval_RestoreThread(_save);
64277 PyErr_SetString(PyExc_RuntimeError, e.
what());
64280 Py_END_ALLOW_THREADS
64282 resultobj = SWIG_Py_Void();
64289 SWIGINTERN PyObject *_wrap_GpuIndex_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64290 PyObject *resultobj = 0;
64293 float *arg3 = (
float *) 0 ;
64295 float *arg5 = (
float *) 0 ;
64309 PyObject * obj0 = 0 ;
64310 PyObject * obj1 = 0 ;
64311 PyObject * obj2 = 0 ;
64312 PyObject * obj3 = 0 ;
64313 PyObject * obj4 = 0 ;
64314 PyObject * obj5 = 0 ;
64316 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:GpuIndex_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
64317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndex, 0 | 0 );
64318 if (!SWIG_IsOK(res1)) {
64319 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndex_search" "', argument " "1"" of type '" "faiss::gpu::GpuIndex const *""'");
64322 ecode2 = SWIG_AsVal_long(obj1, &val2);
64323 if (!SWIG_IsOK(ecode2)) {
64324 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndex_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
64327 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
64328 if (!SWIG_IsOK(res3)) {
64329 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "GpuIndex_search" "', argument " "3"" of type '" "float const *""'");
64331 arg3 =
reinterpret_cast< float *
>(argp3);
64332 ecode4 = SWIG_AsVal_long(obj3, &val4);
64333 if (!SWIG_IsOK(ecode4)) {
64334 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "GpuIndex_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
64337 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
64338 if (!SWIG_IsOK(res5)) {
64339 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "GpuIndex_search" "', argument " "5"" of type '" "float *""'");
64341 arg5 =
reinterpret_cast< float *
>(argp5);
64342 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
64343 if (!SWIG_IsOK(res6)) {
64344 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "GpuIndex_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
64348 Py_BEGIN_ALLOW_THREADS
64352 PyEval_RestoreThread(_save);
64353 PyErr_SetString(PyExc_RuntimeError, e.
what());
64356 Py_END_ALLOW_THREADS
64358 resultobj = SWIG_Py_Void();
64365 SWIGINTERN PyObject *_wrap_delete_GpuIndex(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64366 PyObject *resultobj = 0;
64370 PyObject * obj0 = 0 ;
64372 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuIndex",&obj0)) SWIG_fail;
64373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndex, SWIG_POINTER_DISOWN | 0 );
64374 if (!SWIG_IsOK(res1)) {
64375 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuIndex" "', argument " "1"" of type '" "faiss::gpu::GpuIndex *""'");
64379 resultobj = SWIG_Py_Void();
64386 SWIGINTERN PyObject *GpuIndex_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64388 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
64389 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuIndex, SWIG_NewClientData(obj));
64390 return SWIG_Py_Void();
64393 SWIGINTERN PyObject *_wrap_new_GpuIndexFlatConfig(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64394 PyObject *resultobj = 0;
64397 if (!PyArg_ParseTuple(args,(
char *)
":new_GpuIndexFlatConfig")) SWIG_fail;
64399 Py_BEGIN_ALLOW_THREADS
64403 PyEval_RestoreThread(_save);
64404 PyErr_SetString(PyExc_RuntimeError, e.
what());
64407 Py_END_ALLOW_THREADS
64409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, SWIG_POINTER_NEW | 0 );
64416 SWIGINTERN PyObject *_wrap_GpuIndexFlatConfig_useFloat16_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64417 PyObject *resultobj = 0;
64424 PyObject * obj0 = 0 ;
64425 PyObject * obj1 = 0 ;
64427 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexFlatConfig_useFloat16_set",&obj0,&obj1)) SWIG_fail;
64428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0 | 0 );
64429 if (!SWIG_IsOK(res1)) {
64430 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlatConfig_useFloat16_set" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlatConfig *""'");
64433 ecode2 = SWIG_AsVal_bool(obj1, &val2);
64434 if (!SWIG_IsOK(ecode2)) {
64435 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexFlatConfig_useFloat16_set" "', argument " "2"" of type '" "bool""'");
64437 arg2 =
static_cast< bool >(val2);
64438 if (arg1) (arg1)->useFloat16 = arg2;
64439 resultobj = SWIG_Py_Void();
64446 SWIGINTERN PyObject *_wrap_GpuIndexFlatConfig_useFloat16_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64447 PyObject *resultobj = 0;
64451 PyObject * obj0 = 0 ;
64454 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexFlatConfig_useFloat16_get",&obj0)) SWIG_fail;
64455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0 | 0 );
64456 if (!SWIG_IsOK(res1)) {
64457 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlatConfig_useFloat16_get" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlatConfig *""'");
64460 result = (bool) ((arg1)->useFloat16);
64461 resultobj = SWIG_From_bool(static_cast< bool >(result));
64468 SWIGINTERN PyObject *_wrap_GpuIndexFlatConfig_useFloat16Accumulator_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64469 PyObject *resultobj = 0;
64476 PyObject * obj0 = 0 ;
64477 PyObject * obj1 = 0 ;
64479 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexFlatConfig_useFloat16Accumulator_set",&obj0,&obj1)) SWIG_fail;
64480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0 | 0 );
64481 if (!SWIG_IsOK(res1)) {
64482 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlatConfig_useFloat16Accumulator_set" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlatConfig *""'");
64485 ecode2 = SWIG_AsVal_bool(obj1, &val2);
64486 if (!SWIG_IsOK(ecode2)) {
64487 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexFlatConfig_useFloat16Accumulator_set" "', argument " "2"" of type '" "bool""'");
64489 arg2 =
static_cast< bool >(val2);
64490 if (arg1) (arg1)->useFloat16Accumulator = arg2;
64491 resultobj = SWIG_Py_Void();
64498 SWIGINTERN PyObject *_wrap_GpuIndexFlatConfig_useFloat16Accumulator_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64499 PyObject *resultobj = 0;
64503 PyObject * obj0 = 0 ;
64506 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexFlatConfig_useFloat16Accumulator_get",&obj0)) SWIG_fail;
64507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0 | 0 );
64508 if (!SWIG_IsOK(res1)) {
64509 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlatConfig_useFloat16Accumulator_get" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlatConfig *""'");
64512 result = (bool) ((arg1)->useFloat16Accumulator);
64513 resultobj = SWIG_From_bool(static_cast< bool >(result));
64520 SWIGINTERN PyObject *_wrap_GpuIndexFlatConfig_storeTransposed_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64521 PyObject *resultobj = 0;
64528 PyObject * obj0 = 0 ;
64529 PyObject * obj1 = 0 ;
64531 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexFlatConfig_storeTransposed_set",&obj0,&obj1)) SWIG_fail;
64532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0 | 0 );
64533 if (!SWIG_IsOK(res1)) {
64534 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlatConfig_storeTransposed_set" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlatConfig *""'");
64537 ecode2 = SWIG_AsVal_bool(obj1, &val2);
64538 if (!SWIG_IsOK(ecode2)) {
64539 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexFlatConfig_storeTransposed_set" "', argument " "2"" of type '" "bool""'");
64541 arg2 =
static_cast< bool >(val2);
64542 if (arg1) (arg1)->storeTransposed = arg2;
64543 resultobj = SWIG_Py_Void();
64550 SWIGINTERN PyObject *_wrap_GpuIndexFlatConfig_storeTransposed_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64551 PyObject *resultobj = 0;
64555 PyObject * obj0 = 0 ;
64558 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexFlatConfig_storeTransposed_get",&obj0)) SWIG_fail;
64559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0 | 0 );
64560 if (!SWIG_IsOK(res1)) {
64561 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlatConfig_storeTransposed_get" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlatConfig *""'");
64564 result = (bool) ((arg1)->storeTransposed);
64565 resultobj = SWIG_From_bool(static_cast< bool >(result));
64572 SWIGINTERN PyObject *_wrap_delete_GpuIndexFlatConfig(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64573 PyObject *resultobj = 0;
64577 PyObject * obj0 = 0 ;
64579 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuIndexFlatConfig",&obj0)) SWIG_fail;
64580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, SWIG_POINTER_DISOWN | 0 );
64581 if (!SWIG_IsOK(res1)) {
64582 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuIndexFlatConfig" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlatConfig *""'");
64586 resultobj = SWIG_Py_Void();
64593 SWIGINTERN PyObject *GpuIndexFlatConfig_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64595 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
64596 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, SWIG_NewClientData(obj));
64597 return SWIG_Py_Void();
64600 SWIGINTERN PyObject *_wrap_new_GpuIndexFlat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64601 PyObject *resultobj = 0;
64611 PyObject * obj0 = 0 ;
64612 PyObject * obj1 = 0 ;
64613 PyObject * obj2 = 0 ;
64616 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_GpuIndexFlat",&obj0,&obj1,&obj2)) SWIG_fail;
64617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
64618 if (!SWIG_IsOK(res1)) {
64619 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexFlat" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
64622 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
64623 if (!SWIG_IsOK(res2)) {
64624 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_GpuIndexFlat" "', argument " "2"" of type '" "faiss::IndexFlat const *""'");
64628 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0 | 0);
64629 if (!SWIG_IsOK(res3)) {
64630 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_GpuIndexFlat" "', argument " "3"" of type '" "faiss::gpu::GpuIndexFlatConfig""'");
64633 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_GpuIndexFlat" "', argument " "3"" of type '" "faiss::gpu::GpuIndexFlatConfig""'");
64637 if (SWIG_IsNewObj(res3))
delete temp;
64641 Py_BEGIN_ALLOW_THREADS
64645 PyEval_RestoreThread(_save);
64646 PyErr_SetString(PyExc_RuntimeError, e.
what());
64649 Py_END_ALLOW_THREADS
64651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlat, SWIG_POINTER_NEW | 0 );
64658 SWIGINTERN PyObject *_wrap_new_GpuIndexFlat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64659 PyObject *resultobj = 0;
64666 PyObject * obj0 = 0 ;
64667 PyObject * obj1 = 0 ;
64670 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GpuIndexFlat",&obj0,&obj1)) SWIG_fail;
64671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
64672 if (!SWIG_IsOK(res1)) {
64673 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexFlat" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
64676 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
64677 if (!SWIG_IsOK(res2)) {
64678 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_GpuIndexFlat" "', argument " "2"" of type '" "faiss::IndexFlat const *""'");
64682 Py_BEGIN_ALLOW_THREADS
64686 PyEval_RestoreThread(_save);
64687 PyErr_SetString(PyExc_RuntimeError, e.
what());
64690 Py_END_ALLOW_THREADS
64692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlat, SWIG_POINTER_NEW | 0 );
64699 SWIGINTERN PyObject *_wrap_new_GpuIndexFlat__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64700 PyObject *resultobj = 0;
64713 PyObject * obj0 = 0 ;
64714 PyObject * obj1 = 0 ;
64715 PyObject * obj2 = 0 ;
64716 PyObject * obj3 = 0 ;
64719 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_GpuIndexFlat",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
64720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
64721 if (!SWIG_IsOK(res1)) {
64722 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexFlat" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
64725 ecode2 = SWIG_AsVal_int(obj1, &val2);
64726 if (!SWIG_IsOK(ecode2)) {
64727 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GpuIndexFlat" "', argument " "2"" of type '" "int""'");
64729 arg2 =
static_cast< int >(val2);
64730 ecode3 = SWIG_AsVal_int(obj2, &val3);
64731 if (!SWIG_IsOK(ecode3)) {
64732 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_GpuIndexFlat" "', argument " "3"" of type '" "faiss::MetricType""'");
64736 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0 | 0);
64737 if (!SWIG_IsOK(res4)) {
64738 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "new_GpuIndexFlat" "', argument " "4"" of type '" "faiss::gpu::GpuIndexFlatConfig""'");
64741 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_GpuIndexFlat" "', argument " "4"" of type '" "faiss::gpu::GpuIndexFlatConfig""'");
64745 if (SWIG_IsNewObj(res4))
delete temp;
64749 Py_BEGIN_ALLOW_THREADS
64753 PyEval_RestoreThread(_save);
64754 PyErr_SetString(PyExc_RuntimeError, e.
what());
64757 Py_END_ALLOW_THREADS
64759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlat, SWIG_POINTER_NEW | 0 );
64766 SWIGINTERN PyObject *_wrap_new_GpuIndexFlat__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64767 PyObject *resultobj = 0;
64777 PyObject * obj0 = 0 ;
64778 PyObject * obj1 = 0 ;
64779 PyObject * obj2 = 0 ;
64782 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_GpuIndexFlat",&obj0,&obj1,&obj2)) SWIG_fail;
64783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
64784 if (!SWIG_IsOK(res1)) {
64785 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexFlat" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
64788 ecode2 = SWIG_AsVal_int(obj1, &val2);
64789 if (!SWIG_IsOK(ecode2)) {
64790 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GpuIndexFlat" "', argument " "2"" of type '" "int""'");
64792 arg2 =
static_cast< int >(val2);
64793 ecode3 = SWIG_AsVal_int(obj2, &val3);
64794 if (!SWIG_IsOK(ecode3)) {
64795 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_GpuIndexFlat" "', argument " "3"" of type '" "faiss::MetricType""'");
64799 Py_BEGIN_ALLOW_THREADS
64803 PyEval_RestoreThread(_save);
64804 PyErr_SetString(PyExc_RuntimeError, e.
what());
64807 Py_END_ALLOW_THREADS
64809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlat, SWIG_POINTER_NEW | 0 );
64816 SWIGINTERN PyObject *_wrap_new_GpuIndexFlat(PyObject *
self, PyObject *args) {
64818 PyObject *argv[5] = {
64823 if (!PyTuple_Check(args)) SWIG_fail;
64824 argc = args ? PyObject_Length(args) : 0;
64825 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
64826 argv[ii] = PyTuple_GET_ITEM(args,ii);
64831 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
64832 _v = SWIG_CheckState(res);
64835 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IndexFlat, 0);
64836 _v = SWIG_CheckState(res);
64838 return _wrap_new_GpuIndexFlat__SWIG_1(
self, args);
64845 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
64846 _v = SWIG_CheckState(res);
64849 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IndexFlat, 0);
64850 _v = SWIG_CheckState(res);
64852 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0);
64853 _v = SWIG_CheckState(res);
64855 return _wrap_new_GpuIndexFlat__SWIG_0(
self, args);
64863 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
64864 _v = SWIG_CheckState(res);
64867 int res = SWIG_AsVal_int(argv[1], NULL);
64868 _v = SWIG_CheckState(res);
64872 int res = SWIG_AsVal_int(argv[2], NULL);
64873 _v = SWIG_CheckState(res);
64876 return _wrap_new_GpuIndexFlat__SWIG_3(
self, args);
64884 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
64885 _v = SWIG_CheckState(res);
64888 int res = SWIG_AsVal_int(argv[1], NULL);
64889 _v = SWIG_CheckState(res);
64893 int res = SWIG_AsVal_int(argv[2], NULL);
64894 _v = SWIG_CheckState(res);
64897 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0);
64898 _v = SWIG_CheckState(res);
64900 return _wrap_new_GpuIndexFlat__SWIG_2(
self, args);
64908 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_GpuIndexFlat'.\n"
64909 " Possible C/C++ prototypes are:\n"
64910 " faiss::gpu::GpuIndexFlat::GpuIndexFlat(faiss::gpu::GpuResources *,faiss::IndexFlat const *,faiss::gpu::GpuIndexFlatConfig)\n"
64911 " faiss::gpu::GpuIndexFlat::GpuIndexFlat(faiss::gpu::GpuResources *,faiss::IndexFlat const *)\n"
64912 " faiss::gpu::GpuIndexFlat::GpuIndexFlat(faiss::gpu::GpuResources *,int,faiss::MetricType,faiss::gpu::GpuIndexFlatConfig)\n"
64913 " faiss::gpu::GpuIndexFlat::GpuIndexFlat(faiss::gpu::GpuResources *,int,faiss::MetricType)\n");
64918 SWIGINTERN PyObject *_wrap_delete_GpuIndexFlat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64919 PyObject *resultobj = 0;
64923 PyObject * obj0 = 0 ;
64925 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuIndexFlat",&obj0)) SWIG_fail;
64926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlat, SWIG_POINTER_DISOWN | 0 );
64927 if (!SWIG_IsOK(res1)) {
64928 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuIndexFlat" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlat *""'");
64932 Py_BEGIN_ALLOW_THREADS
64936 PyEval_RestoreThread(_save);
64937 PyErr_SetString(PyExc_RuntimeError, e.
what());
64940 Py_END_ALLOW_THREADS
64942 resultobj = SWIG_Py_Void();
64949 SWIGINTERN PyObject *_wrap_GpuIndexFlat_setMinPagingSize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64950 PyObject *resultobj = 0;
64957 PyObject * obj0 = 0 ;
64958 PyObject * obj1 = 0 ;
64960 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexFlat_setMinPagingSize",&obj0,&obj1)) SWIG_fail;
64961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlat, 0 | 0 );
64962 if (!SWIG_IsOK(res1)) {
64963 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlat_setMinPagingSize" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlat *""'");
64966 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
64967 if (!SWIG_IsOK(ecode2)) {
64968 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexFlat_setMinPagingSize" "', argument " "2"" of type '" "size_t""'");
64970 arg2 =
static_cast< size_t >(val2);
64972 Py_BEGIN_ALLOW_THREADS
64974 (arg1)->setMinPagingSize(arg2);
64976 PyEval_RestoreThread(_save);
64977 PyErr_SetString(PyExc_RuntimeError, e.
what());
64980 Py_END_ALLOW_THREADS
64982 resultobj = SWIG_Py_Void();
64989 SWIGINTERN PyObject *_wrap_GpuIndexFlat_getMinPagingSize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
64990 PyObject *resultobj = 0;
64994 PyObject * obj0 = 0 ;
64997 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexFlat_getMinPagingSize",&obj0)) SWIG_fail;
64998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlat, 0 | 0 );
64999 if (!SWIG_IsOK(res1)) {
65000 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlat_getMinPagingSize" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlat const *""'");
65004 Py_BEGIN_ALLOW_THREADS
65008 PyEval_RestoreThread(_save);
65009 PyErr_SetString(PyExc_RuntimeError, e.
what());
65012 Py_END_ALLOW_THREADS
65014 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
65021 SWIGINTERN PyObject *_wrap_GpuIndexFlat_copyFrom(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65022 PyObject *resultobj = 0;
65029 PyObject * obj0 = 0 ;
65030 PyObject * obj1 = 0 ;
65032 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexFlat_copyFrom",&obj0,&obj1)) SWIG_fail;
65033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlat, 0 | 0 );
65034 if (!SWIG_IsOK(res1)) {
65035 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlat_copyFrom" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlat *""'");
65038 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
65039 if (!SWIG_IsOK(res2)) {
65040 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexFlat_copyFrom" "', argument " "2"" of type '" "faiss::IndexFlat const *""'");
65044 Py_BEGIN_ALLOW_THREADS
65048 PyEval_RestoreThread(_save);
65049 PyErr_SetString(PyExc_RuntimeError, e.
what());
65052 Py_END_ALLOW_THREADS
65054 resultobj = SWIG_Py_Void();
65061 SWIGINTERN PyObject *_wrap_GpuIndexFlat_copyTo(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65062 PyObject *resultobj = 0;
65069 PyObject * obj0 = 0 ;
65070 PyObject * obj1 = 0 ;
65072 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexFlat_copyTo",&obj0,&obj1)) SWIG_fail;
65073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlat, 0 | 0 );
65074 if (!SWIG_IsOK(res1)) {
65075 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlat_copyTo" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlat const *""'");
65078 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexFlat, 0 | 0 );
65079 if (!SWIG_IsOK(res2)) {
65080 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexFlat_copyTo" "', argument " "2"" of type '" "faiss::IndexFlat *""'");
65084 Py_BEGIN_ALLOW_THREADS
65088 PyEval_RestoreThread(_save);
65089 PyErr_SetString(PyExc_RuntimeError, e.
what());
65092 Py_END_ALLOW_THREADS
65094 resultobj = SWIG_Py_Void();
65101 SWIGINTERN PyObject *_wrap_GpuIndexFlat_getNumVecs(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65102 PyObject *resultobj = 0;
65106 PyObject * obj0 = 0 ;
65109 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexFlat_getNumVecs",&obj0)) SWIG_fail;
65110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlat, 0 | 0 );
65111 if (!SWIG_IsOK(res1)) {
65112 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlat_getNumVecs" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlat const *""'");
65116 Py_BEGIN_ALLOW_THREADS
65120 PyEval_RestoreThread(_save);
65121 PyErr_SetString(PyExc_RuntimeError, e.
what());
65124 Py_END_ALLOW_THREADS
65126 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
65133 SWIGINTERN PyObject *_wrap_GpuIndexFlat_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65134 PyObject *resultobj = 0;
65138 PyObject * obj0 = 0 ;
65140 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexFlat_reset",&obj0)) SWIG_fail;
65141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlat, 0 | 0 );
65142 if (!SWIG_IsOK(res1)) {
65143 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlat_reset" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlat *""'");
65147 Py_BEGIN_ALLOW_THREADS
65151 PyEval_RestoreThread(_save);
65152 PyErr_SetString(PyExc_RuntimeError, e.
what());
65155 Py_END_ALLOW_THREADS
65157 resultobj = SWIG_Py_Void();
65164 SWIGINTERN PyObject *_wrap_GpuIndexFlat_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65165 PyObject *resultobj = 0;
65168 float *arg3 = (
float *) 0 ;
65175 PyObject * obj0 = 0 ;
65176 PyObject * obj1 = 0 ;
65177 PyObject * obj2 = 0 ;
65179 if (!PyArg_ParseTuple(args,(
char *)
"OOO:GpuIndexFlat_train",&obj0,&obj1,&obj2)) SWIG_fail;
65180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlat, 0 | 0 );
65181 if (!SWIG_IsOK(res1)) {
65182 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlat_train" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlat *""'");
65185 ecode2 = SWIG_AsVal_long(obj1, &val2);
65186 if (!SWIG_IsOK(ecode2)) {
65187 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexFlat_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
65190 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
65191 if (!SWIG_IsOK(res3)) {
65192 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "GpuIndexFlat_train" "', argument " "3"" of type '" "float const *""'");
65194 arg3 =
reinterpret_cast< float *
>(argp3);
65196 Py_BEGIN_ALLOW_THREADS
65198 (arg1)->train(arg2,(
float const *)arg3);
65200 PyEval_RestoreThread(_save);
65201 PyErr_SetString(PyExc_RuntimeError, e.
what());
65204 Py_END_ALLOW_THREADS
65206 resultobj = SWIG_Py_Void();
65213 SWIGINTERN PyObject *_wrap_GpuIndexFlat_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65214 PyObject *resultobj = 0;
65217 float *arg3 = (
float *) 0 ;
65224 PyObject * obj0 = 0 ;
65225 PyObject * obj1 = 0 ;
65226 PyObject * obj2 = 0 ;
65228 if (!PyArg_ParseTuple(args,(
char *)
"OOO:GpuIndexFlat_add",&obj0,&obj1,&obj2)) SWIG_fail;
65229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlat, 0 | 0 );
65230 if (!SWIG_IsOK(res1)) {
65231 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlat_add" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlat *""'");
65234 ecode2 = SWIG_AsVal_long(obj1, &val2);
65235 if (!SWIG_IsOK(ecode2)) {
65236 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexFlat_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
65239 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
65240 if (!SWIG_IsOK(res3)) {
65241 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "GpuIndexFlat_add" "', argument " "3"" of type '" "float const *""'");
65243 arg3 =
reinterpret_cast< float *
>(argp3);
65245 Py_BEGIN_ALLOW_THREADS
65247 (arg1)->add(arg2,(
float const *)arg3);
65249 PyEval_RestoreThread(_save);
65250 PyErr_SetString(PyExc_RuntimeError, e.
what());
65253 Py_END_ALLOW_THREADS
65255 resultobj = SWIG_Py_Void();
65262 SWIGINTERN PyObject *_wrap_GpuIndexFlat_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65263 PyObject *resultobj = 0;
65266 float *arg3 = (
float *) 0 ;
65268 float *arg5 = (
float *) 0 ;
65282 PyObject * obj0 = 0 ;
65283 PyObject * obj1 = 0 ;
65284 PyObject * obj2 = 0 ;
65285 PyObject * obj3 = 0 ;
65286 PyObject * obj4 = 0 ;
65287 PyObject * obj5 = 0 ;
65289 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:GpuIndexFlat_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
65290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlat, 0 | 0 );
65291 if (!SWIG_IsOK(res1)) {
65292 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlat_search" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlat const *""'");
65295 ecode2 = SWIG_AsVal_long(obj1, &val2);
65296 if (!SWIG_IsOK(ecode2)) {
65297 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexFlat_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
65300 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
65301 if (!SWIG_IsOK(res3)) {
65302 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "GpuIndexFlat_search" "', argument " "3"" of type '" "float const *""'");
65304 arg3 =
reinterpret_cast< float *
>(argp3);
65305 ecode4 = SWIG_AsVal_long(obj3, &val4);
65306 if (!SWIG_IsOK(ecode4)) {
65307 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "GpuIndexFlat_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
65310 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
65311 if (!SWIG_IsOK(res5)) {
65312 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "GpuIndexFlat_search" "', argument " "5"" of type '" "float *""'");
65314 arg5 =
reinterpret_cast< float *
>(argp5);
65315 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
65316 if (!SWIG_IsOK(res6)) {
65317 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "GpuIndexFlat_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
65321 Py_BEGIN_ALLOW_THREADS
65325 PyEval_RestoreThread(_save);
65326 PyErr_SetString(PyExc_RuntimeError, e.
what());
65329 Py_END_ALLOW_THREADS
65331 resultobj = SWIG_Py_Void();
65338 SWIGINTERN PyObject *_wrap_GpuIndexFlat_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65339 PyObject *resultobj = 0;
65342 float *arg3 = (
float *) 0 ;
65349 PyObject * obj0 = 0 ;
65350 PyObject * obj1 = 0 ;
65351 PyObject * obj2 = 0 ;
65353 if (!PyArg_ParseTuple(args,(
char *)
"OOO:GpuIndexFlat_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
65354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlat, 0 | 0 );
65355 if (!SWIG_IsOK(res1)) {
65356 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlat_reconstruct" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlat const *""'");
65359 ecode2 = SWIG_AsVal_long(obj1, &val2);
65360 if (!SWIG_IsOK(ecode2)) {
65361 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexFlat_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
65364 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
65365 if (!SWIG_IsOK(res3)) {
65366 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "GpuIndexFlat_reconstruct" "', argument " "3"" of type '" "float *""'");
65368 arg3 =
reinterpret_cast< float *
>(argp3);
65370 Py_BEGIN_ALLOW_THREADS
65374 PyEval_RestoreThread(_save);
65375 PyErr_SetString(PyExc_RuntimeError, e.
what());
65378 Py_END_ALLOW_THREADS
65380 resultobj = SWIG_Py_Void();
65387 SWIGINTERN PyObject *_wrap_GpuIndexFlat_reconstruct_n(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65388 PyObject *resultobj = 0;
65392 float *arg4 = (
float *) 0 ;
65401 PyObject * obj0 = 0 ;
65402 PyObject * obj1 = 0 ;
65403 PyObject * obj2 = 0 ;
65404 PyObject * obj3 = 0 ;
65406 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:GpuIndexFlat_reconstruct_n",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
65407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlat, 0 | 0 );
65408 if (!SWIG_IsOK(res1)) {
65409 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlat_reconstruct_n" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlat const *""'");
65412 ecode2 = SWIG_AsVal_long(obj1, &val2);
65413 if (!SWIG_IsOK(ecode2)) {
65414 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexFlat_reconstruct_n" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
65417 ecode3 = SWIG_AsVal_long(obj2, &val3);
65418 if (!SWIG_IsOK(ecode3)) {
65419 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "GpuIndexFlat_reconstruct_n" "', argument " "3"" of type '" "faiss::Index::idx_t""'");
65422 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
65423 if (!SWIG_IsOK(res4)) {
65424 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "GpuIndexFlat_reconstruct_n" "', argument " "4"" of type '" "float *""'");
65426 arg4 =
reinterpret_cast< float *
>(argp4);
65428 Py_BEGIN_ALLOW_THREADS
65432 PyEval_RestoreThread(_save);
65433 PyErr_SetString(PyExc_RuntimeError, e.
what());
65436 Py_END_ALLOW_THREADS
65438 resultobj = SWIG_Py_Void();
65445 SWIGINTERN PyObject *_wrap_GpuIndexFlat_getGpuData(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65446 PyObject *resultobj = 0;
65450 PyObject * obj0 = 0 ;
65453 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexFlat_getGpuData",&obj0)) SWIG_fail;
65454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlat, 0 | 0 );
65455 if (!SWIG_IsOK(res1)) {
65456 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlat_getGpuData" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlat *""'");
65460 Py_BEGIN_ALLOW_THREADS
65464 PyEval_RestoreThread(_save);
65465 PyErr_SetString(PyExc_RuntimeError, e.
what());
65468 Py_END_ALLOW_THREADS
65470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__FlatIndex, 0 | 0 );
65477 SWIGINTERN PyObject *GpuIndexFlat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65479 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
65480 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuIndexFlat, SWIG_NewClientData(obj));
65481 return SWIG_Py_Void();
65484 SWIGINTERN PyObject *_wrap_new_GpuIndexFlatL2__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65485 PyObject *resultobj = 0;
65495 PyObject * obj0 = 0 ;
65496 PyObject * obj1 = 0 ;
65497 PyObject * obj2 = 0 ;
65500 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_GpuIndexFlatL2",&obj0,&obj1,&obj2)) SWIG_fail;
65501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
65502 if (!SWIG_IsOK(res1)) {
65503 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexFlatL2" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
65506 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexFlatL2, 0 | 0 );
65507 if (!SWIG_IsOK(res2)) {
65508 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_GpuIndexFlatL2" "', argument " "2"" of type '" "faiss::IndexFlatL2 *""'");
65512 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0 | 0);
65513 if (!SWIG_IsOK(res3)) {
65514 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_GpuIndexFlatL2" "', argument " "3"" of type '" "faiss::gpu::GpuIndexFlatConfig""'");
65517 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_GpuIndexFlatL2" "', argument " "3"" of type '" "faiss::gpu::GpuIndexFlatConfig""'");
65521 if (SWIG_IsNewObj(res3))
delete temp;
65525 Py_BEGIN_ALLOW_THREADS
65529 PyEval_RestoreThread(_save);
65530 PyErr_SetString(PyExc_RuntimeError, e.
what());
65533 Py_END_ALLOW_THREADS
65535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlatL2, SWIG_POINTER_NEW | 0 );
65542 SWIGINTERN PyObject *_wrap_new_GpuIndexFlatL2__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65543 PyObject *resultobj = 0;
65550 PyObject * obj0 = 0 ;
65551 PyObject * obj1 = 0 ;
65554 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GpuIndexFlatL2",&obj0,&obj1)) SWIG_fail;
65555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
65556 if (!SWIG_IsOK(res1)) {
65557 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexFlatL2" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
65560 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexFlatL2, 0 | 0 );
65561 if (!SWIG_IsOK(res2)) {
65562 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_GpuIndexFlatL2" "', argument " "2"" of type '" "faiss::IndexFlatL2 *""'");
65566 Py_BEGIN_ALLOW_THREADS
65570 PyEval_RestoreThread(_save);
65571 PyErr_SetString(PyExc_RuntimeError, e.
what());
65574 Py_END_ALLOW_THREADS
65576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlatL2, SWIG_POINTER_NEW | 0 );
65583 SWIGINTERN PyObject *_wrap_new_GpuIndexFlatL2__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65584 PyObject *resultobj = 0;
65594 PyObject * obj0 = 0 ;
65595 PyObject * obj1 = 0 ;
65596 PyObject * obj2 = 0 ;
65599 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_GpuIndexFlatL2",&obj0,&obj1,&obj2)) SWIG_fail;
65600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
65601 if (!SWIG_IsOK(res1)) {
65602 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexFlatL2" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
65605 ecode2 = SWIG_AsVal_int(obj1, &val2);
65606 if (!SWIG_IsOK(ecode2)) {
65607 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GpuIndexFlatL2" "', argument " "2"" of type '" "int""'");
65609 arg2 =
static_cast< int >(val2);
65611 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0 | 0);
65612 if (!SWIG_IsOK(res3)) {
65613 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_GpuIndexFlatL2" "', argument " "3"" of type '" "faiss::gpu::GpuIndexFlatConfig""'");
65616 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_GpuIndexFlatL2" "', argument " "3"" of type '" "faiss::gpu::GpuIndexFlatConfig""'");
65620 if (SWIG_IsNewObj(res3))
delete temp;
65624 Py_BEGIN_ALLOW_THREADS
65628 PyEval_RestoreThread(_save);
65629 PyErr_SetString(PyExc_RuntimeError, e.
what());
65632 Py_END_ALLOW_THREADS
65634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlatL2, SWIG_POINTER_NEW | 0 );
65641 SWIGINTERN PyObject *_wrap_new_GpuIndexFlatL2__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65642 PyObject *resultobj = 0;
65649 PyObject * obj0 = 0 ;
65650 PyObject * obj1 = 0 ;
65653 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GpuIndexFlatL2",&obj0,&obj1)) SWIG_fail;
65654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
65655 if (!SWIG_IsOK(res1)) {
65656 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexFlatL2" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
65659 ecode2 = SWIG_AsVal_int(obj1, &val2);
65660 if (!SWIG_IsOK(ecode2)) {
65661 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GpuIndexFlatL2" "', argument " "2"" of type '" "int""'");
65663 arg2 =
static_cast< int >(val2);
65665 Py_BEGIN_ALLOW_THREADS
65669 PyEval_RestoreThread(_save);
65670 PyErr_SetString(PyExc_RuntimeError, e.
what());
65673 Py_END_ALLOW_THREADS
65675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlatL2, SWIG_POINTER_NEW | 0 );
65682 SWIGINTERN PyObject *_wrap_new_GpuIndexFlatL2(PyObject *
self, PyObject *args) {
65684 PyObject *argv[4] = {
65689 if (!PyTuple_Check(args)) SWIG_fail;
65690 argc = args ? PyObject_Length(args) : 0;
65691 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
65692 argv[ii] = PyTuple_GET_ITEM(args,ii);
65697 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
65698 _v = SWIG_CheckState(res);
65701 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IndexFlatL2, 0);
65702 _v = SWIG_CheckState(res);
65704 return _wrap_new_GpuIndexFlatL2__SWIG_1(
self, args);
65711 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
65712 _v = SWIG_CheckState(res);
65715 int res = SWIG_AsVal_int(argv[1], NULL);
65716 _v = SWIG_CheckState(res);
65719 return _wrap_new_GpuIndexFlatL2__SWIG_3(
self, args);
65726 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
65727 _v = SWIG_CheckState(res);
65730 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IndexFlatL2, 0);
65731 _v = SWIG_CheckState(res);
65733 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0);
65734 _v = SWIG_CheckState(res);
65736 return _wrap_new_GpuIndexFlatL2__SWIG_0(
self, args);
65744 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
65745 _v = SWIG_CheckState(res);
65748 int res = SWIG_AsVal_int(argv[1], NULL);
65749 _v = SWIG_CheckState(res);
65752 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0);
65753 _v = SWIG_CheckState(res);
65755 return _wrap_new_GpuIndexFlatL2__SWIG_2(
self, args);
65762 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_GpuIndexFlatL2'.\n"
65763 " Possible C/C++ prototypes are:\n"
65764 " faiss::gpu::GpuIndexFlatL2::GpuIndexFlatL2(faiss::gpu::GpuResources *,faiss::IndexFlatL2 *,faiss::gpu::GpuIndexFlatConfig)\n"
65765 " faiss::gpu::GpuIndexFlatL2::GpuIndexFlatL2(faiss::gpu::GpuResources *,faiss::IndexFlatL2 *)\n"
65766 " faiss::gpu::GpuIndexFlatL2::GpuIndexFlatL2(faiss::gpu::GpuResources *,int,faiss::gpu::GpuIndexFlatConfig)\n"
65767 " faiss::gpu::GpuIndexFlatL2::GpuIndexFlatL2(faiss::gpu::GpuResources *,int)\n");
65772 SWIGINTERN PyObject *_wrap_GpuIndexFlatL2_copyFrom(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65773 PyObject *resultobj = 0;
65780 PyObject * obj0 = 0 ;
65781 PyObject * obj1 = 0 ;
65783 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexFlatL2_copyFrom",&obj0,&obj1)) SWIG_fail;
65784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlatL2, 0 | 0 );
65785 if (!SWIG_IsOK(res1)) {
65786 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlatL2_copyFrom" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlatL2 *""'");
65789 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexFlatL2, 0 | 0 );
65790 if (!SWIG_IsOK(res2)) {
65791 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexFlatL2_copyFrom" "', argument " "2"" of type '" "faiss::IndexFlatL2 *""'");
65795 Py_BEGIN_ALLOW_THREADS
65797 (arg1)->copyFrom(arg2);
65799 PyEval_RestoreThread(_save);
65800 PyErr_SetString(PyExc_RuntimeError, e.
what());
65803 Py_END_ALLOW_THREADS
65805 resultobj = SWIG_Py_Void();
65812 SWIGINTERN PyObject *_wrap_GpuIndexFlatL2_copyTo(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65813 PyObject *resultobj = 0;
65820 PyObject * obj0 = 0 ;
65821 PyObject * obj1 = 0 ;
65823 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexFlatL2_copyTo",&obj0,&obj1)) SWIG_fail;
65824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlatL2, 0 | 0 );
65825 if (!SWIG_IsOK(res1)) {
65826 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlatL2_copyTo" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlatL2 *""'");
65829 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexFlatL2, 0 | 0 );
65830 if (!SWIG_IsOK(res2)) {
65831 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexFlatL2_copyTo" "', argument " "2"" of type '" "faiss::IndexFlatL2 *""'");
65835 Py_BEGIN_ALLOW_THREADS
65837 (arg1)->copyTo(arg2);
65839 PyEval_RestoreThread(_save);
65840 PyErr_SetString(PyExc_RuntimeError, e.
what());
65843 Py_END_ALLOW_THREADS
65845 resultobj = SWIG_Py_Void();
65852 SWIGINTERN PyObject *_wrap_delete_GpuIndexFlatL2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65853 PyObject *resultobj = 0;
65857 PyObject * obj0 = 0 ;
65859 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuIndexFlatL2",&obj0)) SWIG_fail;
65860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlatL2, SWIG_POINTER_DISOWN | 0 );
65861 if (!SWIG_IsOK(res1)) {
65862 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuIndexFlatL2" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlatL2 *""'");
65866 resultobj = SWIG_Py_Void();
65873 SWIGINTERN PyObject *GpuIndexFlatL2_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65875 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
65876 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuIndexFlatL2, SWIG_NewClientData(obj));
65877 return SWIG_Py_Void();
65880 SWIGINTERN PyObject *_wrap_new_GpuIndexFlatIP__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65881 PyObject *resultobj = 0;
65891 PyObject * obj0 = 0 ;
65892 PyObject * obj1 = 0 ;
65893 PyObject * obj2 = 0 ;
65896 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_GpuIndexFlatIP",&obj0,&obj1,&obj2)) SWIG_fail;
65897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
65898 if (!SWIG_IsOK(res1)) {
65899 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexFlatIP" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
65902 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexFlatIP, 0 | 0 );
65903 if (!SWIG_IsOK(res2)) {
65904 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_GpuIndexFlatIP" "', argument " "2"" of type '" "faiss::IndexFlatIP *""'");
65908 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0 | 0);
65909 if (!SWIG_IsOK(res3)) {
65910 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_GpuIndexFlatIP" "', argument " "3"" of type '" "faiss::gpu::GpuIndexFlatConfig""'");
65913 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_GpuIndexFlatIP" "', argument " "3"" of type '" "faiss::gpu::GpuIndexFlatConfig""'");
65917 if (SWIG_IsNewObj(res3))
delete temp;
65921 Py_BEGIN_ALLOW_THREADS
65925 PyEval_RestoreThread(_save);
65926 PyErr_SetString(PyExc_RuntimeError, e.
what());
65929 Py_END_ALLOW_THREADS
65931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlatIP, SWIG_POINTER_NEW | 0 );
65938 SWIGINTERN PyObject *_wrap_new_GpuIndexFlatIP__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65939 PyObject *resultobj = 0;
65946 PyObject * obj0 = 0 ;
65947 PyObject * obj1 = 0 ;
65950 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GpuIndexFlatIP",&obj0,&obj1)) SWIG_fail;
65951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
65952 if (!SWIG_IsOK(res1)) {
65953 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexFlatIP" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
65956 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexFlatIP, 0 | 0 );
65957 if (!SWIG_IsOK(res2)) {
65958 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_GpuIndexFlatIP" "', argument " "2"" of type '" "faiss::IndexFlatIP *""'");
65962 Py_BEGIN_ALLOW_THREADS
65966 PyEval_RestoreThread(_save);
65967 PyErr_SetString(PyExc_RuntimeError, e.
what());
65970 Py_END_ALLOW_THREADS
65972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlatIP, SWIG_POINTER_NEW | 0 );
65979 SWIGINTERN PyObject *_wrap_new_GpuIndexFlatIP__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
65980 PyObject *resultobj = 0;
65990 PyObject * obj0 = 0 ;
65991 PyObject * obj1 = 0 ;
65992 PyObject * obj2 = 0 ;
65995 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_GpuIndexFlatIP",&obj0,&obj1,&obj2)) SWIG_fail;
65996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
65997 if (!SWIG_IsOK(res1)) {
65998 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexFlatIP" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
66001 ecode2 = SWIG_AsVal_int(obj1, &val2);
66002 if (!SWIG_IsOK(ecode2)) {
66003 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GpuIndexFlatIP" "', argument " "2"" of type '" "int""'");
66005 arg2 =
static_cast< int >(val2);
66007 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0 | 0);
66008 if (!SWIG_IsOK(res3)) {
66009 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_GpuIndexFlatIP" "', argument " "3"" of type '" "faiss::gpu::GpuIndexFlatConfig""'");
66012 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_GpuIndexFlatIP" "', argument " "3"" of type '" "faiss::gpu::GpuIndexFlatConfig""'");
66016 if (SWIG_IsNewObj(res3))
delete temp;
66020 Py_BEGIN_ALLOW_THREADS
66024 PyEval_RestoreThread(_save);
66025 PyErr_SetString(PyExc_RuntimeError, e.
what());
66028 Py_END_ALLOW_THREADS
66030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlatIP, SWIG_POINTER_NEW | 0 );
66037 SWIGINTERN PyObject *_wrap_new_GpuIndexFlatIP__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66038 PyObject *resultobj = 0;
66045 PyObject * obj0 = 0 ;
66046 PyObject * obj1 = 0 ;
66049 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GpuIndexFlatIP",&obj0,&obj1)) SWIG_fail;
66050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
66051 if (!SWIG_IsOK(res1)) {
66052 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexFlatIP" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
66055 ecode2 = SWIG_AsVal_int(obj1, &val2);
66056 if (!SWIG_IsOK(ecode2)) {
66057 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GpuIndexFlatIP" "', argument " "2"" of type '" "int""'");
66059 arg2 =
static_cast< int >(val2);
66061 Py_BEGIN_ALLOW_THREADS
66065 PyEval_RestoreThread(_save);
66066 PyErr_SetString(PyExc_RuntimeError, e.
what());
66069 Py_END_ALLOW_THREADS
66071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlatIP, SWIG_POINTER_NEW | 0 );
66078 SWIGINTERN PyObject *_wrap_new_GpuIndexFlatIP(PyObject *
self, PyObject *args) {
66080 PyObject *argv[4] = {
66085 if (!PyTuple_Check(args)) SWIG_fail;
66086 argc = args ? PyObject_Length(args) : 0;
66087 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
66088 argv[ii] = PyTuple_GET_ITEM(args,ii);
66093 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
66094 _v = SWIG_CheckState(res);
66097 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IndexFlatIP, 0);
66098 _v = SWIG_CheckState(res);
66100 return _wrap_new_GpuIndexFlatIP__SWIG_1(
self, args);
66107 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
66108 _v = SWIG_CheckState(res);
66111 int res = SWIG_AsVal_int(argv[1], NULL);
66112 _v = SWIG_CheckState(res);
66115 return _wrap_new_GpuIndexFlatIP__SWIG_3(
self, args);
66122 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
66123 _v = SWIG_CheckState(res);
66126 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IndexFlatIP, 0);
66127 _v = SWIG_CheckState(res);
66129 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0);
66130 _v = SWIG_CheckState(res);
66132 return _wrap_new_GpuIndexFlatIP__SWIG_0(
self, args);
66140 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
66141 _v = SWIG_CheckState(res);
66144 int res = SWIG_AsVal_int(argv[1], NULL);
66145 _v = SWIG_CheckState(res);
66148 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0);
66149 _v = SWIG_CheckState(res);
66151 return _wrap_new_GpuIndexFlatIP__SWIG_2(
self, args);
66158 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_GpuIndexFlatIP'.\n"
66159 " Possible C/C++ prototypes are:\n"
66160 " faiss::gpu::GpuIndexFlatIP::GpuIndexFlatIP(faiss::gpu::GpuResources *,faiss::IndexFlatIP *,faiss::gpu::GpuIndexFlatConfig)\n"
66161 " faiss::gpu::GpuIndexFlatIP::GpuIndexFlatIP(faiss::gpu::GpuResources *,faiss::IndexFlatIP *)\n"
66162 " faiss::gpu::GpuIndexFlatIP::GpuIndexFlatIP(faiss::gpu::GpuResources *,int,faiss::gpu::GpuIndexFlatConfig)\n"
66163 " faiss::gpu::GpuIndexFlatIP::GpuIndexFlatIP(faiss::gpu::GpuResources *,int)\n");
66168 SWIGINTERN PyObject *_wrap_GpuIndexFlatIP_copyFrom(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66169 PyObject *resultobj = 0;
66176 PyObject * obj0 = 0 ;
66177 PyObject * obj1 = 0 ;
66179 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexFlatIP_copyFrom",&obj0,&obj1)) SWIG_fail;
66180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlatIP, 0 | 0 );
66181 if (!SWIG_IsOK(res1)) {
66182 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlatIP_copyFrom" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlatIP *""'");
66185 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexFlatIP, 0 | 0 );
66186 if (!SWIG_IsOK(res2)) {
66187 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexFlatIP_copyFrom" "', argument " "2"" of type '" "faiss::IndexFlatIP *""'");
66191 Py_BEGIN_ALLOW_THREADS
66193 (arg1)->copyFrom(arg2);
66195 PyEval_RestoreThread(_save);
66196 PyErr_SetString(PyExc_RuntimeError, e.
what());
66199 Py_END_ALLOW_THREADS
66201 resultobj = SWIG_Py_Void();
66208 SWIGINTERN PyObject *_wrap_GpuIndexFlatIP_copyTo(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66209 PyObject *resultobj = 0;
66216 PyObject * obj0 = 0 ;
66217 PyObject * obj1 = 0 ;
66219 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexFlatIP_copyTo",&obj0,&obj1)) SWIG_fail;
66220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlatIP, 0 | 0 );
66221 if (!SWIG_IsOK(res1)) {
66222 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexFlatIP_copyTo" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlatIP *""'");
66225 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexFlatIP, 0 | 0 );
66226 if (!SWIG_IsOK(res2)) {
66227 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexFlatIP_copyTo" "', argument " "2"" of type '" "faiss::IndexFlatIP *""'");
66231 Py_BEGIN_ALLOW_THREADS
66233 (arg1)->copyTo(arg2);
66235 PyEval_RestoreThread(_save);
66236 PyErr_SetString(PyExc_RuntimeError, e.
what());
66239 Py_END_ALLOW_THREADS
66241 resultobj = SWIG_Py_Void();
66248 SWIGINTERN PyObject *_wrap_delete_GpuIndexFlatIP(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66249 PyObject *resultobj = 0;
66253 PyObject * obj0 = 0 ;
66255 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuIndexFlatIP",&obj0)) SWIG_fail;
66256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexFlatIP, SWIG_POINTER_DISOWN | 0 );
66257 if (!SWIG_IsOK(res1)) {
66258 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuIndexFlatIP" "', argument " "1"" of type '" "faiss::gpu::GpuIndexFlatIP *""'");
66262 resultobj = SWIG_Py_Void();
66269 SWIGINTERN PyObject *GpuIndexFlatIP_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66271 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
66272 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuIndexFlatIP, SWIG_NewClientData(obj));
66273 return SWIG_Py_Void();
66276 SWIGINTERN PyObject *_wrap_new_GpuIndexIVFConfig(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66277 PyObject *resultobj = 0;
66280 if (!PyArg_ParseTuple(args,(
char *)
":new_GpuIndexIVFConfig")) SWIG_fail;
66282 Py_BEGIN_ALLOW_THREADS
66286 PyEval_RestoreThread(_save);
66287 PyErr_SetString(PyExc_RuntimeError, e.
what());
66290 Py_END_ALLOW_THREADS
66292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexIVFConfig, SWIG_POINTER_NEW | 0 );
66299 SWIGINTERN PyObject *_wrap_GpuIndexIVFConfig_indicesOptions_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66300 PyObject *resultobj = 0;
66302 faiss::gpu::IndicesOptions arg2 ;
66307 PyObject * obj0 = 0 ;
66308 PyObject * obj1 = 0 ;
66310 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFConfig_indicesOptions_set",&obj0,&obj1)) SWIG_fail;
66311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFConfig, 0 | 0 );
66312 if (!SWIG_IsOK(res1)) {
66313 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFConfig_indicesOptions_set" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFConfig *""'");
66316 ecode2 = SWIG_AsVal_int(obj1, &val2);
66317 if (!SWIG_IsOK(ecode2)) {
66318 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexIVFConfig_indicesOptions_set" "', argument " "2"" of type '" "faiss::gpu::IndicesOptions""'");
66320 arg2 =
static_cast< faiss::gpu::IndicesOptions
>(val2);
66321 if (arg1) (arg1)->indicesOptions = arg2;
66322 resultobj = SWIG_Py_Void();
66329 SWIGINTERN PyObject *_wrap_GpuIndexIVFConfig_indicesOptions_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66330 PyObject *resultobj = 0;
66334 PyObject * obj0 = 0 ;
66335 faiss::gpu::IndicesOptions result;
66337 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVFConfig_indicesOptions_get",&obj0)) SWIG_fail;
66338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFConfig, 0 | 0 );
66339 if (!SWIG_IsOK(res1)) {
66340 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFConfig_indicesOptions_get" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFConfig *""'");
66343 result = (faiss::gpu::IndicesOptions) ((arg1)->indicesOptions);
66344 resultobj = SWIG_From_int(static_cast< int >(result));
66351 SWIGINTERN PyObject *_wrap_GpuIndexIVFConfig_flatConfig_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66352 PyObject *resultobj = 0;
66359 PyObject * obj0 = 0 ;
66360 PyObject * obj1 = 0 ;
66362 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFConfig_flatConfig_set",&obj0,&obj1)) SWIG_fail;
66363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFConfig, 0 | 0 );
66364 if (!SWIG_IsOK(res1)) {
66365 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFConfig_flatConfig_set" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFConfig *""'");
66368 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0 | 0 );
66369 if (!SWIG_IsOK(res2)) {
66370 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexIVFConfig_flatConfig_set" "', argument " "2"" of type '" "faiss::gpu::GpuIndexFlatConfig *""'");
66373 if (arg1) (arg1)->flatConfig = *arg2;
66374 resultobj = SWIG_Py_Void();
66381 SWIGINTERN PyObject *_wrap_GpuIndexIVFConfig_flatConfig_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66382 PyObject *resultobj = 0;
66386 PyObject * obj0 = 0 ;
66389 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVFConfig_flatConfig_get",&obj0)) SWIG_fail;
66390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFConfig, 0 | 0 );
66391 if (!SWIG_IsOK(res1)) {
66392 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFConfig_flatConfig_get" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFConfig *""'");
66396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlatConfig, 0 | 0 );
66403 SWIGINTERN PyObject *_wrap_delete_GpuIndexIVFConfig(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66404 PyObject *resultobj = 0;
66408 PyObject * obj0 = 0 ;
66410 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuIndexIVFConfig",&obj0)) SWIG_fail;
66411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFConfig, SWIG_POINTER_DISOWN | 0 );
66412 if (!SWIG_IsOK(res1)) {
66413 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuIndexIVFConfig" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFConfig *""'");
66417 resultobj = SWIG_Py_Void();
66424 SWIGINTERN PyObject *GpuIndexIVFConfig_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66426 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
66427 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuIndexIVFConfig, SWIG_NewClientData(obj));
66428 return SWIG_Py_Void();
66431 SWIGINTERN PyObject *_wrap_delete_GpuIndexIVF(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66432 PyObject *resultobj = 0;
66436 PyObject * obj0 = 0 ;
66438 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuIndexIVF",&obj0)) SWIG_fail;
66439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVF, SWIG_POINTER_DISOWN | 0 );
66440 if (!SWIG_IsOK(res1)) {
66441 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuIndexIVF" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVF *""'");
66445 Py_BEGIN_ALLOW_THREADS
66449 PyEval_RestoreThread(_save);
66450 PyErr_SetString(PyExc_RuntimeError, e.
what());
66453 Py_END_ALLOW_THREADS
66455 resultobj = SWIG_Py_Void();
66462 SWIGINTERN PyObject *_wrap_GpuIndexIVF_copyFrom(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66463 PyObject *resultobj = 0;
66470 PyObject * obj0 = 0 ;
66471 PyObject * obj1 = 0 ;
66473 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVF_copyFrom",&obj0,&obj1)) SWIG_fail;
66474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVF, 0 | 0 );
66475 if (!SWIG_IsOK(res1)) {
66476 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVF_copyFrom" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVF *""'");
66479 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
66480 if (!SWIG_IsOK(res2)) {
66481 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexIVF_copyFrom" "', argument " "2"" of type '" "faiss::IndexIVF const *""'");
66485 Py_BEGIN_ALLOW_THREADS
66489 PyEval_RestoreThread(_save);
66490 PyErr_SetString(PyExc_RuntimeError, e.
what());
66493 Py_END_ALLOW_THREADS
66495 resultobj = SWIG_Py_Void();
66502 SWIGINTERN PyObject *_wrap_GpuIndexIVF_copyTo(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66503 PyObject *resultobj = 0;
66510 PyObject * obj0 = 0 ;
66511 PyObject * obj1 = 0 ;
66513 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVF_copyTo",&obj0,&obj1)) SWIG_fail;
66514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVF, 0 | 0 );
66515 if (!SWIG_IsOK(res1)) {
66516 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVF_copyTo" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVF const *""'");
66519 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
66520 if (!SWIG_IsOK(res2)) {
66521 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexIVF_copyTo" "', argument " "2"" of type '" "faiss::IndexIVF *""'");
66525 Py_BEGIN_ALLOW_THREADS
66529 PyEval_RestoreThread(_save);
66530 PyErr_SetString(PyExc_RuntimeError, e.
what());
66533 Py_END_ALLOW_THREADS
66535 resultobj = SWIG_Py_Void();
66542 SWIGINTERN PyObject *_wrap_GpuIndexIVF_getNumLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66543 PyObject *resultobj = 0;
66547 PyObject * obj0 = 0 ;
66550 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVF_getNumLists",&obj0)) SWIG_fail;
66551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVF, 0 | 0 );
66552 if (!SWIG_IsOK(res1)) {
66553 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVF_getNumLists" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVF const *""'");
66557 Py_BEGIN_ALLOW_THREADS
66561 PyEval_RestoreThread(_save);
66562 PyErr_SetString(PyExc_RuntimeError, e.
what());
66565 Py_END_ALLOW_THREADS
66567 resultobj = SWIG_From_int(static_cast< int >(result));
66574 SWIGINTERN PyObject *_wrap_GpuIndexIVF_getQuantizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66575 PyObject *resultobj = 0;
66579 PyObject * obj0 = 0 ;
66582 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVF_getQuantizer",&obj0)) SWIG_fail;
66583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVF, 0 | 0 );
66584 if (!SWIG_IsOK(res1)) {
66585 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVF_getQuantizer" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVF *""'");
66589 Py_BEGIN_ALLOW_THREADS
66593 PyEval_RestoreThread(_save);
66594 PyErr_SetString(PyExc_RuntimeError, e.
what());
66597 Py_END_ALLOW_THREADS
66599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexFlat, 0 | 0 );
66606 SWIGINTERN PyObject *_wrap_GpuIndexIVF_setNumProbes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66607 PyObject *resultobj = 0;
66614 PyObject * obj0 = 0 ;
66615 PyObject * obj1 = 0 ;
66617 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVF_setNumProbes",&obj0,&obj1)) SWIG_fail;
66618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVF, 0 | 0 );
66619 if (!SWIG_IsOK(res1)) {
66620 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVF_setNumProbes" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVF *""'");
66623 ecode2 = SWIG_AsVal_int(obj1, &val2);
66624 if (!SWIG_IsOK(ecode2)) {
66625 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexIVF_setNumProbes" "', argument " "2"" of type '" "int""'");
66627 arg2 =
static_cast< int >(val2);
66629 Py_BEGIN_ALLOW_THREADS
66631 (arg1)->setNumProbes(arg2);
66633 PyEval_RestoreThread(_save);
66634 PyErr_SetString(PyExc_RuntimeError, e.
what());
66637 Py_END_ALLOW_THREADS
66639 resultobj = SWIG_Py_Void();
66646 SWIGINTERN PyObject *_wrap_GpuIndexIVF_getNumProbes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66647 PyObject *resultobj = 0;
66651 PyObject * obj0 = 0 ;
66654 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVF_getNumProbes",&obj0)) SWIG_fail;
66655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVF, 0 | 0 );
66656 if (!SWIG_IsOK(res1)) {
66657 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVF_getNumProbes" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVF const *""'");
66661 Py_BEGIN_ALLOW_THREADS
66665 PyEval_RestoreThread(_save);
66666 PyErr_SetString(PyExc_RuntimeError, e.
what());
66669 Py_END_ALLOW_THREADS
66671 resultobj = SWIG_From_int(static_cast< int >(result));
66678 SWIGINTERN PyObject *_wrap_GpuIndexIVF_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66679 PyObject *resultobj = 0;
66682 float *arg3 = (
float *) 0 ;
66689 PyObject * obj0 = 0 ;
66690 PyObject * obj1 = 0 ;
66691 PyObject * obj2 = 0 ;
66693 if (!PyArg_ParseTuple(args,(
char *)
"OOO:GpuIndexIVF_add",&obj0,&obj1,&obj2)) SWIG_fail;
66694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVF, 0 | 0 );
66695 if (!SWIG_IsOK(res1)) {
66696 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVF_add" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVF *""'");
66699 ecode2 = SWIG_AsVal_long(obj1, &val2);
66700 if (!SWIG_IsOK(ecode2)) {
66701 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexIVF_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
66704 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
66705 if (!SWIG_IsOK(res3)) {
66706 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "GpuIndexIVF_add" "', argument " "3"" of type '" "float const *""'");
66708 arg3 =
reinterpret_cast< float *
>(argp3);
66710 Py_BEGIN_ALLOW_THREADS
66712 (arg1)->add(arg2,(
float const *)arg3);
66714 PyEval_RestoreThread(_save);
66715 PyErr_SetString(PyExc_RuntimeError, e.
what());
66718 Py_END_ALLOW_THREADS
66720 resultobj = SWIG_Py_Void();
66727 SWIGINTERN PyObject *_wrap_GpuIndexIVF_cp_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66728 PyObject *resultobj = 0;
66735 PyObject * obj0 = 0 ;
66736 PyObject * obj1 = 0 ;
66738 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVF_cp_set",&obj0,&obj1)) SWIG_fail;
66739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVF, 0 | 0 );
66740 if (!SWIG_IsOK(res1)) {
66741 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVF_cp_set" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVF *""'");
66744 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
66745 if (!SWIG_IsOK(res2)) {
66746 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexIVF_cp_set" "', argument " "2"" of type '" "faiss::ClusteringParameters *""'");
66749 if (arg1) (arg1)->cp = *arg2;
66750 resultobj = SWIG_Py_Void();
66757 SWIGINTERN PyObject *_wrap_GpuIndexIVF_cp_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66758 PyObject *resultobj = 0;
66762 PyObject * obj0 = 0 ;
66765 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVF_cp_get",&obj0)) SWIG_fail;
66766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVF, 0 | 0 );
66767 if (!SWIG_IsOK(res1)) {
66768 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVF_cp_get" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVF *""'");
66772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ClusteringParameters, 0 | 0 );
66779 SWIGINTERN PyObject *GpuIndexIVF_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66781 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
66782 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuIndexIVF, SWIG_NewClientData(obj));
66783 return SWIG_Py_Void();
66786 SWIGINTERN PyObject *_wrap_new_GpuIndexIVFPQConfig(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66787 PyObject *resultobj = 0;
66790 if (!PyArg_ParseTuple(args,(
char *)
":new_GpuIndexIVFPQConfig")) SWIG_fail;
66792 Py_BEGIN_ALLOW_THREADS
66796 PyEval_RestoreThread(_save);
66797 PyErr_SetString(PyExc_RuntimeError, e.
what());
66800 Py_END_ALLOW_THREADS
66802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQConfig, SWIG_POINTER_NEW | 0 );
66809 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQConfig_useFloat16LookupTables_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66810 PyObject *resultobj = 0;
66817 PyObject * obj0 = 0 ;
66818 PyObject * obj1 = 0 ;
66820 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFPQConfig_useFloat16LookupTables_set",&obj0,&obj1)) SWIG_fail;
66821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQConfig, 0 | 0 );
66822 if (!SWIG_IsOK(res1)) {
66823 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQConfig_useFloat16LookupTables_set" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQConfig *""'");
66826 ecode2 = SWIG_AsVal_bool(obj1, &val2);
66827 if (!SWIG_IsOK(ecode2)) {
66828 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexIVFPQConfig_useFloat16LookupTables_set" "', argument " "2"" of type '" "bool""'");
66830 arg2 =
static_cast< bool >(val2);
66831 if (arg1) (arg1)->useFloat16LookupTables = arg2;
66832 resultobj = SWIG_Py_Void();
66839 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQConfig_useFloat16LookupTables_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66840 PyObject *resultobj = 0;
66844 PyObject * obj0 = 0 ;
66847 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVFPQConfig_useFloat16LookupTables_get",&obj0)) SWIG_fail;
66848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQConfig, 0 | 0 );
66849 if (!SWIG_IsOK(res1)) {
66850 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQConfig_useFloat16LookupTables_get" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQConfig *""'");
66853 result = (bool) ((arg1)->useFloat16LookupTables);
66854 resultobj = SWIG_From_bool(static_cast< bool >(result));
66861 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQConfig_usePrecomputedTables_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66862 PyObject *resultobj = 0;
66869 PyObject * obj0 = 0 ;
66870 PyObject * obj1 = 0 ;
66872 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFPQConfig_usePrecomputedTables_set",&obj0,&obj1)) SWIG_fail;
66873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQConfig, 0 | 0 );
66874 if (!SWIG_IsOK(res1)) {
66875 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQConfig_usePrecomputedTables_set" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQConfig *""'");
66878 ecode2 = SWIG_AsVal_bool(obj1, &val2);
66879 if (!SWIG_IsOK(ecode2)) {
66880 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexIVFPQConfig_usePrecomputedTables_set" "', argument " "2"" of type '" "bool""'");
66882 arg2 =
static_cast< bool >(val2);
66883 if (arg1) (arg1)->usePrecomputedTables = arg2;
66884 resultobj = SWIG_Py_Void();
66891 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQConfig_usePrecomputedTables_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66892 PyObject *resultobj = 0;
66896 PyObject * obj0 = 0 ;
66899 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVFPQConfig_usePrecomputedTables_get",&obj0)) SWIG_fail;
66900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQConfig, 0 | 0 );
66901 if (!SWIG_IsOK(res1)) {
66902 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQConfig_usePrecomputedTables_get" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQConfig *""'");
66905 result = (bool) ((arg1)->usePrecomputedTables);
66906 resultobj = SWIG_From_bool(static_cast< bool >(result));
66913 SWIGINTERN PyObject *_wrap_delete_GpuIndexIVFPQConfig(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66914 PyObject *resultobj = 0;
66918 PyObject * obj0 = 0 ;
66920 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuIndexIVFPQConfig",&obj0)) SWIG_fail;
66921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQConfig, SWIG_POINTER_DISOWN | 0 );
66922 if (!SWIG_IsOK(res1)) {
66923 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuIndexIVFPQConfig" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQConfig *""'");
66927 resultobj = SWIG_Py_Void();
66934 SWIGINTERN PyObject *GpuIndexIVFPQConfig_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66936 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
66937 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQConfig, SWIG_NewClientData(obj));
66938 return SWIG_Py_Void();
66941 SWIGINTERN PyObject *_wrap_new_GpuIndexIVFPQ__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
66942 PyObject *resultobj = 0;
66952 PyObject * obj0 = 0 ;
66953 PyObject * obj1 = 0 ;
66954 PyObject * obj2 = 0 ;
66957 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_GpuIndexIVFPQ",&obj0,&obj1,&obj2)) SWIG_fail;
66958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
66959 if (!SWIG_IsOK(res1)) {
66960 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexIVFPQ" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
66963 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
66964 if (!SWIG_IsOK(res2)) {
66965 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_GpuIndexIVFPQ" "', argument " "2"" of type '" "faiss::IndexIVFPQ const *""'");
66969 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQConfig, 0 | 0);
66970 if (!SWIG_IsOK(res3)) {
66971 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_GpuIndexIVFPQ" "', argument " "3"" of type '" "faiss::gpu::GpuIndexIVFPQConfig""'");
66974 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_GpuIndexIVFPQ" "', argument " "3"" of type '" "faiss::gpu::GpuIndexIVFPQConfig""'");
66978 if (SWIG_IsNewObj(res3))
delete temp;
66982 Py_BEGIN_ALLOW_THREADS
66986 PyEval_RestoreThread(_save);
66987 PyErr_SetString(PyExc_RuntimeError, e.
what());
66990 Py_END_ALLOW_THREADS
66992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, SWIG_POINTER_NEW | 0 );
66999 SWIGINTERN PyObject *_wrap_new_GpuIndexIVFPQ__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67000 PyObject *resultobj = 0;
67007 PyObject * obj0 = 0 ;
67008 PyObject * obj1 = 0 ;
67011 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GpuIndexIVFPQ",&obj0,&obj1)) SWIG_fail;
67012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
67013 if (!SWIG_IsOK(res1)) {
67014 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexIVFPQ" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
67017 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
67018 if (!SWIG_IsOK(res2)) {
67019 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_GpuIndexIVFPQ" "', argument " "2"" of type '" "faiss::IndexIVFPQ const *""'");
67023 Py_BEGIN_ALLOW_THREADS
67027 PyEval_RestoreThread(_save);
67028 PyErr_SetString(PyExc_RuntimeError, e.
what());
67031 Py_END_ALLOW_THREADS
67033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, SWIG_POINTER_NEW | 0 );
67040 SWIGINTERN PyObject *_wrap_new_GpuIndexIVFPQ__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67041 PyObject *resultobj = 0;
67063 PyObject * obj0 = 0 ;
67064 PyObject * obj1 = 0 ;
67065 PyObject * obj2 = 0 ;
67066 PyObject * obj3 = 0 ;
67067 PyObject * obj4 = 0 ;
67068 PyObject * obj5 = 0 ;
67069 PyObject * obj6 = 0 ;
67072 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:new_GpuIndexIVFPQ",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
67073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
67074 if (!SWIG_IsOK(res1)) {
67075 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexIVFPQ" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
67078 ecode2 = SWIG_AsVal_int(obj1, &val2);
67079 if (!SWIG_IsOK(ecode2)) {
67080 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GpuIndexIVFPQ" "', argument " "2"" of type '" "int""'");
67082 arg2 =
static_cast< int >(val2);
67083 ecode3 = SWIG_AsVal_int(obj2, &val3);
67084 if (!SWIG_IsOK(ecode3)) {
67085 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_GpuIndexIVFPQ" "', argument " "3"" of type '" "int""'");
67087 arg3 =
static_cast< int >(val3);
67088 ecode4 = SWIG_AsVal_int(obj3, &val4);
67089 if (!SWIG_IsOK(ecode4)) {
67090 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_GpuIndexIVFPQ" "', argument " "4"" of type '" "int""'");
67092 arg4 =
static_cast< int >(val4);
67093 ecode5 = SWIG_AsVal_int(obj4, &val5);
67094 if (!SWIG_IsOK(ecode5)) {
67095 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "new_GpuIndexIVFPQ" "', argument " "5"" of type '" "int""'");
67097 arg5 =
static_cast< int >(val5);
67098 ecode6 = SWIG_AsVal_int(obj5, &val6);
67099 if (!SWIG_IsOK(ecode6)) {
67100 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "new_GpuIndexIVFPQ" "', argument " "6"" of type '" "faiss::MetricType""'");
67104 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQConfig, 0 | 0);
67105 if (!SWIG_IsOK(res7)) {
67106 SWIG_exception_fail(SWIG_ArgError(res7),
"in method '" "new_GpuIndexIVFPQ" "', argument " "7"" of type '" "faiss::gpu::GpuIndexIVFPQConfig""'");
67109 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_GpuIndexIVFPQ" "', argument " "7"" of type '" "faiss::gpu::GpuIndexIVFPQConfig""'");
67113 if (SWIG_IsNewObj(res7))
delete temp;
67117 Py_BEGIN_ALLOW_THREADS
67121 PyEval_RestoreThread(_save);
67122 PyErr_SetString(PyExc_RuntimeError, e.
what());
67125 Py_END_ALLOW_THREADS
67127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, SWIG_POINTER_NEW | 0 );
67134 SWIGINTERN PyObject *_wrap_new_GpuIndexIVFPQ__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67135 PyObject *resultobj = 0;
67154 PyObject * obj0 = 0 ;
67155 PyObject * obj1 = 0 ;
67156 PyObject * obj2 = 0 ;
67157 PyObject * obj3 = 0 ;
67158 PyObject * obj4 = 0 ;
67159 PyObject * obj5 = 0 ;
67162 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:new_GpuIndexIVFPQ",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
67163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
67164 if (!SWIG_IsOK(res1)) {
67165 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexIVFPQ" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
67168 ecode2 = SWIG_AsVal_int(obj1, &val2);
67169 if (!SWIG_IsOK(ecode2)) {
67170 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GpuIndexIVFPQ" "', argument " "2"" of type '" "int""'");
67172 arg2 =
static_cast< int >(val2);
67173 ecode3 = SWIG_AsVal_int(obj2, &val3);
67174 if (!SWIG_IsOK(ecode3)) {
67175 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_GpuIndexIVFPQ" "', argument " "3"" of type '" "int""'");
67177 arg3 =
static_cast< int >(val3);
67178 ecode4 = SWIG_AsVal_int(obj3, &val4);
67179 if (!SWIG_IsOK(ecode4)) {
67180 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_GpuIndexIVFPQ" "', argument " "4"" of type '" "int""'");
67182 arg4 =
static_cast< int >(val4);
67183 ecode5 = SWIG_AsVal_int(obj4, &val5);
67184 if (!SWIG_IsOK(ecode5)) {
67185 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "new_GpuIndexIVFPQ" "', argument " "5"" of type '" "int""'");
67187 arg5 =
static_cast< int >(val5);
67188 ecode6 = SWIG_AsVal_int(obj5, &val6);
67189 if (!SWIG_IsOK(ecode6)) {
67190 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "new_GpuIndexIVFPQ" "', argument " "6"" of type '" "faiss::MetricType""'");
67194 Py_BEGIN_ALLOW_THREADS
67198 PyEval_RestoreThread(_save);
67199 PyErr_SetString(PyExc_RuntimeError, e.
what());
67202 Py_END_ALLOW_THREADS
67204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, SWIG_POINTER_NEW | 0 );
67211 SWIGINTERN PyObject *_wrap_new_GpuIndexIVFPQ(PyObject *
self, PyObject *args) {
67213 PyObject *argv[8] = {
67218 if (!PyTuple_Check(args)) SWIG_fail;
67219 argc = args ? PyObject_Length(args) : 0;
67220 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
67221 argv[ii] = PyTuple_GET_ITEM(args,ii);
67226 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
67227 _v = SWIG_CheckState(res);
67230 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IndexIVFPQ, 0);
67231 _v = SWIG_CheckState(res);
67233 return _wrap_new_GpuIndexIVFPQ__SWIG_1(
self, args);
67240 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
67241 _v = SWIG_CheckState(res);
67244 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IndexIVFPQ, 0);
67245 _v = SWIG_CheckState(res);
67247 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQConfig, 0);
67248 _v = SWIG_CheckState(res);
67250 return _wrap_new_GpuIndexIVFPQ__SWIG_0(
self, args);
67258 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
67259 _v = SWIG_CheckState(res);
67262 int res = SWIG_AsVal_int(argv[1], NULL);
67263 _v = SWIG_CheckState(res);
67267 int res = SWIG_AsVal_int(argv[2], NULL);
67268 _v = SWIG_CheckState(res);
67272 int res = SWIG_AsVal_int(argv[3], NULL);
67273 _v = SWIG_CheckState(res);
67277 int res = SWIG_AsVal_int(argv[4], NULL);
67278 _v = SWIG_CheckState(res);
67282 int res = SWIG_AsVal_int(argv[5], NULL);
67283 _v = SWIG_CheckState(res);
67286 return _wrap_new_GpuIndexIVFPQ__SWIG_3(
self, args);
67297 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
67298 _v = SWIG_CheckState(res);
67301 int res = SWIG_AsVal_int(argv[1], NULL);
67302 _v = SWIG_CheckState(res);
67306 int res = SWIG_AsVal_int(argv[2], NULL);
67307 _v = SWIG_CheckState(res);
67311 int res = SWIG_AsVal_int(argv[3], NULL);
67312 _v = SWIG_CheckState(res);
67316 int res = SWIG_AsVal_int(argv[4], NULL);
67317 _v = SWIG_CheckState(res);
67321 int res = SWIG_AsVal_int(argv[5], NULL);
67322 _v = SWIG_CheckState(res);
67325 int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQConfig, 0);
67326 _v = SWIG_CheckState(res);
67328 return _wrap_new_GpuIndexIVFPQ__SWIG_2(
self, args);
67339 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_GpuIndexIVFPQ'.\n"
67340 " Possible C/C++ prototypes are:\n"
67341 " faiss::gpu::GpuIndexIVFPQ::GpuIndexIVFPQ(faiss::gpu::GpuResources *,faiss::IndexIVFPQ const *,faiss::gpu::GpuIndexIVFPQConfig)\n"
67342 " faiss::gpu::GpuIndexIVFPQ::GpuIndexIVFPQ(faiss::gpu::GpuResources *,faiss::IndexIVFPQ const *)\n"
67343 " faiss::gpu::GpuIndexIVFPQ::GpuIndexIVFPQ(faiss::gpu::GpuResources *,int,int,int,int,faiss::MetricType,faiss::gpu::GpuIndexIVFPQConfig)\n"
67344 " faiss::gpu::GpuIndexIVFPQ::GpuIndexIVFPQ(faiss::gpu::GpuResources *,int,int,int,int,faiss::MetricType)\n");
67349 SWIGINTERN PyObject *_wrap_delete_GpuIndexIVFPQ(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67350 PyObject *resultobj = 0;
67354 PyObject * obj0 = 0 ;
67356 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuIndexIVFPQ",&obj0)) SWIG_fail;
67357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, SWIG_POINTER_DISOWN | 0 );
67358 if (!SWIG_IsOK(res1)) {
67359 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuIndexIVFPQ" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ *""'");
67363 Py_BEGIN_ALLOW_THREADS
67367 PyEval_RestoreThread(_save);
67368 PyErr_SetString(PyExc_RuntimeError, e.
what());
67371 Py_END_ALLOW_THREADS
67373 resultobj = SWIG_Py_Void();
67380 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQ_copyFrom(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67381 PyObject *resultobj = 0;
67388 PyObject * obj0 = 0 ;
67389 PyObject * obj1 = 0 ;
67391 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFPQ_copyFrom",&obj0,&obj1)) SWIG_fail;
67392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, 0 | 0 );
67393 if (!SWIG_IsOK(res1)) {
67394 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQ_copyFrom" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ *""'");
67397 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
67398 if (!SWIG_IsOK(res2)) {
67399 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexIVFPQ_copyFrom" "', argument " "2"" of type '" "faiss::IndexIVFPQ const *""'");
67403 Py_BEGIN_ALLOW_THREADS
67407 PyEval_RestoreThread(_save);
67408 PyErr_SetString(PyExc_RuntimeError, e.
what());
67411 Py_END_ALLOW_THREADS
67413 resultobj = SWIG_Py_Void();
67420 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQ_copyTo(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67421 PyObject *resultobj = 0;
67428 PyObject * obj0 = 0 ;
67429 PyObject * obj1 = 0 ;
67431 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFPQ_copyTo",&obj0,&obj1)) SWIG_fail;
67432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, 0 | 0 );
67433 if (!SWIG_IsOK(res1)) {
67434 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQ_copyTo" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ const *""'");
67437 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexIVFPQ, 0 | 0 );
67438 if (!SWIG_IsOK(res2)) {
67439 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexIVFPQ_copyTo" "', argument " "2"" of type '" "faiss::IndexIVFPQ *""'");
67443 Py_BEGIN_ALLOW_THREADS
67447 PyEval_RestoreThread(_save);
67448 PyErr_SetString(PyExc_RuntimeError, e.
what());
67451 Py_END_ALLOW_THREADS
67453 resultobj = SWIG_Py_Void();
67460 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQ_reserveMemory(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67461 PyObject *resultobj = 0;
67468 PyObject * obj0 = 0 ;
67469 PyObject * obj1 = 0 ;
67471 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFPQ_reserveMemory",&obj0,&obj1)) SWIG_fail;
67472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, 0 | 0 );
67473 if (!SWIG_IsOK(res1)) {
67474 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQ_reserveMemory" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ *""'");
67477 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
67478 if (!SWIG_IsOK(ecode2)) {
67479 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexIVFPQ_reserveMemory" "', argument " "2"" of type '" "size_t""'");
67481 arg2 =
static_cast< size_t >(val2);
67483 Py_BEGIN_ALLOW_THREADS
67485 (arg1)->reserveMemory(arg2);
67487 PyEval_RestoreThread(_save);
67488 PyErr_SetString(PyExc_RuntimeError, e.
what());
67491 Py_END_ALLOW_THREADS
67493 resultobj = SWIG_Py_Void();
67500 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQ_setPrecomputedCodes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67501 PyObject *resultobj = 0;
67508 PyObject * obj0 = 0 ;
67509 PyObject * obj1 = 0 ;
67511 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFPQ_setPrecomputedCodes",&obj0,&obj1)) SWIG_fail;
67512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, 0 | 0 );
67513 if (!SWIG_IsOK(res1)) {
67514 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQ_setPrecomputedCodes" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ *""'");
67517 ecode2 = SWIG_AsVal_bool(obj1, &val2);
67518 if (!SWIG_IsOK(ecode2)) {
67519 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexIVFPQ_setPrecomputedCodes" "', argument " "2"" of type '" "bool""'");
67521 arg2 =
static_cast< bool >(val2);
67523 Py_BEGIN_ALLOW_THREADS
67525 (arg1)->setPrecomputedCodes(arg2);
67527 PyEval_RestoreThread(_save);
67528 PyErr_SetString(PyExc_RuntimeError, e.
what());
67531 Py_END_ALLOW_THREADS
67533 resultobj = SWIG_Py_Void();
67540 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQ_getPrecomputedCodes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67541 PyObject *resultobj = 0;
67545 PyObject * obj0 = 0 ;
67548 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVFPQ_getPrecomputedCodes",&obj0)) SWIG_fail;
67549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, 0 | 0 );
67550 if (!SWIG_IsOK(res1)) {
67551 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQ_getPrecomputedCodes" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ const *""'");
67555 Py_BEGIN_ALLOW_THREADS
67559 PyEval_RestoreThread(_save);
67560 PyErr_SetString(PyExc_RuntimeError, e.
what());
67563 Py_END_ALLOW_THREADS
67565 resultobj = SWIG_From_bool(static_cast< bool >(result));
67572 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQ_getNumSubQuantizers(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67573 PyObject *resultobj = 0;
67577 PyObject * obj0 = 0 ;
67580 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVFPQ_getNumSubQuantizers",&obj0)) SWIG_fail;
67581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, 0 | 0 );
67582 if (!SWIG_IsOK(res1)) {
67583 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQ_getNumSubQuantizers" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ const *""'");
67587 Py_BEGIN_ALLOW_THREADS
67591 PyEval_RestoreThread(_save);
67592 PyErr_SetString(PyExc_RuntimeError, e.
what());
67595 Py_END_ALLOW_THREADS
67597 resultobj = SWIG_From_int(static_cast< int >(result));
67604 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQ_getBitsPerCode(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67605 PyObject *resultobj = 0;
67609 PyObject * obj0 = 0 ;
67612 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVFPQ_getBitsPerCode",&obj0)) SWIG_fail;
67613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, 0 | 0 );
67614 if (!SWIG_IsOK(res1)) {
67615 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQ_getBitsPerCode" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ const *""'");
67619 Py_BEGIN_ALLOW_THREADS
67623 PyEval_RestoreThread(_save);
67624 PyErr_SetString(PyExc_RuntimeError, e.
what());
67627 Py_END_ALLOW_THREADS
67629 resultobj = SWIG_From_int(static_cast< int >(result));
67636 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQ_getCentroidsPerSubQuantizer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67637 PyObject *resultobj = 0;
67641 PyObject * obj0 = 0 ;
67644 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVFPQ_getCentroidsPerSubQuantizer",&obj0)) SWIG_fail;
67645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, 0 | 0 );
67646 if (!SWIG_IsOK(res1)) {
67647 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQ_getCentroidsPerSubQuantizer" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ const *""'");
67651 Py_BEGIN_ALLOW_THREADS
67655 PyEval_RestoreThread(_save);
67656 PyErr_SetString(PyExc_RuntimeError, e.
what());
67659 Py_END_ALLOW_THREADS
67661 resultobj = SWIG_From_int(static_cast< int >(result));
67668 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQ_reclaimMemory(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67669 PyObject *resultobj = 0;
67673 PyObject * obj0 = 0 ;
67676 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVFPQ_reclaimMemory",&obj0)) SWIG_fail;
67677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, 0 | 0 );
67678 if (!SWIG_IsOK(res1)) {
67679 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQ_reclaimMemory" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ *""'");
67683 Py_BEGIN_ALLOW_THREADS
67687 PyEval_RestoreThread(_save);
67688 PyErr_SetString(PyExc_RuntimeError, e.
what());
67691 Py_END_ALLOW_THREADS
67693 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
67700 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQ_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67701 PyObject *resultobj = 0;
67705 PyObject * obj0 = 0 ;
67707 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVFPQ_reset",&obj0)) SWIG_fail;
67708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, 0 | 0 );
67709 if (!SWIG_IsOK(res1)) {
67710 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQ_reset" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ *""'");
67714 Py_BEGIN_ALLOW_THREADS
67718 PyEval_RestoreThread(_save);
67719 PyErr_SetString(PyExc_RuntimeError, e.
what());
67722 Py_END_ALLOW_THREADS
67724 resultobj = SWIG_Py_Void();
67731 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQ_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67732 PyObject *resultobj = 0;
67735 float *arg3 = (
float *) 0 ;
67742 PyObject * obj0 = 0 ;
67743 PyObject * obj1 = 0 ;
67744 PyObject * obj2 = 0 ;
67746 if (!PyArg_ParseTuple(args,(
char *)
"OOO:GpuIndexIVFPQ_train",&obj0,&obj1,&obj2)) SWIG_fail;
67747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, 0 | 0 );
67748 if (!SWIG_IsOK(res1)) {
67749 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQ_train" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ *""'");
67752 ecode2 = SWIG_AsVal_long(obj1, &val2);
67753 if (!SWIG_IsOK(ecode2)) {
67754 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexIVFPQ_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
67757 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
67758 if (!SWIG_IsOK(res3)) {
67759 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "GpuIndexIVFPQ_train" "', argument " "3"" of type '" "float const *""'");
67761 arg3 =
reinterpret_cast< float *
>(argp3);
67763 Py_BEGIN_ALLOW_THREADS
67765 (arg1)->train(arg2,(
float const *)arg3);
67767 PyEval_RestoreThread(_save);
67768 PyErr_SetString(PyExc_RuntimeError, e.
what());
67771 Py_END_ALLOW_THREADS
67773 resultobj = SWIG_Py_Void();
67780 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQ_getListLength(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67781 PyObject *resultobj = 0;
67788 PyObject * obj0 = 0 ;
67789 PyObject * obj1 = 0 ;
67792 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFPQ_getListLength",&obj0,&obj1)) SWIG_fail;
67793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, 0 | 0 );
67794 if (!SWIG_IsOK(res1)) {
67795 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQ_getListLength" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ const *""'");
67798 ecode2 = SWIG_AsVal_int(obj1, &val2);
67799 if (!SWIG_IsOK(ecode2)) {
67800 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexIVFPQ_getListLength" "', argument " "2"" of type '" "int""'");
67802 arg2 =
static_cast< int >(val2);
67804 Py_BEGIN_ALLOW_THREADS
67808 PyEval_RestoreThread(_save);
67809 PyErr_SetString(PyExc_RuntimeError, e.
what());
67812 Py_END_ALLOW_THREADS
67814 resultobj = SWIG_From_int(static_cast< int >(result));
67821 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQ_getListCodes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67822 PyObject *resultobj = 0;
67829 PyObject * obj0 = 0 ;
67830 PyObject * obj1 = 0 ;
67831 std::vector< unsigned char > result;
67833 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFPQ_getListCodes",&obj0,&obj1)) SWIG_fail;
67834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, 0 | 0 );
67835 if (!SWIG_IsOK(res1)) {
67836 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQ_getListCodes" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ const *""'");
67839 ecode2 = SWIG_AsVal_int(obj1, &val2);
67840 if (!SWIG_IsOK(ecode2)) {
67841 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexIVFPQ_getListCodes" "', argument " "2"" of type '" "int""'");
67843 arg2 =
static_cast< int >(val2);
67845 Py_BEGIN_ALLOW_THREADS
67849 PyEval_RestoreThread(_save);
67850 PyErr_SetString(PyExc_RuntimeError, e.
what());
67853 Py_END_ALLOW_THREADS
67855 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 );
67862 SWIGINTERN PyObject *_wrap_GpuIndexIVFPQ_getListIndices(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67863 PyObject *resultobj = 0;
67870 PyObject * obj0 = 0 ;
67871 PyObject * obj1 = 0 ;
67872 std::vector< long > result;
67874 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFPQ_getListIndices",&obj0,&obj1)) SWIG_fail;
67875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, 0 | 0 );
67876 if (!SWIG_IsOK(res1)) {
67877 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFPQ_getListIndices" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFPQ const *""'");
67880 ecode2 = SWIG_AsVal_int(obj1, &val2);
67881 if (!SWIG_IsOK(ecode2)) {
67882 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexIVFPQ_getListIndices" "', argument " "2"" of type '" "int""'");
67884 arg2 =
static_cast< int >(val2);
67886 Py_BEGIN_ALLOW_THREADS
67890 PyEval_RestoreThread(_save);
67891 PyErr_SetString(PyExc_RuntimeError, e.
what());
67894 Py_END_ALLOW_THREADS
67896 resultobj = SWIG_NewPointerObj((
new std::vector< long >(
static_cast< const std::vector< long >&
>(result))), SWIGTYPE_p_std__vectorT_long_t, SWIG_POINTER_OWN | 0 );
67903 SWIGINTERN PyObject *GpuIndexIVFPQ_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67905 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
67906 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ, SWIG_NewClientData(obj));
67907 return SWIG_Py_Void();
67910 SWIGINTERN PyObject *_wrap_new_GpuIndexIVFFlatConfig(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67911 PyObject *resultobj = 0;
67914 if (!PyArg_ParseTuple(args,(
char *)
":new_GpuIndexIVFFlatConfig")) SWIG_fail;
67916 Py_BEGIN_ALLOW_THREADS
67920 PyEval_RestoreThread(_save);
67921 PyErr_SetString(PyExc_RuntimeError, e.
what());
67924 Py_END_ALLOW_THREADS
67926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlatConfig, SWIG_POINTER_NEW | 0 );
67933 SWIGINTERN PyObject *_wrap_GpuIndexIVFFlatConfig_useFloat16IVFStorage_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67934 PyObject *resultobj = 0;
67941 PyObject * obj0 = 0 ;
67942 PyObject * obj1 = 0 ;
67944 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFFlatConfig_useFloat16IVFStorage_set",&obj0,&obj1)) SWIG_fail;
67945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlatConfig, 0 | 0 );
67946 if (!SWIG_IsOK(res1)) {
67947 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFFlatConfig_useFloat16IVFStorage_set" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFFlatConfig *""'");
67950 ecode2 = SWIG_AsVal_bool(obj1, &val2);
67951 if (!SWIG_IsOK(ecode2)) {
67952 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexIVFFlatConfig_useFloat16IVFStorage_set" "', argument " "2"" of type '" "bool""'");
67954 arg2 =
static_cast< bool >(val2);
67955 if (arg1) (arg1)->useFloat16IVFStorage = arg2;
67956 resultobj = SWIG_Py_Void();
67963 SWIGINTERN PyObject *_wrap_GpuIndexIVFFlatConfig_useFloat16IVFStorage_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67964 PyObject *resultobj = 0;
67968 PyObject * obj0 = 0 ;
67971 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVFFlatConfig_useFloat16IVFStorage_get",&obj0)) SWIG_fail;
67972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlatConfig, 0 | 0 );
67973 if (!SWIG_IsOK(res1)) {
67974 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFFlatConfig_useFloat16IVFStorage_get" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFFlatConfig *""'");
67977 result = (bool) ((arg1)->useFloat16IVFStorage);
67978 resultobj = SWIG_From_bool(static_cast< bool >(result));
67985 SWIGINTERN PyObject *_wrap_delete_GpuIndexIVFFlatConfig(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
67986 PyObject *resultobj = 0;
67990 PyObject * obj0 = 0 ;
67992 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuIndexIVFFlatConfig",&obj0)) SWIG_fail;
67993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlatConfig, SWIG_POINTER_DISOWN | 0 );
67994 if (!SWIG_IsOK(res1)) {
67995 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuIndexIVFFlatConfig" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFFlatConfig *""'");
67999 resultobj = SWIG_Py_Void();
68006 SWIGINTERN PyObject *GpuIndexIVFFlatConfig_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68008 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
68009 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlatConfig, SWIG_NewClientData(obj));
68010 return SWIG_Py_Void();
68013 SWIGINTERN PyObject *_wrap_new_GpuIndexIVFFlat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68014 PyObject *resultobj = 0;
68024 PyObject * obj0 = 0 ;
68025 PyObject * obj1 = 0 ;
68026 PyObject * obj2 = 0 ;
68029 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_GpuIndexIVFFlat",&obj0,&obj1,&obj2)) SWIG_fail;
68030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
68031 if (!SWIG_IsOK(res1)) {
68032 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexIVFFlat" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
68035 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
68036 if (!SWIG_IsOK(res2)) {
68037 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_GpuIndexIVFFlat" "', argument " "2"" of type '" "faiss::IndexIVFFlat const *""'");
68041 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlatConfig, 0 | 0);
68042 if (!SWIG_IsOK(res3)) {
68043 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_GpuIndexIVFFlat" "', argument " "3"" of type '" "faiss::gpu::GpuIndexIVFFlatConfig""'");
68046 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_GpuIndexIVFFlat" "', argument " "3"" of type '" "faiss::gpu::GpuIndexIVFFlatConfig""'");
68050 if (SWIG_IsNewObj(res3))
delete temp;
68054 Py_BEGIN_ALLOW_THREADS
68058 PyEval_RestoreThread(_save);
68059 PyErr_SetString(PyExc_RuntimeError, e.
what());
68062 Py_END_ALLOW_THREADS
68064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat, SWIG_POINTER_NEW | 0 );
68071 SWIGINTERN PyObject *_wrap_new_GpuIndexIVFFlat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68072 PyObject *resultobj = 0;
68079 PyObject * obj0 = 0 ;
68080 PyObject * obj1 = 0 ;
68083 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GpuIndexIVFFlat",&obj0,&obj1)) SWIG_fail;
68084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
68085 if (!SWIG_IsOK(res1)) {
68086 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexIVFFlat" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
68089 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
68090 if (!SWIG_IsOK(res2)) {
68091 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_GpuIndexIVFFlat" "', argument " "2"" of type '" "faiss::IndexIVFFlat const *""'");
68095 Py_BEGIN_ALLOW_THREADS
68099 PyEval_RestoreThread(_save);
68100 PyErr_SetString(PyExc_RuntimeError, e.
what());
68103 Py_END_ALLOW_THREADS
68105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat, SWIG_POINTER_NEW | 0 );
68112 SWIGINTERN PyObject *_wrap_new_GpuIndexIVFFlat__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68113 PyObject *resultobj = 0;
68129 PyObject * obj0 = 0 ;
68130 PyObject * obj1 = 0 ;
68131 PyObject * obj2 = 0 ;
68132 PyObject * obj3 = 0 ;
68133 PyObject * obj4 = 0 ;
68136 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:new_GpuIndexIVFFlat",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
68137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
68138 if (!SWIG_IsOK(res1)) {
68139 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexIVFFlat" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
68142 ecode2 = SWIG_AsVal_int(obj1, &val2);
68143 if (!SWIG_IsOK(ecode2)) {
68144 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GpuIndexIVFFlat" "', argument " "2"" of type '" "int""'");
68146 arg2 =
static_cast< int >(val2);
68147 ecode3 = SWIG_AsVal_int(obj2, &val3);
68148 if (!SWIG_IsOK(ecode3)) {
68149 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_GpuIndexIVFFlat" "', argument " "3"" of type '" "int""'");
68151 arg3 =
static_cast< int >(val3);
68152 ecode4 = SWIG_AsVal_int(obj3, &val4);
68153 if (!SWIG_IsOK(ecode4)) {
68154 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_GpuIndexIVFFlat" "', argument " "4"" of type '" "faiss::MetricType""'");
68158 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlatConfig, 0 | 0);
68159 if (!SWIG_IsOK(res5)) {
68160 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "new_GpuIndexIVFFlat" "', argument " "5"" of type '" "faiss::gpu::GpuIndexIVFFlatConfig""'");
68163 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_GpuIndexIVFFlat" "', argument " "5"" of type '" "faiss::gpu::GpuIndexIVFFlatConfig""'");
68167 if (SWIG_IsNewObj(res5))
delete temp;
68171 Py_BEGIN_ALLOW_THREADS
68175 PyEval_RestoreThread(_save);
68176 PyErr_SetString(PyExc_RuntimeError, e.
what());
68179 Py_END_ALLOW_THREADS
68181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat, SWIG_POINTER_NEW | 0 );
68188 SWIGINTERN PyObject *_wrap_new_GpuIndexIVFFlat__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68189 PyObject *resultobj = 0;
68202 PyObject * obj0 = 0 ;
68203 PyObject * obj1 = 0 ;
68204 PyObject * obj2 = 0 ;
68205 PyObject * obj3 = 0 ;
68208 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_GpuIndexIVFFlat",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
68209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
68210 if (!SWIG_IsOK(res1)) {
68211 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexIVFFlat" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
68214 ecode2 = SWIG_AsVal_int(obj1, &val2);
68215 if (!SWIG_IsOK(ecode2)) {
68216 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GpuIndexIVFFlat" "', argument " "2"" of type '" "int""'");
68218 arg2 =
static_cast< int >(val2);
68219 ecode3 = SWIG_AsVal_int(obj2, &val3);
68220 if (!SWIG_IsOK(ecode3)) {
68221 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_GpuIndexIVFFlat" "', argument " "3"" of type '" "int""'");
68223 arg3 =
static_cast< int >(val3);
68224 ecode4 = SWIG_AsVal_int(obj3, &val4);
68225 if (!SWIG_IsOK(ecode4)) {
68226 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_GpuIndexIVFFlat" "', argument " "4"" of type '" "faiss::MetricType""'");
68230 Py_BEGIN_ALLOW_THREADS
68234 PyEval_RestoreThread(_save);
68235 PyErr_SetString(PyExc_RuntimeError, e.
what());
68238 Py_END_ALLOW_THREADS
68240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat, SWIG_POINTER_NEW | 0 );
68247 SWIGINTERN PyObject *_wrap_new_GpuIndexIVFFlat(PyObject *
self, PyObject *args) {
68249 PyObject *argv[6] = {
68254 if (!PyTuple_Check(args)) SWIG_fail;
68255 argc = args ? PyObject_Length(args) : 0;
68256 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
68257 argv[ii] = PyTuple_GET_ITEM(args,ii);
68262 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
68263 _v = SWIG_CheckState(res);
68266 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IndexIVFFlat, 0);
68267 _v = SWIG_CheckState(res);
68269 return _wrap_new_GpuIndexIVFFlat__SWIG_1(
self, args);
68276 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
68277 _v = SWIG_CheckState(res);
68280 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IndexIVFFlat, 0);
68281 _v = SWIG_CheckState(res);
68283 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlatConfig, 0);
68284 _v = SWIG_CheckState(res);
68286 return _wrap_new_GpuIndexIVFFlat__SWIG_0(
self, args);
68294 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
68295 _v = SWIG_CheckState(res);
68298 int res = SWIG_AsVal_int(argv[1], NULL);
68299 _v = SWIG_CheckState(res);
68303 int res = SWIG_AsVal_int(argv[2], NULL);
68304 _v = SWIG_CheckState(res);
68308 int res = SWIG_AsVal_int(argv[3], NULL);
68309 _v = SWIG_CheckState(res);
68312 return _wrap_new_GpuIndexIVFFlat__SWIG_3(
self, args);
68321 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
68322 _v = SWIG_CheckState(res);
68325 int res = SWIG_AsVal_int(argv[1], NULL);
68326 _v = SWIG_CheckState(res);
68330 int res = SWIG_AsVal_int(argv[2], NULL);
68331 _v = SWIG_CheckState(res);
68335 int res = SWIG_AsVal_int(argv[3], NULL);
68336 _v = SWIG_CheckState(res);
68339 int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlatConfig, 0);
68340 _v = SWIG_CheckState(res);
68342 return _wrap_new_GpuIndexIVFFlat__SWIG_2(
self, args);
68351 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_GpuIndexIVFFlat'.\n"
68352 " Possible C/C++ prototypes are:\n"
68353 " faiss::gpu::GpuIndexIVFFlat::GpuIndexIVFFlat(faiss::gpu::GpuResources *,faiss::IndexIVFFlat const *,faiss::gpu::GpuIndexIVFFlatConfig)\n"
68354 " faiss::gpu::GpuIndexIVFFlat::GpuIndexIVFFlat(faiss::gpu::GpuResources *,faiss::IndexIVFFlat const *)\n"
68355 " faiss::gpu::GpuIndexIVFFlat::GpuIndexIVFFlat(faiss::gpu::GpuResources *,int,int,faiss::MetricType,faiss::gpu::GpuIndexIVFFlatConfig)\n"
68356 " faiss::gpu::GpuIndexIVFFlat::GpuIndexIVFFlat(faiss::gpu::GpuResources *,int,int,faiss::MetricType)\n");
68361 SWIGINTERN PyObject *_wrap_delete_GpuIndexIVFFlat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68362 PyObject *resultobj = 0;
68366 PyObject * obj0 = 0 ;
68368 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuIndexIVFFlat",&obj0)) SWIG_fail;
68369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat, SWIG_POINTER_DISOWN | 0 );
68370 if (!SWIG_IsOK(res1)) {
68371 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuIndexIVFFlat" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFFlat *""'");
68375 Py_BEGIN_ALLOW_THREADS
68379 PyEval_RestoreThread(_save);
68380 PyErr_SetString(PyExc_RuntimeError, e.
what());
68383 Py_END_ALLOW_THREADS
68385 resultobj = SWIG_Py_Void();
68392 SWIGINTERN PyObject *_wrap_GpuIndexIVFFlat_reserveMemory(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68393 PyObject *resultobj = 0;
68400 PyObject * obj0 = 0 ;
68401 PyObject * obj1 = 0 ;
68403 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFFlat_reserveMemory",&obj0,&obj1)) SWIG_fail;
68404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat, 0 | 0 );
68405 if (!SWIG_IsOK(res1)) {
68406 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFFlat_reserveMemory" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFFlat *""'");
68409 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
68410 if (!SWIG_IsOK(ecode2)) {
68411 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexIVFFlat_reserveMemory" "', argument " "2"" of type '" "size_t""'");
68413 arg2 =
static_cast< size_t >(val2);
68415 Py_BEGIN_ALLOW_THREADS
68417 (arg1)->reserveMemory(arg2);
68419 PyEval_RestoreThread(_save);
68420 PyErr_SetString(PyExc_RuntimeError, e.
what());
68423 Py_END_ALLOW_THREADS
68425 resultobj = SWIG_Py_Void();
68432 SWIGINTERN PyObject *_wrap_GpuIndexIVFFlat_copyFrom(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68433 PyObject *resultobj = 0;
68440 PyObject * obj0 = 0 ;
68441 PyObject * obj1 = 0 ;
68443 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFFlat_copyFrom",&obj0,&obj1)) SWIG_fail;
68444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat, 0 | 0 );
68445 if (!SWIG_IsOK(res1)) {
68446 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFFlat_copyFrom" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFFlat *""'");
68449 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
68450 if (!SWIG_IsOK(res2)) {
68451 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexIVFFlat_copyFrom" "', argument " "2"" of type '" "faiss::IndexIVFFlat const *""'");
68455 Py_BEGIN_ALLOW_THREADS
68459 PyEval_RestoreThread(_save);
68460 PyErr_SetString(PyExc_RuntimeError, e.
what());
68463 Py_END_ALLOW_THREADS
68465 resultobj = SWIG_Py_Void();
68472 SWIGINTERN PyObject *_wrap_GpuIndexIVFFlat_copyTo(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68473 PyObject *resultobj = 0;
68480 PyObject * obj0 = 0 ;
68481 PyObject * obj1 = 0 ;
68483 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexIVFFlat_copyTo",&obj0,&obj1)) SWIG_fail;
68484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat, 0 | 0 );
68485 if (!SWIG_IsOK(res1)) {
68486 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFFlat_copyTo" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFFlat const *""'");
68489 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexIVFFlat, 0 | 0 );
68490 if (!SWIG_IsOK(res2)) {
68491 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexIVFFlat_copyTo" "', argument " "2"" of type '" "faiss::IndexIVFFlat *""'");
68495 Py_BEGIN_ALLOW_THREADS
68499 PyEval_RestoreThread(_save);
68500 PyErr_SetString(PyExc_RuntimeError, e.
what());
68503 Py_END_ALLOW_THREADS
68505 resultobj = SWIG_Py_Void();
68512 SWIGINTERN PyObject *_wrap_GpuIndexIVFFlat_reclaimMemory(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68513 PyObject *resultobj = 0;
68517 PyObject * obj0 = 0 ;
68520 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVFFlat_reclaimMemory",&obj0)) SWIG_fail;
68521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat, 0 | 0 );
68522 if (!SWIG_IsOK(res1)) {
68523 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFFlat_reclaimMemory" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFFlat *""'");
68527 Py_BEGIN_ALLOW_THREADS
68531 PyEval_RestoreThread(_save);
68532 PyErr_SetString(PyExc_RuntimeError, e.
what());
68535 Py_END_ALLOW_THREADS
68537 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
68544 SWIGINTERN PyObject *_wrap_GpuIndexIVFFlat_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68545 PyObject *resultobj = 0;
68549 PyObject * obj0 = 0 ;
68551 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexIVFFlat_reset",&obj0)) SWIG_fail;
68552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat, 0 | 0 );
68553 if (!SWIG_IsOK(res1)) {
68554 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFFlat_reset" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFFlat *""'");
68558 Py_BEGIN_ALLOW_THREADS
68562 PyEval_RestoreThread(_save);
68563 PyErr_SetString(PyExc_RuntimeError, e.
what());
68566 Py_END_ALLOW_THREADS
68568 resultobj = SWIG_Py_Void();
68575 SWIGINTERN PyObject *_wrap_GpuIndexIVFFlat_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68576 PyObject *resultobj = 0;
68579 float *arg3 = (
float *) 0 ;
68586 PyObject * obj0 = 0 ;
68587 PyObject * obj1 = 0 ;
68588 PyObject * obj2 = 0 ;
68590 if (!PyArg_ParseTuple(args,(
char *)
"OOO:GpuIndexIVFFlat_train",&obj0,&obj1,&obj2)) SWIG_fail;
68591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat, 0 | 0 );
68592 if (!SWIG_IsOK(res1)) {
68593 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexIVFFlat_train" "', argument " "1"" of type '" "faiss::gpu::GpuIndexIVFFlat *""'");
68596 ecode2 = SWIG_AsVal_long(obj1, &val2);
68597 if (!SWIG_IsOK(ecode2)) {
68598 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexIVFFlat_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
68601 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
68602 if (!SWIG_IsOK(res3)) {
68603 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "GpuIndexIVFFlat_train" "', argument " "3"" of type '" "float const *""'");
68605 arg3 =
reinterpret_cast< float *
>(argp3);
68607 Py_BEGIN_ALLOW_THREADS
68609 (arg1)->train(arg2,(
float const *)arg3);
68611 PyEval_RestoreThread(_save);
68612 PyErr_SetString(PyExc_RuntimeError, e.
what());
68615 Py_END_ALLOW_THREADS
68617 resultobj = SWIG_Py_Void();
68624 SWIGINTERN PyObject *GpuIndexIVFFlat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68626 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
68627 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat, SWIG_NewClientData(obj));
68628 return SWIG_Py_Void();
68631 SWIGINTERN PyObject *_wrap_new_GpuIndexBinaryFlatConfig(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68632 PyObject *resultobj = 0;
68635 if (!PyArg_ParseTuple(args,(
char *)
":new_GpuIndexBinaryFlatConfig")) SWIG_fail;
68637 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlatConfig, SWIG_POINTER_NEW | 0 );
68644 SWIGINTERN PyObject *_wrap_delete_GpuIndexBinaryFlatConfig(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68645 PyObject *resultobj = 0;
68649 PyObject * obj0 = 0 ;
68651 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuIndexBinaryFlatConfig",&obj0)) SWIG_fail;
68652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlatConfig, SWIG_POINTER_DISOWN | 0 );
68653 if (!SWIG_IsOK(res1)) {
68654 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuIndexBinaryFlatConfig" "', argument " "1"" of type '" "faiss::gpu::GpuIndexBinaryFlatConfig *""'");
68658 resultobj = SWIG_Py_Void();
68665 SWIGINTERN PyObject *GpuIndexBinaryFlatConfig_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68667 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
68668 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlatConfig, SWIG_NewClientData(obj));
68669 return SWIG_Py_Void();
68672 SWIGINTERN PyObject *_wrap_new_GpuIndexBinaryFlat__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68673 PyObject *resultobj = 0;
68683 PyObject * obj0 = 0 ;
68684 PyObject * obj1 = 0 ;
68685 PyObject * obj2 = 0 ;
68688 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_GpuIndexBinaryFlat",&obj0,&obj1,&obj2)) SWIG_fail;
68689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
68690 if (!SWIG_IsOK(res1)) {
68691 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexBinaryFlat" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
68694 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
68695 if (!SWIG_IsOK(res2)) {
68696 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_GpuIndexBinaryFlat" "', argument " "2"" of type '" "faiss::IndexBinaryFlat const *""'");
68700 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlatConfig, 0 | 0);
68701 if (!SWIG_IsOK(res3)) {
68702 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_GpuIndexBinaryFlat" "', argument " "3"" of type '" "faiss::gpu::GpuIndexBinaryFlatConfig""'");
68705 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_GpuIndexBinaryFlat" "', argument " "3"" of type '" "faiss::gpu::GpuIndexBinaryFlatConfig""'");
68709 if (SWIG_IsNewObj(res3))
delete temp;
68713 Py_BEGIN_ALLOW_THREADS
68717 PyEval_RestoreThread(_save);
68718 PyErr_SetString(PyExc_RuntimeError, e.
what());
68721 Py_END_ALLOW_THREADS
68723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat, SWIG_POINTER_NEW | 0 );
68730 SWIGINTERN PyObject *_wrap_new_GpuIndexBinaryFlat__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68731 PyObject *resultobj = 0;
68738 PyObject * obj0 = 0 ;
68739 PyObject * obj1 = 0 ;
68742 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GpuIndexBinaryFlat",&obj0,&obj1)) SWIG_fail;
68743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
68744 if (!SWIG_IsOK(res1)) {
68745 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexBinaryFlat" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
68748 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
68749 if (!SWIG_IsOK(res2)) {
68750 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_GpuIndexBinaryFlat" "', argument " "2"" of type '" "faiss::IndexBinaryFlat const *""'");
68754 Py_BEGIN_ALLOW_THREADS
68758 PyEval_RestoreThread(_save);
68759 PyErr_SetString(PyExc_RuntimeError, e.
what());
68762 Py_END_ALLOW_THREADS
68764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat, SWIG_POINTER_NEW | 0 );
68771 SWIGINTERN PyObject *_wrap_new_GpuIndexBinaryFlat__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68772 PyObject *resultobj = 0;
68782 PyObject * obj0 = 0 ;
68783 PyObject * obj1 = 0 ;
68784 PyObject * obj2 = 0 ;
68787 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_GpuIndexBinaryFlat",&obj0,&obj1,&obj2)) SWIG_fail;
68788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
68789 if (!SWIG_IsOK(res1)) {
68790 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexBinaryFlat" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
68793 ecode2 = SWIG_AsVal_int(obj1, &val2);
68794 if (!SWIG_IsOK(ecode2)) {
68795 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GpuIndexBinaryFlat" "', argument " "2"" of type '" "int""'");
68797 arg2 =
static_cast< int >(val2);
68799 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlatConfig, 0 | 0);
68800 if (!SWIG_IsOK(res3)) {
68801 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_GpuIndexBinaryFlat" "', argument " "3"" of type '" "faiss::gpu::GpuIndexBinaryFlatConfig""'");
68804 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_GpuIndexBinaryFlat" "', argument " "3"" of type '" "faiss::gpu::GpuIndexBinaryFlatConfig""'");
68808 if (SWIG_IsNewObj(res3))
delete temp;
68812 Py_BEGIN_ALLOW_THREADS
68816 PyEval_RestoreThread(_save);
68817 PyErr_SetString(PyExc_RuntimeError, e.
what());
68820 Py_END_ALLOW_THREADS
68822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat, SWIG_POINTER_NEW | 0 );
68829 SWIGINTERN PyObject *_wrap_new_GpuIndexBinaryFlat__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68830 PyObject *resultobj = 0;
68837 PyObject * obj0 = 0 ;
68838 PyObject * obj1 = 0 ;
68841 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_GpuIndexBinaryFlat",&obj0,&obj1)) SWIG_fail;
68842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
68843 if (!SWIG_IsOK(res1)) {
68844 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_GpuIndexBinaryFlat" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
68847 ecode2 = SWIG_AsVal_int(obj1, &val2);
68848 if (!SWIG_IsOK(ecode2)) {
68849 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_GpuIndexBinaryFlat" "', argument " "2"" of type '" "int""'");
68851 arg2 =
static_cast< int >(val2);
68853 Py_BEGIN_ALLOW_THREADS
68857 PyEval_RestoreThread(_save);
68858 PyErr_SetString(PyExc_RuntimeError, e.
what());
68861 Py_END_ALLOW_THREADS
68863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat, SWIG_POINTER_NEW | 0 );
68870 SWIGINTERN PyObject *_wrap_new_GpuIndexBinaryFlat(PyObject *
self, PyObject *args) {
68872 PyObject *argv[4] = {
68877 if (!PyTuple_Check(args)) SWIG_fail;
68878 argc = args ? PyObject_Length(args) : 0;
68879 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
68880 argv[ii] = PyTuple_GET_ITEM(args,ii);
68885 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
68886 _v = SWIG_CheckState(res);
68889 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IndexBinaryFlat, 0);
68890 _v = SWIG_CheckState(res);
68892 return _wrap_new_GpuIndexBinaryFlat__SWIG_1(
self, args);
68899 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
68900 _v = SWIG_CheckState(res);
68903 int res = SWIG_AsVal_int(argv[1], NULL);
68904 _v = SWIG_CheckState(res);
68907 return _wrap_new_GpuIndexBinaryFlat__SWIG_3(
self, args);
68914 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
68915 _v = SWIG_CheckState(res);
68918 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IndexBinaryFlat, 0);
68919 _v = SWIG_CheckState(res);
68921 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlatConfig, 0);
68922 _v = SWIG_CheckState(res);
68924 return _wrap_new_GpuIndexBinaryFlat__SWIG_0(
self, args);
68932 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
68933 _v = SWIG_CheckState(res);
68936 int res = SWIG_AsVal_int(argv[1], NULL);
68937 _v = SWIG_CheckState(res);
68940 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlatConfig, 0);
68941 _v = SWIG_CheckState(res);
68943 return _wrap_new_GpuIndexBinaryFlat__SWIG_2(
self, args);
68950 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_GpuIndexBinaryFlat'.\n"
68951 " Possible C/C++ prototypes are:\n"
68952 " faiss::gpu::GpuIndexBinaryFlat::GpuIndexBinaryFlat(faiss::gpu::GpuResources *,faiss::IndexBinaryFlat const *,faiss::gpu::GpuIndexBinaryFlatConfig)\n"
68953 " faiss::gpu::GpuIndexBinaryFlat::GpuIndexBinaryFlat(faiss::gpu::GpuResources *,faiss::IndexBinaryFlat const *)\n"
68954 " faiss::gpu::GpuIndexBinaryFlat::GpuIndexBinaryFlat(faiss::gpu::GpuResources *,int,faiss::gpu::GpuIndexBinaryFlatConfig)\n"
68955 " faiss::gpu::GpuIndexBinaryFlat::GpuIndexBinaryFlat(faiss::gpu::GpuResources *,int)\n");
68960 SWIGINTERN PyObject *_wrap_delete_GpuIndexBinaryFlat(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68961 PyObject *resultobj = 0;
68965 PyObject * obj0 = 0 ;
68967 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuIndexBinaryFlat",&obj0)) SWIG_fail;
68968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat, SWIG_POINTER_DISOWN | 0 );
68969 if (!SWIG_IsOK(res1)) {
68970 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuIndexBinaryFlat" "', argument " "1"" of type '" "faiss::gpu::GpuIndexBinaryFlat *""'");
68974 Py_BEGIN_ALLOW_THREADS
68978 PyEval_RestoreThread(_save);
68979 PyErr_SetString(PyExc_RuntimeError, e.
what());
68982 Py_END_ALLOW_THREADS
68984 resultobj = SWIG_Py_Void();
68991 SWIGINTERN PyObject *_wrap_GpuIndexBinaryFlat_copyFrom(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
68992 PyObject *resultobj = 0;
68999 PyObject * obj0 = 0 ;
69000 PyObject * obj1 = 0 ;
69002 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexBinaryFlat_copyFrom",&obj0,&obj1)) SWIG_fail;
69003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat, 0 | 0 );
69004 if (!SWIG_IsOK(res1)) {
69005 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexBinaryFlat_copyFrom" "', argument " "1"" of type '" "faiss::gpu::GpuIndexBinaryFlat *""'");
69008 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
69009 if (!SWIG_IsOK(res2)) {
69010 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexBinaryFlat_copyFrom" "', argument " "2"" of type '" "faiss::IndexBinaryFlat const *""'");
69014 Py_BEGIN_ALLOW_THREADS
69018 PyEval_RestoreThread(_save);
69019 PyErr_SetString(PyExc_RuntimeError, e.
what());
69022 Py_END_ALLOW_THREADS
69024 resultobj = SWIG_Py_Void();
69031 SWIGINTERN PyObject *_wrap_GpuIndexBinaryFlat_copyTo(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69032 PyObject *resultobj = 0;
69039 PyObject * obj0 = 0 ;
69040 PyObject * obj1 = 0 ;
69042 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuIndexBinaryFlat_copyTo",&obj0,&obj1)) SWIG_fail;
69043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat, 0 | 0 );
69044 if (!SWIG_IsOK(res1)) {
69045 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexBinaryFlat_copyTo" "', argument " "1"" of type '" "faiss::gpu::GpuIndexBinaryFlat const *""'");
69048 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexBinaryFlat, 0 | 0 );
69049 if (!SWIG_IsOK(res2)) {
69050 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuIndexBinaryFlat_copyTo" "', argument " "2"" of type '" "faiss::IndexBinaryFlat *""'");
69054 Py_BEGIN_ALLOW_THREADS
69058 PyEval_RestoreThread(_save);
69059 PyErr_SetString(PyExc_RuntimeError, e.
what());
69062 Py_END_ALLOW_THREADS
69064 resultobj = SWIG_Py_Void();
69071 SWIGINTERN PyObject *_wrap_GpuIndexBinaryFlat_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69072 PyObject *resultobj = 0;
69075 uint8_t *arg3 = (uint8_t *) 0 ;
69082 PyObject * obj0 = 0 ;
69083 PyObject * obj1 = 0 ;
69084 PyObject * obj2 = 0 ;
69086 if (!PyArg_ParseTuple(args,(
char *)
"OOO:GpuIndexBinaryFlat_add",&obj0,&obj1,&obj2)) SWIG_fail;
69087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat, 0 | 0 );
69088 if (!SWIG_IsOK(res1)) {
69089 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexBinaryFlat_add" "', argument " "1"" of type '" "faiss::gpu::GpuIndexBinaryFlat *""'");
69092 ecode2 = SWIG_AsVal_long(obj1, &val2);
69093 if (!SWIG_IsOK(ecode2)) {
69094 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexBinaryFlat_add" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
69097 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
69098 if (!SWIG_IsOK(res3)) {
69099 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "GpuIndexBinaryFlat_add" "', argument " "3"" of type '" "uint8_t const *""'");
69101 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
69103 Py_BEGIN_ALLOW_THREADS
69105 (arg1)->add(arg2,(uint8_t
const *)arg3);
69107 PyEval_RestoreThread(_save);
69108 PyErr_SetString(PyExc_RuntimeError, e.
what());
69111 Py_END_ALLOW_THREADS
69113 resultobj = SWIG_Py_Void();
69120 SWIGINTERN PyObject *_wrap_GpuIndexBinaryFlat_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69121 PyObject *resultobj = 0;
69125 PyObject * obj0 = 0 ;
69127 if (!PyArg_ParseTuple(args,(
char *)
"O:GpuIndexBinaryFlat_reset",&obj0)) SWIG_fail;
69128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat, 0 | 0 );
69129 if (!SWIG_IsOK(res1)) {
69130 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexBinaryFlat_reset" "', argument " "1"" of type '" "faiss::gpu::GpuIndexBinaryFlat *""'");
69134 Py_BEGIN_ALLOW_THREADS
69138 PyEval_RestoreThread(_save);
69139 PyErr_SetString(PyExc_RuntimeError, e.
what());
69142 Py_END_ALLOW_THREADS
69144 resultobj = SWIG_Py_Void();
69151 SWIGINTERN PyObject *_wrap_GpuIndexBinaryFlat_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69152 PyObject *resultobj = 0;
69155 uint8_t *arg3 = (uint8_t *) 0 ;
69157 int32_t *arg5 = (int32_t *) 0 ;
69171 PyObject * obj0 = 0 ;
69172 PyObject * obj1 = 0 ;
69173 PyObject * obj2 = 0 ;
69174 PyObject * obj3 = 0 ;
69175 PyObject * obj4 = 0 ;
69176 PyObject * obj5 = 0 ;
69178 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:GpuIndexBinaryFlat_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
69179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat, 0 | 0 );
69180 if (!SWIG_IsOK(res1)) {
69181 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexBinaryFlat_search" "', argument " "1"" of type '" "faiss::gpu::GpuIndexBinaryFlat const *""'");
69184 ecode2 = SWIG_AsVal_long(obj1, &val2);
69185 if (!SWIG_IsOK(ecode2)) {
69186 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexBinaryFlat_search" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
69189 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
69190 if (!SWIG_IsOK(res3)) {
69191 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "GpuIndexBinaryFlat_search" "', argument " "3"" of type '" "uint8_t const *""'");
69193 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
69194 ecode4 = SWIG_AsVal_long(obj3, &val4);
69195 if (!SWIG_IsOK(ecode4)) {
69196 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "GpuIndexBinaryFlat_search" "', argument " "4"" of type '" "faiss::IndexBinary::idx_t""'");
69199 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
69200 if (!SWIG_IsOK(res5)) {
69201 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "GpuIndexBinaryFlat_search" "', argument " "5"" of type '" "int32_t *""'");
69203 arg5 =
reinterpret_cast< int32_t *
>(argp5);
69204 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
69205 if (!SWIG_IsOK(res6)) {
69206 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "GpuIndexBinaryFlat_search" "', argument " "6"" of type '" "faiss::IndexBinary::idx_t *""'");
69210 Py_BEGIN_ALLOW_THREADS
69214 PyEval_RestoreThread(_save);
69215 PyErr_SetString(PyExc_RuntimeError, e.
what());
69218 Py_END_ALLOW_THREADS
69220 resultobj = SWIG_Py_Void();
69227 SWIGINTERN PyObject *_wrap_GpuIndexBinaryFlat_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69228 PyObject *resultobj = 0;
69231 uint8_t *arg3 = (uint8_t *) 0 ;
69238 PyObject * obj0 = 0 ;
69239 PyObject * obj1 = 0 ;
69240 PyObject * obj2 = 0 ;
69242 if (!PyArg_ParseTuple(args,(
char *)
"OOO:GpuIndexBinaryFlat_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
69243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat, 0 | 0 );
69244 if (!SWIG_IsOK(res1)) {
69245 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuIndexBinaryFlat_reconstruct" "', argument " "1"" of type '" "faiss::gpu::GpuIndexBinaryFlat const *""'");
69248 ecode2 = SWIG_AsVal_long(obj1, &val2);
69249 if (!SWIG_IsOK(ecode2)) {
69250 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "GpuIndexBinaryFlat_reconstruct" "', argument " "2"" of type '" "faiss::IndexBinary::idx_t""'");
69253 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
69254 if (!SWIG_IsOK(res3)) {
69255 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "GpuIndexBinaryFlat_reconstruct" "', argument " "3"" of type '" "uint8_t *""'");
69257 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
69259 Py_BEGIN_ALLOW_THREADS
69263 PyEval_RestoreThread(_save);
69264 PyErr_SetString(PyExc_RuntimeError, e.
what());
69267 Py_END_ALLOW_THREADS
69269 resultobj = SWIG_Py_Void();
69276 SWIGINTERN PyObject *GpuIndexBinaryFlat_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69278 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
69279 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat, SWIG_NewClientData(obj));
69280 return SWIG_Py_Void();
69283 SWIGINTERN PyObject *_wrap_new_IndexProxy(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69284 PyObject *resultobj = 0;
69287 if (!PyArg_ParseTuple(args,(
char *)
":new_IndexProxy")) SWIG_fail;
69289 Py_BEGIN_ALLOW_THREADS
69293 PyEval_RestoreThread(_save);
69294 PyErr_SetString(PyExc_RuntimeError, e.
what());
69297 Py_END_ALLOW_THREADS
69299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__IndexProxy, SWIG_POINTER_NEW | 0 );
69306 SWIGINTERN PyObject *_wrap_delete_IndexProxy(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69307 PyObject *resultobj = 0;
69311 PyObject * obj0 = 0 ;
69313 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IndexProxy",&obj0)) SWIG_fail;
69314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__IndexProxy, SWIG_POINTER_DISOWN | 0 );
69315 if (!SWIG_IsOK(res1)) {
69316 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IndexProxy" "', argument " "1"" of type '" "faiss::gpu::IndexProxy *""'");
69320 Py_BEGIN_ALLOW_THREADS
69324 PyEval_RestoreThread(_save);
69325 PyErr_SetString(PyExc_RuntimeError, e.
what());
69328 Py_END_ALLOW_THREADS
69330 resultobj = SWIG_Py_Void();
69337 SWIGINTERN PyObject *_wrap_IndexProxy_addIndex(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69338 PyObject *resultobj = 0;
69345 PyObject * obj0 = 0 ;
69346 PyObject * obj1 = 0 ;
69348 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexProxy_addIndex",&obj0,&obj1)) SWIG_fail;
69349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__IndexProxy, 0 | 0 );
69350 if (!SWIG_IsOK(res1)) {
69351 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexProxy_addIndex" "', argument " "1"" of type '" "faiss::gpu::IndexProxy *""'");
69354 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
69355 if (!SWIG_IsOK(res2)) {
69356 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexProxy_addIndex" "', argument " "2"" of type '" "faiss::Index *""'");
69360 Py_BEGIN_ALLOW_THREADS
69362 (arg1)->addIndex(arg2);
69364 PyEval_RestoreThread(_save);
69365 PyErr_SetString(PyExc_RuntimeError, e.
what());
69368 Py_END_ALLOW_THREADS
69370 resultobj = SWIG_Py_Void();
69377 SWIGINTERN PyObject *_wrap_IndexProxy_removeIndex(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69378 PyObject *resultobj = 0;
69385 PyObject * obj0 = 0 ;
69386 PyObject * obj1 = 0 ;
69388 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexProxy_removeIndex",&obj0,&obj1)) SWIG_fail;
69389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__IndexProxy, 0 | 0 );
69390 if (!SWIG_IsOK(res1)) {
69391 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexProxy_removeIndex" "', argument " "1"" of type '" "faiss::gpu::IndexProxy *""'");
69394 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
69395 if (!SWIG_IsOK(res2)) {
69396 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexProxy_removeIndex" "', argument " "2"" of type '" "faiss::Index *""'");
69400 Py_BEGIN_ALLOW_THREADS
69402 (arg1)->removeIndex(arg2);
69404 PyEval_RestoreThread(_save);
69405 PyErr_SetString(PyExc_RuntimeError, e.
what());
69408 Py_END_ALLOW_THREADS
69410 resultobj = SWIG_Py_Void();
69417 SWIGINTERN PyObject *_wrap_IndexProxy_runOnIndex(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69418 PyObject *resultobj = 0;
69420 SwigValueWrapper< std::function< void (faiss::Index *) > > arg2 ;
69425 PyObject * obj0 = 0 ;
69426 PyObject * obj1 = 0 ;
69428 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexProxy_runOnIndex",&obj0,&obj1)) SWIG_fail;
69429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__IndexProxy, 0 | 0 );
69430 if (!SWIG_IsOK(res1)) {
69431 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexProxy_runOnIndex" "', argument " "1"" of type '" "faiss::gpu::IndexProxy *""'");
69435 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__functionT_void_ffaiss__Index_pF_t, 0 | 0);
69436 if (!SWIG_IsOK(res2)) {
69437 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IndexProxy_runOnIndex" "', argument " "2"" of type '" "std::function< void (faiss::Index *) >""'");
69440 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IndexProxy_runOnIndex" "', argument " "2"" of type '" "std::function< void (faiss::Index *) >""'");
69442 std::function< void (faiss::Index *) > * temp =
reinterpret_cast< std::function< void (faiss::Index *) > *
>(argp2);
69444 if (SWIG_IsNewObj(res2))
delete temp;
69448 Py_BEGIN_ALLOW_THREADS
69450 (arg1)->runOnIndex(arg2);
69452 PyEval_RestoreThread(_save);
69453 PyErr_SetString(PyExc_RuntimeError, e.
what());
69456 Py_END_ALLOW_THREADS
69458 resultobj = SWIG_Py_Void();
69465 SWIGINTERN PyObject *_wrap_IndexProxy_reset(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69466 PyObject *resultobj = 0;
69470 PyObject * obj0 = 0 ;
69472 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexProxy_reset",&obj0)) SWIG_fail;
69473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__IndexProxy, 0 | 0 );
69474 if (!SWIG_IsOK(res1)) {
69475 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexProxy_reset" "', argument " "1"" of type '" "faiss::gpu::IndexProxy *""'");
69479 Py_BEGIN_ALLOW_THREADS
69483 PyEval_RestoreThread(_save);
69484 PyErr_SetString(PyExc_RuntimeError, e.
what());
69487 Py_END_ALLOW_THREADS
69489 resultobj = SWIG_Py_Void();
69496 SWIGINTERN PyObject *_wrap_IndexProxy_train(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69497 PyObject *resultobj = 0;
69500 float *arg3 = (
float *) 0 ;
69507 PyObject * obj0 = 0 ;
69508 PyObject * obj1 = 0 ;
69509 PyObject * obj2 = 0 ;
69511 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexProxy_train",&obj0,&obj1,&obj2)) SWIG_fail;
69512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__IndexProxy, 0 | 0 );
69513 if (!SWIG_IsOK(res1)) {
69514 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexProxy_train" "', argument " "1"" of type '" "faiss::gpu::IndexProxy *""'");
69517 ecode2 = SWIG_AsVal_long(obj1, &val2);
69518 if (!SWIG_IsOK(ecode2)) {
69519 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexProxy_train" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
69522 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
69523 if (!SWIG_IsOK(res3)) {
69524 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexProxy_train" "', argument " "3"" of type '" "float const *""'");
69526 arg3 =
reinterpret_cast< float *
>(argp3);
69528 Py_BEGIN_ALLOW_THREADS
69530 (arg1)->train(arg2,(
float const *)arg3);
69532 PyEval_RestoreThread(_save);
69533 PyErr_SetString(PyExc_RuntimeError, e.
what());
69536 Py_END_ALLOW_THREADS
69538 resultobj = SWIG_Py_Void();
69545 SWIGINTERN PyObject *_wrap_IndexProxy_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69546 PyObject *resultobj = 0;
69549 float *arg3 = (
float *) 0 ;
69556 PyObject * obj0 = 0 ;
69557 PyObject * obj1 = 0 ;
69558 PyObject * obj2 = 0 ;
69560 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexProxy_add",&obj0,&obj1,&obj2)) SWIG_fail;
69561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__IndexProxy, 0 | 0 );
69562 if (!SWIG_IsOK(res1)) {
69563 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexProxy_add" "', argument " "1"" of type '" "faiss::gpu::IndexProxy *""'");
69566 ecode2 = SWIG_AsVal_long(obj1, &val2);
69567 if (!SWIG_IsOK(ecode2)) {
69568 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexProxy_add" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
69571 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
69572 if (!SWIG_IsOK(res3)) {
69573 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexProxy_add" "', argument " "3"" of type '" "float const *""'");
69575 arg3 =
reinterpret_cast< float *
>(argp3);
69577 Py_BEGIN_ALLOW_THREADS
69579 (arg1)->add(arg2,(
float const *)arg3);
69581 PyEval_RestoreThread(_save);
69582 PyErr_SetString(PyExc_RuntimeError, e.
what());
69585 Py_END_ALLOW_THREADS
69587 resultobj = SWIG_Py_Void();
69594 SWIGINTERN PyObject *_wrap_IndexProxy_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69595 PyObject *resultobj = 0;
69598 float *arg3 = (
float *) 0 ;
69600 float *arg5 = (
float *) 0 ;
69614 PyObject * obj0 = 0 ;
69615 PyObject * obj1 = 0 ;
69616 PyObject * obj2 = 0 ;
69617 PyObject * obj3 = 0 ;
69618 PyObject * obj4 = 0 ;
69619 PyObject * obj5 = 0 ;
69621 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:IndexProxy_search",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
69622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__IndexProxy, 0 | 0 );
69623 if (!SWIG_IsOK(res1)) {
69624 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexProxy_search" "', argument " "1"" of type '" "faiss::gpu::IndexProxy const *""'");
69627 ecode2 = SWIG_AsVal_long(obj1, &val2);
69628 if (!SWIG_IsOK(ecode2)) {
69629 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexProxy_search" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
69632 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
69633 if (!SWIG_IsOK(res3)) {
69634 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexProxy_search" "', argument " "3"" of type '" "float const *""'");
69636 arg3 =
reinterpret_cast< float *
>(argp3);
69637 ecode4 = SWIG_AsVal_long(obj3, &val4);
69638 if (!SWIG_IsOK(ecode4)) {
69639 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IndexProxy_search" "', argument " "4"" of type '" "faiss::Index::idx_t""'");
69642 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
69643 if (!SWIG_IsOK(res5)) {
69644 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "IndexProxy_search" "', argument " "5"" of type '" "float *""'");
69646 arg5 =
reinterpret_cast< float *
>(argp5);
69647 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_long, 0 | 0 );
69648 if (!SWIG_IsOK(res6)) {
69649 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "IndexProxy_search" "', argument " "6"" of type '" "faiss::Index::idx_t *""'");
69653 Py_BEGIN_ALLOW_THREADS
69657 PyEval_RestoreThread(_save);
69658 PyErr_SetString(PyExc_RuntimeError, e.
what());
69661 Py_END_ALLOW_THREADS
69663 resultobj = SWIG_Py_Void();
69670 SWIGINTERN PyObject *_wrap_IndexProxy_reconstruct(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69671 PyObject *resultobj = 0;
69674 float *arg3 = (
float *) 0 ;
69681 PyObject * obj0 = 0 ;
69682 PyObject * obj1 = 0 ;
69683 PyObject * obj2 = 0 ;
69685 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IndexProxy_reconstruct",&obj0,&obj1,&obj2)) SWIG_fail;
69686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__IndexProxy, 0 | 0 );
69687 if (!SWIG_IsOK(res1)) {
69688 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexProxy_reconstruct" "', argument " "1"" of type '" "faiss::gpu::IndexProxy const *""'");
69691 ecode2 = SWIG_AsVal_long(obj1, &val2);
69692 if (!SWIG_IsOK(ecode2)) {
69693 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexProxy_reconstruct" "', argument " "2"" of type '" "faiss::Index::idx_t""'");
69696 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
69697 if (!SWIG_IsOK(res3)) {
69698 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IndexProxy_reconstruct" "', argument " "3"" of type '" "float *""'");
69700 arg3 =
reinterpret_cast< float *
>(argp3);
69702 Py_BEGIN_ALLOW_THREADS
69706 PyEval_RestoreThread(_save);
69707 PyErr_SetString(PyExc_RuntimeError, e.
what());
69710 Py_END_ALLOW_THREADS
69712 resultobj = SWIG_Py_Void();
69719 SWIGINTERN PyObject *_wrap_IndexProxy_own_fields_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69720 PyObject *resultobj = 0;
69727 PyObject * obj0 = 0 ;
69728 PyObject * obj1 = 0 ;
69730 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexProxy_own_fields_set",&obj0,&obj1)) SWIG_fail;
69731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__IndexProxy, 0 | 0 );
69732 if (!SWIG_IsOK(res1)) {
69733 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexProxy_own_fields_set" "', argument " "1"" of type '" "faiss::gpu::IndexProxy *""'");
69736 ecode2 = SWIG_AsVal_bool(obj1, &val2);
69737 if (!SWIG_IsOK(ecode2)) {
69738 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexProxy_own_fields_set" "', argument " "2"" of type '" "bool""'");
69740 arg2 =
static_cast< bool >(val2);
69741 if (arg1) (arg1)->own_fields = arg2;
69742 resultobj = SWIG_Py_Void();
69749 SWIGINTERN PyObject *_wrap_IndexProxy_own_fields_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69750 PyObject *resultobj = 0;
69754 PyObject * obj0 = 0 ;
69757 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexProxy_own_fields_get",&obj0)) SWIG_fail;
69758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__IndexProxy, 0 | 0 );
69759 if (!SWIG_IsOK(res1)) {
69760 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexProxy_own_fields_get" "', argument " "1"" of type '" "faiss::gpu::IndexProxy *""'");
69763 result = (bool) ((arg1)->own_fields);
69764 resultobj = SWIG_From_bool(static_cast< bool >(result));
69771 SWIGINTERN PyObject *_wrap_IndexProxy_count(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69772 PyObject *resultobj = 0;
69776 PyObject * obj0 = 0 ;
69779 if (!PyArg_ParseTuple(args,(
char *)
"O:IndexProxy_count",&obj0)) SWIG_fail;
69780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__IndexProxy, 0 | 0 );
69781 if (!SWIG_IsOK(res1)) {
69782 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexProxy_count" "', argument " "1"" of type '" "faiss::gpu::IndexProxy const *""'");
69786 Py_BEGIN_ALLOW_THREADS
69790 PyEval_RestoreThread(_save);
69791 PyErr_SetString(PyExc_RuntimeError, e.
what());
69794 Py_END_ALLOW_THREADS
69796 resultobj = SWIG_From_int(static_cast< int >(result));
69803 SWIGINTERN PyObject *_wrap_IndexProxy_at(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69804 PyObject *resultobj = 0;
69811 PyObject * obj0 = 0 ;
69812 PyObject * obj1 = 0 ;
69815 if (!PyArg_ParseTuple(args,(
char *)
"OO:IndexProxy_at",&obj0,&obj1)) SWIG_fail;
69816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__IndexProxy, 0 | 0 );
69817 if (!SWIG_IsOK(res1)) {
69818 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IndexProxy_at" "', argument " "1"" of type '" "faiss::gpu::IndexProxy *""'");
69821 ecode2 = SWIG_AsVal_int(obj1, &val2);
69822 if (!SWIG_IsOK(ecode2)) {
69823 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IndexProxy_at" "', argument " "2"" of type '" "int""'");
69825 arg2 =
static_cast< int >(val2);
69827 Py_BEGIN_ALLOW_THREADS
69831 PyEval_RestoreThread(_save);
69832 PyErr_SetString(PyExc_RuntimeError, e.
what());
69835 Py_END_ALLOW_THREADS
69837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Index, 0 | 0 );
69844 SWIGINTERN PyObject *IndexProxy_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69846 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
69847 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__IndexProxy, SWIG_NewClientData(obj));
69848 return SWIG_Py_Void();
69851 SWIGINTERN PyObject *_wrap_kmeans_clustering_gpu(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69852 PyObject *resultobj = 0;
69857 float *arg5 = (
float *) 0 ;
69858 float *arg6 = (
float *) 0 ;
69877 PyObject * obj0 = 0 ;
69878 PyObject * obj1 = 0 ;
69879 PyObject * obj2 = 0 ;
69880 PyObject * obj3 = 0 ;
69881 PyObject * obj4 = 0 ;
69882 PyObject * obj5 = 0 ;
69883 PyObject * obj6 = 0 ;
69884 PyObject * obj7 = 0 ;
69887 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOO:kmeans_clustering_gpu",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
69888 ecode1 = SWIG_AsVal_int(obj0, &val1);
69889 if (!SWIG_IsOK(ecode1)) {
69890 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "kmeans_clustering_gpu" "', argument " "1"" of type '" "int""'");
69892 arg1 =
static_cast< int >(val1);
69893 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
69894 if (!SWIG_IsOK(ecode2)) {
69895 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "kmeans_clustering_gpu" "', argument " "2"" of type '" "size_t""'");
69897 arg2 =
static_cast< size_t >(val2);
69898 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
69899 if (!SWIG_IsOK(ecode3)) {
69900 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "kmeans_clustering_gpu" "', argument " "3"" of type '" "size_t""'");
69902 arg3 =
static_cast< size_t >(val3);
69903 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
69904 if (!SWIG_IsOK(ecode4)) {
69905 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "kmeans_clustering_gpu" "', argument " "4"" of type '" "size_t""'");
69907 arg4 =
static_cast< size_t >(val4);
69908 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
69909 if (!SWIG_IsOK(res5)) {
69910 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "kmeans_clustering_gpu" "', argument " "5"" of type '" "float const *""'");
69912 arg5 =
reinterpret_cast< float *
>(argp5);
69913 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
69914 if (!SWIG_IsOK(res6)) {
69915 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "kmeans_clustering_gpu" "', argument " "6"" of type '" "float *""'");
69917 arg6 =
reinterpret_cast< float *
>(argp6);
69918 ecode7 = SWIG_AsVal_bool(obj6, &val7);
69919 if (!SWIG_IsOK(ecode7)) {
69920 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "kmeans_clustering_gpu" "', argument " "7"" of type '" "bool""'");
69922 arg7 =
static_cast< bool >(val7);
69923 ecode8 = SWIG_AsVal_bool(obj7, &val8);
69924 if (!SWIG_IsOK(ecode8)) {
69925 SWIG_exception_fail(SWIG_ArgError(ecode8),
"in method '" "kmeans_clustering_gpu" "', argument " "8"" of type '" "bool""'");
69927 arg8 =
static_cast< bool >(val8);
69929 Py_BEGIN_ALLOW_THREADS
69931 result = (float)faiss::gpu::kmeans_clustering_gpu(arg1,arg2,arg3,arg4,(
float const *)arg5,arg6,arg7,arg8);
69933 PyEval_RestoreThread(_save);
69934 PyErr_SetString(PyExc_RuntimeError, e.
what());
69937 Py_END_ALLOW_THREADS
69939 resultobj = SWIG_From_float(static_cast< float >(result));
69946 SWIGINTERN PyObject *_wrap_bruteForceKnn(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
69947 PyObject *resultobj = 0;
69950 float *arg3 = (
float *) 0 ;
69952 float *arg5 = (
float *) 0 ;
69956 float *arg9 = (
float *) 0 ;
69978 PyObject * obj0 = 0 ;
69979 PyObject * obj1 = 0 ;
69980 PyObject * obj2 = 0 ;
69981 PyObject * obj3 = 0 ;
69982 PyObject * obj4 = 0 ;
69983 PyObject * obj5 = 0 ;
69984 PyObject * obj6 = 0 ;
69985 PyObject * obj7 = 0 ;
69986 PyObject * obj8 = 0 ;
69987 PyObject * obj9 = 0 ;
69989 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOOOOO:bruteForceKnn",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
69990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
69991 if (!SWIG_IsOK(res1)) {
69992 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "bruteForceKnn" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
69995 ecode2 = SWIG_AsVal_int(obj1, &val2);
69996 if (!SWIG_IsOK(ecode2)) {
69997 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "bruteForceKnn" "', argument " "2"" of type '" "faiss::MetricType""'");
70000 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
70001 if (!SWIG_IsOK(res3)) {
70002 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "bruteForceKnn" "', argument " "3"" of type '" "float const *""'");
70004 arg3 =
reinterpret_cast< float *
>(argp3);
70005 ecode4 = SWIG_AsVal_int(obj3, &val4);
70006 if (!SWIG_IsOK(ecode4)) {
70007 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "bruteForceKnn" "', argument " "4"" of type '" "int""'");
70009 arg4 =
static_cast< int >(val4);
70010 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
70011 if (!SWIG_IsOK(res5)) {
70012 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "bruteForceKnn" "', argument " "5"" of type '" "float const *""'");
70014 arg5 =
reinterpret_cast< float *
>(argp5);
70015 ecode6 = SWIG_AsVal_int(obj5, &val6);
70016 if (!SWIG_IsOK(ecode6)) {
70017 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "bruteForceKnn" "', argument " "6"" of type '" "int""'");
70019 arg6 =
static_cast< int >(val6);
70020 ecode7 = SWIG_AsVal_int(obj6, &val7);
70021 if (!SWIG_IsOK(ecode7)) {
70022 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "bruteForceKnn" "', argument " "7"" of type '" "int""'");
70024 arg7 =
static_cast< int >(val7);
70025 ecode8 = SWIG_AsVal_int(obj7, &val8);
70026 if (!SWIG_IsOK(ecode8)) {
70027 SWIG_exception_fail(SWIG_ArgError(ecode8),
"in method '" "bruteForceKnn" "', argument " "8"" of type '" "int""'");
70029 arg8 =
static_cast< int >(val8);
70030 res9 = SWIG_ConvertPtr(obj8, &argp9,SWIGTYPE_p_float, 0 | 0 );
70031 if (!SWIG_IsOK(res9)) {
70032 SWIG_exception_fail(SWIG_ArgError(res9),
"in method '" "bruteForceKnn" "', argument " "9"" of type '" "float *""'");
70034 arg9 =
reinterpret_cast< float *
>(argp9);
70035 res10 = SWIG_ConvertPtr(obj9, &argp10,SWIGTYPE_p_long, 0 | 0 );
70036 if (!SWIG_IsOK(res10)) {
70037 SWIG_exception_fail(SWIG_ArgError(res10),
"in method '" "bruteForceKnn" "', argument " "10"" of type '" "faiss::Index::idx_t *""'");
70041 Py_BEGIN_ALLOW_THREADS
70043 faiss::gpu::bruteForceKnn(arg1,arg2,(
float const *)arg3,arg4,(
float const *)arg5,arg6,arg7,arg8,arg9,arg10);
70045 PyEval_RestoreThread(_save);
70046 PyErr_SetString(PyExc_RuntimeError, e.
what());
70049 Py_END_ALLOW_THREADS
70051 resultobj = SWIG_Py_Void();
70058 SWIGINTERN PyObject *_wrap_downcast_index(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70059 PyObject *resultobj = 0;
70063 PyObject * obj0 = 0 ;
70066 if (!PyArg_ParseTuple(args,(
char *)
"O:downcast_index",&obj0)) SWIG_fail;
70067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
70068 if (!SWIG_IsOK(res1)) {
70069 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "downcast_index" "', argument " "1"" of type '" "faiss::Index *""'");
70073 Py_BEGIN_ALLOW_THREADS
70077 PyEval_RestoreThread(_save);
70078 PyErr_SetString(PyExc_RuntimeError, e.
what());
70081 Py_END_ALLOW_THREADS
70085 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
70086 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,0);
70090 if (dynamic_cast<faiss::IndexShards *> (result)) {
70091 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,0);
70095 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
70096 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,0);
70100 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
70101 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,0);
70105 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
70106 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,0);
70110 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
70111 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,0);
70115 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
70116 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,0);
70120 if (dynamic_cast<faiss::IndexIVF *> (result)) {
70121 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,0);
70125 if (dynamic_cast<faiss::IndexFlat *> (result)) {
70126 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,0);
70130 if (dynamic_cast<faiss::IndexPQ *> (result)) {
70131 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,0);
70135 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
70136 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,0);
70140 if (dynamic_cast<faiss::IndexLSH *> (result)) {
70141 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,0);
70145 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
70146 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,0);
70150 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
70151 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,0);
70155 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
70156 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,0);
70160 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
70161 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,0);
70165 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
70166 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,0);
70170 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
70171 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,0);
70175 if (dynamic_cast<faiss::Index2Layer *> (result)) {
70176 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,0);
70181 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
70182 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,0);
70186 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
70187 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,0);
70191 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
70192 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,0);
70196 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
70197 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,0);
70203 if (dynamic_cast<faiss::Index *> (result)) {
70204 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,0);
70207 if (result == NULL)
70209 resultobj = SWIG_Py_Void();
70225 SWIGINTERN PyObject *_wrap_downcast_VectorTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70226 PyObject *resultobj = 0;
70230 PyObject * obj0 = 0 ;
70233 if (!PyArg_ParseTuple(args,(
char *)
"O:downcast_VectorTransform",&obj0)) SWIG_fail;
70234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
70235 if (!SWIG_IsOK(res1)) {
70236 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "downcast_VectorTransform" "', argument " "1"" of type '" "faiss::VectorTransform *""'");
70240 Py_BEGIN_ALLOW_THREADS
70244 PyEval_RestoreThread(_save);
70245 PyErr_SetString(PyExc_RuntimeError, e.
what());
70248 Py_END_ALLOW_THREADS
70252 if (dynamic_cast<faiss::RemapDimensionsTransform *> (result)) {
70253 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__RemapDimensionsTransform,0);
70257 if (dynamic_cast<faiss::OPQMatrix *> (result)) {
70258 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__OPQMatrix,0);
70262 if (dynamic_cast<faiss::PCAMatrix *> (result)) {
70263 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__PCAMatrix,0);
70267 if (dynamic_cast<faiss::RandomRotationMatrix *> (result)) {
70268 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__RandomRotationMatrix,0);
70272 if (dynamic_cast<faiss::LinearTransform *> (result)) {
70273 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__LinearTransform,0);
70277 if (dynamic_cast<faiss::NormalizationTransform *> (result)) {
70278 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__NormalizationTransform,0);
70282 if (dynamic_cast<faiss::VectorTransform *> (result)) {
70283 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__VectorTransform,0);
70299 SWIGINTERN PyObject *_wrap_downcast_IndexBinary(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70300 PyObject *resultobj = 0;
70304 PyObject * obj0 = 0 ;
70307 if (!PyArg_ParseTuple(args,(
char *)
"O:downcast_IndexBinary",&obj0)) SWIG_fail;
70308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
70309 if (!SWIG_IsOK(res1)) {
70310 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "downcast_IndexBinary" "', argument " "1"" of type '" "faiss::IndexBinary *""'");
70314 Py_BEGIN_ALLOW_THREADS
70318 PyEval_RestoreThread(_save);
70319 PyErr_SetString(PyExc_RuntimeError, e.
what());
70322 Py_END_ALLOW_THREADS
70326 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
70327 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,0);
70331 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
70332 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,0);
70336 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
70337 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,0);
70341 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
70342 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,0);
70347 if (dynamic_cast<faiss::gpu::GpuIndexBinaryFlat *> (result)) {
70348 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat,0);
70354 if (dynamic_cast<faiss::IndexBinary *> (result)) {
70355 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,0);
70358 if (result == NULL)
70360 resultobj = SWIG_Py_Void();
70376 SWIGINTERN PyObject *_wrap_write_index__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70377 PyObject *resultobj = 0;
70379 char *arg2 = (
char *) 0 ;
70385 PyObject * obj0 = 0 ;
70386 PyObject * obj1 = 0 ;
70388 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_index",&obj0,&obj1)) SWIG_fail;
70389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
70390 if (!SWIG_IsOK(res1)) {
70391 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_index" "', argument " "1"" of type '" "faiss::Index const *""'");
70394 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
70395 if (!SWIG_IsOK(res2)) {
70396 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_index" "', argument " "2"" of type '" "char const *""'");
70398 arg2 =
reinterpret_cast< char *
>(buf2);
70400 Py_BEGIN_ALLOW_THREADS
70402 faiss::write_index((
faiss::Index const *)arg1,(
char const *)arg2);
70404 PyEval_RestoreThread(_save);
70405 PyErr_SetString(PyExc_RuntimeError, e.
what());
70408 Py_END_ALLOW_THREADS
70410 resultobj = SWIG_Py_Void();
70411 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
70414 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
70419 SWIGINTERN PyObject *_wrap_write_index__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70420 PyObject *resultobj = 0;
70422 FILE *arg2 = (FILE *) 0 ;
70427 PyObject * obj0 = 0 ;
70428 PyObject * obj1 = 0 ;
70430 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_index",&obj0,&obj1)) SWIG_fail;
70431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
70432 if (!SWIG_IsOK(res1)) {
70433 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_index" "', argument " "1"" of type '" "faiss::Index const *""'");
70436 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_FILE, 0 | 0 );
70437 if (!SWIG_IsOK(res2)) {
70438 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_index" "', argument " "2"" of type '" "FILE *""'");
70440 arg2 =
reinterpret_cast< FILE *
>(argp2);
70442 Py_BEGIN_ALLOW_THREADS
70446 PyEval_RestoreThread(_save);
70447 PyErr_SetString(PyExc_RuntimeError, e.
what());
70450 Py_END_ALLOW_THREADS
70452 resultobj = SWIG_Py_Void();
70459 SWIGINTERN PyObject *_wrap_write_index__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70460 PyObject *resultobj = 0;
70467 PyObject * obj0 = 0 ;
70468 PyObject * obj1 = 0 ;
70470 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_index",&obj0,&obj1)) SWIG_fail;
70471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
70472 if (!SWIG_IsOK(res1)) {
70473 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_index" "', argument " "1"" of type '" "faiss::Index const *""'");
70476 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
70477 if (!SWIG_IsOK(res2)) {
70478 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_index" "', argument " "2"" of type '" "faiss::IOWriter *""'");
70482 Py_BEGIN_ALLOW_THREADS
70486 PyEval_RestoreThread(_save);
70487 PyErr_SetString(PyExc_RuntimeError, e.
what());
70490 Py_END_ALLOW_THREADS
70492 resultobj = SWIG_Py_Void();
70499 SWIGINTERN PyObject *_wrap_write_index(PyObject *
self, PyObject *args) {
70501 PyObject *argv[3] = {
70506 if (!PyTuple_Check(args)) SWIG_fail;
70507 argc = args ? PyObject_Length(args) : 0;
70508 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
70509 argv[ii] = PyTuple_GET_ITEM(args,ii);
70514 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
70515 _v = SWIG_CheckState(res);
70518 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FILE, 0);
70519 _v = SWIG_CheckState(res);
70521 return _wrap_write_index__SWIG_1(
self, args);
70528 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
70529 _v = SWIG_CheckState(res);
70532 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IOWriter, 0);
70533 _v = SWIG_CheckState(res);
70535 return _wrap_write_index__SWIG_2(
self, args);
70542 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__Index, 0);
70543 _v = SWIG_CheckState(res);
70545 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
70546 _v = SWIG_CheckState(res);
70548 return _wrap_write_index__SWIG_0(
self, args);
70554 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'write_index'.\n"
70555 " Possible C/C++ prototypes are:\n"
70556 " faiss::write_index(faiss::Index const *,char const *)\n"
70557 " faiss::write_index(faiss::Index const *,FILE *)\n"
70558 " faiss::write_index(faiss::Index const *,faiss::IOWriter *)\n");
70563 SWIGINTERN PyObject *_wrap_write_index_binary__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70564 PyObject *resultobj = 0;
70566 char *arg2 = (
char *) 0 ;
70572 PyObject * obj0 = 0 ;
70573 PyObject * obj1 = 0 ;
70575 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_index_binary",&obj0,&obj1)) SWIG_fail;
70576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
70577 if (!SWIG_IsOK(res1)) {
70578 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_index_binary" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
70581 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
70582 if (!SWIG_IsOK(res2)) {
70583 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_index_binary" "', argument " "2"" of type '" "char const *""'");
70585 arg2 =
reinterpret_cast< char *
>(buf2);
70587 Py_BEGIN_ALLOW_THREADS
70591 PyEval_RestoreThread(_save);
70592 PyErr_SetString(PyExc_RuntimeError, e.
what());
70595 Py_END_ALLOW_THREADS
70597 resultobj = SWIG_Py_Void();
70598 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
70601 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
70606 SWIGINTERN PyObject *_wrap_write_index_binary__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70607 PyObject *resultobj = 0;
70609 FILE *arg2 = (FILE *) 0 ;
70614 PyObject * obj0 = 0 ;
70615 PyObject * obj1 = 0 ;
70617 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_index_binary",&obj0,&obj1)) SWIG_fail;
70618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
70619 if (!SWIG_IsOK(res1)) {
70620 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_index_binary" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
70623 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_FILE, 0 | 0 );
70624 if (!SWIG_IsOK(res2)) {
70625 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_index_binary" "', argument " "2"" of type '" "FILE *""'");
70627 arg2 =
reinterpret_cast< FILE *
>(argp2);
70629 Py_BEGIN_ALLOW_THREADS
70633 PyEval_RestoreThread(_save);
70634 PyErr_SetString(PyExc_RuntimeError, e.
what());
70637 Py_END_ALLOW_THREADS
70639 resultobj = SWIG_Py_Void();
70646 SWIGINTERN PyObject *_wrap_write_index_binary__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70647 PyObject *resultobj = 0;
70654 PyObject * obj0 = 0 ;
70655 PyObject * obj1 = 0 ;
70657 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_index_binary",&obj0,&obj1)) SWIG_fail;
70658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IndexBinary, 0 | 0 );
70659 if (!SWIG_IsOK(res1)) {
70660 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_index_binary" "', argument " "1"" of type '" "faiss::IndexBinary const *""'");
70663 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
70664 if (!SWIG_IsOK(res2)) {
70665 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_index_binary" "', argument " "2"" of type '" "faiss::IOWriter *""'");
70669 Py_BEGIN_ALLOW_THREADS
70673 PyEval_RestoreThread(_save);
70674 PyErr_SetString(PyExc_RuntimeError, e.
what());
70677 Py_END_ALLOW_THREADS
70679 resultobj = SWIG_Py_Void();
70686 SWIGINTERN PyObject *_wrap_write_index_binary(PyObject *
self, PyObject *args) {
70688 PyObject *argv[3] = {
70693 if (!PyTuple_Check(args)) SWIG_fail;
70694 argc = args ? PyObject_Length(args) : 0;
70695 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
70696 argv[ii] = PyTuple_GET_ITEM(args,ii);
70701 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
70702 _v = SWIG_CheckState(res);
70705 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FILE, 0);
70706 _v = SWIG_CheckState(res);
70708 return _wrap_write_index_binary__SWIG_1(
self, args);
70715 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
70716 _v = SWIG_CheckState(res);
70719 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IOWriter, 0);
70720 _v = SWIG_CheckState(res);
70722 return _wrap_write_index_binary__SWIG_2(
self, args);
70729 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IndexBinary, 0);
70730 _v = SWIG_CheckState(res);
70732 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
70733 _v = SWIG_CheckState(res);
70735 return _wrap_write_index_binary__SWIG_0(
self, args);
70741 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'write_index_binary'.\n"
70742 " Possible C/C++ prototypes are:\n"
70743 " faiss::write_index_binary(faiss::IndexBinary const *,char const *)\n"
70744 " faiss::write_index_binary(faiss::IndexBinary const *,FILE *)\n"
70745 " faiss::write_index_binary(faiss::IndexBinary const *,faiss::IOWriter *)\n");
70750 SWIGINTERN
int Swig_var_IO_FLAG_MMAP_set(PyObject *) {
70751 SWIG_Error(SWIG_AttributeError,
"Variable IO_FLAG_MMAP is read-only.");
70756 SWIGINTERN PyObject *Swig_var_IO_FLAG_MMAP_get(
void) {
70757 PyObject *pyobj = 0;
70759 pyobj = SWIG_From_int(static_cast< int >(faiss::IO_FLAG_MMAP));
70764 SWIGINTERN
int Swig_var_IO_FLAG_READ_ONLY_set(PyObject *) {
70765 SWIG_Error(SWIG_AttributeError,
"Variable IO_FLAG_READ_ONLY is read-only.");
70770 SWIGINTERN PyObject *Swig_var_IO_FLAG_READ_ONLY_get(
void) {
70771 PyObject *pyobj = 0;
70773 pyobj = SWIG_From_int(static_cast< int >(faiss::IO_FLAG_READ_ONLY));
70778 SWIGINTERN PyObject *_wrap_read_index__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70779 PyObject *resultobj = 0;
70780 char *arg1 = (
char *) 0 ;
70787 PyObject * obj0 = 0 ;
70788 PyObject * obj1 = 0 ;
70791 if (!PyArg_ParseTuple(args,(
char *)
"OO:read_index",&obj0,&obj1)) SWIG_fail;
70792 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
70793 if (!SWIG_IsOK(res1)) {
70794 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index" "', argument " "1"" of type '" "char const *""'");
70796 arg1 =
reinterpret_cast< char *
>(buf1);
70797 ecode2 = SWIG_AsVal_int(obj1, &val2);
70798 if (!SWIG_IsOK(ecode2)) {
70799 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "read_index" "', argument " "2"" of type '" "int""'");
70801 arg2 =
static_cast< int >(val2);
70803 Py_BEGIN_ALLOW_THREADS
70805 result = (
faiss::Index *)faiss::read_index((
char const *)arg1,arg2);
70807 PyEval_RestoreThread(_save);
70808 PyErr_SetString(PyExc_RuntimeError, e.
what());
70811 Py_END_ALLOW_THREADS
70815 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
70816 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
70820 if (dynamic_cast<faiss::IndexShards *> (result)) {
70821 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
70825 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
70826 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
70830 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
70831 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
70835 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
70836 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
70840 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
70841 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
70845 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
70846 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
70850 if (dynamic_cast<faiss::IndexIVF *> (result)) {
70851 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
70855 if (dynamic_cast<faiss::IndexFlat *> (result)) {
70856 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
70860 if (dynamic_cast<faiss::IndexPQ *> (result)) {
70861 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
70865 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
70866 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
70870 if (dynamic_cast<faiss::IndexLSH *> (result)) {
70871 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
70875 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
70876 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
70880 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
70881 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
70885 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
70886 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
70890 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
70891 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
70895 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
70896 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
70900 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
70901 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
70905 if (dynamic_cast<faiss::Index2Layer *> (result)) {
70906 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
70911 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
70912 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,SWIG_POINTER_OWN);
70916 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
70917 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,SWIG_POINTER_OWN);
70921 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
70922 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,SWIG_POINTER_OWN);
70926 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
70927 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,SWIG_POINTER_OWN);
70933 if (dynamic_cast<faiss::Index *> (result)) {
70934 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
70937 if (result == NULL)
70939 resultobj = SWIG_Py_Void();
70949 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
70952 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
70957 SWIGINTERN PyObject *_wrap_read_index__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
70958 PyObject *resultobj = 0;
70959 char *arg1 = (
char *) 0 ;
70963 PyObject * obj0 = 0 ;
70966 if (!PyArg_ParseTuple(args,(
char *)
"O:read_index",&obj0)) SWIG_fail;
70967 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
70968 if (!SWIG_IsOK(res1)) {
70969 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index" "', argument " "1"" of type '" "char const *""'");
70971 arg1 =
reinterpret_cast< char *
>(buf1);
70973 Py_BEGIN_ALLOW_THREADS
70975 result = (
faiss::Index *)faiss::read_index((
char const *)arg1);
70977 PyEval_RestoreThread(_save);
70978 PyErr_SetString(PyExc_RuntimeError, e.
what());
70981 Py_END_ALLOW_THREADS
70985 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
70986 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
70990 if (dynamic_cast<faiss::IndexShards *> (result)) {
70991 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
70995 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
70996 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
71000 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
71001 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
71005 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
71006 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
71010 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
71011 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
71015 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
71016 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
71020 if (dynamic_cast<faiss::IndexIVF *> (result)) {
71021 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
71025 if (dynamic_cast<faiss::IndexFlat *> (result)) {
71026 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
71030 if (dynamic_cast<faiss::IndexPQ *> (result)) {
71031 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
71035 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
71036 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
71040 if (dynamic_cast<faiss::IndexLSH *> (result)) {
71041 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
71045 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
71046 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
71050 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
71051 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
71055 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
71056 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
71060 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
71061 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
71065 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
71066 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
71070 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
71071 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
71075 if (dynamic_cast<faiss::Index2Layer *> (result)) {
71076 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
71081 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
71082 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,SWIG_POINTER_OWN);
71086 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
71087 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,SWIG_POINTER_OWN);
71091 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
71092 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,SWIG_POINTER_OWN);
71096 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
71097 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,SWIG_POINTER_OWN);
71103 if (dynamic_cast<faiss::Index *> (result)) {
71104 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
71107 if (result == NULL)
71109 resultobj = SWIG_Py_Void();
71119 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
71122 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
71127 SWIGINTERN PyObject *_wrap_read_index__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71128 PyObject *resultobj = 0;
71129 FILE *arg1 = (FILE *) 0 ;
71135 PyObject * obj0 = 0 ;
71136 PyObject * obj1 = 0 ;
71139 if (!PyArg_ParseTuple(args,(
char *)
"OO:read_index",&obj0,&obj1)) SWIG_fail;
71140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FILE, 0 | 0 );
71141 if (!SWIG_IsOK(res1)) {
71142 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index" "', argument " "1"" of type '" "FILE *""'");
71144 arg1 =
reinterpret_cast< FILE *
>(argp1);
71145 ecode2 = SWIG_AsVal_int(obj1, &val2);
71146 if (!SWIG_IsOK(ecode2)) {
71147 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "read_index" "', argument " "2"" of type '" "int""'");
71149 arg2 =
static_cast< int >(val2);
71151 Py_BEGIN_ALLOW_THREADS
71153 result = (
faiss::Index *)faiss::read_index(arg1,arg2);
71155 PyEval_RestoreThread(_save);
71156 PyErr_SetString(PyExc_RuntimeError, e.
what());
71159 Py_END_ALLOW_THREADS
71163 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
71164 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
71168 if (dynamic_cast<faiss::IndexShards *> (result)) {
71169 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
71173 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
71174 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
71178 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
71179 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
71183 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
71184 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
71188 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
71189 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
71193 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
71194 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
71198 if (dynamic_cast<faiss::IndexIVF *> (result)) {
71199 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
71203 if (dynamic_cast<faiss::IndexFlat *> (result)) {
71204 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
71208 if (dynamic_cast<faiss::IndexPQ *> (result)) {
71209 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
71213 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
71214 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
71218 if (dynamic_cast<faiss::IndexLSH *> (result)) {
71219 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
71223 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
71224 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
71228 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
71229 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
71233 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
71234 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
71238 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
71239 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
71243 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
71244 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
71248 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
71249 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
71253 if (dynamic_cast<faiss::Index2Layer *> (result)) {
71254 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
71259 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
71260 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,SWIG_POINTER_OWN);
71264 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
71265 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,SWIG_POINTER_OWN);
71269 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
71270 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,SWIG_POINTER_OWN);
71274 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
71275 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,SWIG_POINTER_OWN);
71281 if (dynamic_cast<faiss::Index *> (result)) {
71282 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
71285 if (result == NULL)
71287 resultobj = SWIG_Py_Void();
71303 SWIGINTERN PyObject *_wrap_read_index__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71304 PyObject *resultobj = 0;
71305 FILE *arg1 = (FILE *) 0 ;
71308 PyObject * obj0 = 0 ;
71311 if (!PyArg_ParseTuple(args,(
char *)
"O:read_index",&obj0)) SWIG_fail;
71312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FILE, 0 | 0 );
71313 if (!SWIG_IsOK(res1)) {
71314 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index" "', argument " "1"" of type '" "FILE *""'");
71316 arg1 =
reinterpret_cast< FILE *
>(argp1);
71318 Py_BEGIN_ALLOW_THREADS
71322 PyEval_RestoreThread(_save);
71323 PyErr_SetString(PyExc_RuntimeError, e.
what());
71326 Py_END_ALLOW_THREADS
71330 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
71331 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
71335 if (dynamic_cast<faiss::IndexShards *> (result)) {
71336 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
71340 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
71341 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
71345 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
71346 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
71350 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
71351 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
71355 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
71356 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
71360 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
71361 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
71365 if (dynamic_cast<faiss::IndexIVF *> (result)) {
71366 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
71370 if (dynamic_cast<faiss::IndexFlat *> (result)) {
71371 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
71375 if (dynamic_cast<faiss::IndexPQ *> (result)) {
71376 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
71380 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
71381 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
71385 if (dynamic_cast<faiss::IndexLSH *> (result)) {
71386 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
71390 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
71391 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
71395 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
71396 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
71400 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
71401 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
71405 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
71406 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
71410 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
71411 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
71415 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
71416 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
71420 if (dynamic_cast<faiss::Index2Layer *> (result)) {
71421 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
71426 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
71427 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,SWIG_POINTER_OWN);
71431 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
71432 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,SWIG_POINTER_OWN);
71436 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
71437 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,SWIG_POINTER_OWN);
71441 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
71442 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,SWIG_POINTER_OWN);
71448 if (dynamic_cast<faiss::Index *> (result)) {
71449 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
71452 if (result == NULL)
71454 resultobj = SWIG_Py_Void();
71470 SWIGINTERN PyObject *_wrap_read_index__SWIG_4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71471 PyObject *resultobj = 0;
71478 PyObject * obj0 = 0 ;
71479 PyObject * obj1 = 0 ;
71482 if (!PyArg_ParseTuple(args,(
char *)
"OO:read_index",&obj0,&obj1)) SWIG_fail;
71483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
71484 if (!SWIG_IsOK(res1)) {
71485 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index" "', argument " "1"" of type '" "faiss::IOReader *""'");
71488 ecode2 = SWIG_AsVal_int(obj1, &val2);
71489 if (!SWIG_IsOK(ecode2)) {
71490 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "read_index" "', argument " "2"" of type '" "int""'");
71492 arg2 =
static_cast< int >(val2);
71494 Py_BEGIN_ALLOW_THREADS
71496 result = (
faiss::Index *)faiss::read_index(arg1,arg2);
71498 PyEval_RestoreThread(_save);
71499 PyErr_SetString(PyExc_RuntimeError, e.
what());
71502 Py_END_ALLOW_THREADS
71506 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
71507 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
71511 if (dynamic_cast<faiss::IndexShards *> (result)) {
71512 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
71516 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
71517 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
71521 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
71522 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
71526 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
71527 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
71531 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
71532 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
71536 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
71537 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
71541 if (dynamic_cast<faiss::IndexIVF *> (result)) {
71542 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
71546 if (dynamic_cast<faiss::IndexFlat *> (result)) {
71547 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
71551 if (dynamic_cast<faiss::IndexPQ *> (result)) {
71552 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
71556 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
71557 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
71561 if (dynamic_cast<faiss::IndexLSH *> (result)) {
71562 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
71566 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
71567 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
71571 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
71572 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
71576 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
71577 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
71581 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
71582 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
71586 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
71587 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
71591 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
71592 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
71596 if (dynamic_cast<faiss::Index2Layer *> (result)) {
71597 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
71602 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
71603 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,SWIG_POINTER_OWN);
71607 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
71608 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,SWIG_POINTER_OWN);
71612 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
71613 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,SWIG_POINTER_OWN);
71617 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
71618 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,SWIG_POINTER_OWN);
71624 if (dynamic_cast<faiss::Index *> (result)) {
71625 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
71628 if (result == NULL)
71630 resultobj = SWIG_Py_Void();
71646 SWIGINTERN PyObject *_wrap_read_index__SWIG_5(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71647 PyObject *resultobj = 0;
71651 PyObject * obj0 = 0 ;
71654 if (!PyArg_ParseTuple(args,(
char *)
"O:read_index",&obj0)) SWIG_fail;
71655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
71656 if (!SWIG_IsOK(res1)) {
71657 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index" "', argument " "1"" of type '" "faiss::IOReader *""'");
71661 Py_BEGIN_ALLOW_THREADS
71665 PyEval_RestoreThread(_save);
71666 PyErr_SetString(PyExc_RuntimeError, e.
what());
71669 Py_END_ALLOW_THREADS
71673 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
71674 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
71678 if (dynamic_cast<faiss::IndexShards *> (result)) {
71679 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
71683 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
71684 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
71688 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
71689 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
71693 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
71694 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
71698 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
71699 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
71703 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
71704 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
71708 if (dynamic_cast<faiss::IndexIVF *> (result)) {
71709 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
71713 if (dynamic_cast<faiss::IndexFlat *> (result)) {
71714 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
71718 if (dynamic_cast<faiss::IndexPQ *> (result)) {
71719 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
71723 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
71724 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
71728 if (dynamic_cast<faiss::IndexLSH *> (result)) {
71729 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
71733 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
71734 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
71738 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
71739 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
71743 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
71744 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
71748 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
71749 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
71753 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
71754 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
71758 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
71759 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
71763 if (dynamic_cast<faiss::Index2Layer *> (result)) {
71764 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
71769 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
71770 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,SWIG_POINTER_OWN);
71774 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
71775 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,SWIG_POINTER_OWN);
71779 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
71780 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,SWIG_POINTER_OWN);
71784 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
71785 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,SWIG_POINTER_OWN);
71791 if (dynamic_cast<faiss::Index *> (result)) {
71792 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
71795 if (result == NULL)
71797 resultobj = SWIG_Py_Void();
71813 SWIGINTERN PyObject *_wrap_read_index(PyObject *
self, PyObject *args) {
71815 PyObject *argv[3] = {
71820 if (!PyTuple_Check(args)) SWIG_fail;
71821 argc = args ? PyObject_Length(args) : 0;
71822 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
71823 argv[ii] = PyTuple_GET_ITEM(args,ii);
71828 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FILE, 0);
71829 _v = SWIG_CheckState(res);
71831 return _wrap_read_index__SWIG_3(
self, args);
71837 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IOReader, 0);
71838 _v = SWIG_CheckState(res);
71840 return _wrap_read_index__SWIG_5(
self, args);
71845 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
71846 _v = SWIG_CheckState(res);
71848 return _wrap_read_index__SWIG_1(
self, args);
71854 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IOReader, 0);
71855 _v = SWIG_CheckState(res);
71858 int res = SWIG_AsVal_int(argv[1], NULL);
71859 _v = SWIG_CheckState(res);
71862 return _wrap_read_index__SWIG_4(
self, args);
71869 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FILE, 0);
71870 _v = SWIG_CheckState(res);
71873 int res = SWIG_AsVal_int(argv[1], NULL);
71874 _v = SWIG_CheckState(res);
71877 return _wrap_read_index__SWIG_2(
self, args);
71883 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
71884 _v = SWIG_CheckState(res);
71887 int res = SWIG_AsVal_int(argv[1], NULL);
71888 _v = SWIG_CheckState(res);
71891 return _wrap_read_index__SWIG_0(
self, args);
71897 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'read_index'.\n"
71898 " Possible C/C++ prototypes are:\n"
71899 " faiss::read_index(char const *,int)\n"
71900 " faiss::read_index(char const *)\n"
71901 " faiss::read_index(FILE *,int)\n"
71902 " faiss::read_index(FILE *)\n"
71903 " faiss::read_index(faiss::IOReader *,int)\n"
71904 " faiss::read_index(faiss::IOReader *)\n");
71909 SWIGINTERN PyObject *_wrap_read_index_binary__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71910 PyObject *resultobj = 0;
71911 char *arg1 = (
char *) 0 ;
71918 PyObject * obj0 = 0 ;
71919 PyObject * obj1 = 0 ;
71922 if (!PyArg_ParseTuple(args,(
char *)
"OO:read_index_binary",&obj0,&obj1)) SWIG_fail;
71923 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
71924 if (!SWIG_IsOK(res1)) {
71925 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index_binary" "', argument " "1"" of type '" "char const *""'");
71927 arg1 =
reinterpret_cast< char *
>(buf1);
71928 ecode2 = SWIG_AsVal_int(obj1, &val2);
71929 if (!SWIG_IsOK(ecode2)) {
71930 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "read_index_binary" "', argument " "2"" of type '" "int""'");
71932 arg2 =
static_cast< int >(val2);
71934 Py_BEGIN_ALLOW_THREADS
71938 PyEval_RestoreThread(_save);
71939 PyErr_SetString(PyExc_RuntimeError, e.
what());
71942 Py_END_ALLOW_THREADS
71946 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
71947 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,SWIG_POINTER_OWN);
71951 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
71952 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,SWIG_POINTER_OWN);
71956 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
71957 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,SWIG_POINTER_OWN);
71961 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
71962 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,SWIG_POINTER_OWN);
71967 if (dynamic_cast<faiss::gpu::GpuIndexBinaryFlat *> (result)) {
71968 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat,SWIG_POINTER_OWN);
71974 if (dynamic_cast<faiss::IndexBinary *> (result)) {
71975 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,SWIG_POINTER_OWN);
71978 if (result == NULL)
71980 resultobj = SWIG_Py_Void();
71990 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
71993 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
71998 SWIGINTERN PyObject *_wrap_read_index_binary__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
71999 PyObject *resultobj = 0;
72000 char *arg1 = (
char *) 0 ;
72004 PyObject * obj0 = 0 ;
72007 if (!PyArg_ParseTuple(args,(
char *)
"O:read_index_binary",&obj0)) SWIG_fail;
72008 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
72009 if (!SWIG_IsOK(res1)) {
72010 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index_binary" "', argument " "1"" of type '" "char const *""'");
72012 arg1 =
reinterpret_cast< char *
>(buf1);
72014 Py_BEGIN_ALLOW_THREADS
72018 PyEval_RestoreThread(_save);
72019 PyErr_SetString(PyExc_RuntimeError, e.
what());
72022 Py_END_ALLOW_THREADS
72026 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
72027 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,SWIG_POINTER_OWN);
72031 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
72032 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,SWIG_POINTER_OWN);
72036 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
72037 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,SWIG_POINTER_OWN);
72041 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
72042 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,SWIG_POINTER_OWN);
72047 if (dynamic_cast<faiss::gpu::GpuIndexBinaryFlat *> (result)) {
72048 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat,SWIG_POINTER_OWN);
72054 if (dynamic_cast<faiss::IndexBinary *> (result)) {
72055 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,SWIG_POINTER_OWN);
72058 if (result == NULL)
72060 resultobj = SWIG_Py_Void();
72070 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
72073 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
72078 SWIGINTERN PyObject *_wrap_read_index_binary__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72079 PyObject *resultobj = 0;
72080 FILE *arg1 = (FILE *) 0 ;
72086 PyObject * obj0 = 0 ;
72087 PyObject * obj1 = 0 ;
72090 if (!PyArg_ParseTuple(args,(
char *)
"OO:read_index_binary",&obj0,&obj1)) SWIG_fail;
72091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FILE, 0 | 0 );
72092 if (!SWIG_IsOK(res1)) {
72093 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index_binary" "', argument " "1"" of type '" "FILE *""'");
72095 arg1 =
reinterpret_cast< FILE *
>(argp1);
72096 ecode2 = SWIG_AsVal_int(obj1, &val2);
72097 if (!SWIG_IsOK(ecode2)) {
72098 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "read_index_binary" "', argument " "2"" of type '" "int""'");
72100 arg2 =
static_cast< int >(val2);
72102 Py_BEGIN_ALLOW_THREADS
72106 PyEval_RestoreThread(_save);
72107 PyErr_SetString(PyExc_RuntimeError, e.
what());
72110 Py_END_ALLOW_THREADS
72114 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
72115 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,SWIG_POINTER_OWN);
72119 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
72120 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,SWIG_POINTER_OWN);
72124 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
72125 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,SWIG_POINTER_OWN);
72129 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
72130 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,SWIG_POINTER_OWN);
72135 if (dynamic_cast<faiss::gpu::GpuIndexBinaryFlat *> (result)) {
72136 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat,SWIG_POINTER_OWN);
72142 if (dynamic_cast<faiss::IndexBinary *> (result)) {
72143 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,SWIG_POINTER_OWN);
72146 if (result == NULL)
72148 resultobj = SWIG_Py_Void();
72164 SWIGINTERN PyObject *_wrap_read_index_binary__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72165 PyObject *resultobj = 0;
72166 FILE *arg1 = (FILE *) 0 ;
72169 PyObject * obj0 = 0 ;
72172 if (!PyArg_ParseTuple(args,(
char *)
"O:read_index_binary",&obj0)) SWIG_fail;
72173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FILE, 0 | 0 );
72174 if (!SWIG_IsOK(res1)) {
72175 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index_binary" "', argument " "1"" of type '" "FILE *""'");
72177 arg1 =
reinterpret_cast< FILE *
>(argp1);
72179 Py_BEGIN_ALLOW_THREADS
72183 PyEval_RestoreThread(_save);
72184 PyErr_SetString(PyExc_RuntimeError, e.
what());
72187 Py_END_ALLOW_THREADS
72191 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
72192 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,SWIG_POINTER_OWN);
72196 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
72197 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,SWIG_POINTER_OWN);
72201 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
72202 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,SWIG_POINTER_OWN);
72206 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
72207 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,SWIG_POINTER_OWN);
72212 if (dynamic_cast<faiss::gpu::GpuIndexBinaryFlat *> (result)) {
72213 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat,SWIG_POINTER_OWN);
72219 if (dynamic_cast<faiss::IndexBinary *> (result)) {
72220 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,SWIG_POINTER_OWN);
72223 if (result == NULL)
72225 resultobj = SWIG_Py_Void();
72241 SWIGINTERN PyObject *_wrap_read_index_binary__SWIG_4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72242 PyObject *resultobj = 0;
72249 PyObject * obj0 = 0 ;
72250 PyObject * obj1 = 0 ;
72253 if (!PyArg_ParseTuple(args,(
char *)
"OO:read_index_binary",&obj0,&obj1)) SWIG_fail;
72254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
72255 if (!SWIG_IsOK(res1)) {
72256 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index_binary" "', argument " "1"" of type '" "faiss::IOReader *""'");
72259 ecode2 = SWIG_AsVal_int(obj1, &val2);
72260 if (!SWIG_IsOK(ecode2)) {
72261 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "read_index_binary" "', argument " "2"" of type '" "int""'");
72263 arg2 =
static_cast< int >(val2);
72265 Py_BEGIN_ALLOW_THREADS
72269 PyEval_RestoreThread(_save);
72270 PyErr_SetString(PyExc_RuntimeError, e.
what());
72273 Py_END_ALLOW_THREADS
72277 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
72278 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,SWIG_POINTER_OWN);
72282 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
72283 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,SWIG_POINTER_OWN);
72287 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
72288 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,SWIG_POINTER_OWN);
72292 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
72293 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,SWIG_POINTER_OWN);
72298 if (dynamic_cast<faiss::gpu::GpuIndexBinaryFlat *> (result)) {
72299 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat,SWIG_POINTER_OWN);
72305 if (dynamic_cast<faiss::IndexBinary *> (result)) {
72306 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,SWIG_POINTER_OWN);
72309 if (result == NULL)
72311 resultobj = SWIG_Py_Void();
72327 SWIGINTERN PyObject *_wrap_read_index_binary__SWIG_5(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72328 PyObject *resultobj = 0;
72332 PyObject * obj0 = 0 ;
72335 if (!PyArg_ParseTuple(args,(
char *)
"O:read_index_binary",&obj0)) SWIG_fail;
72336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
72337 if (!SWIG_IsOK(res1)) {
72338 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_index_binary" "', argument " "1"" of type '" "faiss::IOReader *""'");
72342 Py_BEGIN_ALLOW_THREADS
72346 PyEval_RestoreThread(_save);
72347 PyErr_SetString(PyExc_RuntimeError, e.
what());
72350 Py_END_ALLOW_THREADS
72354 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
72355 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,SWIG_POINTER_OWN);
72359 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
72360 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,SWIG_POINTER_OWN);
72364 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
72365 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,SWIG_POINTER_OWN);
72369 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
72370 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,SWIG_POINTER_OWN);
72375 if (dynamic_cast<faiss::gpu::GpuIndexBinaryFlat *> (result)) {
72376 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat,SWIG_POINTER_OWN);
72382 if (dynamic_cast<faiss::IndexBinary *> (result)) {
72383 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,SWIG_POINTER_OWN);
72386 if (result == NULL)
72388 resultobj = SWIG_Py_Void();
72404 SWIGINTERN PyObject *_wrap_read_index_binary(PyObject *
self, PyObject *args) {
72406 PyObject *argv[3] = {
72411 if (!PyTuple_Check(args)) SWIG_fail;
72412 argc = args ? PyObject_Length(args) : 0;
72413 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
72414 argv[ii] = PyTuple_GET_ITEM(args,ii);
72419 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FILE, 0);
72420 _v = SWIG_CheckState(res);
72422 return _wrap_read_index_binary__SWIG_3(
self, args);
72428 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IOReader, 0);
72429 _v = SWIG_CheckState(res);
72431 return _wrap_read_index_binary__SWIG_5(
self, args);
72436 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
72437 _v = SWIG_CheckState(res);
72439 return _wrap_read_index_binary__SWIG_1(
self, args);
72445 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IOReader, 0);
72446 _v = SWIG_CheckState(res);
72449 int res = SWIG_AsVal_int(argv[1], NULL);
72450 _v = SWIG_CheckState(res);
72453 return _wrap_read_index_binary__SWIG_4(
self, args);
72460 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FILE, 0);
72461 _v = SWIG_CheckState(res);
72464 int res = SWIG_AsVal_int(argv[1], NULL);
72465 _v = SWIG_CheckState(res);
72468 return _wrap_read_index_binary__SWIG_2(
self, args);
72474 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
72475 _v = SWIG_CheckState(res);
72478 int res = SWIG_AsVal_int(argv[1], NULL);
72479 _v = SWIG_CheckState(res);
72482 return _wrap_read_index_binary__SWIG_0(
self, args);
72488 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'read_index_binary'.\n"
72489 " Possible C/C++ prototypes are:\n"
72490 " faiss::read_index_binary(char const *,int)\n"
72491 " faiss::read_index_binary(char const *)\n"
72492 " faiss::read_index_binary(FILE *,int)\n"
72493 " faiss::read_index_binary(FILE *)\n"
72494 " faiss::read_index_binary(faiss::IOReader *,int)\n"
72495 " faiss::read_index_binary(faiss::IOReader *)\n");
72500 SWIGINTERN PyObject *_wrap_write_VectorTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72501 PyObject *resultobj = 0;
72503 char *arg2 = (
char *) 0 ;
72509 PyObject * obj0 = 0 ;
72510 PyObject * obj1 = 0 ;
72512 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_VectorTransform",&obj0,&obj1)) SWIG_fail;
72513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
72514 if (!SWIG_IsOK(res1)) {
72515 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_VectorTransform" "', argument " "1"" of type '" "faiss::VectorTransform const *""'");
72518 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
72519 if (!SWIG_IsOK(res2)) {
72520 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_VectorTransform" "', argument " "2"" of type '" "char const *""'");
72522 arg2 =
reinterpret_cast< char *
>(buf2);
72524 Py_BEGIN_ALLOW_THREADS
72528 PyEval_RestoreThread(_save);
72529 PyErr_SetString(PyExc_RuntimeError, e.
what());
72532 Py_END_ALLOW_THREADS
72534 resultobj = SWIG_Py_Void();
72535 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
72538 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
72543 SWIGINTERN PyObject *_wrap_read_VectorTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72544 PyObject *resultobj = 0;
72545 char *arg1 = (
char *) 0 ;
72549 PyObject * obj0 = 0 ;
72552 if (!PyArg_ParseTuple(args,(
char *)
"O:read_VectorTransform",&obj0)) SWIG_fail;
72553 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
72554 if (!SWIG_IsOK(res1)) {
72555 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_VectorTransform" "', argument " "1"" of type '" "char const *""'");
72557 arg1 =
reinterpret_cast< char *
>(buf1);
72559 Py_BEGIN_ALLOW_THREADS
72563 PyEval_RestoreThread(_save);
72564 PyErr_SetString(PyExc_RuntimeError, e.
what());
72567 Py_END_ALLOW_THREADS
72571 if (dynamic_cast<faiss::RemapDimensionsTransform *> (result)) {
72572 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__RemapDimensionsTransform,SWIG_POINTER_OWN);
72576 if (dynamic_cast<faiss::OPQMatrix *> (result)) {
72577 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__OPQMatrix,SWIG_POINTER_OWN);
72581 if (dynamic_cast<faiss::PCAMatrix *> (result)) {
72582 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__PCAMatrix,SWIG_POINTER_OWN);
72586 if (dynamic_cast<faiss::RandomRotationMatrix *> (result)) {
72587 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__RandomRotationMatrix,SWIG_POINTER_OWN);
72591 if (dynamic_cast<faiss::LinearTransform *> (result)) {
72592 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__LinearTransform,SWIG_POINTER_OWN);
72596 if (dynamic_cast<faiss::NormalizationTransform *> (result)) {
72597 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__NormalizationTransform,SWIG_POINTER_OWN);
72601 if (dynamic_cast<faiss::VectorTransform *> (result)) {
72602 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__VectorTransform,SWIG_POINTER_OWN);
72612 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
72615 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
72620 SWIGINTERN PyObject *_wrap_read_ProductQuantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72621 PyObject *resultobj = 0;
72622 char *arg1 = (
char *) 0 ;
72626 PyObject * obj0 = 0 ;
72629 if (!PyArg_ParseTuple(args,(
char *)
"O:read_ProductQuantizer",&obj0)) SWIG_fail;
72630 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
72631 if (!SWIG_IsOK(res1)) {
72632 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_ProductQuantizer" "', argument " "1"" of type '" "char const *""'");
72634 arg1 =
reinterpret_cast< char *
>(buf1);
72636 Py_BEGIN_ALLOW_THREADS
72640 PyEval_RestoreThread(_save);
72641 PyErr_SetString(PyExc_RuntimeError, e.
what());
72644 Py_END_ALLOW_THREADS
72646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, SWIG_POINTER_OWN | 0 );
72647 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
72650 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
72655 SWIGINTERN PyObject *_wrap_read_ProductQuantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72656 PyObject *resultobj = 0;
72660 PyObject * obj0 = 0 ;
72663 if (!PyArg_ParseTuple(args,(
char *)
"O:read_ProductQuantizer",&obj0)) SWIG_fail;
72664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
72665 if (!SWIG_IsOK(res1)) {
72666 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_ProductQuantizer" "', argument " "1"" of type '" "faiss::IOReader *""'");
72670 Py_BEGIN_ALLOW_THREADS
72674 PyEval_RestoreThread(_save);
72675 PyErr_SetString(PyExc_RuntimeError, e.
what());
72678 Py_END_ALLOW_THREADS
72680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ProductQuantizer, SWIG_POINTER_OWN | 0 );
72687 SWIGINTERN PyObject *_wrap_read_ProductQuantizer(PyObject *
self, PyObject *args) {
72689 PyObject *argv[2] = {
72694 if (!PyTuple_Check(args)) SWIG_fail;
72695 argc = args ? PyObject_Length(args) : 0;
72696 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
72697 argv[ii] = PyTuple_GET_ITEM(args,ii);
72702 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IOReader, 0);
72703 _v = SWIG_CheckState(res);
72705 return _wrap_read_ProductQuantizer__SWIG_1(
self, args);
72710 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
72711 _v = SWIG_CheckState(res);
72713 return _wrap_read_ProductQuantizer__SWIG_0(
self, args);
72718 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'read_ProductQuantizer'.\n"
72719 " Possible C/C++ prototypes are:\n"
72720 " faiss::read_ProductQuantizer(char const *)\n"
72721 " faiss::read_ProductQuantizer(faiss::IOReader *)\n");
72726 SWIGINTERN PyObject *_wrap_write_ProductQuantizer__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72727 PyObject *resultobj = 0;
72729 char *arg2 = (
char *) 0 ;
72735 PyObject * obj0 = 0 ;
72736 PyObject * obj1 = 0 ;
72738 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_ProductQuantizer",&obj0,&obj1)) SWIG_fail;
72739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
72740 if (!SWIG_IsOK(res1)) {
72741 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_ProductQuantizer" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
72744 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
72745 if (!SWIG_IsOK(res2)) {
72746 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_ProductQuantizer" "', argument " "2"" of type '" "char const *""'");
72748 arg2 =
reinterpret_cast< char *
>(buf2);
72750 Py_BEGIN_ALLOW_THREADS
72754 PyEval_RestoreThread(_save);
72755 PyErr_SetString(PyExc_RuntimeError, e.
what());
72758 Py_END_ALLOW_THREADS
72760 resultobj = SWIG_Py_Void();
72761 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
72764 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
72769 SWIGINTERN PyObject *_wrap_write_ProductQuantizer__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72770 PyObject *resultobj = 0;
72777 PyObject * obj0 = 0 ;
72778 PyObject * obj1 = 0 ;
72780 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_ProductQuantizer",&obj0,&obj1)) SWIG_fail;
72781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ProductQuantizer, 0 | 0 );
72782 if (!SWIG_IsOK(res1)) {
72783 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_ProductQuantizer" "', argument " "1"" of type '" "faiss::ProductQuantizer const *""'");
72786 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
72787 if (!SWIG_IsOK(res2)) {
72788 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_ProductQuantizer" "', argument " "2"" of type '" "faiss::IOWriter *""'");
72792 Py_BEGIN_ALLOW_THREADS
72796 PyEval_RestoreThread(_save);
72797 PyErr_SetString(PyExc_RuntimeError, e.
what());
72800 Py_END_ALLOW_THREADS
72802 resultobj = SWIG_Py_Void();
72809 SWIGINTERN PyObject *_wrap_write_ProductQuantizer(PyObject *
self, PyObject *args) {
72811 PyObject *argv[3] = {
72816 if (!PyTuple_Check(args)) SWIG_fail;
72817 argc = args ? PyObject_Length(args) : 0;
72818 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
72819 argv[ii] = PyTuple_GET_ITEM(args,ii);
72824 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
72825 _v = SWIG_CheckState(res);
72828 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__IOWriter, 0);
72829 _v = SWIG_CheckState(res);
72831 return _wrap_write_ProductQuantizer__SWIG_1(
self, args);
72838 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ProductQuantizer, 0);
72839 _v = SWIG_CheckState(res);
72841 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
72842 _v = SWIG_CheckState(res);
72844 return _wrap_write_ProductQuantizer__SWIG_0(
self, args);
72850 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'write_ProductQuantizer'.\n"
72851 " Possible C/C++ prototypes are:\n"
72852 " faiss::write_ProductQuantizer(faiss::ProductQuantizer const *,char const *)\n"
72853 " faiss::write_ProductQuantizer(faiss::ProductQuantizer const *,faiss::IOWriter *)\n");
72858 SWIGINTERN PyObject *_wrap_write_InvertedLists(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72859 PyObject *resultobj = 0;
72866 PyObject * obj0 = 0 ;
72867 PyObject * obj1 = 0 ;
72869 if (!PyArg_ParseTuple(args,(
char *)
"OO:write_InvertedLists",&obj0,&obj1)) SWIG_fail;
72870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
72871 if (!SWIG_IsOK(res1)) {
72872 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "write_InvertedLists" "', argument " "1"" of type '" "faiss::InvertedLists const *""'");
72875 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
72876 if (!SWIG_IsOK(res2)) {
72877 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "write_InvertedLists" "', argument " "2"" of type '" "faiss::IOWriter *""'");
72881 Py_BEGIN_ALLOW_THREADS
72885 PyEval_RestoreThread(_save);
72886 PyErr_SetString(PyExc_RuntimeError, e.
what());
72889 Py_END_ALLOW_THREADS
72891 resultobj = SWIG_Py_Void();
72898 SWIGINTERN PyObject *_wrap_read_InvertedLists__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72899 PyObject *resultobj = 0;
72906 PyObject * obj0 = 0 ;
72907 PyObject * obj1 = 0 ;
72910 if (!PyArg_ParseTuple(args,(
char *)
"OO:read_InvertedLists",&obj0,&obj1)) SWIG_fail;
72911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
72912 if (!SWIG_IsOK(res1)) {
72913 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_InvertedLists" "', argument " "1"" of type '" "faiss::IOReader *""'");
72916 ecode2 = SWIG_AsVal_int(obj1, &val2);
72917 if (!SWIG_IsOK(ecode2)) {
72918 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "read_InvertedLists" "', argument " "2"" of type '" "int""'");
72920 arg2 =
static_cast< int >(val2);
72922 Py_BEGIN_ALLOW_THREADS
72926 PyEval_RestoreThread(_save);
72927 PyErr_SetString(PyExc_RuntimeError, e.
what());
72930 Py_END_ALLOW_THREADS
72932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
72939 SWIGINTERN PyObject *_wrap_read_InvertedLists__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
72940 PyObject *resultobj = 0;
72944 PyObject * obj0 = 0 ;
72947 if (!PyArg_ParseTuple(args,(
char *)
"O:read_InvertedLists",&obj0)) SWIG_fail;
72948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
72949 if (!SWIG_IsOK(res1)) {
72950 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "read_InvertedLists" "', argument " "1"" of type '" "faiss::IOReader *""'");
72954 Py_BEGIN_ALLOW_THREADS
72958 PyEval_RestoreThread(_save);
72959 PyErr_SetString(PyExc_RuntimeError, e.
what());
72962 Py_END_ALLOW_THREADS
72964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__InvertedLists, 0 | 0 );
72971 SWIGINTERN PyObject *_wrap_read_InvertedLists(PyObject *
self, PyObject *args) {
72973 PyObject *argv[3] = {
72978 if (!PyTuple_Check(args)) SWIG_fail;
72979 argc = args ? PyObject_Length(args) : 0;
72980 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
72981 argv[ii] = PyTuple_GET_ITEM(args,ii);
72986 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IOReader, 0);
72987 _v = SWIG_CheckState(res);
72989 return _wrap_read_InvertedLists__SWIG_1(
self, args);
72995 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__IOReader, 0);
72996 _v = SWIG_CheckState(res);
72999 int res = SWIG_AsVal_int(argv[1], NULL);
73000 _v = SWIG_CheckState(res);
73003 return _wrap_read_InvertedLists__SWIG_0(
self, args);
73009 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'read_InvertedLists'.\n"
73010 " Possible C/C++ prototypes are:\n"
73011 " faiss::read_InvertedLists(faiss::IOReader *,int)\n"
73012 " faiss::read_InvertedLists(faiss::IOReader *)\n");
73017 SWIGINTERN PyObject *_wrap_clone_index(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73018 PyObject *resultobj = 0;
73022 PyObject * obj0 = 0 ;
73025 if (!PyArg_ParseTuple(args,(
char *)
"O:clone_index",&obj0)) SWIG_fail;
73026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
73027 if (!SWIG_IsOK(res1)) {
73028 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "clone_index" "', argument " "1"" of type '" "faiss::Index const *""'");
73032 Py_BEGIN_ALLOW_THREADS
73036 PyEval_RestoreThread(_save);
73037 PyErr_SetString(PyExc_RuntimeError, e.
what());
73040 Py_END_ALLOW_THREADS
73044 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
73045 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
73049 if (dynamic_cast<faiss::IndexShards *> (result)) {
73050 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
73054 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
73055 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
73059 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
73060 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
73064 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
73065 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
73069 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
73070 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
73074 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
73075 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
73079 if (dynamic_cast<faiss::IndexIVF *> (result)) {
73080 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
73084 if (dynamic_cast<faiss::IndexFlat *> (result)) {
73085 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
73089 if (dynamic_cast<faiss::IndexPQ *> (result)) {
73090 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
73094 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
73095 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
73099 if (dynamic_cast<faiss::IndexLSH *> (result)) {
73100 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
73104 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
73105 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
73109 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
73110 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
73114 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
73115 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
73119 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
73120 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
73124 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
73125 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
73129 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
73130 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
73134 if (dynamic_cast<faiss::Index2Layer *> (result)) {
73135 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
73140 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
73141 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,SWIG_POINTER_OWN);
73145 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
73146 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,SWIG_POINTER_OWN);
73150 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
73151 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,SWIG_POINTER_OWN);
73155 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
73156 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,SWIG_POINTER_OWN);
73162 if (dynamic_cast<faiss::Index *> (result)) {
73163 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
73166 if (result == NULL)
73168 resultobj = SWIG_Py_Void();
73184 SWIGINTERN PyObject *_wrap_Cloner_clone_VectorTransform(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73185 PyObject *resultobj = 0;
73192 PyObject * obj0 = 0 ;
73193 PyObject * obj1 = 0 ;
73196 if (!PyArg_ParseTuple(args,(
char *)
"OO:Cloner_clone_VectorTransform",&obj0,&obj1)) SWIG_fail;
73197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Cloner, 0 | 0 );
73198 if (!SWIG_IsOK(res1)) {
73199 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Cloner_clone_VectorTransform" "', argument " "1"" of type '" "faiss::Cloner *""'");
73202 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__VectorTransform, 0 | 0 );
73203 if (!SWIG_IsOK(res2)) {
73204 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Cloner_clone_VectorTransform" "', argument " "2"" of type '" "faiss::VectorTransform const *""'");
73208 Py_BEGIN_ALLOW_THREADS
73212 PyEval_RestoreThread(_save);
73213 PyErr_SetString(PyExc_RuntimeError, e.
what());
73216 Py_END_ALLOW_THREADS
73220 if (dynamic_cast<faiss::RemapDimensionsTransform *> (result)) {
73221 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__RemapDimensionsTransform,SWIG_POINTER_OWN);
73225 if (dynamic_cast<faiss::OPQMatrix *> (result)) {
73226 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__OPQMatrix,SWIG_POINTER_OWN);
73230 if (dynamic_cast<faiss::PCAMatrix *> (result)) {
73231 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__PCAMatrix,SWIG_POINTER_OWN);
73235 if (dynamic_cast<faiss::RandomRotationMatrix *> (result)) {
73236 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__RandomRotationMatrix,SWIG_POINTER_OWN);
73240 if (dynamic_cast<faiss::LinearTransform *> (result)) {
73241 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__LinearTransform,SWIG_POINTER_OWN);
73245 if (dynamic_cast<faiss::NormalizationTransform *> (result)) {
73246 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__NormalizationTransform,SWIG_POINTER_OWN);
73250 if (dynamic_cast<faiss::VectorTransform *> (result)) {
73251 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__VectorTransform,SWIG_POINTER_OWN);
73267 SWIGINTERN PyObject *_wrap_Cloner_clone_Index(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73268 PyObject *resultobj = 0;
73275 PyObject * obj0 = 0 ;
73276 PyObject * obj1 = 0 ;
73279 if (!PyArg_ParseTuple(args,(
char *)
"OO:Cloner_clone_Index",&obj0,&obj1)) SWIG_fail;
73280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Cloner, 0 | 0 );
73281 if (!SWIG_IsOK(res1)) {
73282 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Cloner_clone_Index" "', argument " "1"" of type '" "faiss::Cloner *""'");
73285 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
73286 if (!SWIG_IsOK(res2)) {
73287 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Cloner_clone_Index" "', argument " "2"" of type '" "faiss::Index const *""'");
73291 Py_BEGIN_ALLOW_THREADS
73295 PyEval_RestoreThread(_save);
73296 PyErr_SetString(PyExc_RuntimeError, e.
what());
73299 Py_END_ALLOW_THREADS
73303 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
73304 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,0);
73308 if (dynamic_cast<faiss::IndexShards *> (result)) {
73309 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,0);
73313 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
73314 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,0);
73318 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
73319 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,0);
73323 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
73324 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,0);
73328 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
73329 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,0);
73333 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
73334 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,0);
73338 if (dynamic_cast<faiss::IndexIVF *> (result)) {
73339 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,0);
73343 if (dynamic_cast<faiss::IndexFlat *> (result)) {
73344 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,0);
73348 if (dynamic_cast<faiss::IndexPQ *> (result)) {
73349 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,0);
73353 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
73354 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,0);
73358 if (dynamic_cast<faiss::IndexLSH *> (result)) {
73359 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,0);
73363 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
73364 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,0);
73368 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
73369 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,0);
73373 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
73374 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,0);
73378 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
73379 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,0);
73383 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
73384 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,0);
73388 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
73389 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,0);
73393 if (dynamic_cast<faiss::Index2Layer *> (result)) {
73394 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,0);
73399 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
73400 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,0);
73404 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
73405 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,0);
73409 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
73410 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,0);
73414 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
73415 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,0);
73421 if (dynamic_cast<faiss::Index *> (result)) {
73422 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,0);
73425 if (result == NULL)
73427 resultobj = SWIG_Py_Void();
73443 SWIGINTERN PyObject *_wrap_Cloner_clone_IndexIVF(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73444 PyObject *resultobj = 0;
73451 PyObject * obj0 = 0 ;
73452 PyObject * obj1 = 0 ;
73455 if (!PyArg_ParseTuple(args,(
char *)
"OO:Cloner_clone_IndexIVF",&obj0,&obj1)) SWIG_fail;
73456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Cloner, 0 | 0 );
73457 if (!SWIG_IsOK(res1)) {
73458 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Cloner_clone_IndexIVF" "', argument " "1"" of type '" "faiss::Cloner *""'");
73461 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
73462 if (!SWIG_IsOK(res2)) {
73463 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Cloner_clone_IndexIVF" "', argument " "2"" of type '" "faiss::IndexIVF const *""'");
73467 Py_BEGIN_ALLOW_THREADS
73471 PyEval_RestoreThread(_save);
73472 PyErr_SetString(PyExc_RuntimeError, e.
what());
73475 Py_END_ALLOW_THREADS
73477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IndexIVF, 0 | 0 );
73484 SWIGINTERN PyObject *_wrap_delete_Cloner(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73485 PyObject *resultobj = 0;
73489 PyObject * obj0 = 0 ;
73491 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Cloner",&obj0)) SWIG_fail;
73492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Cloner, SWIG_POINTER_DISOWN | 0 );
73493 if (!SWIG_IsOK(res1)) {
73494 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Cloner" "', argument " "1"" of type '" "faiss::Cloner *""'");
73498 Py_BEGIN_ALLOW_THREADS
73502 PyEval_RestoreThread(_save);
73503 PyErr_SetString(PyExc_RuntimeError, e.
what());
73506 Py_END_ALLOW_THREADS
73508 resultobj = SWIG_Py_Void();
73515 SWIGINTERN PyObject *_wrap_new_Cloner(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73516 PyObject *resultobj = 0;
73519 if (!PyArg_ParseTuple(args,(
char *)
":new_Cloner")) SWIG_fail;
73521 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__Cloner, SWIG_POINTER_NEW | 0 );
73528 SWIGINTERN PyObject *Cloner_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73530 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
73531 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__Cloner, SWIG_NewClientData(obj));
73532 return SWIG_Py_Void();
73535 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_nq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73536 PyObject *resultobj = 0;
73538 faiss::AutoTuneCriterion::idx_t arg2 ;
73543 PyObject * obj0 = 0 ;
73544 PyObject * obj1 = 0 ;
73546 if (!PyArg_ParseTuple(args,(
char *)
"OO:AutoTuneCriterion_nq_set",&obj0,&obj1)) SWIG_fail;
73547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
73548 if (!SWIG_IsOK(res1)) {
73549 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_nq_set" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
73552 ecode2 = SWIG_AsVal_long(obj1, &val2);
73553 if (!SWIG_IsOK(ecode2)) {
73554 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "AutoTuneCriterion_nq_set" "', argument " "2"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
73556 arg2 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val2);
73557 if (arg1) (arg1)->nq = arg2;
73558 resultobj = SWIG_Py_Void();
73565 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_nq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73566 PyObject *resultobj = 0;
73570 PyObject * obj0 = 0 ;
73571 faiss::AutoTuneCriterion::idx_t result;
73573 if (!PyArg_ParseTuple(args,(
char *)
"O:AutoTuneCriterion_nq_get",&obj0)) SWIG_fail;
73574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
73575 if (!SWIG_IsOK(res1)) {
73576 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_nq_get" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
73579 result = (faiss::AutoTuneCriterion::idx_t) ((arg1)->nq);
73580 resultobj = SWIG_From_long(static_cast< long >(result));
73587 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_nnn_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73588 PyObject *resultobj = 0;
73590 faiss::AutoTuneCriterion::idx_t arg2 ;
73595 PyObject * obj0 = 0 ;
73596 PyObject * obj1 = 0 ;
73598 if (!PyArg_ParseTuple(args,(
char *)
"OO:AutoTuneCriterion_nnn_set",&obj0,&obj1)) SWIG_fail;
73599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
73600 if (!SWIG_IsOK(res1)) {
73601 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_nnn_set" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
73604 ecode2 = SWIG_AsVal_long(obj1, &val2);
73605 if (!SWIG_IsOK(ecode2)) {
73606 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "AutoTuneCriterion_nnn_set" "', argument " "2"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
73608 arg2 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val2);
73609 if (arg1) (arg1)->nnn = arg2;
73610 resultobj = SWIG_Py_Void();
73617 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_nnn_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73618 PyObject *resultobj = 0;
73622 PyObject * obj0 = 0 ;
73623 faiss::AutoTuneCriterion::idx_t result;
73625 if (!PyArg_ParseTuple(args,(
char *)
"O:AutoTuneCriterion_nnn_get",&obj0)) SWIG_fail;
73626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
73627 if (!SWIG_IsOK(res1)) {
73628 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_nnn_get" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
73631 result = (faiss::AutoTuneCriterion::idx_t) ((arg1)->nnn);
73632 resultobj = SWIG_From_long(static_cast< long >(result));
73639 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_gt_nnn_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73640 PyObject *resultobj = 0;
73642 faiss::AutoTuneCriterion::idx_t arg2 ;
73647 PyObject * obj0 = 0 ;
73648 PyObject * obj1 = 0 ;
73650 if (!PyArg_ParseTuple(args,(
char *)
"OO:AutoTuneCriterion_gt_nnn_set",&obj0,&obj1)) SWIG_fail;
73651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
73652 if (!SWIG_IsOK(res1)) {
73653 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_gt_nnn_set" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
73656 ecode2 = SWIG_AsVal_long(obj1, &val2);
73657 if (!SWIG_IsOK(ecode2)) {
73658 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "AutoTuneCriterion_gt_nnn_set" "', argument " "2"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
73660 arg2 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val2);
73661 if (arg1) (arg1)->gt_nnn = arg2;
73662 resultobj = SWIG_Py_Void();
73669 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_gt_nnn_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73670 PyObject *resultobj = 0;
73674 PyObject * obj0 = 0 ;
73675 faiss::AutoTuneCriterion::idx_t result;
73677 if (!PyArg_ParseTuple(args,(
char *)
"O:AutoTuneCriterion_gt_nnn_get",&obj0)) SWIG_fail;
73678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
73679 if (!SWIG_IsOK(res1)) {
73680 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_gt_nnn_get" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
73683 result = (faiss::AutoTuneCriterion::idx_t) ((arg1)->gt_nnn);
73684 resultobj = SWIG_From_long(static_cast< long >(result));
73691 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_gt_D_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73692 PyObject *resultobj = 0;
73694 std::vector< float > *arg2 = (std::vector< float > *) 0 ;
73699 PyObject * obj0 = 0 ;
73700 PyObject * obj1 = 0 ;
73702 if (!PyArg_ParseTuple(args,(
char *)
"OO:AutoTuneCriterion_gt_D_set",&obj0,&obj1)) SWIG_fail;
73703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
73704 if (!SWIG_IsOK(res1)) {
73705 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_gt_D_set" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
73708 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
73709 if (!SWIG_IsOK(res2)) {
73710 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "AutoTuneCriterion_gt_D_set" "', argument " "2"" of type '" "std::vector< float > *""'");
73712 arg2 =
reinterpret_cast< std::vector< float > *
>(argp2);
73713 if (arg1) (arg1)->gt_D = *arg2;
73714 resultobj = SWIG_Py_Void();
73721 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_gt_D_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73722 PyObject *resultobj = 0;
73726 PyObject * obj0 = 0 ;
73727 std::vector< float > *result = 0 ;
73729 if (!PyArg_ParseTuple(args,(
char *)
"O:AutoTuneCriterion_gt_D_get",&obj0)) SWIG_fail;
73730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
73731 if (!SWIG_IsOK(res1)) {
73732 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_gt_D_get" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
73735 result = (std::vector< float > *)& ((arg1)->gt_D);
73736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_t, 0 | 0 );
73743 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_gt_I_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73744 PyObject *resultobj = 0;
73746 std::vector< faiss::AutoTuneCriterion::idx_t > *arg2 = (std::vector< faiss::AutoTuneCriterion::idx_t > *) 0 ;
73751 PyObject * obj0 = 0 ;
73752 PyObject * obj1 = 0 ;
73754 if (!PyArg_ParseTuple(args,(
char *)
"OO:AutoTuneCriterion_gt_I_set",&obj0,&obj1)) SWIG_fail;
73755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
73756 if (!SWIG_IsOK(res1)) {
73757 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_gt_I_set" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
73760 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
73761 if (!SWIG_IsOK(res2)) {
73762 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "AutoTuneCriterion_gt_I_set" "', argument " "2"" of type '" "std::vector< faiss::AutoTuneCriterion::idx_t > *""'");
73764 arg2 =
reinterpret_cast< std::vector< faiss::AutoTuneCriterion::idx_t > *
>(argp2);
73765 if (arg1) (arg1)->gt_I = *arg2;
73766 resultobj = SWIG_Py_Void();
73773 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_gt_I_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73774 PyObject *resultobj = 0;
73778 PyObject * obj0 = 0 ;
73779 std::vector< faiss::AutoTuneCriterion::idx_t > *result = 0 ;
73781 if (!PyArg_ParseTuple(args,(
char *)
"O:AutoTuneCriterion_gt_I_get",&obj0)) SWIG_fail;
73782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
73783 if (!SWIG_IsOK(res1)) {
73784 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_gt_I_get" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
73787 result = (std::vector< faiss::AutoTuneCriterion::idx_t > *)& ((arg1)->gt_I);
73788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_long_t, 0 | 0 );
73795 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_set_groundtruth(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73796 PyObject *resultobj = 0;
73799 float *arg3 = (
float *) 0 ;
73800 faiss::AutoTuneCriterion::idx_t *arg4 = (faiss::AutoTuneCriterion::idx_t *) 0 ;
73809 PyObject * obj0 = 0 ;
73810 PyObject * obj1 = 0 ;
73811 PyObject * obj2 = 0 ;
73812 PyObject * obj3 = 0 ;
73814 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:AutoTuneCriterion_set_groundtruth",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
73815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
73816 if (!SWIG_IsOK(res1)) {
73817 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_set_groundtruth" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
73820 ecode2 = SWIG_AsVal_int(obj1, &val2);
73821 if (!SWIG_IsOK(ecode2)) {
73822 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "AutoTuneCriterion_set_groundtruth" "', argument " "2"" of type '" "int""'");
73824 arg2 =
static_cast< int >(val2);
73825 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
73826 if (!SWIG_IsOK(res3)) {
73827 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "AutoTuneCriterion_set_groundtruth" "', argument " "3"" of type '" "float const *""'");
73829 arg3 =
reinterpret_cast< float *
>(argp3);
73830 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
73831 if (!SWIG_IsOK(res4)) {
73832 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "AutoTuneCriterion_set_groundtruth" "', argument " "4"" of type '" "faiss::AutoTuneCriterion::idx_t const *""'");
73834 arg4 =
reinterpret_cast< faiss::AutoTuneCriterion::idx_t *
>(argp4);
73836 Py_BEGIN_ALLOW_THREADS
73838 (arg1)->set_groundtruth(arg2,(
float const *)arg3,(faiss::AutoTuneCriterion::idx_t
const *)arg4);
73840 PyEval_RestoreThread(_save);
73841 PyErr_SetString(PyExc_RuntimeError, e.
what());
73844 Py_END_ALLOW_THREADS
73846 resultobj = SWIG_Py_Void();
73853 SWIGINTERN PyObject *_wrap_AutoTuneCriterion_evaluate(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73854 PyObject *resultobj = 0;
73856 float *arg2 = (
float *) 0 ;
73857 faiss::AutoTuneCriterion::idx_t *arg3 = (faiss::AutoTuneCriterion::idx_t *) 0 ;
73864 PyObject * obj0 = 0 ;
73865 PyObject * obj1 = 0 ;
73866 PyObject * obj2 = 0 ;
73869 if (!PyArg_ParseTuple(args,(
char *)
"OOO:AutoTuneCriterion_evaluate",&obj0,&obj1,&obj2)) SWIG_fail;
73870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0 );
73871 if (!SWIG_IsOK(res1)) {
73872 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "AutoTuneCriterion_evaluate" "', argument " "1"" of type '" "faiss::AutoTuneCriterion const *""'");
73875 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
73876 if (!SWIG_IsOK(res2)) {
73877 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "AutoTuneCriterion_evaluate" "', argument " "2"" of type '" "float const *""'");
73879 arg2 =
reinterpret_cast< float *
>(argp2);
73880 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
73881 if (!SWIG_IsOK(res3)) {
73882 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "AutoTuneCriterion_evaluate" "', argument " "3"" of type '" "faiss::AutoTuneCriterion::idx_t const *""'");
73884 arg3 =
reinterpret_cast< faiss::AutoTuneCriterion::idx_t *
>(argp3);
73886 Py_BEGIN_ALLOW_THREADS
73888 result = (double)((
faiss::AutoTuneCriterion const *)arg1)->evaluate((
float const *)arg2,(faiss::AutoTuneCriterion::idx_t
const *)arg3);
73890 PyEval_RestoreThread(_save);
73891 PyErr_SetString(PyExc_RuntimeError, e.
what());
73894 Py_END_ALLOW_THREADS
73896 resultobj = SWIG_From_double(static_cast< double >(result));
73903 SWIGINTERN PyObject *_wrap_delete_AutoTuneCriterion(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73904 PyObject *resultobj = 0;
73908 PyObject * obj0 = 0 ;
73910 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_AutoTuneCriterion",&obj0)) SWIG_fail;
73911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__AutoTuneCriterion, SWIG_POINTER_DISOWN | 0 );
73912 if (!SWIG_IsOK(res1)) {
73913 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_AutoTuneCriterion" "', argument " "1"" of type '" "faiss::AutoTuneCriterion *""'");
73917 Py_BEGIN_ALLOW_THREADS
73921 PyEval_RestoreThread(_save);
73922 PyErr_SetString(PyExc_RuntimeError, e.
what());
73925 Py_END_ALLOW_THREADS
73927 resultobj = SWIG_Py_Void();
73934 SWIGINTERN PyObject *AutoTuneCriterion_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73936 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
73937 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__AutoTuneCriterion, SWIG_NewClientData(obj));
73938 return SWIG_Py_Void();
73941 SWIGINTERN PyObject *_wrap_OneRecallAtRCriterion_R_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73942 PyObject *resultobj = 0;
73944 faiss::AutoTuneCriterion::idx_t arg2 ;
73949 PyObject * obj0 = 0 ;
73950 PyObject * obj1 = 0 ;
73952 if (!PyArg_ParseTuple(args,(
char *)
"OO:OneRecallAtRCriterion_R_set",&obj0,&obj1)) SWIG_fail;
73953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OneRecallAtRCriterion, 0 | 0 );
73954 if (!SWIG_IsOK(res1)) {
73955 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OneRecallAtRCriterion_R_set" "', argument " "1"" of type '" "faiss::OneRecallAtRCriterion *""'");
73958 ecode2 = SWIG_AsVal_long(obj1, &val2);
73959 if (!SWIG_IsOK(ecode2)) {
73960 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OneRecallAtRCriterion_R_set" "', argument " "2"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
73962 arg2 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val2);
73963 if (arg1) (arg1)->R = arg2;
73964 resultobj = SWIG_Py_Void();
73971 SWIGINTERN PyObject *_wrap_OneRecallAtRCriterion_R_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73972 PyObject *resultobj = 0;
73976 PyObject * obj0 = 0 ;
73977 faiss::AutoTuneCriterion::idx_t result;
73979 if (!PyArg_ParseTuple(args,(
char *)
"O:OneRecallAtRCriterion_R_get",&obj0)) SWIG_fail;
73980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OneRecallAtRCriterion, 0 | 0 );
73981 if (!SWIG_IsOK(res1)) {
73982 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OneRecallAtRCriterion_R_get" "', argument " "1"" of type '" "faiss::OneRecallAtRCriterion *""'");
73985 result = (faiss::AutoTuneCriterion::idx_t) ((arg1)->R);
73986 resultobj = SWIG_From_long(static_cast< long >(result));
73993 SWIGINTERN PyObject *_wrap_new_OneRecallAtRCriterion(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
73994 PyObject *resultobj = 0;
73995 faiss::AutoTuneCriterion::idx_t arg1 ;
73996 faiss::AutoTuneCriterion::idx_t arg2 ;
74001 PyObject * obj0 = 0 ;
74002 PyObject * obj1 = 0 ;
74005 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_OneRecallAtRCriterion",&obj0,&obj1)) SWIG_fail;
74006 ecode1 = SWIG_AsVal_long(obj0, &val1);
74007 if (!SWIG_IsOK(ecode1)) {
74008 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_OneRecallAtRCriterion" "', argument " "1"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
74010 arg1 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val1);
74011 ecode2 = SWIG_AsVal_long(obj1, &val2);
74012 if (!SWIG_IsOK(ecode2)) {
74013 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_OneRecallAtRCriterion" "', argument " "2"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
74015 arg2 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val2);
74017 Py_BEGIN_ALLOW_THREADS
74021 PyEval_RestoreThread(_save);
74022 PyErr_SetString(PyExc_RuntimeError, e.
what());
74025 Py_END_ALLOW_THREADS
74027 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OneRecallAtRCriterion, SWIG_POINTER_NEW | 0 );
74034 SWIGINTERN PyObject *_wrap_OneRecallAtRCriterion_evaluate(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74035 PyObject *resultobj = 0;
74037 float *arg2 = (
float *) 0 ;
74038 faiss::AutoTuneCriterion::idx_t *arg3 = (faiss::AutoTuneCriterion::idx_t *) 0 ;
74045 PyObject * obj0 = 0 ;
74046 PyObject * obj1 = 0 ;
74047 PyObject * obj2 = 0 ;
74050 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OneRecallAtRCriterion_evaluate",&obj0,&obj1,&obj2)) SWIG_fail;
74051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OneRecallAtRCriterion, 0 | 0 );
74052 if (!SWIG_IsOK(res1)) {
74053 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OneRecallAtRCriterion_evaluate" "', argument " "1"" of type '" "faiss::OneRecallAtRCriterion const *""'");
74056 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
74057 if (!SWIG_IsOK(res2)) {
74058 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OneRecallAtRCriterion_evaluate" "', argument " "2"" of type '" "float const *""'");
74060 arg2 =
reinterpret_cast< float *
>(argp2);
74061 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
74062 if (!SWIG_IsOK(res3)) {
74063 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "OneRecallAtRCriterion_evaluate" "', argument " "3"" of type '" "faiss::AutoTuneCriterion::idx_t const *""'");
74065 arg3 =
reinterpret_cast< faiss::AutoTuneCriterion::idx_t *
>(argp3);
74067 Py_BEGIN_ALLOW_THREADS
74069 result = (double)((
faiss::OneRecallAtRCriterion const *)arg1)->evaluate((
float const *)arg2,(faiss::AutoTuneCriterion::idx_t
const *)arg3);
74071 PyEval_RestoreThread(_save);
74072 PyErr_SetString(PyExc_RuntimeError, e.
what());
74075 Py_END_ALLOW_THREADS
74077 resultobj = SWIG_From_double(static_cast< double >(result));
74084 SWIGINTERN PyObject *_wrap_delete_OneRecallAtRCriterion(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74085 PyObject *resultobj = 0;
74089 PyObject * obj0 = 0 ;
74091 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_OneRecallAtRCriterion",&obj0)) SWIG_fail;
74092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OneRecallAtRCriterion, SWIG_POINTER_DISOWN | 0 );
74093 if (!SWIG_IsOK(res1)) {
74094 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_OneRecallAtRCriterion" "', argument " "1"" of type '" "faiss::OneRecallAtRCriterion *""'");
74098 Py_BEGIN_ALLOW_THREADS
74102 PyEval_RestoreThread(_save);
74103 PyErr_SetString(PyExc_RuntimeError, e.
what());
74106 Py_END_ALLOW_THREADS
74108 resultobj = SWIG_Py_Void();
74115 SWIGINTERN PyObject *OneRecallAtRCriterion_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74117 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
74118 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__OneRecallAtRCriterion, SWIG_NewClientData(obj));
74119 return SWIG_Py_Void();
74122 SWIGINTERN PyObject *_wrap_IntersectionCriterion_R_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74123 PyObject *resultobj = 0;
74125 faiss::AutoTuneCriterion::idx_t arg2 ;
74130 PyObject * obj0 = 0 ;
74131 PyObject * obj1 = 0 ;
74133 if (!PyArg_ParseTuple(args,(
char *)
"OO:IntersectionCriterion_R_set",&obj0,&obj1)) SWIG_fail;
74134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IntersectionCriterion, 0 | 0 );
74135 if (!SWIG_IsOK(res1)) {
74136 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntersectionCriterion_R_set" "', argument " "1"" of type '" "faiss::IntersectionCriterion *""'");
74139 ecode2 = SWIG_AsVal_long(obj1, &val2);
74140 if (!SWIG_IsOK(ecode2)) {
74141 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IntersectionCriterion_R_set" "', argument " "2"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
74143 arg2 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val2);
74144 if (arg1) (arg1)->R = arg2;
74145 resultobj = SWIG_Py_Void();
74152 SWIGINTERN PyObject *_wrap_IntersectionCriterion_R_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74153 PyObject *resultobj = 0;
74157 PyObject * obj0 = 0 ;
74158 faiss::AutoTuneCriterion::idx_t result;
74160 if (!PyArg_ParseTuple(args,(
char *)
"O:IntersectionCriterion_R_get",&obj0)) SWIG_fail;
74161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IntersectionCriterion, 0 | 0 );
74162 if (!SWIG_IsOK(res1)) {
74163 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntersectionCriterion_R_get" "', argument " "1"" of type '" "faiss::IntersectionCriterion *""'");
74166 result = (faiss::AutoTuneCriterion::idx_t) ((arg1)->R);
74167 resultobj = SWIG_From_long(static_cast< long >(result));
74174 SWIGINTERN PyObject *_wrap_new_IntersectionCriterion(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74175 PyObject *resultobj = 0;
74176 faiss::AutoTuneCriterion::idx_t arg1 ;
74177 faiss::AutoTuneCriterion::idx_t arg2 ;
74182 PyObject * obj0 = 0 ;
74183 PyObject * obj1 = 0 ;
74186 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IntersectionCriterion",&obj0,&obj1)) SWIG_fail;
74187 ecode1 = SWIG_AsVal_long(obj0, &val1);
74188 if (!SWIG_IsOK(ecode1)) {
74189 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IntersectionCriterion" "', argument " "1"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
74191 arg1 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val1);
74192 ecode2 = SWIG_AsVal_long(obj1, &val2);
74193 if (!SWIG_IsOK(ecode2)) {
74194 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IntersectionCriterion" "', argument " "2"" of type '" "faiss::AutoTuneCriterion::idx_t""'");
74196 arg2 =
static_cast< faiss::AutoTuneCriterion::idx_t
>(val2);
74198 Py_BEGIN_ALLOW_THREADS
74202 PyEval_RestoreThread(_save);
74203 PyErr_SetString(PyExc_RuntimeError, e.
what());
74206 Py_END_ALLOW_THREADS
74208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IntersectionCriterion, SWIG_POINTER_NEW | 0 );
74215 SWIGINTERN PyObject *_wrap_IntersectionCriterion_evaluate(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74216 PyObject *resultobj = 0;
74218 float *arg2 = (
float *) 0 ;
74219 faiss::AutoTuneCriterion::idx_t *arg3 = (faiss::AutoTuneCriterion::idx_t *) 0 ;
74226 PyObject * obj0 = 0 ;
74227 PyObject * obj1 = 0 ;
74228 PyObject * obj2 = 0 ;
74231 if (!PyArg_ParseTuple(args,(
char *)
"OOO:IntersectionCriterion_evaluate",&obj0,&obj1,&obj2)) SWIG_fail;
74232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IntersectionCriterion, 0 | 0 );
74233 if (!SWIG_IsOK(res1)) {
74234 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IntersectionCriterion_evaluate" "', argument " "1"" of type '" "faiss::IntersectionCriterion const *""'");
74237 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
74238 if (!SWIG_IsOK(res2)) {
74239 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IntersectionCriterion_evaluate" "', argument " "2"" of type '" "float const *""'");
74241 arg2 =
reinterpret_cast< float *
>(argp2);
74242 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
74243 if (!SWIG_IsOK(res3)) {
74244 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "IntersectionCriterion_evaluate" "', argument " "3"" of type '" "faiss::AutoTuneCriterion::idx_t const *""'");
74246 arg3 =
reinterpret_cast< faiss::AutoTuneCriterion::idx_t *
>(argp3);
74248 Py_BEGIN_ALLOW_THREADS
74250 result = (double)((
faiss::IntersectionCriterion const *)arg1)->evaluate((
float const *)arg2,(faiss::AutoTuneCriterion::idx_t
const *)arg3);
74252 PyEval_RestoreThread(_save);
74253 PyErr_SetString(PyExc_RuntimeError, e.
what());
74256 Py_END_ALLOW_THREADS
74258 resultobj = SWIG_From_double(static_cast< double >(result));
74265 SWIGINTERN PyObject *_wrap_delete_IntersectionCriterion(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74266 PyObject *resultobj = 0;
74270 PyObject * obj0 = 0 ;
74272 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IntersectionCriterion",&obj0)) SWIG_fail;
74273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IntersectionCriterion, SWIG_POINTER_DISOWN | 0 );
74274 if (!SWIG_IsOK(res1)) {
74275 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IntersectionCriterion" "', argument " "1"" of type '" "faiss::IntersectionCriterion *""'");
74279 Py_BEGIN_ALLOW_THREADS
74283 PyEval_RestoreThread(_save);
74284 PyErr_SetString(PyExc_RuntimeError, e.
what());
74287 Py_END_ALLOW_THREADS
74289 resultobj = SWIG_Py_Void();
74296 SWIGINTERN PyObject *IntersectionCriterion_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74298 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
74299 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IntersectionCriterion, SWIG_NewClientData(obj));
74300 return SWIG_Py_Void();
74303 SWIGINTERN PyObject *_wrap_OperatingPoint_perf_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74304 PyObject *resultobj = 0;
74311 PyObject * obj0 = 0 ;
74312 PyObject * obj1 = 0 ;
74314 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoint_perf_set",&obj0,&obj1)) SWIG_fail;
74315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
74316 if (!SWIG_IsOK(res1)) {
74317 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_perf_set" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
74320 ecode2 = SWIG_AsVal_double(obj1, &val2);
74321 if (!SWIG_IsOK(ecode2)) {
74322 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPoint_perf_set" "', argument " "2"" of type '" "double""'");
74324 arg2 =
static_cast< double >(val2);
74325 if (arg1) (arg1)->perf = arg2;
74326 resultobj = SWIG_Py_Void();
74333 SWIGINTERN PyObject *_wrap_OperatingPoint_perf_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74334 PyObject *resultobj = 0;
74338 PyObject * obj0 = 0 ;
74341 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoint_perf_get",&obj0)) SWIG_fail;
74342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
74343 if (!SWIG_IsOK(res1)) {
74344 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_perf_get" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
74347 result = (double) ((arg1)->perf);
74348 resultobj = SWIG_From_double(static_cast< double >(result));
74355 SWIGINTERN PyObject *_wrap_OperatingPoint_t_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74356 PyObject *resultobj = 0;
74363 PyObject * obj0 = 0 ;
74364 PyObject * obj1 = 0 ;
74366 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoint_t_set",&obj0,&obj1)) SWIG_fail;
74367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
74368 if (!SWIG_IsOK(res1)) {
74369 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_t_set" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
74372 ecode2 = SWIG_AsVal_double(obj1, &val2);
74373 if (!SWIG_IsOK(ecode2)) {
74374 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPoint_t_set" "', argument " "2"" of type '" "double""'");
74376 arg2 =
static_cast< double >(val2);
74377 if (arg1) (arg1)->t = arg2;
74378 resultobj = SWIG_Py_Void();
74385 SWIGINTERN PyObject *_wrap_OperatingPoint_t_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74386 PyObject *resultobj = 0;
74390 PyObject * obj0 = 0 ;
74393 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoint_t_get",&obj0)) SWIG_fail;
74394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
74395 if (!SWIG_IsOK(res1)) {
74396 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_t_get" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
74399 result = (double) ((arg1)->t);
74400 resultobj = SWIG_From_double(static_cast< double >(result));
74407 SWIGINTERN PyObject *_wrap_OperatingPoint_key_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74408 PyObject *resultobj = 0;
74410 std::string *arg2 = 0 ;
74413 int res2 = SWIG_OLDOBJ ;
74414 PyObject * obj0 = 0 ;
74415 PyObject * obj1 = 0 ;
74417 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoint_key_set",&obj0,&obj1)) SWIG_fail;
74418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
74419 if (!SWIG_IsOK(res1)) {
74420 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_key_set" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
74424 std::string *ptr = (std::string *)0;
74425 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
74426 if (!SWIG_IsOK(res2)) {
74427 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPoint_key_set" "', argument " "2"" of type '" "std::string const &""'");
74430 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPoint_key_set" "', argument " "2"" of type '" "std::string const &""'");
74434 if (arg1) (arg1)->key = *arg2;
74435 resultobj = SWIG_Py_Void();
74436 if (SWIG_IsNewObj(res2))
delete arg2;
74439 if (SWIG_IsNewObj(res2))
delete arg2;
74444 SWIGINTERN PyObject *_wrap_OperatingPoint_key_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74445 PyObject *resultobj = 0;
74449 PyObject * obj0 = 0 ;
74450 std::string *result = 0 ;
74452 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoint_key_get",&obj0)) SWIG_fail;
74453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
74454 if (!SWIG_IsOK(res1)) {
74455 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_key_get" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
74458 result = (std::string *) & ((arg1)->key);
74459 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
74466 SWIGINTERN PyObject *_wrap_OperatingPoint_cno_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74467 PyObject *resultobj = 0;
74474 PyObject * obj0 = 0 ;
74475 PyObject * obj1 = 0 ;
74477 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoint_cno_set",&obj0,&obj1)) SWIG_fail;
74478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
74479 if (!SWIG_IsOK(res1)) {
74480 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_cno_set" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
74483 ecode2 = SWIG_AsVal_long(obj1, &val2);
74484 if (!SWIG_IsOK(ecode2)) {
74485 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPoint_cno_set" "', argument " "2"" of type '" "long""'");
74487 arg2 =
static_cast< long >(val2);
74488 if (arg1) (arg1)->cno = arg2;
74489 resultobj = SWIG_Py_Void();
74496 SWIGINTERN PyObject *_wrap_OperatingPoint_cno_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74497 PyObject *resultobj = 0;
74501 PyObject * obj0 = 0 ;
74504 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoint_cno_get",&obj0)) SWIG_fail;
74505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, 0 | 0 );
74506 if (!SWIG_IsOK(res1)) {
74507 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoint_cno_get" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
74510 result = (long) ((arg1)->cno);
74511 resultobj = SWIG_From_long(static_cast< long >(result));
74518 SWIGINTERN PyObject *_wrap_new_OperatingPoint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74519 PyObject *resultobj = 0;
74522 if (!PyArg_ParseTuple(args,(
char *)
":new_OperatingPoint")) SWIG_fail;
74524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OperatingPoint, SWIG_POINTER_NEW | 0 );
74531 SWIGINTERN PyObject *_wrap_delete_OperatingPoint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74532 PyObject *resultobj = 0;
74536 PyObject * obj0 = 0 ;
74538 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_OperatingPoint",&obj0)) SWIG_fail;
74539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoint, SWIG_POINTER_DISOWN | 0 );
74540 if (!SWIG_IsOK(res1)) {
74541 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_OperatingPoint" "', argument " "1"" of type '" "faiss::OperatingPoint *""'");
74545 resultobj = SWIG_Py_Void();
74552 SWIGINTERN PyObject *OperatingPoint_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74554 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
74555 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__OperatingPoint, SWIG_NewClientData(obj));
74556 return SWIG_Py_Void();
74559 SWIGINTERN PyObject *_wrap_OperatingPoints_all_pts_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74560 PyObject *resultobj = 0;
74562 std::vector< faiss::OperatingPoint > *arg2 = (std::vector< faiss::OperatingPoint > *) 0 ;
74567 PyObject * obj0 = 0 ;
74568 PyObject * obj1 = 0 ;
74570 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoints_all_pts_set",&obj0,&obj1)) SWIG_fail;
74571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
74572 if (!SWIG_IsOK(res1)) {
74573 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_all_pts_set" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
74576 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
74577 if (!SWIG_IsOK(res2)) {
74578 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPoints_all_pts_set" "', argument " "2"" of type '" "std::vector< faiss::OperatingPoint > *""'");
74580 arg2 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp2);
74581 if (arg1) (arg1)->all_pts = *arg2;
74582 resultobj = SWIG_Py_Void();
74589 SWIGINTERN PyObject *_wrap_OperatingPoints_all_pts_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74590 PyObject *resultobj = 0;
74594 PyObject * obj0 = 0 ;
74595 std::vector< faiss::OperatingPoint > *result = 0 ;
74597 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoints_all_pts_get",&obj0)) SWIG_fail;
74598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
74599 if (!SWIG_IsOK(res1)) {
74600 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_all_pts_get" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
74603 result = (std::vector< faiss::OperatingPoint > *)& ((arg1)->all_pts);
74604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
74611 SWIGINTERN PyObject *_wrap_OperatingPoints_optimal_pts_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74612 PyObject *resultobj = 0;
74614 std::vector< faiss::OperatingPoint > *arg2 = (std::vector< faiss::OperatingPoint > *) 0 ;
74619 PyObject * obj0 = 0 ;
74620 PyObject * obj1 = 0 ;
74622 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoints_optimal_pts_set",&obj0,&obj1)) SWIG_fail;
74623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
74624 if (!SWIG_IsOK(res1)) {
74625 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_optimal_pts_set" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
74628 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
74629 if (!SWIG_IsOK(res2)) {
74630 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPoints_optimal_pts_set" "', argument " "2"" of type '" "std::vector< faiss::OperatingPoint > *""'");
74632 arg2 =
reinterpret_cast< std::vector< faiss::OperatingPoint > *
>(argp2);
74633 if (arg1) (arg1)->optimal_pts = *arg2;
74634 resultobj = SWIG_Py_Void();
74641 SWIGINTERN PyObject *_wrap_OperatingPoints_optimal_pts_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74642 PyObject *resultobj = 0;
74646 PyObject * obj0 = 0 ;
74647 std::vector< faiss::OperatingPoint > *result = 0 ;
74649 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoints_optimal_pts_get",&obj0)) SWIG_fail;
74650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
74651 if (!SWIG_IsOK(res1)) {
74652 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_optimal_pts_get" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
74655 result = (std::vector< faiss::OperatingPoint > *)& ((arg1)->optimal_pts);
74656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__OperatingPoint_t, 0 | 0 );
74663 SWIGINTERN PyObject *_wrap_new_OperatingPoints(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74664 PyObject *resultobj = 0;
74667 if (!PyArg_ParseTuple(args,(
char *)
":new_OperatingPoints")) SWIG_fail;
74669 Py_BEGIN_ALLOW_THREADS
74673 PyEval_RestoreThread(_save);
74674 PyErr_SetString(PyExc_RuntimeError, e.
what());
74677 Py_END_ALLOW_THREADS
74679 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__OperatingPoints, SWIG_POINTER_NEW | 0 );
74686 SWIGINTERN PyObject *_wrap_OperatingPoints_merge_with__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74687 PyObject *resultobj = 0;
74690 std::string *arg3 = 0 ;
74695 int res3 = SWIG_OLDOBJ ;
74696 PyObject * obj0 = 0 ;
74697 PyObject * obj1 = 0 ;
74698 PyObject * obj2 = 0 ;
74701 if (!PyArg_ParseTuple(args,(
char *)
"OOO:OperatingPoints_merge_with",&obj0,&obj1,&obj2)) SWIG_fail;
74702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
74703 if (!SWIG_IsOK(res1)) {
74704 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_merge_with" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
74707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__OperatingPoints, 0 | 0);
74708 if (!SWIG_IsOK(res2)) {
74709 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPoints_merge_with" "', argument " "2"" of type '" "faiss::OperatingPoints const &""'");
74712 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPoints_merge_with" "', argument " "2"" of type '" "faiss::OperatingPoints const &""'");
74716 std::string *ptr = (std::string *)0;
74717 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
74718 if (!SWIG_IsOK(res3)) {
74719 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "OperatingPoints_merge_with" "', argument " "3"" of type '" "std::string const &""'");
74722 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPoints_merge_with" "', argument " "3"" of type '" "std::string const &""'");
74727 Py_BEGIN_ALLOW_THREADS
74731 PyEval_RestoreThread(_save);
74732 PyErr_SetString(PyExc_RuntimeError, e.
what());
74735 Py_END_ALLOW_THREADS
74737 resultobj = SWIG_From_int(static_cast< int >(result));
74738 if (SWIG_IsNewObj(res3))
delete arg3;
74741 if (SWIG_IsNewObj(res3))
delete arg3;
74746 SWIGINTERN PyObject *_wrap_OperatingPoints_merge_with__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74747 PyObject *resultobj = 0;
74754 PyObject * obj0 = 0 ;
74755 PyObject * obj1 = 0 ;
74758 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoints_merge_with",&obj0,&obj1)) SWIG_fail;
74759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
74760 if (!SWIG_IsOK(res1)) {
74761 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_merge_with" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
74764 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_faiss__OperatingPoints, 0 | 0);
74765 if (!SWIG_IsOK(res2)) {
74766 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPoints_merge_with" "', argument " "2"" of type '" "faiss::OperatingPoints const &""'");
74769 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPoints_merge_with" "', argument " "2"" of type '" "faiss::OperatingPoints const &""'");
74773 Py_BEGIN_ALLOW_THREADS
74777 PyEval_RestoreThread(_save);
74778 PyErr_SetString(PyExc_RuntimeError, e.
what());
74781 Py_END_ALLOW_THREADS
74783 resultobj = SWIG_From_int(static_cast< int >(result));
74790 SWIGINTERN PyObject *_wrap_OperatingPoints_merge_with(PyObject *
self, PyObject *args) {
74792 PyObject *argv[4] = {
74797 if (!PyTuple_Check(args)) SWIG_fail;
74798 argc = args ? PyObject_Length(args) : 0;
74799 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
74800 argv[ii] = PyTuple_GET_ITEM(args,ii);
74805 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__OperatingPoints, 0);
74806 _v = SWIG_CheckState(res);
74808 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_faiss__OperatingPoints, 0);
74809 _v = SWIG_CheckState(res);
74811 return _wrap_OperatingPoints_merge_with__SWIG_1(
self, args);
74818 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__OperatingPoints, 0);
74819 _v = SWIG_CheckState(res);
74821 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_faiss__OperatingPoints, 0);
74822 _v = SWIG_CheckState(res);
74824 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
74825 _v = SWIG_CheckState(res);
74827 return _wrap_OperatingPoints_merge_with__SWIG_0(
self, args);
74834 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'OperatingPoints_merge_with'.\n"
74835 " Possible C/C++ prototypes are:\n"
74836 " faiss::OperatingPoints::merge_with(faiss::OperatingPoints const &,std::string const &)\n"
74837 " faiss::OperatingPoints::merge_with(faiss::OperatingPoints const &)\n");
74842 SWIGINTERN PyObject *_wrap_OperatingPoints_clear(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74843 PyObject *resultobj = 0;
74847 PyObject * obj0 = 0 ;
74849 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoints_clear",&obj0)) SWIG_fail;
74850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
74851 if (!SWIG_IsOK(res1)) {
74852 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_clear" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
74856 Py_BEGIN_ALLOW_THREADS
74860 PyEval_RestoreThread(_save);
74861 PyErr_SetString(PyExc_RuntimeError, e.
what());
74864 Py_END_ALLOW_THREADS
74866 resultobj = SWIG_Py_Void();
74873 SWIGINTERN PyObject *_wrap_OperatingPoints_add__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74874 PyObject *resultobj = 0;
74878 std::string *arg4 = 0 ;
74886 int res4 = SWIG_OLDOBJ ;
74889 PyObject * obj0 = 0 ;
74890 PyObject * obj1 = 0 ;
74891 PyObject * obj2 = 0 ;
74892 PyObject * obj3 = 0 ;
74893 PyObject * obj4 = 0 ;
74896 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:OperatingPoints_add",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
74897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
74898 if (!SWIG_IsOK(res1)) {
74899 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_add" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
74902 ecode2 = SWIG_AsVal_double(obj1, &val2);
74903 if (!SWIG_IsOK(ecode2)) {
74904 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPoints_add" "', argument " "2"" of type '" "double""'");
74906 arg2 =
static_cast< double >(val2);
74907 ecode3 = SWIG_AsVal_double(obj2, &val3);
74908 if (!SWIG_IsOK(ecode3)) {
74909 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OperatingPoints_add" "', argument " "3"" of type '" "double""'");
74911 arg3 =
static_cast< double >(val3);
74913 std::string *ptr = (std::string *)0;
74914 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
74915 if (!SWIG_IsOK(res4)) {
74916 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "OperatingPoints_add" "', argument " "4"" of type '" "std::string const &""'");
74919 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPoints_add" "', argument " "4"" of type '" "std::string const &""'");
74923 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
74924 if (!SWIG_IsOK(ecode5)) {
74925 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "OperatingPoints_add" "', argument " "5"" of type '" "size_t""'");
74927 arg5 =
static_cast< size_t >(val5);
74929 Py_BEGIN_ALLOW_THREADS
74931 result = (bool)(arg1)->add(arg2,arg3,(std::string
const &)*arg4,arg5);
74933 PyEval_RestoreThread(_save);
74934 PyErr_SetString(PyExc_RuntimeError, e.
what());
74937 Py_END_ALLOW_THREADS
74939 resultobj = SWIG_From_bool(static_cast< bool >(result));
74940 if (SWIG_IsNewObj(res4))
delete arg4;
74943 if (SWIG_IsNewObj(res4))
delete arg4;
74948 SWIGINTERN PyObject *_wrap_OperatingPoints_add__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
74949 PyObject *resultobj = 0;
74953 std::string *arg4 = 0 ;
74960 int res4 = SWIG_OLDOBJ ;
74961 PyObject * obj0 = 0 ;
74962 PyObject * obj1 = 0 ;
74963 PyObject * obj2 = 0 ;
74964 PyObject * obj3 = 0 ;
74967 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:OperatingPoints_add",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
74968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
74969 if (!SWIG_IsOK(res1)) {
74970 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_add" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
74973 ecode2 = SWIG_AsVal_double(obj1, &val2);
74974 if (!SWIG_IsOK(ecode2)) {
74975 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPoints_add" "', argument " "2"" of type '" "double""'");
74977 arg2 =
static_cast< double >(val2);
74978 ecode3 = SWIG_AsVal_double(obj2, &val3);
74979 if (!SWIG_IsOK(ecode3)) {
74980 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "OperatingPoints_add" "', argument " "3"" of type '" "double""'");
74982 arg3 =
static_cast< double >(val3);
74984 std::string *ptr = (std::string *)0;
74985 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
74986 if (!SWIG_IsOK(res4)) {
74987 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "OperatingPoints_add" "', argument " "4"" of type '" "std::string const &""'");
74990 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "OperatingPoints_add" "', argument " "4"" of type '" "std::string const &""'");
74995 Py_BEGIN_ALLOW_THREADS
74997 result = (bool)(arg1)->add(arg2,arg3,(std::string
const &)*arg4);
74999 PyEval_RestoreThread(_save);
75000 PyErr_SetString(PyExc_RuntimeError, e.
what());
75003 Py_END_ALLOW_THREADS
75005 resultobj = SWIG_From_bool(static_cast< bool >(result));
75006 if (SWIG_IsNewObj(res4))
delete arg4;
75009 if (SWIG_IsNewObj(res4))
delete arg4;
75014 SWIGINTERN PyObject *_wrap_OperatingPoints_add(PyObject *
self, PyObject *args) {
75016 PyObject *argv[6] = {
75021 if (!PyTuple_Check(args)) SWIG_fail;
75022 argc = args ? PyObject_Length(args) : 0;
75023 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
75024 argv[ii] = PyTuple_GET_ITEM(args,ii);
75029 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__OperatingPoints, 0);
75030 _v = SWIG_CheckState(res);
75033 int res = SWIG_AsVal_double(argv[1], NULL);
75034 _v = SWIG_CheckState(res);
75038 int res = SWIG_AsVal_double(argv[2], NULL);
75039 _v = SWIG_CheckState(res);
75042 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
75043 _v = SWIG_CheckState(res);
75045 return _wrap_OperatingPoints_add__SWIG_1(
self, args);
75054 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__OperatingPoints, 0);
75055 _v = SWIG_CheckState(res);
75058 int res = SWIG_AsVal_double(argv[1], NULL);
75059 _v = SWIG_CheckState(res);
75063 int res = SWIG_AsVal_double(argv[2], NULL);
75064 _v = SWIG_CheckState(res);
75067 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
75068 _v = SWIG_CheckState(res);
75071 int res = SWIG_AsVal_size_t(argv[4], NULL);
75072 _v = SWIG_CheckState(res);
75075 return _wrap_OperatingPoints_add__SWIG_0(
self, args);
75084 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'OperatingPoints_add'.\n"
75085 " Possible C/C++ prototypes are:\n"
75086 " faiss::OperatingPoints::add(double,double,std::string const &,size_t)\n"
75087 " faiss::OperatingPoints::add(double,double,std::string const &)\n");
75092 SWIGINTERN PyObject *_wrap_OperatingPoints_t_for_perf(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75093 PyObject *resultobj = 0;
75100 PyObject * obj0 = 0 ;
75101 PyObject * obj1 = 0 ;
75104 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoints_t_for_perf",&obj0,&obj1)) SWIG_fail;
75105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
75106 if (!SWIG_IsOK(res1)) {
75107 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_t_for_perf" "', argument " "1"" of type '" "faiss::OperatingPoints const *""'");
75110 ecode2 = SWIG_AsVal_double(obj1, &val2);
75111 if (!SWIG_IsOK(ecode2)) {
75112 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPoints_t_for_perf" "', argument " "2"" of type '" "double""'");
75114 arg2 =
static_cast< double >(val2);
75116 Py_BEGIN_ALLOW_THREADS
75120 PyEval_RestoreThread(_save);
75121 PyErr_SetString(PyExc_RuntimeError, e.
what());
75124 Py_END_ALLOW_THREADS
75126 resultobj = SWIG_From_double(static_cast< double >(result));
75133 SWIGINTERN PyObject *_wrap_OperatingPoints_display__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75134 PyObject *resultobj = 0;
75141 PyObject * obj0 = 0 ;
75142 PyObject * obj1 = 0 ;
75144 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoints_display",&obj0,&obj1)) SWIG_fail;
75145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
75146 if (!SWIG_IsOK(res1)) {
75147 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_display" "', argument " "1"" of type '" "faiss::OperatingPoints const *""'");
75150 ecode2 = SWIG_AsVal_bool(obj1, &val2);
75151 if (!SWIG_IsOK(ecode2)) {
75152 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "OperatingPoints_display" "', argument " "2"" of type '" "bool""'");
75154 arg2 =
static_cast< bool >(val2);
75156 Py_BEGIN_ALLOW_THREADS
75160 PyEval_RestoreThread(_save);
75161 PyErr_SetString(PyExc_RuntimeError, e.
what());
75164 Py_END_ALLOW_THREADS
75166 resultobj = SWIG_Py_Void();
75173 SWIGINTERN PyObject *_wrap_OperatingPoints_display__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75174 PyObject *resultobj = 0;
75178 PyObject * obj0 = 0 ;
75180 if (!PyArg_ParseTuple(args,(
char *)
"O:OperatingPoints_display",&obj0)) SWIG_fail;
75181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
75182 if (!SWIG_IsOK(res1)) {
75183 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_display" "', argument " "1"" of type '" "faiss::OperatingPoints const *""'");
75187 Py_BEGIN_ALLOW_THREADS
75191 PyEval_RestoreThread(_save);
75192 PyErr_SetString(PyExc_RuntimeError, e.
what());
75195 Py_END_ALLOW_THREADS
75197 resultobj = SWIG_Py_Void();
75204 SWIGINTERN PyObject *_wrap_OperatingPoints_display(PyObject *
self, PyObject *args) {
75206 PyObject *argv[3] = {
75211 if (!PyTuple_Check(args)) SWIG_fail;
75212 argc = args ? PyObject_Length(args) : 0;
75213 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
75214 argv[ii] = PyTuple_GET_ITEM(args,ii);
75219 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__OperatingPoints, 0);
75220 _v = SWIG_CheckState(res);
75222 return _wrap_OperatingPoints_display__SWIG_1(
self, args);
75228 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__OperatingPoints, 0);
75229 _v = SWIG_CheckState(res);
75232 int res = SWIG_AsVal_bool(argv[1], NULL);
75233 _v = SWIG_CheckState(res);
75236 return _wrap_OperatingPoints_display__SWIG_0(
self, args);
75242 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'OperatingPoints_display'.\n"
75243 " Possible C/C++ prototypes are:\n"
75244 " faiss::OperatingPoints::display(bool) const\n"
75245 " faiss::OperatingPoints::display() const\n");
75250 SWIGINTERN PyObject *_wrap_OperatingPoints_all_to_gnuplot(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75251 PyObject *resultobj = 0;
75253 char *arg2 = (
char *) 0 ;
75259 PyObject * obj0 = 0 ;
75260 PyObject * obj1 = 0 ;
75262 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoints_all_to_gnuplot",&obj0,&obj1)) SWIG_fail;
75263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
75264 if (!SWIG_IsOK(res1)) {
75265 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_all_to_gnuplot" "', argument " "1"" of type '" "faiss::OperatingPoints const *""'");
75268 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
75269 if (!SWIG_IsOK(res2)) {
75270 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPoints_all_to_gnuplot" "', argument " "2"" of type '" "char const *""'");
75272 arg2 =
reinterpret_cast< char *
>(buf2);
75274 Py_BEGIN_ALLOW_THREADS
75278 PyEval_RestoreThread(_save);
75279 PyErr_SetString(PyExc_RuntimeError, e.
what());
75282 Py_END_ALLOW_THREADS
75284 resultobj = SWIG_Py_Void();
75285 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
75288 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
75293 SWIGINTERN PyObject *_wrap_OperatingPoints_optimal_to_gnuplot(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75294 PyObject *resultobj = 0;
75296 char *arg2 = (
char *) 0 ;
75302 PyObject * obj0 = 0 ;
75303 PyObject * obj1 = 0 ;
75305 if (!PyArg_ParseTuple(args,(
char *)
"OO:OperatingPoints_optimal_to_gnuplot",&obj0,&obj1)) SWIG_fail;
75306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
75307 if (!SWIG_IsOK(res1)) {
75308 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "OperatingPoints_optimal_to_gnuplot" "', argument " "1"" of type '" "faiss::OperatingPoints const *""'");
75311 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
75312 if (!SWIG_IsOK(res2)) {
75313 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "OperatingPoints_optimal_to_gnuplot" "', argument " "2"" of type '" "char const *""'");
75315 arg2 =
reinterpret_cast< char *
>(buf2);
75317 Py_BEGIN_ALLOW_THREADS
75321 PyEval_RestoreThread(_save);
75322 PyErr_SetString(PyExc_RuntimeError, e.
what());
75325 Py_END_ALLOW_THREADS
75327 resultobj = SWIG_Py_Void();
75328 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
75331 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
75336 SWIGINTERN PyObject *_wrap_delete_OperatingPoints(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75337 PyObject *resultobj = 0;
75341 PyObject * obj0 = 0 ;
75343 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_OperatingPoints",&obj0)) SWIG_fail;
75344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__OperatingPoints, SWIG_POINTER_DISOWN | 0 );
75345 if (!SWIG_IsOK(res1)) {
75346 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_OperatingPoints" "', argument " "1"" of type '" "faiss::OperatingPoints *""'");
75350 resultobj = SWIG_Py_Void();
75357 SWIGINTERN PyObject *OperatingPoints_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75359 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
75360 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__OperatingPoints, SWIG_NewClientData(obj));
75361 return SWIG_Py_Void();
75364 SWIGINTERN PyObject *_wrap_ParameterRange_name_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75365 PyObject *resultobj = 0;
75367 std::string *arg2 = 0 ;
75370 int res2 = SWIG_OLDOBJ ;
75371 PyObject * obj0 = 0 ;
75372 PyObject * obj1 = 0 ;
75374 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterRange_name_set",&obj0,&obj1)) SWIG_fail;
75375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterRange, 0 | 0 );
75376 if (!SWIG_IsOK(res1)) {
75377 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterRange_name_set" "', argument " "1"" of type '" "faiss::ParameterRange *""'");
75381 std::string *ptr = (std::string *)0;
75382 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
75383 if (!SWIG_IsOK(res2)) {
75384 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterRange_name_set" "', argument " "2"" of type '" "std::string const &""'");
75387 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "ParameterRange_name_set" "', argument " "2"" of type '" "std::string const &""'");
75391 if (arg1) (arg1)->name = *arg2;
75392 resultobj = SWIG_Py_Void();
75393 if (SWIG_IsNewObj(res2))
delete arg2;
75396 if (SWIG_IsNewObj(res2))
delete arg2;
75401 SWIGINTERN PyObject *_wrap_ParameterRange_name_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75402 PyObject *resultobj = 0;
75406 PyObject * obj0 = 0 ;
75407 std::string *result = 0 ;
75409 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterRange_name_get",&obj0)) SWIG_fail;
75410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterRange, 0 | 0 );
75411 if (!SWIG_IsOK(res1)) {
75412 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterRange_name_get" "', argument " "1"" of type '" "faiss::ParameterRange *""'");
75415 result = (std::string *) & ((arg1)->name);
75416 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
75423 SWIGINTERN PyObject *_wrap_ParameterRange_values_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75424 PyObject *resultobj = 0;
75426 std::vector< double > *arg2 = (std::vector< double > *) 0 ;
75431 PyObject * obj0 = 0 ;
75432 PyObject * obj1 = 0 ;
75434 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterRange_values_set",&obj0,&obj1)) SWIG_fail;
75435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterRange, 0 | 0 );
75436 if (!SWIG_IsOK(res1)) {
75437 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterRange_values_set" "', argument " "1"" of type '" "faiss::ParameterRange *""'");
75440 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
75441 if (!SWIG_IsOK(res2)) {
75442 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterRange_values_set" "', argument " "2"" of type '" "std::vector< double > *""'");
75444 arg2 =
reinterpret_cast< std::vector< double > *
>(argp2);
75445 if (arg1) (arg1)->values = *arg2;
75446 resultobj = SWIG_Py_Void();
75453 SWIGINTERN PyObject *_wrap_ParameterRange_values_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75454 PyObject *resultobj = 0;
75458 PyObject * obj0 = 0 ;
75459 std::vector< double > *result = 0 ;
75461 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterRange_values_get",&obj0)) SWIG_fail;
75462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterRange, 0 | 0 );
75463 if (!SWIG_IsOK(res1)) {
75464 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterRange_values_get" "', argument " "1"" of type '" "faiss::ParameterRange *""'");
75467 result = (std::vector< double > *)& ((arg1)->values);
75468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_t, 0 | 0 );
75475 SWIGINTERN PyObject *_wrap_new_ParameterRange(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75476 PyObject *resultobj = 0;
75479 if (!PyArg_ParseTuple(args,(
char *)
":new_ParameterRange")) SWIG_fail;
75481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ParameterRange, SWIG_POINTER_NEW | 0 );
75488 SWIGINTERN PyObject *_wrap_delete_ParameterRange(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75489 PyObject *resultobj = 0;
75493 PyObject * obj0 = 0 ;
75495 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ParameterRange",&obj0)) SWIG_fail;
75496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterRange, SWIG_POINTER_DISOWN | 0 );
75497 if (!SWIG_IsOK(res1)) {
75498 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ParameterRange" "', argument " "1"" of type '" "faiss::ParameterRange *""'");
75502 resultobj = SWIG_Py_Void();
75509 SWIGINTERN PyObject *ParameterRange_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75511 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
75512 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ParameterRange, SWIG_NewClientData(obj));
75513 return SWIG_Py_Void();
75516 SWIGINTERN PyObject *_wrap_ParameterSpace_parameter_ranges_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75517 PyObject *resultobj = 0;
75519 std::vector< faiss::ParameterRange > *arg2 = (std::vector< faiss::ParameterRange > *) 0 ;
75524 PyObject * obj0 = 0 ;
75525 PyObject * obj1 = 0 ;
75527 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_parameter_ranges_set",&obj0,&obj1)) SWIG_fail;
75528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75529 if (!SWIG_IsOK(res1)) {
75530 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_parameter_ranges_set" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
75533 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t, 0 | 0 );
75534 if (!SWIG_IsOK(res2)) {
75535 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterSpace_parameter_ranges_set" "', argument " "2"" of type '" "std::vector< faiss::ParameterRange > *""'");
75537 arg2 =
reinterpret_cast< std::vector< faiss::ParameterRange > *
>(argp2);
75538 if (arg1) (arg1)->parameter_ranges = *arg2;
75539 resultobj = SWIG_Py_Void();
75546 SWIGINTERN PyObject *_wrap_ParameterSpace_parameter_ranges_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75547 PyObject *resultobj = 0;
75551 PyObject * obj0 = 0 ;
75552 std::vector< faiss::ParameterRange > *result = 0 ;
75554 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_parameter_ranges_get",&obj0)) SWIG_fail;
75555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75556 if (!SWIG_IsOK(res1)) {
75557 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_parameter_ranges_get" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
75560 result = (std::vector< faiss::ParameterRange > *)& ((arg1)->parameter_ranges);
75561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t, 0 | 0 );
75568 SWIGINTERN PyObject *_wrap_ParameterSpace_verbose_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75569 PyObject *resultobj = 0;
75576 PyObject * obj0 = 0 ;
75577 PyObject * obj1 = 0 ;
75579 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_verbose_set",&obj0,&obj1)) SWIG_fail;
75580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75581 if (!SWIG_IsOK(res1)) {
75582 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_verbose_set" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
75585 ecode2 = SWIG_AsVal_int(obj1, &val2);
75586 if (!SWIG_IsOK(ecode2)) {
75587 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_verbose_set" "', argument " "2"" of type '" "int""'");
75589 arg2 =
static_cast< int >(val2);
75590 if (arg1) (arg1)->verbose = arg2;
75591 resultobj = SWIG_Py_Void();
75598 SWIGINTERN PyObject *_wrap_ParameterSpace_verbose_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75599 PyObject *resultobj = 0;
75603 PyObject * obj0 = 0 ;
75606 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_verbose_get",&obj0)) SWIG_fail;
75607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75608 if (!SWIG_IsOK(res1)) {
75609 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_verbose_get" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
75612 result = (int) ((arg1)->verbose);
75613 resultobj = SWIG_From_int(static_cast< int >(result));
75620 SWIGINTERN PyObject *_wrap_ParameterSpace_n_experiments_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75621 PyObject *resultobj = 0;
75628 PyObject * obj0 = 0 ;
75629 PyObject * obj1 = 0 ;
75631 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_n_experiments_set",&obj0,&obj1)) SWIG_fail;
75632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75633 if (!SWIG_IsOK(res1)) {
75634 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_n_experiments_set" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
75637 ecode2 = SWIG_AsVal_int(obj1, &val2);
75638 if (!SWIG_IsOK(ecode2)) {
75639 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_n_experiments_set" "', argument " "2"" of type '" "int""'");
75641 arg2 =
static_cast< int >(val2);
75642 if (arg1) (arg1)->n_experiments = arg2;
75643 resultobj = SWIG_Py_Void();
75650 SWIGINTERN PyObject *_wrap_ParameterSpace_n_experiments_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75651 PyObject *resultobj = 0;
75655 PyObject * obj0 = 0 ;
75658 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_n_experiments_get",&obj0)) SWIG_fail;
75659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75660 if (!SWIG_IsOK(res1)) {
75661 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_n_experiments_get" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
75664 result = (int) ((arg1)->n_experiments);
75665 resultobj = SWIG_From_int(static_cast< int >(result));
75672 SWIGINTERN PyObject *_wrap_ParameterSpace_batchsize_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75673 PyObject *resultobj = 0;
75680 PyObject * obj0 = 0 ;
75681 PyObject * obj1 = 0 ;
75683 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_batchsize_set",&obj0,&obj1)) SWIG_fail;
75684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75685 if (!SWIG_IsOK(res1)) {
75686 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_batchsize_set" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
75689 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
75690 if (!SWIG_IsOK(ecode2)) {
75691 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_batchsize_set" "', argument " "2"" of type '" "size_t""'");
75693 arg2 =
static_cast< size_t >(val2);
75694 if (arg1) (arg1)->batchsize = arg2;
75695 resultobj = SWIG_Py_Void();
75702 SWIGINTERN PyObject *_wrap_ParameterSpace_batchsize_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75703 PyObject *resultobj = 0;
75707 PyObject * obj0 = 0 ;
75710 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_batchsize_get",&obj0)) SWIG_fail;
75711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75712 if (!SWIG_IsOK(res1)) {
75713 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_batchsize_get" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
75716 result = (size_t) ((arg1)->batchsize);
75717 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
75724 SWIGINTERN PyObject *_wrap_ParameterSpace_thread_over_batches_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75725 PyObject *resultobj = 0;
75732 PyObject * obj0 = 0 ;
75733 PyObject * obj1 = 0 ;
75735 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_thread_over_batches_set",&obj0,&obj1)) SWIG_fail;
75736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75737 if (!SWIG_IsOK(res1)) {
75738 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_thread_over_batches_set" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
75741 ecode2 = SWIG_AsVal_bool(obj1, &val2);
75742 if (!SWIG_IsOK(ecode2)) {
75743 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_thread_over_batches_set" "', argument " "2"" of type '" "bool""'");
75745 arg2 =
static_cast< bool >(val2);
75746 if (arg1) (arg1)->thread_over_batches = arg2;
75747 resultobj = SWIG_Py_Void();
75754 SWIGINTERN PyObject *_wrap_ParameterSpace_thread_over_batches_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75755 PyObject *resultobj = 0;
75759 PyObject * obj0 = 0 ;
75762 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_thread_over_batches_get",&obj0)) SWIG_fail;
75763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75764 if (!SWIG_IsOK(res1)) {
75765 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_thread_over_batches_get" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
75768 result = (bool) ((arg1)->thread_over_batches);
75769 resultobj = SWIG_From_bool(static_cast< bool >(result));
75776 SWIGINTERN PyObject *_wrap_ParameterSpace_min_test_duration_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75777 PyObject *resultobj = 0;
75784 PyObject * obj0 = 0 ;
75785 PyObject * obj1 = 0 ;
75787 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_min_test_duration_set",&obj0,&obj1)) SWIG_fail;
75788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75789 if (!SWIG_IsOK(res1)) {
75790 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_min_test_duration_set" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
75793 ecode2 = SWIG_AsVal_double(obj1, &val2);
75794 if (!SWIG_IsOK(ecode2)) {
75795 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_min_test_duration_set" "', argument " "2"" of type '" "double""'");
75797 arg2 =
static_cast< double >(val2);
75798 if (arg1) (arg1)->min_test_duration = arg2;
75799 resultobj = SWIG_Py_Void();
75806 SWIGINTERN PyObject *_wrap_ParameterSpace_min_test_duration_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75807 PyObject *resultobj = 0;
75811 PyObject * obj0 = 0 ;
75814 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_min_test_duration_get",&obj0)) SWIG_fail;
75815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75816 if (!SWIG_IsOK(res1)) {
75817 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_min_test_duration_get" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
75820 result = (double) ((arg1)->min_test_duration);
75821 resultobj = SWIG_From_double(static_cast< double >(result));
75828 SWIGINTERN PyObject *_wrap_new_ParameterSpace(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75829 PyObject *resultobj = 0;
75832 if (!PyArg_ParseTuple(args,(
char *)
":new_ParameterSpace")) SWIG_fail;
75834 Py_BEGIN_ALLOW_THREADS
75838 PyEval_RestoreThread(_save);
75839 PyErr_SetString(PyExc_RuntimeError, e.
what());
75842 Py_END_ALLOW_THREADS
75844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ParameterSpace, SWIG_POINTER_NEW | 0 );
75851 SWIGINTERN PyObject *_wrap_ParameterSpace_n_combinations(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75852 PyObject *resultobj = 0;
75856 PyObject * obj0 = 0 ;
75859 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_n_combinations",&obj0)) SWIG_fail;
75860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75861 if (!SWIG_IsOK(res1)) {
75862 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_n_combinations" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
75866 Py_BEGIN_ALLOW_THREADS
75870 PyEval_RestoreThread(_save);
75871 PyErr_SetString(PyExc_RuntimeError, e.
what());
75874 Py_END_ALLOW_THREADS
75876 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
75883 SWIGINTERN PyObject *_wrap_ParameterSpace_combination_ge(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75884 PyObject *resultobj = 0;
75894 PyObject * obj0 = 0 ;
75895 PyObject * obj1 = 0 ;
75896 PyObject * obj2 = 0 ;
75899 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ParameterSpace_combination_ge",&obj0,&obj1,&obj2)) SWIG_fail;
75900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75901 if (!SWIG_IsOK(res1)) {
75902 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_combination_ge" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
75905 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
75906 if (!SWIG_IsOK(ecode2)) {
75907 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_combination_ge" "', argument " "2"" of type '" "size_t""'");
75909 arg2 =
static_cast< size_t >(val2);
75910 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
75911 if (!SWIG_IsOK(ecode3)) {
75912 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ParameterSpace_combination_ge" "', argument " "3"" of type '" "size_t""'");
75914 arg3 =
static_cast< size_t >(val3);
75916 Py_BEGIN_ALLOW_THREADS
75920 PyEval_RestoreThread(_save);
75921 PyErr_SetString(PyExc_RuntimeError, e.
what());
75924 Py_END_ALLOW_THREADS
75926 resultobj = SWIG_From_bool(static_cast< bool >(result));
75933 SWIGINTERN PyObject *_wrap_ParameterSpace_combination_name(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75934 PyObject *resultobj = 0;
75941 PyObject * obj0 = 0 ;
75942 PyObject * obj1 = 0 ;
75943 std::string result;
75945 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_combination_name",&obj0,&obj1)) SWIG_fail;
75946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75947 if (!SWIG_IsOK(res1)) {
75948 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_combination_name" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
75951 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
75952 if (!SWIG_IsOK(ecode2)) {
75953 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_combination_name" "', argument " "2"" of type '" "size_t""'");
75955 arg2 =
static_cast< size_t >(val2);
75957 Py_BEGIN_ALLOW_THREADS
75961 PyEval_RestoreThread(_save);
75962 PyErr_SetString(PyExc_RuntimeError, e.
what());
75965 Py_END_ALLOW_THREADS
75967 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
75974 SWIGINTERN PyObject *_wrap_ParameterSpace_display(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
75975 PyObject *resultobj = 0;
75979 PyObject * obj0 = 0 ;
75981 if (!PyArg_ParseTuple(args,(
char *)
"O:ParameterSpace_display",&obj0)) SWIG_fail;
75982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
75983 if (!SWIG_IsOK(res1)) {
75984 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_display" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
75988 Py_BEGIN_ALLOW_THREADS
75992 PyEval_RestoreThread(_save);
75993 PyErr_SetString(PyExc_RuntimeError, e.
what());
75996 Py_END_ALLOW_THREADS
75998 resultobj = SWIG_Py_Void();
76005 SWIGINTERN PyObject *_wrap_ParameterSpace_add_range(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76006 PyObject *resultobj = 0;
76008 char *arg2 = (
char *) 0 ;
76014 PyObject * obj0 = 0 ;
76015 PyObject * obj1 = 0 ;
76018 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_add_range",&obj0,&obj1)) SWIG_fail;
76019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
76020 if (!SWIG_IsOK(res1)) {
76021 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_add_range" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
76024 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
76025 if (!SWIG_IsOK(res2)) {
76026 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterSpace_add_range" "', argument " "2"" of type '" "char const *""'");
76028 arg2 =
reinterpret_cast< char *
>(buf2);
76030 Py_BEGIN_ALLOW_THREADS
76034 PyEval_RestoreThread(_save);
76035 PyErr_SetString(PyExc_RuntimeError, e.
what());
76038 Py_END_ALLOW_THREADS
76040 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__ParameterRange, 0 | 0 );
76041 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
76044 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
76049 SWIGINTERN PyObject *_wrap_ParameterSpace_initialize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76050 PyObject *resultobj = 0;
76057 PyObject * obj0 = 0 ;
76058 PyObject * obj1 = 0 ;
76060 if (!PyArg_ParseTuple(args,(
char *)
"OO:ParameterSpace_initialize",&obj0,&obj1)) SWIG_fail;
76061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
76062 if (!SWIG_IsOK(res1)) {
76063 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_initialize" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
76066 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
76067 if (!SWIG_IsOK(res2)) {
76068 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterSpace_initialize" "', argument " "2"" of type '" "faiss::Index const *""'");
76072 Py_BEGIN_ALLOW_THREADS
76076 PyEval_RestoreThread(_save);
76077 PyErr_SetString(PyExc_RuntimeError, e.
what());
76080 Py_END_ALLOW_THREADS
76082 resultobj = SWIG_Py_Void();
76089 SWIGINTERN PyObject *_wrap_ParameterSpace_set_index_parameters__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76090 PyObject *resultobj = 0;
76100 PyObject * obj0 = 0 ;
76101 PyObject * obj1 = 0 ;
76102 PyObject * obj2 = 0 ;
76104 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ParameterSpace_set_index_parameters",&obj0,&obj1,&obj2)) SWIG_fail;
76105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
76106 if (!SWIG_IsOK(res1)) {
76107 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_set_index_parameters" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
76110 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
76111 if (!SWIG_IsOK(res2)) {
76112 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterSpace_set_index_parameters" "', argument " "2"" of type '" "faiss::Index *""'");
76115 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
76116 if (!SWIG_IsOK(ecode3)) {
76117 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ParameterSpace_set_index_parameters" "', argument " "3"" of type '" "size_t""'");
76119 arg3 =
static_cast< size_t >(val3);
76121 Py_BEGIN_ALLOW_THREADS
76125 PyEval_RestoreThread(_save);
76126 PyErr_SetString(PyExc_RuntimeError, e.
what());
76129 Py_END_ALLOW_THREADS
76131 resultobj = SWIG_Py_Void();
76138 SWIGINTERN PyObject *_wrap_ParameterSpace_set_index_parameters__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76139 PyObject *resultobj = 0;
76142 char *arg3 = (
char *) 0 ;
76150 PyObject * obj0 = 0 ;
76151 PyObject * obj1 = 0 ;
76152 PyObject * obj2 = 0 ;
76154 if (!PyArg_ParseTuple(args,(
char *)
"OOO:ParameterSpace_set_index_parameters",&obj0,&obj1,&obj2)) SWIG_fail;
76155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
76156 if (!SWIG_IsOK(res1)) {
76157 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_set_index_parameters" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
76160 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
76161 if (!SWIG_IsOK(res2)) {
76162 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterSpace_set_index_parameters" "', argument " "2"" of type '" "faiss::Index *""'");
76165 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
76166 if (!SWIG_IsOK(res3)) {
76167 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ParameterSpace_set_index_parameters" "', argument " "3"" of type '" "char const *""'");
76169 arg3 =
reinterpret_cast< char *
>(buf3);
76171 Py_BEGIN_ALLOW_THREADS
76175 PyEval_RestoreThread(_save);
76176 PyErr_SetString(PyExc_RuntimeError, e.
what());
76179 Py_END_ALLOW_THREADS
76181 resultobj = SWIG_Py_Void();
76182 if (alloc3 == SWIG_NEWOBJ)
delete[] buf3;
76185 if (alloc3 == SWIG_NEWOBJ)
delete[] buf3;
76190 SWIGINTERN PyObject *_wrap_ParameterSpace_set_index_parameters(PyObject *
self, PyObject *args) {
76192 PyObject *argv[4] = {
76197 if (!PyTuple_Check(args)) SWIG_fail;
76198 argc = args ? PyObject_Length(args) : 0;
76199 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
76200 argv[ii] = PyTuple_GET_ITEM(args,ii);
76205 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ParameterSpace, 0);
76206 _v = SWIG_CheckState(res);
76209 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__Index, 0);
76210 _v = SWIG_CheckState(res);
76213 int res = SWIG_AsVal_size_t(argv[2], NULL);
76214 _v = SWIG_CheckState(res);
76217 return _wrap_ParameterSpace_set_index_parameters__SWIG_0(
self, args);
76225 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__ParameterSpace, 0);
76226 _v = SWIG_CheckState(res);
76229 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_faiss__Index, 0);
76230 _v = SWIG_CheckState(res);
76232 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
76233 _v = SWIG_CheckState(res);
76235 return _wrap_ParameterSpace_set_index_parameters__SWIG_1(
self, args);
76242 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'ParameterSpace_set_index_parameters'.\n"
76243 " Possible C/C++ prototypes are:\n"
76244 " faiss::ParameterSpace::set_index_parameters(faiss::Index *,size_t) const\n"
76245 " faiss::ParameterSpace::set_index_parameters(faiss::Index *,char const *) const\n");
76250 SWIGINTERN PyObject *_wrap_ParameterSpace_set_index_parameter(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76251 PyObject *resultobj = 0;
76254 std::string *arg3 = 0 ;
76260 int res3 = SWIG_OLDOBJ ;
76263 PyObject * obj0 = 0 ;
76264 PyObject * obj1 = 0 ;
76265 PyObject * obj2 = 0 ;
76266 PyObject * obj3 = 0 ;
76268 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:ParameterSpace_set_index_parameter",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
76269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
76270 if (!SWIG_IsOK(res1)) {
76271 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_set_index_parameter" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
76274 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
76275 if (!SWIG_IsOK(res2)) {
76276 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterSpace_set_index_parameter" "', argument " "2"" of type '" "faiss::Index *""'");
76280 std::string *ptr = (std::string *)0;
76281 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
76282 if (!SWIG_IsOK(res3)) {
76283 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ParameterSpace_set_index_parameter" "', argument " "3"" of type '" "std::string const &""'");
76286 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "ParameterSpace_set_index_parameter" "', argument " "3"" of type '" "std::string const &""'");
76290 ecode4 = SWIG_AsVal_double(obj3, &val4);
76291 if (!SWIG_IsOK(ecode4)) {
76292 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "ParameterSpace_set_index_parameter" "', argument " "4"" of type '" "double""'");
76294 arg4 =
static_cast< double >(val4);
76296 Py_BEGIN_ALLOW_THREADS
76300 PyEval_RestoreThread(_save);
76301 PyErr_SetString(PyExc_RuntimeError, e.
what());
76304 Py_END_ALLOW_THREADS
76306 resultobj = SWIG_Py_Void();
76307 if (SWIG_IsNewObj(res3))
delete arg3;
76310 if (SWIG_IsNewObj(res3))
delete arg3;
76315 SWIGINTERN PyObject *_wrap_ParameterSpace_update_bounds(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76316 PyObject *resultobj = 0;
76320 double *arg4 = (
double *) 0 ;
76321 double *arg5 = (
double *) 0 ;
76332 PyObject * obj0 = 0 ;
76333 PyObject * obj1 = 0 ;
76334 PyObject * obj2 = 0 ;
76335 PyObject * obj3 = 0 ;
76336 PyObject * obj4 = 0 ;
76338 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:ParameterSpace_update_bounds",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
76339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
76340 if (!SWIG_IsOK(res1)) {
76341 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_update_bounds" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
76344 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
76345 if (!SWIG_IsOK(ecode2)) {
76346 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "ParameterSpace_update_bounds" "', argument " "2"" of type '" "size_t""'");
76348 arg2 =
static_cast< size_t >(val2);
76349 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_faiss__OperatingPoint, 0 | 0);
76350 if (!SWIG_IsOK(res3)) {
76351 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "ParameterSpace_update_bounds" "', argument " "3"" of type '" "faiss::OperatingPoint const &""'");
76354 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "ParameterSpace_update_bounds" "', argument " "3"" of type '" "faiss::OperatingPoint const &""'");
76357 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_double, 0 | 0 );
76358 if (!SWIG_IsOK(res4)) {
76359 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ParameterSpace_update_bounds" "', argument " "4"" of type '" "double *""'");
76361 arg4 =
reinterpret_cast< double *
>(argp4);
76362 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_double, 0 | 0 );
76363 if (!SWIG_IsOK(res5)) {
76364 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "ParameterSpace_update_bounds" "', argument " "5"" of type '" "double *""'");
76366 arg5 =
reinterpret_cast< double *
>(argp5);
76368 Py_BEGIN_ALLOW_THREADS
76372 PyEval_RestoreThread(_save);
76373 PyErr_SetString(PyExc_RuntimeError, e.
what());
76376 Py_END_ALLOW_THREADS
76378 resultobj = SWIG_Py_Void();
76385 SWIGINTERN PyObject *_wrap_ParameterSpace_explore(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76386 PyObject *resultobj = 0;
76390 float *arg4 = (
float *) 0 ;
76405 PyObject * obj0 = 0 ;
76406 PyObject * obj1 = 0 ;
76407 PyObject * obj2 = 0 ;
76408 PyObject * obj3 = 0 ;
76409 PyObject * obj4 = 0 ;
76410 PyObject * obj5 = 0 ;
76412 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:ParameterSpace_explore",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
76413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, 0 | 0 );
76414 if (!SWIG_IsOK(res1)) {
76415 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "ParameterSpace_explore" "', argument " "1"" of type '" "faiss::ParameterSpace const *""'");
76418 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
76419 if (!SWIG_IsOK(res2)) {
76420 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "ParameterSpace_explore" "', argument " "2"" of type '" "faiss::Index *""'");
76423 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
76424 if (!SWIG_IsOK(ecode3)) {
76425 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "ParameterSpace_explore" "', argument " "3"" of type '" "size_t""'");
76427 arg3 =
static_cast< size_t >(val3);
76428 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
76429 if (!SWIG_IsOK(res4)) {
76430 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "ParameterSpace_explore" "', argument " "4"" of type '" "float const *""'");
76432 arg4 =
reinterpret_cast< float *
>(argp4);
76433 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_faiss__AutoTuneCriterion, 0 | 0);
76434 if (!SWIG_IsOK(res5)) {
76435 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "ParameterSpace_explore" "', argument " "5"" of type '" "faiss::AutoTuneCriterion const &""'");
76438 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "ParameterSpace_explore" "', argument " "5"" of type '" "faiss::AutoTuneCriterion const &""'");
76441 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_faiss__OperatingPoints, 0 | 0 );
76442 if (!SWIG_IsOK(res6)) {
76443 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "ParameterSpace_explore" "', argument " "6"" of type '" "faiss::OperatingPoints *""'");
76447 Py_BEGIN_ALLOW_THREADS
76451 PyEval_RestoreThread(_save);
76452 PyErr_SetString(PyExc_RuntimeError, e.
what());
76455 Py_END_ALLOW_THREADS
76457 resultobj = SWIG_Py_Void();
76464 SWIGINTERN PyObject *_wrap_delete_ParameterSpace(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76465 PyObject *resultobj = 0;
76469 PyObject * obj0 = 0 ;
76471 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_ParameterSpace",&obj0)) SWIG_fail;
76472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__ParameterSpace, SWIG_POINTER_DISOWN | 0 );
76473 if (!SWIG_IsOK(res1)) {
76474 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_ParameterSpace" "', argument " "1"" of type '" "faiss::ParameterSpace *""'");
76478 Py_BEGIN_ALLOW_THREADS
76482 PyEval_RestoreThread(_save);
76483 PyErr_SetString(PyExc_RuntimeError, e.
what());
76486 Py_END_ALLOW_THREADS
76488 resultobj = SWIG_Py_Void();
76495 SWIGINTERN PyObject *ParameterSpace_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76497 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
76498 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__ParameterSpace, SWIG_NewClientData(obj));
76499 return SWIG_Py_Void();
76502 SWIGINTERN PyObject *_wrap_index_factory__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76503 PyObject *resultobj = 0;
76505 char *arg2 = (
char *) 0 ;
76514 PyObject * obj0 = 0 ;
76515 PyObject * obj1 = 0 ;
76516 PyObject * obj2 = 0 ;
76519 if (!PyArg_ParseTuple(args,(
char *)
"OOO:index_factory",&obj0,&obj1,&obj2)) SWIG_fail;
76520 ecode1 = SWIG_AsVal_int(obj0, &val1);
76521 if (!SWIG_IsOK(ecode1)) {
76522 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "index_factory" "', argument " "1"" of type '" "int""'");
76524 arg1 =
static_cast< int >(val1);
76525 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
76526 if (!SWIG_IsOK(res2)) {
76527 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "index_factory" "', argument " "2"" of type '" "char const *""'");
76529 arg2 =
reinterpret_cast< char *
>(buf2);
76530 ecode3 = SWIG_AsVal_int(obj2, &val3);
76531 if (!SWIG_IsOK(ecode3)) {
76532 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "index_factory" "', argument " "3"" of type '" "faiss::MetricType""'");
76536 Py_BEGIN_ALLOW_THREADS
76540 PyEval_RestoreThread(_save);
76541 PyErr_SetString(PyExc_RuntimeError, e.
what());
76544 Py_END_ALLOW_THREADS
76548 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
76549 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
76553 if (dynamic_cast<faiss::IndexShards *> (result)) {
76554 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
76558 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
76559 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
76563 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
76564 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
76568 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
76569 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
76573 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
76574 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
76578 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
76579 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
76583 if (dynamic_cast<faiss::IndexIVF *> (result)) {
76584 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
76588 if (dynamic_cast<faiss::IndexFlat *> (result)) {
76589 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
76593 if (dynamic_cast<faiss::IndexPQ *> (result)) {
76594 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
76598 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
76599 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
76603 if (dynamic_cast<faiss::IndexLSH *> (result)) {
76604 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
76608 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
76609 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
76613 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
76614 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
76618 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
76619 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
76623 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
76624 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
76628 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
76629 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
76633 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
76634 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
76638 if (dynamic_cast<faiss::Index2Layer *> (result)) {
76639 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
76644 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
76645 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,SWIG_POINTER_OWN);
76649 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
76650 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,SWIG_POINTER_OWN);
76654 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
76655 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,SWIG_POINTER_OWN);
76659 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
76660 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,SWIG_POINTER_OWN);
76666 if (dynamic_cast<faiss::Index *> (result)) {
76667 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
76670 if (result == NULL)
76672 resultobj = SWIG_Py_Void();
76682 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
76685 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
76690 SWIGINTERN PyObject *_wrap_index_factory__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76691 PyObject *resultobj = 0;
76693 char *arg2 = (
char *) 0 ;
76699 PyObject * obj0 = 0 ;
76700 PyObject * obj1 = 0 ;
76703 if (!PyArg_ParseTuple(args,(
char *)
"OO:index_factory",&obj0,&obj1)) SWIG_fail;
76704 ecode1 = SWIG_AsVal_int(obj0, &val1);
76705 if (!SWIG_IsOK(ecode1)) {
76706 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "index_factory" "', argument " "1"" of type '" "int""'");
76708 arg1 =
static_cast< int >(val1);
76709 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
76710 if (!SWIG_IsOK(res2)) {
76711 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "index_factory" "', argument " "2"" of type '" "char const *""'");
76713 arg2 =
reinterpret_cast< char *
>(buf2);
76715 Py_BEGIN_ALLOW_THREADS
76719 PyEval_RestoreThread(_save);
76720 PyErr_SetString(PyExc_RuntimeError, e.
what());
76723 Py_END_ALLOW_THREADS
76727 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
76728 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
76732 if (dynamic_cast<faiss::IndexShards *> (result)) {
76733 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
76737 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
76738 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
76742 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
76743 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
76747 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
76748 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
76752 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
76753 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
76757 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
76758 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
76762 if (dynamic_cast<faiss::IndexIVF *> (result)) {
76763 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
76767 if (dynamic_cast<faiss::IndexFlat *> (result)) {
76768 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
76772 if (dynamic_cast<faiss::IndexPQ *> (result)) {
76773 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
76777 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
76778 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
76782 if (dynamic_cast<faiss::IndexLSH *> (result)) {
76783 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
76787 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
76788 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
76792 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
76793 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
76797 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
76798 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
76802 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
76803 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
76807 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
76808 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
76812 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
76813 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
76817 if (dynamic_cast<faiss::Index2Layer *> (result)) {
76818 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
76823 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
76824 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,SWIG_POINTER_OWN);
76828 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
76829 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,SWIG_POINTER_OWN);
76833 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
76834 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,SWIG_POINTER_OWN);
76838 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
76839 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,SWIG_POINTER_OWN);
76845 if (dynamic_cast<faiss::Index *> (result)) {
76846 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
76849 if (result == NULL)
76851 resultobj = SWIG_Py_Void();
76861 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
76864 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
76869 SWIGINTERN PyObject *_wrap_index_factory(PyObject *
self, PyObject *args) {
76871 PyObject *argv[4] = {
76876 if (!PyTuple_Check(args)) SWIG_fail;
76877 argc = args ? PyObject_Length(args) : 0;
76878 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
76879 argv[ii] = PyTuple_GET_ITEM(args,ii);
76884 int res = SWIG_AsVal_int(argv[0], NULL);
76885 _v = SWIG_CheckState(res);
76888 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
76889 _v = SWIG_CheckState(res);
76891 return _wrap_index_factory__SWIG_1(
self, args);
76898 int res = SWIG_AsVal_int(argv[0], NULL);
76899 _v = SWIG_CheckState(res);
76902 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
76903 _v = SWIG_CheckState(res);
76906 int res = SWIG_AsVal_int(argv[2], NULL);
76907 _v = SWIG_CheckState(res);
76910 return _wrap_index_factory__SWIG_0(
self, args);
76917 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'index_factory'.\n"
76918 " Possible C/C++ prototypes are:\n"
76919 " faiss::index_factory(int,char const *,faiss::MetricType)\n"
76920 " faiss::index_factory(int,char const *)\n");
76925 SWIGINTERN PyObject *_wrap_index_binary_factory(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
76926 PyObject *resultobj = 0;
76928 char *arg2 = (
char *) 0 ;
76934 PyObject * obj0 = 0 ;
76935 PyObject * obj1 = 0 ;
76938 if (!PyArg_ParseTuple(args,(
char *)
"OO:index_binary_factory",&obj0,&obj1)) SWIG_fail;
76939 ecode1 = SWIG_AsVal_int(obj0, &val1);
76940 if (!SWIG_IsOK(ecode1)) {
76941 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "index_binary_factory" "', argument " "1"" of type '" "int""'");
76943 arg1 =
static_cast< int >(val1);
76944 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
76945 if (!SWIG_IsOK(res2)) {
76946 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "index_binary_factory" "', argument " "2"" of type '" "char const *""'");
76948 arg2 =
reinterpret_cast< char *
>(buf2);
76950 Py_BEGIN_ALLOW_THREADS
76952 result = (
faiss::IndexBinary *)faiss::index_binary_factory(arg1,(
char const *)arg2);
76954 PyEval_RestoreThread(_save);
76955 PyErr_SetString(PyExc_RuntimeError, e.
what());
76958 Py_END_ALLOW_THREADS
76962 if (dynamic_cast<faiss::IndexBinaryIVF *> (result)) {
76963 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryIVF,SWIG_POINTER_OWN);
76967 if (dynamic_cast<faiss::IndexBinaryFlat *> (result)) {
76968 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFlat,SWIG_POINTER_OWN);
76972 if (dynamic_cast<faiss::IndexBinaryFromFloat *> (result)) {
76973 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryFromFloat,SWIG_POINTER_OWN);
76977 if (dynamic_cast<faiss::IndexBinaryHNSW *> (result)) {
76978 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinaryHNSW,SWIG_POINTER_OWN);
76983 if (dynamic_cast<faiss::gpu::GpuIndexBinaryFlat *> (result)) {
76984 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexBinaryFlat,SWIG_POINTER_OWN);
76990 if (dynamic_cast<faiss::IndexBinary *> (result)) {
76991 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexBinary,SWIG_POINTER_OWN);
76994 if (result == NULL)
76996 resultobj = SWIG_Py_Void();
77006 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
77009 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
77014 SWIGINTERN PyObject *_wrap_index_gpu_to_cpu(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
77015 PyObject *resultobj = 0;
77019 PyObject * obj0 = 0 ;
77022 if (!PyArg_ParseTuple(args,(
char *)
"O:index_gpu_to_cpu",&obj0)) SWIG_fail;
77023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__Index, 0 | 0 );
77024 if (!SWIG_IsOK(res1)) {
77025 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "index_gpu_to_cpu" "', argument " "1"" of type '" "faiss::Index const *""'");
77029 Py_BEGIN_ALLOW_THREADS
77033 PyEval_RestoreThread(_save);
77034 PyErr_SetString(PyExc_RuntimeError, e.
what());
77037 Py_END_ALLOW_THREADS
77041 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
77042 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
77046 if (dynamic_cast<faiss::IndexShards *> (result)) {
77047 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
77051 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
77052 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
77056 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
77057 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
77061 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
77062 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
77066 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
77067 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
77071 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
77072 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
77076 if (dynamic_cast<faiss::IndexIVF *> (result)) {
77077 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
77081 if (dynamic_cast<faiss::IndexFlat *> (result)) {
77082 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
77086 if (dynamic_cast<faiss::IndexPQ *> (result)) {
77087 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
77091 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
77092 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
77096 if (dynamic_cast<faiss::IndexLSH *> (result)) {
77097 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
77101 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
77102 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
77106 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
77107 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
77111 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
77112 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
77116 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
77117 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
77121 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
77122 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
77126 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
77127 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
77131 if (dynamic_cast<faiss::Index2Layer *> (result)) {
77132 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
77137 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
77138 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,SWIG_POINTER_OWN);
77142 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
77143 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,SWIG_POINTER_OWN);
77147 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
77148 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,SWIG_POINTER_OWN);
77152 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
77153 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,SWIG_POINTER_OWN);
77159 if (dynamic_cast<faiss::Index *> (result)) {
77160 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
77163 if (result == NULL)
77165 resultobj = SWIG_Py_Void();
77181 SWIGINTERN PyObject *_wrap_index_cpu_to_gpu__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
77182 PyObject *resultobj = 0;
77195 PyObject * obj0 = 0 ;
77196 PyObject * obj1 = 0 ;
77197 PyObject * obj2 = 0 ;
77198 PyObject * obj3 = 0 ;
77201 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:index_cpu_to_gpu",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
77202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
77203 if (!SWIG_IsOK(res1)) {
77204 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "index_cpu_to_gpu" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
77207 ecode2 = SWIG_AsVal_int(obj1, &val2);
77208 if (!SWIG_IsOK(ecode2)) {
77209 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "index_cpu_to_gpu" "', argument " "2"" of type '" "int""'");
77211 arg2 =
static_cast< int >(val2);
77212 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_faiss__Index, 0 | 0 );
77213 if (!SWIG_IsOK(res3)) {
77214 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "index_cpu_to_gpu" "', argument " "3"" of type '" "faiss::Index const *""'");
77217 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0 | 0 );
77218 if (!SWIG_IsOK(res4)) {
77219 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "index_cpu_to_gpu" "', argument " "4"" of type '" "faiss::gpu::GpuClonerOptions const *""'");
77223 Py_BEGIN_ALLOW_THREADS
77227 PyEval_RestoreThread(_save);
77228 PyErr_SetString(PyExc_RuntimeError, e.
what());
77231 Py_END_ALLOW_THREADS
77235 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
77236 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
77240 if (dynamic_cast<faiss::IndexShards *> (result)) {
77241 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
77245 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
77246 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
77250 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
77251 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
77255 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
77256 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
77260 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
77261 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
77265 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
77266 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
77270 if (dynamic_cast<faiss::IndexIVF *> (result)) {
77271 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
77275 if (dynamic_cast<faiss::IndexFlat *> (result)) {
77276 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
77280 if (dynamic_cast<faiss::IndexPQ *> (result)) {
77281 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
77285 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
77286 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
77290 if (dynamic_cast<faiss::IndexLSH *> (result)) {
77291 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
77295 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
77296 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
77300 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
77301 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
77305 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
77306 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
77310 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
77311 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
77315 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
77316 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
77320 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
77321 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
77325 if (dynamic_cast<faiss::Index2Layer *> (result)) {
77326 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
77331 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
77332 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,SWIG_POINTER_OWN);
77336 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
77337 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,SWIG_POINTER_OWN);
77341 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
77342 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,SWIG_POINTER_OWN);
77346 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
77347 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,SWIG_POINTER_OWN);
77353 if (dynamic_cast<faiss::Index *> (result)) {
77354 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
77357 if (result == NULL)
77359 resultobj = SWIG_Py_Void();
77375 SWIGINTERN PyObject *_wrap_index_cpu_to_gpu__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
77376 PyObject *resultobj = 0;
77386 PyObject * obj0 = 0 ;
77387 PyObject * obj1 = 0 ;
77388 PyObject * obj2 = 0 ;
77391 if (!PyArg_ParseTuple(args,(
char *)
"OOO:index_cpu_to_gpu",&obj0,&obj1,&obj2)) SWIG_fail;
77392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuResources, 0 | 0 );
77393 if (!SWIG_IsOK(res1)) {
77394 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "index_cpu_to_gpu" "', argument " "1"" of type '" "faiss::gpu::GpuResources *""'");
77397 ecode2 = SWIG_AsVal_int(obj1, &val2);
77398 if (!SWIG_IsOK(ecode2)) {
77399 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "index_cpu_to_gpu" "', argument " "2"" of type '" "int""'");
77401 arg2 =
static_cast< int >(val2);
77402 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_faiss__Index, 0 | 0 );
77403 if (!SWIG_IsOK(res3)) {
77404 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "index_cpu_to_gpu" "', argument " "3"" of type '" "faiss::Index const *""'");
77408 Py_BEGIN_ALLOW_THREADS
77412 PyEval_RestoreThread(_save);
77413 PyErr_SetString(PyExc_RuntimeError, e.
what());
77416 Py_END_ALLOW_THREADS
77420 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
77421 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
77425 if (dynamic_cast<faiss::IndexShards *> (result)) {
77426 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
77430 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
77431 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
77435 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
77436 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
77440 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
77441 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
77445 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
77446 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
77450 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
77451 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
77455 if (dynamic_cast<faiss::IndexIVF *> (result)) {
77456 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
77460 if (dynamic_cast<faiss::IndexFlat *> (result)) {
77461 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
77465 if (dynamic_cast<faiss::IndexPQ *> (result)) {
77466 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
77470 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
77471 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
77475 if (dynamic_cast<faiss::IndexLSH *> (result)) {
77476 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
77480 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
77481 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
77485 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
77486 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
77490 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
77491 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
77495 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
77496 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
77500 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
77501 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
77505 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
77506 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
77510 if (dynamic_cast<faiss::Index2Layer *> (result)) {
77511 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
77516 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
77517 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,SWIG_POINTER_OWN);
77521 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
77522 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,SWIG_POINTER_OWN);
77526 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
77527 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,SWIG_POINTER_OWN);
77531 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
77532 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,SWIG_POINTER_OWN);
77538 if (dynamic_cast<faiss::Index *> (result)) {
77539 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
77542 if (result == NULL)
77544 resultobj = SWIG_Py_Void();
77560 SWIGINTERN PyObject *_wrap_index_cpu_to_gpu(PyObject *
self, PyObject *args) {
77562 PyObject *argv[5] = {
77567 if (!PyTuple_Check(args)) SWIG_fail;
77568 argc = args ? PyObject_Length(args) : 0;
77569 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
77570 argv[ii] = PyTuple_GET_ITEM(args,ii);
77575 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
77576 _v = SWIG_CheckState(res);
77579 int res = SWIG_AsVal_int(argv[1], NULL);
77580 _v = SWIG_CheckState(res);
77584 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_faiss__Index, 0);
77585 _v = SWIG_CheckState(res);
77587 return _wrap_index_cpu_to_gpu__SWIG_1(
self, args);
77595 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__gpu__GpuResources, 0);
77596 _v = SWIG_CheckState(res);
77599 int res = SWIG_AsVal_int(argv[1], NULL);
77600 _v = SWIG_CheckState(res);
77604 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_faiss__Index, 0);
77605 _v = SWIG_CheckState(res);
77608 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_faiss__gpu__GpuClonerOptions, 0);
77609 _v = SWIG_CheckState(res);
77611 return _wrap_index_cpu_to_gpu__SWIG_0(
self, args);
77619 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'index_cpu_to_gpu'.\n"
77620 " Possible C/C++ prototypes are:\n"
77621 " faiss::gpu::index_cpu_to_gpu(faiss::gpu::GpuResources *,int,faiss::Index const *,faiss::gpu::GpuClonerOptions const *)\n"
77622 " faiss::gpu::index_cpu_to_gpu(faiss::gpu::GpuResources *,int,faiss::Index const *)\n");
77627 SWIGINTERN PyObject *_wrap_index_cpu_to_gpu_multiple__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
77628 PyObject *resultobj = 0;
77629 std::vector< faiss::gpu::GpuResources * > *arg1 = 0 ;
77630 std::vector< int > *arg2 = 0 ;
77641 PyObject * obj0 = 0 ;
77642 PyObject * obj1 = 0 ;
77643 PyObject * obj2 = 0 ;
77644 PyObject * obj3 = 0 ;
77647 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:index_cpu_to_gpu_multiple",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
77648 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, 0 );
77649 if (!SWIG_IsOK(res1)) {
77650 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "index_cpu_to_gpu_multiple" "', argument " "1"" of type '" "std::vector< faiss::gpu::GpuResources * > &""'");
77653 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "index_cpu_to_gpu_multiple" "', argument " "1"" of type '" "std::vector< faiss::gpu::GpuResources * > &""'");
77655 arg1 =
reinterpret_cast< std::vector< faiss::gpu::GpuResources * > *
>(argp1);
77656 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_int_t, 0 );
77657 if (!SWIG_IsOK(res2)) {
77658 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "index_cpu_to_gpu_multiple" "', argument " "2"" of type '" "std::vector< int > &""'");
77661 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "index_cpu_to_gpu_multiple" "', argument " "2"" of type '" "std::vector< int > &""'");
77663 arg2 =
reinterpret_cast< std::vector< int > *
>(argp2);
77664 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_faiss__Index, 0 | 0 );
77665 if (!SWIG_IsOK(res3)) {
77666 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "index_cpu_to_gpu_multiple" "', argument " "3"" of type '" "faiss::Index const *""'");
77669 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_faiss__gpu__GpuMultipleClonerOptions, 0 | 0 );
77670 if (!SWIG_IsOK(res4)) {
77671 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "index_cpu_to_gpu_multiple" "', argument " "4"" of type '" "faiss::gpu::GpuMultipleClonerOptions const *""'");
77675 Py_BEGIN_ALLOW_THREADS
77679 PyEval_RestoreThread(_save);
77680 PyErr_SetString(PyExc_RuntimeError, e.
what());
77683 Py_END_ALLOW_THREADS
77687 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
77688 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
77692 if (dynamic_cast<faiss::IndexShards *> (result)) {
77693 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
77697 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
77698 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
77702 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
77703 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
77707 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
77708 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
77712 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
77713 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
77717 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
77718 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
77722 if (dynamic_cast<faiss::IndexIVF *> (result)) {
77723 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
77727 if (dynamic_cast<faiss::IndexFlat *> (result)) {
77728 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
77732 if (dynamic_cast<faiss::IndexPQ *> (result)) {
77733 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
77737 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
77738 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
77742 if (dynamic_cast<faiss::IndexLSH *> (result)) {
77743 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
77747 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
77748 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
77752 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
77753 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
77757 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
77758 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
77762 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
77763 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
77767 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
77768 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
77772 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
77773 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
77777 if (dynamic_cast<faiss::Index2Layer *> (result)) {
77778 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
77783 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
77784 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,SWIG_POINTER_OWN);
77788 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
77789 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,SWIG_POINTER_OWN);
77793 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
77794 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,SWIG_POINTER_OWN);
77798 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
77799 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,SWIG_POINTER_OWN);
77805 if (dynamic_cast<faiss::Index *> (result)) {
77806 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
77809 if (result == NULL)
77811 resultobj = SWIG_Py_Void();
77827 SWIGINTERN PyObject *_wrap_index_cpu_to_gpu_multiple__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
77828 PyObject *resultobj = 0;
77829 std::vector< faiss::gpu::GpuResources * > *arg1 = 0 ;
77830 std::vector< int > *arg2 = 0 ;
77838 PyObject * obj0 = 0 ;
77839 PyObject * obj1 = 0 ;
77840 PyObject * obj2 = 0 ;
77843 if (!PyArg_ParseTuple(args,(
char *)
"OOO:index_cpu_to_gpu_multiple",&obj0,&obj1,&obj2)) SWIG_fail;
77844 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, 0 );
77845 if (!SWIG_IsOK(res1)) {
77846 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "index_cpu_to_gpu_multiple" "', argument " "1"" of type '" "std::vector< faiss::gpu::GpuResources * > &""'");
77849 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "index_cpu_to_gpu_multiple" "', argument " "1"" of type '" "std::vector< faiss::gpu::GpuResources * > &""'");
77851 arg1 =
reinterpret_cast< std::vector< faiss::gpu::GpuResources * > *
>(argp1);
77852 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_int_t, 0 );
77853 if (!SWIG_IsOK(res2)) {
77854 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "index_cpu_to_gpu_multiple" "', argument " "2"" of type '" "std::vector< int > &""'");
77857 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "index_cpu_to_gpu_multiple" "', argument " "2"" of type '" "std::vector< int > &""'");
77859 arg2 =
reinterpret_cast< std::vector< int > *
>(argp2);
77860 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_faiss__Index, 0 | 0 );
77861 if (!SWIG_IsOK(res3)) {
77862 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "index_cpu_to_gpu_multiple" "', argument " "3"" of type '" "faiss::Index const *""'");
77866 Py_BEGIN_ALLOW_THREADS
77870 PyEval_RestoreThread(_save);
77871 PyErr_SetString(PyExc_RuntimeError, e.
what());
77874 Py_END_ALLOW_THREADS
77878 if (dynamic_cast<faiss::IndexIDMap *> (result)) {
77879 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIDMap,SWIG_POINTER_OWN);
77883 if (dynamic_cast<faiss::IndexShards *> (result)) {
77884 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexShards,SWIG_POINTER_OWN);
77888 if (dynamic_cast<faiss::IndexIVFPQR *> (result)) {
77889 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQR,SWIG_POINTER_OWN);
77893 if (dynamic_cast<faiss::IndexIVFPQ *> (result)) {
77894 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFPQ,SWIG_POINTER_OWN);
77898 if (dynamic_cast<faiss::IndexIVFScalarQuantizer *> (result)) {
77899 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFScalarQuantizer,SWIG_POINTER_OWN);
77903 if (dynamic_cast<faiss::IndexIVFFlatDedup *> (result)) {
77904 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlatDedup,SWIG_POINTER_OWN);
77908 if (dynamic_cast<faiss::IndexIVFFlat *> (result)) {
77909 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVFFlat,SWIG_POINTER_OWN);
77913 if (dynamic_cast<faiss::IndexIVF *> (result)) {
77914 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexIVF,SWIG_POINTER_OWN);
77918 if (dynamic_cast<faiss::IndexFlat *> (result)) {
77919 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexFlat,SWIG_POINTER_OWN);
77923 if (dynamic_cast<faiss::IndexPQ *> (result)) {
77924 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPQ,SWIG_POINTER_OWN);
77928 if (dynamic_cast<faiss::IndexScalarQuantizer *> (result)) {
77929 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexScalarQuantizer,SWIG_POINTER_OWN);
77933 if (dynamic_cast<faiss::IndexLSH *> (result)) {
77934 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexLSH,SWIG_POINTER_OWN);
77938 if (dynamic_cast<faiss::IndexPreTransform *> (result)) {
77939 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexPreTransform,SWIG_POINTER_OWN);
77943 if (dynamic_cast<faiss::MultiIndexQuantizer *> (result)) {
77944 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__MultiIndexQuantizer,SWIG_POINTER_OWN);
77948 if (dynamic_cast<faiss::IndexHNSWFlat *> (result)) {
77949 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWFlat,SWIG_POINTER_OWN);
77953 if (dynamic_cast<faiss::IndexHNSWPQ *> (result)) {
77954 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWPQ,SWIG_POINTER_OWN);
77958 if (dynamic_cast<faiss::IndexHNSWSQ *> (result)) {
77959 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSWSQ,SWIG_POINTER_OWN);
77963 if (dynamic_cast<faiss::IndexHNSW2Level *> (result)) {
77964 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__IndexHNSW2Level,SWIG_POINTER_OWN);
77968 if (dynamic_cast<faiss::Index2Layer *> (result)) {
77969 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index2Layer,SWIG_POINTER_OWN);
77974 if (dynamic_cast<faiss::gpu::IndexProxy *> (result)) {
77975 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__IndexProxy,SWIG_POINTER_OWN);
77979 if (dynamic_cast<faiss::gpu::GpuIndexIVFPQ *> (result)) {
77980 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFPQ,SWIG_POINTER_OWN);
77984 if (dynamic_cast<faiss::gpu::GpuIndexIVFFlat *> (result)) {
77985 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexIVFFlat,SWIG_POINTER_OWN);
77989 if (dynamic_cast<faiss::gpu::GpuIndexFlat *> (result)) {
77990 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__gpu__GpuIndexFlat,SWIG_POINTER_OWN);
77996 if (dynamic_cast<faiss::Index *> (result)) {
77997 resultobj = SWIG_NewPointerObj(result,SWIGTYPE_p_faiss__Index,SWIG_POINTER_OWN);
78000 if (result == NULL)
78002 resultobj = SWIG_Py_Void();
78018 SWIGINTERN PyObject *_wrap_index_cpu_to_gpu_multiple(PyObject *
self, PyObject *args) {
78020 PyObject *argv[5] = {
78025 if (!PyTuple_Check(args)) SWIG_fail;
78026 argc = args ? PyObject_Length(args) : 0;
78027 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
78028 argv[ii] = PyTuple_GET_ITEM(args,ii);
78033 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, 0);
78034 _v = SWIG_CheckState(res);
78037 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__vectorT_int_t, 0);
78038 _v = SWIG_CheckState(res);
78041 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_faiss__Index, 0);
78042 _v = SWIG_CheckState(res);
78044 return _wrap_index_cpu_to_gpu_multiple__SWIG_1(
self, args);
78052 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__vectorT_faiss__gpu__GpuResources_p_t, 0);
78053 _v = SWIG_CheckState(res);
78056 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__vectorT_int_t, 0);
78057 _v = SWIG_CheckState(res);
78060 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_faiss__Index, 0);
78061 _v = SWIG_CheckState(res);
78064 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_faiss__gpu__GpuMultipleClonerOptions, 0);
78065 _v = SWIG_CheckState(res);
78067 return _wrap_index_cpu_to_gpu_multiple__SWIG_0(
self, args);
78075 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'index_cpu_to_gpu_multiple'.\n"
78076 " Possible C/C++ prototypes are:\n"
78077 " faiss::gpu::index_cpu_to_gpu_multiple(std::vector< faiss::gpu::GpuResources * > &,std::vector< int > &,faiss::Index const *,faiss::gpu::GpuMultipleClonerOptions const *)\n"
78078 " faiss::gpu::index_cpu_to_gpu_multiple(std::vector< faiss::gpu::GpuResources * > &,std::vector< int > &,faiss::Index const *)\n");
78083 SWIGINTERN PyObject *_wrap_GpuParameterSpace_initialize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78084 PyObject *resultobj = 0;
78091 PyObject * obj0 = 0 ;
78092 PyObject * obj1 = 0 ;
78094 if (!PyArg_ParseTuple(args,(
char *)
"OO:GpuParameterSpace_initialize",&obj0,&obj1)) SWIG_fail;
78095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuParameterSpace, 0 | 0 );
78096 if (!SWIG_IsOK(res1)) {
78097 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuParameterSpace_initialize" "', argument " "1"" of type '" "faiss::gpu::GpuParameterSpace *""'");
78100 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
78101 if (!SWIG_IsOK(res2)) {
78102 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuParameterSpace_initialize" "', argument " "2"" of type '" "faiss::Index const *""'");
78106 Py_BEGIN_ALLOW_THREADS
78110 PyEval_RestoreThread(_save);
78111 PyErr_SetString(PyExc_RuntimeError, e.
what());
78114 Py_END_ALLOW_THREADS
78116 resultobj = SWIG_Py_Void();
78123 SWIGINTERN PyObject *_wrap_GpuParameterSpace_set_index_parameter(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78124 PyObject *resultobj = 0;
78127 std::string *arg3 = 0 ;
78133 int res3 = SWIG_OLDOBJ ;
78136 PyObject * obj0 = 0 ;
78137 PyObject * obj1 = 0 ;
78138 PyObject * obj2 = 0 ;
78139 PyObject * obj3 = 0 ;
78141 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:GpuParameterSpace_set_index_parameter",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
78142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuParameterSpace, 0 | 0 );
78143 if (!SWIG_IsOK(res1)) {
78144 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "GpuParameterSpace_set_index_parameter" "', argument " "1"" of type '" "faiss::gpu::GpuParameterSpace const *""'");
78147 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__Index, 0 | 0 );
78148 if (!SWIG_IsOK(res2)) {
78149 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "GpuParameterSpace_set_index_parameter" "', argument " "2"" of type '" "faiss::Index *""'");
78153 std::string *ptr = (std::string *)0;
78154 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
78155 if (!SWIG_IsOK(res3)) {
78156 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "GpuParameterSpace_set_index_parameter" "', argument " "3"" of type '" "std::string const &""'");
78159 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "GpuParameterSpace_set_index_parameter" "', argument " "3"" of type '" "std::string const &""'");
78163 ecode4 = SWIG_AsVal_double(obj3, &val4);
78164 if (!SWIG_IsOK(ecode4)) {
78165 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "GpuParameterSpace_set_index_parameter" "', argument " "4"" of type '" "double""'");
78167 arg4 =
static_cast< double >(val4);
78169 Py_BEGIN_ALLOW_THREADS
78173 PyEval_RestoreThread(_save);
78174 PyErr_SetString(PyExc_RuntimeError, e.
what());
78177 Py_END_ALLOW_THREADS
78179 resultobj = SWIG_Py_Void();
78180 if (SWIG_IsNewObj(res3))
delete arg3;
78183 if (SWIG_IsNewObj(res3))
delete arg3;
78188 SWIGINTERN PyObject *_wrap_new_GpuParameterSpace(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78189 PyObject *resultobj = 0;
78192 if (!PyArg_ParseTuple(args,(
char *)
":new_GpuParameterSpace")) SWIG_fail;
78194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__gpu__GpuParameterSpace, SWIG_POINTER_NEW | 0 );
78201 SWIGINTERN PyObject *_wrap_delete_GpuParameterSpace(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78202 PyObject *resultobj = 0;
78206 PyObject * obj0 = 0 ;
78208 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_GpuParameterSpace",&obj0)) SWIG_fail;
78209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__gpu__GpuParameterSpace, SWIG_POINTER_DISOWN | 0 );
78210 if (!SWIG_IsOK(res1)) {
78211 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_GpuParameterSpace" "', argument " "1"" of type '" "faiss::gpu::GpuParameterSpace *""'");
78215 resultobj = SWIG_Py_Void();
78222 SWIGINTERN PyObject *GpuParameterSpace_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78224 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
78225 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__gpu__GpuParameterSpace, SWIG_NewClientData(obj));
78226 return SWIG_Py_Void();
78229 SWIGINTERN PyObject *_wrap_swig_ptr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78230 PyObject *resultobj = 0;
78231 PyObject *arg1 = (PyObject *) 0 ;
78232 PyObject * obj0 = 0 ;
78233 PyObject *result = 0 ;
78235 if (!PyArg_ParseTuple(args,(
char *)
"O:swig_ptr",&obj0)) SWIG_fail;
78237 result = (PyObject *)swig_ptr(arg1);
78238 resultobj = result;
78245 SWIGINTERN PyObject *_wrap_rev_swig_ptr__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78246 PyObject *resultobj = 0;
78247 float *arg1 = (
float *) 0 ;
78253 PyObject * obj0 = 0 ;
78254 PyObject * obj1 = 0 ;
78255 PyObject *result = 0 ;
78257 if (!PyArg_ParseTuple(args,(
char *)
"OO:rev_swig_ptr",&obj0,&obj1)) SWIG_fail;
78258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
78259 if (!SWIG_IsOK(res1)) {
78260 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "rev_swig_ptr" "', argument " "1"" of type '" "float *""'");
78262 arg1 =
reinterpret_cast< float *
>(argp1);
78263 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
78264 if (!SWIG_IsOK(ecode2)) {
78265 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "rev_swig_ptr" "', argument " "2"" of type '" "size_t""'");
78267 arg2 =
static_cast< size_t >(val2);
78268 result = (PyObject *)rev_swig_ptr(arg1,arg2);
78269 resultobj = result;
78276 SWIGINTERN PyObject *_wrap_rev_swig_ptr__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78277 PyObject *resultobj = 0;
78278 int *arg1 = (
int *) 0 ;
78284 PyObject * obj0 = 0 ;
78285 PyObject * obj1 = 0 ;
78286 PyObject *result = 0 ;
78288 if (!PyArg_ParseTuple(args,(
char *)
"OO:rev_swig_ptr",&obj0,&obj1)) SWIG_fail;
78289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 | 0 );
78290 if (!SWIG_IsOK(res1)) {
78291 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "rev_swig_ptr" "', argument " "1"" of type '" "int *""'");
78293 arg1 =
reinterpret_cast< int *
>(argp1);
78294 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
78295 if (!SWIG_IsOK(ecode2)) {
78296 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "rev_swig_ptr" "', argument " "2"" of type '" "size_t""'");
78298 arg2 =
static_cast< size_t >(val2);
78299 result = (PyObject *)rev_swig_ptr(arg1,arg2);
78300 resultobj = result;
78307 SWIGINTERN PyObject *_wrap_rev_swig_ptr__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78308 PyObject *resultobj = 0;
78309 unsigned char *arg1 = (
unsigned char *) 0 ;
78315 PyObject * obj0 = 0 ;
78316 PyObject * obj1 = 0 ;
78317 PyObject *result = 0 ;
78319 if (!PyArg_ParseTuple(args,(
char *)
"OO:rev_swig_ptr",&obj0,&obj1)) SWIG_fail;
78320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
78321 if (!SWIG_IsOK(res1)) {
78322 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "rev_swig_ptr" "', argument " "1"" of type '" "unsigned char *""'");
78324 arg1 =
reinterpret_cast< unsigned char *
>(argp1);
78325 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
78326 if (!SWIG_IsOK(ecode2)) {
78327 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "rev_swig_ptr" "', argument " "2"" of type '" "size_t""'");
78329 arg2 =
static_cast< size_t >(val2);
78330 result = (PyObject *)rev_swig_ptr(arg1,arg2);
78331 resultobj = result;
78338 SWIGINTERN PyObject *_wrap_rev_swig_ptr__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78339 PyObject *resultobj = 0;
78340 unsigned long *arg1 = (
unsigned long *) 0 ;
78346 PyObject * obj0 = 0 ;
78347 PyObject * obj1 = 0 ;
78348 PyObject *result = 0 ;
78350 if (!PyArg_ParseTuple(args,(
char *)
"OO:rev_swig_ptr",&obj0,&obj1)) SWIG_fail;
78351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_long, 0 | 0 );
78352 if (!SWIG_IsOK(res1)) {
78353 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "rev_swig_ptr" "', argument " "1"" of type '" "unsigned long *""'");
78355 arg1 =
reinterpret_cast< unsigned long *
>(argp1);
78356 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
78357 if (!SWIG_IsOK(ecode2)) {
78358 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "rev_swig_ptr" "', argument " "2"" of type '" "size_t""'");
78360 arg2 =
static_cast< size_t >(val2);
78361 result = (PyObject *)rev_swig_ptr(arg1,arg2);
78362 resultobj = result;
78369 SWIGINTERN PyObject *_wrap_rev_swig_ptr__SWIG_4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78370 PyObject *resultobj = 0;
78371 long *arg1 = (
long *) 0 ;
78377 PyObject * obj0 = 0 ;
78378 PyObject * obj1 = 0 ;
78379 PyObject *result = 0 ;
78381 if (!PyArg_ParseTuple(args,(
char *)
"OO:rev_swig_ptr",&obj0,&obj1)) SWIG_fail;
78382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_long, 0 | 0 );
78383 if (!SWIG_IsOK(res1)) {
78384 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "rev_swig_ptr" "', argument " "1"" of type '" "long *""'");
78386 arg1 =
reinterpret_cast< long *
>(argp1);
78387 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
78388 if (!SWIG_IsOK(ecode2)) {
78389 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "rev_swig_ptr" "', argument " "2"" of type '" "size_t""'");
78391 arg2 =
static_cast< size_t >(val2);
78392 result = (PyObject *)rev_swig_ptr(arg1,arg2);
78393 resultobj = result;
78400 SWIGINTERN PyObject *_wrap_rev_swig_ptr(PyObject *
self, PyObject *args) {
78402 PyObject *argv[3] = {
78407 if (!PyTuple_Check(args)) SWIG_fail;
78408 argc = args ? PyObject_Length(args) : 0;
78409 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
78410 argv[ii] = PyTuple_GET_ITEM(args,ii);
78415 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_float, 0);
78416 _v = SWIG_CheckState(res);
78419 int res = SWIG_AsVal_size_t(argv[1], NULL);
78420 _v = SWIG_CheckState(res);
78423 return _wrap_rev_swig_ptr__SWIG_0(
self, args);
78430 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_int, 0);
78431 _v = SWIG_CheckState(res);
78434 int res = SWIG_AsVal_size_t(argv[1], NULL);
78435 _v = SWIG_CheckState(res);
78438 return _wrap_rev_swig_ptr__SWIG_1(
self, args);
78445 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
78446 _v = SWIG_CheckState(res);
78449 int res = SWIG_AsVal_size_t(argv[1], NULL);
78450 _v = SWIG_CheckState(res);
78453 return _wrap_rev_swig_ptr__SWIG_2(
self, args);
78460 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_long, 0);
78461 _v = SWIG_CheckState(res);
78464 int res = SWIG_AsVal_size_t(argv[1], NULL);
78465 _v = SWIG_CheckState(res);
78468 return _wrap_rev_swig_ptr__SWIG_3(
self, args);
78475 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_long, 0);
78476 _v = SWIG_CheckState(res);
78479 int res = SWIG_AsVal_size_t(argv[1], NULL);
78480 _v = SWIG_CheckState(res);
78483 return _wrap_rev_swig_ptr__SWIG_4(
self, args);
78489 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'rev_swig_ptr'.\n"
78490 " Possible C/C++ prototypes are:\n"
78491 " rev_swig_ptr(float *,size_t)\n"
78492 " rev_swig_ptr(int *,size_t)\n"
78493 " rev_swig_ptr(unsigned char *,size_t)\n"
78494 " rev_swig_ptr(unsigned long *,size_t)\n"
78495 " rev_swig_ptr(long *,size_t)\n");
78500 SWIGINTERN PyObject *_wrap_float_minheap_array_t_nh_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78501 PyObject *resultobj = 0;
78508 PyObject * obj0 = 0 ;
78509 PyObject * obj1 = 0 ;
78511 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_minheap_array_t_nh_set",&obj0,&obj1)) SWIG_fail;
78512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78513 if (!SWIG_IsOK(res1)) {
78514 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_nh_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78517 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
78518 if (!SWIG_IsOK(ecode2)) {
78519 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_nh_set" "', argument " "2"" of type '" "size_t""'");
78521 arg2 =
static_cast< size_t >(val2);
78522 if (arg1) (arg1)->nh = arg2;
78523 resultobj = SWIG_Py_Void();
78530 SWIGINTERN PyObject *_wrap_float_minheap_array_t_nh_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78531 PyObject *resultobj = 0;
78535 PyObject * obj0 = 0 ;
78538 if (!PyArg_ParseTuple(args,(
char *)
"O:float_minheap_array_t_nh_get",&obj0)) SWIG_fail;
78539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78540 if (!SWIG_IsOK(res1)) {
78541 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_nh_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78544 result = (size_t) ((arg1)->nh);
78545 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
78552 SWIGINTERN PyObject *_wrap_float_minheap_array_t_k_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78553 PyObject *resultobj = 0;
78560 PyObject * obj0 = 0 ;
78561 PyObject * obj1 = 0 ;
78563 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_minheap_array_t_k_set",&obj0,&obj1)) SWIG_fail;
78564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78565 if (!SWIG_IsOK(res1)) {
78566 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_k_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78569 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
78570 if (!SWIG_IsOK(ecode2)) {
78571 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_k_set" "', argument " "2"" of type '" "size_t""'");
78573 arg2 =
static_cast< size_t >(val2);
78574 if (arg1) (arg1)->k = arg2;
78575 resultobj = SWIG_Py_Void();
78582 SWIGINTERN PyObject *_wrap_float_minheap_array_t_k_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78583 PyObject *resultobj = 0;
78587 PyObject * obj0 = 0 ;
78590 if (!PyArg_ParseTuple(args,(
char *)
"O:float_minheap_array_t_k_get",&obj0)) SWIG_fail;
78591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78592 if (!SWIG_IsOK(res1)) {
78593 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_k_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78596 result = (size_t) ((arg1)->k);
78597 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
78604 SWIGINTERN PyObject *_wrap_float_minheap_array_t_ids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78605 PyObject *resultobj = 0;
78612 PyObject * obj0 = 0 ;
78613 PyObject * obj1 = 0 ;
78615 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_minheap_array_t_ids_set",&obj0,&obj1)) SWIG_fail;
78616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78617 if (!SWIG_IsOK(res1)) {
78618 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_ids_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78621 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, SWIG_POINTER_DISOWN | 0 );
78622 if (!SWIG_IsOK(res2)) {
78623 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 *""'");
78626 if (arg1) (arg1)->ids = arg2;
78627 resultobj = SWIG_Py_Void();
78634 SWIGINTERN PyObject *_wrap_float_minheap_array_t_ids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78635 PyObject *resultobj = 0;
78639 PyObject * obj0 = 0 ;
78642 if (!PyArg_ParseTuple(args,(
char *)
"O:float_minheap_array_t_ids_get",&obj0)) SWIG_fail;
78643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78644 if (!SWIG_IsOK(res1)) {
78645 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_ids_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
78656 SWIGINTERN PyObject *_wrap_float_minheap_array_t_val_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78657 PyObject *resultobj = 0;
78664 PyObject * obj0 = 0 ;
78665 PyObject * obj1 = 0 ;
78667 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_minheap_array_t_val_set",&obj0,&obj1)) SWIG_fail;
78668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78669 if (!SWIG_IsOK(res1)) {
78670 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_val_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78673 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
78674 if (!SWIG_IsOK(res2)) {
78675 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 *""'");
78678 if (arg1) (arg1)->val = arg2;
78679 resultobj = SWIG_Py_Void();
78686 SWIGINTERN PyObject *_wrap_float_minheap_array_t_val_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78687 PyObject *resultobj = 0;
78691 PyObject * obj0 = 0 ;
78694 if (!PyArg_ParseTuple(args,(
char *)
"O:float_minheap_array_t_val_get",&obj0)) SWIG_fail;
78695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78696 if (!SWIG_IsOK(res1)) {
78697 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_val_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
78708 SWIGINTERN PyObject *_wrap_float_minheap_array_t_get_val(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78709 PyObject *resultobj = 0;
78716 PyObject * obj0 = 0 ;
78717 PyObject * obj1 = 0 ;
78720 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_minheap_array_t_get_val",&obj0,&obj1)) SWIG_fail;
78721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78722 if (!SWIG_IsOK(res1)) {
78723 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_get_val" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78726 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
78727 if (!SWIG_IsOK(ecode2)) {
78728 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_get_val" "', argument " "2"" of type '" "size_t""'");
78730 arg2 =
static_cast< size_t >(val2);
78732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
78739 SWIGINTERN PyObject *_wrap_float_minheap_array_t_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78740 PyObject *resultobj = 0;
78747 PyObject * obj0 = 0 ;
78748 PyObject * obj1 = 0 ;
78751 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_minheap_array_t_get_ids",&obj0,&obj1)) SWIG_fail;
78752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78753 if (!SWIG_IsOK(res1)) {
78754 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_get_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78757 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
78758 if (!SWIG_IsOK(ecode2)) {
78759 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_get_ids" "', argument " "2"" of type '" "size_t""'");
78761 arg2 =
static_cast< size_t >(val2);
78763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
78770 SWIGINTERN PyObject *_wrap_float_minheap_array_t_heapify(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78771 PyObject *resultobj = 0;
78775 PyObject * obj0 = 0 ;
78777 if (!PyArg_ParseTuple(args,(
char *)
"O:float_minheap_array_t_heapify",&obj0)) SWIG_fail;
78778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78779 if (!SWIG_IsOK(res1)) {
78780 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_heapify" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78784 resultobj = SWIG_Py_Void();
78791 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78792 PyObject *resultobj = 0;
78811 PyObject * obj0 = 0 ;
78812 PyObject * obj1 = 0 ;
78813 PyObject * obj2 = 0 ;
78814 PyObject * obj3 = 0 ;
78815 PyObject * obj4 = 0 ;
78816 PyObject * obj5 = 0 ;
78818 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:float_minheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
78819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78820 if (!SWIG_IsOK(res1)) {
78821 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78824 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
78825 if (!SWIG_IsOK(ecode2)) {
78826 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
78828 arg2 =
static_cast< size_t >(val2);
78829 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
78830 if (!SWIG_IsOK(res3)) {
78831 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 *""'");
78834 ecode4 = SWIG_AsVal_long(obj3, &val4);
78835 if (!SWIG_IsOK(ecode4)) {
78836 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "float_minheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::TI""'");
78839 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
78840 if (!SWIG_IsOK(ecode5)) {
78841 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_minheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
78843 arg5 =
static_cast< size_t >(val5);
78844 ecode6 = SWIG_AsVal_long(obj5, &val6);
78845 if (!SWIG_IsOK(ecode6)) {
78846 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "float_minheap_array_t_addn" "', argument " "6"" of type '" "long""'");
78848 arg6 =
static_cast< long >(val6);
78850 resultobj = SWIG_Py_Void();
78857 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78858 PyObject *resultobj = 0;
78874 PyObject * obj0 = 0 ;
78875 PyObject * obj1 = 0 ;
78876 PyObject * obj2 = 0 ;
78877 PyObject * obj3 = 0 ;
78878 PyObject * obj4 = 0 ;
78880 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:float_minheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
78881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78882 if (!SWIG_IsOK(res1)) {
78883 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78886 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
78887 if (!SWIG_IsOK(ecode2)) {
78888 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
78890 arg2 =
static_cast< size_t >(val2);
78891 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
78892 if (!SWIG_IsOK(res3)) {
78893 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 *""'");
78896 ecode4 = SWIG_AsVal_long(obj3, &val4);
78897 if (!SWIG_IsOK(ecode4)) {
78898 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "float_minheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::TI""'");
78901 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
78902 if (!SWIG_IsOK(ecode5)) {
78903 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_minheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
78905 arg5 =
static_cast< size_t >(val5);
78907 resultobj = SWIG_Py_Void();
78914 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
78915 PyObject *resultobj = 0;
78928 PyObject * obj0 = 0 ;
78929 PyObject * obj1 = 0 ;
78930 PyObject * obj2 = 0 ;
78931 PyObject * obj3 = 0 ;
78933 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:float_minheap_array_t_addn",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
78934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78935 if (!SWIG_IsOK(res1)) {
78936 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78939 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
78940 if (!SWIG_IsOK(ecode2)) {
78941 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
78943 arg2 =
static_cast< size_t >(val2);
78944 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
78945 if (!SWIG_IsOK(res3)) {
78946 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 *""'");
78949 ecode4 = SWIG_AsVal_long(obj3, &val4);
78950 if (!SWIG_IsOK(ecode4)) {
78951 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "float_minheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< float,long > >::TI""'");
78955 resultobj = SWIG_Py_Void();
78962 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
78963 PyObject *resultobj = 0;
78973 PyObject * obj0 = 0 ;
78974 PyObject * obj1 = 0 ;
78975 PyObject * obj2 = 0 ;
78977 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_minheap_array_t_addn",&obj0,&obj1,&obj2)) SWIG_fail;
78978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
78979 if (!SWIG_IsOK(res1)) {
78980 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
78983 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
78984 if (!SWIG_IsOK(ecode2)) {
78985 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
78987 arg2 =
static_cast< size_t >(val2);
78988 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
78989 if (!SWIG_IsOK(res3)) {
78990 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 *""'");
78994 resultobj = SWIG_Py_Void();
79001 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn(PyObject *self, PyObject *args) {
79003 PyObject *argv[7] = {
79008 if (!PyTuple_Check(args)) SWIG_fail;
79009 argc = args ? PyObject_Length(args) : 0;
79010 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
79011 argv[ii] = PyTuple_GET_ITEM(args,ii);
79016 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
79017 _v = SWIG_CheckState(res);
79020 int res = SWIG_AsVal_size_t(argv[1], NULL);
79021 _v = SWIG_CheckState(res);
79025 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
79026 _v = SWIG_CheckState(res);
79028 return _wrap_float_minheap_array_t_addn__SWIG_3(
self, args);
79036 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
79037 _v = SWIG_CheckState(res);
79040 int res = SWIG_AsVal_size_t(argv[1], NULL);
79041 _v = SWIG_CheckState(res);
79045 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
79046 _v = SWIG_CheckState(res);
79049 int res = SWIG_AsVal_long(argv[3], NULL);
79050 _v = SWIG_CheckState(res);
79053 return _wrap_float_minheap_array_t_addn__SWIG_2(
self, args);
79062 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
79063 _v = SWIG_CheckState(res);
79066 int res = SWIG_AsVal_size_t(argv[1], NULL);
79067 _v = SWIG_CheckState(res);
79071 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
79072 _v = SWIG_CheckState(res);
79075 int res = SWIG_AsVal_long(argv[3], NULL);
79076 _v = SWIG_CheckState(res);
79080 int res = SWIG_AsVal_size_t(argv[4], NULL);
79081 _v = SWIG_CheckState(res);
79084 return _wrap_float_minheap_array_t_addn__SWIG_1(
self, args);
79094 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
79095 _v = SWIG_CheckState(res);
79098 int res = SWIG_AsVal_size_t(argv[1], NULL);
79099 _v = SWIG_CheckState(res);
79103 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
79104 _v = SWIG_CheckState(res);
79107 int res = SWIG_AsVal_long(argv[3], NULL);
79108 _v = SWIG_CheckState(res);
79112 int res = SWIG_AsVal_size_t(argv[4], NULL);
79113 _v = SWIG_CheckState(res);
79117 int res = SWIG_AsVal_long(argv[5], NULL);
79118 _v = SWIG_CheckState(res);
79121 return _wrap_float_minheap_array_t_addn__SWIG_0(
self, args);
79131 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'float_minheap_array_t_addn'.\n"
79132 " Possible C/C++ prototypes are:\n"
79133 " 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"
79134 " 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"
79135 " 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"
79136 " faiss::HeapArray< faiss::CMin< float,long > >::addn(size_t,faiss::HeapArray< faiss::CMin< float,long > >::T const *)\n");
79141 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn_with_ids__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79142 PyObject *resultobj = 0;
79164 PyObject * obj0 = 0 ;
79165 PyObject * obj1 = 0 ;
79166 PyObject * obj2 = 0 ;
79167 PyObject * obj3 = 0 ;
79168 PyObject * obj4 = 0 ;
79169 PyObject * obj5 = 0 ;
79170 PyObject * obj6 = 0 ;
79172 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:float_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
79173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
79174 if (!SWIG_IsOK(res1)) {
79175 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 > > *""'");
79178 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
79179 if (!SWIG_IsOK(ecode2)) {
79180 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
79182 arg2 =
static_cast< size_t >(val2);
79183 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
79184 if (!SWIG_IsOK(res3)) {
79185 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 *""'");
79188 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
79189 if (!SWIG_IsOK(res4)) {
79190 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 *""'");
79193 ecode5 = SWIG_AsVal_long(obj4, &val5);
79194 if (!SWIG_IsOK(ecode5)) {
79195 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
79197 arg5 =
static_cast< long >(val5);
79198 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
79199 if (!SWIG_IsOK(ecode6)) {
79200 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
79202 arg6 =
static_cast< size_t >(val6);
79203 ecode7 = SWIG_AsVal_long(obj6, &val7);
79204 if (!SWIG_IsOK(ecode7)) {
79205 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "7"" of type '" "long""'");
79207 arg7 =
static_cast< long >(val7);
79209 resultobj = SWIG_Py_Void();
79216 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn_with_ids__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79217 PyObject *resultobj = 0;
79236 PyObject * obj0 = 0 ;
79237 PyObject * obj1 = 0 ;
79238 PyObject * obj2 = 0 ;
79239 PyObject * obj3 = 0 ;
79240 PyObject * obj4 = 0 ;
79241 PyObject * obj5 = 0 ;
79243 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:float_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
79244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
79245 if (!SWIG_IsOK(res1)) {
79246 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 > > *""'");
79249 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
79250 if (!SWIG_IsOK(ecode2)) {
79251 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
79253 arg2 =
static_cast< size_t >(val2);
79254 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
79255 if (!SWIG_IsOK(res3)) {
79256 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 *""'");
79259 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
79260 if (!SWIG_IsOK(res4)) {
79261 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 *""'");
79264 ecode5 = SWIG_AsVal_long(obj4, &val5);
79265 if (!SWIG_IsOK(ecode5)) {
79266 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
79268 arg5 =
static_cast< long >(val5);
79269 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
79270 if (!SWIG_IsOK(ecode6)) {
79271 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
79273 arg6 =
static_cast< size_t >(val6);
79275 resultobj = SWIG_Py_Void();
79282 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn_with_ids__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79283 PyObject *resultobj = 0;
79299 PyObject * obj0 = 0 ;
79300 PyObject * obj1 = 0 ;
79301 PyObject * obj2 = 0 ;
79302 PyObject * obj3 = 0 ;
79303 PyObject * obj4 = 0 ;
79305 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:float_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
79306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
79307 if (!SWIG_IsOK(res1)) {
79308 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 > > *""'");
79311 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
79312 if (!SWIG_IsOK(ecode2)) {
79313 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
79315 arg2 =
static_cast< size_t >(val2);
79316 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
79317 if (!SWIG_IsOK(res3)) {
79318 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 *""'");
79321 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
79322 if (!SWIG_IsOK(res4)) {
79323 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 *""'");
79326 ecode5 = SWIG_AsVal_long(obj4, &val5);
79327 if (!SWIG_IsOK(ecode5)) {
79328 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
79330 arg5 =
static_cast< long >(val5);
79332 resultobj = SWIG_Py_Void();
79339 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn_with_ids__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79340 PyObject *resultobj = 0;
79353 PyObject * obj0 = 0 ;
79354 PyObject * obj1 = 0 ;
79355 PyObject * obj2 = 0 ;
79356 PyObject * obj3 = 0 ;
79358 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:float_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
79359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
79360 if (!SWIG_IsOK(res1)) {
79361 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 > > *""'");
79364 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
79365 if (!SWIG_IsOK(ecode2)) {
79366 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
79368 arg2 =
static_cast< size_t >(val2);
79369 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
79370 if (!SWIG_IsOK(res3)) {
79371 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 *""'");
79374 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
79375 if (!SWIG_IsOK(res4)) {
79376 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 *""'");
79380 resultobj = SWIG_Py_Void();
79387 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn_with_ids__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
79388 PyObject *resultobj = 0;
79398 PyObject * obj0 = 0 ;
79399 PyObject * obj1 = 0 ;
79400 PyObject * obj2 = 0 ;
79402 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2)) SWIG_fail;
79403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
79404 if (!SWIG_IsOK(res1)) {
79405 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 > > *""'");
79408 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
79409 if (!SWIG_IsOK(ecode2)) {
79410 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
79412 arg2 =
static_cast< size_t >(val2);
79413 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
79414 if (!SWIG_IsOK(res3)) {
79415 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 *""'");
79419 resultobj = SWIG_Py_Void();
79426 SWIGINTERN PyObject *_wrap_float_minheap_array_t_addn_with_ids(PyObject *self, PyObject *args) {
79428 PyObject *argv[8] = {
79433 if (!PyTuple_Check(args)) SWIG_fail;
79434 argc = args ? PyObject_Length(args) : 0;
79435 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
79436 argv[ii] = PyTuple_GET_ITEM(args,ii);
79441 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
79442 _v = SWIG_CheckState(res);
79445 int res = SWIG_AsVal_size_t(argv[1], NULL);
79446 _v = SWIG_CheckState(res);
79450 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
79451 _v = SWIG_CheckState(res);
79453 return _wrap_float_minheap_array_t_addn_with_ids__SWIG_4(
self, args);
79461 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
79462 _v = SWIG_CheckState(res);
79465 int res = SWIG_AsVal_size_t(argv[1], NULL);
79466 _v = SWIG_CheckState(res);
79470 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
79471 _v = SWIG_CheckState(res);
79474 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
79475 _v = SWIG_CheckState(res);
79477 return _wrap_float_minheap_array_t_addn_with_ids__SWIG_3(
self, args);
79486 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
79487 _v = SWIG_CheckState(res);
79490 int res = SWIG_AsVal_size_t(argv[1], NULL);
79491 _v = SWIG_CheckState(res);
79495 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
79496 _v = SWIG_CheckState(res);
79499 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
79500 _v = SWIG_CheckState(res);
79503 int res = SWIG_AsVal_long(argv[4], NULL);
79504 _v = SWIG_CheckState(res);
79507 return _wrap_float_minheap_array_t_addn_with_ids__SWIG_2(
self, args);
79517 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
79518 _v = SWIG_CheckState(res);
79521 int res = SWIG_AsVal_size_t(argv[1], NULL);
79522 _v = SWIG_CheckState(res);
79526 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
79527 _v = SWIG_CheckState(res);
79530 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
79531 _v = SWIG_CheckState(res);
79534 int res = SWIG_AsVal_long(argv[4], NULL);
79535 _v = SWIG_CheckState(res);
79539 int res = SWIG_AsVal_size_t(argv[5], NULL);
79540 _v = SWIG_CheckState(res);
79543 return _wrap_float_minheap_array_t_addn_with_ids__SWIG_1(
self, args);
79554 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0);
79555 _v = SWIG_CheckState(res);
79558 int res = SWIG_AsVal_size_t(argv[1], NULL);
79559 _v = SWIG_CheckState(res);
79563 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
79564 _v = SWIG_CheckState(res);
79567 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
79568 _v = SWIG_CheckState(res);
79571 int res = SWIG_AsVal_long(argv[4], NULL);
79572 _v = SWIG_CheckState(res);
79576 int res = SWIG_AsVal_size_t(argv[5], NULL);
79577 _v = SWIG_CheckState(res);
79581 int res = SWIG_AsVal_long(argv[6], NULL);
79582 _v = SWIG_CheckState(res);
79585 return _wrap_float_minheap_array_t_addn_with_ids__SWIG_0(
self, args);
79596 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'float_minheap_array_t_addn_with_ids'.\n"
79597 " Possible C/C++ prototypes are:\n"
79598 " 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"
79599 " 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"
79600 " 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"
79601 " 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"
79602 " faiss::HeapArray< faiss::CMin< float,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMin< float,long > >::T const *)\n");
79607 SWIGINTERN PyObject *_wrap_float_minheap_array_t_reorder(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79608 PyObject *resultobj = 0;
79612 PyObject * obj0 = 0 ;
79614 if (!PyArg_ParseTuple(args,(
char *)
"O:float_minheap_array_t_reorder",&obj0)) SWIG_fail;
79615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
79616 if (!SWIG_IsOK(res1)) {
79617 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_minheap_array_t_reorder" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
79621 resultobj = SWIG_Py_Void();
79628 SWIGINTERN PyObject *_wrap_float_minheap_array_t_per_line_extrema(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79629 PyObject *resultobj = 0;
79639 PyObject * obj0 = 0 ;
79640 PyObject * obj1 = 0 ;
79641 PyObject * obj2 = 0 ;
79643 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_minheap_array_t_per_line_extrema",&obj0,&obj1,&obj2)) SWIG_fail;
79644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, 0 | 0 );
79645 if (!SWIG_IsOK(res1)) {
79646 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 *""'");
79649 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
79650 if (!SWIG_IsOK(res2)) {
79651 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 *""'");
79654 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
79655 if (!SWIG_IsOK(res3)) {
79656 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 *""'");
79660 resultobj = SWIG_Py_Void();
79667 SWIGINTERN PyObject *_wrap_new_float_minheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79668 PyObject *resultobj = 0;
79671 if (!PyArg_ParseTuple(args,(
char *)
":new_float_minheap_array_t")) SWIG_fail;
79673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, SWIG_POINTER_NEW | 0 );
79680 SWIGINTERN PyObject *_wrap_delete_float_minheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79681 PyObject *resultobj = 0;
79685 PyObject * obj0 = 0 ;
79687 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_float_minheap_array_t",&obj0)) SWIG_fail;
79688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, SWIG_POINTER_DISOWN | 0 );
79689 if (!SWIG_IsOK(res1)) {
79690 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_float_minheap_array_t" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< float,long > > *""'");
79694 resultobj = SWIG_Py_Void();
79701 SWIGINTERN PyObject *float_minheap_array_t_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79703 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
79704 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t, SWIG_NewClientData(obj));
79705 return SWIG_Py_Void();
79708 SWIGINTERN PyObject *_wrap_int_minheap_array_t_nh_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79709 PyObject *resultobj = 0;
79716 PyObject * obj0 = 0 ;
79717 PyObject * obj1 = 0 ;
79719 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_minheap_array_t_nh_set",&obj0,&obj1)) SWIG_fail;
79720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
79721 if (!SWIG_IsOK(res1)) {
79722 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_nh_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
79725 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
79726 if (!SWIG_IsOK(ecode2)) {
79727 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_nh_set" "', argument " "2"" of type '" "size_t""'");
79729 arg2 =
static_cast< size_t >(val2);
79730 if (arg1) (arg1)->nh = arg2;
79731 resultobj = SWIG_Py_Void();
79738 SWIGINTERN PyObject *_wrap_int_minheap_array_t_nh_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79739 PyObject *resultobj = 0;
79743 PyObject * obj0 = 0 ;
79746 if (!PyArg_ParseTuple(args,(
char *)
"O:int_minheap_array_t_nh_get",&obj0)) SWIG_fail;
79747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
79748 if (!SWIG_IsOK(res1)) {
79749 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_nh_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
79752 result = (size_t) ((arg1)->nh);
79753 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
79760 SWIGINTERN PyObject *_wrap_int_minheap_array_t_k_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79761 PyObject *resultobj = 0;
79768 PyObject * obj0 = 0 ;
79769 PyObject * obj1 = 0 ;
79771 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_minheap_array_t_k_set",&obj0,&obj1)) SWIG_fail;
79772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
79773 if (!SWIG_IsOK(res1)) {
79774 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_k_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
79777 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
79778 if (!SWIG_IsOK(ecode2)) {
79779 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_k_set" "', argument " "2"" of type '" "size_t""'");
79781 arg2 =
static_cast< size_t >(val2);
79782 if (arg1) (arg1)->k = arg2;
79783 resultobj = SWIG_Py_Void();
79790 SWIGINTERN PyObject *_wrap_int_minheap_array_t_k_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79791 PyObject *resultobj = 0;
79795 PyObject * obj0 = 0 ;
79798 if (!PyArg_ParseTuple(args,(
char *)
"O:int_minheap_array_t_k_get",&obj0)) SWIG_fail;
79799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
79800 if (!SWIG_IsOK(res1)) {
79801 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_k_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
79804 result = (size_t) ((arg1)->k);
79805 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
79812 SWIGINTERN PyObject *_wrap_int_minheap_array_t_ids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79813 PyObject *resultobj = 0;
79820 PyObject * obj0 = 0 ;
79821 PyObject * obj1 = 0 ;
79823 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_minheap_array_t_ids_set",&obj0,&obj1)) SWIG_fail;
79824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
79825 if (!SWIG_IsOK(res1)) {
79826 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_ids_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
79829 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, SWIG_POINTER_DISOWN | 0 );
79830 if (!SWIG_IsOK(res2)) {
79831 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 *""'");
79834 if (arg1) (arg1)->ids = arg2;
79835 resultobj = SWIG_Py_Void();
79842 SWIGINTERN PyObject *_wrap_int_minheap_array_t_ids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79843 PyObject *resultobj = 0;
79847 PyObject * obj0 = 0 ;
79850 if (!PyArg_ParseTuple(args,(
char *)
"O:int_minheap_array_t_ids_get",&obj0)) SWIG_fail;
79851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
79852 if (!SWIG_IsOK(res1)) {
79853 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_ids_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
79857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
79864 SWIGINTERN PyObject *_wrap_int_minheap_array_t_val_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79865 PyObject *resultobj = 0;
79872 PyObject * obj0 = 0 ;
79873 PyObject * obj1 = 0 ;
79875 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_minheap_array_t_val_set",&obj0,&obj1)) SWIG_fail;
79876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
79877 if (!SWIG_IsOK(res1)) {
79878 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_val_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
79881 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
79882 if (!SWIG_IsOK(res2)) {
79883 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 *""'");
79886 if (arg1) (arg1)->val = arg2;
79887 resultobj = SWIG_Py_Void();
79894 SWIGINTERN PyObject *_wrap_int_minheap_array_t_val_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79895 PyObject *resultobj = 0;
79899 PyObject * obj0 = 0 ;
79902 if (!PyArg_ParseTuple(args,(
char *)
"O:int_minheap_array_t_val_get",&obj0)) SWIG_fail;
79903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
79904 if (!SWIG_IsOK(res1)) {
79905 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_val_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
79909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
79916 SWIGINTERN PyObject *_wrap_int_minheap_array_t_get_val(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79917 PyObject *resultobj = 0;
79924 PyObject * obj0 = 0 ;
79925 PyObject * obj1 = 0 ;
79928 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_minheap_array_t_get_val",&obj0,&obj1)) SWIG_fail;
79929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
79930 if (!SWIG_IsOK(res1)) {
79931 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_get_val" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
79934 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
79935 if (!SWIG_IsOK(ecode2)) {
79936 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_get_val" "', argument " "2"" of type '" "size_t""'");
79938 arg2 =
static_cast< size_t >(val2);
79940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
79947 SWIGINTERN PyObject *_wrap_int_minheap_array_t_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79948 PyObject *resultobj = 0;
79955 PyObject * obj0 = 0 ;
79956 PyObject * obj1 = 0 ;
79959 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_minheap_array_t_get_ids",&obj0,&obj1)) SWIG_fail;
79960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
79961 if (!SWIG_IsOK(res1)) {
79962 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_get_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
79965 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
79966 if (!SWIG_IsOK(ecode2)) {
79967 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_get_ids" "', argument " "2"" of type '" "size_t""'");
79969 arg2 =
static_cast< size_t >(val2);
79971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
79978 SWIGINTERN PyObject *_wrap_int_minheap_array_t_heapify(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
79979 PyObject *resultobj = 0;
79983 PyObject * obj0 = 0 ;
79985 if (!PyArg_ParseTuple(args,(
char *)
"O:int_minheap_array_t_heapify",&obj0)) SWIG_fail;
79986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
79987 if (!SWIG_IsOK(res1)) {
79988 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_heapify" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
79992 resultobj = SWIG_Py_Void();
79999 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80000 PyObject *resultobj = 0;
80019 PyObject * obj0 = 0 ;
80020 PyObject * obj1 = 0 ;
80021 PyObject * obj2 = 0 ;
80022 PyObject * obj3 = 0 ;
80023 PyObject * obj4 = 0 ;
80024 PyObject * obj5 = 0 ;
80026 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:int_minheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
80027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
80028 if (!SWIG_IsOK(res1)) {
80029 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
80032 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
80033 if (!SWIG_IsOK(ecode2)) {
80034 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
80036 arg2 =
static_cast< size_t >(val2);
80037 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
80038 if (!SWIG_IsOK(res3)) {
80039 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 *""'");
80042 ecode4 = SWIG_AsVal_long(obj3, &val4);
80043 if (!SWIG_IsOK(ecode4)) {
80044 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "int_minheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::TI""'");
80047 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
80048 if (!SWIG_IsOK(ecode5)) {
80049 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_minheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
80051 arg5 =
static_cast< size_t >(val5);
80052 ecode6 = SWIG_AsVal_long(obj5, &val6);
80053 if (!SWIG_IsOK(ecode6)) {
80054 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "int_minheap_array_t_addn" "', argument " "6"" of type '" "long""'");
80056 arg6 =
static_cast< long >(val6);
80058 resultobj = SWIG_Py_Void();
80065 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80066 PyObject *resultobj = 0;
80082 PyObject * obj0 = 0 ;
80083 PyObject * obj1 = 0 ;
80084 PyObject * obj2 = 0 ;
80085 PyObject * obj3 = 0 ;
80086 PyObject * obj4 = 0 ;
80088 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:int_minheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
80089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
80090 if (!SWIG_IsOK(res1)) {
80091 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
80094 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
80095 if (!SWIG_IsOK(ecode2)) {
80096 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
80098 arg2 =
static_cast< size_t >(val2);
80099 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
80100 if (!SWIG_IsOK(res3)) {
80101 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 *""'");
80104 ecode4 = SWIG_AsVal_long(obj3, &val4);
80105 if (!SWIG_IsOK(ecode4)) {
80106 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "int_minheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::TI""'");
80109 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
80110 if (!SWIG_IsOK(ecode5)) {
80111 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_minheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
80113 arg5 =
static_cast< size_t >(val5);
80115 resultobj = SWIG_Py_Void();
80122 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80123 PyObject *resultobj = 0;
80136 PyObject * obj0 = 0 ;
80137 PyObject * obj1 = 0 ;
80138 PyObject * obj2 = 0 ;
80139 PyObject * obj3 = 0 ;
80141 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:int_minheap_array_t_addn",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
80142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
80143 if (!SWIG_IsOK(res1)) {
80144 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
80147 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
80148 if (!SWIG_IsOK(ecode2)) {
80149 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
80151 arg2 =
static_cast< size_t >(val2);
80152 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
80153 if (!SWIG_IsOK(res3)) {
80154 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 *""'");
80157 ecode4 = SWIG_AsVal_long(obj3, &val4);
80158 if (!SWIG_IsOK(ecode4)) {
80159 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "int_minheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMin< int,long > >::TI""'");
80163 resultobj = SWIG_Py_Void();
80170 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
80171 PyObject *resultobj = 0;
80181 PyObject * obj0 = 0 ;
80182 PyObject * obj1 = 0 ;
80183 PyObject * obj2 = 0 ;
80185 if (!PyArg_ParseTuple(args,(
char *)
"OOO:int_minheap_array_t_addn",&obj0,&obj1,&obj2)) SWIG_fail;
80186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
80187 if (!SWIG_IsOK(res1)) {
80188 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
80191 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
80192 if (!SWIG_IsOK(ecode2)) {
80193 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
80195 arg2 =
static_cast< size_t >(val2);
80196 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
80197 if (!SWIG_IsOK(res3)) {
80198 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 *""'");
80202 resultobj = SWIG_Py_Void();
80209 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn(PyObject *self, PyObject *args) {
80211 PyObject *argv[7] = {
80216 if (!PyTuple_Check(args)) SWIG_fail;
80217 argc = args ? PyObject_Length(args) : 0;
80218 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
80219 argv[ii] = PyTuple_GET_ITEM(args,ii);
80224 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
80225 _v = SWIG_CheckState(res);
80228 int res = SWIG_AsVal_size_t(argv[1], NULL);
80229 _v = SWIG_CheckState(res);
80233 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
80234 _v = SWIG_CheckState(res);
80236 return _wrap_int_minheap_array_t_addn__SWIG_3(
self, args);
80244 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
80245 _v = SWIG_CheckState(res);
80248 int res = SWIG_AsVal_size_t(argv[1], NULL);
80249 _v = SWIG_CheckState(res);
80253 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
80254 _v = SWIG_CheckState(res);
80257 int res = SWIG_AsVal_long(argv[3], NULL);
80258 _v = SWIG_CheckState(res);
80261 return _wrap_int_minheap_array_t_addn__SWIG_2(
self, args);
80270 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
80271 _v = SWIG_CheckState(res);
80274 int res = SWIG_AsVal_size_t(argv[1], NULL);
80275 _v = SWIG_CheckState(res);
80279 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
80280 _v = SWIG_CheckState(res);
80283 int res = SWIG_AsVal_long(argv[3], NULL);
80284 _v = SWIG_CheckState(res);
80288 int res = SWIG_AsVal_size_t(argv[4], NULL);
80289 _v = SWIG_CheckState(res);
80292 return _wrap_int_minheap_array_t_addn__SWIG_1(
self, args);
80302 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
80303 _v = SWIG_CheckState(res);
80306 int res = SWIG_AsVal_size_t(argv[1], NULL);
80307 _v = SWIG_CheckState(res);
80311 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
80312 _v = SWIG_CheckState(res);
80315 int res = SWIG_AsVal_long(argv[3], NULL);
80316 _v = SWIG_CheckState(res);
80320 int res = SWIG_AsVal_size_t(argv[4], NULL);
80321 _v = SWIG_CheckState(res);
80325 int res = SWIG_AsVal_long(argv[5], NULL);
80326 _v = SWIG_CheckState(res);
80329 return _wrap_int_minheap_array_t_addn__SWIG_0(
self, args);
80339 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'int_minheap_array_t_addn'.\n"
80340 " Possible C/C++ prototypes are:\n"
80341 " 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"
80342 " 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"
80343 " 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"
80344 " faiss::HeapArray< faiss::CMin< int,long > >::addn(size_t,faiss::HeapArray< faiss::CMin< int,long > >::T const *)\n");
80349 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn_with_ids__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80350 PyObject *resultobj = 0;
80372 PyObject * obj0 = 0 ;
80373 PyObject * obj1 = 0 ;
80374 PyObject * obj2 = 0 ;
80375 PyObject * obj3 = 0 ;
80376 PyObject * obj4 = 0 ;
80377 PyObject * obj5 = 0 ;
80378 PyObject * obj6 = 0 ;
80380 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:int_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
80381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
80382 if (!SWIG_IsOK(res1)) {
80383 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 > > *""'");
80386 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
80387 if (!SWIG_IsOK(ecode2)) {
80388 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
80390 arg2 =
static_cast< size_t >(val2);
80391 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
80392 if (!SWIG_IsOK(res3)) {
80393 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 *""'");
80396 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
80397 if (!SWIG_IsOK(res4)) {
80398 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 *""'");
80401 ecode5 = SWIG_AsVal_long(obj4, &val5);
80402 if (!SWIG_IsOK(ecode5)) {
80403 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
80405 arg5 =
static_cast< long >(val5);
80406 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
80407 if (!SWIG_IsOK(ecode6)) {
80408 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
80410 arg6 =
static_cast< size_t >(val6);
80411 ecode7 = SWIG_AsVal_long(obj6, &val7);
80412 if (!SWIG_IsOK(ecode7)) {
80413 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "7"" of type '" "long""'");
80415 arg7 =
static_cast< long >(val7);
80417 resultobj = SWIG_Py_Void();
80424 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn_with_ids__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80425 PyObject *resultobj = 0;
80444 PyObject * obj0 = 0 ;
80445 PyObject * obj1 = 0 ;
80446 PyObject * obj2 = 0 ;
80447 PyObject * obj3 = 0 ;
80448 PyObject * obj4 = 0 ;
80449 PyObject * obj5 = 0 ;
80451 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:int_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
80452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
80453 if (!SWIG_IsOK(res1)) {
80454 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 > > *""'");
80457 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
80458 if (!SWIG_IsOK(ecode2)) {
80459 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
80461 arg2 =
static_cast< size_t >(val2);
80462 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
80463 if (!SWIG_IsOK(res3)) {
80464 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 *""'");
80467 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
80468 if (!SWIG_IsOK(res4)) {
80469 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 *""'");
80472 ecode5 = SWIG_AsVal_long(obj4, &val5);
80473 if (!SWIG_IsOK(ecode5)) {
80474 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
80476 arg5 =
static_cast< long >(val5);
80477 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
80478 if (!SWIG_IsOK(ecode6)) {
80479 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
80481 arg6 =
static_cast< size_t >(val6);
80483 resultobj = SWIG_Py_Void();
80490 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn_with_ids__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80491 PyObject *resultobj = 0;
80507 PyObject * obj0 = 0 ;
80508 PyObject * obj1 = 0 ;
80509 PyObject * obj2 = 0 ;
80510 PyObject * obj3 = 0 ;
80511 PyObject * obj4 = 0 ;
80513 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:int_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
80514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
80515 if (!SWIG_IsOK(res1)) {
80516 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 > > *""'");
80519 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
80520 if (!SWIG_IsOK(ecode2)) {
80521 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
80523 arg2 =
static_cast< size_t >(val2);
80524 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
80525 if (!SWIG_IsOK(res3)) {
80526 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 *""'");
80529 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
80530 if (!SWIG_IsOK(res4)) {
80531 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 *""'");
80534 ecode5 = SWIG_AsVal_long(obj4, &val5);
80535 if (!SWIG_IsOK(ecode5)) {
80536 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
80538 arg5 =
static_cast< long >(val5);
80540 resultobj = SWIG_Py_Void();
80547 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn_with_ids__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80548 PyObject *resultobj = 0;
80561 PyObject * obj0 = 0 ;
80562 PyObject * obj1 = 0 ;
80563 PyObject * obj2 = 0 ;
80564 PyObject * obj3 = 0 ;
80566 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:int_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
80567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
80568 if (!SWIG_IsOK(res1)) {
80569 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 > > *""'");
80572 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
80573 if (!SWIG_IsOK(ecode2)) {
80574 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
80576 arg2 =
static_cast< size_t >(val2);
80577 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
80578 if (!SWIG_IsOK(res3)) {
80579 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 *""'");
80582 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
80583 if (!SWIG_IsOK(res4)) {
80584 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 *""'");
80588 resultobj = SWIG_Py_Void();
80595 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn_with_ids__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
80596 PyObject *resultobj = 0;
80606 PyObject * obj0 = 0 ;
80607 PyObject * obj1 = 0 ;
80608 PyObject * obj2 = 0 ;
80610 if (!PyArg_ParseTuple(args,(
char *)
"OOO:int_minheap_array_t_addn_with_ids",&obj0,&obj1,&obj2)) SWIG_fail;
80611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
80612 if (!SWIG_IsOK(res1)) {
80613 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 > > *""'");
80616 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
80617 if (!SWIG_IsOK(ecode2)) {
80618 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_minheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
80620 arg2 =
static_cast< size_t >(val2);
80621 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
80622 if (!SWIG_IsOK(res3)) {
80623 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 *""'");
80627 resultobj = SWIG_Py_Void();
80634 SWIGINTERN PyObject *_wrap_int_minheap_array_t_addn_with_ids(PyObject *self, PyObject *args) {
80636 PyObject *argv[8] = {
80641 if (!PyTuple_Check(args)) SWIG_fail;
80642 argc = args ? PyObject_Length(args) : 0;
80643 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
80644 argv[ii] = PyTuple_GET_ITEM(args,ii);
80649 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
80650 _v = SWIG_CheckState(res);
80653 int res = SWIG_AsVal_size_t(argv[1], NULL);
80654 _v = SWIG_CheckState(res);
80658 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
80659 _v = SWIG_CheckState(res);
80661 return _wrap_int_minheap_array_t_addn_with_ids__SWIG_4(
self, args);
80669 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
80670 _v = SWIG_CheckState(res);
80673 int res = SWIG_AsVal_size_t(argv[1], NULL);
80674 _v = SWIG_CheckState(res);
80678 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
80679 _v = SWIG_CheckState(res);
80682 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
80683 _v = SWIG_CheckState(res);
80685 return _wrap_int_minheap_array_t_addn_with_ids__SWIG_3(
self, args);
80694 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
80695 _v = SWIG_CheckState(res);
80698 int res = SWIG_AsVal_size_t(argv[1], NULL);
80699 _v = SWIG_CheckState(res);
80703 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
80704 _v = SWIG_CheckState(res);
80707 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
80708 _v = SWIG_CheckState(res);
80711 int res = SWIG_AsVal_long(argv[4], NULL);
80712 _v = SWIG_CheckState(res);
80715 return _wrap_int_minheap_array_t_addn_with_ids__SWIG_2(
self, args);
80725 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
80726 _v = SWIG_CheckState(res);
80729 int res = SWIG_AsVal_size_t(argv[1], NULL);
80730 _v = SWIG_CheckState(res);
80734 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
80735 _v = SWIG_CheckState(res);
80738 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
80739 _v = SWIG_CheckState(res);
80742 int res = SWIG_AsVal_long(argv[4], NULL);
80743 _v = SWIG_CheckState(res);
80747 int res = SWIG_AsVal_size_t(argv[5], NULL);
80748 _v = SWIG_CheckState(res);
80751 return _wrap_int_minheap_array_t_addn_with_ids__SWIG_1(
self, args);
80762 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0);
80763 _v = SWIG_CheckState(res);
80766 int res = SWIG_AsVal_size_t(argv[1], NULL);
80767 _v = SWIG_CheckState(res);
80771 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
80772 _v = SWIG_CheckState(res);
80775 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
80776 _v = SWIG_CheckState(res);
80779 int res = SWIG_AsVal_long(argv[4], NULL);
80780 _v = SWIG_CheckState(res);
80784 int res = SWIG_AsVal_size_t(argv[5], NULL);
80785 _v = SWIG_CheckState(res);
80789 int res = SWIG_AsVal_long(argv[6], NULL);
80790 _v = SWIG_CheckState(res);
80793 return _wrap_int_minheap_array_t_addn_with_ids__SWIG_0(
self, args);
80804 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'int_minheap_array_t_addn_with_ids'.\n"
80805 " Possible C/C++ prototypes are:\n"
80806 " 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"
80807 " 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"
80808 " 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"
80809 " 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"
80810 " faiss::HeapArray< faiss::CMin< int,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMin< int,long > >::T const *)\n");
80815 SWIGINTERN PyObject *_wrap_int_minheap_array_t_reorder(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80816 PyObject *resultobj = 0;
80820 PyObject * obj0 = 0 ;
80822 if (!PyArg_ParseTuple(args,(
char *)
"O:int_minheap_array_t_reorder",&obj0)) SWIG_fail;
80823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
80824 if (!SWIG_IsOK(res1)) {
80825 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_minheap_array_t_reorder" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
80829 resultobj = SWIG_Py_Void();
80836 SWIGINTERN PyObject *_wrap_int_minheap_array_t_per_line_extrema(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80837 PyObject *resultobj = 0;
80847 PyObject * obj0 = 0 ;
80848 PyObject * obj1 = 0 ;
80849 PyObject * obj2 = 0 ;
80851 if (!PyArg_ParseTuple(args,(
char *)
"OOO:int_minheap_array_t_per_line_extrema",&obj0,&obj1,&obj2)) SWIG_fail;
80852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, 0 | 0 );
80853 if (!SWIG_IsOK(res1)) {
80854 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 *""'");
80857 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
80858 if (!SWIG_IsOK(res2)) {
80859 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 *""'");
80862 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
80863 if (!SWIG_IsOK(res3)) {
80864 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 *""'");
80868 resultobj = SWIG_Py_Void();
80875 SWIGINTERN PyObject *_wrap_new_int_minheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80876 PyObject *resultobj = 0;
80879 if (!PyArg_ParseTuple(args,(
char *)
":new_int_minheap_array_t")) SWIG_fail;
80881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, SWIG_POINTER_NEW | 0 );
80888 SWIGINTERN PyObject *_wrap_delete_int_minheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80889 PyObject *resultobj = 0;
80893 PyObject * obj0 = 0 ;
80895 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_int_minheap_array_t",&obj0)) SWIG_fail;
80896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, SWIG_POINTER_DISOWN | 0 );
80897 if (!SWIG_IsOK(res1)) {
80898 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_int_minheap_array_t" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMin< int,long > > *""'");
80902 resultobj = SWIG_Py_Void();
80909 SWIGINTERN PyObject *int_minheap_array_t_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80911 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
80912 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t, SWIG_NewClientData(obj));
80913 return SWIG_Py_Void();
80916 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_nh_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80917 PyObject *resultobj = 0;
80924 PyObject * obj0 = 0 ;
80925 PyObject * obj1 = 0 ;
80927 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_maxheap_array_t_nh_set",&obj0,&obj1)) SWIG_fail;
80928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
80929 if (!SWIG_IsOK(res1)) {
80930 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_nh_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
80933 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
80934 if (!SWIG_IsOK(ecode2)) {
80935 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_nh_set" "', argument " "2"" of type '" "size_t""'");
80937 arg2 =
static_cast< size_t >(val2);
80938 if (arg1) (arg1)->nh = arg2;
80939 resultobj = SWIG_Py_Void();
80946 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_nh_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80947 PyObject *resultobj = 0;
80951 PyObject * obj0 = 0 ;
80954 if (!PyArg_ParseTuple(args,(
char *)
"O:float_maxheap_array_t_nh_get",&obj0)) SWIG_fail;
80955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
80956 if (!SWIG_IsOK(res1)) {
80957 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_nh_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
80960 result = (size_t) ((arg1)->nh);
80961 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
80968 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_k_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80969 PyObject *resultobj = 0;
80976 PyObject * obj0 = 0 ;
80977 PyObject * obj1 = 0 ;
80979 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_maxheap_array_t_k_set",&obj0,&obj1)) SWIG_fail;
80980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
80981 if (!SWIG_IsOK(res1)) {
80982 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_k_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
80985 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
80986 if (!SWIG_IsOK(ecode2)) {
80987 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_k_set" "', argument " "2"" of type '" "size_t""'");
80989 arg2 =
static_cast< size_t >(val2);
80990 if (arg1) (arg1)->k = arg2;
80991 resultobj = SWIG_Py_Void();
80998 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_k_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
80999 PyObject *resultobj = 0;
81003 PyObject * obj0 = 0 ;
81006 if (!PyArg_ParseTuple(args,(
char *)
"O:float_maxheap_array_t_k_get",&obj0)) SWIG_fail;
81007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81008 if (!SWIG_IsOK(res1)) {
81009 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_k_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
81012 result = (size_t) ((arg1)->k);
81013 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
81020 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_ids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
81021 PyObject *resultobj = 0;
81028 PyObject * obj0 = 0 ;
81029 PyObject * obj1 = 0 ;
81031 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_maxheap_array_t_ids_set",&obj0,&obj1)) SWIG_fail;
81032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81033 if (!SWIG_IsOK(res1)) {
81034 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_ids_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
81037 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, SWIG_POINTER_DISOWN | 0 );
81038 if (!SWIG_IsOK(res2)) {
81039 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 *""'");
81042 if (arg1) (arg1)->ids = arg2;
81043 resultobj = SWIG_Py_Void();
81050 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_ids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
81051 PyObject *resultobj = 0;
81055 PyObject * obj0 = 0 ;
81058 if (!PyArg_ParseTuple(args,(
char *)
"O:float_maxheap_array_t_ids_get",&obj0)) SWIG_fail;
81059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81060 if (!SWIG_IsOK(res1)) {
81061 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_ids_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
81065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
81072 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_val_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
81073 PyObject *resultobj = 0;
81080 PyObject * obj0 = 0 ;
81081 PyObject * obj1 = 0 ;
81083 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_maxheap_array_t_val_set",&obj0,&obj1)) SWIG_fail;
81084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81085 if (!SWIG_IsOK(res1)) {
81086 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_val_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
81089 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
81090 if (!SWIG_IsOK(res2)) {
81091 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 *""'");
81094 if (arg1) (arg1)->val = arg2;
81095 resultobj = SWIG_Py_Void();
81102 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_val_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
81103 PyObject *resultobj = 0;
81107 PyObject * obj0 = 0 ;
81110 if (!PyArg_ParseTuple(args,(
char *)
"O:float_maxheap_array_t_val_get",&obj0)) SWIG_fail;
81111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81112 if (!SWIG_IsOK(res1)) {
81113 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_val_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
81117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
81124 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_get_val(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
81125 PyObject *resultobj = 0;
81132 PyObject * obj0 = 0 ;
81133 PyObject * obj1 = 0 ;
81136 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_maxheap_array_t_get_val",&obj0,&obj1)) SWIG_fail;
81137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81138 if (!SWIG_IsOK(res1)) {
81139 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_get_val" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
81142 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
81143 if (!SWIG_IsOK(ecode2)) {
81144 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_get_val" "', argument " "2"" of type '" "size_t""'");
81146 arg2 =
static_cast< size_t >(val2);
81148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
81155 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
81156 PyObject *resultobj = 0;
81163 PyObject * obj0 = 0 ;
81164 PyObject * obj1 = 0 ;
81167 if (!PyArg_ParseTuple(args,(
char *)
"OO:float_maxheap_array_t_get_ids",&obj0,&obj1)) SWIG_fail;
81168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81169 if (!SWIG_IsOK(res1)) {
81170 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_get_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
81173 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
81174 if (!SWIG_IsOK(ecode2)) {
81175 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_get_ids" "', argument " "2"" of type '" "size_t""'");
81177 arg2 =
static_cast< size_t >(val2);
81179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
81186 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_heapify(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
81187 PyObject *resultobj = 0;
81191 PyObject * obj0 = 0 ;
81193 if (!PyArg_ParseTuple(args,(
char *)
"O:float_maxheap_array_t_heapify",&obj0)) SWIG_fail;
81194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81195 if (!SWIG_IsOK(res1)) {
81196 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_heapify" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
81200 resultobj = SWIG_Py_Void();
81207 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
81208 PyObject *resultobj = 0;
81227 PyObject * obj0 = 0 ;
81228 PyObject * obj1 = 0 ;
81229 PyObject * obj2 = 0 ;
81230 PyObject * obj3 = 0 ;
81231 PyObject * obj4 = 0 ;
81232 PyObject * obj5 = 0 ;
81234 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:float_maxheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
81235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81236 if (!SWIG_IsOK(res1)) {
81237 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
81240 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
81241 if (!SWIG_IsOK(ecode2)) {
81242 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
81244 arg2 =
static_cast< size_t >(val2);
81245 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
81246 if (!SWIG_IsOK(res3)) {
81247 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 *""'");
81250 ecode4 = SWIG_AsVal_long(obj3, &val4);
81251 if (!SWIG_IsOK(ecode4)) {
81252 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "float_maxheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::TI""'");
81255 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
81256 if (!SWIG_IsOK(ecode5)) {
81257 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_maxheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
81259 arg5 =
static_cast< size_t >(val5);
81260 ecode6 = SWIG_AsVal_long(obj5, &val6);
81261 if (!SWIG_IsOK(ecode6)) {
81262 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "float_maxheap_array_t_addn" "', argument " "6"" of type '" "long""'");
81264 arg6 =
static_cast< long >(val6);
81266 resultobj = SWIG_Py_Void();
81273 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
81274 PyObject *resultobj = 0;
81290 PyObject * obj0 = 0 ;
81291 PyObject * obj1 = 0 ;
81292 PyObject * obj2 = 0 ;
81293 PyObject * obj3 = 0 ;
81294 PyObject * obj4 = 0 ;
81296 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:float_maxheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
81297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81298 if (!SWIG_IsOK(res1)) {
81299 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
81302 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
81303 if (!SWIG_IsOK(ecode2)) {
81304 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
81306 arg2 =
static_cast< size_t >(val2);
81307 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
81308 if (!SWIG_IsOK(res3)) {
81309 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 *""'");
81312 ecode4 = SWIG_AsVal_long(obj3, &val4);
81313 if (!SWIG_IsOK(ecode4)) {
81314 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "float_maxheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::TI""'");
81317 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
81318 if (!SWIG_IsOK(ecode5)) {
81319 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_maxheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
81321 arg5 =
static_cast< size_t >(val5);
81323 resultobj = SWIG_Py_Void();
81330 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
81331 PyObject *resultobj = 0;
81344 PyObject * obj0 = 0 ;
81345 PyObject * obj1 = 0 ;
81346 PyObject * obj2 = 0 ;
81347 PyObject * obj3 = 0 ;
81349 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:float_maxheap_array_t_addn",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
81350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81351 if (!SWIG_IsOK(res1)) {
81352 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
81355 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
81356 if (!SWIG_IsOK(ecode2)) {
81357 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
81359 arg2 =
static_cast< size_t >(val2);
81360 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
81361 if (!SWIG_IsOK(res3)) {
81362 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 *""'");
81365 ecode4 = SWIG_AsVal_long(obj3, &val4);
81366 if (!SWIG_IsOK(ecode4)) {
81367 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "float_maxheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< float,long > >::TI""'");
81371 resultobj = SWIG_Py_Void();
81378 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
81379 PyObject *resultobj = 0;
81389 PyObject * obj0 = 0 ;
81390 PyObject * obj1 = 0 ;
81391 PyObject * obj2 = 0 ;
81393 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_maxheap_array_t_addn",&obj0,&obj1,&obj2)) SWIG_fail;
81394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81395 if (!SWIG_IsOK(res1)) {
81396 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
81399 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
81400 if (!SWIG_IsOK(ecode2)) {
81401 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
81403 arg2 =
static_cast< size_t >(val2);
81404 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
81405 if (!SWIG_IsOK(res3)) {
81406 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 *""'");
81410 resultobj = SWIG_Py_Void();
81417 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn(PyObject *self, PyObject *args) {
81419 PyObject *argv[7] = {
81424 if (!PyTuple_Check(args)) SWIG_fail;
81425 argc = args ? PyObject_Length(args) : 0;
81426 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
81427 argv[ii] = PyTuple_GET_ITEM(args,ii);
81432 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
81433 _v = SWIG_CheckState(res);
81436 int res = SWIG_AsVal_size_t(argv[1], NULL);
81437 _v = SWIG_CheckState(res);
81441 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
81442 _v = SWIG_CheckState(res);
81444 return _wrap_float_maxheap_array_t_addn__SWIG_3(
self, args);
81452 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
81453 _v = SWIG_CheckState(res);
81456 int res = SWIG_AsVal_size_t(argv[1], NULL);
81457 _v = SWIG_CheckState(res);
81461 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
81462 _v = SWIG_CheckState(res);
81465 int res = SWIG_AsVal_long(argv[3], NULL);
81466 _v = SWIG_CheckState(res);
81469 return _wrap_float_maxheap_array_t_addn__SWIG_2(
self, args);
81478 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
81479 _v = SWIG_CheckState(res);
81482 int res = SWIG_AsVal_size_t(argv[1], NULL);
81483 _v = SWIG_CheckState(res);
81487 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
81488 _v = SWIG_CheckState(res);
81491 int res = SWIG_AsVal_long(argv[3], NULL);
81492 _v = SWIG_CheckState(res);
81496 int res = SWIG_AsVal_size_t(argv[4], NULL);
81497 _v = SWIG_CheckState(res);
81500 return _wrap_float_maxheap_array_t_addn__SWIG_1(
self, args);
81510 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
81511 _v = SWIG_CheckState(res);
81514 int res = SWIG_AsVal_size_t(argv[1], NULL);
81515 _v = SWIG_CheckState(res);
81519 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
81520 _v = SWIG_CheckState(res);
81523 int res = SWIG_AsVal_long(argv[3], NULL);
81524 _v = SWIG_CheckState(res);
81528 int res = SWIG_AsVal_size_t(argv[4], NULL);
81529 _v = SWIG_CheckState(res);
81533 int res = SWIG_AsVal_long(argv[5], NULL);
81534 _v = SWIG_CheckState(res);
81537 return _wrap_float_maxheap_array_t_addn__SWIG_0(
self, args);
81547 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'float_maxheap_array_t_addn'.\n"
81548 " Possible C/C++ prototypes are:\n"
81549 " 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"
81550 " 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"
81551 " 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"
81552 " faiss::HeapArray< faiss::CMax< float,long > >::addn(size_t,faiss::HeapArray< faiss::CMax< float,long > >::T const *)\n");
81557 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn_with_ids__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
81558 PyObject *resultobj = 0;
81580 PyObject * obj0 = 0 ;
81581 PyObject * obj1 = 0 ;
81582 PyObject * obj2 = 0 ;
81583 PyObject * obj3 = 0 ;
81584 PyObject * obj4 = 0 ;
81585 PyObject * obj5 = 0 ;
81586 PyObject * obj6 = 0 ;
81588 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:float_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
81589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81590 if (!SWIG_IsOK(res1)) {
81591 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 > > *""'");
81594 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
81595 if (!SWIG_IsOK(ecode2)) {
81596 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
81598 arg2 =
static_cast< size_t >(val2);
81599 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
81600 if (!SWIG_IsOK(res3)) {
81601 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 *""'");
81604 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
81605 if (!SWIG_IsOK(res4)) {
81606 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 *""'");
81609 ecode5 = SWIG_AsVal_long(obj4, &val5);
81610 if (!SWIG_IsOK(ecode5)) {
81611 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
81613 arg5 =
static_cast< long >(val5);
81614 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
81615 if (!SWIG_IsOK(ecode6)) {
81616 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
81618 arg6 =
static_cast< size_t >(val6);
81619 ecode7 = SWIG_AsVal_long(obj6, &val7);
81620 if (!SWIG_IsOK(ecode7)) {
81621 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "7"" of type '" "long""'");
81623 arg7 =
static_cast< long >(val7);
81625 resultobj = SWIG_Py_Void();
81632 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn_with_ids__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
81633 PyObject *resultobj = 0;
81652 PyObject * obj0 = 0 ;
81653 PyObject * obj1 = 0 ;
81654 PyObject * obj2 = 0 ;
81655 PyObject * obj3 = 0 ;
81656 PyObject * obj4 = 0 ;
81657 PyObject * obj5 = 0 ;
81659 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:float_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
81660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81661 if (!SWIG_IsOK(res1)) {
81662 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 > > *""'");
81665 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
81666 if (!SWIG_IsOK(ecode2)) {
81667 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
81669 arg2 =
static_cast< size_t >(val2);
81670 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
81671 if (!SWIG_IsOK(res3)) {
81672 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 *""'");
81675 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
81676 if (!SWIG_IsOK(res4)) {
81677 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 *""'");
81680 ecode5 = SWIG_AsVal_long(obj4, &val5);
81681 if (!SWIG_IsOK(ecode5)) {
81682 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
81684 arg5 =
static_cast< long >(val5);
81685 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
81686 if (!SWIG_IsOK(ecode6)) {
81687 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
81689 arg6 =
static_cast< size_t >(val6);
81691 resultobj = SWIG_Py_Void();
81698 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn_with_ids__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
81699 PyObject *resultobj = 0;
81715 PyObject * obj0 = 0 ;
81716 PyObject * obj1 = 0 ;
81717 PyObject * obj2 = 0 ;
81718 PyObject * obj3 = 0 ;
81719 PyObject * obj4 = 0 ;
81721 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:float_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
81722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81723 if (!SWIG_IsOK(res1)) {
81724 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 > > *""'");
81727 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
81728 if (!SWIG_IsOK(ecode2)) {
81729 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
81731 arg2 =
static_cast< size_t >(val2);
81732 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
81733 if (!SWIG_IsOK(res3)) {
81734 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 *""'");
81737 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
81738 if (!SWIG_IsOK(res4)) {
81739 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 *""'");
81742 ecode5 = SWIG_AsVal_long(obj4, &val5);
81743 if (!SWIG_IsOK(ecode5)) {
81744 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
81746 arg5 =
static_cast< long >(val5);
81748 resultobj = SWIG_Py_Void();
81755 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn_with_ids__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
81756 PyObject *resultobj = 0;
81769 PyObject * obj0 = 0 ;
81770 PyObject * obj1 = 0 ;
81771 PyObject * obj2 = 0 ;
81772 PyObject * obj3 = 0 ;
81774 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:float_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
81775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81776 if (!SWIG_IsOK(res1)) {
81777 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 > > *""'");
81780 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
81781 if (!SWIG_IsOK(ecode2)) {
81782 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
81784 arg2 =
static_cast< size_t >(val2);
81785 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
81786 if (!SWIG_IsOK(res3)) {
81787 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 *""'");
81790 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
81791 if (!SWIG_IsOK(res4)) {
81792 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 *""'");
81796 resultobj = SWIG_Py_Void();
81803 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn_with_ids__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
81804 PyObject *resultobj = 0;
81814 PyObject * obj0 = 0 ;
81815 PyObject * obj1 = 0 ;
81816 PyObject * obj2 = 0 ;
81818 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2)) SWIG_fail;
81819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
81820 if (!SWIG_IsOK(res1)) {
81821 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 > > *""'");
81824 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
81825 if (!SWIG_IsOK(ecode2)) {
81826 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "float_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
81828 arg2 =
static_cast< size_t >(val2);
81829 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
81830 if (!SWIG_IsOK(res3)) {
81831 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 *""'");
81835 resultobj = SWIG_Py_Void();
81842 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_addn_with_ids(PyObject *self, PyObject *args) {
81844 PyObject *argv[8] = {
81849 if (!PyTuple_Check(args)) SWIG_fail;
81850 argc = args ? PyObject_Length(args) : 0;
81851 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
81852 argv[ii] = PyTuple_GET_ITEM(args,ii);
81857 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
81858 _v = SWIG_CheckState(res);
81861 int res = SWIG_AsVal_size_t(argv[1], NULL);
81862 _v = SWIG_CheckState(res);
81866 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
81867 _v = SWIG_CheckState(res);
81869 return _wrap_float_maxheap_array_t_addn_with_ids__SWIG_4(
self, args);
81877 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
81878 _v = SWIG_CheckState(res);
81881 int res = SWIG_AsVal_size_t(argv[1], NULL);
81882 _v = SWIG_CheckState(res);
81886 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
81887 _v = SWIG_CheckState(res);
81890 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
81891 _v = SWIG_CheckState(res);
81893 return _wrap_float_maxheap_array_t_addn_with_ids__SWIG_3(
self, args);
81902 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
81903 _v = SWIG_CheckState(res);
81906 int res = SWIG_AsVal_size_t(argv[1], NULL);
81907 _v = SWIG_CheckState(res);
81911 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
81912 _v = SWIG_CheckState(res);
81915 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
81916 _v = SWIG_CheckState(res);
81919 int res = SWIG_AsVal_long(argv[4], NULL);
81920 _v = SWIG_CheckState(res);
81923 return _wrap_float_maxheap_array_t_addn_with_ids__SWIG_2(
self, args);
81933 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
81934 _v = SWIG_CheckState(res);
81937 int res = SWIG_AsVal_size_t(argv[1], NULL);
81938 _v = SWIG_CheckState(res);
81942 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
81943 _v = SWIG_CheckState(res);
81946 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
81947 _v = SWIG_CheckState(res);
81950 int res = SWIG_AsVal_long(argv[4], NULL);
81951 _v = SWIG_CheckState(res);
81955 int res = SWIG_AsVal_size_t(argv[5], NULL);
81956 _v = SWIG_CheckState(res);
81959 return _wrap_float_maxheap_array_t_addn_with_ids__SWIG_1(
self, args);
81970 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0);
81971 _v = SWIG_CheckState(res);
81974 int res = SWIG_AsVal_size_t(argv[1], NULL);
81975 _v = SWIG_CheckState(res);
81979 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
81980 _v = SWIG_CheckState(res);
81983 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
81984 _v = SWIG_CheckState(res);
81987 int res = SWIG_AsVal_long(argv[4], NULL);
81988 _v = SWIG_CheckState(res);
81992 int res = SWIG_AsVal_size_t(argv[5], NULL);
81993 _v = SWIG_CheckState(res);
81997 int res = SWIG_AsVal_long(argv[6], NULL);
81998 _v = SWIG_CheckState(res);
82001 return _wrap_float_maxheap_array_t_addn_with_ids__SWIG_0(
self, args);
82012 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'float_maxheap_array_t_addn_with_ids'.\n"
82013 " Possible C/C++ prototypes are:\n"
82014 " 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"
82015 " 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"
82016 " 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"
82017 " 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"
82018 " faiss::HeapArray< faiss::CMax< float,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMax< float,long > >::T const *)\n");
82023 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_reorder(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82024 PyObject *resultobj = 0;
82028 PyObject * obj0 = 0 ;
82030 if (!PyArg_ParseTuple(args,(
char *)
"O:float_maxheap_array_t_reorder",&obj0)) SWIG_fail;
82031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
82032 if (!SWIG_IsOK(res1)) {
82033 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "float_maxheap_array_t_reorder" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
82037 resultobj = SWIG_Py_Void();
82044 SWIGINTERN PyObject *_wrap_float_maxheap_array_t_per_line_extrema(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82045 PyObject *resultobj = 0;
82055 PyObject * obj0 = 0 ;
82056 PyObject * obj1 = 0 ;
82057 PyObject * obj2 = 0 ;
82059 if (!PyArg_ParseTuple(args,(
char *)
"OOO:float_maxheap_array_t_per_line_extrema",&obj0,&obj1,&obj2)) SWIG_fail;
82060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, 0 | 0 );
82061 if (!SWIG_IsOK(res1)) {
82062 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 *""'");
82065 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
82066 if (!SWIG_IsOK(res2)) {
82067 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 *""'");
82070 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
82071 if (!SWIG_IsOK(res3)) {
82072 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 *""'");
82076 resultobj = SWIG_Py_Void();
82083 SWIGINTERN PyObject *_wrap_new_float_maxheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82084 PyObject *resultobj = 0;
82087 if (!PyArg_ParseTuple(args,(
char *)
":new_float_maxheap_array_t")) SWIG_fail;
82089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, SWIG_POINTER_NEW | 0 );
82096 SWIGINTERN PyObject *_wrap_delete_float_maxheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82097 PyObject *resultobj = 0;
82101 PyObject * obj0 = 0 ;
82103 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_float_maxheap_array_t",&obj0)) SWIG_fail;
82104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, SWIG_POINTER_DISOWN | 0 );
82105 if (!SWIG_IsOK(res1)) {
82106 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_float_maxheap_array_t" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< float,long > > *""'");
82110 resultobj = SWIG_Py_Void();
82117 SWIGINTERN PyObject *float_maxheap_array_t_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82119 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
82120 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t, SWIG_NewClientData(obj));
82121 return SWIG_Py_Void();
82124 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_nh_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82125 PyObject *resultobj = 0;
82132 PyObject * obj0 = 0 ;
82133 PyObject * obj1 = 0 ;
82135 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_maxheap_array_t_nh_set",&obj0,&obj1)) SWIG_fail;
82136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82137 if (!SWIG_IsOK(res1)) {
82138 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_nh_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82141 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
82142 if (!SWIG_IsOK(ecode2)) {
82143 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_nh_set" "', argument " "2"" of type '" "size_t""'");
82145 arg2 =
static_cast< size_t >(val2);
82146 if (arg1) (arg1)->nh = arg2;
82147 resultobj = SWIG_Py_Void();
82154 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_nh_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82155 PyObject *resultobj = 0;
82159 PyObject * obj0 = 0 ;
82162 if (!PyArg_ParseTuple(args,(
char *)
"O:int_maxheap_array_t_nh_get",&obj0)) SWIG_fail;
82163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82164 if (!SWIG_IsOK(res1)) {
82165 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_nh_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82168 result = (size_t) ((arg1)->nh);
82169 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
82176 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_k_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82177 PyObject *resultobj = 0;
82184 PyObject * obj0 = 0 ;
82185 PyObject * obj1 = 0 ;
82187 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_maxheap_array_t_k_set",&obj0,&obj1)) SWIG_fail;
82188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82189 if (!SWIG_IsOK(res1)) {
82190 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_k_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82193 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
82194 if (!SWIG_IsOK(ecode2)) {
82195 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_k_set" "', argument " "2"" of type '" "size_t""'");
82197 arg2 =
static_cast< size_t >(val2);
82198 if (arg1) (arg1)->k = arg2;
82199 resultobj = SWIG_Py_Void();
82206 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_k_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82207 PyObject *resultobj = 0;
82211 PyObject * obj0 = 0 ;
82214 if (!PyArg_ParseTuple(args,(
char *)
"O:int_maxheap_array_t_k_get",&obj0)) SWIG_fail;
82215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82216 if (!SWIG_IsOK(res1)) {
82217 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_k_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82220 result = (size_t) ((arg1)->k);
82221 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
82228 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_ids_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82229 PyObject *resultobj = 0;
82236 PyObject * obj0 = 0 ;
82237 PyObject * obj1 = 0 ;
82239 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_maxheap_array_t_ids_set",&obj0,&obj1)) SWIG_fail;
82240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82241 if (!SWIG_IsOK(res1)) {
82242 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_ids_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82245 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, SWIG_POINTER_DISOWN | 0 );
82246 if (!SWIG_IsOK(res2)) {
82247 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 *""'");
82250 if (arg1) (arg1)->ids = arg2;
82251 resultobj = SWIG_Py_Void();
82258 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_ids_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82259 PyObject *resultobj = 0;
82263 PyObject * obj0 = 0 ;
82266 if (!PyArg_ParseTuple(args,(
char *)
"O:int_maxheap_array_t_ids_get",&obj0)) SWIG_fail;
82267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82268 if (!SWIG_IsOK(res1)) {
82269 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_ids_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
82280 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_val_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82281 PyObject *resultobj = 0;
82288 PyObject * obj0 = 0 ;
82289 PyObject * obj1 = 0 ;
82291 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_maxheap_array_t_val_set",&obj0,&obj1)) SWIG_fail;
82292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82293 if (!SWIG_IsOK(res1)) {
82294 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_val_set" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82297 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
82298 if (!SWIG_IsOK(res2)) {
82299 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 *""'");
82302 if (arg1) (arg1)->val = arg2;
82303 resultobj = SWIG_Py_Void();
82310 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_val_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82311 PyObject *resultobj = 0;
82315 PyObject * obj0 = 0 ;
82318 if (!PyArg_ParseTuple(args,(
char *)
"O:int_maxheap_array_t_val_get",&obj0)) SWIG_fail;
82319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82320 if (!SWIG_IsOK(res1)) {
82321 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_val_get" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82325 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
82332 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_get_val(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82333 PyObject *resultobj = 0;
82340 PyObject * obj0 = 0 ;
82341 PyObject * obj1 = 0 ;
82344 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_maxheap_array_t_get_val",&obj0,&obj1)) SWIG_fail;
82345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82346 if (!SWIG_IsOK(res1)) {
82347 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_get_val" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82350 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
82351 if (!SWIG_IsOK(ecode2)) {
82352 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_get_val" "', argument " "2"" of type '" "size_t""'");
82354 arg2 =
static_cast< size_t >(val2);
82356 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
82363 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_get_ids(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82364 PyObject *resultobj = 0;
82371 PyObject * obj0 = 0 ;
82372 PyObject * obj1 = 0 ;
82375 if (!PyArg_ParseTuple(args,(
char *)
"OO:int_maxheap_array_t_get_ids",&obj0,&obj1)) SWIG_fail;
82376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82377 if (!SWIG_IsOK(res1)) {
82378 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_get_ids" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82381 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
82382 if (!SWIG_IsOK(ecode2)) {
82383 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_get_ids" "', argument " "2"" of type '" "size_t""'");
82385 arg2 =
static_cast< size_t >(val2);
82387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
82394 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_heapify(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82395 PyObject *resultobj = 0;
82399 PyObject * obj0 = 0 ;
82401 if (!PyArg_ParseTuple(args,(
char *)
"O:int_maxheap_array_t_heapify",&obj0)) SWIG_fail;
82402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82403 if (!SWIG_IsOK(res1)) {
82404 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_heapify" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82408 resultobj = SWIG_Py_Void();
82415 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82416 PyObject *resultobj = 0;
82435 PyObject * obj0 = 0 ;
82436 PyObject * obj1 = 0 ;
82437 PyObject * obj2 = 0 ;
82438 PyObject * obj3 = 0 ;
82439 PyObject * obj4 = 0 ;
82440 PyObject * obj5 = 0 ;
82442 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:int_maxheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
82443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82444 if (!SWIG_IsOK(res1)) {
82445 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82448 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
82449 if (!SWIG_IsOK(ecode2)) {
82450 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
82452 arg2 =
static_cast< size_t >(val2);
82453 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
82454 if (!SWIG_IsOK(res3)) {
82455 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 *""'");
82458 ecode4 = SWIG_AsVal_long(obj3, &val4);
82459 if (!SWIG_IsOK(ecode4)) {
82460 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "int_maxheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::TI""'");
82463 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
82464 if (!SWIG_IsOK(ecode5)) {
82465 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_maxheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
82467 arg5 =
static_cast< size_t >(val5);
82468 ecode6 = SWIG_AsVal_long(obj5, &val6);
82469 if (!SWIG_IsOK(ecode6)) {
82470 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "int_maxheap_array_t_addn" "', argument " "6"" of type '" "long""'");
82472 arg6 =
static_cast< long >(val6);
82474 resultobj = SWIG_Py_Void();
82481 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82482 PyObject *resultobj = 0;
82498 PyObject * obj0 = 0 ;
82499 PyObject * obj1 = 0 ;
82500 PyObject * obj2 = 0 ;
82501 PyObject * obj3 = 0 ;
82502 PyObject * obj4 = 0 ;
82504 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:int_maxheap_array_t_addn",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
82505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82506 if (!SWIG_IsOK(res1)) {
82507 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82510 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
82511 if (!SWIG_IsOK(ecode2)) {
82512 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
82514 arg2 =
static_cast< size_t >(val2);
82515 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
82516 if (!SWIG_IsOK(res3)) {
82517 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 *""'");
82520 ecode4 = SWIG_AsVal_long(obj3, &val4);
82521 if (!SWIG_IsOK(ecode4)) {
82522 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "int_maxheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::TI""'");
82525 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
82526 if (!SWIG_IsOK(ecode5)) {
82527 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_maxheap_array_t_addn" "', argument " "5"" of type '" "size_t""'");
82529 arg5 =
static_cast< size_t >(val5);
82531 resultobj = SWIG_Py_Void();
82538 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82539 PyObject *resultobj = 0;
82552 PyObject * obj0 = 0 ;
82553 PyObject * obj1 = 0 ;
82554 PyObject * obj2 = 0 ;
82555 PyObject * obj3 = 0 ;
82557 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:int_maxheap_array_t_addn",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
82558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82559 if (!SWIG_IsOK(res1)) {
82560 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82563 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
82564 if (!SWIG_IsOK(ecode2)) {
82565 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
82567 arg2 =
static_cast< size_t >(val2);
82568 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
82569 if (!SWIG_IsOK(res3)) {
82570 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 *""'");
82573 ecode4 = SWIG_AsVal_long(obj3, &val4);
82574 if (!SWIG_IsOK(ecode4)) {
82575 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "int_maxheap_array_t_addn" "', argument " "4"" of type '" "faiss::HeapArray< faiss::CMax< int,long > >::TI""'");
82579 resultobj = SWIG_Py_Void();
82586 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
82587 PyObject *resultobj = 0;
82597 PyObject * obj0 = 0 ;
82598 PyObject * obj1 = 0 ;
82599 PyObject * obj2 = 0 ;
82601 if (!PyArg_ParseTuple(args,(
char *)
"OOO:int_maxheap_array_t_addn",&obj0,&obj1,&obj2)) SWIG_fail;
82602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82603 if (!SWIG_IsOK(res1)) {
82604 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_addn" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
82607 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
82608 if (!SWIG_IsOK(ecode2)) {
82609 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn" "', argument " "2"" of type '" "size_t""'");
82611 arg2 =
static_cast< size_t >(val2);
82612 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
82613 if (!SWIG_IsOK(res3)) {
82614 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 *""'");
82618 resultobj = SWIG_Py_Void();
82625 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn(PyObject *self, PyObject *args) {
82627 PyObject *argv[7] = {
82632 if (!PyTuple_Check(args)) SWIG_fail;
82633 argc = args ? PyObject_Length(args) : 0;
82634 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
82635 argv[ii] = PyTuple_GET_ITEM(args,ii);
82640 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
82641 _v = SWIG_CheckState(res);
82644 int res = SWIG_AsVal_size_t(argv[1], NULL);
82645 _v = SWIG_CheckState(res);
82649 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
82650 _v = SWIG_CheckState(res);
82652 return _wrap_int_maxheap_array_t_addn__SWIG_3(
self, args);
82660 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
82661 _v = SWIG_CheckState(res);
82664 int res = SWIG_AsVal_size_t(argv[1], NULL);
82665 _v = SWIG_CheckState(res);
82669 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
82670 _v = SWIG_CheckState(res);
82673 int res = SWIG_AsVal_long(argv[3], NULL);
82674 _v = SWIG_CheckState(res);
82677 return _wrap_int_maxheap_array_t_addn__SWIG_2(
self, args);
82686 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
82687 _v = SWIG_CheckState(res);
82690 int res = SWIG_AsVal_size_t(argv[1], NULL);
82691 _v = SWIG_CheckState(res);
82695 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
82696 _v = SWIG_CheckState(res);
82699 int res = SWIG_AsVal_long(argv[3], NULL);
82700 _v = SWIG_CheckState(res);
82704 int res = SWIG_AsVal_size_t(argv[4], NULL);
82705 _v = SWIG_CheckState(res);
82708 return _wrap_int_maxheap_array_t_addn__SWIG_1(
self, args);
82718 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
82719 _v = SWIG_CheckState(res);
82722 int res = SWIG_AsVal_size_t(argv[1], NULL);
82723 _v = SWIG_CheckState(res);
82727 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
82728 _v = SWIG_CheckState(res);
82731 int res = SWIG_AsVal_long(argv[3], NULL);
82732 _v = SWIG_CheckState(res);
82736 int res = SWIG_AsVal_size_t(argv[4], NULL);
82737 _v = SWIG_CheckState(res);
82741 int res = SWIG_AsVal_long(argv[5], NULL);
82742 _v = SWIG_CheckState(res);
82745 return _wrap_int_maxheap_array_t_addn__SWIG_0(
self, args);
82755 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'int_maxheap_array_t_addn'.\n"
82756 " Possible C/C++ prototypes are:\n"
82757 " 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"
82758 " 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"
82759 " 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"
82760 " faiss::HeapArray< faiss::CMax< int,long > >::addn(size_t,faiss::HeapArray< faiss::CMax< int,long > >::T const *)\n");
82765 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn_with_ids__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82766 PyObject *resultobj = 0;
82788 PyObject * obj0 = 0 ;
82789 PyObject * obj1 = 0 ;
82790 PyObject * obj2 = 0 ;
82791 PyObject * obj3 = 0 ;
82792 PyObject * obj4 = 0 ;
82793 PyObject * obj5 = 0 ;
82794 PyObject * obj6 = 0 ;
82796 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:int_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
82797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82798 if (!SWIG_IsOK(res1)) {
82799 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 > > *""'");
82802 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
82803 if (!SWIG_IsOK(ecode2)) {
82804 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
82806 arg2 =
static_cast< size_t >(val2);
82807 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
82808 if (!SWIG_IsOK(res3)) {
82809 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 *""'");
82812 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
82813 if (!SWIG_IsOK(res4)) {
82814 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 *""'");
82817 ecode5 = SWIG_AsVal_long(obj4, &val5);
82818 if (!SWIG_IsOK(ecode5)) {
82819 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
82821 arg5 =
static_cast< long >(val5);
82822 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
82823 if (!SWIG_IsOK(ecode6)) {
82824 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
82826 arg6 =
static_cast< size_t >(val6);
82827 ecode7 = SWIG_AsVal_long(obj6, &val7);
82828 if (!SWIG_IsOK(ecode7)) {
82829 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "7"" of type '" "long""'");
82831 arg7 =
static_cast< long >(val7);
82833 resultobj = SWIG_Py_Void();
82840 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn_with_ids__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82841 PyObject *resultobj = 0;
82860 PyObject * obj0 = 0 ;
82861 PyObject * obj1 = 0 ;
82862 PyObject * obj2 = 0 ;
82863 PyObject * obj3 = 0 ;
82864 PyObject * obj4 = 0 ;
82865 PyObject * obj5 = 0 ;
82867 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:int_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
82868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82869 if (!SWIG_IsOK(res1)) {
82870 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 > > *""'");
82873 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
82874 if (!SWIG_IsOK(ecode2)) {
82875 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
82877 arg2 =
static_cast< size_t >(val2);
82878 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
82879 if (!SWIG_IsOK(res3)) {
82880 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 *""'");
82883 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
82884 if (!SWIG_IsOK(res4)) {
82885 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 *""'");
82888 ecode5 = SWIG_AsVal_long(obj4, &val5);
82889 if (!SWIG_IsOK(ecode5)) {
82890 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
82892 arg5 =
static_cast< long >(val5);
82893 ecode6 = SWIG_AsVal_size_t(obj5, &val6);
82894 if (!SWIG_IsOK(ecode6)) {
82895 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "6"" of type '" "size_t""'");
82897 arg6 =
static_cast< size_t >(val6);
82899 resultobj = SWIG_Py_Void();
82906 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn_with_ids__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82907 PyObject *resultobj = 0;
82923 PyObject * obj0 = 0 ;
82924 PyObject * obj1 = 0 ;
82925 PyObject * obj2 = 0 ;
82926 PyObject * obj3 = 0 ;
82927 PyObject * obj4 = 0 ;
82929 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:int_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
82930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82931 if (!SWIG_IsOK(res1)) {
82932 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 > > *""'");
82935 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
82936 if (!SWIG_IsOK(ecode2)) {
82937 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
82939 arg2 =
static_cast< size_t >(val2);
82940 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
82941 if (!SWIG_IsOK(res3)) {
82942 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 *""'");
82945 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
82946 if (!SWIG_IsOK(res4)) {
82947 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 *""'");
82950 ecode5 = SWIG_AsVal_long(obj4, &val5);
82951 if (!SWIG_IsOK(ecode5)) {
82952 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "5"" of type '" "long""'");
82954 arg5 =
static_cast< long >(val5);
82956 resultobj = SWIG_Py_Void();
82963 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn_with_ids__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
82964 PyObject *resultobj = 0;
82977 PyObject * obj0 = 0 ;
82978 PyObject * obj1 = 0 ;
82979 PyObject * obj2 = 0 ;
82980 PyObject * obj3 = 0 ;
82982 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:int_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
82983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
82984 if (!SWIG_IsOK(res1)) {
82985 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 > > *""'");
82988 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
82989 if (!SWIG_IsOK(ecode2)) {
82990 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
82992 arg2 =
static_cast< size_t >(val2);
82993 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
82994 if (!SWIG_IsOK(res3)) {
82995 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 *""'");
82998 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
82999 if (!SWIG_IsOK(res4)) {
83000 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 *""'");
83004 resultobj = SWIG_Py_Void();
83011 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn_with_ids__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
83012 PyObject *resultobj = 0;
83022 PyObject * obj0 = 0 ;
83023 PyObject * obj1 = 0 ;
83024 PyObject * obj2 = 0 ;
83026 if (!PyArg_ParseTuple(args,(
char *)
"OOO:int_maxheap_array_t_addn_with_ids",&obj0,&obj1,&obj2)) SWIG_fail;
83027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
83028 if (!SWIG_IsOK(res1)) {
83029 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 > > *""'");
83032 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
83033 if (!SWIG_IsOK(ecode2)) {
83034 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "int_maxheap_array_t_addn_with_ids" "', argument " "2"" of type '" "size_t""'");
83036 arg2 =
static_cast< size_t >(val2);
83037 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
83038 if (!SWIG_IsOK(res3)) {
83039 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 *""'");
83043 resultobj = SWIG_Py_Void();
83050 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_addn_with_ids(PyObject *self, PyObject *args) {
83052 PyObject *argv[8] = {
83057 if (!PyTuple_Check(args)) SWIG_fail;
83058 argc = args ? PyObject_Length(args) : 0;
83059 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
83060 argv[ii] = PyTuple_GET_ITEM(args,ii);
83065 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
83066 _v = SWIG_CheckState(res);
83069 int res = SWIG_AsVal_size_t(argv[1], NULL);
83070 _v = SWIG_CheckState(res);
83074 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
83075 _v = SWIG_CheckState(res);
83077 return _wrap_int_maxheap_array_t_addn_with_ids__SWIG_4(
self, args);
83085 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
83086 _v = SWIG_CheckState(res);
83089 int res = SWIG_AsVal_size_t(argv[1], NULL);
83090 _v = SWIG_CheckState(res);
83094 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
83095 _v = SWIG_CheckState(res);
83098 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
83099 _v = SWIG_CheckState(res);
83101 return _wrap_int_maxheap_array_t_addn_with_ids__SWIG_3(
self, args);
83110 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
83111 _v = SWIG_CheckState(res);
83114 int res = SWIG_AsVal_size_t(argv[1], NULL);
83115 _v = SWIG_CheckState(res);
83119 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
83120 _v = SWIG_CheckState(res);
83123 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
83124 _v = SWIG_CheckState(res);
83127 int res = SWIG_AsVal_long(argv[4], NULL);
83128 _v = SWIG_CheckState(res);
83131 return _wrap_int_maxheap_array_t_addn_with_ids__SWIG_2(
self, args);
83141 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
83142 _v = SWIG_CheckState(res);
83145 int res = SWIG_AsVal_size_t(argv[1], NULL);
83146 _v = SWIG_CheckState(res);
83150 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
83151 _v = SWIG_CheckState(res);
83154 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
83155 _v = SWIG_CheckState(res);
83158 int res = SWIG_AsVal_long(argv[4], NULL);
83159 _v = SWIG_CheckState(res);
83163 int res = SWIG_AsVal_size_t(argv[5], NULL);
83164 _v = SWIG_CheckState(res);
83167 return _wrap_int_maxheap_array_t_addn_with_ids__SWIG_1(
self, args);
83178 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0);
83179 _v = SWIG_CheckState(res);
83182 int res = SWIG_AsVal_size_t(argv[1], NULL);
83183 _v = SWIG_CheckState(res);
83187 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
83188 _v = SWIG_CheckState(res);
83191 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_long, 0);
83192 _v = SWIG_CheckState(res);
83195 int res = SWIG_AsVal_long(argv[4], NULL);
83196 _v = SWIG_CheckState(res);
83200 int res = SWIG_AsVal_size_t(argv[5], NULL);
83201 _v = SWIG_CheckState(res);
83205 int res = SWIG_AsVal_long(argv[6], NULL);
83206 _v = SWIG_CheckState(res);
83209 return _wrap_int_maxheap_array_t_addn_with_ids__SWIG_0(
self, args);
83220 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'int_maxheap_array_t_addn_with_ids'.\n"
83221 " Possible C/C++ prototypes are:\n"
83222 " 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"
83223 " 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"
83224 " 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"
83225 " 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"
83226 " faiss::HeapArray< faiss::CMax< int,long > >::addn_with_ids(size_t,faiss::HeapArray< faiss::CMax< int,long > >::T const *)\n");
83231 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_reorder(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83232 PyObject *resultobj = 0;
83236 PyObject * obj0 = 0 ;
83238 if (!PyArg_ParseTuple(args,(
char *)
"O:int_maxheap_array_t_reorder",&obj0)) SWIG_fail;
83239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
83240 if (!SWIG_IsOK(res1)) {
83241 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "int_maxheap_array_t_reorder" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
83245 resultobj = SWIG_Py_Void();
83252 SWIGINTERN PyObject *_wrap_int_maxheap_array_t_per_line_extrema(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83253 PyObject *resultobj = 0;
83263 PyObject * obj0 = 0 ;
83264 PyObject * obj1 = 0 ;
83265 PyObject * obj2 = 0 ;
83267 if (!PyArg_ParseTuple(args,(
char *)
"OOO:int_maxheap_array_t_per_line_extrema",&obj0,&obj1,&obj2)) SWIG_fail;
83268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, 0 | 0 );
83269 if (!SWIG_IsOK(res1)) {
83270 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 *""'");
83273 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
83274 if (!SWIG_IsOK(res2)) {
83275 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 *""'");
83278 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
83279 if (!SWIG_IsOK(res3)) {
83280 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 *""'");
83284 resultobj = SWIG_Py_Void();
83291 SWIGINTERN PyObject *_wrap_new_int_maxheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83292 PyObject *resultobj = 0;
83295 if (!PyArg_ParseTuple(args,(
char *)
":new_int_maxheap_array_t")) SWIG_fail;
83297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, SWIG_POINTER_NEW | 0 );
83304 SWIGINTERN PyObject *_wrap_delete_int_maxheap_array_t(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83305 PyObject *resultobj = 0;
83309 PyObject * obj0 = 0 ;
83311 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_int_maxheap_array_t",&obj0)) SWIG_fail;
83312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, SWIG_POINTER_DISOWN | 0 );
83313 if (!SWIG_IsOK(res1)) {
83314 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_int_maxheap_array_t" "', argument " "1"" of type '" "faiss::HeapArray< faiss::CMax< int,long > > *""'");
83318 resultobj = SWIG_Py_Void();
83325 SWIGINTERN PyObject *int_maxheap_array_t_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83327 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
83328 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t, SWIG_NewClientData(obj));
83329 return SWIG_Py_Void();
83332 SWIGINTERN PyObject *_wrap_omp_set_num_threads(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83333 PyObject *resultobj = 0;
83337 PyObject * obj0 = 0 ;
83339 if (!PyArg_ParseTuple(args,(
char *)
"O:omp_set_num_threads",&obj0)) SWIG_fail;
83340 ecode1 = SWIG_AsVal_int(obj0, &val1);
83341 if (!SWIG_IsOK(ecode1)) {
83342 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "omp_set_num_threads" "', argument " "1"" of type '" "int""'");
83344 arg1 =
static_cast< int >(val1);
83345 omp_set_num_threads(arg1);
83346 resultobj = SWIG_Py_Void();
83353 SWIGINTERN PyObject *_wrap_omp_get_max_threads(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83354 PyObject *resultobj = 0;
83357 if (!PyArg_ParseTuple(args,(
char *)
":omp_get_max_threads")) SWIG_fail;
83358 result = (int)omp_get_max_threads();
83359 resultobj = SWIG_From_int(static_cast< int >(result));
83366 SWIGINTERN PyObject *_wrap_memcpy(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83367 PyObject *resultobj = 0;
83368 void *arg1 = (
void *) 0 ;
83369 void *arg2 = (
void *) 0 ;
83375 PyObject * obj0 = 0 ;
83376 PyObject * obj1 = 0 ;
83377 PyObject * obj2 = 0 ;
83380 if (!PyArg_ParseTuple(args,(
char *)
"OOO:memcpy",&obj0,&obj1,&obj2)) SWIG_fail;
83381 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
83382 if (!SWIG_IsOK(res1)) {
83383 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "memcpy" "', argument " "1"" of type '" "void *""'");
83385 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
83386 if (!SWIG_IsOK(res2)) {
83387 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "memcpy" "', argument " "2"" of type '" "void const *""'");
83389 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
83390 if (!SWIG_IsOK(ecode3)) {
83391 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "memcpy" "', argument " "3"" of type '" "size_t""'");
83393 arg3 =
static_cast< size_t >(val3);
83394 result = (
void *)memcpy(arg1,(
void const *)arg2,arg3);
83395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
83402 SWIGINTERN PyObject *_wrap_cast_integer_to_float_ptr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83403 PyObject *resultobj = 0;
83407 PyObject * obj0 = 0 ;
83408 float *result = 0 ;
83410 if (!PyArg_ParseTuple(args,(
char *)
"O:cast_integer_to_float_ptr",&obj0)) SWIG_fail;
83411 ecode1 = SWIG_AsVal_long(obj0, &val1);
83412 if (!SWIG_IsOK(ecode1)) {
83413 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "cast_integer_to_float_ptr" "', argument " "1"" of type '" "long""'");
83415 arg1 =
static_cast< long >(val1);
83416 result = (
float *)cast_integer_to_float_ptr(arg1);
83417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
83424 SWIGINTERN PyObject *_wrap_cast_integer_to_long_ptr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83425 PyObject *resultobj = 0;
83429 PyObject * obj0 = 0 ;
83432 if (!PyArg_ParseTuple(args,(
char *)
"O:cast_integer_to_long_ptr",&obj0)) SWIG_fail;
83433 ecode1 = SWIG_AsVal_long(obj0, &val1);
83434 if (!SWIG_IsOK(ecode1)) {
83435 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "cast_integer_to_long_ptr" "', argument " "1"" of type '" "long""'");
83437 arg1 =
static_cast< long >(val1);
83438 result = (
long *)cast_integer_to_long_ptr(arg1);
83439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
83446 SWIGINTERN PyObject *_wrap_cast_integer_to_int_ptr(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83447 PyObject *resultobj = 0;
83451 PyObject * obj0 = 0 ;
83454 if (!PyArg_ParseTuple(args,(
char *)
"O:cast_integer_to_int_ptr",&obj0)) SWIG_fail;
83455 ecode1 = SWIG_AsVal_long(obj0, &val1);
83456 if (!SWIG_IsOK(ecode1)) {
83457 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "cast_integer_to_int_ptr" "', argument " "1"" of type '" "long""'");
83459 arg1 =
static_cast< long >(val1);
83460 result = (
int *)cast_integer_to_int_ptr(arg1);
83461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
83468 SWIGINTERN PyObject *_wrap_RangeSearchResult_nq_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83469 PyObject *resultobj = 0;
83476 PyObject * obj0 = 0 ;
83477 PyObject * obj1 = 0 ;
83479 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchResult_nq_set",&obj0,&obj1)) SWIG_fail;
83480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
83481 if (!SWIG_IsOK(res1)) {
83482 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_nq_set" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
83485 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
83486 if (!SWIG_IsOK(ecode2)) {
83487 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RangeSearchResult_nq_set" "', argument " "2"" of type '" "size_t""'");
83489 arg2 =
static_cast< size_t >(val2);
83490 if (arg1) (arg1)->nq = arg2;
83491 resultobj = SWIG_Py_Void();
83498 SWIGINTERN PyObject *_wrap_RangeSearchResult_nq_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83499 PyObject *resultobj = 0;
83503 PyObject * obj0 = 0 ;
83506 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchResult_nq_get",&obj0)) SWIG_fail;
83507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
83508 if (!SWIG_IsOK(res1)) {
83509 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_nq_get" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
83512 result = (size_t) ((arg1)->nq);
83513 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
83520 SWIGINTERN PyObject *_wrap_RangeSearchResult_lims_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83521 PyObject *resultobj = 0;
83523 size_t *arg2 = (
size_t *) 0 ;
83528 PyObject * obj0 = 0 ;
83529 PyObject * obj1 = 0 ;
83531 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchResult_lims_set",&obj0,&obj1)) SWIG_fail;
83532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
83533 if (!SWIG_IsOK(res1)) {
83534 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_lims_set" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
83537 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_long, SWIG_POINTER_DISOWN | 0 );
83538 if (!SWIG_IsOK(res2)) {
83539 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RangeSearchResult_lims_set" "', argument " "2"" of type '" "size_t *""'");
83541 arg2 =
reinterpret_cast< size_t *
>(argp2);
83542 if (arg1) (arg1)->lims = arg2;
83543 resultobj = SWIG_Py_Void();
83550 SWIGINTERN PyObject *_wrap_RangeSearchResult_lims_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83551 PyObject *resultobj = 0;
83555 PyObject * obj0 = 0 ;
83556 size_t *result = 0 ;
83558 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchResult_lims_get",&obj0)) SWIG_fail;
83559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
83560 if (!SWIG_IsOK(res1)) {
83561 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_lims_get" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
83564 result = (
size_t *) ((arg1)->lims);
83565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long, 0 | 0 );
83572 SWIGINTERN PyObject *_wrap_RangeSearchResult_labels_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83573 PyObject *resultobj = 0;
83575 faiss::RangeSearchResult::idx_t *arg2 = (faiss::RangeSearchResult::idx_t *) 0 ;
83580 PyObject * obj0 = 0 ;
83581 PyObject * obj1 = 0 ;
83583 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchResult_labels_set",&obj0,&obj1)) SWIG_fail;
83584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
83585 if (!SWIG_IsOK(res1)) {
83586 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_labels_set" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
83589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, SWIG_POINTER_DISOWN | 0 );
83590 if (!SWIG_IsOK(res2)) {
83591 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RangeSearchResult_labels_set" "', argument " "2"" of type '" "faiss::RangeSearchResult::idx_t *""'");
83593 arg2 =
reinterpret_cast< faiss::RangeSearchResult::idx_t *
>(argp2);
83594 if (arg1) (arg1)->labels = arg2;
83595 resultobj = SWIG_Py_Void();
83602 SWIGINTERN PyObject *_wrap_RangeSearchResult_labels_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83603 PyObject *resultobj = 0;
83607 PyObject * obj0 = 0 ;
83608 faiss::RangeSearchResult::idx_t *result = 0 ;
83610 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchResult_labels_get",&obj0)) SWIG_fail;
83611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
83612 if (!SWIG_IsOK(res1)) {
83613 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_labels_get" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
83616 result = (faiss::RangeSearchResult::idx_t *) ((arg1)->labels);
83617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0 );
83624 SWIGINTERN PyObject *_wrap_RangeSearchResult_distances_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83625 PyObject *resultobj = 0;
83627 float *arg2 = (
float *) 0 ;
83632 PyObject * obj0 = 0 ;
83633 PyObject * obj1 = 0 ;
83635 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchResult_distances_set",&obj0,&obj1)) SWIG_fail;
83636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
83637 if (!SWIG_IsOK(res1)) {
83638 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_distances_set" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
83641 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
83642 if (!SWIG_IsOK(res2)) {
83643 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RangeSearchResult_distances_set" "', argument " "2"" of type '" "float *""'");
83645 arg2 =
reinterpret_cast< float *
>(argp2);
83646 if (arg1) (arg1)->distances = arg2;
83647 resultobj = SWIG_Py_Void();
83654 SWIGINTERN PyObject *_wrap_RangeSearchResult_distances_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83655 PyObject *resultobj = 0;
83659 PyObject * obj0 = 0 ;
83660 float *result = 0 ;
83662 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchResult_distances_get",&obj0)) SWIG_fail;
83663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
83664 if (!SWIG_IsOK(res1)) {
83665 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_distances_get" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
83668 result = (
float *) ((arg1)->distances);
83669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
83676 SWIGINTERN PyObject *_wrap_RangeSearchResult_buffer_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83677 PyObject *resultobj = 0;
83684 PyObject * obj0 = 0 ;
83685 PyObject * obj1 = 0 ;
83687 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchResult_buffer_size_set",&obj0,&obj1)) SWIG_fail;
83688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
83689 if (!SWIG_IsOK(res1)) {
83690 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_buffer_size_set" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
83693 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
83694 if (!SWIG_IsOK(ecode2)) {
83695 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RangeSearchResult_buffer_size_set" "', argument " "2"" of type '" "size_t""'");
83697 arg2 =
static_cast< size_t >(val2);
83698 if (arg1) (arg1)->buffer_size = arg2;
83699 resultobj = SWIG_Py_Void();
83706 SWIGINTERN PyObject *_wrap_RangeSearchResult_buffer_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83707 PyObject *resultobj = 0;
83711 PyObject * obj0 = 0 ;
83714 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchResult_buffer_size_get",&obj0)) SWIG_fail;
83715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
83716 if (!SWIG_IsOK(res1)) {
83717 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_buffer_size_get" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
83720 result = (size_t) ((arg1)->buffer_size);
83721 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
83728 SWIGINTERN PyObject *_wrap_new_RangeSearchResult__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83729 PyObject *resultobj = 0;
83730 faiss::RangeSearchResult::idx_t arg1 ;
83736 PyObject * obj0 = 0 ;
83737 PyObject * obj1 = 0 ;
83740 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_RangeSearchResult",&obj0,&obj1)) SWIG_fail;
83741 ecode1 = SWIG_AsVal_long(obj0, &val1);
83742 if (!SWIG_IsOK(ecode1)) {
83743 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_RangeSearchResult" "', argument " "1"" of type '" "faiss::RangeSearchResult::idx_t""'");
83745 arg1 =
static_cast< faiss::RangeSearchResult::idx_t
>(val1);
83746 ecode2 = SWIG_AsVal_bool(obj1, &val2);
83747 if (!SWIG_IsOK(ecode2)) {
83748 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_RangeSearchResult" "', argument " "2"" of type '" "bool""'");
83750 arg2 =
static_cast< bool >(val2);
83752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RangeSearchResult, SWIG_POINTER_NEW | 0 );
83759 SWIGINTERN PyObject *_wrap_new_RangeSearchResult__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83760 PyObject *resultobj = 0;
83761 faiss::RangeSearchResult::idx_t arg1 ;
83764 PyObject * obj0 = 0 ;
83767 if (!PyArg_ParseTuple(args,(
char *)
"O:new_RangeSearchResult",&obj0)) SWIG_fail;
83768 ecode1 = SWIG_AsVal_long(obj0, &val1);
83769 if (!SWIG_IsOK(ecode1)) {
83770 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_RangeSearchResult" "', argument " "1"" of type '" "faiss::RangeSearchResult::idx_t""'");
83772 arg1 =
static_cast< faiss::RangeSearchResult::idx_t
>(val1);
83774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RangeSearchResult, SWIG_POINTER_NEW | 0 );
83781 SWIGINTERN PyObject *_wrap_new_RangeSearchResult(PyObject *
self, PyObject *args) {
83783 PyObject *argv[3] = {
83788 if (!PyTuple_Check(args)) SWIG_fail;
83789 argc = args ? PyObject_Length(args) : 0;
83790 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
83791 argv[ii] = PyTuple_GET_ITEM(args,ii);
83796 int res = SWIG_AsVal_long(argv[0], NULL);
83797 _v = SWIG_CheckState(res);
83800 return _wrap_new_RangeSearchResult__SWIG_1(
self, args);
83806 int res = SWIG_AsVal_long(argv[0], NULL);
83807 _v = SWIG_CheckState(res);
83811 int res = SWIG_AsVal_bool(argv[1], NULL);
83812 _v = SWIG_CheckState(res);
83815 return _wrap_new_RangeSearchResult__SWIG_0(
self, args);
83821 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_RangeSearchResult'.\n"
83822 " Possible C/C++ prototypes are:\n"
83823 " faiss::RangeSearchResult::RangeSearchResult(faiss::RangeSearchResult::idx_t,bool)\n"
83824 " faiss::RangeSearchResult::RangeSearchResult(faiss::RangeSearchResult::idx_t)\n");
83829 SWIGINTERN PyObject *_wrap_RangeSearchResult_do_allocation(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83830 PyObject *resultobj = 0;
83834 PyObject * obj0 = 0 ;
83836 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchResult_do_allocation",&obj0)) SWIG_fail;
83837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
83838 if (!SWIG_IsOK(res1)) {
83839 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchResult_do_allocation" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
83842 (arg1)->do_allocation();
83843 resultobj = SWIG_Py_Void();
83850 SWIGINTERN PyObject *_wrap_delete_RangeSearchResult(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83851 PyObject *resultobj = 0;
83855 PyObject * obj0 = 0 ;
83857 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RangeSearchResult",&obj0)) SWIG_fail;
83858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, SWIG_POINTER_DISOWN | 0 );
83859 if (!SWIG_IsOK(res1)) {
83860 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RangeSearchResult" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
83864 resultobj = SWIG_Py_Void();
83871 SWIGINTERN PyObject *RangeSearchResult_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83873 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
83874 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__RangeSearchResult, SWIG_NewClientData(obj));
83875 return SWIG_Py_Void();
83878 SWIGINTERN PyObject *_wrap_IDSelector_is_member(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83879 PyObject *resultobj = 0;
83881 faiss::IDSelector::idx_t arg2 ;
83886 PyObject * obj0 = 0 ;
83887 PyObject * obj1 = 0 ;
83890 if (!PyArg_ParseTuple(args,(
char *)
"OO:IDSelector_is_member",&obj0,&obj1)) SWIG_fail;
83891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelector, 0 | 0 );
83892 if (!SWIG_IsOK(res1)) {
83893 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelector_is_member" "', argument " "1"" of type '" "faiss::IDSelector const *""'");
83896 ecode2 = SWIG_AsVal_long(obj1, &val2);
83897 if (!SWIG_IsOK(ecode2)) {
83898 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IDSelector_is_member" "', argument " "2"" of type '" "faiss::IDSelector::idx_t""'");
83900 arg2 =
static_cast< faiss::IDSelector::idx_t
>(val2);
83902 resultobj = SWIG_From_bool(static_cast< bool >(result));
83909 SWIGINTERN PyObject *_wrap_delete_IDSelector(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83910 PyObject *resultobj = 0;
83914 PyObject * obj0 = 0 ;
83916 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IDSelector",&obj0)) SWIG_fail;
83917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelector, SWIG_POINTER_DISOWN | 0 );
83918 if (!SWIG_IsOK(res1)) {
83919 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IDSelector" "', argument " "1"" of type '" "faiss::IDSelector *""'");
83923 resultobj = SWIG_Py_Void();
83930 SWIGINTERN PyObject *IDSelector_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83932 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
83933 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IDSelector, SWIG_NewClientData(obj));
83934 return SWIG_Py_Void();
83937 SWIGINTERN PyObject *_wrap_IDSelectorRange_imin_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83938 PyObject *resultobj = 0;
83940 faiss::IDSelector::idx_t arg2 ;
83945 PyObject * obj0 = 0 ;
83946 PyObject * obj1 = 0 ;
83948 if (!PyArg_ParseTuple(args,(
char *)
"OO:IDSelectorRange_imin_set",&obj0,&obj1)) SWIG_fail;
83949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorRange, 0 | 0 );
83950 if (!SWIG_IsOK(res1)) {
83951 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorRange_imin_set" "', argument " "1"" of type '" "faiss::IDSelectorRange *""'");
83954 ecode2 = SWIG_AsVal_long(obj1, &val2);
83955 if (!SWIG_IsOK(ecode2)) {
83956 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IDSelectorRange_imin_set" "', argument " "2"" of type '" "faiss::IDSelector::idx_t""'");
83958 arg2 =
static_cast< faiss::IDSelector::idx_t
>(val2);
83959 if (arg1) (arg1)->imin = arg2;
83960 resultobj = SWIG_Py_Void();
83967 SWIGINTERN PyObject *_wrap_IDSelectorRange_imin_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83968 PyObject *resultobj = 0;
83972 PyObject * obj0 = 0 ;
83973 faiss::IDSelector::idx_t result;
83975 if (!PyArg_ParseTuple(args,(
char *)
"O:IDSelectorRange_imin_get",&obj0)) SWIG_fail;
83976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorRange, 0 | 0 );
83977 if (!SWIG_IsOK(res1)) {
83978 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorRange_imin_get" "', argument " "1"" of type '" "faiss::IDSelectorRange *""'");
83981 result = (faiss::IDSelector::idx_t) ((arg1)->imin);
83982 resultobj = SWIG_From_long(static_cast< long >(result));
83989 SWIGINTERN PyObject *_wrap_IDSelectorRange_imax_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
83990 PyObject *resultobj = 0;
83992 faiss::IDSelector::idx_t arg2 ;
83997 PyObject * obj0 = 0 ;
83998 PyObject * obj1 = 0 ;
84000 if (!PyArg_ParseTuple(args,(
char *)
"OO:IDSelectorRange_imax_set",&obj0,&obj1)) SWIG_fail;
84001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorRange, 0 | 0 );
84002 if (!SWIG_IsOK(res1)) {
84003 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorRange_imax_set" "', argument " "1"" of type '" "faiss::IDSelectorRange *""'");
84006 ecode2 = SWIG_AsVal_long(obj1, &val2);
84007 if (!SWIG_IsOK(ecode2)) {
84008 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IDSelectorRange_imax_set" "', argument " "2"" of type '" "faiss::IDSelector::idx_t""'");
84010 arg2 =
static_cast< faiss::IDSelector::idx_t
>(val2);
84011 if (arg1) (arg1)->imax = arg2;
84012 resultobj = SWIG_Py_Void();
84019 SWIGINTERN PyObject *_wrap_IDSelectorRange_imax_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84020 PyObject *resultobj = 0;
84024 PyObject * obj0 = 0 ;
84025 faiss::IDSelector::idx_t result;
84027 if (!PyArg_ParseTuple(args,(
char *)
"O:IDSelectorRange_imax_get",&obj0)) SWIG_fail;
84028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorRange, 0 | 0 );
84029 if (!SWIG_IsOK(res1)) {
84030 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorRange_imax_get" "', argument " "1"" of type '" "faiss::IDSelectorRange *""'");
84033 result = (faiss::IDSelector::idx_t) ((arg1)->imax);
84034 resultobj = SWIG_From_long(static_cast< long >(result));
84041 SWIGINTERN PyObject *_wrap_new_IDSelectorRange(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84042 PyObject *resultobj = 0;
84043 faiss::IDSelector::idx_t arg1 ;
84044 faiss::IDSelector::idx_t arg2 ;
84049 PyObject * obj0 = 0 ;
84050 PyObject * obj1 = 0 ;
84053 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IDSelectorRange",&obj0,&obj1)) SWIG_fail;
84054 ecode1 = SWIG_AsVal_long(obj0, &val1);
84055 if (!SWIG_IsOK(ecode1)) {
84056 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IDSelectorRange" "', argument " "1"" of type '" "faiss::IDSelector::idx_t""'");
84058 arg1 =
static_cast< faiss::IDSelector::idx_t
>(val1);
84059 ecode2 = SWIG_AsVal_long(obj1, &val2);
84060 if (!SWIG_IsOK(ecode2)) {
84061 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_IDSelectorRange" "', argument " "2"" of type '" "faiss::IDSelector::idx_t""'");
84063 arg2 =
static_cast< faiss::IDSelector::idx_t
>(val2);
84065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IDSelectorRange, SWIG_POINTER_NEW | 0 );
84072 SWIGINTERN PyObject *_wrap_IDSelectorRange_is_member(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84073 PyObject *resultobj = 0;
84075 faiss::IDSelector::idx_t arg2 ;
84080 PyObject * obj0 = 0 ;
84081 PyObject * obj1 = 0 ;
84084 if (!PyArg_ParseTuple(args,(
char *)
"OO:IDSelectorRange_is_member",&obj0,&obj1)) SWIG_fail;
84085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorRange, 0 | 0 );
84086 if (!SWIG_IsOK(res1)) {
84087 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorRange_is_member" "', argument " "1"" of type '" "faiss::IDSelectorRange const *""'");
84090 ecode2 = SWIG_AsVal_long(obj1, &val2);
84091 if (!SWIG_IsOK(ecode2)) {
84092 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IDSelectorRange_is_member" "', argument " "2"" of type '" "faiss::IDSelector::idx_t""'");
84094 arg2 =
static_cast< faiss::IDSelector::idx_t
>(val2);
84096 resultobj = SWIG_From_bool(static_cast< bool >(result));
84103 SWIGINTERN PyObject *_wrap_delete_IDSelectorRange(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84104 PyObject *resultobj = 0;
84108 PyObject * obj0 = 0 ;
84110 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IDSelectorRange",&obj0)) SWIG_fail;
84111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorRange, SWIG_POINTER_DISOWN | 0 );
84112 if (!SWIG_IsOK(res1)) {
84113 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IDSelectorRange" "', argument " "1"" of type '" "faiss::IDSelectorRange *""'");
84117 resultobj = SWIG_Py_Void();
84124 SWIGINTERN PyObject *IDSelectorRange_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84126 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
84127 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IDSelectorRange, SWIG_NewClientData(obj));
84128 return SWIG_Py_Void();
84131 SWIGINTERN PyObject *_wrap_IDSelectorBatch_nbits_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84132 PyObject *resultobj = 0;
84139 PyObject * obj0 = 0 ;
84140 PyObject * obj1 = 0 ;
84142 if (!PyArg_ParseTuple(args,(
char *)
"OO:IDSelectorBatch_nbits_set",&obj0,&obj1)) SWIG_fail;
84143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorBatch, 0 | 0 );
84144 if (!SWIG_IsOK(res1)) {
84145 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorBatch_nbits_set" "', argument " "1"" of type '" "faiss::IDSelectorBatch *""'");
84148 ecode2 = SWIG_AsVal_int(obj1, &val2);
84149 if (!SWIG_IsOK(ecode2)) {
84150 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IDSelectorBatch_nbits_set" "', argument " "2"" of type '" "int""'");
84152 arg2 =
static_cast< int >(val2);
84153 if (arg1) (arg1)->nbits = arg2;
84154 resultobj = SWIG_Py_Void();
84161 SWIGINTERN PyObject *_wrap_IDSelectorBatch_nbits_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84162 PyObject *resultobj = 0;
84166 PyObject * obj0 = 0 ;
84169 if (!PyArg_ParseTuple(args,(
char *)
"O:IDSelectorBatch_nbits_get",&obj0)) SWIG_fail;
84170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorBatch, 0 | 0 );
84171 if (!SWIG_IsOK(res1)) {
84172 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorBatch_nbits_get" "', argument " "1"" of type '" "faiss::IDSelectorBatch *""'");
84175 result = (int) ((arg1)->nbits);
84176 resultobj = SWIG_From_int(static_cast< int >(result));
84183 SWIGINTERN PyObject *_wrap_IDSelectorBatch_mask_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84184 PyObject *resultobj = 0;
84186 faiss::IDSelector::idx_t arg2 ;
84191 PyObject * obj0 = 0 ;
84192 PyObject * obj1 = 0 ;
84194 if (!PyArg_ParseTuple(args,(
char *)
"OO:IDSelectorBatch_mask_set",&obj0,&obj1)) SWIG_fail;
84195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorBatch, 0 | 0 );
84196 if (!SWIG_IsOK(res1)) {
84197 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorBatch_mask_set" "', argument " "1"" of type '" "faiss::IDSelectorBatch *""'");
84200 ecode2 = SWIG_AsVal_long(obj1, &val2);
84201 if (!SWIG_IsOK(ecode2)) {
84202 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IDSelectorBatch_mask_set" "', argument " "2"" of type '" "faiss::IDSelector::idx_t""'");
84204 arg2 =
static_cast< faiss::IDSelector::idx_t
>(val2);
84205 if (arg1) (arg1)->mask = arg2;
84206 resultobj = SWIG_Py_Void();
84213 SWIGINTERN PyObject *_wrap_IDSelectorBatch_mask_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84214 PyObject *resultobj = 0;
84218 PyObject * obj0 = 0 ;
84219 faiss::IDSelector::idx_t result;
84221 if (!PyArg_ParseTuple(args,(
char *)
"O:IDSelectorBatch_mask_get",&obj0)) SWIG_fail;
84222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorBatch, 0 | 0 );
84223 if (!SWIG_IsOK(res1)) {
84224 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorBatch_mask_get" "', argument " "1"" of type '" "faiss::IDSelectorBatch *""'");
84227 result = (faiss::IDSelector::idx_t) ((arg1)->mask);
84228 resultobj = SWIG_From_long(static_cast< long >(result));
84235 SWIGINTERN PyObject *_wrap_new_IDSelectorBatch(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84236 PyObject *resultobj = 0;
84238 faiss::IDSelector::idx_t *arg2 = (faiss::IDSelector::idx_t *) 0 ;
84243 PyObject * obj0 = 0 ;
84244 PyObject * obj1 = 0 ;
84247 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_IDSelectorBatch",&obj0,&obj1)) SWIG_fail;
84248 ecode1 = SWIG_AsVal_long(obj0, &val1);
84249 if (!SWIG_IsOK(ecode1)) {
84250 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_IDSelectorBatch" "', argument " "1"" of type '" "long""'");
84252 arg1 =
static_cast< long >(val1);
84253 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_long, 0 | 0 );
84254 if (!SWIG_IsOK(res2)) {
84255 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_IDSelectorBatch" "', argument " "2"" of type '" "faiss::IDSelector::idx_t const *""'");
84257 arg2 =
reinterpret_cast< faiss::IDSelector::idx_t *
>(argp2);
84259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__IDSelectorBatch, SWIG_POINTER_NEW | 0 );
84266 SWIGINTERN PyObject *_wrap_IDSelectorBatch_is_member(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84267 PyObject *resultobj = 0;
84269 faiss::IDSelector::idx_t arg2 ;
84274 PyObject * obj0 = 0 ;
84275 PyObject * obj1 = 0 ;
84278 if (!PyArg_ParseTuple(args,(
char *)
"OO:IDSelectorBatch_is_member",&obj0,&obj1)) SWIG_fail;
84279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorBatch, 0 | 0 );
84280 if (!SWIG_IsOK(res1)) {
84281 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IDSelectorBatch_is_member" "', argument " "1"" of type '" "faiss::IDSelectorBatch const *""'");
84284 ecode2 = SWIG_AsVal_long(obj1, &val2);
84285 if (!SWIG_IsOK(ecode2)) {
84286 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "IDSelectorBatch_is_member" "', argument " "2"" of type '" "faiss::IDSelector::idx_t""'");
84288 arg2 =
static_cast< faiss::IDSelector::idx_t
>(val2);
84290 resultobj = SWIG_From_bool(static_cast< bool >(result));
84297 SWIGINTERN PyObject *_wrap_delete_IDSelectorBatch(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84298 PyObject *resultobj = 0;
84302 PyObject * obj0 = 0 ;
84304 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IDSelectorBatch",&obj0)) SWIG_fail;
84305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IDSelectorBatch, SWIG_POINTER_DISOWN | 0 );
84306 if (!SWIG_IsOK(res1)) {
84307 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IDSelectorBatch" "', argument " "1"" of type '" "faiss::IDSelectorBatch *""'");
84311 resultobj = SWIG_Py_Void();
84318 SWIGINTERN PyObject *IDSelectorBatch_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84320 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
84321 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IDSelectorBatch, SWIG_NewClientData(obj));
84322 return SWIG_Py_Void();
84325 SWIGINTERN PyObject *_wrap_BufferList_buffer_size_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84326 PyObject *resultobj = 0;
84333 PyObject * obj0 = 0 ;
84334 PyObject * obj1 = 0 ;
84336 if (!PyArg_ParseTuple(args,(
char *)
"OO:BufferList_buffer_size_set",&obj0,&obj1)) SWIG_fail;
84337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
84338 if (!SWIG_IsOK(res1)) {
84339 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_buffer_size_set" "', argument " "1"" of type '" "faiss::BufferList *""'");
84342 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
84343 if (!SWIG_IsOK(ecode2)) {
84344 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BufferList_buffer_size_set" "', argument " "2"" of type '" "size_t""'");
84346 arg2 =
static_cast< size_t >(val2);
84347 if (arg1) (arg1)->buffer_size = arg2;
84348 resultobj = SWIG_Py_Void();
84355 SWIGINTERN PyObject *_wrap_BufferList_buffer_size_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84356 PyObject *resultobj = 0;
84360 PyObject * obj0 = 0 ;
84363 if (!PyArg_ParseTuple(args,(
char *)
"O:BufferList_buffer_size_get",&obj0)) SWIG_fail;
84364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
84365 if (!SWIG_IsOK(res1)) {
84366 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_buffer_size_get" "', argument " "1"" of type '" "faiss::BufferList *""'");
84369 result = (size_t) ((arg1)->buffer_size);
84370 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
84377 SWIGINTERN PyObject *_wrap_BufferList_buffers_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84378 PyObject *resultobj = 0;
84380 std::vector< faiss::BufferList::Buffer > *arg2 = (std::vector< faiss::BufferList::Buffer > *) 0 ;
84385 PyObject * obj0 = 0 ;
84386 PyObject * obj1 = 0 ;
84388 if (!PyArg_ParseTuple(args,(
char *)
"OO:BufferList_buffers_set",&obj0,&obj1)) SWIG_fail;
84389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
84390 if (!SWIG_IsOK(res1)) {
84391 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_buffers_set" "', argument " "1"" of type '" "faiss::BufferList *""'");
84394 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t, 0 | 0 );
84395 if (!SWIG_IsOK(res2)) {
84396 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BufferList_buffers_set" "', argument " "2"" of type '" "std::vector< faiss::BufferList::Buffer > *""'");
84398 arg2 =
reinterpret_cast< std::vector< faiss::BufferList::Buffer > *
>(argp2);
84399 if (arg1) (arg1)->buffers = *arg2;
84400 resultobj = SWIG_Py_Void();
84407 SWIGINTERN PyObject *_wrap_BufferList_buffers_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84408 PyObject *resultobj = 0;
84412 PyObject * obj0 = 0 ;
84413 std::vector< faiss::BufferList::Buffer > *result = 0 ;
84415 if (!PyArg_ParseTuple(args,(
char *)
"O:BufferList_buffers_get",&obj0)) SWIG_fail;
84416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
84417 if (!SWIG_IsOK(res1)) {
84418 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_buffers_get" "', argument " "1"" of type '" "faiss::BufferList *""'");
84421 result = (std::vector< faiss::BufferList::Buffer > *)& ((arg1)->buffers);
84422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t, 0 | 0 );
84429 SWIGINTERN PyObject *_wrap_BufferList_wp_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84430 PyObject *resultobj = 0;
84437 PyObject * obj0 = 0 ;
84438 PyObject * obj1 = 0 ;
84440 if (!PyArg_ParseTuple(args,(
char *)
"OO:BufferList_wp_set",&obj0,&obj1)) SWIG_fail;
84441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
84442 if (!SWIG_IsOK(res1)) {
84443 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_wp_set" "', argument " "1"" of type '" "faiss::BufferList *""'");
84446 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
84447 if (!SWIG_IsOK(ecode2)) {
84448 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BufferList_wp_set" "', argument " "2"" of type '" "size_t""'");
84450 arg2 =
static_cast< size_t >(val2);
84451 if (arg1) (arg1)->wp = arg2;
84452 resultobj = SWIG_Py_Void();
84459 SWIGINTERN PyObject *_wrap_BufferList_wp_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84460 PyObject *resultobj = 0;
84464 PyObject * obj0 = 0 ;
84467 if (!PyArg_ParseTuple(args,(
char *)
"O:BufferList_wp_get",&obj0)) SWIG_fail;
84468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
84469 if (!SWIG_IsOK(res1)) {
84470 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_wp_get" "', argument " "1"" of type '" "faiss::BufferList *""'");
84473 result = (size_t) ((arg1)->wp);
84474 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
84481 SWIGINTERN PyObject *_wrap_new_BufferList(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84482 PyObject *resultobj = 0;
84486 PyObject * obj0 = 0 ;
84489 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BufferList",&obj0)) SWIG_fail;
84490 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
84491 if (!SWIG_IsOK(ecode1)) {
84492 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_BufferList" "', argument " "1"" of type '" "size_t""'");
84494 arg1 =
static_cast< size_t >(val1);
84496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__BufferList, SWIG_POINTER_NEW | 0 );
84503 SWIGINTERN PyObject *_wrap_delete_BufferList(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84504 PyObject *resultobj = 0;
84508 PyObject * obj0 = 0 ;
84510 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BufferList",&obj0)) SWIG_fail;
84511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, SWIG_POINTER_DISOWN | 0 );
84512 if (!SWIG_IsOK(res1)) {
84513 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BufferList" "', argument " "1"" of type '" "faiss::BufferList *""'");
84517 resultobj = SWIG_Py_Void();
84524 SWIGINTERN PyObject *_wrap_BufferList_append_buffer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84525 PyObject *resultobj = 0;
84529 PyObject * obj0 = 0 ;
84531 if (!PyArg_ParseTuple(args,(
char *)
"O:BufferList_append_buffer",&obj0)) SWIG_fail;
84532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
84533 if (!SWIG_IsOK(res1)) {
84534 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_append_buffer" "', argument " "1"" of type '" "faiss::BufferList *""'");
84537 (arg1)->append_buffer();
84538 resultobj = SWIG_Py_Void();
84545 SWIGINTERN PyObject *_wrap_BufferList_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84546 PyObject *resultobj = 0;
84548 faiss::BufferList::idx_t arg2 ;
84556 PyObject * obj0 = 0 ;
84557 PyObject * obj1 = 0 ;
84558 PyObject * obj2 = 0 ;
84560 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BufferList_add",&obj0,&obj1,&obj2)) SWIG_fail;
84561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
84562 if (!SWIG_IsOK(res1)) {
84563 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_add" "', argument " "1"" of type '" "faiss::BufferList *""'");
84566 ecode2 = SWIG_AsVal_long(obj1, &val2);
84567 if (!SWIG_IsOK(ecode2)) {
84568 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BufferList_add" "', argument " "2"" of type '" "faiss::BufferList::idx_t""'");
84570 arg2 =
static_cast< faiss::BufferList::idx_t
>(val2);
84571 ecode3 = SWIG_AsVal_float(obj2, &val3);
84572 if (!SWIG_IsOK(ecode3)) {
84573 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BufferList_add" "', argument " "3"" of type '" "float""'");
84575 arg3 =
static_cast< float >(val3);
84576 (arg1)->add(arg2,arg3);
84577 resultobj = SWIG_Py_Void();
84584 SWIGINTERN PyObject *_wrap_BufferList_copy_range(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84585 PyObject *resultobj = 0;
84589 faiss::BufferList::idx_t *arg4 = (faiss::BufferList::idx_t *) 0 ;
84590 float *arg5 = (
float *) 0 ;
84601 PyObject * obj0 = 0 ;
84602 PyObject * obj1 = 0 ;
84603 PyObject * obj2 = 0 ;
84604 PyObject * obj3 = 0 ;
84605 PyObject * obj4 = 0 ;
84607 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:BufferList_copy_range",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
84608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__BufferList, 0 | 0 );
84609 if (!SWIG_IsOK(res1)) {
84610 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BufferList_copy_range" "', argument " "1"" of type '" "faiss::BufferList *""'");
84613 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
84614 if (!SWIG_IsOK(ecode2)) {
84615 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BufferList_copy_range" "', argument " "2"" of type '" "size_t""'");
84617 arg2 =
static_cast< size_t >(val2);
84618 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
84619 if (!SWIG_IsOK(ecode3)) {
84620 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BufferList_copy_range" "', argument " "3"" of type '" "size_t""'");
84622 arg3 =
static_cast< size_t >(val3);
84623 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
84624 if (!SWIG_IsOK(res4)) {
84625 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BufferList_copy_range" "', argument " "4"" of type '" "faiss::BufferList::idx_t *""'");
84627 arg4 =
reinterpret_cast< faiss::BufferList::idx_t *
>(argp4);
84628 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
84629 if (!SWIG_IsOK(res5)) {
84630 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BufferList_copy_range" "', argument " "5"" of type '" "float *""'");
84632 arg5 =
reinterpret_cast< float *
>(argp5);
84633 (arg1)->copy_range(arg2,arg3,arg4,arg5);
84634 resultobj = SWIG_Py_Void();
84641 SWIGINTERN PyObject *BufferList_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84643 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
84644 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__BufferList, SWIG_NewClientData(obj));
84645 return SWIG_Py_Void();
84648 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_res_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84649 PyObject *resultobj = 0;
84656 PyObject * obj0 = 0 ;
84657 PyObject * obj1 = 0 ;
84659 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchPartialResult_res_set",&obj0,&obj1)) SWIG_fail;
84660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
84661 if (!SWIG_IsOK(res1)) {
84662 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_res_set" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
84665 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_faiss__RangeSearchResult, SWIG_POINTER_DISOWN | 0 );
84666 if (!SWIG_IsOK(res2)) {
84667 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RangeSearchPartialResult_res_set" "', argument " "2"" of type '" "faiss::RangeSearchResult *""'");
84670 if (arg1) (arg1)->res = arg2;
84671 resultobj = SWIG_Py_Void();
84678 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_res_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84679 PyObject *resultobj = 0;
84683 PyObject * obj0 = 0 ;
84686 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchPartialResult_res_get",&obj0)) SWIG_fail;
84687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
84688 if (!SWIG_IsOK(res1)) {
84689 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_res_get" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
84693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
84700 SWIGINTERN PyObject *_wrap_new_RangeSearchPartialResult(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84701 PyObject *resultobj = 0;
84705 PyObject * obj0 = 0 ;
84708 if (!PyArg_ParseTuple(args,(
char *)
"O:new_RangeSearchPartialResult",&obj0)) SWIG_fail;
84709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchResult, 0 | 0 );
84710 if (!SWIG_IsOK(res1)) {
84711 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_RangeSearchPartialResult" "', argument " "1"" of type '" "faiss::RangeSearchResult *""'");
84715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RangeSearchPartialResult, SWIG_POINTER_NEW | 0 );
84722 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_queries_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84723 PyObject *resultobj = 0;
84725 std::vector< faiss::RangeSearchPartialResult::QueryResult > *arg2 = (std::vector< faiss::RangeSearchPartialResult::QueryResult > *) 0 ;
84730 PyObject * obj0 = 0 ;
84731 PyObject * obj1 = 0 ;
84733 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchPartialResult_queries_set",&obj0,&obj1)) SWIG_fail;
84734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
84735 if (!SWIG_IsOK(res1)) {
84736 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_queries_set" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
84739 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult__QueryResult_t, 0 | 0 );
84740 if (!SWIG_IsOK(res2)) {
84741 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RangeSearchPartialResult_queries_set" "', argument " "2"" of type '" "std::vector< faiss::RangeSearchPartialResult::QueryResult > *""'");
84743 arg2 =
reinterpret_cast< std::vector< faiss::RangeSearchPartialResult::QueryResult > *
>(argp2);
84744 if (arg1) (arg1)->queries = *arg2;
84745 resultobj = SWIG_Py_Void();
84752 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_queries_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84753 PyObject *resultobj = 0;
84757 PyObject * obj0 = 0 ;
84758 std::vector< faiss::RangeSearchPartialResult::QueryResult > *result = 0 ;
84760 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchPartialResult_queries_get",&obj0)) SWIG_fail;
84761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
84762 if (!SWIG_IsOK(res1)) {
84763 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_queries_get" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
84766 result = (std::vector< faiss::RangeSearchPartialResult::QueryResult > *)& ((arg1)->queries);
84767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult__QueryResult_t, 0 | 0 );
84774 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_new_result(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84775 PyObject *resultobj = 0;
84777 faiss::BufferList::idx_t arg2 ;
84782 PyObject * obj0 = 0 ;
84783 PyObject * obj1 = 0 ;
84786 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchPartialResult_new_result",&obj0,&obj1)) SWIG_fail;
84787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
84788 if (!SWIG_IsOK(res1)) {
84789 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_new_result" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
84792 ecode2 = SWIG_AsVal_long(obj1, &val2);
84793 if (!SWIG_IsOK(ecode2)) {
84794 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RangeSearchPartialResult_new_result" "', argument " "2"" of type '" "faiss::BufferList::idx_t""'");
84796 arg2 =
static_cast< faiss::BufferList::idx_t
>(val2);
84798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__RangeSearchPartialResult__QueryResult, 0 | 0 );
84805 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_finalize(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84806 PyObject *resultobj = 0;
84810 PyObject * obj0 = 0 ;
84812 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchPartialResult_finalize",&obj0)) SWIG_fail;
84813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
84814 if (!SWIG_IsOK(res1)) {
84815 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_finalize" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
84818 (arg1)->finalize();
84819 resultobj = SWIG_Py_Void();
84826 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_set_lims(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84827 PyObject *resultobj = 0;
84831 PyObject * obj0 = 0 ;
84833 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchPartialResult_set_lims",&obj0)) SWIG_fail;
84834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
84835 if (!SWIG_IsOK(res1)) {
84836 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_set_lims" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
84839 (arg1)->set_lims();
84840 resultobj = SWIG_Py_Void();
84847 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_set_result__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84848 PyObject *resultobj = 0;
84855 PyObject * obj0 = 0 ;
84856 PyObject * obj1 = 0 ;
84858 if (!PyArg_ParseTuple(args,(
char *)
"OO:RangeSearchPartialResult_set_result",&obj0,&obj1)) SWIG_fail;
84859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
84860 if (!SWIG_IsOK(res1)) {
84861 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_set_result" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
84864 ecode2 = SWIG_AsVal_bool(obj1, &val2);
84865 if (!SWIG_IsOK(ecode2)) {
84866 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RangeSearchPartialResult_set_result" "', argument " "2"" of type '" "bool""'");
84868 arg2 =
static_cast< bool >(val2);
84869 (arg1)->set_result(arg2);
84870 resultobj = SWIG_Py_Void();
84877 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_set_result__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84878 PyObject *resultobj = 0;
84882 PyObject * obj0 = 0 ;
84884 if (!PyArg_ParseTuple(args,(
char *)
"O:RangeSearchPartialResult_set_result",&obj0)) SWIG_fail;
84885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, 0 | 0 );
84886 if (!SWIG_IsOK(res1)) {
84887 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RangeSearchPartialResult_set_result" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
84890 (arg1)->set_result();
84891 resultobj = SWIG_Py_Void();
84898 SWIGINTERN PyObject *_wrap_RangeSearchPartialResult_set_result(PyObject *
self, PyObject *args) {
84900 PyObject *argv[3] = {
84905 if (!PyTuple_Check(args)) SWIG_fail;
84906 argc = args ? PyObject_Length(args) : 0;
84907 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
84908 argv[ii] = PyTuple_GET_ITEM(args,ii);
84913 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__RangeSearchPartialResult, 0);
84914 _v = SWIG_CheckState(res);
84916 return _wrap_RangeSearchPartialResult_set_result__SWIG_1(
self, args);
84922 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_faiss__RangeSearchPartialResult, 0);
84923 _v = SWIG_CheckState(res);
84926 int res = SWIG_AsVal_bool(argv[1], NULL);
84927 _v = SWIG_CheckState(res);
84930 return _wrap_RangeSearchPartialResult_set_result__SWIG_0(
self, args);
84936 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'RangeSearchPartialResult_set_result'.\n"
84937 " Possible C/C++ prototypes are:\n"
84938 " faiss::RangeSearchPartialResult::set_result(bool)\n"
84939 " faiss::RangeSearchPartialResult::set_result()\n");
84944 SWIGINTERN PyObject *_wrap_delete_RangeSearchPartialResult(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84945 PyObject *resultobj = 0;
84949 PyObject * obj0 = 0 ;
84951 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RangeSearchPartialResult",&obj0)) SWIG_fail;
84952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__RangeSearchPartialResult, SWIG_POINTER_DISOWN | 0 );
84953 if (!SWIG_IsOK(res1)) {
84954 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RangeSearchPartialResult" "', argument " "1"" of type '" "faiss::RangeSearchPartialResult *""'");
84958 resultobj = SWIG_Py_Void();
84965 SWIGINTERN PyObject *RangeSearchPartialResult_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84967 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
84968 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__RangeSearchPartialResult, SWIG_NewClientData(obj));
84969 return SWIG_Py_Void();
84972 SWIGINTERN PyObject *_wrap_IOReader_name_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
84973 PyObject *resultobj = 0;
84975 std::string *arg2 = 0 ;
84978 int res2 = SWIG_OLDOBJ ;
84979 PyObject * obj0 = 0 ;
84980 PyObject * obj1 = 0 ;
84982 if (!PyArg_ParseTuple(args,(
char *)
"OO:IOReader_name_set",&obj0,&obj1)) SWIG_fail;
84983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
84984 if (!SWIG_IsOK(res1)) {
84985 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOReader_name_set" "', argument " "1"" of type '" "faiss::IOReader *""'");
84989 std::string *ptr = (std::string *)0;
84990 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
84991 if (!SWIG_IsOK(res2)) {
84992 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IOReader_name_set" "', argument " "2"" of type '" "std::string const &""'");
84995 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IOReader_name_set" "', argument " "2"" of type '" "std::string const &""'");
84999 if (arg1) (arg1)->name = *arg2;
85000 resultobj = SWIG_Py_Void();
85001 if (SWIG_IsNewObj(res2))
delete arg2;
85004 if (SWIG_IsNewObj(res2))
delete arg2;
85009 SWIGINTERN PyObject *_wrap_IOReader_name_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85010 PyObject *resultobj = 0;
85014 PyObject * obj0 = 0 ;
85015 std::string *result = 0 ;
85017 if (!PyArg_ParseTuple(args,(
char *)
"O:IOReader_name_get",&obj0)) SWIG_fail;
85018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
85019 if (!SWIG_IsOK(res1)) {
85020 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOReader_name_get" "', argument " "1"" of type '" "faiss::IOReader *""'");
85023 result = (std::string *) & ((arg1)->name);
85024 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
85031 SWIGINTERN PyObject *_wrap_IOReader___call__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85032 PyObject *resultobj = 0;
85034 void *arg2 = (
void *) 0 ;
85044 PyObject * obj0 = 0 ;
85045 PyObject * obj1 = 0 ;
85046 PyObject * obj2 = 0 ;
85047 PyObject * obj3 = 0 ;
85050 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IOReader___call__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
85051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
85052 if (!SWIG_IsOK(res1)) {
85053 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOReader___call__" "', argument " "1"" of type '" "faiss::IOReader *""'");
85056 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
85057 if (!SWIG_IsOK(res2)) {
85058 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IOReader___call__" "', argument " "2"" of type '" "void *""'");
85060 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
85061 if (!SWIG_IsOK(ecode3)) {
85062 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IOReader___call__" "', argument " "3"" of type '" "size_t""'");
85064 arg3 =
static_cast< size_t >(val3);
85065 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
85066 if (!SWIG_IsOK(ecode4)) {
85067 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IOReader___call__" "', argument " "4"" of type '" "size_t""'");
85069 arg4 =
static_cast< size_t >(val4);
85070 result = (size_t)(arg1)->operator ()(arg2,arg3,arg4);
85071 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
85078 SWIGINTERN PyObject *_wrap_IOReader_fileno(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85079 PyObject *resultobj = 0;
85083 PyObject * obj0 = 0 ;
85086 if (!PyArg_ParseTuple(args,(
char *)
"O:IOReader_fileno",&obj0)) SWIG_fail;
85087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, 0 | 0 );
85088 if (!SWIG_IsOK(res1)) {
85089 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOReader_fileno" "', argument " "1"" of type '" "faiss::IOReader *""'");
85092 result = (int)(arg1)->fileno();
85093 resultobj = SWIG_From_int(static_cast< int >(result));
85100 SWIGINTERN PyObject *_wrap_delete_IOReader(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85101 PyObject *resultobj = 0;
85105 PyObject * obj0 = 0 ;
85107 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IOReader",&obj0)) SWIG_fail;
85108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOReader, SWIG_POINTER_DISOWN | 0 );
85109 if (!SWIG_IsOK(res1)) {
85110 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IOReader" "', argument " "1"" of type '" "faiss::IOReader *""'");
85114 resultobj = SWIG_Py_Void();
85121 SWIGINTERN PyObject *IOReader_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85123 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
85124 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IOReader, SWIG_NewClientData(obj));
85125 return SWIG_Py_Void();
85128 SWIGINTERN PyObject *_wrap_IOWriter_name_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85129 PyObject *resultobj = 0;
85131 std::string *arg2 = 0 ;
85134 int res2 = SWIG_OLDOBJ ;
85135 PyObject * obj0 = 0 ;
85136 PyObject * obj1 = 0 ;
85138 if (!PyArg_ParseTuple(args,(
char *)
"OO:IOWriter_name_set",&obj0,&obj1)) SWIG_fail;
85139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
85140 if (!SWIG_IsOK(res1)) {
85141 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOWriter_name_set" "', argument " "1"" of type '" "faiss::IOWriter *""'");
85145 std::string *ptr = (std::string *)0;
85146 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
85147 if (!SWIG_IsOK(res2)) {
85148 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IOWriter_name_set" "', argument " "2"" of type '" "std::string const &""'");
85151 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "IOWriter_name_set" "', argument " "2"" of type '" "std::string const &""'");
85155 if (arg1) (arg1)->name = *arg2;
85156 resultobj = SWIG_Py_Void();
85157 if (SWIG_IsNewObj(res2))
delete arg2;
85160 if (SWIG_IsNewObj(res2))
delete arg2;
85165 SWIGINTERN PyObject *_wrap_IOWriter_name_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85166 PyObject *resultobj = 0;
85170 PyObject * obj0 = 0 ;
85171 std::string *result = 0 ;
85173 if (!PyArg_ParseTuple(args,(
char *)
"O:IOWriter_name_get",&obj0)) SWIG_fail;
85174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
85175 if (!SWIG_IsOK(res1)) {
85176 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOWriter_name_get" "', argument " "1"" of type '" "faiss::IOWriter *""'");
85179 result = (std::string *) & ((arg1)->name);
85180 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
85187 SWIGINTERN PyObject *_wrap_IOWriter___call__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85188 PyObject *resultobj = 0;
85190 void *arg2 = (
void *) 0 ;
85200 PyObject * obj0 = 0 ;
85201 PyObject * obj1 = 0 ;
85202 PyObject * obj2 = 0 ;
85203 PyObject * obj3 = 0 ;
85206 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:IOWriter___call__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
85207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
85208 if (!SWIG_IsOK(res1)) {
85209 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOWriter___call__" "', argument " "1"" of type '" "faiss::IOWriter *""'");
85212 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
85213 if (!SWIG_IsOK(res2)) {
85214 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "IOWriter___call__" "', argument " "2"" of type '" "void const *""'");
85216 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
85217 if (!SWIG_IsOK(ecode3)) {
85218 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "IOWriter___call__" "', argument " "3"" of type '" "size_t""'");
85220 arg3 =
static_cast< size_t >(val3);
85221 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
85222 if (!SWIG_IsOK(ecode4)) {
85223 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "IOWriter___call__" "', argument " "4"" of type '" "size_t""'");
85225 arg4 =
static_cast< size_t >(val4);
85226 result = (size_t)(arg1)->operator ()((
void const *)arg2,arg3,arg4);
85227 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
85234 SWIGINTERN PyObject *_wrap_IOWriter_fileno(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85235 PyObject *resultobj = 0;
85239 PyObject * obj0 = 0 ;
85242 if (!PyArg_ParseTuple(args,(
char *)
"O:IOWriter_fileno",&obj0)) SWIG_fail;
85243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOWriter, 0 | 0 );
85244 if (!SWIG_IsOK(res1)) {
85245 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "IOWriter_fileno" "', argument " "1"" of type '" "faiss::IOWriter *""'");
85248 result = (int)(arg1)->fileno();
85249 resultobj = SWIG_From_int(static_cast< int >(result));
85256 SWIGINTERN PyObject *_wrap_delete_IOWriter(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85257 PyObject *resultobj = 0;
85261 PyObject * obj0 = 0 ;
85263 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_IOWriter",&obj0)) SWIG_fail;
85264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__IOWriter, SWIG_POINTER_DISOWN | 0 );
85265 if (!SWIG_IsOK(res1)) {
85266 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_IOWriter" "', argument " "1"" of type '" "faiss::IOWriter *""'");
85270 resultobj = SWIG_Py_Void();
85277 SWIGINTERN PyObject *IOWriter_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85279 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
85280 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__IOWriter, SWIG_NewClientData(obj));
85281 return SWIG_Py_Void();
85284 SWIGINTERN PyObject *_wrap_VectorIOReader_data_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85285 PyObject *resultobj = 0;
85287 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
85292 PyObject * obj0 = 0 ;
85293 PyObject * obj1 = 0 ;
85295 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorIOReader_data_set",&obj0,&obj1)) SWIG_fail;
85296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOReader, 0 | 0 );
85297 if (!SWIG_IsOK(res1)) {
85298 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOReader_data_set" "', argument " "1"" of type '" "faiss::VectorIOReader *""'");
85301 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
85302 if (!SWIG_IsOK(res2)) {
85303 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "VectorIOReader_data_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
85305 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
85306 if (arg1) (arg1)->data = *arg2;
85307 resultobj = SWIG_Py_Void();
85314 SWIGINTERN PyObject *_wrap_VectorIOReader_data_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85315 PyObject *resultobj = 0;
85319 PyObject * obj0 = 0 ;
85320 std::vector< uint8_t > *result = 0 ;
85322 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorIOReader_data_get",&obj0)) SWIG_fail;
85323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOReader, 0 | 0 );
85324 if (!SWIG_IsOK(res1)) {
85325 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOReader_data_get" "', argument " "1"" of type '" "faiss::VectorIOReader *""'");
85328 result = (std::vector< uint8_t > *)& ((arg1)->data);
85329 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
85336 SWIGINTERN PyObject *_wrap_VectorIOReader_rp_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85337 PyObject *resultobj = 0;
85344 PyObject * obj0 = 0 ;
85345 PyObject * obj1 = 0 ;
85347 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorIOReader_rp_set",&obj0,&obj1)) SWIG_fail;
85348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOReader, 0 | 0 );
85349 if (!SWIG_IsOK(res1)) {
85350 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOReader_rp_set" "', argument " "1"" of type '" "faiss::VectorIOReader *""'");
85353 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
85354 if (!SWIG_IsOK(ecode2)) {
85355 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "VectorIOReader_rp_set" "', argument " "2"" of type '" "size_t""'");
85357 arg2 =
static_cast< size_t >(val2);
85358 if (arg1) (arg1)->rp = arg2;
85359 resultobj = SWIG_Py_Void();
85366 SWIGINTERN PyObject *_wrap_VectorIOReader_rp_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85367 PyObject *resultobj = 0;
85371 PyObject * obj0 = 0 ;
85374 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorIOReader_rp_get",&obj0)) SWIG_fail;
85375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOReader, 0 | 0 );
85376 if (!SWIG_IsOK(res1)) {
85377 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOReader_rp_get" "', argument " "1"" of type '" "faiss::VectorIOReader *""'");
85380 result = (size_t) ((arg1)->rp);
85381 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
85388 SWIGINTERN PyObject *_wrap_VectorIOReader___call__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85389 PyObject *resultobj = 0;
85391 void *arg2 = (
void *) 0 ;
85401 PyObject * obj0 = 0 ;
85402 PyObject * obj1 = 0 ;
85403 PyObject * obj2 = 0 ;
85404 PyObject * obj3 = 0 ;
85407 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:VectorIOReader___call__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
85408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOReader, 0 | 0 );
85409 if (!SWIG_IsOK(res1)) {
85410 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOReader___call__" "', argument " "1"" of type '" "faiss::VectorIOReader *""'");
85413 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
85414 if (!SWIG_IsOK(res2)) {
85415 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "VectorIOReader___call__" "', argument " "2"" of type '" "void *""'");
85417 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
85418 if (!SWIG_IsOK(ecode3)) {
85419 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "VectorIOReader___call__" "', argument " "3"" of type '" "size_t""'");
85421 arg3 =
static_cast< size_t >(val3);
85422 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
85423 if (!SWIG_IsOK(ecode4)) {
85424 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "VectorIOReader___call__" "', argument " "4"" of type '" "size_t""'");
85426 arg4 =
static_cast< size_t >(val4);
85427 result = (size_t)(arg1)->operator ()(arg2,arg3,arg4);
85428 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
85435 SWIGINTERN PyObject *_wrap_new_VectorIOReader(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85436 PyObject *resultobj = 0;
85439 if (!PyArg_ParseTuple(args,(
char *)
":new_VectorIOReader")) SWIG_fail;
85441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__VectorIOReader, SWIG_POINTER_NEW | 0 );
85448 SWIGINTERN PyObject *_wrap_delete_VectorIOReader(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85449 PyObject *resultobj = 0;
85453 PyObject * obj0 = 0 ;
85455 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_VectorIOReader",&obj0)) SWIG_fail;
85456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOReader, SWIG_POINTER_DISOWN | 0 );
85457 if (!SWIG_IsOK(res1)) {
85458 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_VectorIOReader" "', argument " "1"" of type '" "faiss::VectorIOReader *""'");
85462 resultobj = SWIG_Py_Void();
85469 SWIGINTERN PyObject *VectorIOReader_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85471 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
85472 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__VectorIOReader, SWIG_NewClientData(obj));
85473 return SWIG_Py_Void();
85476 SWIGINTERN PyObject *_wrap_VectorIOWriter_data_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85477 PyObject *resultobj = 0;
85479 std::vector< uint8_t > *arg2 = (std::vector< uint8_t > *) 0 ;
85484 PyObject * obj0 = 0 ;
85485 PyObject * obj1 = 0 ;
85487 if (!PyArg_ParseTuple(args,(
char *)
"OO:VectorIOWriter_data_set",&obj0,&obj1)) SWIG_fail;
85488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOWriter, 0 | 0 );
85489 if (!SWIG_IsOK(res1)) {
85490 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOWriter_data_set" "', argument " "1"" of type '" "faiss::VectorIOWriter *""'");
85493 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
85494 if (!SWIG_IsOK(res2)) {
85495 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "VectorIOWriter_data_set" "', argument " "2"" of type '" "std::vector< uint8_t > *""'");
85497 arg2 =
reinterpret_cast< std::vector< uint8_t > *
>(argp2);
85498 if (arg1) (arg1)->data = *arg2;
85499 resultobj = SWIG_Py_Void();
85506 SWIGINTERN PyObject *_wrap_VectorIOWriter_data_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85507 PyObject *resultobj = 0;
85511 PyObject * obj0 = 0 ;
85512 std::vector< uint8_t > *result = 0 ;
85514 if (!PyArg_ParseTuple(args,(
char *)
"O:VectorIOWriter_data_get",&obj0)) SWIG_fail;
85515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOWriter, 0 | 0 );
85516 if (!SWIG_IsOK(res1)) {
85517 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOWriter_data_get" "', argument " "1"" of type '" "faiss::VectorIOWriter *""'");
85520 result = (std::vector< uint8_t > *)& ((arg1)->data);
85521 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_char_t, 0 | 0 );
85528 SWIGINTERN PyObject *_wrap_VectorIOWriter___call__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85529 PyObject *resultobj = 0;
85531 void *arg2 = (
void *) 0 ;
85541 PyObject * obj0 = 0 ;
85542 PyObject * obj1 = 0 ;
85543 PyObject * obj2 = 0 ;
85544 PyObject * obj3 = 0 ;
85547 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:VectorIOWriter___call__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
85548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOWriter, 0 | 0 );
85549 if (!SWIG_IsOK(res1)) {
85550 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "VectorIOWriter___call__" "', argument " "1"" of type '" "faiss::VectorIOWriter *""'");
85553 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
85554 if (!SWIG_IsOK(res2)) {
85555 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "VectorIOWriter___call__" "', argument " "2"" of type '" "void const *""'");
85557 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
85558 if (!SWIG_IsOK(ecode3)) {
85559 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "VectorIOWriter___call__" "', argument " "3"" of type '" "size_t""'");
85561 arg3 =
static_cast< size_t >(val3);
85562 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
85563 if (!SWIG_IsOK(ecode4)) {
85564 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "VectorIOWriter___call__" "', argument " "4"" of type '" "size_t""'");
85566 arg4 =
static_cast< size_t >(val4);
85567 result = (size_t)(arg1)->operator ()((
void const *)arg2,arg3,arg4);
85568 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
85575 SWIGINTERN PyObject *_wrap_new_VectorIOWriter(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85576 PyObject *resultobj = 0;
85579 if (!PyArg_ParseTuple(args,(
char *)
":new_VectorIOWriter")) SWIG_fail;
85581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_faiss__VectorIOWriter, SWIG_POINTER_NEW | 0 );
85588 SWIGINTERN PyObject *_wrap_delete_VectorIOWriter(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85589 PyObject *resultobj = 0;
85593 PyObject * obj0 = 0 ;
85595 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_VectorIOWriter",&obj0)) SWIG_fail;
85596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_faiss__VectorIOWriter, SWIG_POINTER_DISOWN | 0 );
85597 if (!SWIG_IsOK(res1)) {
85598 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_VectorIOWriter" "', argument " "1"" of type '" "faiss::VectorIOWriter *""'");
85602 resultobj = SWIG_Py_Void();
85609 SWIGINTERN PyObject *VectorIOWriter_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85611 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
85612 SWIG_TypeNewClientData(SWIGTYPE_p_faiss__VectorIOWriter, SWIG_NewClientData(obj));
85613 return SWIG_Py_Void();
85616 SWIGINTERN PyObject *_wrap_ignore_SIGTTIN(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85617 PyObject *resultobj = 0;
85619 if (!PyArg_ParseTuple(args,(
char *)
":ignore_SIGTTIN")) SWIG_fail;
85621 resultobj = SWIG_Py_Void();
85628 SWIGINTERN PyObject *_wrap_MapLong2Long_map_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85629 PyObject *resultobj = 0;
85631 std::unordered_map< long,long > arg2 ;
85636 PyObject * obj0 = 0 ;
85637 PyObject * obj1 = 0 ;
85639 if (!PyArg_ParseTuple(args,(
char *)
"OO:MapLong2Long_map_set",&obj0,&obj1)) SWIG_fail;
85640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MapLong2Long, 0 | 0 );
85641 if (!SWIG_IsOK(res1)) {
85642 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MapLong2Long_map_set" "', argument " "1"" of type '" "MapLong2Long *""'");
85646 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__unordered_mapT_long_long_t, 0 | 0);
85647 if (!SWIG_IsOK(res2)) {
85648 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "MapLong2Long_map_set" "', argument " "2"" of type '" "std::unordered_map< long,long >""'");
85651 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "MapLong2Long_map_set" "', argument " "2"" of type '" "std::unordered_map< long,long >""'");
85653 std::unordered_map< long,long > * temp =
reinterpret_cast< std::unordered_map< long,long > *
>(argp2);
85655 if (SWIG_IsNewObj(res2))
delete temp;
85658 if (arg1) (arg1)->map = arg2;
85659 resultobj = SWIG_Py_Void();
85666 SWIGINTERN PyObject *_wrap_MapLong2Long_map_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85667 PyObject *resultobj = 0;
85671 PyObject * obj0 = 0 ;
85672 std::unordered_map< long,long > result;
85674 if (!PyArg_ParseTuple(args,(
char *)
"O:MapLong2Long_map_get",&obj0)) SWIG_fail;
85675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MapLong2Long, 0 | 0 );
85676 if (!SWIG_IsOK(res1)) {
85677 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MapLong2Long_map_get" "', argument " "1"" of type '" "MapLong2Long *""'");
85680 result = ((arg1)->map);
85681 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 );
85688 SWIGINTERN PyObject *_wrap_MapLong2Long_add(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85689 PyObject *resultobj = 0;
85692 long *arg3 = (
long *) 0 ;
85693 long *arg4 = (
long *) 0 ;
85702 PyObject * obj0 = 0 ;
85703 PyObject * obj1 = 0 ;
85704 PyObject * obj2 = 0 ;
85705 PyObject * obj3 = 0 ;
85707 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:MapLong2Long_add",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
85708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MapLong2Long, 0 | 0 );
85709 if (!SWIG_IsOK(res1)) {
85710 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MapLong2Long_add" "', argument " "1"" of type '" "MapLong2Long *""'");
85713 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
85714 if (!SWIG_IsOK(ecode2)) {
85715 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MapLong2Long_add" "', argument " "2"" of type '" "size_t""'");
85717 arg2 =
static_cast< size_t >(val2);
85718 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
85719 if (!SWIG_IsOK(res3)) {
85720 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MapLong2Long_add" "', argument " "3"" of type '" "long const *""'");
85722 arg3 =
reinterpret_cast< long *
>(argp3);
85723 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
85724 if (!SWIG_IsOK(res4)) {
85725 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "MapLong2Long_add" "', argument " "4"" of type '" "long const *""'");
85727 arg4 =
reinterpret_cast< long *
>(argp4);
85728 (arg1)->add(arg2,(
long const *)arg3,(
long const *)arg4);
85729 resultobj = SWIG_Py_Void();
85736 SWIGINTERN PyObject *_wrap_MapLong2Long_search(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85737 PyObject *resultobj = 0;
85744 PyObject * obj0 = 0 ;
85745 PyObject * obj1 = 0 ;
85748 if (!PyArg_ParseTuple(args,(
char *)
"OO:MapLong2Long_search",&obj0,&obj1)) SWIG_fail;
85749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MapLong2Long, 0 | 0 );
85750 if (!SWIG_IsOK(res1)) {
85751 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MapLong2Long_search" "', argument " "1"" of type '" "MapLong2Long *""'");
85754 ecode2 = SWIG_AsVal_long(obj1, &val2);
85755 if (!SWIG_IsOK(ecode2)) {
85756 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MapLong2Long_search" "', argument " "2"" of type '" "long""'");
85758 arg2 =
static_cast< long >(val2);
85759 result = (long)(arg1)->search(arg2);
85760 resultobj = SWIG_From_long(static_cast< long >(result));
85767 SWIGINTERN PyObject *_wrap_MapLong2Long_search_multiple(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85768 PyObject *resultobj = 0;
85771 long *arg3 = (
long *) 0 ;
85772 long *arg4 = (
long *) 0 ;
85781 PyObject * obj0 = 0 ;
85782 PyObject * obj1 = 0 ;
85783 PyObject * obj2 = 0 ;
85784 PyObject * obj3 = 0 ;
85786 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:MapLong2Long_search_multiple",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
85787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MapLong2Long, 0 | 0 );
85788 if (!SWIG_IsOK(res1)) {
85789 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "MapLong2Long_search_multiple" "', argument " "1"" of type '" "MapLong2Long *""'");
85792 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
85793 if (!SWIG_IsOK(ecode2)) {
85794 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "MapLong2Long_search_multiple" "', argument " "2"" of type '" "size_t""'");
85796 arg2 =
static_cast< size_t >(val2);
85797 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_long, 0 | 0 );
85798 if (!SWIG_IsOK(res3)) {
85799 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "MapLong2Long_search_multiple" "', argument " "3"" of type '" "long const *""'");
85801 arg3 =
reinterpret_cast< long *
>(argp3);
85802 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
85803 if (!SWIG_IsOK(res4)) {
85804 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "MapLong2Long_search_multiple" "', argument " "4"" of type '" "long *""'");
85806 arg4 =
reinterpret_cast< long *
>(argp4);
85807 (arg1)->search_multiple(arg2,(
long const *)arg3,arg4);
85808 resultobj = SWIG_Py_Void();
85815 SWIGINTERN PyObject *_wrap_new_MapLong2Long(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85816 PyObject *resultobj = 0;
85819 if (!PyArg_ParseTuple(args,(
char *)
":new_MapLong2Long")) SWIG_fail;
85821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MapLong2Long, SWIG_POINTER_NEW | 0 );
85828 SWIGINTERN PyObject *_wrap_delete_MapLong2Long(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85829 PyObject *resultobj = 0;
85833 PyObject * obj0 = 0 ;
85835 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_MapLong2Long",&obj0)) SWIG_fail;
85836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MapLong2Long, SWIG_POINTER_DISOWN | 0 );
85837 if (!SWIG_IsOK(res1)) {
85838 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_MapLong2Long" "', argument " "1"" of type '" "MapLong2Long *""'");
85842 resultobj = SWIG_Py_Void();
85849 SWIGINTERN PyObject *MapLong2Long_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
85851 if (!PyArg_ParseTuple(args,(
char *)
"O:swigregister", &obj))
return NULL;
85852 SWIG_TypeNewClientData(SWIGTYPE_p_MapLong2Long, SWIG_NewClientData(obj));
85853 return SWIG_Py_Void();
85856 static PyMethodDef SwigMethods[] = {
85857 { (
char *)
"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
85858 { (
char *)
"new_FloatVector", _wrap_new_FloatVector, METH_VARARGS, NULL},
85859 { (
char *)
"FloatVector_push_back", _wrap_FloatVector_push_back, METH_VARARGS, NULL},
85860 { (
char *)
"FloatVector_clear", _wrap_FloatVector_clear, METH_VARARGS, NULL},
85861 { (
char *)
"FloatVector_data", _wrap_FloatVector_data, METH_VARARGS, NULL},
85862 { (
char *)
"FloatVector_size", _wrap_FloatVector_size, METH_VARARGS, NULL},
85863 { (
char *)
"FloatVector_at", _wrap_FloatVector_at, METH_VARARGS, NULL},
85864 { (
char *)
"FloatVector_resize", _wrap_FloatVector_resize, METH_VARARGS, NULL},
85865 { (
char *)
"FloatVector_swap", _wrap_FloatVector_swap, METH_VARARGS, NULL},
85866 { (
char *)
"delete_FloatVector", _wrap_delete_FloatVector, METH_VARARGS, NULL},
85867 { (
char *)
"FloatVector_swigregister", FloatVector_swigregister, METH_VARARGS, NULL},
85868 { (
char *)
"new_DoubleVector", _wrap_new_DoubleVector, METH_VARARGS, NULL},
85869 { (
char *)
"DoubleVector_push_back", _wrap_DoubleVector_push_back, METH_VARARGS, NULL},
85870 { (
char *)
"DoubleVector_clear", _wrap_DoubleVector_clear, METH_VARARGS, NULL},
85871 { (
char *)
"DoubleVector_data", _wrap_DoubleVector_data, METH_VARARGS, NULL},
85872 { (
char *)
"DoubleVector_size", _wrap_DoubleVector_size, METH_VARARGS, NULL},
85873 { (
char *)
"DoubleVector_at", _wrap_DoubleVector_at, METH_VARARGS, NULL},
85874 { (
char *)
"DoubleVector_resize", _wrap_DoubleVector_resize, METH_VARARGS, NULL},
85875 { (
char *)
"DoubleVector_swap", _wrap_DoubleVector_swap, METH_VARARGS, NULL},
85876 { (
char *)
"delete_DoubleVector", _wrap_delete_DoubleVector, METH_VARARGS, NULL},
85877 { (
char *)
"DoubleVector_swigregister", DoubleVector_swigregister, METH_VARARGS, NULL},
85878 { (
char *)
"new_ByteVector", _wrap_new_ByteVector, METH_VARARGS, NULL},
85879 { (
char *)
"ByteVector_push_back", _wrap_ByteVector_push_back, METH_VARARGS, NULL},
85880 { (
char *)
"ByteVector_clear", _wrap_ByteVector_clear, METH_VARARGS, NULL},
85881 { (
char *)
"ByteVector_data", _wrap_ByteVector_data, METH_VARARGS, NULL},
85882 { (
char *)
"ByteVector_size", _wrap_ByteVector_size, METH_VARARGS, NULL},
85883 { (
char *)
"ByteVector_at", _wrap_ByteVector_at, METH_VARARGS, NULL},
85884 { (
char *)
"ByteVector_resize", _wrap_ByteVector_resize, METH_VARARGS, NULL},
85885 { (
char *)
"ByteVector_swap", _wrap_ByteVector_swap, METH_VARARGS, NULL},
85886 { (
char *)
"delete_ByteVector", _wrap_delete_ByteVector, METH_VARARGS, NULL},
85887 { (
char *)
"ByteVector_swigregister", ByteVector_swigregister, METH_VARARGS, NULL},
85888 { (
char *)
"new_CharVector", _wrap_new_CharVector, METH_VARARGS, NULL},
85889 { (
char *)
"CharVector_push_back", _wrap_CharVector_push_back, METH_VARARGS, NULL},
85890 { (
char *)
"CharVector_clear", _wrap_CharVector_clear, METH_VARARGS, NULL},
85891 { (
char *)
"CharVector_data", _wrap_CharVector_data, METH_VARARGS, NULL},
85892 { (
char *)
"CharVector_size", _wrap_CharVector_size, METH_VARARGS, NULL},
85893 { (
char *)
"CharVector_at", _wrap_CharVector_at, METH_VARARGS, NULL},
85894 { (
char *)
"CharVector_resize", _wrap_CharVector_resize, METH_VARARGS, NULL},
85895 { (
char *)
"CharVector_swap", _wrap_CharVector_swap, METH_VARARGS, NULL},
85896 { (
char *)
"delete_CharVector", _wrap_delete_CharVector, METH_VARARGS, NULL},
85897 { (
char *)
"CharVector_swigregister", CharVector_swigregister, METH_VARARGS, NULL},
85898 { (
char *)
"new_Uint64Vector", _wrap_new_Uint64Vector, METH_VARARGS, NULL},
85899 { (
char *)
"Uint64Vector_push_back", _wrap_Uint64Vector_push_back, METH_VARARGS, NULL},
85900 { (
char *)
"Uint64Vector_clear", _wrap_Uint64Vector_clear, METH_VARARGS, NULL},
85901 { (
char *)
"Uint64Vector_data", _wrap_Uint64Vector_data, METH_VARARGS, NULL},
85902 { (
char *)
"Uint64Vector_size", _wrap_Uint64Vector_size, METH_VARARGS, NULL},
85903 { (
char *)
"Uint64Vector_at", _wrap_Uint64Vector_at, METH_VARARGS, NULL},
85904 { (
char *)
"Uint64Vector_resize", _wrap_Uint64Vector_resize, METH_VARARGS, NULL},
85905 { (
char *)
"Uint64Vector_swap", _wrap_Uint64Vector_swap, METH_VARARGS, NULL},
85906 { (
char *)
"delete_Uint64Vector", _wrap_delete_Uint64Vector, METH_VARARGS, NULL},
85907 { (
char *)
"Uint64Vector_swigregister", Uint64Vector_swigregister, METH_VARARGS, NULL},
85908 { (
char *)
"new_LongVector", _wrap_new_LongVector, METH_VARARGS, NULL},
85909 { (
char *)
"LongVector_push_back", _wrap_LongVector_push_back, METH_VARARGS, NULL},
85910 { (
char *)
"LongVector_clear", _wrap_LongVector_clear, METH_VARARGS, NULL},
85911 { (
char *)
"LongVector_data", _wrap_LongVector_data, METH_VARARGS, NULL},
85912 { (
char *)
"LongVector_size", _wrap_LongVector_size, METH_VARARGS, NULL},
85913 { (
char *)
"LongVector_at", _wrap_LongVector_at, METH_VARARGS, NULL},
85914 { (
char *)
"LongVector_resize", _wrap_LongVector_resize, METH_VARARGS, NULL},
85915 { (
char *)
"LongVector_swap", _wrap_LongVector_swap, METH_VARARGS, NULL},
85916 { (
char *)
"delete_LongVector", _wrap_delete_LongVector, METH_VARARGS, NULL},
85917 { (
char *)
"LongVector_swigregister", LongVector_swigregister, METH_VARARGS, NULL},
85918 { (
char *)
"new_IntVector", _wrap_new_IntVector, METH_VARARGS, NULL},
85919 { (
char *)
"IntVector_push_back", _wrap_IntVector_push_back, METH_VARARGS, NULL},
85920 { (
char *)
"IntVector_clear", _wrap_IntVector_clear, METH_VARARGS, NULL},
85921 { (
char *)
"IntVector_data", _wrap_IntVector_data, METH_VARARGS, NULL},
85922 { (
char *)
"IntVector_size", _wrap_IntVector_size, METH_VARARGS, NULL},
85923 { (
char *)
"IntVector_at", _wrap_IntVector_at, METH_VARARGS, NULL},
85924 { (
char *)
"IntVector_resize", _wrap_IntVector_resize, METH_VARARGS, NULL},
85925 { (
char *)
"IntVector_swap", _wrap_IntVector_swap, METH_VARARGS, NULL},
85926 { (
char *)
"delete_IntVector", _wrap_delete_IntVector, METH_VARARGS, NULL},
85927 { (
char *)
"IntVector_swigregister", IntVector_swigregister, METH_VARARGS, NULL},
85928 { (
char *)
"new_VectorTransformVector", _wrap_new_VectorTransformVector, METH_VARARGS, NULL},
85929 { (
char *)
"VectorTransformVector_push_back", _wrap_VectorTransformVector_push_back, METH_VARARGS, NULL},
85930 { (
char *)
"VectorTransformVector_clear", _wrap_VectorTransformVector_clear, METH_VARARGS, NULL},
85931 { (
char *)
"VectorTransformVector_data", _wrap_VectorTransformVector_data, METH_VARARGS, NULL},
85932 { (
char *)
"VectorTransformVector_size", _wrap_VectorTransformVector_size, METH_VARARGS, NULL},
85933 { (
char *)
"VectorTransformVector_at", _wrap_VectorTransformVector_at, METH_VARARGS, NULL},
85934 { (
char *)
"VectorTransformVector_resize", _wrap_VectorTransformVector_resize, METH_VARARGS, NULL},
85935 { (
char *)
"VectorTransformVector_swap", _wrap_VectorTransformVector_swap, METH_VARARGS, NULL},
85936 { (
char *)
"delete_VectorTransformVector", _wrap_delete_VectorTransformVector, METH_VARARGS, NULL},
85937 { (
char *)
"VectorTransformVector_swigregister", VectorTransformVector_swigregister, METH_VARARGS, NULL},
85938 { (
char *)
"new_OperatingPointVector", _wrap_new_OperatingPointVector, METH_VARARGS, NULL},
85939 { (
char *)
"OperatingPointVector_push_back", _wrap_OperatingPointVector_push_back, METH_VARARGS, NULL},
85940 { (
char *)
"OperatingPointVector_clear", _wrap_OperatingPointVector_clear, METH_VARARGS, NULL},
85941 { (
char *)
"OperatingPointVector_data", _wrap_OperatingPointVector_data, METH_VARARGS, NULL},
85942 { (
char *)
"OperatingPointVector_size", _wrap_OperatingPointVector_size, METH_VARARGS, NULL},
85943 { (
char *)
"OperatingPointVector_at", _wrap_OperatingPointVector_at, METH_VARARGS, NULL},
85944 { (
char *)
"OperatingPointVector_resize", _wrap_OperatingPointVector_resize, METH_VARARGS, NULL},
85945 { (
char *)
"OperatingPointVector_swap", _wrap_OperatingPointVector_swap, METH_VARARGS, NULL},
85946 { (
char *)
"delete_OperatingPointVector", _wrap_delete_OperatingPointVector, METH_VARARGS, NULL},
85947 { (
char *)
"OperatingPointVector_swigregister", OperatingPointVector_swigregister, METH_VARARGS, NULL},
85948 { (
char *)
"new_InvertedListsPtrVector", _wrap_new_InvertedListsPtrVector, METH_VARARGS, NULL},
85949 { (
char *)
"InvertedListsPtrVector_push_back", _wrap_InvertedListsPtrVector_push_back, METH_VARARGS, NULL},
85950 { (
char *)
"InvertedListsPtrVector_clear", _wrap_InvertedListsPtrVector_clear, METH_VARARGS, NULL},
85951 { (
char *)
"InvertedListsPtrVector_data", _wrap_InvertedListsPtrVector_data, METH_VARARGS, NULL},
85952 { (
char *)
"InvertedListsPtrVector_size", _wrap_InvertedListsPtrVector_size, METH_VARARGS, NULL},
85953 { (
char *)
"InvertedListsPtrVector_at", _wrap_InvertedListsPtrVector_at, METH_VARARGS, NULL},
85954 { (
char *)
"InvertedListsPtrVector_resize", _wrap_InvertedListsPtrVector_resize, METH_VARARGS, NULL},
85955 { (
char *)
"InvertedListsPtrVector_swap", _wrap_InvertedListsPtrVector_swap, METH_VARARGS, NULL},
85956 { (
char *)
"delete_InvertedListsPtrVector", _wrap_delete_InvertedListsPtrVector, METH_VARARGS, NULL},
85957 { (
char *)
"InvertedListsPtrVector_swigregister", InvertedListsPtrVector_swigregister, METH_VARARGS, NULL},
85958 { (
char *)
"new_FloatVectorVector", _wrap_new_FloatVectorVector, METH_VARARGS, NULL},
85959 { (
char *)
"FloatVectorVector_push_back", _wrap_FloatVectorVector_push_back, METH_VARARGS, NULL},
85960 { (
char *)
"FloatVectorVector_clear", _wrap_FloatVectorVector_clear, METH_VARARGS, NULL},
85961 { (
char *)
"FloatVectorVector_data", _wrap_FloatVectorVector_data, METH_VARARGS, NULL},
85962 { (
char *)
"FloatVectorVector_size", _wrap_FloatVectorVector_size, METH_VARARGS, NULL},
85963 { (
char *)
"FloatVectorVector_at", _wrap_FloatVectorVector_at, METH_VARARGS, NULL},
85964 { (
char *)
"FloatVectorVector_resize", _wrap_FloatVectorVector_resize, METH_VARARGS, NULL},
85965 { (
char *)
"FloatVectorVector_swap", _wrap_FloatVectorVector_swap, METH_VARARGS, NULL},
85966 { (
char *)
"delete_FloatVectorVector", _wrap_delete_FloatVectorVector, METH_VARARGS, NULL},
85967 { (
char *)
"FloatVectorVector_swigregister", FloatVectorVector_swigregister, METH_VARARGS, NULL},
85968 { (
char *)
"new_ByteVectorVector", _wrap_new_ByteVectorVector, METH_VARARGS, NULL},
85969 { (
char *)
"ByteVectorVector_push_back", _wrap_ByteVectorVector_push_back, METH_VARARGS, NULL},
85970 { (
char *)
"ByteVectorVector_clear", _wrap_ByteVectorVector_clear, METH_VARARGS, NULL},
85971 { (
char *)
"ByteVectorVector_data", _wrap_ByteVectorVector_data, METH_VARARGS, NULL},
85972 { (
char *)
"ByteVectorVector_size", _wrap_ByteVectorVector_size, METH_VARARGS, NULL},
85973 { (
char *)
"ByteVectorVector_at", _wrap_ByteVectorVector_at, METH_VARARGS, NULL},
85974 { (
char *)
"ByteVectorVector_resize", _wrap_ByteVectorVector_resize, METH_VARARGS, NULL},
85975 { (
char *)
"ByteVectorVector_swap", _wrap_ByteVectorVector_swap, METH_VARARGS, NULL},
85976 { (
char *)
"delete_ByteVectorVector", _wrap_delete_ByteVectorVector, METH_VARARGS, NULL},
85977 { (
char *)
"ByteVectorVector_swigregister", ByteVectorVector_swigregister, METH_VARARGS, NULL},
85978 { (
char *)
"new_LongVectorVector", _wrap_new_LongVectorVector, METH_VARARGS, NULL},
85979 { (
char *)
"LongVectorVector_push_back", _wrap_LongVectorVector_push_back, METH_VARARGS, NULL},
85980 { (
char *)
"LongVectorVector_clear", _wrap_LongVectorVector_clear, METH_VARARGS, NULL},
85981 { (
char *)
"LongVectorVector_data", _wrap_LongVectorVector_data, METH_VARARGS, NULL},
85982 { (
char *)
"LongVectorVector_size", _wrap_LongVectorVector_size, METH_VARARGS, NULL},
85983 { (
char *)
"LongVectorVector_at", _wrap_LongVectorVector_at, METH_VARARGS, NULL},
85984 { (
char *)
"LongVectorVector_resize", _wrap_LongVectorVector_resize, METH_VARARGS, NULL},
85985 { (
char *)
"LongVectorVector_swap", _wrap_LongVectorVector_swap, METH_VARARGS, NULL},
85986 { (
char *)
"delete_LongVectorVector", _wrap_delete_LongVectorVector, METH_VARARGS, NULL},
85987 { (
char *)
"LongVectorVector_swigregister", LongVectorVector_swigregister, METH_VARARGS, NULL},
85988 { (
char *)
"new_GpuResourcesVector", _wrap_new_GpuResourcesVector, METH_VARARGS, NULL},
85989 { (
char *)
"GpuResourcesVector_push_back", _wrap_GpuResourcesVector_push_back, METH_VARARGS, NULL},
85990 { (
char *)
"GpuResourcesVector_clear", _wrap_GpuResourcesVector_clear, METH_VARARGS, NULL},
85991 { (
char *)
"GpuResourcesVector_data", _wrap_GpuResourcesVector_data, METH_VARARGS, NULL},
85992 { (
char *)
"GpuResourcesVector_size", _wrap_GpuResourcesVector_size, METH_VARARGS, NULL},
85993 { (
char *)
"GpuResourcesVector_at", _wrap_GpuResourcesVector_at, METH_VARARGS, NULL},
85994 { (
char *)
"GpuResourcesVector_resize", _wrap_GpuResourcesVector_resize, METH_VARARGS, NULL},
85995 { (
char *)
"GpuResourcesVector_swap", _wrap_GpuResourcesVector_swap, METH_VARARGS, NULL},
85996 { (
char *)
"delete_GpuResourcesVector", _wrap_delete_GpuResourcesVector, METH_VARARGS, NULL},
85997 { (
char *)
"GpuResourcesVector_swigregister", GpuResourcesVector_swigregister, METH_VARARGS, NULL},
85998 { (
char *)
"popcount64", _wrap_popcount64, METH_VARARGS, NULL},
85999 { (
char *)
"hammings", _wrap_hammings, METH_VARARGS, NULL},
86000 { (
char *)
"bitvec_print", _wrap_bitvec_print, METH_VARARGS, NULL},
86001 { (
char *)
"fvecs2bitvecs", _wrap_fvecs2bitvecs, METH_VARARGS, NULL},
86002 { (
char *)
"fvec2bitvec", _wrap_fvec2bitvec, METH_VARARGS, NULL},
86003 { (
char *)
"hammings_knn_hc", _wrap_hammings_knn_hc, METH_VARARGS, NULL},
86004 { (
char *)
"hammings_knn", _wrap_hammings_knn, METH_VARARGS, NULL},
86005 { (
char *)
"hammings_knn_mc", _wrap_hammings_knn_mc, METH_VARARGS, NULL},
86006 { (
char *)
"hamming_count_thres", _wrap_hamming_count_thres, METH_VARARGS, NULL},
86007 { (
char *)
"match_hamming_thres", _wrap_match_hamming_thres, METH_VARARGS, NULL},
86008 { (
char *)
"crosshamming_count_thres", _wrap_crosshamming_count_thres, METH_VARARGS, NULL},
86009 { (
char *)
"HammingComputer4_a0_set", _wrap_HammingComputer4_a0_set, METH_VARARGS, NULL},
86010 { (
char *)
"HammingComputer4_a0_get", _wrap_HammingComputer4_a0_get, METH_VARARGS, NULL},
86011 { (
char *)
"new_HammingComputer4", _wrap_new_HammingComputer4, METH_VARARGS, NULL},
86012 { (
char *)
"HammingComputer4_set", _wrap_HammingComputer4_set, METH_VARARGS, NULL},
86013 { (
char *)
"HammingComputer4_hamming", _wrap_HammingComputer4_hamming, METH_VARARGS, NULL},
86014 { (
char *)
"delete_HammingComputer4", _wrap_delete_HammingComputer4, METH_VARARGS, NULL},
86015 { (
char *)
"HammingComputer4_swigregister", HammingComputer4_swigregister, METH_VARARGS, NULL},
86016 { (
char *)
"HammingComputer8_a0_set", _wrap_HammingComputer8_a0_set, METH_VARARGS, NULL},
86017 { (
char *)
"HammingComputer8_a0_get", _wrap_HammingComputer8_a0_get, METH_VARARGS, NULL},
86018 { (
char *)
"new_HammingComputer8", _wrap_new_HammingComputer8, METH_VARARGS, NULL},
86019 { (
char *)
"HammingComputer8_set", _wrap_HammingComputer8_set, METH_VARARGS, NULL},
86020 { (
char *)
"HammingComputer8_hamming", _wrap_HammingComputer8_hamming, METH_VARARGS, NULL},
86021 { (
char *)
"delete_HammingComputer8", _wrap_delete_HammingComputer8, METH_VARARGS, NULL},
86022 { (
char *)
"HammingComputer8_swigregister", HammingComputer8_swigregister, METH_VARARGS, NULL},
86023 { (
char *)
"HammingComputer16_a0_set", _wrap_HammingComputer16_a0_set, METH_VARARGS, NULL},
86024 { (
char *)
"HammingComputer16_a0_get", _wrap_HammingComputer16_a0_get, METH_VARARGS, NULL},
86025 { (
char *)
"HammingComputer16_a1_set", _wrap_HammingComputer16_a1_set, METH_VARARGS, NULL},
86026 { (
char *)
"HammingComputer16_a1_get", _wrap_HammingComputer16_a1_get, METH_VARARGS, NULL},
86027 { (
char *)
"new_HammingComputer16", _wrap_new_HammingComputer16, METH_VARARGS, NULL},
86028 { (
char *)
"HammingComputer16_set", _wrap_HammingComputer16_set, METH_VARARGS, NULL},
86029 { (
char *)
"HammingComputer16_hamming", _wrap_HammingComputer16_hamming, METH_VARARGS, NULL},
86030 { (
char *)
"delete_HammingComputer16", _wrap_delete_HammingComputer16, METH_VARARGS, NULL},
86031 { (
char *)
"HammingComputer16_swigregister", HammingComputer16_swigregister, METH_VARARGS, NULL},
86032 { (
char *)
"HammingComputer20_a0_set", _wrap_HammingComputer20_a0_set, METH_VARARGS, NULL},
86033 { (
char *)
"HammingComputer20_a0_get", _wrap_HammingComputer20_a0_get, METH_VARARGS, NULL},
86034 { (
char *)
"HammingComputer20_a1_set", _wrap_HammingComputer20_a1_set, METH_VARARGS, NULL},
86035 { (
char *)
"HammingComputer20_a1_get", _wrap_HammingComputer20_a1_get, METH_VARARGS, NULL},
86036 { (
char *)
"HammingComputer20_a2_set", _wrap_HammingComputer20_a2_set, METH_VARARGS, NULL},
86037 { (
char *)
"HammingComputer20_a2_get", _wrap_HammingComputer20_a2_get, METH_VARARGS, NULL},
86038 { (
char *)
"new_HammingComputer20", _wrap_new_HammingComputer20, METH_VARARGS, NULL},
86039 { (
char *)
"HammingComputer20_set", _wrap_HammingComputer20_set, METH_VARARGS, NULL},
86040 { (
char *)
"HammingComputer20_hamming", _wrap_HammingComputer20_hamming, METH_VARARGS, NULL},
86041 { (
char *)
"delete_HammingComputer20", _wrap_delete_HammingComputer20, METH_VARARGS, NULL},
86042 { (
char *)
"HammingComputer20_swigregister", HammingComputer20_swigregister, METH_VARARGS, NULL},
86043 { (
char *)
"HammingComputer32_a0_set", _wrap_HammingComputer32_a0_set, METH_VARARGS, NULL},
86044 { (
char *)
"HammingComputer32_a0_get", _wrap_HammingComputer32_a0_get, METH_VARARGS, NULL},
86045 { (
char *)
"HammingComputer32_a1_set", _wrap_HammingComputer32_a1_set, METH_VARARGS, NULL},
86046 { (
char *)
"HammingComputer32_a1_get", _wrap_HammingComputer32_a1_get, METH_VARARGS, NULL},
86047 { (
char *)
"HammingComputer32_a2_set", _wrap_HammingComputer32_a2_set, METH_VARARGS, NULL},
86048 { (
char *)
"HammingComputer32_a2_get", _wrap_HammingComputer32_a2_get, METH_VARARGS, NULL},
86049 { (
char *)
"HammingComputer32_a3_set", _wrap_HammingComputer32_a3_set, METH_VARARGS, NULL},
86050 { (
char *)
"HammingComputer32_a3_get", _wrap_HammingComputer32_a3_get, METH_VARARGS, NULL},
86051 { (
char *)
"new_HammingComputer32", _wrap_new_HammingComputer32, METH_VARARGS, NULL},
86052 { (
char *)
"HammingComputer32_set", _wrap_HammingComputer32_set, METH_VARARGS, NULL},
86053 { (
char *)
"HammingComputer32_hamming", _wrap_HammingComputer32_hamming, METH_VARARGS, NULL},
86054 { (
char *)
"delete_HammingComputer32", _wrap_delete_HammingComputer32, METH_VARARGS, NULL},
86055 { (
char *)
"HammingComputer32_swigregister", HammingComputer32_swigregister, METH_VARARGS, NULL},
86056 { (
char *)
"HammingComputer64_a0_set", _wrap_HammingComputer64_a0_set, METH_VARARGS, NULL},
86057 { (
char *)
"HammingComputer64_a0_get", _wrap_HammingComputer64_a0_get, METH_VARARGS, NULL},
86058 { (
char *)
"HammingComputer64_a1_set", _wrap_HammingComputer64_a1_set, METH_VARARGS, NULL},
86059 { (
char *)
"HammingComputer64_a1_get", _wrap_HammingComputer64_a1_get, METH_VARARGS, NULL},
86060 { (
char *)
"HammingComputer64_a2_set", _wrap_HammingComputer64_a2_set, METH_VARARGS, NULL},
86061 { (
char *)
"HammingComputer64_a2_get", _wrap_HammingComputer64_a2_get, METH_VARARGS, NULL},
86062 { (
char *)
"HammingComputer64_a3_set", _wrap_HammingComputer64_a3_set, METH_VARARGS, NULL},
86063 { (
char *)
"HammingComputer64_a3_get", _wrap_HammingComputer64_a3_get, METH_VARARGS, NULL},
86064 { (
char *)
"HammingComputer64_a4_set", _wrap_HammingComputer64_a4_set, METH_VARARGS, NULL},
86065 { (
char *)
"HammingComputer64_a4_get", _wrap_HammingComputer64_a4_get, METH_VARARGS, NULL},
86066 { (
char *)
"HammingComputer64_a5_set", _wrap_HammingComputer64_a5_set, METH_VARARGS, NULL},
86067 { (
char *)
"HammingComputer64_a5_get", _wrap_HammingComputer64_a5_get, METH_VARARGS, NULL},
86068 { (
char *)
"HammingComputer64_a6_set", _wrap_HammingComputer64_a6_set, METH_VARARGS, NULL},
86069 { (
char *)
"HammingComputer64_a6_get", _wrap_HammingComputer64_a6_get, METH_VARARGS, NULL},
86070 { (
char *)
"HammingComputer64_a7_set", _wrap_HammingComputer64_a7_set, METH_VARARGS, NULL},
86071 { (
char *)
"HammingComputer64_a7_get", _wrap_HammingComputer64_a7_get, METH_VARARGS, NULL},
86072 { (
char *)
"new_HammingComputer64", _wrap_new_HammingComputer64, METH_VARARGS, NULL},
86073 { (
char *)
"HammingComputer64_set", _wrap_HammingComputer64_set, METH_VARARGS, NULL},
86074 { (
char *)
"HammingComputer64_hamming", _wrap_HammingComputer64_hamming, METH_VARARGS, NULL},
86075 { (
char *)
"delete_HammingComputer64", _wrap_delete_HammingComputer64, METH_VARARGS, NULL},
86076 { (
char *)
"HammingComputer64_swigregister", HammingComputer64_swigregister, METH_VARARGS, NULL},
86077 { (
char *)
"HammingComputerDefault_a_set", _wrap_HammingComputerDefault_a_set, METH_VARARGS, NULL},
86078 { (
char *)
"HammingComputerDefault_a_get", _wrap_HammingComputerDefault_a_get, METH_VARARGS, NULL},
86079 { (
char *)
"HammingComputerDefault_n_set", _wrap_HammingComputerDefault_n_set, METH_VARARGS, NULL},
86080 { (
char *)
"HammingComputerDefault_n_get", _wrap_HammingComputerDefault_n_get, METH_VARARGS, NULL},
86081 { (
char *)
"new_HammingComputerDefault", _wrap_new_HammingComputerDefault, METH_VARARGS, NULL},
86082 { (
char *)
"HammingComputerDefault_set", _wrap_HammingComputerDefault_set, METH_VARARGS, NULL},
86083 { (
char *)
"HammingComputerDefault_hamming", _wrap_HammingComputerDefault_hamming, METH_VARARGS, NULL},
86084 { (
char *)
"delete_HammingComputerDefault", _wrap_delete_HammingComputerDefault, METH_VARARGS, NULL},
86085 { (
char *)
"HammingComputerDefault_swigregister", HammingComputerDefault_swigregister, METH_VARARGS, NULL},
86086 { (
char *)
"HammingComputerM8_a_set", _wrap_HammingComputerM8_a_set, METH_VARARGS, NULL},
86087 { (
char *)
"HammingComputerM8_a_get", _wrap_HammingComputerM8_a_get, METH_VARARGS, NULL},
86088 { (
char *)
"HammingComputerM8_n_set", _wrap_HammingComputerM8_n_set, METH_VARARGS, NULL},
86089 { (
char *)
"HammingComputerM8_n_get", _wrap_HammingComputerM8_n_get, METH_VARARGS, NULL},
86090 { (
char *)
"new_HammingComputerM8", _wrap_new_HammingComputerM8, METH_VARARGS, NULL},
86091 { (
char *)
"HammingComputerM8_set", _wrap_HammingComputerM8_set, METH_VARARGS, NULL},
86092 { (
char *)
"HammingComputerM8_hamming", _wrap_HammingComputerM8_hamming, METH_VARARGS, NULL},
86093 { (
char *)
"delete_HammingComputerM8", _wrap_delete_HammingComputerM8, METH_VARARGS, NULL},
86094 { (
char *)
"HammingComputerM8_swigregister", HammingComputerM8_swigregister, METH_VARARGS, NULL},
86095 { (
char *)
"HammingComputerM4_a_set", _wrap_HammingComputerM4_a_set, METH_VARARGS, NULL},
86096 { (
char *)
"HammingComputerM4_a_get", _wrap_HammingComputerM4_a_get, METH_VARARGS, NULL},
86097 { (
char *)
"HammingComputerM4_n_set", _wrap_HammingComputerM4_n_set, METH_VARARGS, NULL},
86098 { (
char *)
"HammingComputerM4_n_get", _wrap_HammingComputerM4_n_get, METH_VARARGS, NULL},
86099 { (
char *)
"new_HammingComputerM4", _wrap_new_HammingComputerM4, METH_VARARGS, NULL},
86100 { (
char *)
"HammingComputerM4_set", _wrap_HammingComputerM4_set, METH_VARARGS, NULL},
86101 { (
char *)
"HammingComputerM4_hamming", _wrap_HammingComputerM4_hamming, METH_VARARGS, NULL},
86102 { (
char *)
"delete_HammingComputerM4", _wrap_delete_HammingComputerM4, METH_VARARGS, NULL},
86103 { (
char *)
"HammingComputerM4_swigregister", HammingComputerM4_swigregister, METH_VARARGS, NULL},
86104 { (
char *)
"generalized_hamming_64", _wrap_generalized_hamming_64, METH_VARARGS, NULL},
86105 { (
char *)
"GenHammingComputer8_a0_set", _wrap_GenHammingComputer8_a0_set, METH_VARARGS, NULL},
86106 { (
char *)
"GenHammingComputer8_a0_get", _wrap_GenHammingComputer8_a0_get, METH_VARARGS, NULL},
86107 { (
char *)
"new_GenHammingComputer8", _wrap_new_GenHammingComputer8, METH_VARARGS, NULL},
86108 { (
char *)
"GenHammingComputer8_hamming", _wrap_GenHammingComputer8_hamming, METH_VARARGS, NULL},
86109 { (
char *)
"delete_GenHammingComputer8", _wrap_delete_GenHammingComputer8, METH_VARARGS, NULL},
86110 { (
char *)
"GenHammingComputer8_swigregister", GenHammingComputer8_swigregister, METH_VARARGS, NULL},
86111 { (
char *)
"GenHammingComputer16_a0_set", _wrap_GenHammingComputer16_a0_set, METH_VARARGS, NULL},
86112 { (
char *)
"GenHammingComputer16_a0_get", _wrap_GenHammingComputer16_a0_get, METH_VARARGS, NULL},
86113 { (
char *)
"GenHammingComputer16_a1_set", _wrap_GenHammingComputer16_a1_set, METH_VARARGS, NULL},
86114 { (
char *)
"GenHammingComputer16_a1_get", _wrap_GenHammingComputer16_a1_get, METH_VARARGS, NULL},
86115 { (
char *)
"new_GenHammingComputer16", _wrap_new_GenHammingComputer16, METH_VARARGS, NULL},
86116 { (
char *)
"GenHammingComputer16_hamming", _wrap_GenHammingComputer16_hamming, METH_VARARGS, NULL},
86117 { (
char *)
"delete_GenHammingComputer16", _wrap_delete_GenHammingComputer16, METH_VARARGS, NULL},
86118 { (
char *)
"GenHammingComputer16_swigregister", GenHammingComputer16_swigregister, METH_VARARGS, NULL},
86119 { (
char *)
"GenHammingComputer32_a0_set", _wrap_GenHammingComputer32_a0_set, METH_VARARGS, NULL},
86120 { (
char *)
"GenHammingComputer32_a0_get", _wrap_GenHammingComputer32_a0_get, METH_VARARGS, NULL},
86121 { (
char *)
"GenHammingComputer32_a1_set", _wrap_GenHammingComputer32_a1_set, METH_VARARGS, NULL},
86122 { (
char *)
"GenHammingComputer32_a1_get", _wrap_GenHammingComputer32_a1_get, METH_VARARGS, NULL},
86123 { (
char *)
"GenHammingComputer32_a2_set", _wrap_GenHammingComputer32_a2_set, METH_VARARGS, NULL},
86124 { (
char *)
"GenHammingComputer32_a2_get", _wrap_GenHammingComputer32_a2_get, METH_VARARGS, NULL},
86125 { (
char *)
"GenHammingComputer32_a3_set", _wrap_GenHammingComputer32_a3_set, METH_VARARGS, NULL},
86126 { (
char *)
"GenHammingComputer32_a3_get", _wrap_GenHammingComputer32_a3_get, METH_VARARGS, NULL},
86127 { (
char *)
"new_GenHammingComputer32", _wrap_new_GenHammingComputer32, METH_VARARGS, NULL},
86128 { (
char *)
"GenHammingComputer32_hamming", _wrap_GenHammingComputer32_hamming, METH_VARARGS, NULL},
86129 { (
char *)
"delete_GenHammingComputer32", _wrap_delete_GenHammingComputer32, METH_VARARGS, NULL},
86130 { (
char *)
"GenHammingComputer32_swigregister", GenHammingComputer32_swigregister, METH_VARARGS, NULL},
86131 { (
char *)
"GenHammingComputerM8_a_set", _wrap_GenHammingComputerM8_a_set, METH_VARARGS, NULL},
86132 { (
char *)
"GenHammingComputerM8_a_get", _wrap_GenHammingComputerM8_a_get, METH_VARARGS, NULL},
86133 { (
char *)
"GenHammingComputerM8_n_set", _wrap_GenHammingComputerM8_n_set, METH_VARARGS, NULL},
86134 { (
char *)
"GenHammingComputerM8_n_get", _wrap_GenHammingComputerM8_n_get, METH_VARARGS, NULL},
86135 { (
char *)
"new_GenHammingComputerM8", _wrap_new_GenHammingComputerM8, METH_VARARGS, NULL},
86136 { (
char *)
"GenHammingComputerM8_hamming", _wrap_GenHammingComputerM8_hamming, METH_VARARGS, NULL},
86137 { (
char *)
"delete_GenHammingComputerM8", _wrap_delete_GenHammingComputerM8, METH_VARARGS, NULL},
86138 { (
char *)
"GenHammingComputerM8_swigregister", GenHammingComputerM8_swigregister, METH_VARARGS, NULL},
86139 { (
char *)
"generalized_hammings_knn_hc", _wrap_generalized_hammings_knn_hc, METH_VARARGS, NULL},
86140 { (
char *)
"get_num_gpus", _wrap_get_num_gpus, METH_VARARGS, NULL},
86141 { (
char *)
"delete_GpuResources", _wrap_delete_GpuResources, METH_VARARGS, NULL},
86142 { (
char *)
"GpuResources_initializeForDevice", _wrap_GpuResources_initializeForDevice, METH_VARARGS, NULL},
86143 { (
char *)
"GpuResources_getBlasHandle", _wrap_GpuResources_getBlasHandle, METH_VARARGS, NULL},
86144 { (
char *)
"GpuResources_getDefaultStream", _wrap_GpuResources_getDefaultStream, METH_VARARGS, NULL},
86145 { (
char *)
"GpuResources_getAlternateStreams", _wrap_GpuResources_getAlternateStreams, METH_VARARGS, NULL},
86146 { (
char *)
"GpuResources_getPinnedMemory", _wrap_GpuResources_getPinnedMemory, METH_VARARGS, NULL},
86147 { (
char *)
"GpuResources_getAsyncCopyStream", _wrap_GpuResources_getAsyncCopyStream, METH_VARARGS, NULL},
86148 { (
char *)
"GpuResources_getBlasHandleCurrentDevice", _wrap_GpuResources_getBlasHandleCurrentDevice, METH_VARARGS, NULL},
86149 { (
char *)
"GpuResources_getDefaultStreamCurrentDevice", _wrap_GpuResources_getDefaultStreamCurrentDevice, METH_VARARGS, NULL},
86150 { (
char *)
"GpuResources_syncDefaultStream", _wrap_GpuResources_syncDefaultStream, METH_VARARGS, NULL},
86151 { (
char *)
"GpuResources_syncDefaultStreamCurrentDevice", _wrap_GpuResources_syncDefaultStreamCurrentDevice, METH_VARARGS, NULL},
86152 { (
char *)
"GpuResources_getAlternateStreamsCurrentDevice", _wrap_GpuResources_getAlternateStreamsCurrentDevice, METH_VARARGS, NULL},
86153 { (
char *)
"GpuResources_getAsyncCopyStreamCurrentDevice", _wrap_GpuResources_getAsyncCopyStreamCurrentDevice, METH_VARARGS, NULL},
86154 { (
char *)
"GpuResources_swigregister", GpuResources_swigregister, METH_VARARGS, NULL},
86155 { (
char *)
"new_StandardGpuResources", _wrap_new_StandardGpuResources, METH_VARARGS, NULL},
86156 { (
char *)
"delete_StandardGpuResources", _wrap_delete_StandardGpuResources, METH_VARARGS, NULL},
86157 { (
char *)
"StandardGpuResources_noTempMemory", _wrap_StandardGpuResources_noTempMemory, METH_VARARGS, NULL},
86158 { (
char *)
"StandardGpuResources_setTempMemory", _wrap_StandardGpuResources_setTempMemory, METH_VARARGS, NULL},
86159 { (
char *)
"StandardGpuResources_setTempMemoryFraction", _wrap_StandardGpuResources_setTempMemoryFraction, METH_VARARGS, NULL},
86160 { (
char *)
"StandardGpuResources_setPinnedMemory", _wrap_StandardGpuResources_setPinnedMemory, METH_VARARGS, NULL},
86161 { (
char *)
"StandardGpuResources_setDefaultStream", _wrap_StandardGpuResources_setDefaultStream, METH_VARARGS, NULL},
86162 { (
char *)
"StandardGpuResources_setDefaultNullStreamAllDevices", _wrap_StandardGpuResources_setDefaultNullStreamAllDevices, METH_VARARGS, NULL},
86163 { (
char *)
"StandardGpuResources_setCudaMallocWarning", _wrap_StandardGpuResources_setCudaMallocWarning, METH_VARARGS, NULL},
86164 { (
char *)
"StandardGpuResources_initializeForDevice", _wrap_StandardGpuResources_initializeForDevice, METH_VARARGS, NULL},
86165 { (
char *)
"StandardGpuResources_getBlasHandle", _wrap_StandardGpuResources_getBlasHandle, METH_VARARGS, NULL},
86166 { (
char *)
"StandardGpuResources_getDefaultStream", _wrap_StandardGpuResources_getDefaultStream, METH_VARARGS, NULL},
86167 { (
char *)
"StandardGpuResources_getAlternateStreams", _wrap_StandardGpuResources_getAlternateStreams, METH_VARARGS, NULL},
86168 { (
char *)
"StandardGpuResources_getPinnedMemory", _wrap_StandardGpuResources_getPinnedMemory, METH_VARARGS, NULL},
86169 { (
char *)
"StandardGpuResources_getAsyncCopyStream", _wrap_StandardGpuResources_getAsyncCopyStream, METH_VARARGS, NULL},
86170 { (
char *)
"StandardGpuResources_swigregister", StandardGpuResources_swigregister, METH_VARARGS, NULL},
86171 { (
char *)
"getmillisecs", _wrap_getmillisecs, METH_VARARGS, NULL},
86172 { (
char *)
"get_mem_usage_kb", _wrap_get_mem_usage_kb, METH_VARARGS, NULL},
86173 { (
char *)
"RandomGenerator_mt_set", _wrap_RandomGenerator_mt_set, METH_VARARGS, NULL},
86174 { (
char *)
"RandomGenerator_mt_get", _wrap_RandomGenerator_mt_get, METH_VARARGS, NULL},
86175 { (
char *)
"RandomGenerator_rand_long", _wrap_RandomGenerator_rand_long, METH_VARARGS, NULL},
86176 { (
char *)
"RandomGenerator_rand_int", _wrap_RandomGenerator_rand_int, METH_VARARGS, NULL},
86177 { (
char *)
"RandomGenerator_rand_float", _wrap_RandomGenerator_rand_float, METH_VARARGS, NULL},
86178 { (
char *)
"RandomGenerator_rand_double", _wrap_RandomGenerator_rand_double, METH_VARARGS, NULL},
86179 { (
char *)
"new_RandomGenerator", _wrap_new_RandomGenerator, METH_VARARGS, NULL},
86180 { (
char *)
"delete_RandomGenerator", _wrap_delete_RandomGenerator, METH_VARARGS, NULL},
86181 { (
char *)
"RandomGenerator_swigregister", RandomGenerator_swigregister, METH_VARARGS, NULL},
86182 { (
char *)
"float_rand", _wrap_float_rand, METH_VARARGS, NULL},
86183 { (
char *)
"float_randn", _wrap_float_randn, METH_VARARGS, NULL},
86184 { (
char *)
"long_rand", _wrap_long_rand, METH_VARARGS, NULL},
86185 { (
char *)
"byte_rand", _wrap_byte_rand, METH_VARARGS, NULL},
86186 { (
char *)
"rand_perm", _wrap_rand_perm, METH_VARARGS, NULL},
86187 { (
char *)
"fvec_L2sqr", _wrap_fvec_L2sqr, METH_VARARGS, NULL},
86188 { (
char *)
"fvec_inner_product", _wrap_fvec_inner_product, METH_VARARGS, NULL},
86189 { (
char *)
"imbalance_factor", _wrap_imbalance_factor, METH_VARARGS, NULL},
86190 { (
char *)
"pairwise_L2sqr", _wrap_pairwise_L2sqr, METH_VARARGS, NULL},
86191 { (
char *)
"fvec_inner_products_ny", _wrap_fvec_inner_products_ny, METH_VARARGS, NULL},
86192 { (
char *)
"fvec_L2sqr_ny", _wrap_fvec_L2sqr_ny, METH_VARARGS, NULL},
86193 { (
char *)
"fvec_norm_L2sqr", _wrap_fvec_norm_L2sqr, METH_VARARGS, NULL},
86194 { (
char *)
"fvec_norms_L2", _wrap_fvec_norms_L2, METH_VARARGS, NULL},
86195 { (
char *)
"fvec_norms_L2sqr", _wrap_fvec_norms_L2sqr, METH_VARARGS, NULL},
86196 { (
char *)
"fvec_renorm_L2", _wrap_fvec_renorm_L2, METH_VARARGS, NULL},
86197 { (
char *)
"inner_product_to_L2sqr", _wrap_inner_product_to_L2sqr, METH_VARARGS, NULL},
86198 { (
char *)
"fvec_inner_products_by_idx", _wrap_fvec_inner_products_by_idx, METH_VARARGS, NULL},
86199 { (
char *)
"fvec_L2sqr_by_idx", _wrap_fvec_L2sqr_by_idx, METH_VARARGS, NULL},
86200 { (
char *)
"knn_inner_product", _wrap_knn_inner_product, METH_VARARGS, NULL},
86201 { (
char *)
"knn_L2sqr", _wrap_knn_L2sqr, METH_VARARGS, NULL},
86202 { (
char *)
"knn_L2sqr_base_shift", _wrap_knn_L2sqr_base_shift, METH_VARARGS, NULL},
86203 { (
char *)
"knn_inner_products_by_idx", _wrap_knn_inner_products_by_idx, METH_VARARGS, NULL},
86204 { (
char *)
"knn_L2sqr_by_idx", _wrap_knn_L2sqr_by_idx, METH_VARARGS, NULL},
86205 { (
char *)
"range_search_L2sqr", _wrap_range_search_L2sqr, METH_VARARGS, NULL},
86206 { (
char *)
"range_search_inner_product", _wrap_range_search_inner_product, METH_VARARGS, NULL},
86207 { (
char *)
"fvec_madd", _wrap_fvec_madd, METH_VARARGS, NULL},
86208 { (
char *)
"fvec_madd_and_argmin", _wrap_fvec_madd_and_argmin, METH_VARARGS, NULL},
86209 { (
char *)
"reflection", _wrap_reflection, METH_VARARGS, NULL},
86210 { (
char *)
"km_update_centroids", _wrap_km_update_centroids, METH_VARARGS, NULL},
86211 { (
char *)
"matrix_qr", _wrap_matrix_qr, METH_VARARGS, NULL},
86212 { (
char *)
"ranklist_handle_ties", _wrap_ranklist_handle_ties, METH_VARARGS, NULL},
86213 { (
char *)
"ranklist_intersection_size", _wrap_ranklist_intersection_size, METH_VARARGS, NULL},
86214 { (
char *)
"merge_result_table_with", _wrap_merge_result_table_with, METH_VARARGS, NULL},
86215 { (
char *)
"fvec_argsort", _wrap_fvec_argsort, METH_VARARGS, NULL},
86216 { (
char *)
"fvec_argsort_parallel", _wrap_fvec_argsort_parallel, METH_VARARGS, NULL},
86217 { (
char *)
"ivec_hist", _wrap_ivec_hist, METH_VARARGS, NULL},
86218 { (
char *)
"bincode_hist", _wrap_bincode_hist, METH_VARARGS, NULL},
86219 { (
char *)
"ivec_checksum", _wrap_ivec_checksum, METH_VARARGS, NULL},
86220 { (
char *)
"fvecs_maybe_subsample", _wrap_fvecs_maybe_subsample, METH_VARARGS, NULL},
86221 { (
char *)
"binary_to_real", _wrap_binary_to_real, METH_VARARGS, NULL},
86222 { (
char *)
"real_to_binary", _wrap_real_to_binary, METH_VARARGS, NULL},
86223 { (
char *)
"Index_d_set", _wrap_Index_d_set, METH_VARARGS, NULL},
86224 { (
char *)
"Index_d_get", _wrap_Index_d_get, METH_VARARGS, NULL},
86225 { (
char *)
"Index_ntotal_set", _wrap_Index_ntotal_set, METH_VARARGS, NULL},
86226 { (
char *)
"Index_ntotal_get", _wrap_Index_ntotal_get, METH_VARARGS, NULL},
86227 { (
char *)
"Index_verbose_set", _wrap_Index_verbose_set, METH_VARARGS, NULL},
86228 { (
char *)
"Index_verbose_get", _wrap_Index_verbose_get, METH_VARARGS, NULL},
86229 { (
char *)
"Index_is_trained_set", _wrap_Index_is_trained_set, METH_VARARGS, NULL},
86230 { (
char *)
"Index_is_trained_get", _wrap_Index_is_trained_get, METH_VARARGS, NULL},
86231 { (
char *)
"Index_metric_type_set", _wrap_Index_metric_type_set, METH_VARARGS, NULL},
86232 { (
char *)
"Index_metric_type_get", _wrap_Index_metric_type_get, METH_VARARGS, NULL},
86233 { (
char *)
"delete_Index", _wrap_delete_Index, METH_VARARGS, NULL},
86234 { (
char *)
"Index_train", _wrap_Index_train, METH_VARARGS, NULL},
86235 { (
char *)
"Index_add", _wrap_Index_add, METH_VARARGS, NULL},
86236 { (
char *)
"Index_add_with_ids", _wrap_Index_add_with_ids, METH_VARARGS, NULL},
86237 { (
char *)
"Index_search", _wrap_Index_search, METH_VARARGS, NULL},
86238 { (
char *)
"Index_range_search", _wrap_Index_range_search, METH_VARARGS, NULL},
86239 { (
char *)
"Index_assign", _wrap_Index_assign, METH_VARARGS, NULL},
86240 { (
char *)
"Index_reset", _wrap_Index_reset, METH_VARARGS, NULL},
86241 { (
char *)
"Index_remove_ids", _wrap_Index_remove_ids, METH_VARARGS, NULL},
86242 { (
char *)
"Index_reconstruct", _wrap_Index_reconstruct, METH_VARARGS, NULL},
86243 { (
char *)
"Index_reconstruct_n", _wrap_Index_reconstruct_n, METH_VARARGS, NULL},
86244 { (
char *)
"Index_search_and_reconstruct", _wrap_Index_search_and_reconstruct, METH_VARARGS, NULL},
86245 { (
char *)
"Index_compute_residual", _wrap_Index_compute_residual, METH_VARARGS, NULL},
86246 { (
char *)
"Index_display", _wrap_Index_display, METH_VARARGS, NULL},
86247 { (
char *)
"Index_swigregister", Index_swigregister, METH_VARARGS, NULL},
86248 { (
char *)
"ClusteringParameters_niter_set", _wrap_ClusteringParameters_niter_set, METH_VARARGS, NULL},
86249 { (
char *)
"ClusteringParameters_niter_get", _wrap_ClusteringParameters_niter_get, METH_VARARGS, NULL},
86250 { (
char *)
"ClusteringParameters_nredo_set", _wrap_ClusteringParameters_nredo_set, METH_VARARGS, NULL},
86251 { (
char *)
"ClusteringParameters_nredo_get", _wrap_ClusteringParameters_nredo_get, METH_VARARGS, NULL},
86252 { (
char *)
"ClusteringParameters_verbose_set", _wrap_ClusteringParameters_verbose_set, METH_VARARGS, NULL},
86253 { (
char *)
"ClusteringParameters_verbose_get", _wrap_ClusteringParameters_verbose_get, METH_VARARGS, NULL},
86254 { (
char *)
"ClusteringParameters_spherical_set", _wrap_ClusteringParameters_spherical_set, METH_VARARGS, NULL},
86255 { (
char *)
"ClusteringParameters_spherical_get", _wrap_ClusteringParameters_spherical_get, METH_VARARGS, NULL},
86256 { (
char *)
"ClusteringParameters_update_index_set", _wrap_ClusteringParameters_update_index_set, METH_VARARGS, NULL},
86257 { (
char *)
"ClusteringParameters_update_index_get", _wrap_ClusteringParameters_update_index_get, METH_VARARGS, NULL},
86258 { (
char *)
"ClusteringParameters_frozen_centroids_set", _wrap_ClusteringParameters_frozen_centroids_set, METH_VARARGS, NULL},
86259 { (
char *)
"ClusteringParameters_frozen_centroids_get", _wrap_ClusteringParameters_frozen_centroids_get, METH_VARARGS, NULL},
86260 { (
char *)
"ClusteringParameters_min_points_per_centroid_set", _wrap_ClusteringParameters_min_points_per_centroid_set, METH_VARARGS, NULL},
86261 { (
char *)
"ClusteringParameters_min_points_per_centroid_get", _wrap_ClusteringParameters_min_points_per_centroid_get, METH_VARARGS, NULL},
86262 { (
char *)
"ClusteringParameters_max_points_per_centroid_set", _wrap_ClusteringParameters_max_points_per_centroid_set, METH_VARARGS, NULL},
86263 { (
char *)
"ClusteringParameters_max_points_per_centroid_get", _wrap_ClusteringParameters_max_points_per_centroid_get, METH_VARARGS, NULL},
86264 { (
char *)
"ClusteringParameters_seed_set", _wrap_ClusteringParameters_seed_set, METH_VARARGS, NULL},
86265 { (
char *)
"ClusteringParameters_seed_get", _wrap_ClusteringParameters_seed_get, METH_VARARGS, NULL},
86266 { (
char *)
"new_ClusteringParameters", _wrap_new_ClusteringParameters, METH_VARARGS, NULL},
86267 { (
char *)
"delete_ClusteringParameters", _wrap_delete_ClusteringParameters, METH_VARARGS, NULL},
86268 { (
char *)
"ClusteringParameters_swigregister", ClusteringParameters_swigregister, METH_VARARGS, NULL},
86269 { (
char *)
"Clustering_d_set", _wrap_Clustering_d_set, METH_VARARGS, NULL},
86270 { (
char *)
"Clustering_d_get", _wrap_Clustering_d_get, METH_VARARGS, NULL},
86271 { (
char *)
"Clustering_k_set", _wrap_Clustering_k_set, METH_VARARGS, NULL},
86272 { (
char *)
"Clustering_k_get", _wrap_Clustering_k_get, METH_VARARGS, NULL},
86273 { (
char *)
"Clustering_centroids_set", _wrap_Clustering_centroids_set, METH_VARARGS, NULL},
86274 { (
char *)
"Clustering_centroids_get", _wrap_Clustering_centroids_get, METH_VARARGS, NULL},
86275 { (
char *)
"Clustering_obj_set", _wrap_Clustering_obj_set, METH_VARARGS, NULL},
86276 { (
char *)
"Clustering_obj_get", _wrap_Clustering_obj_get, METH_VARARGS, NULL},
86277 { (
char *)
"new_Clustering", _wrap_new_Clustering, METH_VARARGS, NULL},
86278 { (
char *)
"Clustering_train", _wrap_Clustering_train, METH_VARARGS, NULL},
86279 { (
char *)
"delete_Clustering", _wrap_delete_Clustering, METH_VARARGS, NULL},
86280 { (
char *)
"Clustering_swigregister", Clustering_swigregister, METH_VARARGS, NULL},
86281 { (
char *)
"kmeans_clustering", _wrap_kmeans_clustering, METH_VARARGS, NULL},
86282 { (
char *)
"ProductQuantizer_d_set", _wrap_ProductQuantizer_d_set, METH_VARARGS, NULL},
86283 { (
char *)
"ProductQuantizer_d_get", _wrap_ProductQuantizer_d_get, METH_VARARGS, NULL},
86284 { (
char *)
"ProductQuantizer_M_set", _wrap_ProductQuantizer_M_set, METH_VARARGS, NULL},
86285 { (
char *)
"ProductQuantizer_M_get", _wrap_ProductQuantizer_M_get, METH_VARARGS, NULL},
86286 { (
char *)
"ProductQuantizer_nbits_set", _wrap_ProductQuantizer_nbits_set, METH_VARARGS, NULL},
86287 { (
char *)
"ProductQuantizer_nbits_get", _wrap_ProductQuantizer_nbits_get, METH_VARARGS, NULL},
86288 { (
char *)
"ProductQuantizer_dsub_set", _wrap_ProductQuantizer_dsub_set, METH_VARARGS, NULL},
86289 { (
char *)
"ProductQuantizer_dsub_get", _wrap_ProductQuantizer_dsub_get, METH_VARARGS, NULL},
86290 { (
char *)
"ProductQuantizer_byte_per_idx_set", _wrap_ProductQuantizer_byte_per_idx_set, METH_VARARGS, NULL},
86291 { (
char *)
"ProductQuantizer_byte_per_idx_get", _wrap_ProductQuantizer_byte_per_idx_get, METH_VARARGS, NULL},
86292 { (
char *)
"ProductQuantizer_code_size_set", _wrap_ProductQuantizer_code_size_set, METH_VARARGS, NULL},
86293 { (
char *)
"ProductQuantizer_code_size_get", _wrap_ProductQuantizer_code_size_get, METH_VARARGS, NULL},
86294 { (
char *)
"ProductQuantizer_ksub_set", _wrap_ProductQuantizer_ksub_set, METH_VARARGS, NULL},
86295 { (
char *)
"ProductQuantizer_ksub_get", _wrap_ProductQuantizer_ksub_get, METH_VARARGS, NULL},
86296 { (
char *)
"ProductQuantizer_verbose_set", _wrap_ProductQuantizer_verbose_set, METH_VARARGS, NULL},
86297 { (
char *)
"ProductQuantizer_verbose_get", _wrap_ProductQuantizer_verbose_get, METH_VARARGS, NULL},
86298 { (
char *)
"ProductQuantizer_train_type_set", _wrap_ProductQuantizer_train_type_set, METH_VARARGS, NULL},
86299 { (
char *)
"ProductQuantizer_train_type_get", _wrap_ProductQuantizer_train_type_get, METH_VARARGS, NULL},
86300 { (
char *)
"ProductQuantizer_cp_set", _wrap_ProductQuantizer_cp_set, METH_VARARGS, NULL},
86301 { (
char *)
"ProductQuantizer_cp_get", _wrap_ProductQuantizer_cp_get, METH_VARARGS, NULL},
86302 { (
char *)
"ProductQuantizer_assign_index_set", _wrap_ProductQuantizer_assign_index_set, METH_VARARGS, NULL},
86303 { (
char *)
"ProductQuantizer_assign_index_get", _wrap_ProductQuantizer_assign_index_get, METH_VARARGS, NULL},
86304 { (
char *)
"ProductQuantizer_centroids_set", _wrap_ProductQuantizer_centroids_set, METH_VARARGS, NULL},
86305 { (
char *)
"ProductQuantizer_centroids_get", _wrap_ProductQuantizer_centroids_get, METH_VARARGS, NULL},
86306 { (
char *)
"ProductQuantizer_get_centroids", _wrap_ProductQuantizer_get_centroids, METH_VARARGS, NULL},
86307 { (
char *)
"ProductQuantizer_train", _wrap_ProductQuantizer_train, METH_VARARGS, NULL},
86308 { (
char *)
"new_ProductQuantizer", _wrap_new_ProductQuantizer, METH_VARARGS, NULL},
86309 { (
char *)
"ProductQuantizer_set_derived_values", _wrap_ProductQuantizer_set_derived_values, METH_VARARGS, NULL},
86310 { (
char *)
"ProductQuantizer_set_params", _wrap_ProductQuantizer_set_params, METH_VARARGS, NULL},
86311 { (
char *)
"ProductQuantizer_compute_code", _wrap_ProductQuantizer_compute_code, METH_VARARGS, NULL},
86312 { (
char *)
"ProductQuantizer_compute_codes", _wrap_ProductQuantizer_compute_codes, METH_VARARGS, NULL},
86313 { (
char *)
"ProductQuantizer_decode", _wrap_ProductQuantizer_decode, METH_VARARGS, NULL},
86314 { (
char *)
"ProductQuantizer_compute_code_from_distance_table", _wrap_ProductQuantizer_compute_code_from_distance_table, METH_VARARGS, NULL},
86315 { (
char *)
"ProductQuantizer_compute_distance_table", _wrap_ProductQuantizer_compute_distance_table, METH_VARARGS, NULL},
86316 { (
char *)
"ProductQuantizer_compute_inner_prod_table", _wrap_ProductQuantizer_compute_inner_prod_table, METH_VARARGS, NULL},
86317 { (
char *)
"ProductQuantizer_compute_distance_tables", _wrap_ProductQuantizer_compute_distance_tables, METH_VARARGS, NULL},
86318 { (
char *)
"ProductQuantizer_compute_inner_prod_tables", _wrap_ProductQuantizer_compute_inner_prod_tables, METH_VARARGS, NULL},
86319 { (
char *)
"ProductQuantizer_search", _wrap_ProductQuantizer_search, METH_VARARGS, NULL},
86320 { (
char *)
"ProductQuantizer_search_ip", _wrap_ProductQuantizer_search_ip, METH_VARARGS, NULL},
86321 { (
char *)
"ProductQuantizer_sdc_table_set", _wrap_ProductQuantizer_sdc_table_set, METH_VARARGS, NULL},
86322 { (
char *)
"ProductQuantizer_sdc_table_get", _wrap_ProductQuantizer_sdc_table_get, METH_VARARGS, NULL},
86323 { (
char *)
"ProductQuantizer_compute_sdc_table", _wrap_ProductQuantizer_compute_sdc_table, METH_VARARGS, NULL},
86324 { (
char *)
"ProductQuantizer_search_sdc", _wrap_ProductQuantizer_search_sdc, METH_VARARGS, NULL},
86325 { (
char *)
"delete_ProductQuantizer", _wrap_delete_ProductQuantizer, METH_VARARGS, NULL},
86326 { (
char *)
"ProductQuantizer_swigregister", ProductQuantizer_swigregister, METH_VARARGS, NULL},
86327 { (
char *)
"VectorTransform_d_in_set", _wrap_VectorTransform_d_in_set, METH_VARARGS, NULL},
86328 { (
char *)
"VectorTransform_d_in_get", _wrap_VectorTransform_d_in_get, METH_VARARGS, NULL},
86329 { (
char *)
"VectorTransform_d_out_set", _wrap_VectorTransform_d_out_set, METH_VARARGS, NULL},
86330 { (
char *)
"VectorTransform_d_out_get", _wrap_VectorTransform_d_out_get, METH_VARARGS, NULL},
86331 { (
char *)
"VectorTransform_is_trained_set", _wrap_VectorTransform_is_trained_set, METH_VARARGS, NULL},
86332 { (
char *)
"VectorTransform_is_trained_get", _wrap_VectorTransform_is_trained_get, METH_VARARGS, NULL},
86333 { (
char *)
"VectorTransform_train", _wrap_VectorTransform_train, METH_VARARGS, NULL},
86334 { (
char *)
"VectorTransform_apply", _wrap_VectorTransform_apply, METH_VARARGS, NULL},
86335 { (
char *)
"VectorTransform_apply_noalloc", _wrap_VectorTransform_apply_noalloc, METH_VARARGS, NULL},
86336 { (
char *)
"VectorTransform_reverse_transform", _wrap_VectorTransform_reverse_transform, METH_VARARGS, NULL},
86337 { (
char *)
"delete_VectorTransform", _wrap_delete_VectorTransform, METH_VARARGS, NULL},
86338 { (
char *)
"VectorTransform_swigregister", VectorTransform_swigregister, METH_VARARGS, NULL},
86339 { (
char *)
"LinearTransform_have_bias_set", _wrap_LinearTransform_have_bias_set, METH_VARARGS, NULL},
86340 { (
char *)
"LinearTransform_have_bias_get", _wrap_LinearTransform_have_bias_get, METH_VARARGS, NULL},
86341 { (
char *)
"LinearTransform_is_orthonormal_set", _wrap_LinearTransform_is_orthonormal_set, METH_VARARGS, NULL},
86342 { (
char *)
"LinearTransform_is_orthonormal_get", _wrap_LinearTransform_is_orthonormal_get, METH_VARARGS, NULL},
86343 { (
char *)
"LinearTransform_A_set", _wrap_LinearTransform_A_set, METH_VARARGS, NULL},
86344 { (
char *)
"LinearTransform_A_get", _wrap_LinearTransform_A_get, METH_VARARGS, NULL},
86345 { (
char *)
"LinearTransform_b_set", _wrap_LinearTransform_b_set, METH_VARARGS, NULL},
86346 { (
char *)
"LinearTransform_b_get", _wrap_LinearTransform_b_get, METH_VARARGS, NULL},
86347 { (
char *)
"new_LinearTransform", _wrap_new_LinearTransform, METH_VARARGS, NULL},
86348 { (
char *)
"LinearTransform_apply_noalloc", _wrap_LinearTransform_apply_noalloc, METH_VARARGS, NULL},
86349 { (
char *)
"LinearTransform_transform_transpose", _wrap_LinearTransform_transform_transpose, METH_VARARGS, NULL},
86350 { (
char *)
"LinearTransform_reverse_transform", _wrap_LinearTransform_reverse_transform, METH_VARARGS, NULL},
86351 { (
char *)
"LinearTransform_set_is_orthonormal", _wrap_LinearTransform_set_is_orthonormal, METH_VARARGS, NULL},
86352 { (
char *)
"LinearTransform_verbose_set", _wrap_LinearTransform_verbose_set, METH_VARARGS, NULL},
86353 { (
char *)
"LinearTransform_verbose_get", _wrap_LinearTransform_verbose_get, METH_VARARGS, NULL},
86354 { (
char *)
"delete_LinearTransform", _wrap_delete_LinearTransform, METH_VARARGS, NULL},
86355 { (
char *)
"LinearTransform_swigregister", LinearTransform_swigregister, METH_VARARGS, NULL},
86356 { (
char *)
"RandomRotationMatrix_init", _wrap_RandomRotationMatrix_init, METH_VARARGS, NULL},
86357 { (
char *)
"RandomRotationMatrix_train", _wrap_RandomRotationMatrix_train, METH_VARARGS, NULL},
86358 { (
char *)
"new_RandomRotationMatrix", _wrap_new_RandomRotationMatrix, METH_VARARGS, NULL},
86359 { (
char *)
"delete_RandomRotationMatrix", _wrap_delete_RandomRotationMatrix, METH_VARARGS, NULL},
86360 { (
char *)
"RandomRotationMatrix_swigregister", RandomRotationMatrix_swigregister, METH_VARARGS, NULL},
86361 { (
char *)
"PCAMatrix_eigen_power_set", _wrap_PCAMatrix_eigen_power_set, METH_VARARGS, NULL},
86362 { (
char *)
"PCAMatrix_eigen_power_get", _wrap_PCAMatrix_eigen_power_get, METH_VARARGS, NULL},
86363 { (
char *)
"PCAMatrix_random_rotation_set", _wrap_PCAMatrix_random_rotation_set, METH_VARARGS, NULL},
86364 { (
char *)
"PCAMatrix_random_rotation_get", _wrap_PCAMatrix_random_rotation_get, METH_VARARGS, NULL},
86365 { (
char *)
"PCAMatrix_max_points_per_d_set", _wrap_PCAMatrix_max_points_per_d_set, METH_VARARGS, NULL},
86366 { (
char *)
"PCAMatrix_max_points_per_d_get", _wrap_PCAMatrix_max_points_per_d_get, METH_VARARGS, NULL},
86367 { (
char *)
"PCAMatrix_balanced_bins_set", _wrap_PCAMatrix_balanced_bins_set, METH_VARARGS, NULL},
86368 { (
char *)
"PCAMatrix_balanced_bins_get", _wrap_PCAMatrix_balanced_bins_get, METH_VARARGS, NULL},
86369 { (
char *)
"PCAMatrix_mean_set", _wrap_PCAMatrix_mean_set, METH_VARARGS, NULL},
86370 { (
char *)
"PCAMatrix_mean_get", _wrap_PCAMatrix_mean_get, METH_VARARGS, NULL},
86371 { (
char *)
"PCAMatrix_eigenvalues_set", _wrap_PCAMatrix_eigenvalues_set, METH_VARARGS, NULL},
86372 { (
char *)
"PCAMatrix_eigenvalues_get", _wrap_PCAMatrix_eigenvalues_get, METH_VARARGS, NULL},
86373 { (
char *)
"PCAMatrix_PCAMat_set", _wrap_PCAMatrix_PCAMat_set, METH_VARARGS, NULL},
86374 { (
char *)
"PCAMatrix_PCAMat_get", _wrap_PCAMatrix_PCAMat_get, METH_VARARGS, NULL},
86375 { (
char *)
"new_PCAMatrix", _wrap_new_PCAMatrix, METH_VARARGS, NULL},
86376 { (
char *)
"PCAMatrix_train", _wrap_PCAMatrix_train, METH_VARARGS, NULL},
86377 { (
char *)
"PCAMatrix_copy_from", _wrap_PCAMatrix_copy_from, METH_VARARGS, NULL},
86378 { (
char *)
"PCAMatrix_prepare_Ab", _wrap_PCAMatrix_prepare_Ab, METH_VARARGS, NULL},
86379 { (
char *)
"delete_PCAMatrix", _wrap_delete_PCAMatrix, METH_VARARGS, NULL},
86380 { (
char *)
"PCAMatrix_swigregister", PCAMatrix_swigregister, METH_VARARGS, NULL},
86381 { (
char *)
"OPQMatrix_M_set", _wrap_OPQMatrix_M_set, METH_VARARGS, NULL},
86382 { (
char *)
"OPQMatrix_M_get", _wrap_OPQMatrix_M_get, METH_VARARGS, NULL},
86383 { (
char *)
"OPQMatrix_niter_set", _wrap_OPQMatrix_niter_set, METH_VARARGS, NULL},
86384 { (
char *)
"OPQMatrix_niter_get", _wrap_OPQMatrix_niter_get, METH_VARARGS, NULL},
86385 { (
char *)
"OPQMatrix_niter_pq_set", _wrap_OPQMatrix_niter_pq_set, METH_VARARGS, NULL},
86386 { (
char *)
"OPQMatrix_niter_pq_get", _wrap_OPQMatrix_niter_pq_get, METH_VARARGS, NULL},
86387 { (
char *)
"OPQMatrix_niter_pq_0_set", _wrap_OPQMatrix_niter_pq_0_set, METH_VARARGS, NULL},
86388 { (
char *)
"OPQMatrix_niter_pq_0_get", _wrap_OPQMatrix_niter_pq_0_get, METH_VARARGS, NULL},
86389 { (
char *)
"OPQMatrix_max_train_points_set", _wrap_OPQMatrix_max_train_points_set, METH_VARARGS, NULL},
86390 { (
char *)
"OPQMatrix_max_train_points_get", _wrap_OPQMatrix_max_train_points_get, METH_VARARGS, NULL},
86391 { (
char *)
"OPQMatrix_verbose_set", _wrap_OPQMatrix_verbose_set, METH_VARARGS, NULL},
86392 { (
char *)
"OPQMatrix_verbose_get", _wrap_OPQMatrix_verbose_get, METH_VARARGS, NULL},
86393 { (
char *)
"OPQMatrix_pq_set", _wrap_OPQMatrix_pq_set, METH_VARARGS, NULL},
86394 { (
char *)
"OPQMatrix_pq_get", _wrap_OPQMatrix_pq_get, METH_VARARGS, NULL},
86395 { (
char *)
"new_OPQMatrix", _wrap_new_OPQMatrix, METH_VARARGS, NULL},
86396 { (
char *)
"OPQMatrix_train", _wrap_OPQMatrix_train, METH_VARARGS, NULL},
86397 { (
char *)
"delete_OPQMatrix", _wrap_delete_OPQMatrix, METH_VARARGS, NULL},
86398 { (
char *)
"OPQMatrix_swigregister", OPQMatrix_swigregister, METH_VARARGS, NULL},
86399 { (
char *)
"RemapDimensionsTransform_map_set", _wrap_RemapDimensionsTransform_map_set, METH_VARARGS, NULL},
86400 { (
char *)
"RemapDimensionsTransform_map_get", _wrap_RemapDimensionsTransform_map_get, METH_VARARGS, NULL},
86401 { (
char *)
"RemapDimensionsTransform_apply_noalloc", _wrap_RemapDimensionsTransform_apply_noalloc, METH_VARARGS, NULL},
86402 { (
char *)
"RemapDimensionsTransform_reverse_transform", _wrap_RemapDimensionsTransform_reverse_transform, METH_VARARGS, NULL},
86403 { (
char *)
"new_RemapDimensionsTransform", _wrap_new_RemapDimensionsTransform, METH_VARARGS, NULL},
86404 { (
char *)
"delete_RemapDimensionsTransform", _wrap_delete_RemapDimensionsTransform, METH_VARARGS, NULL},
86405 { (
char *)
"RemapDimensionsTransform_swigregister", RemapDimensionsTransform_swigregister, METH_VARARGS, NULL},
86406 { (
char *)
"NormalizationTransform_norm_set", _wrap_NormalizationTransform_norm_set, METH_VARARGS, NULL},
86407 { (
char *)
"NormalizationTransform_norm_get", _wrap_NormalizationTransform_norm_get, METH_VARARGS, NULL},
86408 { (
char *)
"new_NormalizationTransform", _wrap_new_NormalizationTransform, METH_VARARGS, NULL},
86409 { (
char *)
"NormalizationTransform_apply_noalloc", _wrap_NormalizationTransform_apply_noalloc, METH_VARARGS, NULL},
86410 { (
char *)
"NormalizationTransform_reverse_transform", _wrap_NormalizationTransform_reverse_transform, METH_VARARGS, NULL},
86411 { (
char *)
"delete_NormalizationTransform", _wrap_delete_NormalizationTransform, METH_VARARGS, NULL},
86412 { (
char *)
"NormalizationTransform_swigregister", NormalizationTransform_swigregister, METH_VARARGS, NULL},
86413 { (
char *)
"IndexPreTransform_chain_set", _wrap_IndexPreTransform_chain_set, METH_VARARGS, NULL},
86414 { (
char *)
"IndexPreTransform_chain_get", _wrap_IndexPreTransform_chain_get, METH_VARARGS, NULL},
86415 { (
char *)
"IndexPreTransform_index_set", _wrap_IndexPreTransform_index_set, METH_VARARGS, NULL},
86416 { (
char *)
"IndexPreTransform_index_get", _wrap_IndexPreTransform_index_get, METH_VARARGS, NULL},
86417 { (
char *)
"IndexPreTransform_own_fields_set", _wrap_IndexPreTransform_own_fields_set, METH_VARARGS, NULL},
86418 { (
char *)
"IndexPreTransform_own_fields_get", _wrap_IndexPreTransform_own_fields_get, METH_VARARGS, NULL},
86419 { (
char *)
"new_IndexPreTransform", _wrap_new_IndexPreTransform, METH_VARARGS, NULL},
86420 { (
char *)
"IndexPreTransform_prepend_transform", _wrap_IndexPreTransform_prepend_transform, METH_VARARGS, NULL},
86421 { (
char *)
"IndexPreTransform_train", _wrap_IndexPreTransform_train, METH_VARARGS, NULL},
86422 { (
char *)
"IndexPreTransform_add", _wrap_IndexPreTransform_add, METH_VARARGS, NULL},
86423 { (
char *)
"IndexPreTransform_add_with_ids", _wrap_IndexPreTransform_add_with_ids, METH_VARARGS, NULL},
86424 { (
char *)
"IndexPreTransform_reset", _wrap_IndexPreTransform_reset, METH_VARARGS, NULL},
86425 { (
char *)
"IndexPreTransform_remove_ids", _wrap_IndexPreTransform_remove_ids, METH_VARARGS, NULL},
86426 { (
char *)
"IndexPreTransform_search", _wrap_IndexPreTransform_search, METH_VARARGS, NULL},
86427 { (
char *)
"IndexPreTransform_reconstruct", _wrap_IndexPreTransform_reconstruct, METH_VARARGS, NULL},
86428 { (
char *)
"IndexPreTransform_reconstruct_n", _wrap_IndexPreTransform_reconstruct_n, METH_VARARGS, NULL},
86429 { (
char *)
"IndexPreTransform_search_and_reconstruct", _wrap_IndexPreTransform_search_and_reconstruct, METH_VARARGS, NULL},
86430 { (
char *)
"IndexPreTransform_apply_chain", _wrap_IndexPreTransform_apply_chain, METH_VARARGS, NULL},
86431 { (
char *)
"IndexPreTransform_reverse_chain", _wrap_IndexPreTransform_reverse_chain, METH_VARARGS, NULL},
86432 { (
char *)
"delete_IndexPreTransform", _wrap_delete_IndexPreTransform, METH_VARARGS, NULL},
86433 { (
char *)
"IndexPreTransform_swigregister", IndexPreTransform_swigregister, METH_VARARGS, NULL},
86434 { (
char *)
"IndexFlat_xb_set", _wrap_IndexFlat_xb_set, METH_VARARGS, NULL},
86435 { (
char *)
"IndexFlat_xb_get", _wrap_IndexFlat_xb_get, METH_VARARGS, NULL},
86436 { (
char *)
"IndexFlat_add", _wrap_IndexFlat_add, METH_VARARGS, NULL},
86437 { (
char *)
"IndexFlat_reset", _wrap_IndexFlat_reset, METH_VARARGS, NULL},
86438 { (
char *)
"IndexFlat_search", _wrap_IndexFlat_search, METH_VARARGS, NULL},
86439 { (
char *)
"IndexFlat_range_search", _wrap_IndexFlat_range_search, METH_VARARGS, NULL},
86440 { (
char *)
"IndexFlat_reconstruct", _wrap_IndexFlat_reconstruct, METH_VARARGS, NULL},
86441 { (
char *)
"IndexFlat_compute_distance_subset", _wrap_IndexFlat_compute_distance_subset, METH_VARARGS, NULL},
86442 { (
char *)
"IndexFlat_remove_ids", _wrap_IndexFlat_remove_ids, METH_VARARGS, NULL},
86443 { (
char *)
"new_IndexFlat", _wrap_new_IndexFlat, METH_VARARGS, NULL},
86444 { (
char *)
"delete_IndexFlat", _wrap_delete_IndexFlat, METH_VARARGS, NULL},
86445 { (
char *)
"IndexFlat_swigregister", IndexFlat_swigregister, METH_VARARGS, NULL},
86446 { (
char *)
"new_IndexFlatIP", _wrap_new_IndexFlatIP, METH_VARARGS, NULL},
86447 { (
char *)
"delete_IndexFlatIP", _wrap_delete_IndexFlatIP, METH_VARARGS, NULL},
86448 { (
char *)
"IndexFlatIP_swigregister", IndexFlatIP_swigregister, METH_VARARGS, NULL},
86449 { (
char *)
"new_IndexFlatL2", _wrap_new_IndexFlatL2, METH_VARARGS, NULL},
86450 { (
char *)
"delete_IndexFlatL2", _wrap_delete_IndexFlatL2, METH_VARARGS, NULL},
86451 { (
char *)
"IndexFlatL2_swigregister", IndexFlatL2_swigregister, METH_VARARGS, NULL},
86452 { (
char *)
"IndexFlatL2BaseShift_shift_set", _wrap_IndexFlatL2BaseShift_shift_set, METH_VARARGS, NULL},
86453 { (
char *)
"IndexFlatL2BaseShift_shift_get", _wrap_IndexFlatL2BaseShift_shift_get, METH_VARARGS, NULL},
86454 { (
char *)
"new_IndexFlatL2BaseShift", _wrap_new_IndexFlatL2BaseShift, METH_VARARGS, NULL},
86455 { (
char *)
"IndexFlatL2BaseShift_search", _wrap_IndexFlatL2BaseShift_search, METH_VARARGS, NULL},
86456 { (
char *)
"delete_IndexFlatL2BaseShift", _wrap_delete_IndexFlatL2BaseShift, METH_VARARGS, NULL},
86457 { (
char *)
"IndexFlatL2BaseShift_swigregister", IndexFlatL2BaseShift_swigregister, METH_VARARGS, NULL},
86458 { (
char *)
"IndexRefineFlat_refine_index_set", _wrap_IndexRefineFlat_refine_index_set, METH_VARARGS, NULL},
86459 { (
char *)
"IndexRefineFlat_refine_index_get", _wrap_IndexRefineFlat_refine_index_get, METH_VARARGS, NULL},
86460 { (
char *)
"IndexRefineFlat_base_index_set", _wrap_IndexRefineFlat_base_index_set, METH_VARARGS, NULL},
86461 { (
char *)
"IndexRefineFlat_base_index_get", _wrap_IndexRefineFlat_base_index_get, METH_VARARGS, NULL},
86462 { (
char *)
"IndexRefineFlat_own_fields_set", _wrap_IndexRefineFlat_own_fields_set, METH_VARARGS, NULL},
86463 { (
char *)
"IndexRefineFlat_own_fields_get", _wrap_IndexRefineFlat_own_fields_get, METH_VARARGS, NULL},
86464 { (
char *)
"IndexRefineFlat_k_factor_set", _wrap_IndexRefineFlat_k_factor_set, METH_VARARGS, NULL},
86465 { (
char *)
"IndexRefineFlat_k_factor_get", _wrap_IndexRefineFlat_k_factor_get, METH_VARARGS, NULL},
86466 { (
char *)
"new_IndexRefineFlat", _wrap_new_IndexRefineFlat, METH_VARARGS, NULL},
86467 { (
char *)
"IndexRefineFlat_train", _wrap_IndexRefineFlat_train, METH_VARARGS, NULL},
86468 { (
char *)
"IndexRefineFlat_add", _wrap_IndexRefineFlat_add, METH_VARARGS, NULL},
86469 { (
char *)
"IndexRefineFlat_reset", _wrap_IndexRefineFlat_reset, METH_VARARGS, NULL},
86470 { (
char *)
"IndexRefineFlat_search", _wrap_IndexRefineFlat_search, METH_VARARGS, NULL},
86471 { (
char *)
"delete_IndexRefineFlat", _wrap_delete_IndexRefineFlat, METH_VARARGS, NULL},
86472 { (
char *)
"IndexRefineFlat_swigregister", IndexRefineFlat_swigregister, METH_VARARGS, NULL},
86473 { (
char *)
"IndexFlat1D_continuous_update_set", _wrap_IndexFlat1D_continuous_update_set, METH_VARARGS, NULL},
86474 { (
char *)
"IndexFlat1D_continuous_update_get", _wrap_IndexFlat1D_continuous_update_get, METH_VARARGS, NULL},
86475 { (
char *)
"IndexFlat1D_perm_set", _wrap_IndexFlat1D_perm_set, METH_VARARGS, NULL},
86476 { (
char *)
"IndexFlat1D_perm_get", _wrap_IndexFlat1D_perm_get, METH_VARARGS, NULL},
86477 { (
char *)
"new_IndexFlat1D", _wrap_new_IndexFlat1D, METH_VARARGS, NULL},
86478 { (
char *)
"IndexFlat1D_update_permutation", _wrap_IndexFlat1D_update_permutation, METH_VARARGS, NULL},
86479 { (
char *)
"IndexFlat1D_add", _wrap_IndexFlat1D_add, METH_VARARGS, NULL},
86480 { (
char *)
"IndexFlat1D_reset", _wrap_IndexFlat1D_reset, METH_VARARGS, NULL},
86481 { (
char *)
"IndexFlat1D_search", _wrap_IndexFlat1D_search, METH_VARARGS, NULL},
86482 { (
char *)
"delete_IndexFlat1D", _wrap_delete_IndexFlat1D, METH_VARARGS, NULL},
86483 { (
char *)
"IndexFlat1D_swigregister", IndexFlat1D_swigregister, METH_VARARGS, NULL},
86484 { (
char *)
"IndexLSH_nbits_set", _wrap_IndexLSH_nbits_set, METH_VARARGS, NULL},
86485 { (
char *)
"IndexLSH_nbits_get", _wrap_IndexLSH_nbits_get, METH_VARARGS, NULL},
86486 { (
char *)
"IndexLSH_bytes_per_vec_set", _wrap_IndexLSH_bytes_per_vec_set, METH_VARARGS, NULL},
86487 { (
char *)
"IndexLSH_bytes_per_vec_get", _wrap_IndexLSH_bytes_per_vec_get, METH_VARARGS, NULL},
86488 { (
char *)
"IndexLSH_rotate_data_set", _wrap_IndexLSH_rotate_data_set, METH_VARARGS, NULL},
86489 { (
char *)
"IndexLSH_rotate_data_get", _wrap_IndexLSH_rotate_data_get, METH_VARARGS, NULL},
86490 { (
char *)
"IndexLSH_train_thresholds_set", _wrap_IndexLSH_train_thresholds_set, METH_VARARGS, NULL},
86491 { (
char *)
"IndexLSH_train_thresholds_get", _wrap_IndexLSH_train_thresholds_get, METH_VARARGS, NULL},
86492 { (
char *)
"IndexLSH_rrot_set", _wrap_IndexLSH_rrot_set, METH_VARARGS, NULL},
86493 { (
char *)
"IndexLSH_rrot_get", _wrap_IndexLSH_rrot_get, METH_VARARGS, NULL},
86494 { (
char *)
"IndexLSH_thresholds_set", _wrap_IndexLSH_thresholds_set, METH_VARARGS, NULL},
86495 { (
char *)
"IndexLSH_thresholds_get", _wrap_IndexLSH_thresholds_get, METH_VARARGS, NULL},
86496 { (
char *)
"IndexLSH_codes_set", _wrap_IndexLSH_codes_set, METH_VARARGS, NULL},
86497 { (
char *)
"IndexLSH_codes_get", _wrap_IndexLSH_codes_get, METH_VARARGS, NULL},
86498 { (
char *)
"IndexLSH_apply_preprocess", _wrap_IndexLSH_apply_preprocess, METH_VARARGS, NULL},
86499 { (
char *)
"IndexLSH_train", _wrap_IndexLSH_train, METH_VARARGS, NULL},
86500 { (
char *)
"IndexLSH_add", _wrap_IndexLSH_add, METH_VARARGS, NULL},
86501 { (
char *)
"IndexLSH_search", _wrap_IndexLSH_search, METH_VARARGS, NULL},
86502 { (
char *)
"IndexLSH_reset", _wrap_IndexLSH_reset, METH_VARARGS, NULL},
86503 { (
char *)
"IndexLSH_transfer_thresholds", _wrap_IndexLSH_transfer_thresholds, METH_VARARGS, NULL},
86504 { (
char *)
"delete_IndexLSH", _wrap_delete_IndexLSH, METH_VARARGS, NULL},
86505 { (
char *)
"new_IndexLSH", _wrap_new_IndexLSH, METH_VARARGS, NULL},
86506 { (
char *)
"IndexLSH_swigregister", IndexLSH_swigregister, METH_VARARGS, NULL},
86507 { (
char *)
"SimulatedAnnealingParameters_init_temperature_set", _wrap_SimulatedAnnealingParameters_init_temperature_set, METH_VARARGS, NULL},
86508 { (
char *)
"SimulatedAnnealingParameters_init_temperature_get", _wrap_SimulatedAnnealingParameters_init_temperature_get, METH_VARARGS, NULL},
86509 { (
char *)
"SimulatedAnnealingParameters_temperature_decay_set", _wrap_SimulatedAnnealingParameters_temperature_decay_set, METH_VARARGS, NULL},
86510 { (
char *)
"SimulatedAnnealingParameters_temperature_decay_get", _wrap_SimulatedAnnealingParameters_temperature_decay_get, METH_VARARGS, NULL},
86511 { (
char *)
"SimulatedAnnealingParameters_n_iter_set", _wrap_SimulatedAnnealingParameters_n_iter_set, METH_VARARGS, NULL},
86512 { (
char *)
"SimulatedAnnealingParameters_n_iter_get", _wrap_SimulatedAnnealingParameters_n_iter_get, METH_VARARGS, NULL},
86513 { (
char *)
"SimulatedAnnealingParameters_n_redo_set", _wrap_SimulatedAnnealingParameters_n_redo_set, METH_VARARGS, NULL},
86514 { (
char *)
"SimulatedAnnealingParameters_n_redo_get", _wrap_SimulatedAnnealingParameters_n_redo_get, METH_VARARGS, NULL},
86515 { (
char *)
"SimulatedAnnealingParameters_seed_set", _wrap_SimulatedAnnealingParameters_seed_set, METH_VARARGS, NULL},
86516 { (
char *)
"SimulatedAnnealingParameters_seed_get", _wrap_SimulatedAnnealingParameters_seed_get, METH_VARARGS, NULL},
86517 { (
char *)
"SimulatedAnnealingParameters_verbose_set", _wrap_SimulatedAnnealingParameters_verbose_set, METH_VARARGS, NULL},
86518 { (
char *)
"SimulatedAnnealingParameters_verbose_get", _wrap_SimulatedAnnealingParameters_verbose_get, METH_VARARGS, NULL},
86519 { (
char *)
"SimulatedAnnealingParameters_only_bit_flips_set", _wrap_SimulatedAnnealingParameters_only_bit_flips_set, METH_VARARGS, NULL},
86520 { (
char *)
"SimulatedAnnealingParameters_only_bit_flips_get", _wrap_SimulatedAnnealingParameters_only_bit_flips_get, METH_VARARGS, NULL},
86521 { (
char *)
"SimulatedAnnealingParameters_init_random_set", _wrap_SimulatedAnnealingParameters_init_random_set, METH_VARARGS, NULL},
86522 { (
char *)
"SimulatedAnnealingParameters_init_random_get", _wrap_SimulatedAnnealingParameters_init_random_get, METH_VARARGS, NULL},
86523 { (
char *)
"new_SimulatedAnnealingParameters", _wrap_new_SimulatedAnnealingParameters, METH_VARARGS, NULL},
86524 { (
char *)
"delete_SimulatedAnnealingParameters", _wrap_delete_SimulatedAnnealingParameters, METH_VARARGS, NULL},
86525 { (
char *)
"SimulatedAnnealingParameters_swigregister", SimulatedAnnealingParameters_swigregister, METH_VARARGS, NULL},
86526 { (
char *)
"PermutationObjective_n_set", _wrap_PermutationObjective_n_set, METH_VARARGS, NULL},
86527 { (
char *)
"PermutationObjective_n_get", _wrap_PermutationObjective_n_get, METH_VARARGS, NULL},
86528 { (
char *)
"PermutationObjective_compute_cost", _wrap_PermutationObjective_compute_cost, METH_VARARGS, NULL},
86529 { (
char *)
"PermutationObjective_cost_update", _wrap_PermutationObjective_cost_update, METH_VARARGS, NULL},
86530 { (
char *)
"delete_PermutationObjective", _wrap_delete_PermutationObjective, METH_VARARGS, NULL},
86531 { (
char *)
"PermutationObjective_swigregister", PermutationObjective_swigregister, METH_VARARGS, NULL},
86532 { (
char *)
"ReproduceDistancesObjective_dis_weight_factor_set", _wrap_ReproduceDistancesObjective_dis_weight_factor_set, METH_VARARGS, NULL},
86533 { (
char *)
"ReproduceDistancesObjective_dis_weight_factor_get", _wrap_ReproduceDistancesObjective_dis_weight_factor_get, METH_VARARGS, NULL},
86534 { (
char *)
"ReproduceDistancesObjective_sqr", _wrap_ReproduceDistancesObjective_sqr, METH_VARARGS, NULL},
86535 { (
char *)
"ReproduceDistancesObjective_dis_weight", _wrap_ReproduceDistancesObjective_dis_weight, METH_VARARGS, NULL},
86536 { (
char *)
"ReproduceDistancesObjective_source_dis_set", _wrap_ReproduceDistancesObjective_source_dis_set, METH_VARARGS, NULL},
86537 { (
char *)
"ReproduceDistancesObjective_source_dis_get", _wrap_ReproduceDistancesObjective_source_dis_get, METH_VARARGS, NULL},
86538 { (
char *)
"ReproduceDistancesObjective_target_dis_set", _wrap_ReproduceDistancesObjective_target_dis_set, METH_VARARGS, NULL},
86539 { (
char *)
"ReproduceDistancesObjective_target_dis_get", _wrap_ReproduceDistancesObjective_target_dis_get, METH_VARARGS, NULL},
86540 { (
char *)
"ReproduceDistancesObjective_weights_set", _wrap_ReproduceDistancesObjective_weights_set, METH_VARARGS, NULL},
86541 { (
char *)
"ReproduceDistancesObjective_weights_get", _wrap_ReproduceDistancesObjective_weights_get, METH_VARARGS, NULL},
86542 { (
char *)
"ReproduceDistancesObjective_get_source_dis", _wrap_ReproduceDistancesObjective_get_source_dis, METH_VARARGS, NULL},
86543 { (
char *)
"ReproduceDistancesObjective_compute_cost", _wrap_ReproduceDistancesObjective_compute_cost, METH_VARARGS, NULL},
86544 { (
char *)
"ReproduceDistancesObjective_cost_update", _wrap_ReproduceDistancesObjective_cost_update, METH_VARARGS, NULL},
86545 { (
char *)
"new_ReproduceDistancesObjective", _wrap_new_ReproduceDistancesObjective, METH_VARARGS, NULL},
86546 { (
char *)
"ReproduceDistancesObjective_compute_mean_stdev", _wrap_ReproduceDistancesObjective_compute_mean_stdev, METH_VARARGS, NULL},
86547 { (
char *)
"ReproduceDistancesObjective_set_affine_target_dis", _wrap_ReproduceDistancesObjective_set_affine_target_dis, METH_VARARGS, NULL},
86548 { (
char *)
"delete_ReproduceDistancesObjective", _wrap_delete_ReproduceDistancesObjective, METH_VARARGS, NULL},
86549 { (
char *)
"ReproduceDistancesObjective_swigregister", ReproduceDistancesObjective_swigregister, METH_VARARGS, NULL},
86550 { (
char *)
"SimulatedAnnealingOptimizer_obj_set", _wrap_SimulatedAnnealingOptimizer_obj_set, METH_VARARGS, NULL},
86551 { (
char *)
"SimulatedAnnealingOptimizer_obj_get", _wrap_SimulatedAnnealingOptimizer_obj_get, METH_VARARGS, NULL},
86552 { (
char *)
"SimulatedAnnealingOptimizer_n_set", _wrap_SimulatedAnnealingOptimizer_n_set, METH_VARARGS, NULL},
86553 { (
char *)
"SimulatedAnnealingOptimizer_n_get", _wrap_SimulatedAnnealingOptimizer_n_get, METH_VARARGS, NULL},
86554 { (
char *)
"SimulatedAnnealingOptimizer_logfile_set", _wrap_SimulatedAnnealingOptimizer_logfile_set, METH_VARARGS, NULL},
86555 { (
char *)
"SimulatedAnnealingOptimizer_logfile_get", _wrap_SimulatedAnnealingOptimizer_logfile_get, METH_VARARGS, NULL},
86556 { (
char *)
"new_SimulatedAnnealingOptimizer", _wrap_new_SimulatedAnnealingOptimizer, METH_VARARGS, NULL},
86557 { (
char *)
"SimulatedAnnealingOptimizer_rnd_set", _wrap_SimulatedAnnealingOptimizer_rnd_set, METH_VARARGS, NULL},
86558 { (
char *)
"SimulatedAnnealingOptimizer_rnd_get", _wrap_SimulatedAnnealingOptimizer_rnd_get, METH_VARARGS, NULL},
86559 { (
char *)
"SimulatedAnnealingOptimizer_init_cost_set", _wrap_SimulatedAnnealingOptimizer_init_cost_set, METH_VARARGS, NULL},
86560 { (
char *)
"SimulatedAnnealingOptimizer_init_cost_get", _wrap_SimulatedAnnealingOptimizer_init_cost_get, METH_VARARGS, NULL},
86561 { (
char *)
"SimulatedAnnealingOptimizer_optimize", _wrap_SimulatedAnnealingOptimizer_optimize, METH_VARARGS, NULL},
86562 { (
char *)
"SimulatedAnnealingOptimizer_run_optimization", _wrap_SimulatedAnnealingOptimizer_run_optimization, METH_VARARGS, NULL},
86563 { (
char *)
"delete_SimulatedAnnealingOptimizer", _wrap_delete_SimulatedAnnealingOptimizer, METH_VARARGS, NULL},
86564 { (
char *)
"SimulatedAnnealingOptimizer_swigregister", SimulatedAnnealingOptimizer_swigregister, METH_VARARGS, NULL},
86565 { (
char *)
"PolysemousTraining_optimization_type_set", _wrap_PolysemousTraining_optimization_type_set, METH_VARARGS, NULL},
86566 { (
char *)
"PolysemousTraining_optimization_type_get", _wrap_PolysemousTraining_optimization_type_get, METH_VARARGS, NULL},
86567 { (
char *)
"PolysemousTraining_ntrain_permutation_set", _wrap_PolysemousTraining_ntrain_permutation_set, METH_VARARGS, NULL},
86568 { (
char *)
"PolysemousTraining_ntrain_permutation_get", _wrap_PolysemousTraining_ntrain_permutation_get, METH_VARARGS, NULL},
86569 { (
char *)
"PolysemousTraining_dis_weight_factor_set", _wrap_PolysemousTraining_dis_weight_factor_set, METH_VARARGS, NULL},
86570 { (
char *)
"PolysemousTraining_dis_weight_factor_get", _wrap_PolysemousTraining_dis_weight_factor_get, METH_VARARGS, NULL},
86571 { (
char *)
"PolysemousTraining_log_pattern_set", _wrap_PolysemousTraining_log_pattern_set, METH_VARARGS, NULL},
86572 { (
char *)
"PolysemousTraining_log_pattern_get", _wrap_PolysemousTraining_log_pattern_get, METH_VARARGS, NULL},
86573 { (
char *)
"new_PolysemousTraining", _wrap_new_PolysemousTraining, METH_VARARGS, NULL},
86574 { (
char *)
"PolysemousTraining_optimize_pq_for_hamming", _wrap_PolysemousTraining_optimize_pq_for_hamming, METH_VARARGS, NULL},
86575 { (
char *)
"PolysemousTraining_optimize_ranking", _wrap_PolysemousTraining_optimize_ranking, METH_VARARGS, NULL},
86576 { (
char *)
"PolysemousTraining_optimize_reproduce_distances", _wrap_PolysemousTraining_optimize_reproduce_distances, METH_VARARGS, NULL},
86577 { (
char *)
"delete_PolysemousTraining", _wrap_delete_PolysemousTraining, METH_VARARGS, NULL},
86578 { (
char *)
"PolysemousTraining_swigregister", PolysemousTraining_swigregister, METH_VARARGS, NULL},
86579 { (
char *)
"IndexPQ_pq_set", _wrap_IndexPQ_pq_set, METH_VARARGS, NULL},
86580 { (
char *)
"IndexPQ_pq_get", _wrap_IndexPQ_pq_get, METH_VARARGS, NULL},
86581 { (
char *)
"IndexPQ_codes_set", _wrap_IndexPQ_codes_set, METH_VARARGS, NULL},
86582 { (
char *)
"IndexPQ_codes_get", _wrap_IndexPQ_codes_get, METH_VARARGS, NULL},
86583 { (
char *)
"new_IndexPQ", _wrap_new_IndexPQ, METH_VARARGS, NULL},
86584 { (
char *)
"IndexPQ_train", _wrap_IndexPQ_train, METH_VARARGS, NULL},
86585 { (
char *)
"IndexPQ_add", _wrap_IndexPQ_add, METH_VARARGS, NULL},
86586 { (
char *)
"IndexPQ_search", _wrap_IndexPQ_search, METH_VARARGS, NULL},
86587 { (
char *)
"IndexPQ_reset", _wrap_IndexPQ_reset, METH_VARARGS, NULL},
86588 { (
char *)
"IndexPQ_reconstruct_n", _wrap_IndexPQ_reconstruct_n, METH_VARARGS, NULL},
86589 { (
char *)
"IndexPQ_reconstruct", _wrap_IndexPQ_reconstruct, METH_VARARGS, NULL},
86590 { (
char *)
"IndexPQ_remove_ids", _wrap_IndexPQ_remove_ids, METH_VARARGS, NULL},
86591 { (
char *)
"IndexPQ_do_polysemous_training_set", _wrap_IndexPQ_do_polysemous_training_set, METH_VARARGS, NULL},
86592 { (
char *)
"IndexPQ_do_polysemous_training_get", _wrap_IndexPQ_do_polysemous_training_get, METH_VARARGS, NULL},
86593 { (
char *)
"IndexPQ_polysemous_training_set", _wrap_IndexPQ_polysemous_training_set, METH_VARARGS, NULL},
86594 { (
char *)
"IndexPQ_polysemous_training_get", _wrap_IndexPQ_polysemous_training_get, METH_VARARGS, NULL},
86595 { (
char *)
"IndexPQ_search_type_set", _wrap_IndexPQ_search_type_set, METH_VARARGS, NULL},
86596 { (
char *)
"IndexPQ_search_type_get", _wrap_IndexPQ_search_type_get, METH_VARARGS, NULL},
86597 { (
char *)
"IndexPQ_encode_signs_set", _wrap_IndexPQ_encode_signs_set, METH_VARARGS, NULL},
86598 { (
char *)
"IndexPQ_encode_signs_get", _wrap_IndexPQ_encode_signs_get, METH_VARARGS, NULL},
86599 { (
char *)
"IndexPQ_polysemous_ht_set", _wrap_IndexPQ_polysemous_ht_set, METH_VARARGS, NULL},
86600 { (
char *)
"IndexPQ_polysemous_ht_get", _wrap_IndexPQ_polysemous_ht_get, METH_VARARGS, NULL},
86601 { (
char *)
"IndexPQ_search_core_polysemous", _wrap_IndexPQ_search_core_polysemous, METH_VARARGS, NULL},
86602 { (
char *)
"IndexPQ_hamming_distance_histogram", _wrap_IndexPQ_hamming_distance_histogram, METH_VARARGS, NULL},
86603 { (
char *)
"IndexPQ_hamming_distance_table", _wrap_IndexPQ_hamming_distance_table, METH_VARARGS, NULL},
86604 { (
char *)
"delete_IndexPQ", _wrap_delete_IndexPQ, METH_VARARGS, NULL},
86605 { (
char *)
"IndexPQ_swigregister", IndexPQ_swigregister, METH_VARARGS, NULL},
86606 { (
char *)
"IndexPQStats_nq_set", _wrap_IndexPQStats_nq_set, METH_VARARGS, NULL},
86607 { (
char *)
"IndexPQStats_nq_get", _wrap_IndexPQStats_nq_get, METH_VARARGS, NULL},
86608 { (
char *)
"IndexPQStats_ncode_set", _wrap_IndexPQStats_ncode_set, METH_VARARGS, NULL},
86609 { (
char *)
"IndexPQStats_ncode_get", _wrap_IndexPQStats_ncode_get, METH_VARARGS, NULL},
86610 { (
char *)
"IndexPQStats_n_hamming_pass_set", _wrap_IndexPQStats_n_hamming_pass_set, METH_VARARGS, NULL},
86611 { (
char *)
"IndexPQStats_n_hamming_pass_get", _wrap_IndexPQStats_n_hamming_pass_get, METH_VARARGS, NULL},
86612 { (
char *)
"new_IndexPQStats", _wrap_new_IndexPQStats, METH_VARARGS, NULL},
86613 { (
char *)
"IndexPQStats_reset", _wrap_IndexPQStats_reset, METH_VARARGS, NULL},
86614 { (
char *)
"delete_IndexPQStats", _wrap_delete_IndexPQStats, METH_VARARGS, NULL},
86615 { (
char *)
"IndexPQStats_swigregister", IndexPQStats_swigregister, METH_VARARGS, NULL},
86616 { (
char *)
"MultiIndexQuantizer_pq_set", _wrap_MultiIndexQuantizer_pq_set, METH_VARARGS, NULL},
86617 { (
char *)
"MultiIndexQuantizer_pq_get", _wrap_MultiIndexQuantizer_pq_get, METH_VARARGS, NULL},
86618 { (
char *)
"MultiIndexQuantizer_train", _wrap_MultiIndexQuantizer_train, METH_VARARGS, NULL},
86619 { (
char *)
"MultiIndexQuantizer_search", _wrap_MultiIndexQuantizer_search, METH_VARARGS, NULL},
86620 { (
char *)
"MultiIndexQuantizer_add", _wrap_MultiIndexQuantizer_add, METH_VARARGS, NULL},
86621 { (
char *)
"MultiIndexQuantizer_reset", _wrap_MultiIndexQuantizer_reset, METH_VARARGS, NULL},
86622 { (
char *)
"new_MultiIndexQuantizer", _wrap_new_MultiIndexQuantizer, METH_VARARGS, NULL},
86623 { (
char *)
"MultiIndexQuantizer_reconstruct", _wrap_MultiIndexQuantizer_reconstruct, METH_VARARGS, NULL},
86624 { (
char *)
"delete_MultiIndexQuantizer", _wrap_delete_MultiIndexQuantizer, METH_VARARGS, NULL},
86625 { (
char *)
"MultiIndexQuantizer_swigregister", MultiIndexQuantizer_swigregister, METH_VARARGS, NULL},
86626 { (
char *)
"MultiIndexQuantizer2_assign_indexes_set", _wrap_MultiIndexQuantizer2_assign_indexes_set, METH_VARARGS, NULL},
86627 { (
char *)
"MultiIndexQuantizer2_assign_indexes_get", _wrap_MultiIndexQuantizer2_assign_indexes_get, METH_VARARGS, NULL},
86628 { (
char *)
"MultiIndexQuantizer2_own_fields_set", _wrap_MultiIndexQuantizer2_own_fields_set, METH_VARARGS, NULL},
86629 { (
char *)
"MultiIndexQuantizer2_own_fields_get", _wrap_MultiIndexQuantizer2_own_fields_get, METH_VARARGS, NULL},
86630 { (
char *)
"new_MultiIndexQuantizer2", _wrap_new_MultiIndexQuantizer2, METH_VARARGS, NULL},
86631 { (
char *)
"MultiIndexQuantizer2_train", _wrap_MultiIndexQuantizer2_train, METH_VARARGS, NULL},
86632 { (
char *)
"MultiIndexQuantizer2_search", _wrap_MultiIndexQuantizer2_search, METH_VARARGS, NULL},
86633 { (
char *)
"delete_MultiIndexQuantizer2", _wrap_delete_MultiIndexQuantizer2, METH_VARARGS, NULL},
86634 { (
char *)
"MultiIndexQuantizer2_swigregister", MultiIndexQuantizer2_swigregister, METH_VARARGS, NULL},
86635 { (
char *)
"InvertedLists_nlist_set", _wrap_InvertedLists_nlist_set, METH_VARARGS, NULL},
86636 { (
char *)
"InvertedLists_nlist_get", _wrap_InvertedLists_nlist_get, METH_VARARGS, NULL},
86637 { (
char *)
"InvertedLists_code_size_set", _wrap_InvertedLists_code_size_set, METH_VARARGS, NULL},
86638 { (
char *)
"InvertedLists_code_size_get", _wrap_InvertedLists_code_size_get, METH_VARARGS, NULL},
86639 { (
char *)
"InvertedLists_list_size", _wrap_InvertedLists_list_size, METH_VARARGS, NULL},
86640 { (
char *)
"InvertedLists_get_codes", _wrap_InvertedLists_get_codes, METH_VARARGS, NULL},
86641 { (
char *)
"InvertedLists_get_ids", _wrap_InvertedLists_get_ids, METH_VARARGS, NULL},
86642 { (
char *)
"InvertedLists_release_codes", _wrap_InvertedLists_release_codes, METH_VARARGS, NULL},
86643 { (
char *)
"InvertedLists_release_ids", _wrap_InvertedLists_release_ids, METH_VARARGS, NULL},
86644 { (
char *)
"InvertedLists_get_single_id", _wrap_InvertedLists_get_single_id, METH_VARARGS, NULL},
86645 { (
char *)
"InvertedLists_get_single_code", _wrap_InvertedLists_get_single_code, METH_VARARGS, NULL},
86646 { (
char *)
"InvertedLists_prefetch_lists", _wrap_InvertedLists_prefetch_lists, METH_VARARGS, NULL},
86647 { (
char *)
"InvertedLists_add_entry", _wrap_InvertedLists_add_entry, METH_VARARGS, NULL},
86648 { (
char *)
"InvertedLists_add_entries", _wrap_InvertedLists_add_entries, METH_VARARGS, NULL},
86649 { (
char *)
"InvertedLists_update_entry", _wrap_InvertedLists_update_entry, METH_VARARGS, NULL},
86650 { (
char *)
"InvertedLists_update_entries", _wrap_InvertedLists_update_entries, METH_VARARGS, NULL},
86651 { (
char *)
"InvertedLists_resize", _wrap_InvertedLists_resize, METH_VARARGS, NULL},
86652 { (
char *)
"InvertedLists_reset", _wrap_InvertedLists_reset, METH_VARARGS, NULL},
86653 { (
char *)
"InvertedLists_merge_from", _wrap_InvertedLists_merge_from, METH_VARARGS, NULL},
86654 { (
char *)
"delete_InvertedLists", _wrap_delete_InvertedLists, METH_VARARGS, NULL},
86655 { (
char *)
"InvertedLists_swigregister", InvertedLists_swigregister, METH_VARARGS, NULL},
86656 { (
char *)
"ArrayInvertedLists_codes_set", _wrap_ArrayInvertedLists_codes_set, METH_VARARGS, NULL},
86657 { (
char *)
"ArrayInvertedLists_codes_get", _wrap_ArrayInvertedLists_codes_get, METH_VARARGS, NULL},
86658 { (
char *)
"ArrayInvertedLists_ids_set", _wrap_ArrayInvertedLists_ids_set, METH_VARARGS, NULL},
86659 { (
char *)
"ArrayInvertedLists_ids_get", _wrap_ArrayInvertedLists_ids_get, METH_VARARGS, NULL},
86660 { (
char *)
"new_ArrayInvertedLists", _wrap_new_ArrayInvertedLists, METH_VARARGS, NULL},
86661 { (
char *)
"ArrayInvertedLists_list_size", _wrap_ArrayInvertedLists_list_size, METH_VARARGS, NULL},
86662 { (
char *)
"ArrayInvertedLists_get_codes", _wrap_ArrayInvertedLists_get_codes, METH_VARARGS, NULL},
86663 { (
char *)
"ArrayInvertedLists_get_ids", _wrap_ArrayInvertedLists_get_ids, METH_VARARGS, NULL},
86664 { (
char *)
"ArrayInvertedLists_add_entries", _wrap_ArrayInvertedLists_add_entries, METH_VARARGS, NULL},
86665 { (
char *)
"ArrayInvertedLists_update_entries", _wrap_ArrayInvertedLists_update_entries, METH_VARARGS, NULL},
86666 { (
char *)
"ArrayInvertedLists_resize", _wrap_ArrayInvertedLists_resize, METH_VARARGS, NULL},
86667 { (
char *)
"delete_ArrayInvertedLists", _wrap_delete_ArrayInvertedLists, METH_VARARGS, NULL},
86668 { (
char *)
"ArrayInvertedLists_swigregister", ArrayInvertedLists_swigregister, METH_VARARGS, NULL},
86669 { (
char *)
"ConcatenatedInvertedLists_ils_set", _wrap_ConcatenatedInvertedLists_ils_set, METH_VARARGS, NULL},
86670 { (
char *)
"ConcatenatedInvertedLists_ils_get", _wrap_ConcatenatedInvertedLists_ils_get, METH_VARARGS, NULL},
86671 { (
char *)
"new_ConcatenatedInvertedLists", _wrap_new_ConcatenatedInvertedLists, METH_VARARGS, NULL},
86672 { (
char *)
"ConcatenatedInvertedLists_list_size", _wrap_ConcatenatedInvertedLists_list_size, METH_VARARGS, NULL},
86673 { (
char *)
"ConcatenatedInvertedLists_get_codes", _wrap_ConcatenatedInvertedLists_get_codes, METH_VARARGS, NULL},
86674 { (
char *)
"ConcatenatedInvertedLists_get_ids", _wrap_ConcatenatedInvertedLists_get_ids, METH_VARARGS, NULL},
86675 { (
char *)
"ConcatenatedInvertedLists_release_codes", _wrap_ConcatenatedInvertedLists_release_codes, METH_VARARGS, NULL},
86676 { (
char *)
"ConcatenatedInvertedLists_release_ids", _wrap_ConcatenatedInvertedLists_release_ids, METH_VARARGS, NULL},
86677 { (
char *)
"ConcatenatedInvertedLists_get_single_id", _wrap_ConcatenatedInvertedLists_get_single_id, METH_VARARGS, NULL},
86678 { (
char *)
"ConcatenatedInvertedLists_get_single_code", _wrap_ConcatenatedInvertedLists_get_single_code, METH_VARARGS, NULL},
86679 { (
char *)
"ConcatenatedInvertedLists_add_entries", _wrap_ConcatenatedInvertedLists_add_entries, METH_VARARGS, NULL},
86680 { (
char *)
"ConcatenatedInvertedLists_update_entries", _wrap_ConcatenatedInvertedLists_update_entries, METH_VARARGS, NULL},
86681 { (
char *)
"ConcatenatedInvertedLists_resize", _wrap_ConcatenatedInvertedLists_resize, METH_VARARGS, NULL},
86682 { (
char *)
"delete_ConcatenatedInvertedLists", _wrap_delete_ConcatenatedInvertedLists, METH_VARARGS, NULL},
86683 { (
char *)
"ConcatenatedInvertedLists_swigregister", ConcatenatedInvertedLists_swigregister, METH_VARARGS, NULL},
86684 { (
char *)
"Level1Quantizer_quantizer_set", _wrap_Level1Quantizer_quantizer_set, METH_VARARGS, NULL},
86685 { (
char *)
"Level1Quantizer_quantizer_get", _wrap_Level1Quantizer_quantizer_get, METH_VARARGS, NULL},
86686 { (
char *)
"Level1Quantizer_nlist_set", _wrap_Level1Quantizer_nlist_set, METH_VARARGS, NULL},
86687 { (
char *)
"Level1Quantizer_nlist_get", _wrap_Level1Quantizer_nlist_get, METH_VARARGS, NULL},
86688 { (
char *)
"Level1Quantizer_quantizer_trains_alone_set", _wrap_Level1Quantizer_quantizer_trains_alone_set, METH_VARARGS, NULL},
86689 { (
char *)
"Level1Quantizer_quantizer_trains_alone_get", _wrap_Level1Quantizer_quantizer_trains_alone_get, METH_VARARGS, NULL},
86690 { (
char *)
"Level1Quantizer_own_fields_set", _wrap_Level1Quantizer_own_fields_set, METH_VARARGS, NULL},
86691 { (
char *)
"Level1Quantizer_own_fields_get", _wrap_Level1Quantizer_own_fields_get, METH_VARARGS, NULL},
86692 { (
char *)
"Level1Quantizer_cp_set", _wrap_Level1Quantizer_cp_set, METH_VARARGS, NULL},
86693 { (
char *)
"Level1Quantizer_cp_get", _wrap_Level1Quantizer_cp_get, METH_VARARGS, NULL},
86694 { (
char *)
"Level1Quantizer_clustering_index_set", _wrap_Level1Quantizer_clustering_index_set, METH_VARARGS, NULL},
86695 { (
char *)
"Level1Quantizer_clustering_index_get", _wrap_Level1Quantizer_clustering_index_get, METH_VARARGS, NULL},
86696 { (
char *)
"Level1Quantizer_train_q1", _wrap_Level1Quantizer_train_q1, METH_VARARGS, NULL},
86697 { (
char *)
"new_Level1Quantizer", _wrap_new_Level1Quantizer, METH_VARARGS, NULL},
86698 { (
char *)
"delete_Level1Quantizer", _wrap_delete_Level1Quantizer, METH_VARARGS, NULL},
86699 { (
char *)
"Level1Quantizer_swigregister", Level1Quantizer_swigregister, METH_VARARGS, NULL},
86700 { (
char *)
"IVFSearchParameters_nprobe_set", _wrap_IVFSearchParameters_nprobe_set, METH_VARARGS, NULL},
86701 { (
char *)
"IVFSearchParameters_nprobe_get", _wrap_IVFSearchParameters_nprobe_get, METH_VARARGS, NULL},
86702 { (
char *)
"IVFSearchParameters_max_codes_set", _wrap_IVFSearchParameters_max_codes_set, METH_VARARGS, NULL},
86703 { (
char *)
"IVFSearchParameters_max_codes_get", _wrap_IVFSearchParameters_max_codes_get, METH_VARARGS, NULL},
86704 { (
char *)
"delete_IVFSearchParameters", _wrap_delete_IVFSearchParameters, METH_VARARGS, NULL},
86705 { (
char *)
"new_IVFSearchParameters", _wrap_new_IVFSearchParameters, METH_VARARGS, NULL},
86706 { (
char *)
"IVFSearchParameters_swigregister", IVFSearchParameters_swigregister, METH_VARARGS, NULL},
86707 { (
char *)
"IndexIVF_invlists_set", _wrap_IndexIVF_invlists_set, METH_VARARGS, NULL},
86708 { (
char *)
"IndexIVF_invlists_get", _wrap_IndexIVF_invlists_get, METH_VARARGS, NULL},
86709 { (
char *)
"IndexIVF_own_invlists_set", _wrap_IndexIVF_own_invlists_set, METH_VARARGS, NULL},
86710 { (
char *)
"IndexIVF_own_invlists_get", _wrap_IndexIVF_own_invlists_get, METH_VARARGS, NULL},
86711 { (
char *)
"IndexIVF_code_size_set", _wrap_IndexIVF_code_size_set, METH_VARARGS, NULL},
86712 { (
char *)
"IndexIVF_code_size_get", _wrap_IndexIVF_code_size_get, METH_VARARGS, NULL},
86713 { (
char *)
"IndexIVF_nprobe_set", _wrap_IndexIVF_nprobe_set, METH_VARARGS, NULL},
86714 { (
char *)
"IndexIVF_nprobe_get", _wrap_IndexIVF_nprobe_get, METH_VARARGS, NULL},
86715 { (
char *)
"IndexIVF_max_codes_set", _wrap_IndexIVF_max_codes_set, METH_VARARGS, NULL},
86716 { (
char *)
"IndexIVF_max_codes_get", _wrap_IndexIVF_max_codes_get, METH_VARARGS, NULL},
86717 { (
char *)
"IndexIVF_maintain_direct_map_set", _wrap_IndexIVF_maintain_direct_map_set, METH_VARARGS, NULL},
86718 { (
char *)
"IndexIVF_maintain_direct_map_get", _wrap_IndexIVF_maintain_direct_map_get, METH_VARARGS, NULL},
86719 { (
char *)
"IndexIVF_direct_map_set", _wrap_IndexIVF_direct_map_set, METH_VARARGS, NULL},
86720 { (
char *)
"IndexIVF_direct_map_get", _wrap_IndexIVF_direct_map_get, METH_VARARGS, NULL},
86721 { (
char *)
"IndexIVF_reset", _wrap_IndexIVF_reset, METH_VARARGS, NULL},
86722 { (
char *)
"IndexIVF_train", _wrap_IndexIVF_train, METH_VARARGS, NULL},
86723 { (
char *)
"IndexIVF_add", _wrap_IndexIVF_add, METH_VARARGS, NULL},
86724 { (
char *)
"IndexIVF_encode_vectors", _wrap_IndexIVF_encode_vectors, METH_VARARGS, NULL},
86725 { (
char *)
"IndexIVF_train_residual", _wrap_IndexIVF_train_residual, METH_VARARGS, NULL},
86726 { (
char *)
"IndexIVF_search_preassigned", _wrap_IndexIVF_search_preassigned, METH_VARARGS, NULL},
86727 { (
char *)
"IndexIVF_search", _wrap_IndexIVF_search, METH_VARARGS, NULL},
86728 { (
char *)
"IndexIVF_get_InvertedListScanner", _wrap_IndexIVF_get_InvertedListScanner, METH_VARARGS, NULL},
86729 { (
char *)
"IndexIVF_reconstruct", _wrap_IndexIVF_reconstruct, METH_VARARGS, NULL},
86730 { (
char *)
"IndexIVF_reconstruct_n", _wrap_IndexIVF_reconstruct_n, METH_VARARGS, NULL},
86731 { (
char *)
"IndexIVF_search_and_reconstruct", _wrap_IndexIVF_search_and_reconstruct, METH_VARARGS, NULL},
86732 { (
char *)
"IndexIVF_reconstruct_from_offset", _wrap_IndexIVF_reconstruct_from_offset, METH_VARARGS, NULL},
86733 { (
char *)
"IndexIVF_remove_ids", _wrap_IndexIVF_remove_ids, METH_VARARGS, NULL},
86734 { (
char *)
"IndexIVF_check_compatible_for_merge", _wrap_IndexIVF_check_compatible_for_merge, METH_VARARGS, NULL},
86735 { (
char *)
"IndexIVF_merge_from", _wrap_IndexIVF_merge_from, METH_VARARGS, NULL},
86736 { (
char *)
"IndexIVF_copy_subset_to", _wrap_IndexIVF_copy_subset_to, METH_VARARGS, NULL},
86737 { (
char *)
"delete_IndexIVF", _wrap_delete_IndexIVF, METH_VARARGS, NULL},
86738 { (
char *)
"IndexIVF_get_list_size", _wrap_IndexIVF_get_list_size, METH_VARARGS, NULL},
86739 { (
char *)
"IndexIVF_make_direct_map", _wrap_IndexIVF_make_direct_map, METH_VARARGS, NULL},
86740 { (
char *)
"IndexIVF_imbalance_factor", _wrap_IndexIVF_imbalance_factor, METH_VARARGS, NULL},
86741 { (
char *)
"IndexIVF_print_stats", _wrap_IndexIVF_print_stats, METH_VARARGS, NULL},
86742 { (
char *)
"IndexIVF_replace_invlists", _wrap_IndexIVF_replace_invlists, METH_VARARGS, NULL},
86743 { (
char *)
"IndexIVF_swigregister", IndexIVF_swigregister, METH_VARARGS, NULL},
86744 { (
char *)
"IndexIVFStats_nq_set", _wrap_IndexIVFStats_nq_set, METH_VARARGS, NULL},
86745 { (
char *)
"IndexIVFStats_nq_get", _wrap_IndexIVFStats_nq_get, METH_VARARGS, NULL},
86746 { (
char *)
"IndexIVFStats_nlist_set", _wrap_IndexIVFStats_nlist_set, METH_VARARGS, NULL},
86747 { (
char *)
"IndexIVFStats_nlist_get", _wrap_IndexIVFStats_nlist_get, METH_VARARGS, NULL},
86748 { (
char *)
"IndexIVFStats_ndis_set", _wrap_IndexIVFStats_ndis_set, METH_VARARGS, NULL},
86749 { (
char *)
"IndexIVFStats_ndis_get", _wrap_IndexIVFStats_ndis_get, METH_VARARGS, NULL},
86750 { (
char *)
"IndexIVFStats_nheap_updates_set", _wrap_IndexIVFStats_nheap_updates_set, METH_VARARGS, NULL},
86751 { (
char *)
"IndexIVFStats_nheap_updates_get", _wrap_IndexIVFStats_nheap_updates_get, METH_VARARGS, NULL},
86752 { (
char *)
"new_IndexIVFStats", _wrap_new_IndexIVFStats, METH_VARARGS, NULL},
86753 { (
char *)
"IndexIVFStats_reset", _wrap_IndexIVFStats_reset, METH_VARARGS, NULL},
86754 { (
char *)
"delete_IndexIVFStats", _wrap_delete_IndexIVFStats, METH_VARARGS, NULL},
86755 { (
char *)
"IndexIVFStats_swigregister", IndexIVFStats_swigregister, METH_VARARGS, NULL},
86756 { (
char *)
"check_compatible_for_merge", _wrap_check_compatible_for_merge, METH_VARARGS, NULL},
86757 { (
char *)
"extract_index_ivf", _wrap_extract_index_ivf, METH_VARARGS, NULL},
86758 { (
char *)
"merge_into", _wrap_merge_into, METH_VARARGS, NULL},
86759 { (
char *)
"search_centroid", _wrap_search_centroid, METH_VARARGS, NULL},
86760 { (
char *)
"search_and_return_centroids", _wrap_search_and_return_centroids, METH_VARARGS, NULL},
86761 { (
char *)
"SlidingIndexWindow_index_set", _wrap_SlidingIndexWindow_index_set, METH_VARARGS, NULL},
86762 { (
char *)
"SlidingIndexWindow_index_get", _wrap_SlidingIndexWindow_index_get, METH_VARARGS, NULL},
86763 { (
char *)
"SlidingIndexWindow_ils_set", _wrap_SlidingIndexWindow_ils_set, METH_VARARGS, NULL},
86764 { (
char *)
"SlidingIndexWindow_ils_get", _wrap_SlidingIndexWindow_ils_get, METH_VARARGS, NULL},
86765 { (
char *)
"SlidingIndexWindow_n_slice_set", _wrap_SlidingIndexWindow_n_slice_set, METH_VARARGS, NULL},
86766 { (
char *)
"SlidingIndexWindow_n_slice_get", _wrap_SlidingIndexWindow_n_slice_get, METH_VARARGS, NULL},
86767 { (
char *)
"SlidingIndexWindow_nlist_set", _wrap_SlidingIndexWindow_nlist_set, METH_VARARGS, NULL},
86768 { (
char *)
"SlidingIndexWindow_nlist_get", _wrap_SlidingIndexWindow_nlist_get, METH_VARARGS, NULL},
86769 { (
char *)
"SlidingIndexWindow_sizes_set", _wrap_SlidingIndexWindow_sizes_set, METH_VARARGS, NULL},
86770 { (
char *)
"SlidingIndexWindow_sizes_get", _wrap_SlidingIndexWindow_sizes_get, METH_VARARGS, NULL},
86771 { (
char *)
"new_SlidingIndexWindow", _wrap_new_SlidingIndexWindow, METH_VARARGS, NULL},
86772 { (
char *)
"SlidingIndexWindow_step", _wrap_SlidingIndexWindow_step, METH_VARARGS, NULL},
86773 { (
char *)
"delete_SlidingIndexWindow", _wrap_delete_SlidingIndexWindow, METH_VARARGS, NULL},
86774 { (
char *)
"SlidingIndexWindow_swigregister", SlidingIndexWindow_swigregister, METH_VARARGS, NULL},
86775 { (
char *)
"get_invlist_range", _wrap_get_invlist_range, METH_VARARGS, NULL},
86776 { (
char *)
"set_invlist_range", _wrap_set_invlist_range, METH_VARARGS, NULL},
86777 { (
char *)
"search_with_parameters", _wrap_search_with_parameters, METH_VARARGS, NULL},
86778 { (
char *)
"ScalarQuantizer_qtype_set", _wrap_ScalarQuantizer_qtype_set, METH_VARARGS, NULL},
86779 { (
char *)
"ScalarQuantizer_qtype_get", _wrap_ScalarQuantizer_qtype_get, METH_VARARGS, NULL},
86780 { (
char *)
"ScalarQuantizer_rangestat_set", _wrap_ScalarQuantizer_rangestat_set, METH_VARARGS, NULL},
86781 { (
char *)
"ScalarQuantizer_rangestat_get", _wrap_ScalarQuantizer_rangestat_get, METH_VARARGS, NULL},
86782 { (
char *)
"ScalarQuantizer_rangestat_arg_set", _wrap_ScalarQuantizer_rangestat_arg_set, METH_VARARGS, NULL},
86783 { (
char *)
"ScalarQuantizer_rangestat_arg_get", _wrap_ScalarQuantizer_rangestat_arg_get, METH_VARARGS, NULL},
86784 { (
char *)
"ScalarQuantizer_d_set", _wrap_ScalarQuantizer_d_set, METH_VARARGS, NULL},
86785 { (
char *)
"ScalarQuantizer_d_get", _wrap_ScalarQuantizer_d_get, METH_VARARGS, NULL},
86786 { (
char *)
"ScalarQuantizer_code_size_set", _wrap_ScalarQuantizer_code_size_set, METH_VARARGS, NULL},
86787 { (
char *)
"ScalarQuantizer_code_size_get", _wrap_ScalarQuantizer_code_size_get, METH_VARARGS, NULL},
86788 { (
char *)
"ScalarQuantizer_trained_set", _wrap_ScalarQuantizer_trained_set, METH_VARARGS, NULL},
86789 { (
char *)
"ScalarQuantizer_trained_get", _wrap_ScalarQuantizer_trained_get, METH_VARARGS, NULL},
86790 { (
char *)
"new_ScalarQuantizer", _wrap_new_ScalarQuantizer, METH_VARARGS, NULL},
86791 { (
char *)
"ScalarQuantizer_train", _wrap_ScalarQuantizer_train, METH_VARARGS, NULL},
86792 { (
char *)
"ScalarQuantizer_compute_codes", _wrap_ScalarQuantizer_compute_codes, METH_VARARGS, NULL},
86793 { (
char *)
"ScalarQuantizer_decode", _wrap_ScalarQuantizer_decode, METH_VARARGS, NULL},
86794 { (
char *)
"ScalarQuantizer_get_distance_computer", _wrap_ScalarQuantizer_get_distance_computer, METH_VARARGS, NULL},
86795 { (
char *)
"delete_ScalarQuantizer", _wrap_delete_ScalarQuantizer, METH_VARARGS, NULL},
86796 { (
char *)
"ScalarQuantizer_swigregister", ScalarQuantizer_swigregister, METH_VARARGS, NULL},
86797 { (
char *)
"IndexScalarQuantizer_sq_set", _wrap_IndexScalarQuantizer_sq_set, METH_VARARGS, NULL},
86798 { (
char *)
"IndexScalarQuantizer_sq_get", _wrap_IndexScalarQuantizer_sq_get, METH_VARARGS, NULL},
86799 { (
char *)
"IndexScalarQuantizer_codes_set", _wrap_IndexScalarQuantizer_codes_set, METH_VARARGS, NULL},
86800 { (
char *)
"IndexScalarQuantizer_codes_get", _wrap_IndexScalarQuantizer_codes_get, METH_VARARGS, NULL},
86801 { (
char *)
"IndexScalarQuantizer_code_size_set", _wrap_IndexScalarQuantizer_code_size_set, METH_VARARGS, NULL},
86802 { (
char *)
"IndexScalarQuantizer_code_size_get", _wrap_IndexScalarQuantizer_code_size_get, METH_VARARGS, NULL},
86803 { (
char *)
"new_IndexScalarQuantizer", _wrap_new_IndexScalarQuantizer, METH_VARARGS, NULL},
86804 { (
char *)
"IndexScalarQuantizer_train", _wrap_IndexScalarQuantizer_train, METH_VARARGS, NULL},
86805 { (
char *)
"IndexScalarQuantizer_add", _wrap_IndexScalarQuantizer_add, METH_VARARGS, NULL},
86806 { (
char *)
"IndexScalarQuantizer_search", _wrap_IndexScalarQuantizer_search, METH_VARARGS, NULL},
86807 { (
char *)
"IndexScalarQuantizer_reset", _wrap_IndexScalarQuantizer_reset, METH_VARARGS, NULL},
86808 { (
char *)
"IndexScalarQuantizer_reconstruct_n", _wrap_IndexScalarQuantizer_reconstruct_n, METH_VARARGS, NULL},
86809 { (
char *)
"IndexScalarQuantizer_reconstruct", _wrap_IndexScalarQuantizer_reconstruct, METH_VARARGS, NULL},
86810 { (
char *)
"delete_IndexScalarQuantizer", _wrap_delete_IndexScalarQuantizer, METH_VARARGS, NULL},
86811 { (
char *)
"IndexScalarQuantizer_swigregister", IndexScalarQuantizer_swigregister, METH_VARARGS, NULL},
86812 { (
char *)
"IndexIVFScalarQuantizer_sq_set", _wrap_IndexIVFScalarQuantizer_sq_set, METH_VARARGS, NULL},
86813 { (
char *)
"IndexIVFScalarQuantizer_sq_get", _wrap_IndexIVFScalarQuantizer_sq_get, METH_VARARGS, NULL},
86814 { (
char *)
"new_IndexIVFScalarQuantizer", _wrap_new_IndexIVFScalarQuantizer, METH_VARARGS, NULL},
86815 { (
char *)
"IndexIVFScalarQuantizer_train_residual", _wrap_IndexIVFScalarQuantizer_train_residual, METH_VARARGS, NULL},
86816 { (
char *)
"IndexIVFScalarQuantizer_encode_vectors", _wrap_IndexIVFScalarQuantizer_encode_vectors, METH_VARARGS, NULL},
86817 { (
char *)
"IndexIVFScalarQuantizer_add_with_ids", _wrap_IndexIVFScalarQuantizer_add_with_ids, METH_VARARGS, NULL},
86818 { (
char *)
"IndexIVFScalarQuantizer_get_InvertedListScanner", _wrap_IndexIVFScalarQuantizer_get_InvertedListScanner, METH_VARARGS, NULL},
86819 { (
char *)
"IndexIVFScalarQuantizer_reconstruct_from_offset", _wrap_IndexIVFScalarQuantizer_reconstruct_from_offset, METH_VARARGS, NULL},
86820 { (
char *)
"delete_IndexIVFScalarQuantizer", _wrap_delete_IndexIVFScalarQuantizer, METH_VARARGS, NULL},
86821 { (
char *)
"IndexIVFScalarQuantizer_swigregister", IndexIVFScalarQuantizer_swigregister, METH_VARARGS, NULL},
86822 { (
char *)
"HNSW_assign_probas_set", _wrap_HNSW_assign_probas_set, METH_VARARGS, NULL},
86823 { (
char *)
"HNSW_assign_probas_get", _wrap_HNSW_assign_probas_get, METH_VARARGS, NULL},
86824 { (
char *)
"HNSW_cum_nneighbor_per_level_set", _wrap_HNSW_cum_nneighbor_per_level_set, METH_VARARGS, NULL},
86825 { (
char *)
"HNSW_cum_nneighbor_per_level_get", _wrap_HNSW_cum_nneighbor_per_level_get, METH_VARARGS, NULL},
86826 { (
char *)
"HNSW_levels_set", _wrap_HNSW_levels_set, METH_VARARGS, NULL},
86827 { (
char *)
"HNSW_levels_get", _wrap_HNSW_levels_get, METH_VARARGS, NULL},
86828 { (
char *)
"HNSW_offsets_set", _wrap_HNSW_offsets_set, METH_VARARGS, NULL},
86829 { (
char *)
"HNSW_offsets_get", _wrap_HNSW_offsets_get, METH_VARARGS, NULL},
86830 { (
char *)
"HNSW_neighbors_set", _wrap_HNSW_neighbors_set, METH_VARARGS, NULL},
86831 { (
char *)
"HNSW_neighbors_get", _wrap_HNSW_neighbors_get, METH_VARARGS, NULL},
86832 { (
char *)
"HNSW_entry_point_set", _wrap_HNSW_entry_point_set, METH_VARARGS, NULL},
86833 { (
char *)
"HNSW_entry_point_get", _wrap_HNSW_entry_point_get, METH_VARARGS, NULL},
86834 { (
char *)
"HNSW_rng_set", _wrap_HNSW_rng_set, METH_VARARGS, NULL},
86835 { (
char *)
"HNSW_rng_get", _wrap_HNSW_rng_get, METH_VARARGS, NULL},
86836 { (
char *)
"HNSW_max_level_set", _wrap_HNSW_max_level_set, METH_VARARGS, NULL},
86837 { (
char *)
"HNSW_max_level_get", _wrap_HNSW_max_level_get, METH_VARARGS, NULL},
86838 { (
char *)
"HNSW_efConstruction_set", _wrap_HNSW_efConstruction_set, METH_VARARGS, NULL},
86839 { (
char *)
"HNSW_efConstruction_get", _wrap_HNSW_efConstruction_get, METH_VARARGS, NULL},
86840 { (
char *)
"HNSW_efSearch_set", _wrap_HNSW_efSearch_set, METH_VARARGS, NULL},
86841 { (
char *)
"HNSW_efSearch_get", _wrap_HNSW_efSearch_get, METH_VARARGS, NULL},
86842 { (
char *)
"HNSW_upper_beam_set", _wrap_HNSW_upper_beam_set, METH_VARARGS, NULL},
86843 { (
char *)
"HNSW_upper_beam_get", _wrap_HNSW_upper_beam_get, METH_VARARGS, NULL},
86844 { (
char *)
"HNSW_set_default_probas", _wrap_HNSW_set_default_probas, METH_VARARGS, NULL},
86845 { (
char *)
"HNSW_set_nb_neighbors", _wrap_HNSW_set_nb_neighbors, METH_VARARGS, NULL},
86846 { (
char *)
"HNSW_nb_neighbors", _wrap_HNSW_nb_neighbors, METH_VARARGS, NULL},
86847 { (
char *)
"HNSW_cum_nb_neighbors", _wrap_HNSW_cum_nb_neighbors, METH_VARARGS, NULL},
86848 { (
char *)
"HNSW_neighbor_range", _wrap_HNSW_neighbor_range, METH_VARARGS, NULL},
86849 { (
char *)
"new_HNSW", _wrap_new_HNSW, METH_VARARGS, NULL},
86850 { (
char *)
"HNSW_random_level", _wrap_HNSW_random_level, METH_VARARGS, NULL},
86851 { (
char *)
"HNSW_fill_with_random_links", _wrap_HNSW_fill_with_random_links, METH_VARARGS, NULL},
86852 { (
char *)
"HNSW_add_links_starting_from", _wrap_HNSW_add_links_starting_from, METH_VARARGS, NULL},
86853 { (
char *)
"HNSW_add_with_locks", _wrap_HNSW_add_with_locks, METH_VARARGS, NULL},
86854 { (
char *)
"HNSW_search_from_candidates", _wrap_HNSW_search_from_candidates, METH_VARARGS, NULL},
86855 { (
char *)
"HNSW_search_from", _wrap_HNSW_search_from, METH_VARARGS, NULL},
86856 { (
char *)
"HNSW_search", _wrap_HNSW_search, METH_VARARGS, NULL},
86857 { (
char *)
"HNSW_reset", _wrap_HNSW_reset, METH_VARARGS, NULL},
86858 { (
char *)
"HNSW_clear_neighbor_tables", _wrap_HNSW_clear_neighbor_tables, METH_VARARGS, NULL},
86859 { (
char *)
"HNSW_print_neighbor_stats", _wrap_HNSW_print_neighbor_stats, METH_VARARGS, NULL},
86860 { (
char *)
"HNSW_prepare_level_tab", _wrap_HNSW_prepare_level_tab, METH_VARARGS, NULL},
86861 { (
char *)
"HNSW_shrink_neighbor_list", _wrap_HNSW_shrink_neighbor_list, METH_VARARGS, NULL},
86862 { (
char *)
"delete_HNSW", _wrap_delete_HNSW, METH_VARARGS, NULL},
86863 { (
char *)
"HNSW_swigregister", HNSW_swigregister, METH_VARARGS, NULL},
86864 { (
char *)
"VisitedTable_visited_set", _wrap_VisitedTable_visited_set, METH_VARARGS, NULL},
86865 { (
char *)
"VisitedTable_visited_get", _wrap_VisitedTable_visited_get, METH_VARARGS, NULL},
86866 { (
char *)
"VisitedTable_visno_set", _wrap_VisitedTable_visno_set, METH_VARARGS, NULL},
86867 { (
char *)
"VisitedTable_visno_get", _wrap_VisitedTable_visno_get, METH_VARARGS, NULL},
86868 { (
char *)
"new_VisitedTable", _wrap_new_VisitedTable, METH_VARARGS, NULL},
86869 { (
char *)
"VisitedTable_set", _wrap_VisitedTable_set, METH_VARARGS, NULL},
86870 { (
char *)
"VisitedTable_get", _wrap_VisitedTable_get, METH_VARARGS, NULL},
86871 { (
char *)
"VisitedTable_advance", _wrap_VisitedTable_advance, METH_VARARGS, NULL},
86872 { (
char *)
"delete_VisitedTable", _wrap_delete_VisitedTable, METH_VARARGS, NULL},
86873 { (
char *)
"VisitedTable_swigregister", VisitedTable_swigregister, METH_VARARGS, NULL},
86874 { (
char *)
"HNSWStats_n1_set", _wrap_HNSWStats_n1_set, METH_VARARGS, NULL},
86875 { (
char *)
"HNSWStats_n1_get", _wrap_HNSWStats_n1_get, METH_VARARGS, NULL},
86876 { (
char *)
"HNSWStats_n2_set", _wrap_HNSWStats_n2_set, METH_VARARGS, NULL},
86877 { (
char *)
"HNSWStats_n2_get", _wrap_HNSWStats_n2_get, METH_VARARGS, NULL},
86878 { (
char *)
"HNSWStats_n3_set", _wrap_HNSWStats_n3_set, METH_VARARGS, NULL},
86879 { (
char *)
"HNSWStats_n3_get", _wrap_HNSWStats_n3_get, METH_VARARGS, NULL},
86880 { (
char *)
"HNSWStats_ndis_set", _wrap_HNSWStats_ndis_set, METH_VARARGS, NULL},
86881 { (
char *)
"HNSWStats_ndis_get", _wrap_HNSWStats_ndis_get, METH_VARARGS, NULL},
86882 { (
char *)
"HNSWStats_nreorder_set", _wrap_HNSWStats_nreorder_set, METH_VARARGS, NULL},
86883 { (
char *)
"HNSWStats_nreorder_get", _wrap_HNSWStats_nreorder_get, METH_VARARGS, NULL},
86884 { (
char *)
"HNSWStats_view_set", _wrap_HNSWStats_view_set, METH_VARARGS, NULL},
86885 { (
char *)
"HNSWStats_view_get", _wrap_HNSWStats_view_get, METH_VARARGS, NULL},
86886 { (
char *)
"new_HNSWStats", _wrap_new_HNSWStats, METH_VARARGS, NULL},
86887 { (
char *)
"HNSWStats_reset", _wrap_HNSWStats_reset, METH_VARARGS, NULL},
86888 { (
char *)
"delete_HNSWStats", _wrap_delete_HNSWStats, METH_VARARGS, NULL},
86889 { (
char *)
"HNSWStats_swigregister", HNSWStats_swigregister, METH_VARARGS, NULL},
86890 { (
char *)
"ReconstructFromNeighbors_index_get", _wrap_ReconstructFromNeighbors_index_get, METH_VARARGS, NULL},
86891 { (
char *)
"ReconstructFromNeighbors_M_set", _wrap_ReconstructFromNeighbors_M_set, METH_VARARGS, NULL},
86892 { (
char *)
"ReconstructFromNeighbors_M_get", _wrap_ReconstructFromNeighbors_M_get, METH_VARARGS, NULL},
86893 { (
char *)
"ReconstructFromNeighbors_k_set", _wrap_ReconstructFromNeighbors_k_set, METH_VARARGS, NULL},
86894 { (
char *)
"ReconstructFromNeighbors_k_get", _wrap_ReconstructFromNeighbors_k_get, METH_VARARGS, NULL},
86895 { (
char *)
"ReconstructFromNeighbors_nsq_set", _wrap_ReconstructFromNeighbors_nsq_set, METH_VARARGS, NULL},
86896 { (
char *)
"ReconstructFromNeighbors_nsq_get", _wrap_ReconstructFromNeighbors_nsq_get, METH_VARARGS, NULL},
86897 { (
char *)
"ReconstructFromNeighbors_code_size_set", _wrap_ReconstructFromNeighbors_code_size_set, METH_VARARGS, NULL},
86898 { (
char *)
"ReconstructFromNeighbors_code_size_get", _wrap_ReconstructFromNeighbors_code_size_get, METH_VARARGS, NULL},
86899 { (
char *)
"ReconstructFromNeighbors_k_reorder_set", _wrap_ReconstructFromNeighbors_k_reorder_set, METH_VARARGS, NULL},
86900 { (
char *)
"ReconstructFromNeighbors_k_reorder_get", _wrap_ReconstructFromNeighbors_k_reorder_get, METH_VARARGS, NULL},
86901 { (
char *)
"ReconstructFromNeighbors_codebook_set", _wrap_ReconstructFromNeighbors_codebook_set, METH_VARARGS, NULL},
86902 { (
char *)
"ReconstructFromNeighbors_codebook_get", _wrap_ReconstructFromNeighbors_codebook_get, METH_VARARGS, NULL},
86903 { (
char *)
"ReconstructFromNeighbors_codes_set", _wrap_ReconstructFromNeighbors_codes_set, METH_VARARGS, NULL},
86904 { (
char *)
"ReconstructFromNeighbors_codes_get", _wrap_ReconstructFromNeighbors_codes_get, METH_VARARGS, NULL},
86905 { (
char *)
"ReconstructFromNeighbors_ntotal_set", _wrap_ReconstructFromNeighbors_ntotal_set, METH_VARARGS, NULL},
86906 { (
char *)
"ReconstructFromNeighbors_ntotal_get", _wrap_ReconstructFromNeighbors_ntotal_get, METH_VARARGS, NULL},
86907 { (
char *)
"ReconstructFromNeighbors_d_set", _wrap_ReconstructFromNeighbors_d_set, METH_VARARGS, NULL},
86908 { (
char *)
"ReconstructFromNeighbors_d_get", _wrap_ReconstructFromNeighbors_d_get, METH_VARARGS, NULL},
86909 { (
char *)
"ReconstructFromNeighbors_dsub_set", _wrap_ReconstructFromNeighbors_dsub_set, METH_VARARGS, NULL},
86910 { (
char *)
"ReconstructFromNeighbors_dsub_get", _wrap_ReconstructFromNeighbors_dsub_get, METH_VARARGS, NULL},
86911 { (
char *)
"new_ReconstructFromNeighbors", _wrap_new_ReconstructFromNeighbors, METH_VARARGS, NULL},
86912 { (
char *)
"ReconstructFromNeighbors_add_codes", _wrap_ReconstructFromNeighbors_add_codes, METH_VARARGS, NULL},
86913 { (
char *)
"ReconstructFromNeighbors_compute_distances", _wrap_ReconstructFromNeighbors_compute_distances, METH_VARARGS, NULL},
86914 { (
char *)
"ReconstructFromNeighbors_estimate_code", _wrap_ReconstructFromNeighbors_estimate_code, METH_VARARGS, NULL},
86915 { (
char *)
"ReconstructFromNeighbors_reconstruct", _wrap_ReconstructFromNeighbors_reconstruct, METH_VARARGS, NULL},
86916 { (
char *)
"ReconstructFromNeighbors_reconstruct_n", _wrap_ReconstructFromNeighbors_reconstruct_n, METH_VARARGS, NULL},
86917 { (
char *)
"ReconstructFromNeighbors_get_neighbor_table", _wrap_ReconstructFromNeighbors_get_neighbor_table, METH_VARARGS, NULL},
86918 { (
char *)
"delete_ReconstructFromNeighbors", _wrap_delete_ReconstructFromNeighbors, METH_VARARGS, NULL},
86919 { (
char *)
"ReconstructFromNeighbors_swigregister", ReconstructFromNeighbors_swigregister, METH_VARARGS, NULL},
86920 { (
char *)
"IndexHNSW_hnsw_set", _wrap_IndexHNSW_hnsw_set, METH_VARARGS, NULL},
86921 { (
char *)
"IndexHNSW_hnsw_get", _wrap_IndexHNSW_hnsw_get, METH_VARARGS, NULL},
86922 { (
char *)
"IndexHNSW_own_fields_set", _wrap_IndexHNSW_own_fields_set, METH_VARARGS, NULL},
86923 { (
char *)
"IndexHNSW_own_fields_get", _wrap_IndexHNSW_own_fields_get, METH_VARARGS, NULL},
86924 { (
char *)
"IndexHNSW_storage_set", _wrap_IndexHNSW_storage_set, METH_VARARGS, NULL},
86925 { (
char *)
"IndexHNSW_storage_get", _wrap_IndexHNSW_storage_get, METH_VARARGS, NULL},
86926 { (
char *)
"IndexHNSW_reconstruct_from_neighbors_set", _wrap_IndexHNSW_reconstruct_from_neighbors_set, METH_VARARGS, NULL},
86927 { (
char *)
"IndexHNSW_reconstruct_from_neighbors_get", _wrap_IndexHNSW_reconstruct_from_neighbors_get, METH_VARARGS, NULL},
86928 { (
char *)
"delete_IndexHNSW", _wrap_delete_IndexHNSW, METH_VARARGS, NULL},
86929 { (
char *)
"IndexHNSW_get_distance_computer", _wrap_IndexHNSW_get_distance_computer, METH_VARARGS, NULL},
86930 { (
char *)
"IndexHNSW_add", _wrap_IndexHNSW_add, METH_VARARGS, NULL},
86931 { (
char *)
"IndexHNSW_train", _wrap_IndexHNSW_train, METH_VARARGS, NULL},
86932 { (
char *)
"IndexHNSW_search", _wrap_IndexHNSW_search, METH_VARARGS, NULL},
86933 { (
char *)
"IndexHNSW_reconstruct", _wrap_IndexHNSW_reconstruct, METH_VARARGS, NULL},
86934 { (
char *)
"IndexHNSW_reset", _wrap_IndexHNSW_reset, METH_VARARGS, NULL},
86935 { (
char *)
"IndexHNSW_shrink_level_0_neighbors", _wrap_IndexHNSW_shrink_level_0_neighbors, METH_VARARGS, NULL},
86936 { (
char *)
"IndexHNSW_search_level_0", _wrap_IndexHNSW_search_level_0, METH_VARARGS, NULL},
86937 { (
char *)
"IndexHNSW_init_level_0_from_knngraph", _wrap_IndexHNSW_init_level_0_from_knngraph, METH_VARARGS, NULL},
86938 { (
char *)
"IndexHNSW_init_level_0_from_entry_points", _wrap_IndexHNSW_init_level_0_from_entry_points, METH_VARARGS, NULL},
86939 { (
char *)
"IndexHNSW_reorder_links", _wrap_IndexHNSW_reorder_links, METH_VARARGS, NULL},
86940 { (
char *)
"IndexHNSW_link_singletons", _wrap_IndexHNSW_link_singletons, METH_VARARGS, NULL},
86941 { (
char *)
"IndexHNSW_swigregister", IndexHNSW_swigregister, METH_VARARGS, NULL},
86942 { (
char *)
"new_IndexHNSWFlat", _wrap_new_IndexHNSWFlat, METH_VARARGS, NULL},
86943 { (
char *)
"IndexHNSWFlat_get_distance_computer", _wrap_IndexHNSWFlat_get_distance_computer, METH_VARARGS, NULL},
86944 { (
char *)
"delete_IndexHNSWFlat", _wrap_delete_IndexHNSWFlat, METH_VARARGS, NULL},
86945 { (
char *)
"IndexHNSWFlat_swigregister", IndexHNSWFlat_swigregister, METH_VARARGS, NULL},
86946 { (
char *)
"new_IndexHNSWPQ", _wrap_new_IndexHNSWPQ, METH_VARARGS, NULL},
86947 { (
char *)
"IndexHNSWPQ_train", _wrap_IndexHNSWPQ_train, METH_VARARGS, NULL},
86948 { (
char *)
"IndexHNSWPQ_get_distance_computer", _wrap_IndexHNSWPQ_get_distance_computer, METH_VARARGS, NULL},
86949 { (
char *)
"delete_IndexHNSWPQ", _wrap_delete_IndexHNSWPQ, METH_VARARGS, NULL},
86950 { (
char *)
"IndexHNSWPQ_swigregister", IndexHNSWPQ_swigregister, METH_VARARGS, NULL},
86951 { (
char *)
"new_IndexHNSWSQ", _wrap_new_IndexHNSWSQ, METH_VARARGS, NULL},
86952 { (
char *)
"IndexHNSWSQ_get_distance_computer", _wrap_IndexHNSWSQ_get_distance_computer, METH_VARARGS, NULL},
86953 { (
char *)
"delete_IndexHNSWSQ", _wrap_delete_IndexHNSWSQ, METH_VARARGS, NULL},
86954 { (
char *)
"IndexHNSWSQ_swigregister", IndexHNSWSQ_swigregister, METH_VARARGS, NULL},
86955 { (
char *)
"new_IndexHNSW2Level", _wrap_new_IndexHNSW2Level, METH_VARARGS, NULL},
86956 { (
char *)
"IndexHNSW2Level_get_distance_computer", _wrap_IndexHNSW2Level_get_distance_computer, METH_VARARGS, NULL},
86957 { (
char *)
"IndexHNSW2Level_flip_to_ivf", _wrap_IndexHNSW2Level_flip_to_ivf, METH_VARARGS, NULL},
86958 { (
char *)
"IndexHNSW2Level_search", _wrap_IndexHNSW2Level_search, METH_VARARGS, NULL},
86959 { (
char *)
"delete_IndexHNSW2Level", _wrap_delete_IndexHNSW2Level, METH_VARARGS, NULL},
86960 { (
char *)
"IndexHNSW2Level_swigregister", IndexHNSW2Level_swigregister, METH_VARARGS, NULL},
86961 { (
char *)
"IndexIVFFlat_add_core", _wrap_IndexIVFFlat_add_core, METH_VARARGS, NULL},
86962 { (
char *)
"IndexIVFFlat_add_with_ids", _wrap_IndexIVFFlat_add_with_ids, METH_VARARGS, NULL},
86963 { (
char *)
"IndexIVFFlat_encode_vectors", _wrap_IndexIVFFlat_encode_vectors, METH_VARARGS, NULL},
86964 { (
char *)
"IndexIVFFlat_get_InvertedListScanner", _wrap_IndexIVFFlat_get_InvertedListScanner, METH_VARARGS, NULL},
86965 { (
char *)
"IndexIVFFlat_range_search", _wrap_IndexIVFFlat_range_search, METH_VARARGS, NULL},
86966 { (
char *)
"IndexIVFFlat_update_vectors", _wrap_IndexIVFFlat_update_vectors, METH_VARARGS, NULL},
86967 { (
char *)
"IndexIVFFlat_reconstruct_from_offset", _wrap_IndexIVFFlat_reconstruct_from_offset, METH_VARARGS, NULL},
86968 { (
char *)
"new_IndexIVFFlat", _wrap_new_IndexIVFFlat, METH_VARARGS, NULL},
86969 { (
char *)
"delete_IndexIVFFlat", _wrap_delete_IndexIVFFlat, METH_VARARGS, NULL},
86970 { (
char *)
"IndexIVFFlat_swigregister", IndexIVFFlat_swigregister, METH_VARARGS, NULL},
86971 { (
char *)
"IndexIVFFlatDedup_instances_set", _wrap_IndexIVFFlatDedup_instances_set, METH_VARARGS, NULL},
86972 { (
char *)
"IndexIVFFlatDedup_instances_get", _wrap_IndexIVFFlatDedup_instances_get, METH_VARARGS, NULL},
86973 { (
char *)
"IndexIVFFlatDedup_train", _wrap_IndexIVFFlatDedup_train, METH_VARARGS, NULL},
86974 { (
char *)
"IndexIVFFlatDedup_add_with_ids", _wrap_IndexIVFFlatDedup_add_with_ids, METH_VARARGS, NULL},
86975 { (
char *)
"IndexIVFFlatDedup_search_preassigned", _wrap_IndexIVFFlatDedup_search_preassigned, METH_VARARGS, NULL},
86976 { (
char *)
"IndexIVFFlatDedup_remove_ids", _wrap_IndexIVFFlatDedup_remove_ids, METH_VARARGS, NULL},
86977 { (
char *)
"IndexIVFFlatDedup_range_search", _wrap_IndexIVFFlatDedup_range_search, METH_VARARGS, NULL},
86978 { (
char *)
"IndexIVFFlatDedup_update_vectors", _wrap_IndexIVFFlatDedup_update_vectors, METH_VARARGS, NULL},
86979 { (
char *)
"IndexIVFFlatDedup_reconstruct_from_offset", _wrap_IndexIVFFlatDedup_reconstruct_from_offset, METH_VARARGS, NULL},
86980 { (
char *)
"new_IndexIVFFlatDedup", _wrap_new_IndexIVFFlatDedup, METH_VARARGS, NULL},
86981 { (
char *)
"delete_IndexIVFFlatDedup", _wrap_delete_IndexIVFFlatDedup, METH_VARARGS, NULL},
86982 { (
char *)
"IndexIVFFlatDedup_swigregister", IndexIVFFlatDedup_swigregister, METH_VARARGS, NULL},
86983 { (
char *)
"OnDiskInvertedLists_lists_set", _wrap_OnDiskInvertedLists_lists_set, METH_VARARGS, NULL},
86984 { (
char *)
"OnDiskInvertedLists_lists_get", _wrap_OnDiskInvertedLists_lists_get, METH_VARARGS, NULL},
86985 { (
char *)
"OnDiskInvertedLists_slots_set", _wrap_OnDiskInvertedLists_slots_set, METH_VARARGS, NULL},
86986 { (
char *)
"OnDiskInvertedLists_slots_get", _wrap_OnDiskInvertedLists_slots_get, METH_VARARGS, NULL},
86987 { (
char *)
"OnDiskInvertedLists_filename_set", _wrap_OnDiskInvertedLists_filename_set, METH_VARARGS, NULL},
86988 { (
char *)
"OnDiskInvertedLists_filename_get", _wrap_OnDiskInvertedLists_filename_get, METH_VARARGS, NULL},
86989 { (
char *)
"OnDiskInvertedLists_totsize_set", _wrap_OnDiskInvertedLists_totsize_set, METH_VARARGS, NULL},
86990 { (
char *)
"OnDiskInvertedLists_totsize_get", _wrap_OnDiskInvertedLists_totsize_get, METH_VARARGS, NULL},
86991 { (
char *)
"OnDiskInvertedLists_ptr_set", _wrap_OnDiskInvertedLists_ptr_set, METH_VARARGS, NULL},
86992 { (
char *)
"OnDiskInvertedLists_ptr_get", _wrap_OnDiskInvertedLists_ptr_get, METH_VARARGS, NULL},
86993 { (
char *)
"OnDiskInvertedLists_read_only_set", _wrap_OnDiskInvertedLists_read_only_set, METH_VARARGS, NULL},
86994 { (
char *)
"OnDiskInvertedLists_read_only_get", _wrap_OnDiskInvertedLists_read_only_get, METH_VARARGS, NULL},
86995 { (
char *)
"OnDiskInvertedLists_list_size", _wrap_OnDiskInvertedLists_list_size, METH_VARARGS, NULL},
86996 { (
char *)
"OnDiskInvertedLists_get_codes", _wrap_OnDiskInvertedLists_get_codes, METH_VARARGS, NULL},
86997 { (
char *)
"OnDiskInvertedLists_get_ids", _wrap_OnDiskInvertedLists_get_ids, METH_VARARGS, NULL},
86998 { (
char *)
"OnDiskInvertedLists_add_entries", _wrap_OnDiskInvertedLists_add_entries, METH_VARARGS, NULL},
86999 { (
char *)
"OnDiskInvertedLists_update_entries", _wrap_OnDiskInvertedLists_update_entries, METH_VARARGS, NULL},
87000 { (
char *)
"OnDiskInvertedLists_resize", _wrap_OnDiskInvertedLists_resize, METH_VARARGS, NULL},
87001 { (
char *)
"OnDiskInvertedLists_merge_from", _wrap_OnDiskInvertedLists_merge_from, METH_VARARGS, NULL},
87002 { (
char *)
"OnDiskInvertedLists_prefetch_lists", _wrap_OnDiskInvertedLists_prefetch_lists, METH_VARARGS, NULL},
87003 { (
char *)
"delete_OnDiskInvertedLists", _wrap_delete_OnDiskInvertedLists, METH_VARARGS, NULL},
87004 { (
char *)
"OnDiskInvertedLists_locks_set", _wrap_OnDiskInvertedLists_locks_set, METH_VARARGS, NULL},
87005 { (
char *)
"OnDiskInvertedLists_locks_get", _wrap_OnDiskInvertedLists_locks_get, METH_VARARGS, NULL},
87006 { (
char *)
"OnDiskInvertedLists_pf_set", _wrap_OnDiskInvertedLists_pf_set, METH_VARARGS, NULL},
87007 { (
char *)
"OnDiskInvertedLists_pf_get", _wrap_OnDiskInvertedLists_pf_get, METH_VARARGS, NULL},
87008 { (
char *)
"OnDiskInvertedLists_do_mmap", _wrap_OnDiskInvertedLists_do_mmap, METH_VARARGS, NULL},
87009 { (
char *)
"OnDiskInvertedLists_update_totsize", _wrap_OnDiskInvertedLists_update_totsize, METH_VARARGS, NULL},
87010 { (
char *)
"OnDiskInvertedLists_resize_locked", _wrap_OnDiskInvertedLists_resize_locked, METH_VARARGS, NULL},
87011 { (
char *)
"OnDiskInvertedLists_allocate_slot", _wrap_OnDiskInvertedLists_allocate_slot, METH_VARARGS, NULL},
87012 { (
char *)
"OnDiskInvertedLists_free_slot", _wrap_OnDiskInvertedLists_free_slot, METH_VARARGS, NULL},
87013 { (
char *)
"new_OnDiskInvertedLists", _wrap_new_OnDiskInvertedLists, METH_VARARGS, NULL},
87014 { (
char *)
"OnDiskInvertedLists_swigregister", OnDiskInvertedLists_swigregister, METH_VARARGS, NULL},
87015 { (
char *)
"IVFPQSearchParameters_scan_table_threshold_set", _wrap_IVFPQSearchParameters_scan_table_threshold_set, METH_VARARGS, NULL},
87016 { (
char *)
"IVFPQSearchParameters_scan_table_threshold_get", _wrap_IVFPQSearchParameters_scan_table_threshold_get, METH_VARARGS, NULL},
87017 { (
char *)
"IVFPQSearchParameters_polysemous_ht_set", _wrap_IVFPQSearchParameters_polysemous_ht_set, METH_VARARGS, NULL},
87018 { (
char *)
"IVFPQSearchParameters_polysemous_ht_get", _wrap_IVFPQSearchParameters_polysemous_ht_get, METH_VARARGS, NULL},
87019 { (
char *)
"delete_IVFPQSearchParameters", _wrap_delete_IVFPQSearchParameters, METH_VARARGS, NULL},
87020 { (
char *)
"new_IVFPQSearchParameters", _wrap_new_IVFPQSearchParameters, METH_VARARGS, NULL},
87021 { (
char *)
"IVFPQSearchParameters_swigregister", IVFPQSearchParameters_swigregister, METH_VARARGS, NULL},
87022 { (
char *)
"IndexIVFPQ_by_residual_set", _wrap_IndexIVFPQ_by_residual_set, METH_VARARGS, NULL},
87023 { (
char *)
"IndexIVFPQ_by_residual_get", _wrap_IndexIVFPQ_by_residual_get, METH_VARARGS, NULL},
87024 { (
char *)
"IndexIVFPQ_pq_set", _wrap_IndexIVFPQ_pq_set, METH_VARARGS, NULL},
87025 { (
char *)
"IndexIVFPQ_pq_get", _wrap_IndexIVFPQ_pq_get, METH_VARARGS, NULL},
87026 { (
char *)
"IndexIVFPQ_do_polysemous_training_set", _wrap_IndexIVFPQ_do_polysemous_training_set, METH_VARARGS, NULL},
87027 { (
char *)
"IndexIVFPQ_do_polysemous_training_get", _wrap_IndexIVFPQ_do_polysemous_training_get, METH_VARARGS, NULL},
87028 { (
char *)
"IndexIVFPQ_polysemous_training_set", _wrap_IndexIVFPQ_polysemous_training_set, METH_VARARGS, NULL},
87029 { (
char *)
"IndexIVFPQ_polysemous_training_get", _wrap_IndexIVFPQ_polysemous_training_get, METH_VARARGS, NULL},
87030 { (
char *)
"IndexIVFPQ_scan_table_threshold_set", _wrap_IndexIVFPQ_scan_table_threshold_set, METH_VARARGS, NULL},
87031 { (
char *)
"IndexIVFPQ_scan_table_threshold_get", _wrap_IndexIVFPQ_scan_table_threshold_get, METH_VARARGS, NULL},
87032 { (
char *)
"IndexIVFPQ_polysemous_ht_set", _wrap_IndexIVFPQ_polysemous_ht_set, METH_VARARGS, NULL},
87033 { (
char *)
"IndexIVFPQ_polysemous_ht_get", _wrap_IndexIVFPQ_polysemous_ht_get, METH_VARARGS, NULL},
87034 { (
char *)
"IndexIVFPQ_use_precomputed_table_set", _wrap_IndexIVFPQ_use_precomputed_table_set, METH_VARARGS, NULL},
87035 { (
char *)
"IndexIVFPQ_use_precomputed_table_get", _wrap_IndexIVFPQ_use_precomputed_table_get, METH_VARARGS, NULL},
87036 { (
char *)
"IndexIVFPQ_precomputed_table_max_bytes_get", _wrap_IndexIVFPQ_precomputed_table_max_bytes_get, METH_VARARGS, NULL},
87037 { (
char *)
"IndexIVFPQ_precomputed_table_max_bytes_set", _wrap_IndexIVFPQ_precomputed_table_max_bytes_set, METH_VARARGS, NULL},
87038 { (
char *)
"IndexIVFPQ_precomputed_table_set", _wrap_IndexIVFPQ_precomputed_table_set, METH_VARARGS, NULL},
87039 { (
char *)
"IndexIVFPQ_precomputed_table_get", _wrap_IndexIVFPQ_precomputed_table_get, METH_VARARGS, NULL},
87040 { (
char *)
"IndexIVFPQ_add_with_ids", _wrap_IndexIVFPQ_add_with_ids, METH_VARARGS, NULL},
87041 { (
char *)
"IndexIVFPQ_encode_vectors", _wrap_IndexIVFPQ_encode_vectors, METH_VARARGS, NULL},
87042 { (
char *)
"IndexIVFPQ_add_core_o", _wrap_IndexIVFPQ_add_core_o, METH_VARARGS, NULL},
87043 { (
char *)
"IndexIVFPQ_train_residual", _wrap_IndexIVFPQ_train_residual, METH_VARARGS, NULL},
87044 { (
char *)
"IndexIVFPQ_train_residual_o", _wrap_IndexIVFPQ_train_residual_o, METH_VARARGS, NULL},
87045 { (
char *)
"IndexIVFPQ_reconstruct_from_offset", _wrap_IndexIVFPQ_reconstruct_from_offset, METH_VARARGS, NULL},
87046 { (
char *)
"IndexIVFPQ_find_duplicates", _wrap_IndexIVFPQ_find_duplicates, METH_VARARGS, NULL},
87047 { (
char *)
"IndexIVFPQ_encode", _wrap_IndexIVFPQ_encode, METH_VARARGS, NULL},
87048 { (
char *)
"IndexIVFPQ_encode_multiple", _wrap_IndexIVFPQ_encode_multiple, METH_VARARGS, NULL},
87049 { (
char *)
"IndexIVFPQ_decode_multiple", _wrap_IndexIVFPQ_decode_multiple, METH_VARARGS, NULL},
87050 { (
char *)
"IndexIVFPQ_get_InvertedListScanner", _wrap_IndexIVFPQ_get_InvertedListScanner, METH_VARARGS, NULL},
87051 { (
char *)
"IndexIVFPQ_precompute_table", _wrap_IndexIVFPQ_precompute_table, METH_VARARGS, NULL},
87052 { (
char *)
"new_IndexIVFPQ", _wrap_new_IndexIVFPQ, METH_VARARGS, NULL},
87053 { (
char *)
"delete_IndexIVFPQ", _wrap_delete_IndexIVFPQ, METH_VARARGS, NULL},
87054 { (
char *)
"IndexIVFPQ_swigregister", IndexIVFPQ_swigregister, METH_VARARGS, NULL},
87055 { (
char *)
"IndexIVFPQStats_nrefine_set", _wrap_IndexIVFPQStats_nrefine_set, METH_VARARGS, NULL},
87056 { (
char *)
"IndexIVFPQStats_nrefine_get", _wrap_IndexIVFPQStats_nrefine_get, METH_VARARGS, NULL},
87057 { (
char *)
"IndexIVFPQStats_n_hamming_pass_set", _wrap_IndexIVFPQStats_n_hamming_pass_set, METH_VARARGS, NULL},
87058 { (
char *)
"IndexIVFPQStats_n_hamming_pass_get", _wrap_IndexIVFPQStats_n_hamming_pass_get, METH_VARARGS, NULL},
87059 { (
char *)
"IndexIVFPQStats_search_cycles_set", _wrap_IndexIVFPQStats_search_cycles_set, METH_VARARGS, NULL},
87060 { (
char *)
"IndexIVFPQStats_search_cycles_get", _wrap_IndexIVFPQStats_search_cycles_get, METH_VARARGS, NULL},
87061 { (
char *)
"IndexIVFPQStats_refine_cycles_set", _wrap_IndexIVFPQStats_refine_cycles_set, METH_VARARGS, NULL},
87062 { (
char *)
"IndexIVFPQStats_refine_cycles_get", _wrap_IndexIVFPQStats_refine_cycles_get, METH_VARARGS, NULL},
87063 { (
char *)
"new_IndexIVFPQStats", _wrap_new_IndexIVFPQStats, METH_VARARGS, NULL},
87064 { (
char *)
"IndexIVFPQStats_reset", _wrap_IndexIVFPQStats_reset, METH_VARARGS, NULL},
87065 { (
char *)
"delete_IndexIVFPQStats", _wrap_delete_IndexIVFPQStats, METH_VARARGS, NULL},
87066 { (
char *)
"IndexIVFPQStats_swigregister", IndexIVFPQStats_swigregister, METH_VARARGS, NULL},
87067 { (
char *)
"IndexIVFPQR_refine_pq_set", _wrap_IndexIVFPQR_refine_pq_set, METH_VARARGS, NULL},
87068 { (
char *)
"IndexIVFPQR_refine_pq_get", _wrap_IndexIVFPQR_refine_pq_get, METH_VARARGS, NULL},
87069 { (
char *)
"IndexIVFPQR_refine_codes_set", _wrap_IndexIVFPQR_refine_codes_set, METH_VARARGS, NULL},
87070 { (
char *)
"IndexIVFPQR_refine_codes_get", _wrap_IndexIVFPQR_refine_codes_get, METH_VARARGS, NULL},
87071 { (
char *)
"IndexIVFPQR_k_factor_set", _wrap_IndexIVFPQR_k_factor_set, METH_VARARGS, NULL},
87072 { (
char *)
"IndexIVFPQR_k_factor_get", _wrap_IndexIVFPQR_k_factor_get, METH_VARARGS, NULL},
87073 { (
char *)
"IndexIVFPQR_reset", _wrap_IndexIVFPQR_reset, METH_VARARGS, NULL},
87074 { (
char *)
"IndexIVFPQR_remove_ids", _wrap_IndexIVFPQR_remove_ids, METH_VARARGS, NULL},
87075 { (
char *)
"IndexIVFPQR_train_residual", _wrap_IndexIVFPQR_train_residual, METH_VARARGS, NULL},
87076 { (
char *)
"IndexIVFPQR_add_with_ids", _wrap_IndexIVFPQR_add_with_ids, METH_VARARGS, NULL},
87077 { (
char *)
"IndexIVFPQR_add_core", _wrap_IndexIVFPQR_add_core, METH_VARARGS, NULL},
87078 { (
char *)
"IndexIVFPQR_reconstruct_from_offset", _wrap_IndexIVFPQR_reconstruct_from_offset, METH_VARARGS, NULL},
87079 { (
char *)
"IndexIVFPQR_merge_from", _wrap_IndexIVFPQR_merge_from, METH_VARARGS, NULL},
87080 { (
char *)
"IndexIVFPQR_search_preassigned", _wrap_IndexIVFPQR_search_preassigned, METH_VARARGS, NULL},
87081 { (
char *)
"new_IndexIVFPQR", _wrap_new_IndexIVFPQR, METH_VARARGS, NULL},
87082 { (
char *)
"delete_IndexIVFPQR", _wrap_delete_IndexIVFPQR, METH_VARARGS, NULL},
87083 { (
char *)
"IndexIVFPQR_swigregister", IndexIVFPQR_swigregister, METH_VARARGS, NULL},
87084 { (
char *)
"Index2Layer_q1_set", _wrap_Index2Layer_q1_set, METH_VARARGS, NULL},
87085 { (
char *)
"Index2Layer_q1_get", _wrap_Index2Layer_q1_get, METH_VARARGS, NULL},
87086 { (
char *)
"Index2Layer_pq_set", _wrap_Index2Layer_pq_set, METH_VARARGS, NULL},
87087 { (
char *)
"Index2Layer_pq_get", _wrap_Index2Layer_pq_get, METH_VARARGS, NULL},
87088 { (
char *)
"Index2Layer_codes_set", _wrap_Index2Layer_codes_set, METH_VARARGS, NULL},
87089 { (
char *)
"Index2Layer_codes_get", _wrap_Index2Layer_codes_get, METH_VARARGS, NULL},
87090 { (
char *)
"Index2Layer_code_size_1_set", _wrap_Index2Layer_code_size_1_set, METH_VARARGS, NULL},
87091 { (
char *)
"Index2Layer_code_size_1_get", _wrap_Index2Layer_code_size_1_get, METH_VARARGS, NULL},
87092 { (
char *)
"Index2Layer_code_size_2_set", _wrap_Index2Layer_code_size_2_set, METH_VARARGS, NULL},
87093 { (
char *)
"Index2Layer_code_size_2_get", _wrap_Index2Layer_code_size_2_get, METH_VARARGS, NULL},
87094 { (
char *)
"Index2Layer_code_size_set", _wrap_Index2Layer_code_size_set, METH_VARARGS, NULL},
87095 { (
char *)
"Index2Layer_code_size_get", _wrap_Index2Layer_code_size_get, METH_VARARGS, NULL},
87096 { (
char *)
"new_Index2Layer", _wrap_new_Index2Layer, METH_VARARGS, NULL},
87097 { (
char *)
"delete_Index2Layer", _wrap_delete_Index2Layer, METH_VARARGS, NULL},
87098 { (
char *)
"Index2Layer_train", _wrap_Index2Layer_train, METH_VARARGS, NULL},
87099 { (
char *)
"Index2Layer_add", _wrap_Index2Layer_add, METH_VARARGS, NULL},
87100 { (
char *)
"Index2Layer_search", _wrap_Index2Layer_search, METH_VARARGS, NULL},
87101 { (
char *)
"Index2Layer_reconstruct_n", _wrap_Index2Layer_reconstruct_n, METH_VARARGS, NULL},
87102 { (
char *)
"Index2Layer_reconstruct", _wrap_Index2Layer_reconstruct, METH_VARARGS, NULL},
87103 { (
char *)
"Index2Layer_reset", _wrap_Index2Layer_reset, METH_VARARGS, NULL},
87104 { (
char *)
"Index2Layer_transfer_to_IVFPQ", _wrap_Index2Layer_transfer_to_IVFPQ, METH_VARARGS, NULL},
87105 { (
char *)
"Index2Layer_swigregister", Index2Layer_swigregister, METH_VARARGS, NULL},
87106 { (
char *)
"IndexBinary_d_set", _wrap_IndexBinary_d_set, METH_VARARGS, NULL},
87107 { (
char *)
"IndexBinary_d_get", _wrap_IndexBinary_d_get, METH_VARARGS, NULL},
87108 { (
char *)
"IndexBinary_code_size_set", _wrap_IndexBinary_code_size_set, METH_VARARGS, NULL},
87109 { (
char *)
"IndexBinary_code_size_get", _wrap_IndexBinary_code_size_get, METH_VARARGS, NULL},
87110 { (
char *)
"IndexBinary_ntotal_set", _wrap_IndexBinary_ntotal_set, METH_VARARGS, NULL},
87111 { (
char *)
"IndexBinary_ntotal_get", _wrap_IndexBinary_ntotal_get, METH_VARARGS, NULL},
87112 { (
char *)
"IndexBinary_verbose_set", _wrap_IndexBinary_verbose_set, METH_VARARGS, NULL},
87113 { (
char *)
"IndexBinary_verbose_get", _wrap_IndexBinary_verbose_get, METH_VARARGS, NULL},
87114 { (
char *)
"IndexBinary_is_trained_set", _wrap_IndexBinary_is_trained_set, METH_VARARGS, NULL},
87115 { (
char *)
"IndexBinary_is_trained_get", _wrap_IndexBinary_is_trained_get, METH_VARARGS, NULL},
87116 { (
char *)
"IndexBinary_metric_type_set", _wrap_IndexBinary_metric_type_set, METH_VARARGS, NULL},
87117 { (
char *)
"IndexBinary_metric_type_get", _wrap_IndexBinary_metric_type_get, METH_VARARGS, NULL},
87118 { (
char *)
"delete_IndexBinary", _wrap_delete_IndexBinary, METH_VARARGS, NULL},
87119 { (
char *)
"IndexBinary_train", _wrap_IndexBinary_train, METH_VARARGS, NULL},
87120 { (
char *)
"IndexBinary_add", _wrap_IndexBinary_add, METH_VARARGS, NULL},
87121 { (
char *)
"IndexBinary_add_with_ids", _wrap_IndexBinary_add_with_ids, METH_VARARGS, NULL},
87122 { (
char *)
"IndexBinary_search", _wrap_IndexBinary_search, METH_VARARGS, NULL},
87123 { (
char *)
"IndexBinary_range_search", _wrap_IndexBinary_range_search, METH_VARARGS, NULL},
87124 { (
char *)
"IndexBinary_assign", _wrap_IndexBinary_assign, METH_VARARGS, NULL},
87125 { (
char *)
"IndexBinary_reset", _wrap_IndexBinary_reset, METH_VARARGS, NULL},
87126 { (
char *)
"IndexBinary_remove_ids", _wrap_IndexBinary_remove_ids, METH_VARARGS, NULL},
87127 { (
char *)
"IndexBinary_reconstruct", _wrap_IndexBinary_reconstruct, METH_VARARGS, NULL},
87128 { (
char *)
"IndexBinary_reconstruct_n", _wrap_IndexBinary_reconstruct_n, METH_VARARGS, NULL},
87129 { (
char *)
"IndexBinary_search_and_reconstruct", _wrap_IndexBinary_search_and_reconstruct, METH_VARARGS, NULL},
87130 { (
char *)
"IndexBinary_display", _wrap_IndexBinary_display, METH_VARARGS, NULL},
87131 { (
char *)
"IndexBinary_swigregister", IndexBinary_swigregister, METH_VARARGS, NULL},
87132 { (
char *)
"IndexBinaryFlat_xb_set", _wrap_IndexBinaryFlat_xb_set, METH_VARARGS, NULL},
87133 { (
char *)
"IndexBinaryFlat_xb_get", _wrap_IndexBinaryFlat_xb_get, METH_VARARGS, NULL},
87134 { (
char *)
"IndexBinaryFlat_use_heap_set", _wrap_IndexBinaryFlat_use_heap_set, METH_VARARGS, NULL},
87135 { (
char *)
"IndexBinaryFlat_use_heap_get", _wrap_IndexBinaryFlat_use_heap_get, METH_VARARGS, NULL},
87136 { (
char *)
"IndexBinaryFlat_query_batch_size_set", _wrap_IndexBinaryFlat_query_batch_size_set, METH_VARARGS, NULL},
87137 { (
char *)
"IndexBinaryFlat_query_batch_size_get", _wrap_IndexBinaryFlat_query_batch_size_get, METH_VARARGS, NULL},
87138 { (
char *)
"IndexBinaryFlat_add", _wrap_IndexBinaryFlat_add, METH_VARARGS, NULL},
87139 { (
char *)
"IndexBinaryFlat_reset", _wrap_IndexBinaryFlat_reset, METH_VARARGS, NULL},
87140 { (
char *)
"IndexBinaryFlat_search", _wrap_IndexBinaryFlat_search, METH_VARARGS, NULL},
87141 { (
char *)
"IndexBinaryFlat_reconstruct", _wrap_IndexBinaryFlat_reconstruct, METH_VARARGS, NULL},
87142 { (
char *)
"IndexBinaryFlat_remove_ids", _wrap_IndexBinaryFlat_remove_ids, METH_VARARGS, NULL},
87143 { (
char *)
"new_IndexBinaryFlat", _wrap_new_IndexBinaryFlat, METH_VARARGS, NULL},
87144 { (
char *)
"delete_IndexBinaryFlat", _wrap_delete_IndexBinaryFlat, METH_VARARGS, NULL},
87145 { (
char *)
"IndexBinaryFlat_swigregister", IndexBinaryFlat_swigregister, METH_VARARGS, NULL},
87146 { (
char *)
"IndexBinaryIVF_invlists_set", _wrap_IndexBinaryIVF_invlists_set, METH_VARARGS, NULL},
87147 { (
char *)
"IndexBinaryIVF_invlists_get", _wrap_IndexBinaryIVF_invlists_get, METH_VARARGS, NULL},
87148 { (
char *)
"IndexBinaryIVF_own_invlists_set", _wrap_IndexBinaryIVF_own_invlists_set, METH_VARARGS, NULL},
87149 { (
char *)
"IndexBinaryIVF_own_invlists_get", _wrap_IndexBinaryIVF_own_invlists_get, METH_VARARGS, NULL},
87150 { (
char *)
"IndexBinaryIVF_nprobe_set", _wrap_IndexBinaryIVF_nprobe_set, METH_VARARGS, NULL},
87151 { (
char *)
"IndexBinaryIVF_nprobe_get", _wrap_IndexBinaryIVF_nprobe_get, METH_VARARGS, NULL},
87152 { (
char *)
"IndexBinaryIVF_max_codes_set", _wrap_IndexBinaryIVF_max_codes_set, METH_VARARGS, NULL},
87153 { (
char *)
"IndexBinaryIVF_max_codes_get", _wrap_IndexBinaryIVF_max_codes_get, METH_VARARGS, NULL},
87154 { (
char *)
"IndexBinaryIVF_use_heap_set", _wrap_IndexBinaryIVF_use_heap_set, METH_VARARGS, NULL},
87155 { (
char *)
"IndexBinaryIVF_use_heap_get", _wrap_IndexBinaryIVF_use_heap_get, METH_VARARGS, NULL},
87156 { (
char *)
"IndexBinaryIVF_maintain_direct_map_set", _wrap_IndexBinaryIVF_maintain_direct_map_set, METH_VARARGS, NULL},
87157 { (
char *)
"IndexBinaryIVF_maintain_direct_map_get", _wrap_IndexBinaryIVF_maintain_direct_map_get, METH_VARARGS, NULL},
87158 { (
char *)
"IndexBinaryIVF_direct_map_set", _wrap_IndexBinaryIVF_direct_map_set, METH_VARARGS, NULL},
87159 { (
char *)
"IndexBinaryIVF_direct_map_get", _wrap_IndexBinaryIVF_direct_map_get, METH_VARARGS, NULL},
87160 { (
char *)
"IndexBinaryIVF_quantizer_set", _wrap_IndexBinaryIVF_quantizer_set, METH_VARARGS, NULL},
87161 { (
char *)
"IndexBinaryIVF_quantizer_get", _wrap_IndexBinaryIVF_quantizer_get, METH_VARARGS, NULL},
87162 { (
char *)
"IndexBinaryIVF_nlist_set", _wrap_IndexBinaryIVF_nlist_set, METH_VARARGS, NULL},
87163 { (
char *)
"IndexBinaryIVF_nlist_get", _wrap_IndexBinaryIVF_nlist_get, METH_VARARGS, NULL},
87164 { (
char *)
"IndexBinaryIVF_own_fields_set", _wrap_IndexBinaryIVF_own_fields_set, METH_VARARGS, NULL},
87165 { (
char *)
"IndexBinaryIVF_own_fields_get", _wrap_IndexBinaryIVF_own_fields_get, METH_VARARGS, NULL},
87166 { (
char *)
"IndexBinaryIVF_cp_set", _wrap_IndexBinaryIVF_cp_set, METH_VARARGS, NULL},
87167 { (
char *)
"IndexBinaryIVF_cp_get", _wrap_IndexBinaryIVF_cp_get, METH_VARARGS, NULL},
87168 { (
char *)
"IndexBinaryIVF_clustering_index_set", _wrap_IndexBinaryIVF_clustering_index_set, METH_VARARGS, NULL},
87169 { (
char *)
"IndexBinaryIVF_clustering_index_get", _wrap_IndexBinaryIVF_clustering_index_get, METH_VARARGS, NULL},
87170 { (
char *)
"IndexBinaryIVF_train_q1", _wrap_IndexBinaryIVF_train_q1, METH_VARARGS, NULL},
87171 { (
char *)
"new_IndexBinaryIVF", _wrap_new_IndexBinaryIVF, METH_VARARGS, NULL},
87172 { (
char *)
"delete_IndexBinaryIVF", _wrap_delete_IndexBinaryIVF, METH_VARARGS, NULL},
87173 { (
char *)
"IndexBinaryIVF_reset", _wrap_IndexBinaryIVF_reset, METH_VARARGS, NULL},
87174 { (
char *)
"IndexBinaryIVF_train", _wrap_IndexBinaryIVF_train, METH_VARARGS, NULL},
87175 { (
char *)
"IndexBinaryIVF_add", _wrap_IndexBinaryIVF_add, METH_VARARGS, NULL},
87176 { (
char *)
"IndexBinaryIVF_add_with_ids", _wrap_IndexBinaryIVF_add_with_ids, METH_VARARGS, NULL},
87177 { (
char *)
"IndexBinaryIVF_add_core", _wrap_IndexBinaryIVF_add_core, METH_VARARGS, NULL},
87178 { (
char *)
"IndexBinaryIVF_search_preassigned", _wrap_IndexBinaryIVF_search_preassigned, METH_VARARGS, NULL},
87179 { (
char *)
"IndexBinaryIVF_get_InvertedListScanner", _wrap_IndexBinaryIVF_get_InvertedListScanner, METH_VARARGS, NULL},
87180 { (
char *)
"IndexBinaryIVF_search", _wrap_IndexBinaryIVF_search, METH_VARARGS, NULL},
87181 { (
char *)
"IndexBinaryIVF_reconstruct", _wrap_IndexBinaryIVF_reconstruct, METH_VARARGS, NULL},
87182 { (
char *)
"IndexBinaryIVF_reconstruct_n", _wrap_IndexBinaryIVF_reconstruct_n, METH_VARARGS, NULL},
87183 { (
char *)
"IndexBinaryIVF_search_and_reconstruct", _wrap_IndexBinaryIVF_search_and_reconstruct, METH_VARARGS, NULL},
87184 { (
char *)
"IndexBinaryIVF_reconstruct_from_offset", _wrap_IndexBinaryIVF_reconstruct_from_offset, METH_VARARGS, NULL},
87185 { (
char *)
"IndexBinaryIVF_remove_ids", _wrap_IndexBinaryIVF_remove_ids, METH_VARARGS, NULL},
87186 { (
char *)
"IndexBinaryIVF_merge_from", _wrap_IndexBinaryIVF_merge_from, METH_VARARGS, NULL},
87187 { (
char *)
"IndexBinaryIVF_get_list_size", _wrap_IndexBinaryIVF_get_list_size, METH_VARARGS, NULL},
87188 { (
char *)
"IndexBinaryIVF_make_direct_map", _wrap_IndexBinaryIVF_make_direct_map, METH_VARARGS, NULL},
87189 { (
char *)
"IndexBinaryIVF_imbalance_factor", _wrap_IndexBinaryIVF_imbalance_factor, METH_VARARGS, NULL},
87190 { (
char *)
"IndexBinaryIVF_print_stats", _wrap_IndexBinaryIVF_print_stats, METH_VARARGS, NULL},
87191 { (
char *)
"IndexBinaryIVF_replace_invlists", _wrap_IndexBinaryIVF_replace_invlists, METH_VARARGS, NULL},
87192 { (
char *)
"IndexBinaryIVF_swigregister", IndexBinaryIVF_swigregister, METH_VARARGS, NULL},
87193 { (
char *)
"IndexBinaryFromFloat_index_set", _wrap_IndexBinaryFromFloat_index_set, METH_VARARGS, NULL},
87194 { (
char *)
"IndexBinaryFromFloat_index_get", _wrap_IndexBinaryFromFloat_index_get, METH_VARARGS, NULL},
87195 { (
char *)
"IndexBinaryFromFloat_own_fields_set", _wrap_IndexBinaryFromFloat_own_fields_set, METH_VARARGS, NULL},
87196 { (
char *)
"IndexBinaryFromFloat_own_fields_get", _wrap_IndexBinaryFromFloat_own_fields_get, METH_VARARGS, NULL},
87197 { (
char *)
"new_IndexBinaryFromFloat", _wrap_new_IndexBinaryFromFloat, METH_VARARGS, NULL},
87198 { (
char *)
"delete_IndexBinaryFromFloat", _wrap_delete_IndexBinaryFromFloat, METH_VARARGS, NULL},
87199 { (
char *)
"IndexBinaryFromFloat_add", _wrap_IndexBinaryFromFloat_add, METH_VARARGS, NULL},
87200 { (
char *)
"IndexBinaryFromFloat_reset", _wrap_IndexBinaryFromFloat_reset, METH_VARARGS, NULL},
87201 { (
char *)
"IndexBinaryFromFloat_search", _wrap_IndexBinaryFromFloat_search, METH_VARARGS, NULL},
87202 { (
char *)
"IndexBinaryFromFloat_train", _wrap_IndexBinaryFromFloat_train, METH_VARARGS, NULL},
87203 { (
char *)
"IndexBinaryFromFloat_swigregister", IndexBinaryFromFloat_swigregister, METH_VARARGS, NULL},
87204 { (
char *)
"IndexBinaryHNSW_hnsw_set", _wrap_IndexBinaryHNSW_hnsw_set, METH_VARARGS, NULL},
87205 { (
char *)
"IndexBinaryHNSW_hnsw_get", _wrap_IndexBinaryHNSW_hnsw_get, METH_VARARGS, NULL},
87206 { (
char *)
"IndexBinaryHNSW_own_fields_set", _wrap_IndexBinaryHNSW_own_fields_set, METH_VARARGS, NULL},
87207 { (
char *)
"IndexBinaryHNSW_own_fields_get", _wrap_IndexBinaryHNSW_own_fields_get, METH_VARARGS, NULL},
87208 { (
char *)
"IndexBinaryHNSW_storage_set", _wrap_IndexBinaryHNSW_storage_set, METH_VARARGS, NULL},
87209 { (
char *)
"IndexBinaryHNSW_storage_get", _wrap_IndexBinaryHNSW_storage_get, METH_VARARGS, NULL},
87210 { (
char *)
"new_IndexBinaryHNSW", _wrap_new_IndexBinaryHNSW, METH_VARARGS, NULL},
87211 { (
char *)
"delete_IndexBinaryHNSW", _wrap_delete_IndexBinaryHNSW, METH_VARARGS, NULL},
87212 { (
char *)
"IndexBinaryHNSW_get_distance_computer", _wrap_IndexBinaryHNSW_get_distance_computer, METH_VARARGS, NULL},
87213 { (
char *)
"IndexBinaryHNSW_add", _wrap_IndexBinaryHNSW_add, METH_VARARGS, NULL},
87214 { (
char *)
"IndexBinaryHNSW_train", _wrap_IndexBinaryHNSW_train, METH_VARARGS, NULL},
87215 { (
char *)
"IndexBinaryHNSW_search", _wrap_IndexBinaryHNSW_search, METH_VARARGS, NULL},
87216 { (
char *)
"IndexBinaryHNSW_reconstruct", _wrap_IndexBinaryHNSW_reconstruct, METH_VARARGS, NULL},
87217 { (
char *)
"IndexBinaryHNSW_reset", _wrap_IndexBinaryHNSW_reset, METH_VARARGS, NULL},
87218 { (
char *)
"IndexBinaryHNSW_swigregister", IndexBinaryHNSW_swigregister, METH_VARARGS, NULL},
87219 { (
char *)
"IndexIDMap_index_set", _wrap_IndexIDMap_index_set, METH_VARARGS, NULL},
87220 { (
char *)
"IndexIDMap_index_get", _wrap_IndexIDMap_index_get, METH_VARARGS, NULL},
87221 { (
char *)
"IndexIDMap_own_fields_set", _wrap_IndexIDMap_own_fields_set, METH_VARARGS, NULL},
87222 { (
char *)
"IndexIDMap_own_fields_get", _wrap_IndexIDMap_own_fields_get, METH_VARARGS, NULL},
87223 { (
char *)
"IndexIDMap_id_map_set", _wrap_IndexIDMap_id_map_set, METH_VARARGS, NULL},
87224 { (
char *)
"IndexIDMap_id_map_get", _wrap_IndexIDMap_id_map_get, METH_VARARGS, NULL},
87225 { (
char *)
"IndexIDMap_add_with_ids", _wrap_IndexIDMap_add_with_ids, METH_VARARGS, NULL},
87226 { (
char *)
"IndexIDMap_add", _wrap_IndexIDMap_add, METH_VARARGS, NULL},
87227 { (
char *)
"IndexIDMap_search", _wrap_IndexIDMap_search, METH_VARARGS, NULL},
87228 { (
char *)
"IndexIDMap_train", _wrap_IndexIDMap_train, METH_VARARGS, NULL},
87229 { (
char *)
"IndexIDMap_reset", _wrap_IndexIDMap_reset, METH_VARARGS, NULL},
87230 { (
char *)
"IndexIDMap_remove_ids", _wrap_IndexIDMap_remove_ids, METH_VARARGS, NULL},
87231 { (
char *)
"IndexIDMap_range_search", _wrap_IndexIDMap_range_search, METH_VARARGS, NULL},
87232 { (
char *)
"delete_IndexIDMap", _wrap_delete_IndexIDMap, METH_VARARGS, NULL},
87233 { (
char *)
"new_IndexIDMap", _wrap_new_IndexIDMap, METH_VARARGS, NULL},
87234 { (
char *)
"IndexIDMap_swigregister", IndexIDMap_swigregister, METH_VARARGS, NULL},
87235 { (
char *)
"IndexIDMap2_rev_map_set", _wrap_IndexIDMap2_rev_map_set, METH_VARARGS, NULL},
87236 { (
char *)
"IndexIDMap2_rev_map_get", _wrap_IndexIDMap2_rev_map_get, METH_VARARGS, NULL},
87237 { (
char *)
"IndexIDMap2_construct_rev_map", _wrap_IndexIDMap2_construct_rev_map, METH_VARARGS, NULL},
87238 { (
char *)
"IndexIDMap2_add_with_ids", _wrap_IndexIDMap2_add_with_ids, METH_VARARGS, NULL},
87239 { (
char *)
"IndexIDMap2_remove_ids", _wrap_IndexIDMap2_remove_ids, METH_VARARGS, NULL},
87240 { (
char *)
"IndexIDMap2_reconstruct", _wrap_IndexIDMap2_reconstruct, METH_VARARGS, NULL},
87241 { (
char *)
"delete_IndexIDMap2", _wrap_delete_IndexIDMap2, METH_VARARGS, NULL},
87242 { (
char *)
"new_IndexIDMap2", _wrap_new_IndexIDMap2, METH_VARARGS, NULL},
87243 { (
char *)
"IndexIDMap2_swigregister", IndexIDMap2_swigregister, METH_VARARGS, NULL},
87244 { (
char *)
"IndexShards_shard_indexes_set", _wrap_IndexShards_shard_indexes_set, METH_VARARGS, NULL},
87245 { (
char *)
"IndexShards_shard_indexes_get", _wrap_IndexShards_shard_indexes_get, METH_VARARGS, NULL},
87246 { (
char *)
"IndexShards_own_fields_set", _wrap_IndexShards_own_fields_set, METH_VARARGS, NULL},
87247 { (
char *)
"IndexShards_own_fields_get", _wrap_IndexShards_own_fields_get, METH_VARARGS, NULL},
87248 { (
char *)
"IndexShards_threaded_set", _wrap_IndexShards_threaded_set, METH_VARARGS, NULL},
87249 { (
char *)
"IndexShards_threaded_get", _wrap_IndexShards_threaded_get, METH_VARARGS, NULL},
87250 { (
char *)
"IndexShards_successive_ids_set", _wrap_IndexShards_successive_ids_set, METH_VARARGS, NULL},
87251 { (
char *)
"IndexShards_successive_ids_get", _wrap_IndexShards_successive_ids_get, METH_VARARGS, NULL},
87252 { (
char *)
"new_IndexShards", _wrap_new_IndexShards, METH_VARARGS, NULL},
87253 { (
char *)
"IndexShards_add_shard", _wrap_IndexShards_add_shard, METH_VARARGS, NULL},
87254 { (
char *)
"IndexShards_sync_with_shard_indexes", _wrap_IndexShards_sync_with_shard_indexes, METH_VARARGS, NULL},
87255 { (
char *)
"IndexShards_at", _wrap_IndexShards_at, METH_VARARGS, NULL},
87256 { (
char *)
"IndexShards_add", _wrap_IndexShards_add, METH_VARARGS, NULL},
87257 { (
char *)
"IndexShards_add_with_ids", _wrap_IndexShards_add_with_ids, METH_VARARGS, NULL},
87258 { (
char *)
"IndexShards_search", _wrap_IndexShards_search, METH_VARARGS, NULL},
87259 { (
char *)
"IndexShards_train", _wrap_IndexShards_train, METH_VARARGS, NULL},
87260 { (
char *)
"IndexShards_reset", _wrap_IndexShards_reset, METH_VARARGS, NULL},
87261 { (
char *)
"delete_IndexShards", _wrap_delete_IndexShards, METH_VARARGS, NULL},
87262 { (
char *)
"IndexShards_swigregister", IndexShards_swigregister, METH_VARARGS, NULL},
87263 { (
char *)
"IndexSplitVectors_own_fields_set", _wrap_IndexSplitVectors_own_fields_set, METH_VARARGS, NULL},
87264 { (
char *)
"IndexSplitVectors_own_fields_get", _wrap_IndexSplitVectors_own_fields_get, METH_VARARGS, NULL},
87265 { (
char *)
"IndexSplitVectors_threaded_set", _wrap_IndexSplitVectors_threaded_set, METH_VARARGS, NULL},
87266 { (
char *)
"IndexSplitVectors_threaded_get", _wrap_IndexSplitVectors_threaded_get, METH_VARARGS, NULL},
87267 { (
char *)
"IndexSplitVectors_sub_indexes_set", _wrap_IndexSplitVectors_sub_indexes_set, METH_VARARGS, NULL},
87268 { (
char *)
"IndexSplitVectors_sub_indexes_get", _wrap_IndexSplitVectors_sub_indexes_get, METH_VARARGS, NULL},
87269 { (
char *)
"IndexSplitVectors_sum_d_set", _wrap_IndexSplitVectors_sum_d_set, METH_VARARGS, NULL},
87270 { (
char *)
"IndexSplitVectors_sum_d_get", _wrap_IndexSplitVectors_sum_d_get, METH_VARARGS, NULL},
87271 { (
char *)
"new_IndexSplitVectors", _wrap_new_IndexSplitVectors, METH_VARARGS, NULL},
87272 { (
char *)
"IndexSplitVectors_add_sub_index", _wrap_IndexSplitVectors_add_sub_index, METH_VARARGS, NULL},
87273 { (
char *)
"IndexSplitVectors_sync_with_sub_indexes", _wrap_IndexSplitVectors_sync_with_sub_indexes, METH_VARARGS, NULL},
87274 { (
char *)
"IndexSplitVectors_add", _wrap_IndexSplitVectors_add, METH_VARARGS, NULL},
87275 { (
char *)
"IndexSplitVectors_search", _wrap_IndexSplitVectors_search, METH_VARARGS, NULL},
87276 { (
char *)
"IndexSplitVectors_train", _wrap_IndexSplitVectors_train, METH_VARARGS, NULL},
87277 { (
char *)
"IndexSplitVectors_reset", _wrap_IndexSplitVectors_reset, METH_VARARGS, NULL},
87278 { (
char *)
"delete_IndexSplitVectors", _wrap_delete_IndexSplitVectors, METH_VARARGS, NULL},
87279 { (
char *)
"IndexSplitVectors_swigregister", IndexSplitVectors_swigregister, METH_VARARGS, NULL},
87280 { (
char *)
"new_GpuClonerOptions", _wrap_new_GpuClonerOptions, METH_VARARGS, NULL},
87281 { (
char *)
"GpuClonerOptions_indicesOptions_set", _wrap_GpuClonerOptions_indicesOptions_set, METH_VARARGS, NULL},
87282 { (
char *)
"GpuClonerOptions_indicesOptions_get", _wrap_GpuClonerOptions_indicesOptions_get, METH_VARARGS, NULL},
87283 { (
char *)
"GpuClonerOptions_useFloat16CoarseQuantizer_set", _wrap_GpuClonerOptions_useFloat16CoarseQuantizer_set, METH_VARARGS, NULL},
87284 { (
char *)
"GpuClonerOptions_useFloat16CoarseQuantizer_get", _wrap_GpuClonerOptions_useFloat16CoarseQuantizer_get, METH_VARARGS, NULL},
87285 { (
char *)
"GpuClonerOptions_useFloat16_set", _wrap_GpuClonerOptions_useFloat16_set, METH_VARARGS, NULL},
87286 { (
char *)
"GpuClonerOptions_useFloat16_get", _wrap_GpuClonerOptions_useFloat16_get, METH_VARARGS, NULL},
87287 { (
char *)
"GpuClonerOptions_usePrecomputed_set", _wrap_GpuClonerOptions_usePrecomputed_set, METH_VARARGS, NULL},
87288 { (
char *)
"GpuClonerOptions_usePrecomputed_get", _wrap_GpuClonerOptions_usePrecomputed_get, METH_VARARGS, NULL},
87289 { (
char *)
"GpuClonerOptions_reserveVecs_set", _wrap_GpuClonerOptions_reserveVecs_set, METH_VARARGS, NULL},
87290 { (
char *)
"GpuClonerOptions_reserveVecs_get", _wrap_GpuClonerOptions_reserveVecs_get, METH_VARARGS, NULL},
87291 { (
char *)
"GpuClonerOptions_storeTransposed_set", _wrap_GpuClonerOptions_storeTransposed_set, METH_VARARGS, NULL},
87292 { (
char *)
"GpuClonerOptions_storeTransposed_get", _wrap_GpuClonerOptions_storeTransposed_get, METH_VARARGS, NULL},
87293 { (
char *)
"GpuClonerOptions_verbose_set", _wrap_GpuClonerOptions_verbose_set, METH_VARARGS, NULL},
87294 { (
char *)
"GpuClonerOptions_verbose_get", _wrap_GpuClonerOptions_verbose_get, METH_VARARGS, NULL},
87295 { (
char *)
"delete_GpuClonerOptions", _wrap_delete_GpuClonerOptions, METH_VARARGS, NULL},
87296 { (
char *)
"GpuClonerOptions_swigregister", GpuClonerOptions_swigregister, METH_VARARGS, NULL},
87297 { (
char *)
"new_GpuMultipleClonerOptions", _wrap_new_GpuMultipleClonerOptions, METH_VARARGS, NULL},
87298 { (
char *)
"GpuMultipleClonerOptions_shard_set", _wrap_GpuMultipleClonerOptions_shard_set, METH_VARARGS, NULL},
87299 { (
char *)
"GpuMultipleClonerOptions_shard_get", _wrap_GpuMultipleClonerOptions_shard_get, METH_VARARGS, NULL},
87300 { (
char *)
"GpuMultipleClonerOptions_shard_type_set", _wrap_GpuMultipleClonerOptions_shard_type_set, METH_VARARGS, NULL},
87301 { (
char *)
"GpuMultipleClonerOptions_shard_type_get", _wrap_GpuMultipleClonerOptions_shard_type_get, METH_VARARGS, NULL},
87302 { (
char *)
"delete_GpuMultipleClonerOptions", _wrap_delete_GpuMultipleClonerOptions, METH_VARARGS, NULL},
87303 { (
char *)
"GpuMultipleClonerOptions_swigregister", GpuMultipleClonerOptions_swigregister, METH_VARARGS, NULL},
87304 { (
char *)
"allocMemorySpace", _wrap_allocMemorySpace, METH_VARARGS, NULL},
87305 { (
char *)
"new_GpuIndexConfig", _wrap_new_GpuIndexConfig, METH_VARARGS, NULL},
87306 { (
char *)
"GpuIndexConfig_device_set", _wrap_GpuIndexConfig_device_set, METH_VARARGS, NULL},
87307 { (
char *)
"GpuIndexConfig_device_get", _wrap_GpuIndexConfig_device_get, METH_VARARGS, NULL},
87308 { (
char *)
"GpuIndexConfig_memorySpace_set", _wrap_GpuIndexConfig_memorySpace_set, METH_VARARGS, NULL},
87309 { (
char *)
"GpuIndexConfig_memorySpace_get", _wrap_GpuIndexConfig_memorySpace_get, METH_VARARGS, NULL},
87310 { (
char *)
"delete_GpuIndexConfig", _wrap_delete_GpuIndexConfig, METH_VARARGS, NULL},
87311 { (
char *)
"GpuIndexConfig_swigregister", GpuIndexConfig_swigregister, METH_VARARGS, NULL},
87312 { (
char *)
"GpuIndex_getDevice", _wrap_GpuIndex_getDevice, METH_VARARGS, NULL},
87313 { (
char *)
"GpuIndex_getResources", _wrap_GpuIndex_getResources, METH_VARARGS, NULL},
87314 { (
char *)
"GpuIndex_add", _wrap_GpuIndex_add, METH_VARARGS, NULL},
87315 { (
char *)
"GpuIndex_add_with_ids", _wrap_GpuIndex_add_with_ids, METH_VARARGS, NULL},
87316 { (
char *)
"GpuIndex_search", _wrap_GpuIndex_search, METH_VARARGS, NULL},
87317 { (
char *)
"delete_GpuIndex", _wrap_delete_GpuIndex, METH_VARARGS, NULL},
87318 { (
char *)
"GpuIndex_swigregister", GpuIndex_swigregister, METH_VARARGS, NULL},
87319 { (
char *)
"new_GpuIndexFlatConfig", _wrap_new_GpuIndexFlatConfig, METH_VARARGS, NULL},
87320 { (
char *)
"GpuIndexFlatConfig_useFloat16_set", _wrap_GpuIndexFlatConfig_useFloat16_set, METH_VARARGS, NULL},
87321 { (
char *)
"GpuIndexFlatConfig_useFloat16_get", _wrap_GpuIndexFlatConfig_useFloat16_get, METH_VARARGS, NULL},
87322 { (
char *)
"GpuIndexFlatConfig_useFloat16Accumulator_set", _wrap_GpuIndexFlatConfig_useFloat16Accumulator_set, METH_VARARGS, NULL},
87323 { (
char *)
"GpuIndexFlatConfig_useFloat16Accumulator_get", _wrap_GpuIndexFlatConfig_useFloat16Accumulator_get, METH_VARARGS, NULL},
87324 { (
char *)
"GpuIndexFlatConfig_storeTransposed_set", _wrap_GpuIndexFlatConfig_storeTransposed_set, METH_VARARGS, NULL},
87325 { (
char *)
"GpuIndexFlatConfig_storeTransposed_get", _wrap_GpuIndexFlatConfig_storeTransposed_get, METH_VARARGS, NULL},
87326 { (
char *)
"delete_GpuIndexFlatConfig", _wrap_delete_GpuIndexFlatConfig, METH_VARARGS, NULL},
87327 { (
char *)
"GpuIndexFlatConfig_swigregister", GpuIndexFlatConfig_swigregister, METH_VARARGS, NULL},
87328 { (
char *)
"new_GpuIndexFlat", _wrap_new_GpuIndexFlat, METH_VARARGS, NULL},
87329 { (
char *)
"delete_GpuIndexFlat", _wrap_delete_GpuIndexFlat, METH_VARARGS, NULL},
87330 { (
char *)
"GpuIndexFlat_setMinPagingSize", _wrap_GpuIndexFlat_setMinPagingSize, METH_VARARGS, NULL},
87331 { (
char *)
"GpuIndexFlat_getMinPagingSize", _wrap_GpuIndexFlat_getMinPagingSize, METH_VARARGS, NULL},
87332 { (
char *)
"GpuIndexFlat_copyFrom", _wrap_GpuIndexFlat_copyFrom, METH_VARARGS, NULL},
87333 { (
char *)
"GpuIndexFlat_copyTo", _wrap_GpuIndexFlat_copyTo, METH_VARARGS, NULL},
87334 { (
char *)
"GpuIndexFlat_getNumVecs", _wrap_GpuIndexFlat_getNumVecs, METH_VARARGS, NULL},
87335 { (
char *)
"GpuIndexFlat_reset", _wrap_GpuIndexFlat_reset, METH_VARARGS, NULL},
87336 { (
char *)
"GpuIndexFlat_train", _wrap_GpuIndexFlat_train, METH_VARARGS, NULL},
87337 { (
char *)
"GpuIndexFlat_add", _wrap_GpuIndexFlat_add, METH_VARARGS, NULL},
87338 { (
char *)
"GpuIndexFlat_search", _wrap_GpuIndexFlat_search, METH_VARARGS, NULL},
87339 { (
char *)
"GpuIndexFlat_reconstruct", _wrap_GpuIndexFlat_reconstruct, METH_VARARGS, NULL},
87340 { (
char *)
"GpuIndexFlat_reconstruct_n", _wrap_GpuIndexFlat_reconstruct_n, METH_VARARGS, NULL},
87341 { (
char *)
"GpuIndexFlat_getGpuData", _wrap_GpuIndexFlat_getGpuData, METH_VARARGS, NULL},
87342 { (
char *)
"GpuIndexFlat_swigregister", GpuIndexFlat_swigregister, METH_VARARGS, NULL},
87343 { (
char *)
"new_GpuIndexFlatL2", _wrap_new_GpuIndexFlatL2, METH_VARARGS, NULL},
87344 { (
char *)
"GpuIndexFlatL2_copyFrom", _wrap_GpuIndexFlatL2_copyFrom, METH_VARARGS, NULL},
87345 { (
char *)
"GpuIndexFlatL2_copyTo", _wrap_GpuIndexFlatL2_copyTo, METH_VARARGS, NULL},
87346 { (
char *)
"delete_GpuIndexFlatL2", _wrap_delete_GpuIndexFlatL2, METH_VARARGS, NULL},
87347 { (
char *)
"GpuIndexFlatL2_swigregister", GpuIndexFlatL2_swigregister, METH_VARARGS, NULL},
87348 { (
char *)
"new_GpuIndexFlatIP", _wrap_new_GpuIndexFlatIP, METH_VARARGS, NULL},
87349 { (
char *)
"GpuIndexFlatIP_copyFrom", _wrap_GpuIndexFlatIP_copyFrom, METH_VARARGS, NULL},
87350 { (
char *)
"GpuIndexFlatIP_copyTo", _wrap_GpuIndexFlatIP_copyTo, METH_VARARGS, NULL},
87351 { (
char *)
"delete_GpuIndexFlatIP", _wrap_delete_GpuIndexFlatIP, METH_VARARGS, NULL},
87352 { (
char *)
"GpuIndexFlatIP_swigregister", GpuIndexFlatIP_swigregister, METH_VARARGS, NULL},
87353 { (
char *)
"new_GpuIndexIVFConfig", _wrap_new_GpuIndexIVFConfig, METH_VARARGS, NULL},
87354 { (
char *)
"GpuIndexIVFConfig_indicesOptions_set", _wrap_GpuIndexIVFConfig_indicesOptions_set, METH_VARARGS, NULL},
87355 { (
char *)
"GpuIndexIVFConfig_indicesOptions_get", _wrap_GpuIndexIVFConfig_indicesOptions_get, METH_VARARGS, NULL},
87356 { (
char *)
"GpuIndexIVFConfig_flatConfig_set", _wrap_GpuIndexIVFConfig_flatConfig_set, METH_VARARGS, NULL},
87357 { (
char *)
"GpuIndexIVFConfig_flatConfig_get", _wrap_GpuIndexIVFConfig_flatConfig_get, METH_VARARGS, NULL},
87358 { (
char *)
"delete_GpuIndexIVFConfig", _wrap_delete_GpuIndexIVFConfig, METH_VARARGS, NULL},
87359 { (
char *)
"GpuIndexIVFConfig_swigregister", GpuIndexIVFConfig_swigregister, METH_VARARGS, NULL},
87360 { (
char *)
"delete_GpuIndexIVF", _wrap_delete_GpuIndexIVF, METH_VARARGS, NULL},
87361 { (
char *)
"GpuIndexIVF_copyFrom", _wrap_GpuIndexIVF_copyFrom, METH_VARARGS, NULL},
87362 { (
char *)
"GpuIndexIVF_copyTo", _wrap_GpuIndexIVF_copyTo, METH_VARARGS, NULL},
87363 { (
char *)
"GpuIndexIVF_getNumLists", _wrap_GpuIndexIVF_getNumLists, METH_VARARGS, NULL},
87364 { (
char *)
"GpuIndexIVF_getQuantizer", _wrap_GpuIndexIVF_getQuantizer, METH_VARARGS, NULL},
87365 { (
char *)
"GpuIndexIVF_setNumProbes", _wrap_GpuIndexIVF_setNumProbes, METH_VARARGS, NULL},
87366 { (
char *)
"GpuIndexIVF_getNumProbes", _wrap_GpuIndexIVF_getNumProbes, METH_VARARGS, NULL},
87367 { (
char *)
"GpuIndexIVF_add", _wrap_GpuIndexIVF_add, METH_VARARGS, NULL},
87368 { (
char *)
"GpuIndexIVF_cp_set", _wrap_GpuIndexIVF_cp_set, METH_VARARGS, NULL},
87369 { (
char *)
"GpuIndexIVF_cp_get", _wrap_GpuIndexIVF_cp_get, METH_VARARGS, NULL},
87370 { (
char *)
"GpuIndexIVF_swigregister", GpuIndexIVF_swigregister, METH_VARARGS, NULL},
87371 { (
char *)
"new_GpuIndexIVFPQConfig", _wrap_new_GpuIndexIVFPQConfig, METH_VARARGS, NULL},
87372 { (
char *)
"GpuIndexIVFPQConfig_useFloat16LookupTables_set", _wrap_GpuIndexIVFPQConfig_useFloat16LookupTables_set, METH_VARARGS, NULL},
87373 { (
char *)
"GpuIndexIVFPQConfig_useFloat16LookupTables_get", _wrap_GpuIndexIVFPQConfig_useFloat16LookupTables_get, METH_VARARGS, NULL},
87374 { (
char *)
"GpuIndexIVFPQConfig_usePrecomputedTables_set", _wrap_GpuIndexIVFPQConfig_usePrecomputedTables_set, METH_VARARGS, NULL},
87375 { (
char *)
"GpuIndexIVFPQConfig_usePrecomputedTables_get", _wrap_GpuIndexIVFPQConfig_usePrecomputedTables_get, METH_VARARGS, NULL},
87376 { (
char *)
"delete_GpuIndexIVFPQConfig", _wrap_delete_GpuIndexIVFPQConfig, METH_VARARGS, NULL},
87377 { (
char *)
"GpuIndexIVFPQConfig_swigregister", GpuIndexIVFPQConfig_swigregister, METH_VARARGS, NULL},
87378 { (
char *)
"new_GpuIndexIVFPQ", _wrap_new_GpuIndexIVFPQ, METH_VARARGS, NULL},
87379 { (
char *)
"delete_GpuIndexIVFPQ", _wrap_delete_GpuIndexIVFPQ, METH_VARARGS, NULL},
87380 { (
char *)
"GpuIndexIVFPQ_copyFrom", _wrap_GpuIndexIVFPQ_copyFrom, METH_VARARGS, NULL},
87381 { (
char *)
"GpuIndexIVFPQ_copyTo", _wrap_GpuIndexIVFPQ_copyTo, METH_VARARGS, NULL},
87382 { (
char *)
"GpuIndexIVFPQ_reserveMemory", _wrap_GpuIndexIVFPQ_reserveMemory, METH_VARARGS, NULL},
87383 { (
char *)
"GpuIndexIVFPQ_setPrecomputedCodes", _wrap_GpuIndexIVFPQ_setPrecomputedCodes, METH_VARARGS, NULL},
87384 { (
char *)
"GpuIndexIVFPQ_getPrecomputedCodes", _wrap_GpuIndexIVFPQ_getPrecomputedCodes, METH_VARARGS, NULL},
87385 { (
char *)
"GpuIndexIVFPQ_getNumSubQuantizers", _wrap_GpuIndexIVFPQ_getNumSubQuantizers, METH_VARARGS, NULL},
87386 { (
char *)
"GpuIndexIVFPQ_getBitsPerCode", _wrap_GpuIndexIVFPQ_getBitsPerCode, METH_VARARGS, NULL},
87387 { (
char *)
"GpuIndexIVFPQ_getCentroidsPerSubQuantizer", _wrap_GpuIndexIVFPQ_getCentroidsPerSubQuantizer, METH_VARARGS, NULL},
87388 { (
char *)
"GpuIndexIVFPQ_reclaimMemory", _wrap_GpuIndexIVFPQ_reclaimMemory, METH_VARARGS, NULL},
87389 { (
char *)
"GpuIndexIVFPQ_reset", _wrap_GpuIndexIVFPQ_reset, METH_VARARGS, NULL},
87390 { (
char *)
"GpuIndexIVFPQ_train", _wrap_GpuIndexIVFPQ_train, METH_VARARGS, NULL},
87391 { (
char *)
"GpuIndexIVFPQ_getListLength", _wrap_GpuIndexIVFPQ_getListLength, METH_VARARGS, NULL},
87392 { (
char *)
"GpuIndexIVFPQ_getListCodes", _wrap_GpuIndexIVFPQ_getListCodes, METH_VARARGS, NULL},
87393 { (
char *)
"GpuIndexIVFPQ_getListIndices", _wrap_GpuIndexIVFPQ_getListIndices, METH_VARARGS, NULL},
87394 { (
char *)
"GpuIndexIVFPQ_swigregister", GpuIndexIVFPQ_swigregister, METH_VARARGS, NULL},
87395 { (
char *)
"new_GpuIndexIVFFlatConfig", _wrap_new_GpuIndexIVFFlatConfig, METH_VARARGS, NULL},
87396 { (
char *)
"GpuIndexIVFFlatConfig_useFloat16IVFStorage_set", _wrap_GpuIndexIVFFlatConfig_useFloat16IVFStorage_set, METH_VARARGS, NULL},
87397 { (
char *)
"GpuIndexIVFFlatConfig_useFloat16IVFStorage_get", _wrap_GpuIndexIVFFlatConfig_useFloat16IVFStorage_get, METH_VARARGS, NULL},
87398 { (
char *)
"delete_GpuIndexIVFFlatConfig", _wrap_delete_GpuIndexIVFFlatConfig, METH_VARARGS, NULL},
87399 { (
char *)
"GpuIndexIVFFlatConfig_swigregister", GpuIndexIVFFlatConfig_swigregister, METH_VARARGS, NULL},
87400 { (
char *)
"new_GpuIndexIVFFlat", _wrap_new_GpuIndexIVFFlat, METH_VARARGS, NULL},
87401 { (
char *)
"delete_GpuIndexIVFFlat", _wrap_delete_GpuIndexIVFFlat, METH_VARARGS, NULL},
87402 { (
char *)
"GpuIndexIVFFlat_reserveMemory", _wrap_GpuIndexIVFFlat_reserveMemory, METH_VARARGS, NULL},
87403 { (
char *)
"GpuIndexIVFFlat_copyFrom", _wrap_GpuIndexIVFFlat_copyFrom, METH_VARARGS, NULL},
87404 { (
char *)
"GpuIndexIVFFlat_copyTo", _wrap_GpuIndexIVFFlat_copyTo, METH_VARARGS, NULL},
87405 { (
char *)
"GpuIndexIVFFlat_reclaimMemory", _wrap_GpuIndexIVFFlat_reclaimMemory, METH_VARARGS, NULL},
87406 { (
char *)
"GpuIndexIVFFlat_reset", _wrap_GpuIndexIVFFlat_reset, METH_VARARGS, NULL},
87407 { (
char *)
"GpuIndexIVFFlat_train", _wrap_GpuIndexIVFFlat_train, METH_VARARGS, NULL},
87408 { (
char *)
"GpuIndexIVFFlat_swigregister", GpuIndexIVFFlat_swigregister, METH_VARARGS, NULL},
87409 { (
char *)
"new_GpuIndexBinaryFlatConfig", _wrap_new_GpuIndexBinaryFlatConfig, METH_VARARGS, NULL},
87410 { (
char *)
"delete_GpuIndexBinaryFlatConfig", _wrap_delete_GpuIndexBinaryFlatConfig, METH_VARARGS, NULL},
87411 { (
char *)
"GpuIndexBinaryFlatConfig_swigregister", GpuIndexBinaryFlatConfig_swigregister, METH_VARARGS, NULL},
87412 { (
char *)
"new_GpuIndexBinaryFlat", _wrap_new_GpuIndexBinaryFlat, METH_VARARGS, NULL},
87413 { (
char *)
"delete_GpuIndexBinaryFlat", _wrap_delete_GpuIndexBinaryFlat, METH_VARARGS, NULL},
87414 { (
char *)
"GpuIndexBinaryFlat_copyFrom", _wrap_GpuIndexBinaryFlat_copyFrom, METH_VARARGS, NULL},
87415 { (
char *)
"GpuIndexBinaryFlat_copyTo", _wrap_GpuIndexBinaryFlat_copyTo, METH_VARARGS, NULL},
87416 { (
char *)
"GpuIndexBinaryFlat_add", _wrap_GpuIndexBinaryFlat_add, METH_VARARGS, NULL},
87417 { (
char *)
"GpuIndexBinaryFlat_reset", _wrap_GpuIndexBinaryFlat_reset, METH_VARARGS, NULL},
87418 { (
char *)
"GpuIndexBinaryFlat_search", _wrap_GpuIndexBinaryFlat_search, METH_VARARGS, NULL},
87419 { (
char *)
"GpuIndexBinaryFlat_reconstruct", _wrap_GpuIndexBinaryFlat_reconstruct, METH_VARARGS, NULL},
87420 { (
char *)
"GpuIndexBinaryFlat_swigregister", GpuIndexBinaryFlat_swigregister, METH_VARARGS, NULL},
87421 { (
char *)
"new_IndexProxy", _wrap_new_IndexProxy, METH_VARARGS, NULL},
87422 { (
char *)
"delete_IndexProxy", _wrap_delete_IndexProxy, METH_VARARGS, NULL},
87423 { (
char *)
"IndexProxy_addIndex", _wrap_IndexProxy_addIndex, METH_VARARGS, NULL},
87424 { (
char *)
"IndexProxy_removeIndex", _wrap_IndexProxy_removeIndex, METH_VARARGS, NULL},
87425 { (
char *)
"IndexProxy_runOnIndex", _wrap_IndexProxy_runOnIndex, METH_VARARGS, NULL},
87426 { (
char *)
"IndexProxy_reset", _wrap_IndexProxy_reset, METH_VARARGS, NULL},
87427 { (
char *)
"IndexProxy_train", _wrap_IndexProxy_train, METH_VARARGS, NULL},
87428 { (
char *)
"IndexProxy_add", _wrap_IndexProxy_add, METH_VARARGS, NULL},
87429 { (
char *)
"IndexProxy_search", _wrap_IndexProxy_search, METH_VARARGS, NULL},
87430 { (
char *)
"IndexProxy_reconstruct", _wrap_IndexProxy_reconstruct, METH_VARARGS, NULL},
87431 { (
char *)
"IndexProxy_own_fields_set", _wrap_IndexProxy_own_fields_set, METH_VARARGS, NULL},
87432 { (
char *)
"IndexProxy_own_fields_get", _wrap_IndexProxy_own_fields_get, METH_VARARGS, NULL},
87433 { (
char *)
"IndexProxy_count", _wrap_IndexProxy_count, METH_VARARGS, NULL},
87434 { (
char *)
"IndexProxy_at", _wrap_IndexProxy_at, METH_VARARGS, NULL},
87435 { (
char *)
"IndexProxy_swigregister", IndexProxy_swigregister, METH_VARARGS, NULL},
87436 { (
char *)
"kmeans_clustering_gpu", _wrap_kmeans_clustering_gpu, METH_VARARGS, NULL},
87437 { (
char *)
"bruteForceKnn", _wrap_bruteForceKnn, METH_VARARGS, NULL},
87438 { (
char *)
"downcast_index", _wrap_downcast_index, METH_VARARGS, NULL},
87439 { (
char *)
"downcast_VectorTransform", _wrap_downcast_VectorTransform, METH_VARARGS, NULL},
87440 { (
char *)
"downcast_IndexBinary", _wrap_downcast_IndexBinary, METH_VARARGS, NULL},
87441 { (
char *)
"write_index", _wrap_write_index, METH_VARARGS, NULL},
87442 { (
char *)
"write_index_binary", _wrap_write_index_binary, METH_VARARGS, NULL},
87443 { (
char *)
"read_index", _wrap_read_index, METH_VARARGS, NULL},
87444 { (
char *)
"read_index_binary", _wrap_read_index_binary, METH_VARARGS, NULL},
87445 { (
char *)
"write_VectorTransform", _wrap_write_VectorTransform, METH_VARARGS, NULL},
87446 { (
char *)
"read_VectorTransform", _wrap_read_VectorTransform, METH_VARARGS, NULL},
87447 { (
char *)
"read_ProductQuantizer", _wrap_read_ProductQuantizer, METH_VARARGS, NULL},
87448 { (
char *)
"write_ProductQuantizer", _wrap_write_ProductQuantizer, METH_VARARGS, NULL},
87449 { (
char *)
"write_InvertedLists", _wrap_write_InvertedLists, METH_VARARGS, NULL},
87450 { (
char *)
"read_InvertedLists", _wrap_read_InvertedLists, METH_VARARGS, NULL},
87451 { (
char *)
"clone_index", _wrap_clone_index, METH_VARARGS, NULL},
87452 { (
char *)
"Cloner_clone_VectorTransform", _wrap_Cloner_clone_VectorTransform, METH_VARARGS, NULL},
87453 { (
char *)
"Cloner_clone_Index", _wrap_Cloner_clone_Index, METH_VARARGS, NULL},
87454 { (
char *)
"Cloner_clone_IndexIVF", _wrap_Cloner_clone_IndexIVF, METH_VARARGS, NULL},
87455 { (
char *)
"delete_Cloner", _wrap_delete_Cloner, METH_VARARGS, NULL},
87456 { (
char *)
"new_Cloner", _wrap_new_Cloner, METH_VARARGS, NULL},
87457 { (
char *)
"Cloner_swigregister", Cloner_swigregister, METH_VARARGS, NULL},
87458 { (
char *)
"AutoTuneCriterion_nq_set", _wrap_AutoTuneCriterion_nq_set, METH_VARARGS, NULL},
87459 { (
char *)
"AutoTuneCriterion_nq_get", _wrap_AutoTuneCriterion_nq_get, METH_VARARGS, NULL},
87460 { (
char *)
"AutoTuneCriterion_nnn_set", _wrap_AutoTuneCriterion_nnn_set, METH_VARARGS, NULL},
87461 { (
char *)
"AutoTuneCriterion_nnn_get", _wrap_AutoTuneCriterion_nnn_get, METH_VARARGS, NULL},
87462 { (
char *)
"AutoTuneCriterion_gt_nnn_set", _wrap_AutoTuneCriterion_gt_nnn_set, METH_VARARGS, NULL},
87463 { (
char *)
"AutoTuneCriterion_gt_nnn_get", _wrap_AutoTuneCriterion_gt_nnn_get, METH_VARARGS, NULL},
87464 { (
char *)
"AutoTuneCriterion_gt_D_set", _wrap_AutoTuneCriterion_gt_D_set, METH_VARARGS, NULL},
87465 { (
char *)
"AutoTuneCriterion_gt_D_get", _wrap_AutoTuneCriterion_gt_D_get, METH_VARARGS, NULL},
87466 { (
char *)
"AutoTuneCriterion_gt_I_set", _wrap_AutoTuneCriterion_gt_I_set, METH_VARARGS, NULL},
87467 { (
char *)
"AutoTuneCriterion_gt_I_get", _wrap_AutoTuneCriterion_gt_I_get, METH_VARARGS, NULL},
87468 { (
char *)
"AutoTuneCriterion_set_groundtruth", _wrap_AutoTuneCriterion_set_groundtruth, METH_VARARGS, NULL},
87469 { (
char *)
"AutoTuneCriterion_evaluate", _wrap_AutoTuneCriterion_evaluate, METH_VARARGS, NULL},
87470 { (
char *)
"delete_AutoTuneCriterion", _wrap_delete_AutoTuneCriterion, METH_VARARGS, NULL},
87471 { (
char *)
"AutoTuneCriterion_swigregister", AutoTuneCriterion_swigregister, METH_VARARGS, NULL},
87472 { (
char *)
"OneRecallAtRCriterion_R_set", _wrap_OneRecallAtRCriterion_R_set, METH_VARARGS, NULL},
87473 { (
char *)
"OneRecallAtRCriterion_R_get", _wrap_OneRecallAtRCriterion_R_get, METH_VARARGS, NULL},
87474 { (
char *)
"new_OneRecallAtRCriterion", _wrap_new_OneRecallAtRCriterion, METH_VARARGS, NULL},
87475 { (
char *)
"OneRecallAtRCriterion_evaluate", _wrap_OneRecallAtRCriterion_evaluate, METH_VARARGS, NULL},
87476 { (
char *)
"delete_OneRecallAtRCriterion", _wrap_delete_OneRecallAtRCriterion, METH_VARARGS, NULL},
87477 { (
char *)
"OneRecallAtRCriterion_swigregister", OneRecallAtRCriterion_swigregister, METH_VARARGS, NULL},
87478 { (
char *)
"IntersectionCriterion_R_set", _wrap_IntersectionCriterion_R_set, METH_VARARGS, NULL},
87479 { (
char *)
"IntersectionCriterion_R_get", _wrap_IntersectionCriterion_R_get, METH_VARARGS, NULL},
87480 { (
char *)
"new_IntersectionCriterion", _wrap_new_IntersectionCriterion, METH_VARARGS, NULL},
87481 { (
char *)
"IntersectionCriterion_evaluate", _wrap_IntersectionCriterion_evaluate, METH_VARARGS, NULL},
87482 { (
char *)
"delete_IntersectionCriterion", _wrap_delete_IntersectionCriterion, METH_VARARGS, NULL},
87483 { (
char *)
"IntersectionCriterion_swigregister", IntersectionCriterion_swigregister, METH_VARARGS, NULL},
87484 { (
char *)
"OperatingPoint_perf_set", _wrap_OperatingPoint_perf_set, METH_VARARGS, NULL},
87485 { (
char *)
"OperatingPoint_perf_get", _wrap_OperatingPoint_perf_get, METH_VARARGS, NULL},
87486 { (
char *)
"OperatingPoint_t_set", _wrap_OperatingPoint_t_set, METH_VARARGS, NULL},
87487 { (
char *)
"OperatingPoint_t_get", _wrap_OperatingPoint_t_get, METH_VARARGS, NULL},
87488 { (
char *)
"OperatingPoint_key_set", _wrap_OperatingPoint_key_set, METH_VARARGS, NULL},
87489 { (
char *)
"OperatingPoint_key_get", _wrap_OperatingPoint_key_get, METH_VARARGS, NULL},
87490 { (
char *)
"OperatingPoint_cno_set", _wrap_OperatingPoint_cno_set, METH_VARARGS, NULL},
87491 { (
char *)
"OperatingPoint_cno_get", _wrap_OperatingPoint_cno_get, METH_VARARGS, NULL},
87492 { (
char *)
"new_OperatingPoint", _wrap_new_OperatingPoint, METH_VARARGS, NULL},
87493 { (
char *)
"delete_OperatingPoint", _wrap_delete_OperatingPoint, METH_VARARGS, NULL},
87494 { (
char *)
"OperatingPoint_swigregister", OperatingPoint_swigregister, METH_VARARGS, NULL},
87495 { (
char *)
"OperatingPoints_all_pts_set", _wrap_OperatingPoints_all_pts_set, METH_VARARGS, NULL},
87496 { (
char *)
"OperatingPoints_all_pts_get", _wrap_OperatingPoints_all_pts_get, METH_VARARGS, NULL},
87497 { (
char *)
"OperatingPoints_optimal_pts_set", _wrap_OperatingPoints_optimal_pts_set, METH_VARARGS, NULL},
87498 { (
char *)
"OperatingPoints_optimal_pts_get", _wrap_OperatingPoints_optimal_pts_get, METH_VARARGS, NULL},
87499 { (
char *)
"new_OperatingPoints", _wrap_new_OperatingPoints, METH_VARARGS, NULL},
87500 { (
char *)
"OperatingPoints_merge_with", _wrap_OperatingPoints_merge_with, METH_VARARGS, NULL},
87501 { (
char *)
"OperatingPoints_clear", _wrap_OperatingPoints_clear, METH_VARARGS, NULL},
87502 { (
char *)
"OperatingPoints_add", _wrap_OperatingPoints_add, METH_VARARGS, NULL},
87503 { (
char *)
"OperatingPoints_t_for_perf", _wrap_OperatingPoints_t_for_perf, METH_VARARGS, NULL},
87504 { (
char *)
"OperatingPoints_display", _wrap_OperatingPoints_display, METH_VARARGS, NULL},
87505 { (
char *)
"OperatingPoints_all_to_gnuplot", _wrap_OperatingPoints_all_to_gnuplot, METH_VARARGS, NULL},
87506 { (
char *)
"OperatingPoints_optimal_to_gnuplot", _wrap_OperatingPoints_optimal_to_gnuplot, METH_VARARGS, NULL},
87507 { (
char *)
"delete_OperatingPoints", _wrap_delete_OperatingPoints, METH_VARARGS, NULL},
87508 { (
char *)
"OperatingPoints_swigregister", OperatingPoints_swigregister, METH_VARARGS, NULL},
87509 { (
char *)
"ParameterRange_name_set", _wrap_ParameterRange_name_set, METH_VARARGS, NULL},
87510 { (
char *)
"ParameterRange_name_get", _wrap_ParameterRange_name_get, METH_VARARGS, NULL},
87511 { (
char *)
"ParameterRange_values_set", _wrap_ParameterRange_values_set, METH_VARARGS, NULL},
87512 { (
char *)
"ParameterRange_values_get", _wrap_ParameterRange_values_get, METH_VARARGS, NULL},
87513 { (
char *)
"new_ParameterRange", _wrap_new_ParameterRange, METH_VARARGS, NULL},
87514 { (
char *)
"delete_ParameterRange", _wrap_delete_ParameterRange, METH_VARARGS, NULL},
87515 { (
char *)
"ParameterRange_swigregister", ParameterRange_swigregister, METH_VARARGS, NULL},
87516 { (
char *)
"ParameterSpace_parameter_ranges_set", _wrap_ParameterSpace_parameter_ranges_set, METH_VARARGS, NULL},
87517 { (
char *)
"ParameterSpace_parameter_ranges_get", _wrap_ParameterSpace_parameter_ranges_get, METH_VARARGS, NULL},
87518 { (
char *)
"ParameterSpace_verbose_set", _wrap_ParameterSpace_verbose_set, METH_VARARGS, NULL},
87519 { (
char *)
"ParameterSpace_verbose_get", _wrap_ParameterSpace_verbose_get, METH_VARARGS, NULL},
87520 { (
char *)
"ParameterSpace_n_experiments_set", _wrap_ParameterSpace_n_experiments_set, METH_VARARGS, NULL},
87521 { (
char *)
"ParameterSpace_n_experiments_get", _wrap_ParameterSpace_n_experiments_get, METH_VARARGS, NULL},
87522 { (
char *)
"ParameterSpace_batchsize_set", _wrap_ParameterSpace_batchsize_set, METH_VARARGS, NULL},
87523 { (
char *)
"ParameterSpace_batchsize_get", _wrap_ParameterSpace_batchsize_get, METH_VARARGS, NULL},
87524 { (
char *)
"ParameterSpace_thread_over_batches_set", _wrap_ParameterSpace_thread_over_batches_set, METH_VARARGS, NULL},
87525 { (
char *)
"ParameterSpace_thread_over_batches_get", _wrap_ParameterSpace_thread_over_batches_get, METH_VARARGS, NULL},
87526 { (
char *)
"ParameterSpace_min_test_duration_set", _wrap_ParameterSpace_min_test_duration_set, METH_VARARGS, NULL},
87527 { (
char *)
"ParameterSpace_min_test_duration_get", _wrap_ParameterSpace_min_test_duration_get, METH_VARARGS, NULL},
87528 { (
char *)
"new_ParameterSpace", _wrap_new_ParameterSpace, METH_VARARGS, NULL},
87529 { (
char *)
"ParameterSpace_n_combinations", _wrap_ParameterSpace_n_combinations, METH_VARARGS, NULL},
87530 { (
char *)
"ParameterSpace_combination_ge", _wrap_ParameterSpace_combination_ge, METH_VARARGS, NULL},
87531 { (
char *)
"ParameterSpace_combination_name", _wrap_ParameterSpace_combination_name, METH_VARARGS, NULL},
87532 { (
char *)
"ParameterSpace_display", _wrap_ParameterSpace_display, METH_VARARGS, NULL},
87533 { (
char *)
"ParameterSpace_add_range", _wrap_ParameterSpace_add_range, METH_VARARGS, NULL},
87534 { (
char *)
"ParameterSpace_initialize", _wrap_ParameterSpace_initialize, METH_VARARGS, NULL},
87535 { (
char *)
"ParameterSpace_set_index_parameters", _wrap_ParameterSpace_set_index_parameters, METH_VARARGS, NULL},
87536 { (
char *)
"ParameterSpace_set_index_parameter", _wrap_ParameterSpace_set_index_parameter, METH_VARARGS, NULL},
87537 { (
char *)
"ParameterSpace_update_bounds", _wrap_ParameterSpace_update_bounds, METH_VARARGS, NULL},
87538 { (
char *)
"ParameterSpace_explore", _wrap_ParameterSpace_explore, METH_VARARGS, NULL},
87539 { (
char *)
"delete_ParameterSpace", _wrap_delete_ParameterSpace, METH_VARARGS, NULL},
87540 { (
char *)
"ParameterSpace_swigregister", ParameterSpace_swigregister, METH_VARARGS, NULL},
87541 { (
char *)
"index_factory", _wrap_index_factory, METH_VARARGS, NULL},
87542 { (
char *)
"index_binary_factory", _wrap_index_binary_factory, METH_VARARGS, NULL},
87543 { (
char *)
"index_gpu_to_cpu", _wrap_index_gpu_to_cpu, METH_VARARGS, NULL},
87544 { (
char *)
"index_cpu_to_gpu", _wrap_index_cpu_to_gpu, METH_VARARGS, NULL},
87545 { (
char *)
"index_cpu_to_gpu_multiple", _wrap_index_cpu_to_gpu_multiple, METH_VARARGS, NULL},
87546 { (
char *)
"GpuParameterSpace_initialize", _wrap_GpuParameterSpace_initialize, METH_VARARGS, NULL},
87547 { (
char *)
"GpuParameterSpace_set_index_parameter", _wrap_GpuParameterSpace_set_index_parameter, METH_VARARGS, NULL},
87548 { (
char *)
"new_GpuParameterSpace", _wrap_new_GpuParameterSpace, METH_VARARGS, NULL},
87549 { (
char *)
"delete_GpuParameterSpace", _wrap_delete_GpuParameterSpace, METH_VARARGS, NULL},
87550 { (
char *)
"GpuParameterSpace_swigregister", GpuParameterSpace_swigregister, METH_VARARGS, NULL},
87551 { (
char *)
"swig_ptr", _wrap_swig_ptr, METH_VARARGS, NULL},
87552 { (
char *)
"rev_swig_ptr", _wrap_rev_swig_ptr, METH_VARARGS, NULL},
87553 { (
char *)
"float_minheap_array_t_nh_set", _wrap_float_minheap_array_t_nh_set, METH_VARARGS, NULL},
87554 { (
char *)
"float_minheap_array_t_nh_get", _wrap_float_minheap_array_t_nh_get, METH_VARARGS, NULL},
87555 { (
char *)
"float_minheap_array_t_k_set", _wrap_float_minheap_array_t_k_set, METH_VARARGS, NULL},
87556 { (
char *)
"float_minheap_array_t_k_get", _wrap_float_minheap_array_t_k_get, METH_VARARGS, NULL},
87557 { (
char *)
"float_minheap_array_t_ids_set", _wrap_float_minheap_array_t_ids_set, METH_VARARGS, NULL},
87558 { (
char *)
"float_minheap_array_t_ids_get", _wrap_float_minheap_array_t_ids_get, METH_VARARGS, NULL},
87559 { (
char *)
"float_minheap_array_t_val_set", _wrap_float_minheap_array_t_val_set, METH_VARARGS, NULL},
87560 { (
char *)
"float_minheap_array_t_val_get", _wrap_float_minheap_array_t_val_get, METH_VARARGS, NULL},
87561 { (
char *)
"float_minheap_array_t_get_val", _wrap_float_minheap_array_t_get_val, METH_VARARGS, NULL},
87562 { (
char *)
"float_minheap_array_t_get_ids", _wrap_float_minheap_array_t_get_ids, METH_VARARGS, NULL},
87563 { (
char *)
"float_minheap_array_t_heapify", _wrap_float_minheap_array_t_heapify, METH_VARARGS, NULL},
87564 { (
char *)
"float_minheap_array_t_addn", _wrap_float_minheap_array_t_addn, METH_VARARGS, NULL},
87565 { (
char *)
"float_minheap_array_t_addn_with_ids", _wrap_float_minheap_array_t_addn_with_ids, METH_VARARGS, NULL},
87566 { (
char *)
"float_minheap_array_t_reorder", _wrap_float_minheap_array_t_reorder, METH_VARARGS, NULL},
87567 { (
char *)
"float_minheap_array_t_per_line_extrema", _wrap_float_minheap_array_t_per_line_extrema, METH_VARARGS, NULL},
87568 { (
char *)
"new_float_minheap_array_t", _wrap_new_float_minheap_array_t, METH_VARARGS, NULL},
87569 { (
char *)
"delete_float_minheap_array_t", _wrap_delete_float_minheap_array_t, METH_VARARGS, NULL},
87570 { (
char *)
"float_minheap_array_t_swigregister", float_minheap_array_t_swigregister, METH_VARARGS, NULL},
87571 { (
char *)
"int_minheap_array_t_nh_set", _wrap_int_minheap_array_t_nh_set, METH_VARARGS, NULL},
87572 { (
char *)
"int_minheap_array_t_nh_get", _wrap_int_minheap_array_t_nh_get, METH_VARARGS, NULL},
87573 { (
char *)
"int_minheap_array_t_k_set", _wrap_int_minheap_array_t_k_set, METH_VARARGS, NULL},
87574 { (
char *)
"int_minheap_array_t_k_get", _wrap_int_minheap_array_t_k_get, METH_VARARGS, NULL},
87575 { (
char *)
"int_minheap_array_t_ids_set", _wrap_int_minheap_array_t_ids_set, METH_VARARGS, NULL},
87576 { (
char *)
"int_minheap_array_t_ids_get", _wrap_int_minheap_array_t_ids_get, METH_VARARGS, NULL},
87577 { (
char *)
"int_minheap_array_t_val_set", _wrap_int_minheap_array_t_val_set, METH_VARARGS, NULL},
87578 { (
char *)
"int_minheap_array_t_val_get", _wrap_int_minheap_array_t_val_get, METH_VARARGS, NULL},
87579 { (
char *)
"int_minheap_array_t_get_val", _wrap_int_minheap_array_t_get_val, METH_VARARGS, NULL},
87580 { (
char *)
"int_minheap_array_t_get_ids", _wrap_int_minheap_array_t_get_ids, METH_VARARGS, NULL},
87581 { (
char *)
"int_minheap_array_t_heapify", _wrap_int_minheap_array_t_heapify, METH_VARARGS, NULL},
87582 { (
char *)
"int_minheap_array_t_addn", _wrap_int_minheap_array_t_addn, METH_VARARGS, NULL},
87583 { (
char *)
"int_minheap_array_t_addn_with_ids", _wrap_int_minheap_array_t_addn_with_ids, METH_VARARGS, NULL},
87584 { (
char *)
"int_minheap_array_t_reorder", _wrap_int_minheap_array_t_reorder, METH_VARARGS, NULL},
87585 { (
char *)
"int_minheap_array_t_per_line_extrema", _wrap_int_minheap_array_t_per_line_extrema, METH_VARARGS, NULL},
87586 { (
char *)
"new_int_minheap_array_t", _wrap_new_int_minheap_array_t, METH_VARARGS, NULL},
87587 { (
char *)
"delete_int_minheap_array_t", _wrap_delete_int_minheap_array_t, METH_VARARGS, NULL},
87588 { (
char *)
"int_minheap_array_t_swigregister", int_minheap_array_t_swigregister, METH_VARARGS, NULL},
87589 { (
char *)
"float_maxheap_array_t_nh_set", _wrap_float_maxheap_array_t_nh_set, METH_VARARGS, NULL},
87590 { (
char *)
"float_maxheap_array_t_nh_get", _wrap_float_maxheap_array_t_nh_get, METH_VARARGS, NULL},
87591 { (
char *)
"float_maxheap_array_t_k_set", _wrap_float_maxheap_array_t_k_set, METH_VARARGS, NULL},
87592 { (
char *)
"float_maxheap_array_t_k_get", _wrap_float_maxheap_array_t_k_get, METH_VARARGS, NULL},
87593 { (
char *)
"float_maxheap_array_t_ids_set", _wrap_float_maxheap_array_t_ids_set, METH_VARARGS, NULL},
87594 { (
char *)
"float_maxheap_array_t_ids_get", _wrap_float_maxheap_array_t_ids_get, METH_VARARGS, NULL},
87595 { (
char *)
"float_maxheap_array_t_val_set", _wrap_float_maxheap_array_t_val_set, METH_VARARGS, NULL},
87596 { (
char *)
"float_maxheap_array_t_val_get", _wrap_float_maxheap_array_t_val_get, METH_VARARGS, NULL},
87597 { (
char *)
"float_maxheap_array_t_get_val", _wrap_float_maxheap_array_t_get_val, METH_VARARGS, NULL},
87598 { (
char *)
"float_maxheap_array_t_get_ids", _wrap_float_maxheap_array_t_get_ids, METH_VARARGS, NULL},
87599 { (
char *)
"float_maxheap_array_t_heapify", _wrap_float_maxheap_array_t_heapify, METH_VARARGS, NULL},
87600 { (
char *)
"float_maxheap_array_t_addn", _wrap_float_maxheap_array_t_addn, METH_VARARGS, NULL},
87601 { (
char *)
"float_maxheap_array_t_addn_with_ids", _wrap_float_maxheap_array_t_addn_with_ids, METH_VARARGS, NULL},
87602 { (
char *)
"float_maxheap_array_t_reorder", _wrap_float_maxheap_array_t_reorder, METH_VARARGS, NULL},
87603 { (
char *)
"float_maxheap_array_t_per_line_extrema", _wrap_float_maxheap_array_t_per_line_extrema, METH_VARARGS, NULL},
87604 { (
char *)
"new_float_maxheap_array_t", _wrap_new_float_maxheap_array_t, METH_VARARGS, NULL},
87605 { (
char *)
"delete_float_maxheap_array_t", _wrap_delete_float_maxheap_array_t, METH_VARARGS, NULL},
87606 { (
char *)
"float_maxheap_array_t_swigregister", float_maxheap_array_t_swigregister, METH_VARARGS, NULL},
87607 { (
char *)
"int_maxheap_array_t_nh_set", _wrap_int_maxheap_array_t_nh_set, METH_VARARGS, NULL},
87608 { (
char *)
"int_maxheap_array_t_nh_get", _wrap_int_maxheap_array_t_nh_get, METH_VARARGS, NULL},
87609 { (
char *)
"int_maxheap_array_t_k_set", _wrap_int_maxheap_array_t_k_set, METH_VARARGS, NULL},
87610 { (
char *)
"int_maxheap_array_t_k_get", _wrap_int_maxheap_array_t_k_get, METH_VARARGS, NULL},
87611 { (
char *)
"int_maxheap_array_t_ids_set", _wrap_int_maxheap_array_t_ids_set, METH_VARARGS, NULL},
87612 { (
char *)
"int_maxheap_array_t_ids_get", _wrap_int_maxheap_array_t_ids_get, METH_VARARGS, NULL},
87613 { (
char *)
"int_maxheap_array_t_val_set", _wrap_int_maxheap_array_t_val_set, METH_VARARGS, NULL},
87614 { (
char *)
"int_maxheap_array_t_val_get", _wrap_int_maxheap_array_t_val_get, METH_VARARGS, NULL},
87615 { (
char *)
"int_maxheap_array_t_get_val", _wrap_int_maxheap_array_t_get_val, METH_VARARGS, NULL},
87616 { (
char *)
"int_maxheap_array_t_get_ids", _wrap_int_maxheap_array_t_get_ids, METH_VARARGS, NULL},
87617 { (
char *)
"int_maxheap_array_t_heapify", _wrap_int_maxheap_array_t_heapify, METH_VARARGS, NULL},
87618 { (
char *)
"int_maxheap_array_t_addn", _wrap_int_maxheap_array_t_addn, METH_VARARGS, NULL},
87619 { (
char *)
"int_maxheap_array_t_addn_with_ids", _wrap_int_maxheap_array_t_addn_with_ids, METH_VARARGS, NULL},
87620 { (
char *)
"int_maxheap_array_t_reorder", _wrap_int_maxheap_array_t_reorder, METH_VARARGS, NULL},
87621 { (
char *)
"int_maxheap_array_t_per_line_extrema", _wrap_int_maxheap_array_t_per_line_extrema, METH_VARARGS, NULL},
87622 { (
char *)
"new_int_maxheap_array_t", _wrap_new_int_maxheap_array_t, METH_VARARGS, NULL},
87623 { (
char *)
"delete_int_maxheap_array_t", _wrap_delete_int_maxheap_array_t, METH_VARARGS, NULL},
87624 { (
char *)
"int_maxheap_array_t_swigregister", int_maxheap_array_t_swigregister, METH_VARARGS, NULL},
87625 { (
char *)
"omp_set_num_threads", _wrap_omp_set_num_threads, METH_VARARGS, NULL},
87626 { (
char *)
"omp_get_max_threads", _wrap_omp_get_max_threads, METH_VARARGS, NULL},
87627 { (
char *)
"memcpy", _wrap_memcpy, METH_VARARGS, NULL},
87628 { (
char *)
"cast_integer_to_float_ptr", _wrap_cast_integer_to_float_ptr, METH_VARARGS, NULL},
87629 { (
char *)
"cast_integer_to_long_ptr", _wrap_cast_integer_to_long_ptr, METH_VARARGS, NULL},
87630 { (
char *)
"cast_integer_to_int_ptr", _wrap_cast_integer_to_int_ptr, METH_VARARGS, NULL},
87631 { (
char *)
"RangeSearchResult_nq_set", _wrap_RangeSearchResult_nq_set, METH_VARARGS, NULL},
87632 { (
char *)
"RangeSearchResult_nq_get", _wrap_RangeSearchResult_nq_get, METH_VARARGS, NULL},
87633 { (
char *)
"RangeSearchResult_lims_set", _wrap_RangeSearchResult_lims_set, METH_VARARGS, NULL},
87634 { (
char *)
"RangeSearchResult_lims_get", _wrap_RangeSearchResult_lims_get, METH_VARARGS, NULL},
87635 { (
char *)
"RangeSearchResult_labels_set", _wrap_RangeSearchResult_labels_set, METH_VARARGS, NULL},
87636 { (
char *)
"RangeSearchResult_labels_get", _wrap_RangeSearchResult_labels_get, METH_VARARGS, NULL},
87637 { (
char *)
"RangeSearchResult_distances_set", _wrap_RangeSearchResult_distances_set, METH_VARARGS, NULL},
87638 { (
char *)
"RangeSearchResult_distances_get", _wrap_RangeSearchResult_distances_get, METH_VARARGS, NULL},
87639 { (
char *)
"RangeSearchResult_buffer_size_set", _wrap_RangeSearchResult_buffer_size_set, METH_VARARGS, NULL},
87640 { (
char *)
"RangeSearchResult_buffer_size_get", _wrap_RangeSearchResult_buffer_size_get, METH_VARARGS, NULL},
87641 { (
char *)
"new_RangeSearchResult", _wrap_new_RangeSearchResult, METH_VARARGS, NULL},
87642 { (
char *)
"RangeSearchResult_do_allocation", _wrap_RangeSearchResult_do_allocation, METH_VARARGS, NULL},
87643 { (
char *)
"delete_RangeSearchResult", _wrap_delete_RangeSearchResult, METH_VARARGS, NULL},
87644 { (
char *)
"RangeSearchResult_swigregister", RangeSearchResult_swigregister, METH_VARARGS, NULL},
87645 { (
char *)
"IDSelector_is_member", _wrap_IDSelector_is_member, METH_VARARGS, NULL},
87646 { (
char *)
"delete_IDSelector", _wrap_delete_IDSelector, METH_VARARGS, NULL},
87647 { (
char *)
"IDSelector_swigregister", IDSelector_swigregister, METH_VARARGS, NULL},
87648 { (
char *)
"IDSelectorRange_imin_set", _wrap_IDSelectorRange_imin_set, METH_VARARGS, NULL},
87649 { (
char *)
"IDSelectorRange_imin_get", _wrap_IDSelectorRange_imin_get, METH_VARARGS, NULL},
87650 { (
char *)
"IDSelectorRange_imax_set", _wrap_IDSelectorRange_imax_set, METH_VARARGS, NULL},
87651 { (
char *)
"IDSelectorRange_imax_get", _wrap_IDSelectorRange_imax_get, METH_VARARGS, NULL},
87652 { (
char *)
"new_IDSelectorRange", _wrap_new_IDSelectorRange, METH_VARARGS, NULL},
87653 { (
char *)
"IDSelectorRange_is_member", _wrap_IDSelectorRange_is_member, METH_VARARGS, NULL},
87654 { (
char *)
"delete_IDSelectorRange", _wrap_delete_IDSelectorRange, METH_VARARGS, NULL},
87655 { (
char *)
"IDSelectorRange_swigregister", IDSelectorRange_swigregister, METH_VARARGS, NULL},
87656 { (
char *)
"IDSelectorBatch_nbits_set", _wrap_IDSelectorBatch_nbits_set, METH_VARARGS, NULL},
87657 { (
char *)
"IDSelectorBatch_nbits_get", _wrap_IDSelectorBatch_nbits_get, METH_VARARGS, NULL},
87658 { (
char *)
"IDSelectorBatch_mask_set", _wrap_IDSelectorBatch_mask_set, METH_VARARGS, NULL},
87659 { (
char *)
"IDSelectorBatch_mask_get", _wrap_IDSelectorBatch_mask_get, METH_VARARGS, NULL},
87660 { (
char *)
"new_IDSelectorBatch", _wrap_new_IDSelectorBatch, METH_VARARGS, NULL},
87661 { (
char *)
"IDSelectorBatch_is_member", _wrap_IDSelectorBatch_is_member, METH_VARARGS, NULL},
87662 { (
char *)
"delete_IDSelectorBatch", _wrap_delete_IDSelectorBatch, METH_VARARGS, NULL},
87663 { (
char *)
"IDSelectorBatch_swigregister", IDSelectorBatch_swigregister, METH_VARARGS, NULL},
87664 { (
char *)
"BufferList_buffer_size_set", _wrap_BufferList_buffer_size_set, METH_VARARGS, NULL},
87665 { (
char *)
"BufferList_buffer_size_get", _wrap_BufferList_buffer_size_get, METH_VARARGS, NULL},
87666 { (
char *)
"BufferList_buffers_set", _wrap_BufferList_buffers_set, METH_VARARGS, NULL},
87667 { (
char *)
"BufferList_buffers_get", _wrap_BufferList_buffers_get, METH_VARARGS, NULL},
87668 { (
char *)
"BufferList_wp_set", _wrap_BufferList_wp_set, METH_VARARGS, NULL},
87669 { (
char *)
"BufferList_wp_get", _wrap_BufferList_wp_get, METH_VARARGS, NULL},
87670 { (
char *)
"new_BufferList", _wrap_new_BufferList, METH_VARARGS, NULL},
87671 { (
char *)
"delete_BufferList", _wrap_delete_BufferList, METH_VARARGS, NULL},
87672 { (
char *)
"BufferList_append_buffer", _wrap_BufferList_append_buffer, METH_VARARGS, NULL},
87673 { (
char *)
"BufferList_add", _wrap_BufferList_add, METH_VARARGS, NULL},
87674 { (
char *)
"BufferList_copy_range", _wrap_BufferList_copy_range, METH_VARARGS, NULL},
87675 { (
char *)
"BufferList_swigregister", BufferList_swigregister, METH_VARARGS, NULL},
87676 { (
char *)
"RangeSearchPartialResult_res_set", _wrap_RangeSearchPartialResult_res_set, METH_VARARGS, NULL},
87677 { (
char *)
"RangeSearchPartialResult_res_get", _wrap_RangeSearchPartialResult_res_get, METH_VARARGS, NULL},
87678 { (
char *)
"new_RangeSearchPartialResult", _wrap_new_RangeSearchPartialResult, METH_VARARGS, NULL},
87679 { (
char *)
"RangeSearchPartialResult_queries_set", _wrap_RangeSearchPartialResult_queries_set, METH_VARARGS, NULL},
87680 { (
char *)
"RangeSearchPartialResult_queries_get", _wrap_RangeSearchPartialResult_queries_get, METH_VARARGS, NULL},
87681 { (
char *)
"RangeSearchPartialResult_new_result", _wrap_RangeSearchPartialResult_new_result, METH_VARARGS, NULL},
87682 { (
char *)
"RangeSearchPartialResult_finalize", _wrap_RangeSearchPartialResult_finalize, METH_VARARGS, NULL},
87683 { (
char *)
"RangeSearchPartialResult_set_lims", _wrap_RangeSearchPartialResult_set_lims, METH_VARARGS, NULL},
87684 { (
char *)
"RangeSearchPartialResult_set_result", _wrap_RangeSearchPartialResult_set_result, METH_VARARGS, NULL},
87685 { (
char *)
"delete_RangeSearchPartialResult", _wrap_delete_RangeSearchPartialResult, METH_VARARGS, NULL},
87686 { (
char *)
"RangeSearchPartialResult_swigregister", RangeSearchPartialResult_swigregister, METH_VARARGS, NULL},
87687 { (
char *)
"IOReader_name_set", _wrap_IOReader_name_set, METH_VARARGS, NULL},
87688 { (
char *)
"IOReader_name_get", _wrap_IOReader_name_get, METH_VARARGS, NULL},
87689 { (
char *)
"IOReader___call__", _wrap_IOReader___call__, METH_VARARGS, NULL},
87690 { (
char *)
"IOReader_fileno", _wrap_IOReader_fileno, METH_VARARGS, NULL},
87691 { (
char *)
"delete_IOReader", _wrap_delete_IOReader, METH_VARARGS, NULL},
87692 { (
char *)
"IOReader_swigregister", IOReader_swigregister, METH_VARARGS, NULL},
87693 { (
char *)
"IOWriter_name_set", _wrap_IOWriter_name_set, METH_VARARGS, NULL},
87694 { (
char *)
"IOWriter_name_get", _wrap_IOWriter_name_get, METH_VARARGS, NULL},
87695 { (
char *)
"IOWriter___call__", _wrap_IOWriter___call__, METH_VARARGS, NULL},
87696 { (
char *)
"IOWriter_fileno", _wrap_IOWriter_fileno, METH_VARARGS, NULL},
87697 { (
char *)
"delete_IOWriter", _wrap_delete_IOWriter, METH_VARARGS, NULL},
87698 { (
char *)
"IOWriter_swigregister", IOWriter_swigregister, METH_VARARGS, NULL},
87699 { (
char *)
"VectorIOReader_data_set", _wrap_VectorIOReader_data_set, METH_VARARGS, NULL},
87700 { (
char *)
"VectorIOReader_data_get", _wrap_VectorIOReader_data_get, METH_VARARGS, NULL},
87701 { (
char *)
"VectorIOReader_rp_set", _wrap_VectorIOReader_rp_set, METH_VARARGS, NULL},
87702 { (
char *)
"VectorIOReader_rp_get", _wrap_VectorIOReader_rp_get, METH_VARARGS, NULL},
87703 { (
char *)
"VectorIOReader___call__", _wrap_VectorIOReader___call__, METH_VARARGS, NULL},
87704 { (
char *)
"new_VectorIOReader", _wrap_new_VectorIOReader, METH_VARARGS, NULL},
87705 { (
char *)
"delete_VectorIOReader", _wrap_delete_VectorIOReader, METH_VARARGS, NULL},
87706 { (
char *)
"VectorIOReader_swigregister", VectorIOReader_swigregister, METH_VARARGS, NULL},
87707 { (
char *)
"VectorIOWriter_data_set", _wrap_VectorIOWriter_data_set, METH_VARARGS, NULL},
87708 { (
char *)
"VectorIOWriter_data_get", _wrap_VectorIOWriter_data_get, METH_VARARGS, NULL},
87709 { (
char *)
"VectorIOWriter___call__", _wrap_VectorIOWriter___call__, METH_VARARGS, NULL},
87710 { (
char *)
"new_VectorIOWriter", _wrap_new_VectorIOWriter, METH_VARARGS, NULL},
87711 { (
char *)
"delete_VectorIOWriter", _wrap_delete_VectorIOWriter, METH_VARARGS, NULL},
87712 { (
char *)
"VectorIOWriter_swigregister", VectorIOWriter_swigregister, METH_VARARGS, NULL},
87713 { (
char *)
"ignore_SIGTTIN", _wrap_ignore_SIGTTIN, METH_VARARGS, NULL},
87714 { (
char *)
"MapLong2Long_map_set", _wrap_MapLong2Long_map_set, METH_VARARGS, NULL},
87715 { (
char *)
"MapLong2Long_map_get", _wrap_MapLong2Long_map_get, METH_VARARGS, NULL},
87716 { (
char *)
"MapLong2Long_add", _wrap_MapLong2Long_add, METH_VARARGS, NULL},
87717 { (
char *)
"MapLong2Long_search", _wrap_MapLong2Long_search, METH_VARARGS, NULL},
87718 { (
char *)
"MapLong2Long_search_multiple", _wrap_MapLong2Long_search_multiple, METH_VARARGS, NULL},
87719 { (
char *)
"new_MapLong2Long", _wrap_new_MapLong2Long, METH_VARARGS, NULL},
87720 { (
char *)
"delete_MapLong2Long", _wrap_delete_MapLong2Long, METH_VARARGS, NULL},
87721 { (
char *)
"MapLong2Long_swigregister", MapLong2Long_swigregister, METH_VARARGS, NULL},
87722 { NULL, NULL, 0, NULL }
87728 static void *_p_faiss__IndexHNSWFlatTo_p_faiss__IndexHNSW(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87731 static void *_p_faiss__IndexHNSWSQTo_p_faiss__IndexHNSW(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87734 static void *_p_faiss__IndexHNSWPQTo_p_faiss__IndexHNSW(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87737 static void *_p_faiss__IndexHNSW2LevelTo_p_faiss__IndexHNSW(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87740 static void *_p_faiss__IndexIDMap2To_p_faiss__IndexIDMap(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87743 static void *_p_faiss__IndexIVFPQRTo_p_faiss__IndexIVFPQ(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87746 static void *_p_faiss__RandomRotationMatrixTo_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87749 static void *_p_faiss__PCAMatrixTo_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87752 static void *_p_faiss__OPQMatrixTo_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87755 static void *_p_faiss__LinearTransformTo_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87758 static void *_p_faiss__RemapDimensionsTransformTo_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87761 static void *_p_faiss__NormalizationTransformTo_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87764 static void *_p_faiss__RandomRotationMatrixTo_p_faiss__LinearTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87767 static void *_p_faiss__PCAMatrixTo_p_faiss__LinearTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87770 static void *_p_faiss__OPQMatrixTo_p_faiss__LinearTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87773 static void *_p_p_faiss__RandomRotationMatrixTo_p_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87776 static void *_p_p_faiss__PCAMatrixTo_p_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87779 static void *_p_p_faiss__OPQMatrixTo_p_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87782 static void *_p_p_faiss__LinearTransformTo_p_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87785 static void *_p_p_faiss__RemapDimensionsTransformTo_p_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87788 static void *_p_p_faiss__NormalizationTransformTo_p_p_faiss__VectorTransform(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87791 static void *_p_faiss__gpu__GpuMultipleClonerOptionsTo_p_faiss__gpu__GpuClonerOptions(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87794 static void *_p_faiss__IndexIVFFlatDedupTo_p_faiss__IndexIVFFlat(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87797 static void *_p_faiss__IDSelectorBatchTo_p_faiss__IDSelector(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87800 static void *_p_faiss__IDSelectorRangeTo_p_faiss__IDSelector(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87803 static void *_p_faiss__RangeSearchPartialResultTo_p_faiss__BufferList(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87806 static void *_p_faiss__ReproduceDistancesObjectiveTo_p_faiss__PermutationObjective(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87809 static void *_p_faiss__gpu__GpuIndexFlatL2To_p_faiss__gpu__GpuIndexFlat(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87812 static void *_p_faiss__gpu__GpuIndexFlatIPTo_p_faiss__gpu__GpuIndexFlat(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87815 static void *_p_faiss__IndexFlatL2To_p_faiss__IndexFlat(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87818 static void *_p_faiss__IndexFlat1DTo_p_faiss__IndexFlat(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87821 static void *_p_faiss__IndexFlatIPTo_p_faiss__IndexFlat(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87824 static void *_p_faiss__IndexFlatL2BaseShiftTo_p_faiss__IndexFlat(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87827 static void *_p_faiss__ArrayInvertedListsTo_p_faiss__InvertedLists(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87830 static void *_p_faiss__ConcatenatedInvertedListsTo_p_faiss__InvertedLists(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87833 static void *_p_faiss__OnDiskInvertedListsTo_p_faiss__InvertedLists(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87836 static void *_p_p_faiss__ArrayInvertedListsTo_p_p_faiss__InvertedLists(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87839 static void *_p_p_faiss__ConcatenatedInvertedListsTo_p_p_faiss__InvertedLists(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87842 static void *_p_p_faiss__OnDiskInvertedListsTo_p_p_faiss__InvertedLists(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87845 static void *_p_faiss__VectorIOReaderTo_p_faiss__IOReader(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87848 static void *_p_faiss__IndexFlat1DTo_p_faiss__IndexFlatL2(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87851 static void *_p_faiss__IndexFlatL2BaseShiftTo_p_faiss__IndexFlatL2(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87854 static void *_p_faiss__IndexIVFScalarQuantizerTo_p_faiss__IndexIVF(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87857 static void *_p_faiss__IndexIVFPQTo_p_faiss__IndexIVF(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87860 static void *_p_faiss__IndexIVFFlatTo_p_faiss__IndexIVF(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87863 static void *_p_faiss__IndexIVFFlatDedupTo_p_faiss__IndexIVF(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87866 static void *_p_faiss__IndexIVFPQRTo_p_faiss__IndexIVF(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87869 static void *_p_faiss__gpu__GpuIndexIVFPQTo_p_faiss__gpu__GpuIndexIVF(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87872 static void *_p_faiss__gpu__GpuIndexIVFFlatTo_p_faiss__gpu__GpuIndexIVF(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87875 static void *_p_faiss__gpu__GpuIndexIVFPQConfigTo_p_faiss__gpu__GpuIndexIVFConfig(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87878 static void *_p_faiss__gpu__GpuIndexIVFFlatConfigTo_p_faiss__gpu__GpuIndexIVFConfig(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87881 static void *_p_faiss__gpu__GpuIndexIVFPQConfigTo_p_faiss__gpu__GpuIndexConfig(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87884 static void *_p_faiss__gpu__GpuIndexFlatConfigTo_p_faiss__gpu__GpuIndexConfig(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87887 static void *_p_faiss__gpu__GpuIndexIVFConfigTo_p_faiss__gpu__GpuIndexConfig(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87890 static void *_p_faiss__gpu__GpuIndexIVFFlatConfigTo_p_faiss__gpu__GpuIndexConfig(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87893 static void *_p_faiss__gpu__GpuIndexBinaryFlatConfigTo_p_faiss__gpu__GpuIndexConfig(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87896 static void *_p_faiss__gpu__GpuIndexFlatTo_p_faiss__gpu__GpuIndex(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87899 static void *_p_faiss__gpu__GpuIndexFlatL2To_p_faiss__gpu__GpuIndex(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87902 static void *_p_faiss__gpu__GpuIndexIVFTo_p_faiss__gpu__GpuIndex(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87905 static void *_p_faiss__gpu__GpuIndexIVFPQTo_p_faiss__gpu__GpuIndex(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87908 static void *_p_faiss__gpu__GpuIndexIVFFlatTo_p_faiss__gpu__GpuIndex(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87911 static void *_p_faiss__gpu__GpuIndexFlatIPTo_p_faiss__gpu__GpuIndex(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87914 static void *_p_faiss__PolysemousTrainingTo_p_faiss__SimulatedAnnealingParameters(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87917 static void *_p_faiss__SimulatedAnnealingOptimizerTo_p_faiss__SimulatedAnnealingParameters(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87920 static void *_p_faiss__ClusteringTo_p_faiss__ClusteringParameters(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87923 static void *_p_faiss__IVFPQSearchParametersTo_p_faiss__IVFSearchParameters(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87926 static void *_p_p_faiss__IndexPQTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87929 static void *_p_p_faiss__IndexIVFFlatDedupTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87932 static void *_p_p_faiss__IndexPreTransformTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87935 static void *_p_p_faiss__IndexSplitVectorsTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87938 static void *_p_p_faiss__IndexIDMap2To_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87941 static void *_p_p_faiss__IndexIVFFlatTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87944 static void *_p_p_faiss__gpu__GpuIndexIVFFlatTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87947 static void *_p_p_faiss__MultiIndexQuantizerTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87950 static void *_p_p_faiss__IndexScalarQuantizerTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87953 static void *_p_p_faiss__IndexIVFScalarQuantizerTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87956 static void *_p_p_faiss__IndexRefineFlatTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87959 static void *_p_p_faiss__gpu__GpuIndexIVFPQTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87962 static void *_p_p_faiss__IndexIVFPQTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87965 static void *_p_p_faiss__IndexLSHTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87968 static void *_p_p_faiss__IndexHNSWSQTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87971 static void *_p_p_faiss__gpu__IndexProxyTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87974 static void *_p_p_faiss__gpu__GpuIndexTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87977 static void *_p_p_faiss__IndexIDMapTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87980 static void *_p_p_faiss__IndexHNSW2LevelTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87983 static void *_p_p_faiss__Index2LayerTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87986 static void *_p_p_faiss__gpu__GpuIndexFlatL2To_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87989 static void *_p_p_faiss__IndexFlatL2To_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87992 static void *_p_p_faiss__IndexHNSWFlatTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87995 static void *_p_p_faiss__IndexIVFPQRTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
87998 static void *_p_p_faiss__IndexFlat1DTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88001 static void *_p_p_faiss__gpu__GpuIndexFlatTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88004 static void *_p_p_faiss__IndexFlatTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88007 static void *_p_p_faiss__gpu__GpuIndexFlatIPTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88010 static void *_p_p_faiss__IndexFlatIPTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88013 static void *_p_p_faiss__IndexHNSWTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88016 static void *_p_p_faiss__IndexHNSWPQTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88019 static void *_p_p_faiss__IndexFlatL2BaseShiftTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88022 static void *_p_p_faiss__gpu__GpuIndexIVFTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88025 static void *_p_p_faiss__IndexIVFTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88028 static void *_p_p_faiss__MultiIndexQuantizer2To_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88031 static void *_p_p_faiss__IndexShardsTo_p_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88034 static void *_p_faiss__IndexPQTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88037 static void *_p_faiss__IndexIVFFlatDedupTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88040 static void *_p_faiss__IndexPreTransformTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88043 static void *_p_faiss__IndexSplitVectorsTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88046 static void *_p_faiss__IndexIDMap2To_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88049 static void *_p_faiss__IndexIVFFlatTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88052 static void *_p_faiss__gpu__GpuIndexIVFFlatTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88055 static void *_p_faiss__MultiIndexQuantizerTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88058 static void *_p_faiss__IndexScalarQuantizerTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88061 static void *_p_faiss__IndexIVFScalarQuantizerTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88064 static void *_p_faiss__IndexRefineFlatTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88067 static void *_p_faiss__gpu__GpuIndexIVFPQTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88070 static void *_p_faiss__IndexIVFPQTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88073 static void *_p_faiss__IndexLSHTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88076 static void *_p_faiss__IndexHNSWSQTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88079 static void *_p_faiss__gpu__IndexProxyTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88082 static void *_p_faiss__gpu__GpuIndexTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88085 static void *_p_faiss__IndexIDMapTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88088 static void *_p_faiss__IndexHNSW2LevelTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88091 static void *_p_faiss__Index2LayerTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88094 static void *_p_faiss__gpu__GpuIndexFlatL2To_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88097 static void *_p_faiss__IndexFlatL2To_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88100 static void *_p_faiss__IndexHNSWFlatTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88103 static void *_p_faiss__IndexIVFPQRTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88106 static void *_p_faiss__IndexFlat1DTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88109 static void *_p_faiss__gpu__GpuIndexFlatTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88112 static void *_p_faiss__IndexFlatTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88115 static void *_p_faiss__gpu__GpuIndexFlatIPTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88118 static void *_p_faiss__IndexFlatIPTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88121 static void *_p_faiss__IndexHNSWTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88124 static void *_p_faiss__IndexHNSWPQTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88127 static void *_p_faiss__IndexFlatL2BaseShiftTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88130 static void *_p_faiss__gpu__GpuIndexIVFTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88133 static void *_p_faiss__IndexIVFTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88136 static void *_p_faiss__MultiIndexQuantizer2To_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88139 static void *_p_faiss__IndexShardsTo_p_faiss__Index(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88142 static void *_p_faiss__gpu__GpuParameterSpaceTo_p_faiss__ParameterSpace(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88145 static void *_p_faiss__IndexBinaryFlatTo_p_faiss__IndexBinary(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88148 static void *_p_faiss__gpu__GpuIndexBinaryFlatTo_p_faiss__IndexBinary(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88151 static void *_p_faiss__IndexBinaryHNSWTo_p_faiss__IndexBinary(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88154 static void *_p_faiss__IndexBinaryIVFTo_p_faiss__IndexBinary(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88157 static void *_p_faiss__IndexBinaryFromFloatTo_p_faiss__IndexBinary(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88160 static void *_p_faiss__MultiIndexQuantizer2To_p_faiss__MultiIndexQuantizer(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88163 static void *_p_faiss__IndexIVFTo_p_faiss__Level1Quantizer(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88166 static void *_p_faiss__IndexIVFScalarQuantizerTo_p_faiss__Level1Quantizer(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88169 static void *_p_faiss__IndexIVFPQTo_p_faiss__Level1Quantizer(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88172 static void *_p_faiss__IndexIVFFlatTo_p_faiss__Level1Quantizer(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88175 static void *_p_faiss__IndexIVFFlatDedupTo_p_faiss__Level1Quantizer(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88178 static void *_p_faiss__IndexIVFPQRTo_p_faiss__Level1Quantizer(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88181 static void *_p_faiss__OneRecallAtRCriterionTo_p_faiss__AutoTuneCriterion(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88184 static void *_p_faiss__IntersectionCriterionTo_p_faiss__AutoTuneCriterion(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88187 static void *_p_faiss__gpu__StandardGpuResourcesTo_p_faiss__gpu__GpuResources(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88190 static void *_p_p_faiss__gpu__StandardGpuResourcesTo_p_p_faiss__gpu__GpuResources(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88193 static void *_p_faiss__VectorIOWriterTo_p_faiss__IOWriter(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
88196 static swig_type_info _swigt__p_Crev = {
"_p_Crev",
"Crev *", 0, 0, (
void*)0, 0};
88197 static swig_type_info _swigt__p_FILE = {
"_p_FILE",
"FILE *", 0, 0, (
void*)0, 0};
88198 static swig_type_info _swigt__p_MapLong2Long = {
"_p_MapLong2Long",
"MapLong2Long *", 0, 0, (
void*)0, 0};
88199 static swig_type_info _swigt__p_Node = {
"_p_Node",
"Node *", 0, 0, (
void*)0, 0};
88200 static swig_type_info _swigt__p_T = {
"_p_T",
"T *", 0, 0, (
void*)0, 0};
88201 static swig_type_info _swigt__p_TI = {
"_p_TI",
"TI *", 0, 0, (
void*)0, 0};
88202 static swig_type_info _swigt__p_char = {
"_p_char",
"char *", 0, 0, (
void*)0, 0};
88203 static swig_type_info _swigt__p_cublasHandle_t = {
"_p_cublasHandle_t",
"cublasHandle_t *", 0, 0, (
void*)0, 0};
88204 static swig_type_info _swigt__p_cudaStream_t = {
"_p_cudaStream_t",
"cudaStream_t *", 0, 0, (
void*)0, 0};
88205 static swig_type_info _swigt__p_double = {
"_p_double",
"double *", 0, 0, (
void*)0, 0};
88206 static swig_type_info _swigt__p_faiss__ArrayInvertedLists = {
"_p_faiss__ArrayInvertedLists",
"faiss::ArrayInvertedLists *", 0, 0, (
void*)0, 0};
88207 static swig_type_info _swigt__p_faiss__AutoTuneCriterion = {
"_p_faiss__AutoTuneCriterion",
"faiss::AutoTuneCriterion *", 0, 0, (
void*)0, 0};
88208 static swig_type_info _swigt__p_faiss__BinaryInvertedListScanner = {
"_p_faiss__BinaryInvertedListScanner",
"faiss::BinaryInvertedListScanner *", 0, 0, (
void*)0, 0};
88209 static swig_type_info _swigt__p_faiss__BufferList = {
"_p_faiss__BufferList",
"faiss::BufferList *", 0, 0, (
void*)0, 0};
88210 static swig_type_info _swigt__p_faiss__Cloner = {
"_p_faiss__Cloner",
"faiss::Cloner *", 0, 0, (
void*)0, 0};
88211 static swig_type_info _swigt__p_faiss__Clustering = {
"_p_faiss__Clustering",
"faiss::Clustering *", 0, 0, (
void*)0, 0};
88212 static swig_type_info _swigt__p_faiss__ClusteringParameters = {
"_p_faiss__ClusteringParameters",
"faiss::ClusteringParameters *", 0, 0, (
void*)0, 0};
88213 static swig_type_info _swigt__p_faiss__ConcatenatedInvertedLists = {
"_p_faiss__ConcatenatedInvertedLists",
"faiss::ConcatenatedInvertedLists *", 0, 0, (
void*)0, 0};
88214 static swig_type_info _swigt__p_faiss__GenHammingComputer16 = {
"_p_faiss__GenHammingComputer16",
"faiss::GenHammingComputer16 *", 0, 0, (
void*)0, 0};
88215 static swig_type_info _swigt__p_faiss__GenHammingComputer32 = {
"_p_faiss__GenHammingComputer32",
"faiss::GenHammingComputer32 *", 0, 0, (
void*)0, 0};
88216 static swig_type_info _swigt__p_faiss__GenHammingComputer8 = {
"_p_faiss__GenHammingComputer8",
"faiss::GenHammingComputer8 *", 0, 0, (
void*)0, 0};
88217 static swig_type_info _swigt__p_faiss__GenHammingComputerM8 = {
"_p_faiss__GenHammingComputerM8",
"faiss::GenHammingComputerM8 *", 0, 0, (
void*)0, 0};
88218 static swig_type_info _swigt__p_faiss__HNSW = {
"_p_faiss__HNSW",
"faiss::HNSW *", 0, 0, (
void*)0, 0};
88219 static swig_type_info _swigt__p_faiss__HNSWStats = {
"_p_faiss__HNSWStats",
"faiss::HNSWStats *", 0, 0, (
void*)0, 0};
88220 static swig_type_info _swigt__p_faiss__HNSW__DistanceComputer = {
"_p_faiss__HNSW__DistanceComputer",
"faiss::HNSW::DistanceComputer *", 0, 0, (
void*)0, 0};
88221 static swig_type_info _swigt__p_faiss__HNSW__MinimaxHeap = {
"_p_faiss__HNSW__MinimaxHeap",
"faiss::HNSW::MinimaxHeap *", 0, 0, (
void*)0, 0};
88222 static swig_type_info _swigt__p_faiss__HammingComputer16 = {
"_p_faiss__HammingComputer16",
"faiss::HammingComputer16 *", 0, 0, (
void*)0, 0};
88223 static swig_type_info _swigt__p_faiss__HammingComputer20 = {
"_p_faiss__HammingComputer20",
"faiss::HammingComputer20 *", 0, 0, (
void*)0, 0};
88224 static swig_type_info _swigt__p_faiss__HammingComputer32 = {
"_p_faiss__HammingComputer32",
"faiss::HammingComputer32 *", 0, 0, (
void*)0, 0};
88225 static swig_type_info _swigt__p_faiss__HammingComputer4 = {
"_p_faiss__HammingComputer4",
"faiss::HammingComputer4 *", 0, 0, (
void*)0, 0};
88226 static swig_type_info _swigt__p_faiss__HammingComputer64 = {
"_p_faiss__HammingComputer64",
"faiss::HammingComputer64 *", 0, 0, (
void*)0, 0};
88227 static swig_type_info _swigt__p_faiss__HammingComputer8 = {
"_p_faiss__HammingComputer8",
"faiss::HammingComputer8 *", 0, 0, (
void*)0, 0};
88228 static swig_type_info _swigt__p_faiss__HammingComputerDefault = {
"_p_faiss__HammingComputerDefault",
"faiss::HammingComputerDefault *", 0, 0, (
void*)0, 0};
88229 static swig_type_info _swigt__p_faiss__HammingComputerM4 = {
"_p_faiss__HammingComputerM4",
"faiss::HammingComputerM4 *", 0, 0, (
void*)0, 0};
88230 static swig_type_info _swigt__p_faiss__HammingComputerM8 = {
"_p_faiss__HammingComputerM8",
"faiss::HammingComputerM8 *", 0, 0, (
void*)0, 0};
88231 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};
88232 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};
88233 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};
88234 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};
88235 static swig_type_info _swigt__p_faiss__IDSelector = {
"_p_faiss__IDSelector",
"faiss::IDSelector *", 0, 0, (
void*)0, 0};
88236 static swig_type_info _swigt__p_faiss__IDSelectorBatch = {
"_p_faiss__IDSelectorBatch",
"faiss::IDSelectorBatch *", 0, 0, (
void*)0, 0};
88237 static swig_type_info _swigt__p_faiss__IDSelectorRange = {
"_p_faiss__IDSelectorRange",
"faiss::IDSelectorRange *", 0, 0, (
void*)0, 0};
88238 static swig_type_info _swigt__p_faiss__IOReader = {
"_p_faiss__IOReader",
"faiss::IOReader *", 0, 0, (
void*)0, 0};
88239 static swig_type_info _swigt__p_faiss__IOWriter = {
"_p_faiss__IOWriter",
"faiss::IOWriter *", 0, 0, (
void*)0, 0};
88240 static swig_type_info _swigt__p_faiss__IVFPQSearchParameters = {
"_p_faiss__IVFPQSearchParameters",
"faiss::IVFPQSearchParameters *", 0, 0, (
void*)0, 0};
88241 static swig_type_info _swigt__p_faiss__IVFSearchParameters = {
"_p_faiss__IVFSearchParameters",
"faiss::IVFSearchParameters *", 0, 0, (
void*)0, 0};
88242 static swig_type_info _swigt__p_faiss__Index = {
"_p_faiss__Index",
"faiss::Index *", 0, 0, (
void*)0, 0};
88243 static swig_type_info _swigt__p_faiss__Index2Layer = {
"_p_faiss__Index2Layer",
"faiss::Index2Layer *", 0, 0, (
void*)0, 0};
88244 static swig_type_info _swigt__p_faiss__IndexBinary = {
"_p_faiss__IndexBinary",
"faiss::IndexBinary *", 0, 0, (
void*)0, 0};
88245 static swig_type_info _swigt__p_faiss__IndexBinaryFlat = {
"_p_faiss__IndexBinaryFlat",
"faiss::IndexBinaryFlat *", 0, 0, (
void*)0, 0};
88246 static swig_type_info _swigt__p_faiss__IndexBinaryFromFloat = {
"_p_faiss__IndexBinaryFromFloat",
"faiss::IndexBinaryFromFloat *", 0, 0, (
void*)0, 0};
88247 static swig_type_info _swigt__p_faiss__IndexBinaryHNSW = {
"_p_faiss__IndexBinaryHNSW",
"faiss::IndexBinaryHNSW *", 0, 0, (
void*)0, 0};
88248 static swig_type_info _swigt__p_faiss__IndexBinaryIVF = {
"_p_faiss__IndexBinaryIVF",
"faiss::IndexBinaryIVF *", 0, 0, (
void*)0, 0};
88249 static swig_type_info _swigt__p_faiss__IndexFlat = {
"_p_faiss__IndexFlat",
"faiss::IndexFlat *", 0, 0, (
void*)0, 0};
88250 static swig_type_info _swigt__p_faiss__IndexFlat1D = {
"_p_faiss__IndexFlat1D",
"faiss::IndexFlat1D *", 0, 0, (
void*)0, 0};
88251 static swig_type_info _swigt__p_faiss__IndexFlatIP = {
"_p_faiss__IndexFlatIP",
"faiss::IndexFlatIP *", 0, 0, (
void*)0, 0};
88252 static swig_type_info _swigt__p_faiss__IndexFlatL2 = {
"_p_faiss__IndexFlatL2",
"faiss::IndexFlatL2 *", 0, 0, (
void*)0, 0};
88253 static swig_type_info _swigt__p_faiss__IndexFlatL2BaseShift = {
"_p_faiss__IndexFlatL2BaseShift",
"faiss::IndexFlatL2BaseShift *", 0, 0, (
void*)0, 0};
88254 static swig_type_info _swigt__p_faiss__IndexHNSW = {
"_p_faiss__IndexHNSW",
"faiss::IndexHNSW *", 0, 0, (
void*)0, 0};
88255 static swig_type_info _swigt__p_faiss__IndexHNSW2Level = {
"_p_faiss__IndexHNSW2Level",
"faiss::IndexHNSW2Level *", 0, 0, (
void*)0, 0};
88256 static swig_type_info _swigt__p_faiss__IndexHNSWFlat = {
"_p_faiss__IndexHNSWFlat",
"faiss::IndexHNSWFlat *", 0, 0, (
void*)0, 0};
88257 static swig_type_info _swigt__p_faiss__IndexHNSWPQ = {
"_p_faiss__IndexHNSWPQ",
"faiss::IndexHNSWPQ *", 0, 0, (
void*)0, 0};
88258 static swig_type_info _swigt__p_faiss__IndexHNSWSQ = {
"_p_faiss__IndexHNSWSQ",
"faiss::IndexHNSWSQ *", 0, 0, (
void*)0, 0};
88259 static swig_type_info _swigt__p_faiss__IndexIDMap = {
"_p_faiss__IndexIDMap",
"faiss::IndexIDMap *", 0, 0, (
void*)0, 0};
88260 static swig_type_info _swigt__p_faiss__IndexIDMap2 = {
"_p_faiss__IndexIDMap2",
"faiss::IndexIDMap2 *", 0, 0, (
void*)0, 0};
88261 static swig_type_info _swigt__p_faiss__IndexIVF = {
"_p_faiss__IndexIVF",
"faiss::IndexIVF *", 0, 0, (
void*)0, 0};
88262 static swig_type_info _swigt__p_faiss__IndexIVFFlat = {
"_p_faiss__IndexIVFFlat",
"faiss::IndexIVFFlat *", 0, 0, (
void*)0, 0};
88263 static swig_type_info _swigt__p_faiss__IndexIVFFlatDedup = {
"_p_faiss__IndexIVFFlatDedup",
"faiss::IndexIVFFlatDedup *", 0, 0, (
void*)0, 0};
88264 static swig_type_info _swigt__p_faiss__IndexIVFPQ = {
"_p_faiss__IndexIVFPQ",
"faiss::IndexIVFPQ *", 0, 0, (
void*)0, 0};
88265 static swig_type_info _swigt__p_faiss__IndexIVFPQR = {
"_p_faiss__IndexIVFPQR",
"faiss::IndexIVFPQR *", 0, 0, (
void*)0, 0};
88266 static swig_type_info _swigt__p_faiss__IndexIVFPQStats = {
"_p_faiss__IndexIVFPQStats",
"faiss::IndexIVFPQStats *", 0, 0, (
void*)0, 0};
88267 static swig_type_info _swigt__p_faiss__IndexIVFScalarQuantizer = {
"_p_faiss__IndexIVFScalarQuantizer",
"faiss::IndexIVFScalarQuantizer *", 0, 0, (
void*)0, 0};
88268 static swig_type_info _swigt__p_faiss__IndexIVFStats = {
"_p_faiss__IndexIVFStats",
"faiss::IndexIVFStats *", 0, 0, (
void*)0, 0};
88269 static swig_type_info _swigt__p_faiss__IndexLSH = {
"_p_faiss__IndexLSH",
"faiss::IndexLSH *", 0, 0, (
void*)0, 0};
88270 static swig_type_info _swigt__p_faiss__IndexPQ = {
"_p_faiss__IndexPQ",
"faiss::IndexPQ *", 0, 0, (
void*)0, 0};
88271 static swig_type_info _swigt__p_faiss__IndexPQStats = {
"_p_faiss__IndexPQStats",
"faiss::IndexPQStats *", 0, 0, (
void*)0, 0};
88272 static swig_type_info _swigt__p_faiss__IndexPreTransform = {
"_p_faiss__IndexPreTransform",
"faiss::IndexPreTransform *", 0, 0, (
void*)0, 0};
88273 static swig_type_info _swigt__p_faiss__IndexRefineFlat = {
"_p_faiss__IndexRefineFlat",
"faiss::IndexRefineFlat *", 0, 0, (
void*)0, 0};
88274 static swig_type_info _swigt__p_faiss__IndexScalarQuantizer = {
"_p_faiss__IndexScalarQuantizer",
"faiss::IndexScalarQuantizer *", 0, 0, (
void*)0, 0};
88275 static swig_type_info _swigt__p_faiss__IndexShards = {
"_p_faiss__IndexShards",
"faiss::IndexShards *", 0, 0, (
void*)0, 0};
88276 static swig_type_info _swigt__p_faiss__IndexSplitVectors = {
"_p_faiss__IndexSplitVectors",
"faiss::IndexSplitVectors *", 0, 0, (
void*)0, 0};
88277 static swig_type_info _swigt__p_faiss__IntersectionCriterion = {
"_p_faiss__IntersectionCriterion",
"faiss::IntersectionCriterion *", 0, 0, (
void*)0, 0};
88278 static swig_type_info _swigt__p_faiss__InvertedListScanner = {
"_p_faiss__InvertedListScanner",
"faiss::InvertedListScanner *", 0, 0, (
void*)0, 0};
88279 static swig_type_info _swigt__p_faiss__InvertedLists = {
"_p_faiss__InvertedLists",
"faiss::InvertedLists *", 0, 0, (
void*)0, 0};
88280 static swig_type_info _swigt__p_faiss__Level1Quantizer = {
"_p_faiss__Level1Quantizer",
"faiss::Level1Quantizer *", 0, 0, (
void*)0, 0};
88281 static swig_type_info _swigt__p_faiss__LinearTransform = {
"_p_faiss__LinearTransform",
"faiss::LinearTransform *", 0, 0, (
void*)0, 0};
88282 static swig_type_info _swigt__p_faiss__LockLevels = {
"_p_faiss__LockLevels",
"faiss::LockLevels *", 0, 0, (
void*)0, 0};
88283 static swig_type_info _swigt__p_faiss__MultiIndexQuantizer = {
"_p_faiss__MultiIndexQuantizer",
"faiss::MultiIndexQuantizer *", 0, 0, (
void*)0, 0};
88284 static swig_type_info _swigt__p_faiss__MultiIndexQuantizer2 = {
"_p_faiss__MultiIndexQuantizer2",
"faiss::MultiIndexQuantizer2 *", 0, 0, (
void*)0, 0};
88285 static swig_type_info _swigt__p_faiss__NormalizationTransform = {
"_p_faiss__NormalizationTransform",
"faiss::NormalizationTransform *", 0, 0, (
void*)0, 0};
88286 static swig_type_info _swigt__p_faiss__OPQMatrix = {
"_p_faiss__OPQMatrix",
"faiss::OPQMatrix *", 0, 0, (
void*)0, 0};
88287 static swig_type_info _swigt__p_faiss__OnDiskInvertedLists = {
"_p_faiss__OnDiskInvertedLists",
"faiss::OnDiskInvertedLists *", 0, 0, (
void*)0, 0};
88288 static swig_type_info _swigt__p_faiss__OnDiskInvertedLists__OngoingPrefetch = {
"_p_faiss__OnDiskInvertedLists__OngoingPrefetch",
"faiss::OnDiskInvertedLists::OngoingPrefetch *", 0, 0, (
void*)0, 0};
88289 static swig_type_info _swigt__p_faiss__OneRecallAtRCriterion = {
"_p_faiss__OneRecallAtRCriterion",
"faiss::OneRecallAtRCriterion *", 0, 0, (
void*)0, 0};
88290 static swig_type_info _swigt__p_faiss__OperatingPoint = {
"_p_faiss__OperatingPoint",
"faiss::OperatingPoint *", 0, 0, (
void*)0, 0};
88291 static swig_type_info _swigt__p_faiss__OperatingPoints = {
"_p_faiss__OperatingPoints",
"faiss::OperatingPoints *", 0, 0, (
void*)0, 0};
88292 static swig_type_info _swigt__p_faiss__PCAMatrix = {
"_p_faiss__PCAMatrix",
"faiss::PCAMatrix *", 0, 0, (
void*)0, 0};
88293 static swig_type_info _swigt__p_faiss__ParameterRange = {
"_p_faiss__ParameterRange",
"faiss::ParameterRange *", 0, 0, (
void*)0, 0};
88294 static swig_type_info _swigt__p_faiss__ParameterSpace = {
"_p_faiss__ParameterSpace",
"faiss::ParameterSpace *", 0, 0, (
void*)0, 0};
88295 static swig_type_info _swigt__p_faiss__PermutationObjective = {
"_p_faiss__PermutationObjective",
"faiss::PermutationObjective *", 0, 0, (
void*)0, 0};
88296 static swig_type_info _swigt__p_faiss__PolysemousTraining = {
"_p_faiss__PolysemousTraining",
"faiss::PolysemousTraining *", 0, 0, (
void*)0, 0};
88297 static swig_type_info _swigt__p_faiss__ProductQuantizer = {
"_p_faiss__ProductQuantizer",
"faiss::ProductQuantizer *", 0, 0, (
void*)0, 0};
88298 static swig_type_info _swigt__p_faiss__RandomGenerator = {
"_p_faiss__RandomGenerator",
"faiss::RandomGenerator *", 0, 0, (
void*)0, 0};
88299 static swig_type_info _swigt__p_faiss__RandomRotationMatrix = {
"_p_faiss__RandomRotationMatrix",
"faiss::RandomRotationMatrix *", 0, 0, (
void*)0, 0};
88300 static swig_type_info _swigt__p_faiss__RangeSearchPartialResult = {
"_p_faiss__RangeSearchPartialResult",
"faiss::RangeSearchPartialResult *", 0, 0, (
void*)0, 0};
88301 static swig_type_info _swigt__p_faiss__RangeSearchPartialResult__QueryResult = {
"_p_faiss__RangeSearchPartialResult__QueryResult",
"faiss::RangeSearchPartialResult::QueryResult *", 0, 0, (
void*)0, 0};
88302 static swig_type_info _swigt__p_faiss__RangeSearchResult = {
"_p_faiss__RangeSearchResult",
"faiss::RangeSearchResult *", 0, 0, (
void*)0, 0};
88303 static swig_type_info _swigt__p_faiss__ReconstructFromNeighbors = {
"_p_faiss__ReconstructFromNeighbors",
"faiss::ReconstructFromNeighbors *", 0, 0, (
void*)0, 0};
88304 static swig_type_info _swigt__p_faiss__RemapDimensionsTransform = {
"_p_faiss__RemapDimensionsTransform",
"faiss::RemapDimensionsTransform *", 0, 0, (
void*)0, 0};
88305 static swig_type_info _swigt__p_faiss__ReproduceDistancesObjective = {
"_p_faiss__ReproduceDistancesObjective",
"faiss::ReproduceDistancesObjective *", 0, 0, (
void*)0, 0};
88306 static swig_type_info _swigt__p_faiss__ScalarQuantizer = {
"_p_faiss__ScalarQuantizer",
"faiss::ScalarQuantizer *", 0, 0, (
void*)0, 0};
88307 static swig_type_info _swigt__p_faiss__ScalarQuantizer__DistanceComputer = {
"_p_faiss__ScalarQuantizer__DistanceComputer",
"faiss::ScalarQuantizer::DistanceComputer *", 0, 0, (
void*)0, 0};
88308 static swig_type_info _swigt__p_faiss__SimulatedAnnealingOptimizer = {
"_p_faiss__SimulatedAnnealingOptimizer",
"faiss::SimulatedAnnealingOptimizer *", 0, 0, (
void*)0, 0};
88309 static swig_type_info _swigt__p_faiss__SimulatedAnnealingParameters = {
"_p_faiss__SimulatedAnnealingParameters",
"faiss::SimulatedAnnealingParameters *", 0, 0, (
void*)0, 0};
88310 static swig_type_info _swigt__p_faiss__VectorIOReader = {
"_p_faiss__VectorIOReader",
"faiss::VectorIOReader *", 0, 0, (
void*)0, 0};
88311 static swig_type_info _swigt__p_faiss__VectorIOWriter = {
"_p_faiss__VectorIOWriter",
"faiss::VectorIOWriter *", 0, 0, (
void*)0, 0};
88312 static swig_type_info _swigt__p_faiss__VectorTransform = {
"_p_faiss__VectorTransform",
"faiss::VectorTransform *", 0, 0, (
void*)0, 0};
88313 static swig_type_info _swigt__p_faiss__VisitedTable = {
"_p_faiss__VisitedTable",
"faiss::VisitedTable *", 0, 0, (
void*)0, 0};
88314 static swig_type_info _swigt__p_faiss__gpu__FlatIndex = {
"_p_faiss__gpu__FlatIndex",
"faiss::gpu::FlatIndex *", 0, 0, (
void*)0, 0};
88315 static swig_type_info _swigt__p_faiss__gpu__GpuClonerOptions = {
"_p_faiss__gpu__GpuClonerOptions",
"faiss::gpu::GpuClonerOptions *", 0, 0, (
void*)0, 0};
88316 static swig_type_info _swigt__p_faiss__gpu__GpuIndex = {
"_p_faiss__gpu__GpuIndex",
"faiss::gpu::GpuIndex *", 0, 0, (
void*)0, 0};
88317 static swig_type_info _swigt__p_faiss__gpu__GpuIndexBinaryFlat = {
"_p_faiss__gpu__GpuIndexBinaryFlat",
"faiss::gpu::GpuIndexBinaryFlat *", 0, 0, (
void*)0, 0};
88318 static swig_type_info _swigt__p_faiss__gpu__GpuIndexBinaryFlatConfig = {
"_p_faiss__gpu__GpuIndexBinaryFlatConfig",
"faiss::gpu::GpuIndexBinaryFlatConfig *", 0, 0, (
void*)0, 0};
88319 static swig_type_info _swigt__p_faiss__gpu__GpuIndexConfig = {
"_p_faiss__gpu__GpuIndexConfig",
"faiss::gpu::GpuIndexConfig *", 0, 0, (
void*)0, 0};
88320 static swig_type_info _swigt__p_faiss__gpu__GpuIndexFlat = {
"_p_faiss__gpu__GpuIndexFlat",
"faiss::gpu::GpuIndexFlat *", 0, 0, (
void*)0, 0};
88321 static swig_type_info _swigt__p_faiss__gpu__GpuIndexFlatConfig = {
"_p_faiss__gpu__GpuIndexFlatConfig",
"faiss::gpu::GpuIndexFlatConfig *", 0, 0, (
void*)0, 0};
88322 static swig_type_info _swigt__p_faiss__gpu__GpuIndexFlatIP = {
"_p_faiss__gpu__GpuIndexFlatIP",
"faiss::gpu::GpuIndexFlatIP *", 0, 0, (
void*)0, 0};
88323 static swig_type_info _swigt__p_faiss__gpu__GpuIndexFlatL2 = {
"_p_faiss__gpu__GpuIndexFlatL2",
"faiss::gpu::GpuIndexFlatL2 *", 0, 0, (
void*)0, 0};
88324 static swig_type_info _swigt__p_faiss__gpu__GpuIndexIVF = {
"_p_faiss__gpu__GpuIndexIVF",
"faiss::gpu::GpuIndexIVF *", 0, 0, (
void*)0, 0};
88325 static swig_type_info _swigt__p_faiss__gpu__GpuIndexIVFConfig = {
"_p_faiss__gpu__GpuIndexIVFConfig",
"faiss::gpu::GpuIndexIVFConfig *", 0, 0, (
void*)0, 0};
88326 static swig_type_info _swigt__p_faiss__gpu__GpuIndexIVFFlat = {
"_p_faiss__gpu__GpuIndexIVFFlat",
"faiss::gpu::GpuIndexIVFFlat *", 0, 0, (
void*)0, 0};
88327 static swig_type_info _swigt__p_faiss__gpu__GpuIndexIVFFlatConfig = {
"_p_faiss__gpu__GpuIndexIVFFlatConfig",
"faiss::gpu::GpuIndexIVFFlatConfig *", 0, 0, (
void*)0, 0};
88328 static swig_type_info _swigt__p_faiss__gpu__GpuIndexIVFPQ = {
"_p_faiss__gpu__GpuIndexIVFPQ",
"faiss::gpu::GpuIndexIVFPQ *", 0, 0, (
void*)0, 0};
88329 static swig_type_info _swigt__p_faiss__gpu__GpuIndexIVFPQConfig = {
"_p_faiss__gpu__GpuIndexIVFPQConfig",
"faiss::gpu::GpuIndexIVFPQConfig *", 0, 0, (
void*)0, 0};
88330 static swig_type_info _swigt__p_faiss__gpu__GpuMultipleClonerOptions = {
"_p_faiss__gpu__GpuMultipleClonerOptions",
"faiss::gpu::GpuMultipleClonerOptions *", 0, 0, (
void*)0, 0};
88331 static swig_type_info _swigt__p_faiss__gpu__GpuParameterSpace = {
"_p_faiss__gpu__GpuParameterSpace",
"faiss::gpu::GpuParameterSpace *", 0, 0, (
void*)0, 0};
88332 static swig_type_info _swigt__p_faiss__gpu__GpuResources = {
"_p_faiss__gpu__GpuResources",
"faiss::gpu::GpuResources *", 0, 0, (
void*)0, 0};
88333 static swig_type_info _swigt__p_faiss__gpu__IndexProxy = {
"_p_faiss__gpu__IndexProxy",
"faiss::gpu::IndexProxy *", 0, 0, (
void*)0, 0};
88334 static swig_type_info _swigt__p_faiss__gpu__StandardGpuResources = {
"_p_faiss__gpu__StandardGpuResources",
"faiss::gpu::StandardGpuResources *", 0, 0, (
void*)0, 0};
88335 static swig_type_info _swigt__p_faiss__ivflib__SlidingIndexWindow = {
"_p_faiss__ivflib__SlidingIndexWindow",
"faiss::ivflib::SlidingIndexWindow *", 0, 0, (
void*)0, 0};
88336 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};
88337 static swig_type_info _swigt__p_idx_t = {
"_p_idx_t",
"idx_t *", 0, 0, (
void*)0, 0};
88338 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};
88339 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};
88340 static swig_type_info _swigt__p_omp_lock_t = {
"_p_omp_lock_t",
"omp_lock_t *", 0, 0, (
void*)0, 0};
88341 static swig_type_info _swigt__p_p_faiss__Index = {
"_p_p_faiss__Index",
"faiss::Index **", 0, 0, (
void*)0, 0};
88342 static swig_type_info _swigt__p_p_faiss__IndexPQ = {
"_p_p_faiss__IndexPQ", 0, 0, 0, 0, 0};
88343 static swig_type_info _swigt__p_p_faiss__IndexIVFFlatDedup = {
"_p_p_faiss__IndexIVFFlatDedup", 0, 0, 0, 0, 0};
88344 static swig_type_info _swigt__p_p_faiss__IndexPreTransform = {
"_p_p_faiss__IndexPreTransform", 0, 0, 0, 0, 0};
88345 static swig_type_info _swigt__p_p_faiss__IndexSplitVectors = {
"_p_p_faiss__IndexSplitVectors", 0, 0, 0, 0, 0};
88346 static swig_type_info _swigt__p_p_faiss__IndexIDMap2 = {
"_p_p_faiss__IndexIDMap2", 0, 0, 0, 0, 0};
88347 static swig_type_info _swigt__p_p_faiss__IndexIVFFlat = {
"_p_p_faiss__IndexIVFFlat", 0, 0, 0, 0, 0};
88348 static swig_type_info _swigt__p_p_faiss__gpu__GpuIndexIVFFlat = {
"_p_p_faiss__gpu__GpuIndexIVFFlat", 0, 0, 0, 0, 0};
88349 static swig_type_info _swigt__p_p_faiss__MultiIndexQuantizer = {
"_p_p_faiss__MultiIndexQuantizer", 0, 0, 0, 0, 0};
88350 static swig_type_info _swigt__p_p_faiss__IndexScalarQuantizer = {
"_p_p_faiss__IndexScalarQuantizer", 0, 0, 0, 0, 0};
88351 static swig_type_info _swigt__p_p_faiss__IndexIVFScalarQuantizer = {
"_p_p_faiss__IndexIVFScalarQuantizer", 0, 0, 0, 0, 0};
88352 static swig_type_info _swigt__p_p_faiss__IndexRefineFlat = {
"_p_p_faiss__IndexRefineFlat", 0, 0, 0, 0, 0};
88353 static swig_type_info _swigt__p_p_faiss__gpu__GpuIndexIVFPQ = {
"_p_p_faiss__gpu__GpuIndexIVFPQ", 0, 0, 0, 0, 0};
88354 static swig_type_info _swigt__p_p_faiss__IndexIVFPQ = {
"_p_p_faiss__IndexIVFPQ", 0, 0, 0, 0, 0};
88355 static swig_type_info _swigt__p_p_faiss__IndexLSH = {
"_p_p_faiss__IndexLSH", 0, 0, 0, 0, 0};
88356 static swig_type_info _swigt__p_p_faiss__IndexHNSWSQ = {
"_p_p_faiss__IndexHNSWSQ", 0, 0, 0, 0, 0};
88357 static swig_type_info _swigt__p_p_faiss__gpu__IndexProxy = {
"_p_p_faiss__gpu__IndexProxy", 0, 0, 0, 0, 0};
88358 static swig_type_info _swigt__p_p_faiss__gpu__GpuIndex = {
"_p_p_faiss__gpu__GpuIndex", 0, 0, 0, 0, 0};
88359 static swig_type_info _swigt__p_p_faiss__IndexIDMap = {
"_p_p_faiss__IndexIDMap", 0, 0, 0, 0, 0};
88360 static swig_type_info _swigt__p_p_faiss__IndexHNSW2Level = {
"_p_p_faiss__IndexHNSW2Level", 0, 0, 0, 0, 0};
88361 static swig_type_info _swigt__p_p_faiss__Index2Layer = {
"_p_p_faiss__Index2Layer", 0, 0, 0, 0, 0};
88362 static swig_type_info _swigt__p_p_faiss__gpu__GpuIndexFlatL2 = {
"_p_p_faiss__gpu__GpuIndexFlatL2", 0, 0, 0, 0, 0};
88363 static swig_type_info _swigt__p_p_faiss__IndexFlatL2 = {
"_p_p_faiss__IndexFlatL2", 0, 0, 0, 0, 0};
88364 static swig_type_info _swigt__p_p_faiss__IndexHNSWFlat = {
"_p_p_faiss__IndexHNSWFlat", 0, 0, 0, 0, 0};
88365 static swig_type_info _swigt__p_p_faiss__IndexIVFPQR = {
"_p_p_faiss__IndexIVFPQR", 0, 0, 0, 0, 0};
88366 static swig_type_info _swigt__p_p_faiss__IndexFlat1D = {
"_p_p_faiss__IndexFlat1D", 0, 0, 0, 0, 0};
88367 static swig_type_info _swigt__p_p_faiss__gpu__GpuIndexFlat = {
"_p_p_faiss__gpu__GpuIndexFlat", 0, 0, 0, 0, 0};
88368 static swig_type_info _swigt__p_p_faiss__IndexFlat = {
"_p_p_faiss__IndexFlat", 0, 0, 0, 0, 0};
88369 static swig_type_info _swigt__p_p_faiss__gpu__GpuIndexFlatIP = {
"_p_p_faiss__gpu__GpuIndexFlatIP", 0, 0, 0, 0, 0};
88370 static swig_type_info _swigt__p_p_faiss__IndexFlatIP = {
"_p_p_faiss__IndexFlatIP", 0, 0, 0, 0, 0};
88371 static swig_type_info _swigt__p_p_faiss__IndexHNSW = {
"_p_p_faiss__IndexHNSW", 0, 0, 0, 0, 0};
88372 static swig_type_info _swigt__p_p_faiss__IndexHNSWPQ = {
"_p_p_faiss__IndexHNSWPQ", 0, 0, 0, 0, 0};
88373 static swig_type_info _swigt__p_p_faiss__IndexFlatL2BaseShift = {
"_p_p_faiss__IndexFlatL2BaseShift", 0, 0, 0, 0, 0};
88374 static swig_type_info _swigt__p_p_faiss__gpu__GpuIndexIVF = {
"_p_p_faiss__gpu__GpuIndexIVF", 0, 0, 0, 0, 0};
88375 static swig_type_info _swigt__p_p_faiss__IndexIVF = {
"_p_p_faiss__IndexIVF", 0, 0, 0, 0, 0};
88376 static swig_type_info _swigt__p_p_faiss__MultiIndexQuantizer2 = {
"_p_p_faiss__MultiIndexQuantizer2", 0, 0, 0, 0, 0};
88377 static swig_type_info _swigt__p_p_faiss__IndexShards = {
"_p_p_faiss__IndexShards", 0, 0, 0, 0, 0};
88378 static swig_type_info _swigt__p_p_faiss__InvertedLists = {
"_p_p_faiss__InvertedLists",
"faiss::InvertedLists **", 0, 0, (
void*)0, 0};
88379 static swig_type_info _swigt__p_p_faiss__ArrayInvertedLists = {
"_p_p_faiss__ArrayInvertedLists", 0, 0, 0, 0, 0};
88380 static swig_type_info _swigt__p_p_faiss__ConcatenatedInvertedLists = {
"_p_p_faiss__ConcatenatedInvertedLists", 0, 0, 0, 0, 0};
88381 static swig_type_info _swigt__p_p_faiss__OnDiskInvertedLists = {
"_p_p_faiss__OnDiskInvertedLists", 0, 0, 0, 0, 0};
88382 static swig_type_info _swigt__p_p_faiss__VectorTransform = {
"_p_p_faiss__VectorTransform",
"faiss::VectorTransform **", 0, 0, (
void*)0, 0};
88383 static swig_type_info _swigt__p_p_faiss__RandomRotationMatrix = {
"_p_p_faiss__RandomRotationMatrix", 0, 0, 0, 0, 0};
88384 static swig_type_info _swigt__p_p_faiss__PCAMatrix = {
"_p_p_faiss__PCAMatrix", 0, 0, 0, 0, 0};
88385 static swig_type_info _swigt__p_p_faiss__OPQMatrix = {
"_p_p_faiss__OPQMatrix", 0, 0, 0, 0, 0};
88386 static swig_type_info _swigt__p_p_faiss__LinearTransform = {
"_p_p_faiss__LinearTransform", 0, 0, 0, 0, 0};
88387 static swig_type_info _swigt__p_p_faiss__RemapDimensionsTransform = {
"_p_p_faiss__RemapDimensionsTransform", 0, 0, 0, 0, 0};
88388 static swig_type_info _swigt__p_p_faiss__NormalizationTransform = {
"_p_p_faiss__NormalizationTransform", 0, 0, 0, 0, 0};
88389 static swig_type_info _swigt__p_p_faiss__gpu__GpuResources = {
"_p_p_faiss__gpu__GpuResources",
"faiss::gpu::GpuResources **", 0, 0, (
void*)0, 0};
88390 static swig_type_info _swigt__p_p_faiss__gpu__StandardGpuResources = {
"_p_p_faiss__gpu__StandardGpuResources", 0, 0, 0, 0, 0};
88391 static swig_type_info _swigt__p_p_void = {
"_p_p_void",
"void **", 0, 0, (
void*)0, 0};
88392 static swig_type_info _swigt__p_std__functionT_void_ffaiss__Index_pF_t = {
"_p_std__functionT_void_ffaiss__Index_pF_t",
"std::function< void (faiss::Index *) > *", 0, 0, (
void*)0, 0};
88393 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};
88394 static swig_type_info _swigt__p_std__mt19937 = {
"_p_std__mt19937",
"std::mt19937 *", 0, 0, (
void*)0, 0};
88395 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};
88396 static swig_type_info _swigt__p_std__pairT_void_p_unsigned_long_t = {
"_p_std__pairT_void_p_unsigned_long_t",
"std::pair< void *,unsigned long > *|std::pair< void *,size_t > *", 0, 0, (
void*)0, 0};
88397 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};
88398 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};
88399 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};
88400 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};
88401 static swig_type_info _swigt__p_std__vectorT_char_t = {
"_p_std__vectorT_char_t",
"std::vector< char > *", 0, 0, (
void*)0, 0};
88402 static swig_type_info _swigt__p_std__vectorT_cudaStream_t_t = {
"_p_std__vectorT_cudaStream_t_t",
"std::vector< cudaStream_t > *", 0, 0, (
void*)0, 0};
88403 static swig_type_info _swigt__p_std__vectorT_double_t = {
"_p_std__vectorT_double_t",
"std::vector< double > *", 0, 0, (
void*)0, 0};
88404 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};
88405 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};
88406 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};
88407 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};
88408 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};
88409 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};
88410 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};
88411 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};
88412 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};
88413 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};
88414 static swig_type_info _swigt__p_std__vectorT_faiss__gpu__GpuResources_p_t = {
"_p_std__vectorT_faiss__gpu__GpuResources_p_t",
"std::vector< faiss::gpu::GpuResources * > *", 0, 0, (
void*)0, 0};
88415 static swig_type_info _swigt__p_std__vectorT_float_t = {
"_p_std__vectorT_float_t",
"std::vector< float > *", 0, 0, (
void*)0, 0};
88416 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};
88417 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};
88418 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};
88419 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};
88420 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};
88421 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};
88422 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};
88423 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};
88424 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};
88425 static swig_type_info _swigt__p_storage_idx_t = {
"_p_storage_idx_t",
"storage_idx_t *", 0, 0, (
void*)0, 0};
88426 static swig_type_info _swigt__p_uint32_t = {
"_p_uint32_t",
"uint32_t *", 0, 0, (
void*)0, 0};
88427 static swig_type_info _swigt__p_unsigned_char = {
"_p_unsigned_char",
"unsigned char *|uint8_t *", 0, 0, (
void*)0, 0};
88428 static swig_type_info _swigt__p_unsigned_long = {
"_p_unsigned_long",
"uint64_t *|size_t *|unsigned long *", 0, 0, (
void*)0, 0};
88429 static swig_type_info _swigt__p_void = {
"_p_void",
"void *", 0, 0, (
void*)0, 0};
88434 &_swigt__p_MapLong2Long,
88439 &_swigt__p_cublasHandle_t,
88440 &_swigt__p_cudaStream_t,
88442 &_swigt__p_faiss__ArrayInvertedLists,
88443 &_swigt__p_faiss__AutoTuneCriterion,
88444 &_swigt__p_faiss__BinaryInvertedListScanner,
88445 &_swigt__p_faiss__BufferList,
88446 &_swigt__p_faiss__Cloner,
88447 &_swigt__p_faiss__Clustering,
88448 &_swigt__p_faiss__ClusteringParameters,
88449 &_swigt__p_faiss__ConcatenatedInvertedLists,
88450 &_swigt__p_faiss__GenHammingComputer16,
88451 &_swigt__p_faiss__GenHammingComputer32,
88452 &_swigt__p_faiss__GenHammingComputer8,
88453 &_swigt__p_faiss__GenHammingComputerM8,
88454 &_swigt__p_faiss__HNSW,
88455 &_swigt__p_faiss__HNSWStats,
88456 &_swigt__p_faiss__HNSW__DistanceComputer,
88457 &_swigt__p_faiss__HNSW__MinimaxHeap,
88458 &_swigt__p_faiss__HammingComputer16,
88459 &_swigt__p_faiss__HammingComputer20,
88460 &_swigt__p_faiss__HammingComputer32,
88461 &_swigt__p_faiss__HammingComputer4,
88462 &_swigt__p_faiss__HammingComputer64,
88463 &_swigt__p_faiss__HammingComputer8,
88464 &_swigt__p_faiss__HammingComputerDefault,
88465 &_swigt__p_faiss__HammingComputerM4,
88466 &_swigt__p_faiss__HammingComputerM8,
88467 &_swigt__p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t,
88468 &_swigt__p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t,
88469 &_swigt__p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t,
88470 &_swigt__p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t,
88471 &_swigt__p_faiss__IDSelector,
88472 &_swigt__p_faiss__IDSelectorBatch,
88473 &_swigt__p_faiss__IDSelectorRange,
88474 &_swigt__p_faiss__IOReader,
88475 &_swigt__p_faiss__IOWriter,
88476 &_swigt__p_faiss__IVFPQSearchParameters,
88477 &_swigt__p_faiss__IVFSearchParameters,
88478 &_swigt__p_faiss__Index,
88479 &_swigt__p_faiss__Index2Layer,
88480 &_swigt__p_faiss__IndexBinary,
88481 &_swigt__p_faiss__IndexBinaryFlat,
88482 &_swigt__p_faiss__IndexBinaryFromFloat,
88483 &_swigt__p_faiss__IndexBinaryHNSW,
88484 &_swigt__p_faiss__IndexBinaryIVF,
88485 &_swigt__p_faiss__IndexFlat,
88486 &_swigt__p_faiss__IndexFlat1D,
88487 &_swigt__p_faiss__IndexFlatIP,
88488 &_swigt__p_faiss__IndexFlatL2,
88489 &_swigt__p_faiss__IndexFlatL2BaseShift,
88490 &_swigt__p_faiss__IndexHNSW,
88491 &_swigt__p_faiss__IndexHNSW2Level,
88492 &_swigt__p_faiss__IndexHNSWFlat,
88493 &_swigt__p_faiss__IndexHNSWPQ,
88494 &_swigt__p_faiss__IndexHNSWSQ,
88495 &_swigt__p_faiss__IndexIDMap,
88496 &_swigt__p_faiss__IndexIDMap2,
88497 &_swigt__p_faiss__IndexIVF,
88498 &_swigt__p_faiss__IndexIVFFlat,
88499 &_swigt__p_faiss__IndexIVFFlatDedup,
88500 &_swigt__p_faiss__IndexIVFPQ,
88501 &_swigt__p_faiss__IndexIVFPQR,
88502 &_swigt__p_faiss__IndexIVFPQStats,
88503 &_swigt__p_faiss__IndexIVFScalarQuantizer,
88504 &_swigt__p_faiss__IndexIVFStats,
88505 &_swigt__p_faiss__IndexLSH,
88506 &_swigt__p_faiss__IndexPQ,
88507 &_swigt__p_faiss__IndexPQStats,
88508 &_swigt__p_faiss__IndexPreTransform,
88509 &_swigt__p_faiss__IndexRefineFlat,
88510 &_swigt__p_faiss__IndexScalarQuantizer,
88511 &_swigt__p_faiss__IndexShards,
88512 &_swigt__p_faiss__IndexSplitVectors,
88513 &_swigt__p_faiss__IntersectionCriterion,
88514 &_swigt__p_faiss__InvertedListScanner,
88515 &_swigt__p_faiss__InvertedLists,
88516 &_swigt__p_faiss__Level1Quantizer,
88517 &_swigt__p_faiss__LinearTransform,
88518 &_swigt__p_faiss__LockLevels,
88519 &_swigt__p_faiss__MultiIndexQuantizer,
88520 &_swigt__p_faiss__MultiIndexQuantizer2,
88521 &_swigt__p_faiss__NormalizationTransform,
88522 &_swigt__p_faiss__OPQMatrix,
88523 &_swigt__p_faiss__OnDiskInvertedLists,
88524 &_swigt__p_faiss__OnDiskInvertedLists__OngoingPrefetch,
88525 &_swigt__p_faiss__OneRecallAtRCriterion,
88526 &_swigt__p_faiss__OperatingPoint,
88527 &_swigt__p_faiss__OperatingPoints,
88528 &_swigt__p_faiss__PCAMatrix,
88529 &_swigt__p_faiss__ParameterRange,
88530 &_swigt__p_faiss__ParameterSpace,
88531 &_swigt__p_faiss__PermutationObjective,
88532 &_swigt__p_faiss__PolysemousTraining,
88533 &_swigt__p_faiss__ProductQuantizer,
88534 &_swigt__p_faiss__RandomGenerator,
88535 &_swigt__p_faiss__RandomRotationMatrix,
88536 &_swigt__p_faiss__RangeSearchPartialResult,
88537 &_swigt__p_faiss__RangeSearchPartialResult__QueryResult,
88538 &_swigt__p_faiss__RangeSearchResult,
88539 &_swigt__p_faiss__ReconstructFromNeighbors,
88540 &_swigt__p_faiss__RemapDimensionsTransform,
88541 &_swigt__p_faiss__ReproduceDistancesObjective,
88542 &_swigt__p_faiss__ScalarQuantizer,
88543 &_swigt__p_faiss__ScalarQuantizer__DistanceComputer,
88544 &_swigt__p_faiss__SimulatedAnnealingOptimizer,
88545 &_swigt__p_faiss__SimulatedAnnealingParameters,
88546 &_swigt__p_faiss__VectorIOReader,
88547 &_swigt__p_faiss__VectorIOWriter,
88548 &_swigt__p_faiss__VectorTransform,
88549 &_swigt__p_faiss__VisitedTable,
88550 &_swigt__p_faiss__gpu__FlatIndex,
88551 &_swigt__p_faiss__gpu__GpuClonerOptions,
88552 &_swigt__p_faiss__gpu__GpuIndex,
88553 &_swigt__p_faiss__gpu__GpuIndexBinaryFlat,
88554 &_swigt__p_faiss__gpu__GpuIndexBinaryFlatConfig,
88555 &_swigt__p_faiss__gpu__GpuIndexConfig,
88556 &_swigt__p_faiss__gpu__GpuIndexFlat,
88557 &_swigt__p_faiss__gpu__GpuIndexFlatConfig,
88558 &_swigt__p_faiss__gpu__GpuIndexFlatIP,
88559 &_swigt__p_faiss__gpu__GpuIndexFlatL2,
88560 &_swigt__p_faiss__gpu__GpuIndexIVF,
88561 &_swigt__p_faiss__gpu__GpuIndexIVFConfig,
88562 &_swigt__p_faiss__gpu__GpuIndexIVFFlat,
88563 &_swigt__p_faiss__gpu__GpuIndexIVFFlatConfig,
88564 &_swigt__p_faiss__gpu__GpuIndexIVFPQ,
88565 &_swigt__p_faiss__gpu__GpuIndexIVFPQConfig,
88566 &_swigt__p_faiss__gpu__GpuMultipleClonerOptions,
88567 &_swigt__p_faiss__gpu__GpuParameterSpace,
88568 &_swigt__p_faiss__gpu__GpuResources,
88569 &_swigt__p_faiss__gpu__IndexProxy,
88570 &_swigt__p_faiss__gpu__StandardGpuResources,
88571 &_swigt__p_faiss__ivflib__SlidingIndexWindow,
88576 &_swigt__p_omp_lock_t,
88577 &_swigt__p_p_faiss__ArrayInvertedLists,
88578 &_swigt__p_p_faiss__ConcatenatedInvertedLists,
88579 &_swigt__p_p_faiss__Index,
88580 &_swigt__p_p_faiss__Index2Layer,
88581 &_swigt__p_p_faiss__IndexFlat,
88582 &_swigt__p_p_faiss__IndexFlat1D,
88583 &_swigt__p_p_faiss__IndexFlatIP,
88584 &_swigt__p_p_faiss__IndexFlatL2,
88585 &_swigt__p_p_faiss__IndexFlatL2BaseShift,
88586 &_swigt__p_p_faiss__IndexHNSW,
88587 &_swigt__p_p_faiss__IndexHNSW2Level,
88588 &_swigt__p_p_faiss__IndexHNSWFlat,
88589 &_swigt__p_p_faiss__IndexHNSWPQ,
88590 &_swigt__p_p_faiss__IndexHNSWSQ,
88591 &_swigt__p_p_faiss__IndexIDMap,
88592 &_swigt__p_p_faiss__IndexIDMap2,
88593 &_swigt__p_p_faiss__IndexIVF,
88594 &_swigt__p_p_faiss__IndexIVFFlat,
88595 &_swigt__p_p_faiss__IndexIVFFlatDedup,
88596 &_swigt__p_p_faiss__IndexIVFPQ,
88597 &_swigt__p_p_faiss__IndexIVFPQR,
88598 &_swigt__p_p_faiss__IndexIVFScalarQuantizer,
88599 &_swigt__p_p_faiss__IndexLSH,
88600 &_swigt__p_p_faiss__IndexPQ,
88601 &_swigt__p_p_faiss__IndexPreTransform,
88602 &_swigt__p_p_faiss__IndexRefineFlat,
88603 &_swigt__p_p_faiss__IndexScalarQuantizer,
88604 &_swigt__p_p_faiss__IndexShards,
88605 &_swigt__p_p_faiss__IndexSplitVectors,
88606 &_swigt__p_p_faiss__InvertedLists,
88607 &_swigt__p_p_faiss__LinearTransform,
88608 &_swigt__p_p_faiss__MultiIndexQuantizer,
88609 &_swigt__p_p_faiss__MultiIndexQuantizer2,
88610 &_swigt__p_p_faiss__NormalizationTransform,
88611 &_swigt__p_p_faiss__OPQMatrix,
88612 &_swigt__p_p_faiss__OnDiskInvertedLists,
88613 &_swigt__p_p_faiss__PCAMatrix,
88614 &_swigt__p_p_faiss__RandomRotationMatrix,
88615 &_swigt__p_p_faiss__RemapDimensionsTransform,
88616 &_swigt__p_p_faiss__VectorTransform,
88617 &_swigt__p_p_faiss__gpu__GpuIndex,
88618 &_swigt__p_p_faiss__gpu__GpuIndexFlat,
88619 &_swigt__p_p_faiss__gpu__GpuIndexFlatIP,
88620 &_swigt__p_p_faiss__gpu__GpuIndexFlatL2,
88621 &_swigt__p_p_faiss__gpu__GpuIndexIVF,
88622 &_swigt__p_p_faiss__gpu__GpuIndexIVFFlat,
88623 &_swigt__p_p_faiss__gpu__GpuIndexIVFPQ,
88624 &_swigt__p_p_faiss__gpu__GpuResources,
88625 &_swigt__p_p_faiss__gpu__IndexProxy,
88626 &_swigt__p_p_faiss__gpu__StandardGpuResources,
88628 &_swigt__p_std__functionT_void_ffaiss__Index_pF_t,
88629 &_swigt__p_std__listT_faiss__OnDiskInvertedLists__Slot_t,
88630 &_swigt__p_std__mt19937,
88631 &_swigt__p_std__pairT_float_int_t,
88632 &_swigt__p_std__pairT_void_p_unsigned_long_t,
88633 &_swigt__p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t,
88634 &_swigt__p_std__priority_queueT_std__pairT_float_int_t_t,
88635 &_swigt__p_std__unordered_mapT_long_long_t,
88636 &_swigt__p_std__unordered_multimapT_long_long_t,
88637 &_swigt__p_std__vectorT_char_t,
88638 &_swigt__p_std__vectorT_cudaStream_t_t,
88639 &_swigt__p_std__vectorT_double_t,
88640 &_swigt__p_std__vectorT_faiss__BufferList__Buffer_t,
88641 &_swigt__p_std__vectorT_faiss__HNSW__NodeDistFarther_t,
88642 &_swigt__p_std__vectorT_faiss__Index_p_t,
88643 &_swigt__p_std__vectorT_faiss__InvertedLists_const_p_t,
88644 &_swigt__p_std__vectorT_faiss__InvertedLists_p_t,
88645 &_swigt__p_std__vectorT_faiss__OnDiskInvertedLists__List_t,
88646 &_swigt__p_std__vectorT_faiss__OperatingPoint_t,
88647 &_swigt__p_std__vectorT_faiss__ParameterRange_t,
88648 &_swigt__p_std__vectorT_faiss__RangeSearchPartialResult__QueryResult_t,
88649 &_swigt__p_std__vectorT_faiss__VectorTransform_p_t,
88650 &_swigt__p_std__vectorT_faiss__gpu__GpuResources_p_t,
88651 &_swigt__p_std__vectorT_float_t,
88652 &_swigt__p_std__vectorT_int_t,
88653 &_swigt__p_std__vectorT_long_t,
88654 &_swigt__p_std__vectorT_omp_lock_t_t,
88655 &_swigt__p_std__vectorT_std__vectorT_float_t_t,
88656 &_swigt__p_std__vectorT_std__vectorT_long_t_t,
88657 &_swigt__p_std__vectorT_std__vectorT_uint8_t_t_t,
88658 &_swigt__p_std__vectorT_std__vectorT_unsigned_long_t_t,
88659 &_swigt__p_std__vectorT_unsigned_char_t,
88660 &_swigt__p_std__vectorT_unsigned_long_t,
88661 &_swigt__p_storage_idx_t,
88662 &_swigt__p_uint32_t,
88663 &_swigt__p_unsigned_char,
88664 &_swigt__p_unsigned_long,
88668 static swig_cast_info _swigc__p_Crev[] = { {&_swigt__p_Crev, 0, 0, 0},{0, 0, 0, 0}};
88669 static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
88670 static swig_cast_info _swigc__p_MapLong2Long[] = { {&_swigt__p_MapLong2Long, 0, 0, 0},{0, 0, 0, 0}};
88671 static swig_cast_info _swigc__p_Node[] = { {&_swigt__p_Node, 0, 0, 0},{0, 0, 0, 0}};
88672 static swig_cast_info _swigc__p_T[] = { {&_swigt__p_T, 0, 0, 0},{0, 0, 0, 0}};
88673 static swig_cast_info _swigc__p_TI[] = { {&_swigt__p_TI, 0, 0, 0},{0, 0, 0, 0}};
88674 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
88675 static swig_cast_info _swigc__p_cublasHandle_t[] = { {&_swigt__p_cublasHandle_t, 0, 0, 0},{0, 0, 0, 0}};
88676 static swig_cast_info _swigc__p_cudaStream_t[] = { {&_swigt__p_cudaStream_t, 0, 0, 0},{0, 0, 0, 0}};
88677 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
88678 static swig_cast_info _swigc__p_faiss__ArrayInvertedLists[] = { {&_swigt__p_faiss__ArrayInvertedLists, 0, 0, 0},{0, 0, 0, 0}};
88679 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}};
88680 static swig_cast_info _swigc__p_faiss__BinaryInvertedListScanner[] = { {&_swigt__p_faiss__BinaryInvertedListScanner, 0, 0, 0},{0, 0, 0, 0}};
88681 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}};
88682 static swig_cast_info _swigc__p_faiss__Cloner[] = { {&_swigt__p_faiss__Cloner, 0, 0, 0},{0, 0, 0, 0}};
88683 static swig_cast_info _swigc__p_faiss__Clustering[] = { {&_swigt__p_faiss__Clustering, 0, 0, 0},{0, 0, 0, 0}};
88684 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}};
88685 static swig_cast_info _swigc__p_faiss__ConcatenatedInvertedLists[] = { {&_swigt__p_faiss__ConcatenatedInvertedLists, 0, 0, 0},{0, 0, 0, 0}};
88686 static swig_cast_info _swigc__p_faiss__GenHammingComputer16[] = { {&_swigt__p_faiss__GenHammingComputer16, 0, 0, 0},{0, 0, 0, 0}};
88687 static swig_cast_info _swigc__p_faiss__GenHammingComputer32[] = { {&_swigt__p_faiss__GenHammingComputer32, 0, 0, 0},{0, 0, 0, 0}};
88688 static swig_cast_info _swigc__p_faiss__GenHammingComputer8[] = { {&_swigt__p_faiss__GenHammingComputer8, 0, 0, 0},{0, 0, 0, 0}};
88689 static swig_cast_info _swigc__p_faiss__GenHammingComputerM8[] = { {&_swigt__p_faiss__GenHammingComputerM8, 0, 0, 0},{0, 0, 0, 0}};
88690 static swig_cast_info _swigc__p_faiss__HNSW[] = { {&_swigt__p_faiss__HNSW, 0, 0, 0},{0, 0, 0, 0}};
88691 static swig_cast_info _swigc__p_faiss__HNSWStats[] = { {&_swigt__p_faiss__HNSWStats, 0, 0, 0},{0, 0, 0, 0}};
88692 static swig_cast_info _swigc__p_faiss__HNSW__DistanceComputer[] = { {&_swigt__p_faiss__HNSW__DistanceComputer, 0, 0, 0},{0, 0, 0, 0}};
88693 static swig_cast_info _swigc__p_faiss__HNSW__MinimaxHeap[] = { {&_swigt__p_faiss__HNSW__MinimaxHeap, 0, 0, 0},{0, 0, 0, 0}};
88694 static swig_cast_info _swigc__p_faiss__HammingComputer16[] = { {&_swigt__p_faiss__HammingComputer16, 0, 0, 0},{0, 0, 0, 0}};
88695 static swig_cast_info _swigc__p_faiss__HammingComputer20[] = { {&_swigt__p_faiss__HammingComputer20, 0, 0, 0},{0, 0, 0, 0}};
88696 static swig_cast_info _swigc__p_faiss__HammingComputer32[] = { {&_swigt__p_faiss__HammingComputer32, 0, 0, 0},{0, 0, 0, 0}};
88697 static swig_cast_info _swigc__p_faiss__HammingComputer4[] = { {&_swigt__p_faiss__HammingComputer4, 0, 0, 0},{0, 0, 0, 0}};
88698 static swig_cast_info _swigc__p_faiss__HammingComputer64[] = { {&_swigt__p_faiss__HammingComputer64, 0, 0, 0},{0, 0, 0, 0}};
88699 static swig_cast_info _swigc__p_faiss__HammingComputer8[] = { {&_swigt__p_faiss__HammingComputer8, 0, 0, 0},{0, 0, 0, 0}};
88700 static swig_cast_info _swigc__p_faiss__HammingComputerDefault[] = { {&_swigt__p_faiss__HammingComputerDefault, 0, 0, 0},{0, 0, 0, 0}};
88701 static swig_cast_info _swigc__p_faiss__HammingComputerM4[] = { {&_swigt__p_faiss__HammingComputerM4, 0, 0, 0},{0, 0, 0, 0}};
88702 static swig_cast_info _swigc__p_faiss__HammingComputerM8[] = { {&_swigt__p_faiss__HammingComputerM8, 0, 0, 0},{0, 0, 0, 0}};
88703 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}};
88704 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}};
88705 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}};
88706 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}};
88707 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}};
88708 static swig_cast_info _swigc__p_faiss__IDSelectorBatch[] = { {&_swigt__p_faiss__IDSelectorBatch, 0, 0, 0},{0, 0, 0, 0}};
88709 static swig_cast_info _swigc__p_faiss__IDSelectorRange[] = { {&_swigt__p_faiss__IDSelectorRange, 0, 0, 0},{0, 0, 0, 0}};
88710 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}};
88711 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}};
88712 static swig_cast_info _swigc__p_faiss__IVFPQSearchParameters[] = { {&_swigt__p_faiss__IVFPQSearchParameters, 0, 0, 0},{0, 0, 0, 0}};
88713 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}};
88714 static swig_cast_info _swigc__p_faiss__Index[] = { {&_swigt__p_faiss__IndexPQ, _p_faiss__IndexPQTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIVFFlatDedup, _p_faiss__IndexIVFFlatDedupTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexPreTransform, _p_faiss__IndexPreTransformTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__Index, 0, 0, 0}, {&_swigt__p_faiss__IndexSplitVectors, _p_faiss__IndexSplitVectorsTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIDMap2, _p_faiss__IndexIDMap2To_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIVFFlat, _p_faiss__IndexIVFFlatTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexIVFFlat, _p_faiss__gpu__GpuIndexIVFFlatTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__MultiIndexQuantizer, _p_faiss__MultiIndexQuantizerTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexScalarQuantizer, _p_faiss__IndexScalarQuantizerTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIVFScalarQuantizer, _p_faiss__IndexIVFScalarQuantizerTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexRefineFlat, _p_faiss__IndexRefineFlatTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIVFPQ, _p_faiss__IndexIVFPQTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexIVFPQ, _p_faiss__gpu__GpuIndexIVFPQTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexLSH, _p_faiss__IndexLSHTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexHNSWSQ, _p_faiss__IndexHNSWSQTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__gpu__IndexProxy, _p_faiss__gpu__IndexProxyTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndex, _p_faiss__gpu__GpuIndexTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIDMap, _p_faiss__IndexIDMapTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexHNSW2Level, _p_faiss__IndexHNSW2LevelTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__Index2Layer, _p_faiss__Index2LayerTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexFlatL2, _p_faiss__IndexFlatL2To_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexFlatL2, _p_faiss__gpu__GpuIndexFlatL2To_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexHNSWFlat, _p_faiss__IndexHNSWFlatTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIVFPQR, _p_faiss__IndexIVFPQRTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexFlat1D, _p_faiss__IndexFlat1DTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexFlat, _p_faiss__IndexFlatTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexFlat, _p_faiss__gpu__GpuIndexFlatTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexFlatIP, _p_faiss__IndexFlatIPTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexFlatIP, _p_faiss__gpu__GpuIndexFlatIPTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexHNSW, _p_faiss__IndexHNSWTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexHNSWPQ, _p_faiss__IndexHNSWPQTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexFlatL2BaseShift, _p_faiss__IndexFlatL2BaseShiftTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexIVF, _p_faiss__gpu__GpuIndexIVFTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexIVF, _p_faiss__IndexIVFTo_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__MultiIndexQuantizer2, _p_faiss__MultiIndexQuantizer2To_p_faiss__Index, 0, 0}, {&_swigt__p_faiss__IndexShards, _p_faiss__IndexShardsTo_p_faiss__Index, 0, 0},{0, 0, 0, 0}};
88715 static swig_cast_info _swigc__p_faiss__Index2Layer[] = { {&_swigt__p_faiss__Index2Layer, 0, 0, 0},{0, 0, 0, 0}};
88716 static swig_cast_info _swigc__p_faiss__IndexBinary[] = { {&_swigt__p_faiss__IndexBinaryFlat, _p_faiss__IndexBinaryFlatTo_p_faiss__IndexBinary, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexBinaryFlat, _p_faiss__gpu__GpuIndexBinaryFlatTo_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}};
88717 static swig_cast_info _swigc__p_faiss__IndexBinaryFlat[] = { {&_swigt__p_faiss__IndexBinaryFlat, 0, 0, 0},{0, 0, 0, 0}};
88718 static swig_cast_info _swigc__p_faiss__IndexBinaryFromFloat[] = { {&_swigt__p_faiss__IndexBinaryFromFloat, 0, 0, 0},{0, 0, 0, 0}};
88719 static swig_cast_info _swigc__p_faiss__IndexBinaryHNSW[] = { {&_swigt__p_faiss__IndexBinaryHNSW, 0, 0, 0},{0, 0, 0, 0}};
88720 static swig_cast_info _swigc__p_faiss__IndexBinaryIVF[] = { {&_swigt__p_faiss__IndexBinaryIVF, 0, 0, 0},{0, 0, 0, 0}};
88721 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}};
88722 static swig_cast_info _swigc__p_faiss__IndexFlat1D[] = { {&_swigt__p_faiss__IndexFlat1D, 0, 0, 0},{0, 0, 0, 0}};
88723 static swig_cast_info _swigc__p_faiss__IndexFlatIP[] = { {&_swigt__p_faiss__IndexFlatIP, 0, 0, 0},{0, 0, 0, 0}};
88724 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}};
88725 static swig_cast_info _swigc__p_faiss__IndexFlatL2BaseShift[] = { {&_swigt__p_faiss__IndexFlatL2BaseShift, 0, 0, 0},{0, 0, 0, 0}};
88726 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}};
88727 static swig_cast_info _swigc__p_faiss__IndexHNSW2Level[] = { {&_swigt__p_faiss__IndexHNSW2Level, 0, 0, 0},{0, 0, 0, 0}};
88728 static swig_cast_info _swigc__p_faiss__IndexHNSWFlat[] = { {&_swigt__p_faiss__IndexHNSWFlat, 0, 0, 0},{0, 0, 0, 0}};
88729 static swig_cast_info _swigc__p_faiss__IndexHNSWPQ[] = { {&_swigt__p_faiss__IndexHNSWPQ, 0, 0, 0},{0, 0, 0, 0}};
88730 static swig_cast_info _swigc__p_faiss__IndexHNSWSQ[] = { {&_swigt__p_faiss__IndexHNSWSQ, 0, 0, 0},{0, 0, 0, 0}};
88731 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}};
88732 static swig_cast_info _swigc__p_faiss__IndexIDMap2[] = { {&_swigt__p_faiss__IndexIDMap2, 0, 0, 0},{0, 0, 0, 0}};
88733 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}};
88734 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}};
88735 static swig_cast_info _swigc__p_faiss__IndexIVFFlatDedup[] = { {&_swigt__p_faiss__IndexIVFFlatDedup, 0, 0, 0},{0, 0, 0, 0}};
88736 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}};
88737 static swig_cast_info _swigc__p_faiss__IndexIVFPQR[] = { {&_swigt__p_faiss__IndexIVFPQR, 0, 0, 0},{0, 0, 0, 0}};
88738 static swig_cast_info _swigc__p_faiss__IndexIVFPQStats[] = { {&_swigt__p_faiss__IndexIVFPQStats, 0, 0, 0},{0, 0, 0, 0}};
88739 static swig_cast_info _swigc__p_faiss__IndexIVFScalarQuantizer[] = { {&_swigt__p_faiss__IndexIVFScalarQuantizer, 0, 0, 0},{0, 0, 0, 0}};
88740 static swig_cast_info _swigc__p_faiss__IndexIVFStats[] = { {&_swigt__p_faiss__IndexIVFStats, 0, 0, 0},{0, 0, 0, 0}};
88741 static swig_cast_info _swigc__p_faiss__IndexLSH[] = { {&_swigt__p_faiss__IndexLSH, 0, 0, 0},{0, 0, 0, 0}};
88742 static swig_cast_info _swigc__p_faiss__IndexPQ[] = { {&_swigt__p_faiss__IndexPQ, 0, 0, 0},{0, 0, 0, 0}};
88743 static swig_cast_info _swigc__p_faiss__IndexPQStats[] = { {&_swigt__p_faiss__IndexPQStats, 0, 0, 0},{0, 0, 0, 0}};
88744 static swig_cast_info _swigc__p_faiss__IndexPreTransform[] = { {&_swigt__p_faiss__IndexPreTransform, 0, 0, 0},{0, 0, 0, 0}};
88745 static swig_cast_info _swigc__p_faiss__IndexRefineFlat[] = { {&_swigt__p_faiss__IndexRefineFlat, 0, 0, 0},{0, 0, 0, 0}};
88746 static swig_cast_info _swigc__p_faiss__IndexScalarQuantizer[] = { {&_swigt__p_faiss__IndexScalarQuantizer, 0, 0, 0},{0, 0, 0, 0}};
88747 static swig_cast_info _swigc__p_faiss__IndexShards[] = { {&_swigt__p_faiss__IndexShards, 0, 0, 0},{0, 0, 0, 0}};
88748 static swig_cast_info _swigc__p_faiss__IndexSplitVectors[] = { {&_swigt__p_faiss__IndexSplitVectors, 0, 0, 0},{0, 0, 0, 0}};
88749 static swig_cast_info _swigc__p_faiss__IntersectionCriterion[] = { {&_swigt__p_faiss__IntersectionCriterion, 0, 0, 0},{0, 0, 0, 0}};
88750 static swig_cast_info _swigc__p_faiss__InvertedListScanner[] = { {&_swigt__p_faiss__InvertedListScanner, 0, 0, 0},{0, 0, 0, 0}};
88751 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}};
88752 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}};
88753 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}};
88754 static swig_cast_info _swigc__p_faiss__LockLevels[] = { {&_swigt__p_faiss__LockLevels, 0, 0, 0},{0, 0, 0, 0}};
88755 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}};
88756 static swig_cast_info _swigc__p_faiss__MultiIndexQuantizer2[] = { {&_swigt__p_faiss__MultiIndexQuantizer2, 0, 0, 0},{0, 0, 0, 0}};
88757 static swig_cast_info _swigc__p_faiss__NormalizationTransform[] = { {&_swigt__p_faiss__NormalizationTransform, 0, 0, 0},{0, 0, 0, 0}};
88758 static swig_cast_info _swigc__p_faiss__OPQMatrix[] = { {&_swigt__p_faiss__OPQMatrix, 0, 0, 0},{0, 0, 0, 0}};
88759 static swig_cast_info _swigc__p_faiss__OnDiskInvertedLists[] = { {&_swigt__p_faiss__OnDiskInvertedLists, 0, 0, 0},{0, 0, 0, 0}};
88760 static swig_cast_info _swigc__p_faiss__OnDiskInvertedLists__OngoingPrefetch[] = { {&_swigt__p_faiss__OnDiskInvertedLists__OngoingPrefetch, 0, 0, 0},{0, 0, 0, 0}};
88761 static swig_cast_info _swigc__p_faiss__OneRecallAtRCriterion[] = { {&_swigt__p_faiss__OneRecallAtRCriterion, 0, 0, 0},{0, 0, 0, 0}};
88762 static swig_cast_info _swigc__p_faiss__OperatingPoint[] = { {&_swigt__p_faiss__OperatingPoint, 0, 0, 0},{0, 0, 0, 0}};
88763 static swig_cast_info _swigc__p_faiss__OperatingPoints[] = { {&_swigt__p_faiss__OperatingPoints, 0, 0, 0},{0, 0, 0, 0}};
88764 static swig_cast_info _swigc__p_faiss__PCAMatrix[] = { {&_swigt__p_faiss__PCAMatrix, 0, 0, 0},{0, 0, 0, 0}};
88765 static swig_cast_info _swigc__p_faiss__ParameterRange[] = { {&_swigt__p_faiss__ParameterRange, 0, 0, 0},{0, 0, 0, 0}};
88766 static swig_cast_info _swigc__p_faiss__ParameterSpace[] = { {&_swigt__p_faiss__ParameterSpace, 0, 0, 0}, {&_swigt__p_faiss__gpu__GpuParameterSpace, _p_faiss__gpu__GpuParameterSpaceTo_p_faiss__ParameterSpace, 0, 0},{0, 0, 0, 0}};
88767 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}};
88768 static swig_cast_info _swigc__p_faiss__PolysemousTraining[] = { {&_swigt__p_faiss__PolysemousTraining, 0, 0, 0},{0, 0, 0, 0}};
88769 static swig_cast_info _swigc__p_faiss__ProductQuantizer[] = { {&_swigt__p_faiss__ProductQuantizer, 0, 0, 0},{0, 0, 0, 0}};
88770 static swig_cast_info _swigc__p_faiss__RandomGenerator[] = { {&_swigt__p_faiss__RandomGenerator, 0, 0, 0},{0, 0, 0, 0}};
88771 static swig_cast_info _swigc__p_faiss__RandomRotationMatrix[] = { {&_swigt__p_faiss__RandomRotationMatrix, 0, 0, 0},{0, 0, 0, 0}};
88772 static swig_cast_info _swigc__p_faiss__RangeSearchPartialResult[] = { {&_swigt__p_faiss__RangeSearchPartialResult, 0, 0, 0},{0, 0, 0, 0}};
88773 static swig_cast_info _swigc__p_faiss__RangeSearchPartialResult__QueryResult[] = { {&_swigt__p_faiss__RangeSearchPartialResult__QueryResult, 0, 0, 0},{0, 0, 0, 0}};
88774 static swig_cast_info _swigc__p_faiss__RangeSearchResult[] = { {&_swigt__p_faiss__RangeSearchResult, 0, 0, 0},{0, 0, 0, 0}};
88775 static swig_cast_info _swigc__p_faiss__ReconstructFromNeighbors[] = { {&_swigt__p_faiss__ReconstructFromNeighbors, 0, 0, 0},{0, 0, 0, 0}};
88776 static swig_cast_info _swigc__p_faiss__RemapDimensionsTransform[] = { {&_swigt__p_faiss__RemapDimensionsTransform, 0, 0, 0},{0, 0, 0, 0}};
88777 static swig_cast_info _swigc__p_faiss__ReproduceDistancesObjective[] = { {&_swigt__p_faiss__ReproduceDistancesObjective, 0, 0, 0},{0, 0, 0, 0}};
88778 static swig_cast_info _swigc__p_faiss__ScalarQuantizer[] = { {&_swigt__p_faiss__ScalarQuantizer, 0, 0, 0},{0, 0, 0, 0}};
88779 static swig_cast_info _swigc__p_faiss__ScalarQuantizer__DistanceComputer[] = { {&_swigt__p_faiss__ScalarQuantizer__DistanceComputer, 0, 0, 0},{0, 0, 0, 0}};
88780 static swig_cast_info _swigc__p_faiss__SimulatedAnnealingOptimizer[] = { {&_swigt__p_faiss__SimulatedAnnealingOptimizer, 0, 0, 0},{0, 0, 0, 0}};
88781 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}};
88782 static swig_cast_info _swigc__p_faiss__VectorIOReader[] = { {&_swigt__p_faiss__VectorIOReader, 0, 0, 0},{0, 0, 0, 0}};
88783 static swig_cast_info _swigc__p_faiss__VectorIOWriter[] = { {&_swigt__p_faiss__VectorIOWriter, 0, 0, 0},{0, 0, 0, 0}};
88784 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}};
88785 static swig_cast_info _swigc__p_faiss__VisitedTable[] = { {&_swigt__p_faiss__VisitedTable, 0, 0, 0},{0, 0, 0, 0}};
88786 static swig_cast_info _swigc__p_faiss__gpu__FlatIndex[] = { {&_swigt__p_faiss__gpu__FlatIndex, 0, 0, 0},{0, 0, 0, 0}};
88787 static swig_cast_info _swigc__p_faiss__gpu__GpuClonerOptions[] = { {&_swigt__p_faiss__gpu__GpuClonerOptions, 0, 0, 0}, {&_swigt__p_faiss__gpu__GpuMultipleClonerOptions, _p_faiss__gpu__GpuMultipleClonerOptionsTo_p_faiss__gpu__GpuClonerOptions, 0, 0},{0, 0, 0, 0}};
88788 static swig_cast_info _swigc__p_faiss__gpu__GpuIndex[] = { {&_swigt__p_faiss__gpu__GpuIndex, 0, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexFlat, _p_faiss__gpu__GpuIndexFlatTo_p_faiss__gpu__GpuIndex, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexFlatL2, _p_faiss__gpu__GpuIndexFlatL2To_p_faiss__gpu__GpuIndex, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexIVF, _p_faiss__gpu__GpuIndexIVFTo_p_faiss__gpu__GpuIndex, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexIVFPQ, _p_faiss__gpu__GpuIndexIVFPQTo_p_faiss__gpu__GpuIndex, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexIVFFlat, _p_faiss__gpu__GpuIndexIVFFlatTo_p_faiss__gpu__GpuIndex, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexFlatIP, _p_faiss__gpu__GpuIndexFlatIPTo_p_faiss__gpu__GpuIndex, 0, 0},{0, 0, 0, 0}};
88789 static swig_cast_info _swigc__p_faiss__gpu__GpuIndexBinaryFlat[] = { {&_swigt__p_faiss__gpu__GpuIndexBinaryFlat, 0, 0, 0},{0, 0, 0, 0}};
88790 static swig_cast_info _swigc__p_faiss__gpu__GpuIndexBinaryFlatConfig[] = { {&_swigt__p_faiss__gpu__GpuIndexBinaryFlatConfig, 0, 0, 0},{0, 0, 0, 0}};
88791 static swig_cast_info _swigc__p_faiss__gpu__GpuIndexConfig[] = { {&_swigt__p_faiss__gpu__GpuIndexIVFPQConfig, _p_faiss__gpu__GpuIndexIVFPQConfigTo_p_faiss__gpu__GpuIndexConfig, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexConfig, 0, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexFlatConfig, _p_faiss__gpu__GpuIndexFlatConfigTo_p_faiss__gpu__GpuIndexConfig, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexIVFConfig, _p_faiss__gpu__GpuIndexIVFConfigTo_p_faiss__gpu__GpuIndexConfig, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexIVFFlatConfig, _p_faiss__gpu__GpuIndexIVFFlatConfigTo_p_faiss__gpu__GpuIndexConfig, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexBinaryFlatConfig, _p_faiss__gpu__GpuIndexBinaryFlatConfigTo_p_faiss__gpu__GpuIndexConfig, 0, 0},{0, 0, 0, 0}};
88792 static swig_cast_info _swigc__p_faiss__gpu__GpuIndexFlat[] = { {&_swigt__p_faiss__gpu__GpuIndexFlat, 0, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexFlatL2, _p_faiss__gpu__GpuIndexFlatL2To_p_faiss__gpu__GpuIndexFlat, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexFlatIP, _p_faiss__gpu__GpuIndexFlatIPTo_p_faiss__gpu__GpuIndexFlat, 0, 0},{0, 0, 0, 0}};
88793 static swig_cast_info _swigc__p_faiss__gpu__GpuIndexFlatConfig[] = { {&_swigt__p_faiss__gpu__GpuIndexFlatConfig, 0, 0, 0},{0, 0, 0, 0}};
88794 static swig_cast_info _swigc__p_faiss__gpu__GpuIndexFlatIP[] = { {&_swigt__p_faiss__gpu__GpuIndexFlatIP, 0, 0, 0},{0, 0, 0, 0}};
88795 static swig_cast_info _swigc__p_faiss__gpu__GpuIndexFlatL2[] = { {&_swigt__p_faiss__gpu__GpuIndexFlatL2, 0, 0, 0},{0, 0, 0, 0}};
88796 static swig_cast_info _swigc__p_faiss__gpu__GpuIndexIVF[] = { {&_swigt__p_faiss__gpu__GpuIndexIVF, 0, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexIVFPQ, _p_faiss__gpu__GpuIndexIVFPQTo_p_faiss__gpu__GpuIndexIVF, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexIVFFlat, _p_faiss__gpu__GpuIndexIVFFlatTo_p_faiss__gpu__GpuIndexIVF, 0, 0},{0, 0, 0, 0}};
88797 static swig_cast_info _swigc__p_faiss__gpu__GpuIndexIVFConfig[] = { {&_swigt__p_faiss__gpu__GpuIndexIVFPQConfig, _p_faiss__gpu__GpuIndexIVFPQConfigTo_p_faiss__gpu__GpuIndexIVFConfig, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexIVFConfig, 0, 0, 0}, {&_swigt__p_faiss__gpu__GpuIndexIVFFlatConfig, _p_faiss__gpu__GpuIndexIVFFlatConfigTo_p_faiss__gpu__GpuIndexIVFConfig, 0, 0},{0, 0, 0, 0}};
88798 static swig_cast_info _swigc__p_faiss__gpu__GpuIndexIVFFlat[] = { {&_swigt__p_faiss__gpu__GpuIndexIVFFlat, 0, 0, 0},{0, 0, 0, 0}};
88799 static swig_cast_info _swigc__p_faiss__gpu__GpuIndexIVFFlatConfig[] = { {&_swigt__p_faiss__gpu__GpuIndexIVFFlatConfig, 0, 0, 0},{0, 0, 0, 0}};
88800 static swig_cast_info _swigc__p_faiss__gpu__GpuIndexIVFPQ[] = { {&_swigt__p_faiss__gpu__GpuIndexIVFPQ, 0, 0, 0},{0, 0, 0, 0}};
88801 static swig_cast_info _swigc__p_faiss__gpu__GpuIndexIVFPQConfig[] = { {&_swigt__p_faiss__gpu__GpuIndexIVFPQConfig, 0, 0, 0},{0, 0, 0, 0}};
88802 static swig_cast_info _swigc__p_faiss__gpu__GpuMultipleClonerOptions[] = { {&_swigt__p_faiss__gpu__GpuMultipleClonerOptions, 0, 0, 0},{0, 0, 0, 0}};
88803 static swig_cast_info _swigc__p_faiss__gpu__GpuParameterSpace[] = { {&_swigt__p_faiss__gpu__GpuParameterSpace, 0, 0, 0},{0, 0, 0, 0}};
88804 static swig_cast_info _swigc__p_faiss__gpu__GpuResources[] = { {&_swigt__p_faiss__gpu__GpuResources, 0, 0, 0}, {&_swigt__p_faiss__gpu__StandardGpuResources, _p_faiss__gpu__StandardGpuResourcesTo_p_faiss__gpu__GpuResources, 0, 0},{0, 0, 0, 0}};
88805 static swig_cast_info _swigc__p_faiss__gpu__IndexProxy[] = { {&_swigt__p_faiss__gpu__IndexProxy, 0, 0, 0},{0, 0, 0, 0}};
88806 static swig_cast_info _swigc__p_faiss__gpu__StandardGpuResources[] = { {&_swigt__p_faiss__gpu__StandardGpuResources, 0, 0, 0},{0, 0, 0, 0}};
88807 static swig_cast_info _swigc__p_faiss__ivflib__SlidingIndexWindow[] = { {&_swigt__p_faiss__ivflib__SlidingIndexWindow, 0, 0, 0},{0, 0, 0, 0}};
88808 static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}};
88809 static swig_cast_info _swigc__p_idx_t[] = { {&_swigt__p_idx_t, 0, 0, 0},{0, 0, 0, 0}};
88810 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
88811 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
88812 static swig_cast_info _swigc__p_omp_lock_t[] = { {&_swigt__p_omp_lock_t, 0, 0, 0},{0, 0, 0, 0}};
88813 static swig_cast_info _swigc__p_p_faiss__IndexPQ[] = {{&_swigt__p_p_faiss__IndexPQ, 0, 0, 0},{0, 0, 0, 0}};
88814 static swig_cast_info _swigc__p_p_faiss__IndexIVFFlatDedup[] = {{&_swigt__p_p_faiss__IndexIVFFlatDedup, 0, 0, 0},{0, 0, 0, 0}};
88815 static swig_cast_info _swigc__p_p_faiss__IndexPreTransform[] = {{&_swigt__p_p_faiss__IndexPreTransform, 0, 0, 0},{0, 0, 0, 0}};
88816 static swig_cast_info _swigc__p_p_faiss__IndexSplitVectors[] = {{&_swigt__p_p_faiss__IndexSplitVectors, 0, 0, 0},{0, 0, 0, 0}};
88817 static swig_cast_info _swigc__p_p_faiss__IndexIDMap2[] = {{&_swigt__p_p_faiss__IndexIDMap2, 0, 0, 0},{0, 0, 0, 0}};
88818 static swig_cast_info _swigc__p_p_faiss__IndexIVFFlat[] = {{&_swigt__p_p_faiss__IndexIVFFlat, 0, 0, 0},{0, 0, 0, 0}};
88819 static swig_cast_info _swigc__p_p_faiss__gpu__GpuIndexIVFFlat[] = {{&_swigt__p_p_faiss__gpu__GpuIndexIVFFlat, 0, 0, 0},{0, 0, 0, 0}};
88820 static swig_cast_info _swigc__p_p_faiss__MultiIndexQuantizer[] = {{&_swigt__p_p_faiss__MultiIndexQuantizer, 0, 0, 0},{0, 0, 0, 0}};
88821 static swig_cast_info _swigc__p_p_faiss__IndexScalarQuantizer[] = {{&_swigt__p_p_faiss__IndexScalarQuantizer, 0, 0, 0},{0, 0, 0, 0}};
88822 static swig_cast_info _swigc__p_p_faiss__IndexIVFScalarQuantizer[] = {{&_swigt__p_p_faiss__IndexIVFScalarQuantizer, 0, 0, 0},{0, 0, 0, 0}};
88823 static swig_cast_info _swigc__p_p_faiss__IndexRefineFlat[] = {{&_swigt__p_p_faiss__IndexRefineFlat, 0, 0, 0},{0, 0, 0, 0}};
88824 static swig_cast_info _swigc__p_p_faiss__gpu__GpuIndexIVFPQ[] = {{&_swigt__p_p_faiss__gpu__GpuIndexIVFPQ, 0, 0, 0},{0, 0, 0, 0}};
88825 static swig_cast_info _swigc__p_p_faiss__IndexIVFPQ[] = {{&_swigt__p_p_faiss__IndexIVFPQ, 0, 0, 0},{0, 0, 0, 0}};
88826 static swig_cast_info _swigc__p_p_faiss__IndexLSH[] = {{&_swigt__p_p_faiss__IndexLSH, 0, 0, 0},{0, 0, 0, 0}};
88827 static swig_cast_info _swigc__p_p_faiss__IndexHNSWSQ[] = {{&_swigt__p_p_faiss__IndexHNSWSQ, 0, 0, 0},{0, 0, 0, 0}};
88828 static swig_cast_info _swigc__p_p_faiss__gpu__IndexProxy[] = {{&_swigt__p_p_faiss__gpu__IndexProxy, 0, 0, 0},{0, 0, 0, 0}};
88829 static swig_cast_info _swigc__p_p_faiss__gpu__GpuIndex[] = {{&_swigt__p_p_faiss__gpu__GpuIndex, 0, 0, 0},{0, 0, 0, 0}};
88830 static swig_cast_info _swigc__p_p_faiss__IndexIDMap[] = {{&_swigt__p_p_faiss__IndexIDMap, 0, 0, 0},{0, 0, 0, 0}};
88831 static swig_cast_info _swigc__p_p_faiss__IndexHNSW2Level[] = {{&_swigt__p_p_faiss__IndexHNSW2Level, 0, 0, 0},{0, 0, 0, 0}};
88832 static swig_cast_info _swigc__p_p_faiss__Index2Layer[] = {{&_swigt__p_p_faiss__Index2Layer, 0, 0, 0},{0, 0, 0, 0}};
88833 static swig_cast_info _swigc__p_p_faiss__gpu__GpuIndexFlatL2[] = {{&_swigt__p_p_faiss__gpu__GpuIndexFlatL2, 0, 0, 0},{0, 0, 0, 0}};
88834 static swig_cast_info _swigc__p_p_faiss__IndexFlatL2[] = {{&_swigt__p_p_faiss__IndexFlatL2, 0, 0, 0},{0, 0, 0, 0}};
88835 static swig_cast_info _swigc__p_p_faiss__IndexHNSWFlat[] = {{&_swigt__p_p_faiss__IndexHNSWFlat, 0, 0, 0},{0, 0, 0, 0}};
88836 static swig_cast_info _swigc__p_p_faiss__IndexIVFPQR[] = {{&_swigt__p_p_faiss__IndexIVFPQR, 0, 0, 0},{0, 0, 0, 0}};
88837 static swig_cast_info _swigc__p_p_faiss__IndexFlat1D[] = {{&_swigt__p_p_faiss__IndexFlat1D, 0, 0, 0},{0, 0, 0, 0}};
88838 static swig_cast_info _swigc__p_p_faiss__gpu__GpuIndexFlat[] = {{&_swigt__p_p_faiss__gpu__GpuIndexFlat, 0, 0, 0},{0, 0, 0, 0}};
88839 static swig_cast_info _swigc__p_p_faiss__IndexFlat[] = {{&_swigt__p_p_faiss__IndexFlat, 0, 0, 0},{0, 0, 0, 0}};
88840 static swig_cast_info _swigc__p_p_faiss__gpu__GpuIndexFlatIP[] = {{&_swigt__p_p_faiss__gpu__GpuIndexFlatIP, 0, 0, 0},{0, 0, 0, 0}};
88841 static swig_cast_info _swigc__p_p_faiss__IndexFlatIP[] = {{&_swigt__p_p_faiss__IndexFlatIP, 0, 0, 0},{0, 0, 0, 0}};
88842 static swig_cast_info _swigc__p_p_faiss__IndexHNSW[] = {{&_swigt__p_p_faiss__IndexHNSW, 0, 0, 0},{0, 0, 0, 0}};
88843 static swig_cast_info _swigc__p_p_faiss__IndexHNSWPQ[] = {{&_swigt__p_p_faiss__IndexHNSWPQ, 0, 0, 0},{0, 0, 0, 0}};
88844 static swig_cast_info _swigc__p_p_faiss__IndexFlatL2BaseShift[] = {{&_swigt__p_p_faiss__IndexFlatL2BaseShift, 0, 0, 0},{0, 0, 0, 0}};
88845 static swig_cast_info _swigc__p_p_faiss__gpu__GpuIndexIVF[] = {{&_swigt__p_p_faiss__gpu__GpuIndexIVF, 0, 0, 0},{0, 0, 0, 0}};
88846 static swig_cast_info _swigc__p_p_faiss__IndexIVF[] = {{&_swigt__p_p_faiss__IndexIVF, 0, 0, 0},{0, 0, 0, 0}};
88847 static swig_cast_info _swigc__p_p_faiss__MultiIndexQuantizer2[] = {{&_swigt__p_p_faiss__MultiIndexQuantizer2, 0, 0, 0},{0, 0, 0, 0}};
88848 static swig_cast_info _swigc__p_p_faiss__IndexShards[] = {{&_swigt__p_p_faiss__IndexShards, 0, 0, 0},{0, 0, 0, 0}};
88849 static swig_cast_info _swigc__p_p_faiss__Index[] = { {&_swigt__p_p_faiss__IndexPQ, _p_p_faiss__IndexPQTo_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__IndexPreTransform, _p_p_faiss__IndexPreTransformTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__Index, 0, 0, 0}, {&_swigt__p_p_faiss__IndexSplitVectors, _p_p_faiss__IndexSplitVectorsTo_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__IndexIVFFlat, _p_p_faiss__IndexIVFFlatTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__gpu__GpuIndexIVFFlat, _p_p_faiss__gpu__GpuIndexIVFFlatTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__MultiIndexQuantizer, _p_p_faiss__MultiIndexQuantizerTo_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__IndexIVFScalarQuantizer, _p_p_faiss__IndexIVFScalarQuantizerTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexRefineFlat, _p_p_faiss__IndexRefineFlatTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__gpu__GpuIndexIVFPQ, _p_p_faiss__gpu__GpuIndexIVFPQTo_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__IndexLSH, _p_p_faiss__IndexLSHTo_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__gpu__IndexProxy, _p_p_faiss__gpu__IndexProxyTo_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__gpu__GpuIndex, _p_p_faiss__gpu__GpuIndexTo_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__IndexHNSW2Level, _p_p_faiss__IndexHNSW2LevelTo_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__gpu__GpuIndexFlatL2, _p_p_faiss__gpu__GpuIndexFlatL2To_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__IndexIVFPQR, _p_p_faiss__IndexIVFPQRTo_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__gpu__GpuIndexFlat, _p_p_faiss__gpu__GpuIndexFlatTo_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__gpu__GpuIndexFlatIP, _p_p_faiss__gpu__GpuIndexFlatIPTo_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__IndexHNSWPQ, _p_p_faiss__IndexHNSWPQTo_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__gpu__GpuIndexIVF, _p_p_faiss__gpu__GpuIndexIVFTo_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__MultiIndexQuantizer2, _p_p_faiss__MultiIndexQuantizer2To_p_p_faiss__Index, 0, 0}, {&_swigt__p_p_faiss__IndexShards, _p_p_faiss__IndexShardsTo_p_p_faiss__Index, 0, 0},{0, 0, 0, 0}};
88850 static swig_cast_info _swigc__p_p_faiss__ArrayInvertedLists[] = {{&_swigt__p_p_faiss__ArrayInvertedLists, 0, 0, 0},{0, 0, 0, 0}};
88851 static swig_cast_info _swigc__p_p_faiss__ConcatenatedInvertedLists[] = {{&_swigt__p_p_faiss__ConcatenatedInvertedLists, 0, 0, 0},{0, 0, 0, 0}};
88852 static swig_cast_info _swigc__p_p_faiss__OnDiskInvertedLists[] = {{&_swigt__p_p_faiss__OnDiskInvertedLists, 0, 0, 0},{0, 0, 0, 0}};
88853 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}};
88854 static swig_cast_info _swigc__p_p_faiss__RandomRotationMatrix[] = {{&_swigt__p_p_faiss__RandomRotationMatrix, 0, 0, 0},{0, 0, 0, 0}};
88855 static swig_cast_info _swigc__p_p_faiss__PCAMatrix[] = {{&_swigt__p_p_faiss__PCAMatrix, 0, 0, 0},{0, 0, 0, 0}};
88856 static swig_cast_info _swigc__p_p_faiss__OPQMatrix[] = {{&_swigt__p_p_faiss__OPQMatrix, 0, 0, 0},{0, 0, 0, 0}};
88857 static swig_cast_info _swigc__p_p_faiss__LinearTransform[] = {{&_swigt__p_p_faiss__LinearTransform, 0, 0, 0},{0, 0, 0, 0}};
88858 static swig_cast_info _swigc__p_p_faiss__RemapDimensionsTransform[] = {{&_swigt__p_p_faiss__RemapDimensionsTransform, 0, 0, 0},{0, 0, 0, 0}};
88859 static swig_cast_info _swigc__p_p_faiss__NormalizationTransform[] = {{&_swigt__p_p_faiss__NormalizationTransform, 0, 0, 0},{0, 0, 0, 0}};
88860 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}};
88861 static swig_cast_info _swigc__p_p_faiss__gpu__StandardGpuResources[] = {{&_swigt__p_p_faiss__gpu__StandardGpuResources, 0, 0, 0},{0, 0, 0, 0}};
88862 static swig_cast_info _swigc__p_p_faiss__gpu__GpuResources[] = { {&_swigt__p_p_faiss__gpu__GpuResources, 0, 0, 0}, {&_swigt__p_p_faiss__gpu__StandardGpuResources, _p_p_faiss__gpu__StandardGpuResourcesTo_p_p_faiss__gpu__GpuResources, 0, 0},{0, 0, 0, 0}};
88863 static swig_cast_info _swigc__p_p_void[] = { {&_swigt__p_p_void, 0, 0, 0},{0, 0, 0, 0}};
88864 static swig_cast_info _swigc__p_std__functionT_void_ffaiss__Index_pF_t[] = { {&_swigt__p_std__functionT_void_ffaiss__Index_pF_t, 0, 0, 0},{0, 0, 0, 0}};
88865 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}};
88866 static swig_cast_info _swigc__p_std__mt19937[] = { {&_swigt__p_std__mt19937, 0, 0, 0},{0, 0, 0, 0}};
88867 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}};
88868 static swig_cast_info _swigc__p_std__pairT_void_p_unsigned_long_t[] = { {&_swigt__p_std__pairT_void_p_unsigned_long_t, 0, 0, 0},{0, 0, 0, 0}};
88869 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}};
88870 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}};
88871 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}};
88872 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}};
88873 static swig_cast_info _swigc__p_std__vectorT_char_t[] = { {&_swigt__p_std__vectorT_char_t, 0, 0, 0},{0, 0, 0, 0}};
88874 static swig_cast_info _swigc__p_std__vectorT_cudaStream_t_t[] = { {&_swigt__p_std__vectorT_cudaStream_t_t, 0, 0, 0},{0, 0, 0, 0}};
88875 static swig_cast_info _swigc__p_std__vectorT_double_t[] = { {&_swigt__p_std__vectorT_double_t, 0, 0, 0},{0, 0, 0, 0}};
88876 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}};
88877 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}};
88878 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}};
88879 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}};
88880 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}};
88881 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}};
88882 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}};
88883 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}};
88884 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}};
88885 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}};
88886 static swig_cast_info _swigc__p_std__vectorT_faiss__gpu__GpuResources_p_t[] = { {&_swigt__p_std__vectorT_faiss__gpu__GpuResources_p_t, 0, 0, 0},{0, 0, 0, 0}};
88887 static swig_cast_info _swigc__p_std__vectorT_float_t[] = { {&_swigt__p_std__vectorT_float_t, 0, 0, 0},{0, 0, 0, 0}};
88888 static swig_cast_info _swigc__p_std__vectorT_int_t[] = { {&_swigt__p_std__vectorT_int_t, 0, 0, 0},{0, 0, 0, 0}};
88889 static swig_cast_info _swigc__p_std__vectorT_long_t[] = { {&_swigt__p_std__vectorT_long_t, 0, 0, 0},{0, 0, 0, 0}};
88890 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}};
88891 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}};
88892 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}};
88893 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}};
88894 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}};
88895 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}};
88896 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}};
88897 static swig_cast_info _swigc__p_storage_idx_t[] = { {&_swigt__p_storage_idx_t, 0, 0, 0},{0, 0, 0, 0}};
88898 static swig_cast_info _swigc__p_uint32_t[] = { {&_swigt__p_uint32_t, 0, 0, 0},{0, 0, 0, 0}};
88899 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
88900 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
88901 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
88906 _swigc__p_MapLong2Long,
88911 _swigc__p_cublasHandle_t,
88912 _swigc__p_cudaStream_t,
88914 _swigc__p_faiss__ArrayInvertedLists,
88915 _swigc__p_faiss__AutoTuneCriterion,
88916 _swigc__p_faiss__BinaryInvertedListScanner,
88917 _swigc__p_faiss__BufferList,
88918 _swigc__p_faiss__Cloner,
88919 _swigc__p_faiss__Clustering,
88920 _swigc__p_faiss__ClusteringParameters,
88921 _swigc__p_faiss__ConcatenatedInvertedLists,
88922 _swigc__p_faiss__GenHammingComputer16,
88923 _swigc__p_faiss__GenHammingComputer32,
88924 _swigc__p_faiss__GenHammingComputer8,
88925 _swigc__p_faiss__GenHammingComputerM8,
88926 _swigc__p_faiss__HNSW,
88927 _swigc__p_faiss__HNSWStats,
88928 _swigc__p_faiss__HNSW__DistanceComputer,
88929 _swigc__p_faiss__HNSW__MinimaxHeap,
88930 _swigc__p_faiss__HammingComputer16,
88931 _swigc__p_faiss__HammingComputer20,
88932 _swigc__p_faiss__HammingComputer32,
88933 _swigc__p_faiss__HammingComputer4,
88934 _swigc__p_faiss__HammingComputer64,
88935 _swigc__p_faiss__HammingComputer8,
88936 _swigc__p_faiss__HammingComputerDefault,
88937 _swigc__p_faiss__HammingComputerM4,
88938 _swigc__p_faiss__HammingComputerM8,
88939 _swigc__p_faiss__HeapArrayT_faiss__CMaxT_float_long_t_t,
88940 _swigc__p_faiss__HeapArrayT_faiss__CMaxT_int_long_t_t,
88941 _swigc__p_faiss__HeapArrayT_faiss__CMinT_float_long_t_t,
88942 _swigc__p_faiss__HeapArrayT_faiss__CMinT_int_long_t_t,
88943 _swigc__p_faiss__IDSelector,
88944 _swigc__p_faiss__IDSelectorBatch,
88945 _swigc__p_faiss__IDSelectorRange,
88946 _swigc__p_faiss__IOReader,
88947 _swigc__p_faiss__IOWriter,
88948 _swigc__p_faiss__IVFPQSearchParameters,
88949 _swigc__p_faiss__IVFSearchParameters,
88950 _swigc__p_faiss__Index,
88951 _swigc__p_faiss__Index2Layer,
88952 _swigc__p_faiss__IndexBinary,
88953 _swigc__p_faiss__IndexBinaryFlat,
88954 _swigc__p_faiss__IndexBinaryFromFloat,
88955 _swigc__p_faiss__IndexBinaryHNSW,
88956 _swigc__p_faiss__IndexBinaryIVF,
88957 _swigc__p_faiss__IndexFlat,
88958 _swigc__p_faiss__IndexFlat1D,
88959 _swigc__p_faiss__IndexFlatIP,
88960 _swigc__p_faiss__IndexFlatL2,
88961 _swigc__p_faiss__IndexFlatL2BaseShift,
88962 _swigc__p_faiss__IndexHNSW,
88963 _swigc__p_faiss__IndexHNSW2Level,
88964 _swigc__p_faiss__IndexHNSWFlat,
88965 _swigc__p_faiss__IndexHNSWPQ,
88966 _swigc__p_faiss__IndexHNSWSQ,
88967 _swigc__p_faiss__IndexIDMap,
88968 _swigc__p_faiss__IndexIDMap2,
88969 _swigc__p_faiss__IndexIVF,
88970 _swigc__p_faiss__IndexIVFFlat,
88971 _swigc__p_faiss__IndexIVFFlatDedup,
88972 _swigc__p_faiss__IndexIVFPQ,
88973 _swigc__p_faiss__IndexIVFPQR,
88974 _swigc__p_faiss__IndexIVFPQStats,
88975 _swigc__p_faiss__IndexIVFScalarQuantizer,
88976 _swigc__p_faiss__IndexIVFStats,
88977 _swigc__p_faiss__IndexLSH,
88978 _swigc__p_faiss__IndexPQ,
88979 _swigc__p_faiss__IndexPQStats,
88980 _swigc__p_faiss__IndexPreTransform,
88981 _swigc__p_faiss__IndexRefineFlat,
88982 _swigc__p_faiss__IndexScalarQuantizer,
88983 _swigc__p_faiss__IndexShards,
88984 _swigc__p_faiss__IndexSplitVectors,
88985 _swigc__p_faiss__IntersectionCriterion,
88986 _swigc__p_faiss__InvertedListScanner,
88987 _swigc__p_faiss__InvertedLists,
88988 _swigc__p_faiss__Level1Quantizer,
88989 _swigc__p_faiss__LinearTransform,
88990 _swigc__p_faiss__LockLevels,
88991 _swigc__p_faiss__MultiIndexQuantizer,
88992 _swigc__p_faiss__MultiIndexQuantizer2,
88993 _swigc__p_faiss__NormalizationTransform,
88994 _swigc__p_faiss__OPQMatrix,
88995 _swigc__p_faiss__OnDiskInvertedLists,
88996 _swigc__p_faiss__OnDiskInvertedLists__OngoingPrefetch,
88997 _swigc__p_faiss__OneRecallAtRCriterion,
88998 _swigc__p_faiss__OperatingPoint,
88999 _swigc__p_faiss__OperatingPoints,
89000 _swigc__p_faiss__PCAMatrix,
89001 _swigc__p_faiss__ParameterRange,
89002 _swigc__p_faiss__ParameterSpace,
89003 _swigc__p_faiss__PermutationObjective,
89004 _swigc__p_faiss__PolysemousTraining,
89005 _swigc__p_faiss__ProductQuantizer,
89006 _swigc__p_faiss__RandomGenerator,
89007 _swigc__p_faiss__RandomRotationMatrix,
89008 _swigc__p_faiss__RangeSearchPartialResult,
89009 _swigc__p_faiss__RangeSearchPartialResult__QueryResult,
89010 _swigc__p_faiss__RangeSearchResult,
89011 _swigc__p_faiss__ReconstructFromNeighbors,
89012 _swigc__p_faiss__RemapDimensionsTransform,
89013 _swigc__p_faiss__ReproduceDistancesObjective,
89014 _swigc__p_faiss__ScalarQuantizer,
89015 _swigc__p_faiss__ScalarQuantizer__DistanceComputer,
89016 _swigc__p_faiss__SimulatedAnnealingOptimizer,
89017 _swigc__p_faiss__SimulatedAnnealingParameters,
89018 _swigc__p_faiss__VectorIOReader,
89019 _swigc__p_faiss__VectorIOWriter,
89020 _swigc__p_faiss__VectorTransform,
89021 _swigc__p_faiss__VisitedTable,
89022 _swigc__p_faiss__gpu__FlatIndex,
89023 _swigc__p_faiss__gpu__GpuClonerOptions,
89024 _swigc__p_faiss__gpu__GpuIndex,
89025 _swigc__p_faiss__gpu__GpuIndexBinaryFlat,
89026 _swigc__p_faiss__gpu__GpuIndexBinaryFlatConfig,
89027 _swigc__p_faiss__gpu__GpuIndexConfig,
89028 _swigc__p_faiss__gpu__GpuIndexFlat,
89029 _swigc__p_faiss__gpu__GpuIndexFlatConfig,
89030 _swigc__p_faiss__gpu__GpuIndexFlatIP,
89031 _swigc__p_faiss__gpu__GpuIndexFlatL2,
89032 _swigc__p_faiss__gpu__GpuIndexIVF,
89033 _swigc__p_faiss__gpu__GpuIndexIVFConfig,
89034 _swigc__p_faiss__gpu__GpuIndexIVFFlat,
89035 _swigc__p_faiss__gpu__GpuIndexIVFFlatConfig,
89036 _swigc__p_faiss__gpu__GpuIndexIVFPQ,
89037 _swigc__p_faiss__gpu__GpuIndexIVFPQConfig,
89038 _swigc__p_faiss__gpu__GpuMultipleClonerOptions,
89039 _swigc__p_faiss__gpu__GpuParameterSpace,
89040 _swigc__p_faiss__gpu__GpuResources,
89041 _swigc__p_faiss__gpu__IndexProxy,
89042 _swigc__p_faiss__gpu__StandardGpuResources,
89043 _swigc__p_faiss__ivflib__SlidingIndexWindow,
89048 _swigc__p_omp_lock_t,
89049 _swigc__p_p_faiss__ArrayInvertedLists,
89050 _swigc__p_p_faiss__ConcatenatedInvertedLists,
89051 _swigc__p_p_faiss__Index,
89052 _swigc__p_p_faiss__Index2Layer,
89053 _swigc__p_p_faiss__IndexFlat,
89054 _swigc__p_p_faiss__IndexFlat1D,
89055 _swigc__p_p_faiss__IndexFlatIP,
89056 _swigc__p_p_faiss__IndexFlatL2,
89057 _swigc__p_p_faiss__IndexFlatL2BaseShift,
89058 _swigc__p_p_faiss__IndexHNSW,
89059 _swigc__p_p_faiss__IndexHNSW2Level,
89060 _swigc__p_p_faiss__IndexHNSWFlat,
89061 _swigc__p_p_faiss__IndexHNSWPQ,
89062 _swigc__p_p_faiss__IndexHNSWSQ,
89063 _swigc__p_p_faiss__IndexIDMap,
89064 _swigc__p_p_faiss__IndexIDMap2,
89065 _swigc__p_p_faiss__IndexIVF,
89066 _swigc__p_p_faiss__IndexIVFFlat,
89067 _swigc__p_p_faiss__IndexIVFFlatDedup,
89068 _swigc__p_p_faiss__IndexIVFPQ,
89069 _swigc__p_p_faiss__IndexIVFPQR,
89070 _swigc__p_p_faiss__IndexIVFScalarQuantizer,
89071 _swigc__p_p_faiss__IndexLSH,
89072 _swigc__p_p_faiss__IndexPQ,
89073 _swigc__p_p_faiss__IndexPreTransform,
89074 _swigc__p_p_faiss__IndexRefineFlat,
89075 _swigc__p_p_faiss__IndexScalarQuantizer,
89076 _swigc__p_p_faiss__IndexShards,
89077 _swigc__p_p_faiss__IndexSplitVectors,
89078 _swigc__p_p_faiss__InvertedLists,
89079 _swigc__p_p_faiss__LinearTransform,
89080 _swigc__p_p_faiss__MultiIndexQuantizer,
89081 _swigc__p_p_faiss__MultiIndexQuantizer2,
89082 _swigc__p_p_faiss__NormalizationTransform,
89083 _swigc__p_p_faiss__OPQMatrix,
89084 _swigc__p_p_faiss__OnDiskInvertedLists,
89085 _swigc__p_p_faiss__PCAMatrix,
89086 _swigc__p_p_faiss__RandomRotationMatrix,
89087 _swigc__p_p_faiss__RemapDimensionsTransform,
89088 _swigc__p_p_faiss__VectorTransform,
89089 _swigc__p_p_faiss__gpu__GpuIndex,
89090 _swigc__p_p_faiss__gpu__GpuIndexFlat,
89091 _swigc__p_p_faiss__gpu__GpuIndexFlatIP,
89092 _swigc__p_p_faiss__gpu__GpuIndexFlatL2,
89093 _swigc__p_p_faiss__gpu__GpuIndexIVF,
89094 _swigc__p_p_faiss__gpu__GpuIndexIVFFlat,
89095 _swigc__p_p_faiss__gpu__GpuIndexIVFPQ,
89096 _swigc__p_p_faiss__gpu__GpuResources,
89097 _swigc__p_p_faiss__gpu__IndexProxy,
89098 _swigc__p_p_faiss__gpu__StandardGpuResources,
89100 _swigc__p_std__functionT_void_ffaiss__Index_pF_t,
89101 _swigc__p_std__listT_faiss__OnDiskInvertedLists__Slot_t,
89102 _swigc__p_std__mt19937,
89103 _swigc__p_std__pairT_float_int_t,
89104 _swigc__p_std__pairT_void_p_unsigned_long_t,
89105 _swigc__p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t,
89106 _swigc__p_std__priority_queueT_std__pairT_float_int_t_t,
89107 _swigc__p_std__unordered_mapT_long_long_t,
89108 _swigc__p_std__unordered_multimapT_long_long_t,
89109 _swigc__p_std__vectorT_char_t,
89110 _swigc__p_std__vectorT_cudaStream_t_t,
89111 _swigc__p_std__vectorT_double_t,
89112 _swigc__p_std__vectorT_faiss__BufferList__Buffer_t,
89113 _swigc__p_std__vectorT_faiss__HNSW__NodeDistFarther_t,
89114 _swigc__p_std__vectorT_faiss__Index_p_t,
89115 _swigc__p_std__vectorT_faiss__InvertedLists_const_p_t,
89116 _swigc__p_std__vectorT_faiss__InvertedLists_p_t,
89117 _swigc__p_std__vectorT_faiss__OnDiskInvertedLists__List_t,
89118 _swigc__p_std__vectorT_faiss__OperatingPoint_t,
89119 _swigc__p_std__vectorT_faiss__ParameterRange_t,
89120 _swigc__p_std__vectorT_faiss__RangeSearchPartialResult__QueryResult_t,
89121 _swigc__p_std__vectorT_faiss__VectorTransform_p_t,
89122 _swigc__p_std__vectorT_faiss__gpu__GpuResources_p_t,
89123 _swigc__p_std__vectorT_float_t,
89124 _swigc__p_std__vectorT_int_t,
89125 _swigc__p_std__vectorT_long_t,
89126 _swigc__p_std__vectorT_omp_lock_t_t,
89127 _swigc__p_std__vectorT_std__vectorT_float_t_t,
89128 _swigc__p_std__vectorT_std__vectorT_long_t_t,
89129 _swigc__p_std__vectorT_std__vectorT_uint8_t_t_t,
89130 _swigc__p_std__vectorT_std__vectorT_unsigned_long_t_t,
89131 _swigc__p_std__vectorT_unsigned_char_t,
89132 _swigc__p_std__vectorT_unsigned_long_t,
89133 _swigc__p_storage_idx_t,
89134 _swigc__p_uint32_t,
89135 _swigc__p_unsigned_char,
89136 _swigc__p_unsigned_long,
89144 {0, 0, 0, 0.0, 0, 0}};
89198 #define SWIGRUNTIME_DEBUG
89203 SWIG_InitializeModule(
void *clientdata) {
89209 if (swig_module.next==0) {
89211 swig_module.type_initial = swig_type_initial;
89212 swig_module.cast_initial = swig_cast_initial;
89213 swig_module.next = &swig_module;
89220 module_head = SWIG_GetModule(clientdata);
89221 if (!module_head) {
89224 SWIG_SetModule(clientdata, &swig_module);
89229 if (iter==&swig_module) {
89234 }
while (iter!= module_head);
89237 swig_module.next = module_head->next;
89238 module_head->next = &swig_module;
89245 if (init == 0)
return;
89248 #ifdef SWIGRUNTIME_DEBUG
89249 printf(
"SWIG_InitializeModule: size %d\n", swig_module.size);
89251 for (i = 0; i < swig_module.size; ++i) {
89256 #ifdef SWIGRUNTIME_DEBUG
89257 printf(
"SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
89261 if (swig_module.next != &swig_module) {
89262 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
89266 #ifdef SWIGRUNTIME_DEBUG
89267 printf(
"SWIG_InitializeModule: found type %s\n", type->name);
89269 if (swig_module.type_initial[i]->clientdata) {
89270 type->clientdata = swig_module.type_initial[i]->clientdata;
89271 #ifdef SWIGRUNTIME_DEBUG
89272 printf(
"SWIG_InitializeModule: found and overwrite type %s \n", type->name);
89276 type = swig_module.type_initial[i];
89280 cast = swig_module.cast_initial[i];
89281 while (cast->type) {
89284 #ifdef SWIGRUNTIME_DEBUG
89285 printf(
"SWIG_InitializeModule: look cast %s\n", cast->type->name);
89287 if (swig_module.next != &swig_module) {
89288 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
89289 #ifdef SWIGRUNTIME_DEBUG
89290 if (ret) printf(
"SWIG_InitializeModule: found cast %s\n", ret->name);
89294 if (type == swig_module.type_initial[i]) {
89295 #ifdef SWIGRUNTIME_DEBUG
89296 printf(
"SWIG_InitializeModule: skip old type %s\n", ret->name);
89303 #ifdef SWIGRUNTIME_DEBUG
89304 if (ocast) printf(
"SWIG_InitializeModule: skip old cast %s\n", ret->name);
89306 if (!ocast) ret = 0;
89311 #ifdef SWIGRUNTIME_DEBUG
89312 printf(
"SWIG_InitializeModule: adding cast %s\n", cast->type->name);
89315 type->cast->prev = cast;
89316 cast->next = type->cast;
89323 swig_module.types[i] = type;
89325 swig_module.types[i] = 0;
89327 #ifdef SWIGRUNTIME_DEBUG
89328 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
89329 for (i = 0; i < swig_module.size; ++i) {
89332 printf(
"SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
89333 while (cast->type) {
89334 printf(
"SWIG_InitializeModule: cast type %s\n", cast->type->name);
89338 printf(
"---- Total casts: %d\n",j);
89340 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
89350 SWIG_PropagateClientData(
void) {
89353 static int init_run = 0;
89355 if (init_run)
return;
89358 for (i = 0; i < swig_module.size; i++) {
89359 if (swig_module.types[i]->clientdata) {
89360 equiv = swig_module.types[i]->cast;
89362 if (!equiv->converter) {
89363 if (equiv->type && !equiv->type->clientdata)
89364 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
89366 equiv = equiv->next;
89387 #define SWIG_newvarlink() SWIG_Python_newvarlink()
89388 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
89389 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
89397 PyObject *(*get_attr)(void);
89398 int (*set_attr)(PyObject *);
89407 SWIGINTERN PyObject *
89409 #if PY_VERSION_HEX >= 0x03000000
89410 return PyUnicode_InternFromString(
"<Swig global variables>");
89412 return PyString_FromString(
"<Swig global variables>");
89416 SWIGINTERN PyObject *
89418 #if PY_VERSION_HEX >= 0x03000000
89419 PyObject *str = PyUnicode_InternFromString(
"(");
89423 for (var = v->vars; var; var=var->next) {
89424 tail = PyUnicode_FromString(var->name);
89425 joined = PyUnicode_Concat(str, tail);
89430 tail = PyUnicode_InternFromString(
", ");
89431 joined = PyUnicode_Concat(str, tail);
89437 tail = PyUnicode_InternFromString(
")");
89438 joined = PyUnicode_Concat(str, tail);
89443 PyObject *str = PyString_FromString(
"(");
89445 for (var = v->vars; var; var=var->next) {
89446 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
89447 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(
", "));
89449 PyString_ConcatAndDel(&str,PyString_FromString(
")"));
89457 PyObject *str = swig_varlink_str(v);
89458 fprintf(fp,
"Swig global variables ");
89459 fprintf(fp,
"%s\n", tmp = SWIG_Python_str_AsChar(str));
89460 SWIG_Python_str_DelForPy3(tmp);
89476 SWIGINTERN PyObject *
89478 PyObject *res = NULL;
89481 if (strcmp(var->name,n) == 0) {
89482 res = (*var->get_attr)();
89487 if (res == NULL && !PyErr_Occurred()) {
89488 PyErr_Format(PyExc_AttributeError,
"Unknown C global variable '%s'", n);
89498 if (strcmp(var->name,n) == 0) {
89499 res = (*var->set_attr)(p);
89504 if (res == 1 && !PyErr_Occurred()) {
89505 PyErr_Format(PyExc_AttributeError,
"Unknown C global variable '%s'", n);
89510 SWIGINTERN PyTypeObject*
89511 swig_varlink_type(
void) {
89512 static char varlink__doc__[] =
"Swig var link object";
89513 static PyTypeObject varlink_type;
89514 static int type_init = 0;
89516 const PyTypeObject tmp = {
89517 #if PY_VERSION_HEX >= 0x03000000
89518 PyVarObject_HEAD_INIT(NULL, 0)
89520 PyObject_HEAD_INIT(NULL)
89523 (
char *)
"swigvarlink",
89526 (destructor) swig_varlink_dealloc,
89527 (printfunc) swig_varlink_print,
89528 (getattrfunc) swig_varlink_getattr,
89529 (setattrfunc) swig_varlink_setattr,
89531 (reprfunc) swig_varlink_repr,
89537 (reprfunc) swig_varlink_str,
89547 #if PY_VERSION_HEX >= 0x02020000
89548 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
89550 #if PY_VERSION_HEX >= 0x02030000
89553 #if PY_VERSION_HEX >= 0x02060000
89556 #if PY_VERSION_HEX >= 0x03040000
89559 #ifdef COUNT_ALLOCS
89563 #if PY_VERSION_HEX >= 0x02050000
89569 varlink_type = tmp;
89571 #if PY_VERSION_HEX < 0x02020000
89572 varlink_type.ob_type = &PyType_Type;
89574 if (PyType_Ready(&varlink_type) < 0)
89578 return &varlink_type;
89582 SWIGINTERN PyObject *
89583 SWIG_Python_newvarlink(
void) {
89588 return ((PyObject*) result);
89592 SWIG_Python_addvarlink(PyObject *p,
char *name, PyObject *(*get_attr)(
void),
int (*set_attr)(PyObject *p)) {
89596 size_t size = strlen(name)+1;
89597 gv->name = (
char *)malloc(size);
89599 strncpy(gv->name,name,size);
89600 gv->get_attr = get_attr;
89601 gv->set_attr = set_attr;
89602 gv->next = v->vars;
89608 SWIGINTERN PyObject *
89609 SWIG_globals(
void) {
89610 static PyObject *_SWIG_globals = 0;
89611 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
89612 return _SWIG_globals;
89621 SWIG_Python_InstallConstants(PyObject *d,
swig_const_info constants[]) {
89624 for (i = 0; constants[i].type; ++i) {
89625 switch(constants[i].type) {
89626 case SWIG_PY_POINTER:
89627 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
89629 case SWIG_PY_BINARY:
89630 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
89637 PyDict_SetItemString(d, constants[i].name, obj);
89648 SWIG_Python_FixMethods(PyMethodDef *methods,
89653 for (i = 0; methods[i].ml_name; ++i) {
89654 const char *c = methods[i].ml_doc;
89656 c = strstr(c,
"swig_ptr: ");
89660 const char *name = c + 10;
89661 for (j = 0; const_table[j].type; ++j) {
89662 if (strncmp(const_table[j].name, name,
89663 strlen(const_table[j].name)) == 0) {
89664 ci = &(const_table[j]);
89669 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
89671 size_t shift = (ci->ptype) - types;
89673 size_t ldoc = (c - methods[i].ml_doc);
89674 size_t lptr = strlen(ty->name)+2*
sizeof(
void*)+2;
89675 char *ndoc = (
char*)malloc(ldoc + lptr + 10);
89678 strncpy(buff, methods[i].ml_doc, ldoc);
89680 strncpy(buff,
"swig_ptr: ", 10);
89682 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
89683 methods[i].ml_doc = ndoc;
89704 #if PY_VERSION_HEX >= 0x03000000
89710 PyObject *m, *d, *md;
89711 #if PY_VERSION_HEX >= 0x03000000
89712 static struct PyModuleDef SWIG_module = {
89713 # if PY_VERSION_HEX >= 0x03020000
89714 PyModuleDef_HEAD_INIT,
89717 PyObject_HEAD_INIT(NULL)
89723 (
char *) SWIG_name,
89734 #if defined(SWIGPYTHON_BUILTIN)
89736 0, 0, 0, 0, 0, 0, 0
89738 static PyGetSetDef this_getset_def = {
89739 (
char *)
"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
89741 static SwigPyGetSet thisown_getset_closure = {
89742 (PyCFunction) SwigPyObject_own,
89743 (PyCFunction) SwigPyObject_own
89745 static PyGetSetDef thisown_getset_def = {
89746 (
char *)
"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
89748 PyTypeObject *builtin_pytype;
89749 int builtin_base_count;
89752 PyGetSetDescrObject *static_getset;
89753 PyTypeObject *metatype;
89754 PyTypeObject *swigpyobject;
89756 PyObject *public_interface, *public_symbol;
89757 PyObject *this_descr;
89758 PyObject *thisown_descr;
89759 PyObject *
self = 0;
89762 (void)builtin_pytype;
89763 (void)builtin_base_count;
89764 (void)builtin_basetype;
89766 (void)static_getset;
89770 metatype = SwigPyObjectType();
89775 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
89777 #if PY_VERSION_HEX >= 0x03000000
89778 m = PyModule_Create(&SWIG_module);
89780 m = Py_InitModule((
char *) SWIG_name, SwigMethods);
89783 md = d = PyModule_GetDict(m);
89786 SWIG_InitializeModule(0);
89788 #ifdef SWIGPYTHON_BUILTIN
89789 swigpyobject = SwigPyObject_TypeOnce();
89791 SwigPyObject_stype = SWIG_MangledTypeQuery(
"_p_SwigPyObject");
89792 assert(SwigPyObject_stype);
89795 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
89796 SwigPyObject_clientdata.pytype = swigpyobject;
89797 }
else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) {
89798 PyErr_SetString(PyExc_RuntimeError,
"Import error: attempted to load two incompatible swig-generated modules.");
89799 # if PY_VERSION_HEX >= 0x03000000
89807 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
89811 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
89812 (void)thisown_descr;
89814 public_interface = PyList_New(0);
89816 (void)public_symbol;
89818 PyDict_SetItemString(md,
"__all__", public_interface);
89819 Py_DECREF(public_interface);
89820 for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
89821 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
89822 for (i = 0; swig_const_table[i].name != 0; ++i)
89823 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
89826 SWIG_InstallConstants(d,swig_const_table);
89828 PyDict_SetItemString(md,(
char *)
"cvar", SWIG_globals());
89829 SWIG_addvarlink(SWIG_globals(),(
char *)
"hamming_batch_size",Swig_var_hamming_batch_size_get, Swig_var_hamming_batch_size_set);
89830 SWIG_addvarlink(SWIG_globals(),(
char *)
"distance_compute_blas_threshold",Swig_var_distance_compute_blas_threshold_get, Swig_var_distance_compute_blas_threshold_set);
89831 SWIG_Python_SetConstant(d,
"FAISS_VERSION_MAJOR",SWIG_From_int(static_cast< int >(1)));
89832 SWIG_Python_SetConstant(d,
"FAISS_VERSION_MINOR",SWIG_From_int(static_cast< int >(4)));
89833 SWIG_Python_SetConstant(d,
"FAISS_VERSION_PATCH",SWIG_From_int(static_cast< int >(0)));
89834 SWIG_Python_SetConstant(d,
"METRIC_INNER_PRODUCT",SWIG_From_int(static_cast< int >(faiss::METRIC_INNER_PRODUCT)));
89835 SWIG_Python_SetConstant(d,
"METRIC_L2",SWIG_From_int(static_cast< int >(faiss::METRIC_L2)));
89836 SWIG_Python_SetConstant(d,
"ProductQuantizer_Train_default",SWIG_From_int(static_cast< int >(faiss::ProductQuantizer::Train_default)));
89841 SWIG_Python_SetConstant(d,
"PolysemousTraining_OT_None",SWIG_From_int(static_cast< int >(faiss::PolysemousTraining::OT_None)));
89844 SWIG_Python_SetConstant(d,
"IndexPQ_ST_PQ",SWIG_From_int(static_cast< int >(
faiss::IndexPQ::ST_PQ)));
89845 SWIG_Python_SetConstant(d,
"IndexPQ_ST_HE",SWIG_From_int(static_cast< int >(
faiss::IndexPQ::ST_HE)));
89850 SWIG_addvarlink(SWIG_globals(),(
char *)
"indexPQ_stats",Swig_var_indexPQ_stats_get, Swig_var_indexPQ_stats_set);
89851 SWIG_addvarlink(SWIG_globals(),(
char *)
"indexIVF_stats",Swig_var_indexIVF_stats_get, Swig_var_indexIVF_stats_set);
89855 SWIG_Python_SetConstant(d,
"ScalarQuantizer_QT_4bit_uniform",SWIG_From_int(static_cast< int >(faiss::ScalarQuantizer::QT_4bit_uniform)));
89856 SWIG_Python_SetConstant(d,
"ScalarQuantizer_QT_fp16",SWIG_From_int(static_cast< int >(faiss::ScalarQuantizer::QT_fp16)));
89861 SWIG_addvarlink(SWIG_globals(),(
char *)
"hnsw_stats",Swig_var_hnsw_stats_get, Swig_var_hnsw_stats_set);
89862 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);
89863 SWIG_addvarlink(SWIG_globals(),(
char *)
"indexIVFPQ_stats",Swig_var_indexIVFPQ_stats_get, Swig_var_indexIVFPQ_stats_set);
89864 SWIG_Python_SetConstant(d,
"INDICES_CPU",SWIG_From_int(static_cast< int >(faiss::gpu::INDICES_CPU)));
89865 SWIG_Python_SetConstant(d,
"INDICES_IVF",SWIG_From_int(static_cast< int >(faiss::gpu::INDICES_IVF)));
89866 SWIG_Python_SetConstant(d,
"INDICES_32_BIT",SWIG_From_int(static_cast< int >(faiss::gpu::INDICES_32_BIT)));
89867 SWIG_Python_SetConstant(d,
"INDICES_64_BIT",SWIG_From_int(static_cast< int >(faiss::gpu::INDICES_64_BIT)));
89868 SWIG_Python_SetConstant(d,
"Device",SWIG_From_int(static_cast< int >(faiss::gpu::Device)));
89869 SWIG_Python_SetConstant(d,
"Unified",SWIG_From_int(static_cast< int >(faiss::gpu::Unified)));
89870 SWIG_addvarlink(SWIG_globals(),(
char *)
"IO_FLAG_MMAP",Swig_var_IO_FLAG_MMAP_get, Swig_var_IO_FLAG_MMAP_set);
89871 SWIG_addvarlink(SWIG_globals(),(
char *)
"IO_FLAG_READ_ONLY",Swig_var_IO_FLAG_READ_ONLY_get, Swig_var_IO_FLAG_READ_ONLY_set);
89876 #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)
Holder of GPU resources for a particular flat index.
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"
set some options on how to copy to GPU
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
parameter space and setters for GPU indexes
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)