path
stringlengths 26
218
| content
stringlengths 0
231k
|
---|---|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/OnDiskInvertedListsIOHook.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class OnDiskInvertedListsIOHook {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected OnDiskInvertedListsIOHook(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(OnDiskInvertedListsIOHook obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_OnDiskInvertedListsIOHook(swigCPtr);
}
swigCPtr = 0;
}
}
public OnDiskInvertedListsIOHook() {
this(swigfaissJNI.new_OnDiskInvertedListsIOHook(), true);
}
public void write(InvertedLists ils, SWIGTYPE_p_IOWriter f) {
swigfaissJNI.OnDiskInvertedListsIOHook_write(swigCPtr, this, InvertedLists.getCPtr(ils), ils, SWIGTYPE_p_IOWriter.getCPtr(f));
}
public InvertedLists read(SWIGTYPE_p_IOReader f, int io_flags) {
long cPtr = swigfaissJNI.OnDiskInvertedListsIOHook_read(swigCPtr, this, SWIGTYPE_p_IOReader.getCPtr(f), io_flags);
return (cPtr == 0) ? null : new InvertedLists(cPtr, false);
}
public InvertedLists read_ArrayInvertedLists(SWIGTYPE_p_IOReader f, int io_flags, long nlist, long code_size, Uint64Vector sizes) {
long cPtr = swigfaissJNI.OnDiskInvertedListsIOHook_read_ArrayInvertedLists(swigCPtr, this, SWIGTYPE_p_IOReader.getCPtr(f), io_flags, nlist, code_size, Uint64Vector.getCPtr(sizes), sizes);
return (cPtr == 0) ? null : new InvertedLists(cPtr, false);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/OnDiskOneList.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class OnDiskOneList {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected OnDiskOneList(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(OnDiskOneList obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_OnDiskOneList(swigCPtr);
}
swigCPtr = 0;
}
}
public void setSize(long value) {
swigfaissJNI.OnDiskOneList_size_set(swigCPtr, this, value);
}
public long getSize() {
return swigfaissJNI.OnDiskOneList_size_get(swigCPtr, this);
}
public void setCapacity(long value) {
swigfaissJNI.OnDiskOneList_capacity_set(swigCPtr, this, value);
}
public long getCapacity() {
return swigfaissJNI.OnDiskOneList_capacity_get(swigCPtr, this);
}
public void setOffset(long value) {
swigfaissJNI.OnDiskOneList_offset_set(swigCPtr, this, value);
}
public long getOffset() {
return swigfaissJNI.OnDiskOneList_offset_get(swigCPtr, this);
}
public OnDiskOneList() {
this(swigfaissJNI.new_OnDiskOneList(), true);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/OneRecallAtRCriterion.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class OneRecallAtRCriterion extends AutoTuneCriterion {
private transient long swigCPtr;
protected OneRecallAtRCriterion(long cPtr, boolean cMemoryOwn) {
super(swigfaissJNI.OneRecallAtRCriterion_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(OneRecallAtRCriterion obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_OneRecallAtRCriterion(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setR(long value) {
swigfaissJNI.OneRecallAtRCriterion_R_set(swigCPtr, this, value);
}
public long getR() {
return swigfaissJNI.OneRecallAtRCriterion_R_get(swigCPtr, this);
}
public OneRecallAtRCriterion(long nq, long R) {
this(swigfaissJNI.new_OneRecallAtRCriterion(nq, R), true);
}
public double evaluate(SWIGTYPE_p_float D, LongVector I) {
return swigfaissJNI.OneRecallAtRCriterion_evaluate(swigCPtr, this, SWIGTYPE_p_float.getCPtr(D), SWIGTYPE_p_long_long.getCPtr(I.data()), I);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPoint.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class OperatingPoint {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected OperatingPoint(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(OperatingPoint obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_OperatingPoint(swigCPtr);
}
swigCPtr = 0;
}
}
public void setPerf(double value) {
swigfaissJNI.OperatingPoint_perf_set(swigCPtr, this, value);
}
public double getPerf() {
return swigfaissJNI.OperatingPoint_perf_get(swigCPtr, this);
}
public void setT(double value) {
swigfaissJNI.OperatingPoint_t_set(swigCPtr, this, value);
}
public double getT() {
return swigfaissJNI.OperatingPoint_t_get(swigCPtr, this);
}
public void setKey(String value) {
swigfaissJNI.OperatingPoint_key_set(swigCPtr, this, value);
}
public String getKey() {
return swigfaissJNI.OperatingPoint_key_get(swigCPtr, this);
}
public void setCno(long value) {
swigfaissJNI.OperatingPoint_cno_set(swigCPtr, this, value);
}
public long getCno() {
return swigfaissJNI.OperatingPoint_cno_get(swigCPtr, this);
}
public OperatingPoint() {
this(swigfaissJNI.new_OperatingPoint(), true);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPointVector.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class OperatingPointVector {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected OperatingPointVector(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(OperatingPointVector obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_OperatingPointVector(swigCPtr);
}
swigCPtr = 0;
}
}
public OperatingPointVector() {
this(swigfaissJNI.new_OperatingPointVector(), true);
}
public void push_back(OperatingPoint arg0) {
swigfaissJNI.OperatingPointVector_push_back(swigCPtr, this, OperatingPoint.getCPtr(arg0), arg0);
}
public void clear() {
swigfaissJNI.OperatingPointVector_clear(swigCPtr, this);
}
public OperatingPoint data() {
long cPtr = swigfaissJNI.OperatingPointVector_data(swigCPtr, this);
return (cPtr == 0) ? null : new OperatingPoint(cPtr, false);
}
public long size() {
return swigfaissJNI.OperatingPointVector_size(swigCPtr, this);
}
public OperatingPoint at(long n) {
return new OperatingPoint(swigfaissJNI.OperatingPointVector_at(swigCPtr, this, n), true);
}
public void resize(long n) {
swigfaissJNI.OperatingPointVector_resize(swigCPtr, this, n);
}
public void reserve(long n) {
swigfaissJNI.OperatingPointVector_reserve(swigCPtr, this, n);
}
public void swap(OperatingPointVector other) {
swigfaissJNI.OperatingPointVector_swap(swigCPtr, this, OperatingPointVector.getCPtr(other), other);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPoints.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class OperatingPoints {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected OperatingPoints(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(OperatingPoints obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_OperatingPoints(swigCPtr);
}
swigCPtr = 0;
}
}
public void setAll_pts(OperatingPointVector value) {
swigfaissJNI.OperatingPoints_all_pts_set(swigCPtr, this, OperatingPointVector.getCPtr(value), value);
}
public OperatingPointVector getAll_pts() {
long cPtr = swigfaissJNI.OperatingPoints_all_pts_get(swigCPtr, this);
return (cPtr == 0) ? null : new OperatingPointVector(cPtr, false);
}
public void setOptimal_pts(OperatingPointVector value) {
swigfaissJNI.OperatingPoints_optimal_pts_set(swigCPtr, this, OperatingPointVector.getCPtr(value), value);
}
public OperatingPointVector getOptimal_pts() {
long cPtr = swigfaissJNI.OperatingPoints_optimal_pts_get(swigCPtr, this);
return (cPtr == 0) ? null : new OperatingPointVector(cPtr, false);
}
public OperatingPoints() {
this(swigfaissJNI.new_OperatingPoints(), true);
}
public int merge_with(OperatingPoints other, String prefix) {
return swigfaissJNI.OperatingPoints_merge_with__SWIG_0(swigCPtr, this, OperatingPoints.getCPtr(other), other, prefix);
}
public int merge_with(OperatingPoints other) {
return swigfaissJNI.OperatingPoints_merge_with__SWIG_1(swigCPtr, this, OperatingPoints.getCPtr(other), other);
}
public void clear() {
swigfaissJNI.OperatingPoints_clear(swigCPtr, this);
}
public boolean add(double perf, double t, String key, long cno) {
return swigfaissJNI.OperatingPoints_add__SWIG_0(swigCPtr, this, perf, t, key, cno);
}
public boolean add(double perf, double t, String key) {
return swigfaissJNI.OperatingPoints_add__SWIG_1(swigCPtr, this, perf, t, key);
}
public double t_for_perf(double perf) {
return swigfaissJNI.OperatingPoints_t_for_perf(swigCPtr, this, perf);
}
public void display(boolean only_optimal) {
swigfaissJNI.OperatingPoints_display__SWIG_0(swigCPtr, this, only_optimal);
}
public void display() {
swigfaissJNI.OperatingPoints_display__SWIG_1(swigCPtr, this);
}
public void all_to_gnuplot(String fname) {
swigfaissJNI.OperatingPoints_all_to_gnuplot(swigCPtr, this, fname);
}
public void optimal_to_gnuplot(String fname) {
swigfaissJNI.OperatingPoints_optimal_to_gnuplot(swigCPtr, this, fname);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/PCAMatrix.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class PCAMatrix extends LinearTransform {
private transient long swigCPtr;
protected PCAMatrix(long cPtr, boolean cMemoryOwn) {
super(swigfaissJNI.PCAMatrix_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(PCAMatrix obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_PCAMatrix(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setEigen_power(float value) {
swigfaissJNI.PCAMatrix_eigen_power_set(swigCPtr, this, value);
}
public float getEigen_power() {
return swigfaissJNI.PCAMatrix_eigen_power_get(swigCPtr, this);
}
public void setEpsilon(float value) {
swigfaissJNI.PCAMatrix_epsilon_set(swigCPtr, this, value);
}
public float getEpsilon() {
return swigfaissJNI.PCAMatrix_epsilon_get(swigCPtr, this);
}
public void setRandom_rotation(boolean value) {
swigfaissJNI.PCAMatrix_random_rotation_set(swigCPtr, this, value);
}
public boolean getRandom_rotation() {
return swigfaissJNI.PCAMatrix_random_rotation_get(swigCPtr, this);
}
public void setMax_points_per_d(long value) {
swigfaissJNI.PCAMatrix_max_points_per_d_set(swigCPtr, this, value);
}
public long getMax_points_per_d() {
return swigfaissJNI.PCAMatrix_max_points_per_d_get(swigCPtr, this);
}
public void setBalanced_bins(int value) {
swigfaissJNI.PCAMatrix_balanced_bins_set(swigCPtr, this, value);
}
public int getBalanced_bins() {
return swigfaissJNI.PCAMatrix_balanced_bins_get(swigCPtr, this);
}
public void setMean(FloatVector value) {
swigfaissJNI.PCAMatrix_mean_set(swigCPtr, this, FloatVector.getCPtr(value), value);
}
public FloatVector getMean() {
long cPtr = swigfaissJNI.PCAMatrix_mean_get(swigCPtr, this);
return (cPtr == 0) ? null : new FloatVector(cPtr, false);
}
public void setEigenvalues(FloatVector value) {
swigfaissJNI.PCAMatrix_eigenvalues_set(swigCPtr, this, FloatVector.getCPtr(value), value);
}
public FloatVector getEigenvalues() {
long cPtr = swigfaissJNI.PCAMatrix_eigenvalues_get(swigCPtr, this);
return (cPtr == 0) ? null : new FloatVector(cPtr, false);
}
public void setPCAMat(FloatVector value) {
swigfaissJNI.PCAMatrix_PCAMat_set(swigCPtr, this, FloatVector.getCPtr(value), value);
}
public FloatVector getPCAMat() {
long cPtr = swigfaissJNI.PCAMatrix_PCAMat_get(swigCPtr, this);
return (cPtr == 0) ? null : new FloatVector(cPtr, false);
}
public PCAMatrix(int d_in, int d_out, float eigen_power, boolean random_rotation) {
this(swigfaissJNI.new_PCAMatrix__SWIG_0(d_in, d_out, eigen_power, random_rotation), true);
}
public PCAMatrix(int d_in, int d_out, float eigen_power) {
this(swigfaissJNI.new_PCAMatrix__SWIG_1(d_in, d_out, eigen_power), true);
}
public PCAMatrix(int d_in, int d_out) {
this(swigfaissJNI.new_PCAMatrix__SWIG_2(d_in, d_out), true);
}
public PCAMatrix(int d_in) {
this(swigfaissJNI.new_PCAMatrix__SWIG_3(d_in), true);
}
public PCAMatrix() {
this(swigfaissJNI.new_PCAMatrix__SWIG_4(), true);
}
public void train(long n, SWIGTYPE_p_float x) {
swigfaissJNI.PCAMatrix_train(swigCPtr, this, n, SWIGTYPE_p_float.getCPtr(x));
}
public void copy_from(PCAMatrix other) {
swigfaissJNI.PCAMatrix_copy_from(swigCPtr, this, PCAMatrix.getCPtr(other), other);
}
public void prepare_Ab() {
swigfaissJNI.PCAMatrix_prepare_Ab(swigCPtr, this);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoder16.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class PQDecoder16 {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected PQDecoder16(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(PQDecoder16 obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_PQDecoder16(swigCPtr);
}
swigCPtr = 0;
}
}
public void setCode(SWIGTYPE_p_uint16_t value) {
swigfaissJNI.PQDecoder16_code_set(swigCPtr, this, SWIGTYPE_p_uint16_t.getCPtr(value));
}
public SWIGTYPE_p_uint16_t getCode() {
long cPtr = swigfaissJNI.PQDecoder16_code_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_uint16_t(cPtr, false);
}
public PQDecoder16(SWIGTYPE_p_unsigned_char code, int nbits) {
this(swigfaissJNI.new_PQDecoder16(SWIGTYPE_p_unsigned_char.getCPtr(code), nbits), true);
}
public long decode() {
return swigfaissJNI.PQDecoder16_decode(swigCPtr, this);
}
public final static int nbits = swigfaissJNI.PQDecoder16_nbits_get();
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoder8.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class PQDecoder8 {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected PQDecoder8(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(PQDecoder8 obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_PQDecoder8(swigCPtr);
}
swigCPtr = 0;
}
}
public void setCode(SWIGTYPE_p_unsigned_char value) {
swigfaissJNI.PQDecoder8_code_set(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(value));
}
public SWIGTYPE_p_unsigned_char getCode() {
long cPtr = swigfaissJNI.PQDecoder8_code_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
}
public PQDecoder8(SWIGTYPE_p_unsigned_char code, int nbits) {
this(swigfaissJNI.new_PQDecoder8(SWIGTYPE_p_unsigned_char.getCPtr(code), nbits), true);
}
public long decode() {
return swigfaissJNI.PQDecoder8_decode(swigCPtr, this);
}
public final static int nbits = swigfaissJNI.PQDecoder8_nbits_get();
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoderGeneric.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class PQDecoderGeneric {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected PQDecoderGeneric(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(PQDecoderGeneric obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_PQDecoderGeneric(swigCPtr);
}
swigCPtr = 0;
}
}
public void setCode(SWIGTYPE_p_unsigned_char value) {
swigfaissJNI.PQDecoderGeneric_code_set(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(value));
}
public SWIGTYPE_p_unsigned_char getCode() {
long cPtr = swigfaissJNI.PQDecoderGeneric_code_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
}
public void setOffset(short value) {
swigfaissJNI.PQDecoderGeneric_offset_set(swigCPtr, this, value);
}
public short getOffset() {
return swigfaissJNI.PQDecoderGeneric_offset_get(swigCPtr, this);
}
public int getNbits() {
return swigfaissJNI.PQDecoderGeneric_nbits_get(swigCPtr, this);
}
public long getMask() {
return swigfaissJNI.PQDecoderGeneric_mask_get(swigCPtr, this);
}
public void setReg(short value) {
swigfaissJNI.PQDecoderGeneric_reg_set(swigCPtr, this, value);
}
public short getReg() {
return swigfaissJNI.PQDecoderGeneric_reg_get(swigCPtr, this);
}
public PQDecoderGeneric(SWIGTYPE_p_unsigned_char code, int nbits) {
this(swigfaissJNI.new_PQDecoderGeneric(SWIGTYPE_p_unsigned_char.getCPtr(code), nbits), true);
}
public long decode() {
return swigfaissJNI.PQDecoderGeneric_decode(swigCPtr, this);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoder16.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class PQEncoder16 {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected PQEncoder16(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(PQEncoder16 obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_PQEncoder16(swigCPtr);
}
swigCPtr = 0;
}
}
public void setCode(SWIGTYPE_p_uint16_t value) {
swigfaissJNI.PQEncoder16_code_set(swigCPtr, this, SWIGTYPE_p_uint16_t.getCPtr(value));
}
public SWIGTYPE_p_uint16_t getCode() {
long cPtr = swigfaissJNI.PQEncoder16_code_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_uint16_t(cPtr, false);
}
public PQEncoder16(SWIGTYPE_p_unsigned_char code, int nbits) {
this(swigfaissJNI.new_PQEncoder16(SWIGTYPE_p_unsigned_char.getCPtr(code), nbits), true);
}
public void encode(long x) {
swigfaissJNI.PQEncoder16_encode(swigCPtr, this, x);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoder8.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class PQEncoder8 {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected PQEncoder8(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(PQEncoder8 obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_PQEncoder8(swigCPtr);
}
swigCPtr = 0;
}
}
public void setCode(SWIGTYPE_p_unsigned_char value) {
swigfaissJNI.PQEncoder8_code_set(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(value));
}
public SWIGTYPE_p_unsigned_char getCode() {
long cPtr = swigfaissJNI.PQEncoder8_code_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
}
public PQEncoder8(SWIGTYPE_p_unsigned_char code, int nbits) {
this(swigfaissJNI.new_PQEncoder8(SWIGTYPE_p_unsigned_char.getCPtr(code), nbits), true);
}
public void encode(long x) {
swigfaissJNI.PQEncoder8_encode(swigCPtr, this, x);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoderGeneric.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class PQEncoderGeneric {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected PQEncoderGeneric(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(PQEncoderGeneric obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_PQEncoderGeneric(swigCPtr);
}
swigCPtr = 0;
}
}
public void setCode(SWIGTYPE_p_unsigned_char value) {
swigfaissJNI.PQEncoderGeneric_code_set(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(value));
}
public SWIGTYPE_p_unsigned_char getCode() {
long cPtr = swigfaissJNI.PQEncoderGeneric_code_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
}
public void setOffset(short value) {
swigfaissJNI.PQEncoderGeneric_offset_set(swigCPtr, this, value);
}
public short getOffset() {
return swigfaissJNI.PQEncoderGeneric_offset_get(swigCPtr, this);
}
public int getNbits() {
return swigfaissJNI.PQEncoderGeneric_nbits_get(swigCPtr, this);
}
public void setReg(short value) {
swigfaissJNI.PQEncoderGeneric_reg_set(swigCPtr, this, value);
}
public short getReg() {
return swigfaissJNI.PQEncoderGeneric_reg_get(swigCPtr, this);
}
public PQEncoderGeneric(SWIGTYPE_p_unsigned_char code, int nbits, short offset) {
this(swigfaissJNI.new_PQEncoderGeneric__SWIG_0(SWIGTYPE_p_unsigned_char.getCPtr(code), nbits, offset), true);
}
public PQEncoderGeneric(SWIGTYPE_p_unsigned_char code, int nbits) {
this(swigfaissJNI.new_PQEncoderGeneric__SWIG_1(SWIGTYPE_p_unsigned_char.getCPtr(code), nbits), true);
}
public void encode(long x) {
swigfaissJNI.PQEncoderGeneric_encode(swigCPtr, this, x);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/ParameterRange.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class ParameterRange {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected ParameterRange(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ParameterRange obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_ParameterRange(swigCPtr);
}
swigCPtr = 0;
}
}
public void setName(String value) {
swigfaissJNI.ParameterRange_name_set(swigCPtr, this, value);
}
public String getName() {
return swigfaissJNI.ParameterRange_name_get(swigCPtr, this);
}
public void setValues(DoubleVector value) {
swigfaissJNI.ParameterRange_values_set(swigCPtr, this, DoubleVector.getCPtr(value), value);
}
public DoubleVector getValues() {
long cPtr = swigfaissJNI.ParameterRange_values_get(swigCPtr, this);
return (cPtr == 0) ? null : new DoubleVector(cPtr, false);
}
public ParameterRange() {
this(swigfaissJNI.new_ParameterRange(), true);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/ParameterSpace.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class ParameterSpace {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected ParameterSpace(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ParameterSpace obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_ParameterSpace(swigCPtr);
}
swigCPtr = 0;
}
}
public void setParameter_ranges(SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t value) {
swigfaissJNI.ParameterSpace_parameter_ranges_set(swigCPtr, this, SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t.getCPtr(value));
}
public SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t getParameter_ranges() {
long cPtr = swigfaissJNI.ParameterSpace_parameter_ranges_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t(cPtr, false);
}
public void setVerbose(int value) {
swigfaissJNI.ParameterSpace_verbose_set(swigCPtr, this, value);
}
public int getVerbose() {
return swigfaissJNI.ParameterSpace_verbose_get(swigCPtr, this);
}
public void setN_experiments(int value) {
swigfaissJNI.ParameterSpace_n_experiments_set(swigCPtr, this, value);
}
public int getN_experiments() {
return swigfaissJNI.ParameterSpace_n_experiments_get(swigCPtr, this);
}
public void setBatchsize(long value) {
swigfaissJNI.ParameterSpace_batchsize_set(swigCPtr, this, value);
}
public long getBatchsize() {
return swigfaissJNI.ParameterSpace_batchsize_get(swigCPtr, this);
}
public void setThread_over_batches(boolean value) {
swigfaissJNI.ParameterSpace_thread_over_batches_set(swigCPtr, this, value);
}
public boolean getThread_over_batches() {
return swigfaissJNI.ParameterSpace_thread_over_batches_get(swigCPtr, this);
}
public void setMin_test_duration(double value) {
swigfaissJNI.ParameterSpace_min_test_duration_set(swigCPtr, this, value);
}
public double getMin_test_duration() {
return swigfaissJNI.ParameterSpace_min_test_duration_get(swigCPtr, this);
}
public ParameterSpace() {
this(swigfaissJNI.new_ParameterSpace(), true);
}
public long n_combinations() {
return swigfaissJNI.ParameterSpace_n_combinations(swigCPtr, this);
}
public boolean combination_ge(long c1, long c2) {
return swigfaissJNI.ParameterSpace_combination_ge(swigCPtr, this, c1, c2);
}
public String combination_name(long cno) {
return swigfaissJNI.ParameterSpace_combination_name(swigCPtr, this, cno);
}
public void display() {
swigfaissJNI.ParameterSpace_display(swigCPtr, this);
}
public ParameterRange add_range(String name) {
return new ParameterRange(swigfaissJNI.ParameterSpace_add_range(swigCPtr, this, name), false);
}
public void initialize(Index index) {
swigfaissJNI.ParameterSpace_initialize(swigCPtr, this, Index.getCPtr(index), index);
}
public void set_index_parameters(Index index, long cno) {
swigfaissJNI.ParameterSpace_set_index_parameters__SWIG_0(swigCPtr, this, Index.getCPtr(index), index, cno);
}
public void set_index_parameters(Index index, String param_string) {
swigfaissJNI.ParameterSpace_set_index_parameters__SWIG_1(swigCPtr, this, Index.getCPtr(index), index, param_string);
}
public void set_index_parameter(Index index, String name, double val) {
swigfaissJNI.ParameterSpace_set_index_parameter(swigCPtr, this, Index.getCPtr(index), index, name, val);
}
public void update_bounds(long cno, OperatingPoint op, SWIGTYPE_p_double upper_bound_perf, SWIGTYPE_p_double lower_bound_t) {
swigfaissJNI.ParameterSpace_update_bounds(swigCPtr, this, cno, OperatingPoint.getCPtr(op), op, SWIGTYPE_p_double.getCPtr(upper_bound_perf), SWIGTYPE_p_double.getCPtr(lower_bound_t));
}
public void explore(Index index, long nq, SWIGTYPE_p_float xq, AutoTuneCriterion crit, OperatingPoints ops) {
swigfaissJNI.ParameterSpace_explore(swigCPtr, this, Index.getCPtr(index), index, nq, SWIGTYPE_p_float.getCPtr(xq), AutoTuneCriterion.getCPtr(crit), crit, OperatingPoints.getCPtr(ops), ops);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/PartitionStats.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class PartitionStats {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected PartitionStats(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(PartitionStats obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_PartitionStats(swigCPtr);
}
swigCPtr = 0;
}
}
public void setBissect_cycles(long value) {
swigfaissJNI.PartitionStats_bissect_cycles_set(swigCPtr, this, value);
}
public long getBissect_cycles() {
return swigfaissJNI.PartitionStats_bissect_cycles_get(swigCPtr, this);
}
public void setCompress_cycles(long value) {
swigfaissJNI.PartitionStats_compress_cycles_set(swigCPtr, this, value);
}
public long getCompress_cycles() {
return swigfaissJNI.PartitionStats_compress_cycles_get(swigCPtr, this);
}
public PartitionStats() {
this(swigfaissJNI.new_PartitionStats(), true);
}
public void reset() {
swigfaissJNI.PartitionStats_reset(swigCPtr, this);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/PermutationObjective.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class PermutationObjective {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected PermutationObjective(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(PermutationObjective obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_PermutationObjective(swigCPtr);
}
swigCPtr = 0;
}
}
public void setN(int value) {
swigfaissJNI.PermutationObjective_n_set(swigCPtr, this, value);
}
public int getN() {
return swigfaissJNI.PermutationObjective_n_get(swigCPtr, this);
}
public double compute_cost(SWIGTYPE_p_int perm) {
return swigfaissJNI.PermutationObjective_compute_cost(swigCPtr, this, SWIGTYPE_p_int.getCPtr(perm));
}
public double cost_update(SWIGTYPE_p_int perm, int iw, int jw) {
return swigfaissJNI.PermutationObjective_cost_update(swigCPtr, this, SWIGTYPE_p_int.getCPtr(perm), iw, jw);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/PolysemousTraining.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class PolysemousTraining extends SimulatedAnnealingParameters {
private transient long swigCPtr;
protected PolysemousTraining(long cPtr, boolean cMemoryOwn) {
super(swigfaissJNI.PolysemousTraining_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(PolysemousTraining obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_PolysemousTraining(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setOptimization_type(PolysemousTraining.Optimization_type_t value) {
swigfaissJNI.PolysemousTraining_optimization_type_set(swigCPtr, this, value.swigValue());
}
public PolysemousTraining.Optimization_type_t getOptimization_type() {
return PolysemousTraining.Optimization_type_t.swigToEnum(swigfaissJNI.PolysemousTraining_optimization_type_get(swigCPtr, this));
}
public void setNtrain_permutation(int value) {
swigfaissJNI.PolysemousTraining_ntrain_permutation_set(swigCPtr, this, value);
}
public int getNtrain_permutation() {
return swigfaissJNI.PolysemousTraining_ntrain_permutation_get(swigCPtr, this);
}
public void setDis_weight_factor(double value) {
swigfaissJNI.PolysemousTraining_dis_weight_factor_set(swigCPtr, this, value);
}
public double getDis_weight_factor() {
return swigfaissJNI.PolysemousTraining_dis_weight_factor_get(swigCPtr, this);
}
public void setMax_memory(long value) {
swigfaissJNI.PolysemousTraining_max_memory_set(swigCPtr, this, value);
}
public long getMax_memory() {
return swigfaissJNI.PolysemousTraining_max_memory_get(swigCPtr, this);
}
public void setLog_pattern(String value) {
swigfaissJNI.PolysemousTraining_log_pattern_set(swigCPtr, this, value);
}
public String getLog_pattern() {
return swigfaissJNI.PolysemousTraining_log_pattern_get(swigCPtr, this);
}
public PolysemousTraining() {
this(swigfaissJNI.new_PolysemousTraining(), true);
}
public void optimize_pq_for_hamming(ProductQuantizer pq, long n, SWIGTYPE_p_float x) {
swigfaissJNI.PolysemousTraining_optimize_pq_for_hamming(swigCPtr, this, ProductQuantizer.getCPtr(pq), pq, n, SWIGTYPE_p_float.getCPtr(x));
}
public void optimize_ranking(ProductQuantizer pq, long n, SWIGTYPE_p_float x) {
swigfaissJNI.PolysemousTraining_optimize_ranking(swigCPtr, this, ProductQuantizer.getCPtr(pq), pq, n, SWIGTYPE_p_float.getCPtr(x));
}
public void optimize_reproduce_distances(ProductQuantizer pq) {
swigfaissJNI.PolysemousTraining_optimize_reproduce_distances(swigCPtr, this, ProductQuantizer.getCPtr(pq), pq);
}
public long memory_usage_per_thread(ProductQuantizer pq) {
return swigfaissJNI.PolysemousTraining_memory_usage_per_thread(swigCPtr, this, ProductQuantizer.getCPtr(pq), pq);
}
public final static class Optimization_type_t {
public final static PolysemousTraining.Optimization_type_t OT_None = new PolysemousTraining.Optimization_type_t("OT_None");
public final static PolysemousTraining.Optimization_type_t OT_ReproduceDistances_affine = new PolysemousTraining.Optimization_type_t("OT_ReproduceDistances_affine");
public final static PolysemousTraining.Optimization_type_t OT_Ranking_weighted_diff = new PolysemousTraining.Optimization_type_t("OT_Ranking_weighted_diff");
public final int swigValue() {
return swigValue;
}
public String toString() {
return swigName;
}
public static Optimization_type_t swigToEnum(int swigValue) {
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
return swigValues[swigValue];
for (int i = 0; i < swigValues.length; i++)
if (swigValues[i].swigValue == swigValue)
return swigValues[i];
throw new IllegalArgumentException("No enum " + Optimization_type_t.class + " with value " + swigValue);
}
private Optimization_type_t(String swigName) {
this.swigName = swigName;
this.swigValue = swigNext++;
}
private Optimization_type_t(String swigName, int swigValue) {
this.swigName = swigName;
this.swigValue = swigValue;
swigNext = swigValue+1;
}
private Optimization_type_t(String swigName, Optimization_type_t swigEnum) {
this.swigName = swigName;
this.swigValue = swigEnum.swigValue;
swigNext = this.swigValue+1;
}
private static Optimization_type_t[] swigValues = { OT_None, OT_ReproduceDistances_affine, OT_Ranking_weighted_diff };
private static int swigNext = 0;
private final int swigValue;
private final String swigName;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/ProductQuantizer.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class ProductQuantizer {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected ProductQuantizer(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ProductQuantizer obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_ProductQuantizer(swigCPtr);
}
swigCPtr = 0;
}
}
public void setD(long value) {
swigfaissJNI.ProductQuantizer_d_set(swigCPtr, this, value);
}
public long getD() {
return swigfaissJNI.ProductQuantizer_d_get(swigCPtr, this);
}
public void setM(long value) {
swigfaissJNI.ProductQuantizer_M_set(swigCPtr, this, value);
}
public long getM() {
return swigfaissJNI.ProductQuantizer_M_get(swigCPtr, this);
}
public void setNbits(long value) {
swigfaissJNI.ProductQuantizer_nbits_set(swigCPtr, this, value);
}
public long getNbits() {
return swigfaissJNI.ProductQuantizer_nbits_get(swigCPtr, this);
}
public void setDsub(long value) {
swigfaissJNI.ProductQuantizer_dsub_set(swigCPtr, this, value);
}
public long getDsub() {
return swigfaissJNI.ProductQuantizer_dsub_get(swigCPtr, this);
}
public void setCode_size(long value) {
swigfaissJNI.ProductQuantizer_code_size_set(swigCPtr, this, value);
}
public long getCode_size() {
return swigfaissJNI.ProductQuantizer_code_size_get(swigCPtr, this);
}
public void setKsub(long value) {
swigfaissJNI.ProductQuantizer_ksub_set(swigCPtr, this, value);
}
public long getKsub() {
return swigfaissJNI.ProductQuantizer_ksub_get(swigCPtr, this);
}
public void setVerbose(boolean value) {
swigfaissJNI.ProductQuantizer_verbose_set(swigCPtr, this, value);
}
public boolean getVerbose() {
return swigfaissJNI.ProductQuantizer_verbose_get(swigCPtr, this);
}
public void setTrain_type(ProductQuantizer.train_type_t value) {
swigfaissJNI.ProductQuantizer_train_type_set(swigCPtr, this, value.swigValue());
}
public ProductQuantizer.train_type_t getTrain_type() {
return ProductQuantizer.train_type_t.swigToEnum(swigfaissJNI.ProductQuantizer_train_type_get(swigCPtr, this));
}
public void setCp(ClusteringParameters value) {
swigfaissJNI.ProductQuantizer_cp_set(swigCPtr, this, ClusteringParameters.getCPtr(value), value);
}
public ClusteringParameters getCp() {
long cPtr = swigfaissJNI.ProductQuantizer_cp_get(swigCPtr, this);
return (cPtr == 0) ? null : new ClusteringParameters(cPtr, false);
}
public void setAssign_index(Index value) {
swigfaissJNI.ProductQuantizer_assign_index_set(swigCPtr, this, Index.getCPtr(value), value);
}
public Index getAssign_index() {
long cPtr = swigfaissJNI.ProductQuantizer_assign_index_get(swigCPtr, this);
return (cPtr == 0) ? null : new Index(cPtr, false);
}
public void setCentroids(FloatVector value) {
swigfaissJNI.ProductQuantizer_centroids_set(swigCPtr, this, FloatVector.getCPtr(value), value);
}
public FloatVector getCentroids() {
long cPtr = swigfaissJNI.ProductQuantizer_centroids_get(swigCPtr, this);
return (cPtr == 0) ? null : new FloatVector(cPtr, false);
}
public SWIGTYPE_p_float get_centroids(long m, long i) {
long cPtr = swigfaissJNI.ProductQuantizer_get_centroids(swigCPtr, this, m, i);
return (cPtr == 0) ? null : new SWIGTYPE_p_float(cPtr, false);
}
public void train(int n, SWIGTYPE_p_float x) {
swigfaissJNI.ProductQuantizer_train(swigCPtr, this, n, SWIGTYPE_p_float.getCPtr(x));
}
public ProductQuantizer(long d, long M, long nbits) {
this(swigfaissJNI.new_ProductQuantizer__SWIG_0(d, M, nbits), true);
}
public ProductQuantizer() {
this(swigfaissJNI.new_ProductQuantizer__SWIG_1(), true);
}
public void set_derived_values() {
swigfaissJNI.ProductQuantizer_set_derived_values(swigCPtr, this);
}
public void set_params(SWIGTYPE_p_float centroids, int m) {
swigfaissJNI.ProductQuantizer_set_params(swigCPtr, this, SWIGTYPE_p_float.getCPtr(centroids), m);
}
public void compute_code(SWIGTYPE_p_float x, SWIGTYPE_p_unsigned_char code) {
swigfaissJNI.ProductQuantizer_compute_code(swigCPtr, this, SWIGTYPE_p_float.getCPtr(x), SWIGTYPE_p_unsigned_char.getCPtr(code));
}
public void compute_codes(SWIGTYPE_p_float x, SWIGTYPE_p_unsigned_char codes, long n) {
swigfaissJNI.ProductQuantizer_compute_codes(swigCPtr, this, SWIGTYPE_p_float.getCPtr(x), SWIGTYPE_p_unsigned_char.getCPtr(codes), n);
}
public void compute_codes_with_assign_index(SWIGTYPE_p_float x, SWIGTYPE_p_unsigned_char codes, long n) {
swigfaissJNI.ProductQuantizer_compute_codes_with_assign_index(swigCPtr, this, SWIGTYPE_p_float.getCPtr(x), SWIGTYPE_p_unsigned_char.getCPtr(codes), n);
}
public void decode(SWIGTYPE_p_unsigned_char code, SWIGTYPE_p_float x) {
swigfaissJNI.ProductQuantizer_decode__SWIG_0(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(code), SWIGTYPE_p_float.getCPtr(x));
}
public void decode(SWIGTYPE_p_unsigned_char code, SWIGTYPE_p_float x, long n) {
swigfaissJNI.ProductQuantizer_decode__SWIG_1(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(code), SWIGTYPE_p_float.getCPtr(x), n);
}
public void compute_code_from_distance_table(SWIGTYPE_p_float tab, SWIGTYPE_p_unsigned_char code) {
swigfaissJNI.ProductQuantizer_compute_code_from_distance_table(swigCPtr, this, SWIGTYPE_p_float.getCPtr(tab), SWIGTYPE_p_unsigned_char.getCPtr(code));
}
public void compute_distance_table(SWIGTYPE_p_float x, SWIGTYPE_p_float dis_table) {
swigfaissJNI.ProductQuantizer_compute_distance_table(swigCPtr, this, SWIGTYPE_p_float.getCPtr(x), SWIGTYPE_p_float.getCPtr(dis_table));
}
public void compute_inner_prod_table(SWIGTYPE_p_float x, SWIGTYPE_p_float dis_table) {
swigfaissJNI.ProductQuantizer_compute_inner_prod_table(swigCPtr, this, SWIGTYPE_p_float.getCPtr(x), SWIGTYPE_p_float.getCPtr(dis_table));
}
public void compute_distance_tables(long nx, SWIGTYPE_p_float x, SWIGTYPE_p_float dis_tables) {
swigfaissJNI.ProductQuantizer_compute_distance_tables(swigCPtr, this, nx, SWIGTYPE_p_float.getCPtr(x), SWIGTYPE_p_float.getCPtr(dis_tables));
}
public void compute_inner_prod_tables(long nx, SWIGTYPE_p_float x, SWIGTYPE_p_float dis_tables) {
swigfaissJNI.ProductQuantizer_compute_inner_prod_tables(swigCPtr, this, nx, SWIGTYPE_p_float.getCPtr(x), SWIGTYPE_p_float.getCPtr(dis_tables));
}
public void search(SWIGTYPE_p_float x, long nx, SWIGTYPE_p_unsigned_char codes, long ncodes, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t res, boolean init_finalize_heap) {
swigfaissJNI.ProductQuantizer_search__SWIG_0(swigCPtr, this, SWIGTYPE_p_float.getCPtr(x), nx, SWIGTYPE_p_unsigned_char.getCPtr(codes), ncodes, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t.getCPtr(res), init_finalize_heap);
}
public void search(SWIGTYPE_p_float x, long nx, SWIGTYPE_p_unsigned_char codes, long ncodes, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t res) {
swigfaissJNI.ProductQuantizer_search__SWIG_1(swigCPtr, this, SWIGTYPE_p_float.getCPtr(x), nx, SWIGTYPE_p_unsigned_char.getCPtr(codes), ncodes, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t.getCPtr(res));
}
public void search_ip(SWIGTYPE_p_float x, long nx, SWIGTYPE_p_unsigned_char codes, long ncodes, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_int64_t_t_t res, boolean init_finalize_heap) {
swigfaissJNI.ProductQuantizer_search_ip__SWIG_0(swigCPtr, this, SWIGTYPE_p_float.getCPtr(x), nx, SWIGTYPE_p_unsigned_char.getCPtr(codes), ncodes, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_int64_t_t_t.getCPtr(res), init_finalize_heap);
}
public void search_ip(SWIGTYPE_p_float x, long nx, SWIGTYPE_p_unsigned_char codes, long ncodes, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_int64_t_t_t res) {
swigfaissJNI.ProductQuantizer_search_ip__SWIG_1(swigCPtr, this, SWIGTYPE_p_float.getCPtr(x), nx, SWIGTYPE_p_unsigned_char.getCPtr(codes), ncodes, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_int64_t_t_t.getCPtr(res));
}
public void setSdc_table(FloatVector value) {
swigfaissJNI.ProductQuantizer_sdc_table_set(swigCPtr, this, FloatVector.getCPtr(value), value);
}
public FloatVector getSdc_table() {
long cPtr = swigfaissJNI.ProductQuantizer_sdc_table_get(swigCPtr, this);
return (cPtr == 0) ? null : new FloatVector(cPtr, false);
}
public void compute_sdc_table() {
swigfaissJNI.ProductQuantizer_compute_sdc_table(swigCPtr, this);
}
public void search_sdc(SWIGTYPE_p_unsigned_char qcodes, long nq, SWIGTYPE_p_unsigned_char bcodes, long ncodes, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t res, boolean init_finalize_heap) {
swigfaissJNI.ProductQuantizer_search_sdc__SWIG_0(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(qcodes), nq, SWIGTYPE_p_unsigned_char.getCPtr(bcodes), ncodes, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t.getCPtr(res), init_finalize_heap);
}
public void search_sdc(SWIGTYPE_p_unsigned_char qcodes, long nq, SWIGTYPE_p_unsigned_char bcodes, long ncodes, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t res) {
swigfaissJNI.ProductQuantizer_search_sdc__SWIG_1(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(qcodes), nq, SWIGTYPE_p_unsigned_char.getCPtr(bcodes), ncodes, SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t.getCPtr(res));
}
public final static class train_type_t {
public final static ProductQuantizer.train_type_t Train_default = new ProductQuantizer.train_type_t("Train_default");
public final static ProductQuantizer.train_type_t Train_hot_start = new ProductQuantizer.train_type_t("Train_hot_start");
public final static ProductQuantizer.train_type_t Train_shared = new ProductQuantizer.train_type_t("Train_shared");
public final static ProductQuantizer.train_type_t Train_hypercube = new ProductQuantizer.train_type_t("Train_hypercube");
public final static ProductQuantizer.train_type_t Train_hypercube_pca = new ProductQuantizer.train_type_t("Train_hypercube_pca");
public final int swigValue() {
return swigValue;
}
public String toString() {
return swigName;
}
public static train_type_t swigToEnum(int swigValue) {
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
return swigValues[swigValue];
for (int i = 0; i < swigValues.length; i++)
if (swigValues[i].swigValue == swigValue)
return swigValues[i];
throw new IllegalArgumentException("No enum " + train_type_t.class + " with value " + swigValue);
}
private train_type_t(String swigName) {
this.swigName = swigName;
this.swigValue = swigNext++;
}
private train_type_t(String swigName, int swigValue) {
this.swigName = swigName;
this.swigValue = swigValue;
swigNext = swigValue+1;
}
private train_type_t(String swigName, train_type_t swigEnum) {
this.swigName = swigName;
this.swigValue = swigEnum.swigValue;
swigNext = this.swigValue+1;
}
private static train_type_t[] swigValues = { Train_default, Train_hot_start, Train_shared, Train_hypercube, Train_hypercube_pca };
private static int swigNext = 0;
private final int swigValue;
private final String swigName;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimClustering.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class ProgressiveDimClustering extends ProgressiveDimClusteringParameters {
private transient long swigCPtr;
protected ProgressiveDimClustering(long cPtr, boolean cMemoryOwn) {
super(swigfaissJNI.ProgressiveDimClustering_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(ProgressiveDimClustering obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_ProgressiveDimClustering(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setD(long value) {
swigfaissJNI.ProgressiveDimClustering_d_set(swigCPtr, this, value);
}
public long getD() {
return swigfaissJNI.ProgressiveDimClustering_d_get(swigCPtr, this);
}
public void setK(long value) {
swigfaissJNI.ProgressiveDimClustering_k_set(swigCPtr, this, value);
}
public long getK() {
return swigfaissJNI.ProgressiveDimClustering_k_get(swigCPtr, this);
}
public void setCentroids(FloatVector value) {
swigfaissJNI.ProgressiveDimClustering_centroids_set(swigCPtr, this, FloatVector.getCPtr(value), value);
}
public FloatVector getCentroids() {
long cPtr = swigfaissJNI.ProgressiveDimClustering_centroids_get(swigCPtr, this);
return (cPtr == 0) ? null : new FloatVector(cPtr, false);
}
public void setIteration_stats(SWIGTYPE_p_std__vectorT_faiss__ClusteringIterationStats_t value) {
swigfaissJNI.ProgressiveDimClustering_iteration_stats_set(swigCPtr, this, SWIGTYPE_p_std__vectorT_faiss__ClusteringIterationStats_t.getCPtr(value));
}
public SWIGTYPE_p_std__vectorT_faiss__ClusteringIterationStats_t getIteration_stats() {
long cPtr = swigfaissJNI.ProgressiveDimClustering_iteration_stats_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_std__vectorT_faiss__ClusteringIterationStats_t(cPtr, false);
}
public ProgressiveDimClustering(int d, int k) {
this(swigfaissJNI.new_ProgressiveDimClustering__SWIG_0(d, k), true);
}
public ProgressiveDimClustering(int d, int k, ProgressiveDimClusteringParameters cp) {
this(swigfaissJNI.new_ProgressiveDimClustering__SWIG_1(d, k, ProgressiveDimClusteringParameters.getCPtr(cp), cp), true);
}
public void train(long n, SWIGTYPE_p_float x, ProgressiveDimIndexFactory factory) {
swigfaissJNI.ProgressiveDimClustering_train(swigCPtr, this, n, SWIGTYPE_p_float.getCPtr(x), ProgressiveDimIndexFactory.getCPtr(factory), factory);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimClusteringParameters.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class ProgressiveDimClusteringParameters extends ClusteringParameters {
private transient long swigCPtr;
protected ProgressiveDimClusteringParameters(long cPtr, boolean cMemoryOwn) {
super(swigfaissJNI.ProgressiveDimClusteringParameters_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(ProgressiveDimClusteringParameters obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_ProgressiveDimClusteringParameters(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setProgressive_dim_steps(int value) {
swigfaissJNI.ProgressiveDimClusteringParameters_progressive_dim_steps_set(swigCPtr, this, value);
}
public int getProgressive_dim_steps() {
return swigfaissJNI.ProgressiveDimClusteringParameters_progressive_dim_steps_get(swigCPtr, this);
}
public void setApply_pca(boolean value) {
swigfaissJNI.ProgressiveDimClusteringParameters_apply_pca_set(swigCPtr, this, value);
}
public boolean getApply_pca() {
return swigfaissJNI.ProgressiveDimClusteringParameters_apply_pca_get(swigCPtr, this);
}
public ProgressiveDimClusteringParameters() {
this(swigfaissJNI.new_ProgressiveDimClusteringParameters(), true);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimIndexFactory.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class ProgressiveDimIndexFactory {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected ProgressiveDimIndexFactory(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ProgressiveDimIndexFactory obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_ProgressiveDimIndexFactory(swigCPtr);
}
swigCPtr = 0;
}
}
public ProgressiveDimIndexFactory() {
this(swigfaissJNI.new_ProgressiveDimIndexFactory(), true);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/RandomRotationMatrix.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class RandomRotationMatrix extends LinearTransform {
private transient long swigCPtr;
protected RandomRotationMatrix(long cPtr, boolean cMemoryOwn) {
super(swigfaissJNI.RandomRotationMatrix_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(RandomRotationMatrix obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_RandomRotationMatrix(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public RandomRotationMatrix(int d_in, int d_out) {
this(swigfaissJNI.new_RandomRotationMatrix__SWIG_0(d_in, d_out), true);
}
public void init(int seed) {
swigfaissJNI.RandomRotationMatrix_init(swigCPtr, this, seed);
}
public void train(long n, SWIGTYPE_p_float x) {
swigfaissJNI.RandomRotationMatrix_train(swigCPtr, this, n, SWIGTYPE_p_float.getCPtr(x));
}
public RandomRotationMatrix() {
this(swigfaissJNI.new_RandomRotationMatrix__SWIG_1(), true);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/RangeQueryResult.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class RangeQueryResult {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected RangeQueryResult(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(RangeQueryResult obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_RangeQueryResult(swigCPtr);
}
swigCPtr = 0;
}
}
public void setQno(long value) {
swigfaissJNI.RangeQueryResult_qno_set(swigCPtr, this, value);
}
public long getQno() {
return swigfaissJNI.RangeQueryResult_qno_get(swigCPtr, this);
}
public void setNres(long value) {
swigfaissJNI.RangeQueryResult_nres_set(swigCPtr, this, value);
}
public long getNres() {
return swigfaissJNI.RangeQueryResult_nres_get(swigCPtr, this);
}
public void setPres(RangeSearchPartialResult value) {
swigfaissJNI.RangeQueryResult_pres_set(swigCPtr, this, RangeSearchPartialResult.getCPtr(value), value);
}
public RangeSearchPartialResult getPres() {
long cPtr = swigfaissJNI.RangeQueryResult_pres_get(swigCPtr, this);
return (cPtr == 0) ? null : new RangeSearchPartialResult(cPtr, false);
}
public void add(float dis, long id) {
swigfaissJNI.RangeQueryResult_add(swigCPtr, this, dis, id);
}
public RangeQueryResult() {
this(swigfaissJNI.new_RangeQueryResult(), true);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/RangeSearchPartialResult.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class RangeSearchPartialResult extends BufferList {
private transient long swigCPtr;
protected RangeSearchPartialResult(long cPtr, boolean cMemoryOwn) {
super(swigfaissJNI.RangeSearchPartialResult_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(RangeSearchPartialResult obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_RangeSearchPartialResult(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setRes(RangeSearchResult value) {
swigfaissJNI.RangeSearchPartialResult_res_set(swigCPtr, this, RangeSearchResult.getCPtr(value), value);
}
public RangeSearchResult getRes() {
long cPtr = swigfaissJNI.RangeSearchPartialResult_res_get(swigCPtr, this);
return (cPtr == 0) ? null : new RangeSearchResult(cPtr, false);
}
public void setQueries(SWIGTYPE_p_std__vectorT_faiss__RangeQueryResult_t value) {
swigfaissJNI.RangeSearchPartialResult_queries_set(swigCPtr, this, SWIGTYPE_p_std__vectorT_faiss__RangeQueryResult_t.getCPtr(value));
}
public SWIGTYPE_p_std__vectorT_faiss__RangeQueryResult_t getQueries() {
long cPtr = swigfaissJNI.RangeSearchPartialResult_queries_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_std__vectorT_faiss__RangeQueryResult_t(cPtr, false);
}
public RangeQueryResult new_result(long qno) {
return new RangeQueryResult(swigfaissJNI.RangeSearchPartialResult_new_result(swigCPtr, this, qno), false);
}
public void set_lims() {
swigfaissJNI.RangeSearchPartialResult_set_lims(swigCPtr, this);
}
public void copy_result(boolean incremental) {
swigfaissJNI.RangeSearchPartialResult_copy_result__SWIG_0(swigCPtr, this, incremental);
}
public void copy_result() {
swigfaissJNI.RangeSearchPartialResult_copy_result__SWIG_1(swigCPtr, this);
}
public static void merge(SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult_p_t partial_results, boolean do_delete) {
swigfaissJNI.RangeSearchPartialResult_merge__SWIG_0(SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult_p_t.getCPtr(partial_results), do_delete);
}
public static void merge(SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult_p_t partial_results) {
swigfaissJNI.RangeSearchPartialResult_merge__SWIG_1(SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult_p_t.getCPtr(partial_results));
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/RangeSearchResult.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class RangeSearchResult {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected RangeSearchResult(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(RangeSearchResult obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_RangeSearchResult(swigCPtr);
}
swigCPtr = 0;
}
}
public void setNq(long value) {
swigfaissJNI.RangeSearchResult_nq_set(swigCPtr, this, value);
}
public long getNq() {
return swigfaissJNI.RangeSearchResult_nq_get(swigCPtr, this);
}
public void setLims(SWIGTYPE_p_unsigned_long value) {
swigfaissJNI.RangeSearchResult_lims_set(swigCPtr, this, SWIGTYPE_p_unsigned_long.getCPtr(value));
}
public SWIGTYPE_p_unsigned_long getLims() {
long cPtr = swigfaissJNI.RangeSearchResult_lims_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_long(cPtr, false);
}
public void setLabels(LongVector value) {
swigfaissJNI.RangeSearchResult_labels_set(swigCPtr, this, SWIGTYPE_p_long_long.getCPtr(value.data()), value);
}
public LongVector getLabels() {
return new LongVector(swigfaissJNI.RangeSearchResult_labels_get(swigCPtr, this), false);
}
public void setDistances(SWIGTYPE_p_float value) {
swigfaissJNI.RangeSearchResult_distances_set(swigCPtr, this, SWIGTYPE_p_float.getCPtr(value));
}
public SWIGTYPE_p_float getDistances() {
long cPtr = swigfaissJNI.RangeSearchResult_distances_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_float(cPtr, false);
}
public void setBuffer_size(long value) {
swigfaissJNI.RangeSearchResult_buffer_size_set(swigCPtr, this, value);
}
public long getBuffer_size() {
return swigfaissJNI.RangeSearchResult_buffer_size_get(swigCPtr, this);
}
public void do_allocation() {
swigfaissJNI.RangeSearchResult_do_allocation(swigCPtr, this);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/ReadOnlyInvertedLists.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class ReadOnlyInvertedLists extends InvertedLists {
private transient long swigCPtr;
protected ReadOnlyInvertedLists(long cPtr, boolean cMemoryOwn) {
super(swigfaissJNI.ReadOnlyInvertedLists_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(ReadOnlyInvertedLists obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_ReadOnlyInvertedLists(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public long add_entries(long list_no, long n_entry, LongVector ids, SWIGTYPE_p_unsigned_char code) {
return swigfaissJNI.ReadOnlyInvertedLists_add_entries(swigCPtr, this, list_no, n_entry, SWIGTYPE_p_long_long.getCPtr(ids.data()), ids, SWIGTYPE_p_unsigned_char.getCPtr(code));
}
public void update_entries(long list_no, long offset, long n_entry, LongVector ids, SWIGTYPE_p_unsigned_char code) {
swigfaissJNI.ReadOnlyInvertedLists_update_entries(swigCPtr, this, list_no, offset, n_entry, SWIGTYPE_p_long_long.getCPtr(ids.data()), ids, SWIGTYPE_p_unsigned_char.getCPtr(code));
}
public void resize(long list_no, long new_size) {
swigfaissJNI.ReadOnlyInvertedLists_resize(swigCPtr, this, list_no, new_size);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/ReconstructFromNeighbors.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class ReconstructFromNeighbors {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected ReconstructFromNeighbors(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ReconstructFromNeighbors obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_ReconstructFromNeighbors(swigCPtr);
}
swigCPtr = 0;
}
}
public IndexHNSW getIndex() {
return new IndexHNSW(swigfaissJNI.ReconstructFromNeighbors_index_get(swigCPtr, this), false);
}
public void setM(long value) {
swigfaissJNI.ReconstructFromNeighbors_M_set(swigCPtr, this, value);
}
public long getM() {
return swigfaissJNI.ReconstructFromNeighbors_M_get(swigCPtr, this);
}
public void setK(long value) {
swigfaissJNI.ReconstructFromNeighbors_k_set(swigCPtr, this, value);
}
public long getK() {
return swigfaissJNI.ReconstructFromNeighbors_k_get(swigCPtr, this);
}
public void setNsq(long value) {
swigfaissJNI.ReconstructFromNeighbors_nsq_set(swigCPtr, this, value);
}
public long getNsq() {
return swigfaissJNI.ReconstructFromNeighbors_nsq_get(swigCPtr, this);
}
public void setCode_size(long value) {
swigfaissJNI.ReconstructFromNeighbors_code_size_set(swigCPtr, this, value);
}
public long getCode_size() {
return swigfaissJNI.ReconstructFromNeighbors_code_size_get(swigCPtr, this);
}
public void setK_reorder(int value) {
swigfaissJNI.ReconstructFromNeighbors_k_reorder_set(swigCPtr, this, value);
}
public int getK_reorder() {
return swigfaissJNI.ReconstructFromNeighbors_k_reorder_get(swigCPtr, this);
}
public void setCodebook(FloatVector value) {
swigfaissJNI.ReconstructFromNeighbors_codebook_set(swigCPtr, this, FloatVector.getCPtr(value), value);
}
public FloatVector getCodebook() {
long cPtr = swigfaissJNI.ReconstructFromNeighbors_codebook_get(swigCPtr, this);
return (cPtr == 0) ? null : new FloatVector(cPtr, false);
}
public void setCodes(ByteVector value) {
swigfaissJNI.ReconstructFromNeighbors_codes_set(swigCPtr, this, ByteVector.getCPtr(value), value);
}
public ByteVector getCodes() {
long cPtr = swigfaissJNI.ReconstructFromNeighbors_codes_get(swigCPtr, this);
return (cPtr == 0) ? null : new ByteVector(cPtr, false);
}
public void setNtotal(long value) {
swigfaissJNI.ReconstructFromNeighbors_ntotal_set(swigCPtr, this, value);
}
public long getNtotal() {
return swigfaissJNI.ReconstructFromNeighbors_ntotal_get(swigCPtr, this);
}
public void setD(long value) {
swigfaissJNI.ReconstructFromNeighbors_d_set(swigCPtr, this, value);
}
public long getD() {
return swigfaissJNI.ReconstructFromNeighbors_d_get(swigCPtr, this);
}
public void setDsub(long value) {
swigfaissJNI.ReconstructFromNeighbors_dsub_set(swigCPtr, this, value);
}
public long getDsub() {
return swigfaissJNI.ReconstructFromNeighbors_dsub_get(swigCPtr, this);
}
public ReconstructFromNeighbors(IndexHNSW index, long k, long nsq) {
this(swigfaissJNI.new_ReconstructFromNeighbors__SWIG_0(IndexHNSW.getCPtr(index), index, k, nsq), true);
}
public ReconstructFromNeighbors(IndexHNSW index, long k) {
this(swigfaissJNI.new_ReconstructFromNeighbors__SWIG_1(IndexHNSW.getCPtr(index), index, k), true);
}
public ReconstructFromNeighbors(IndexHNSW index) {
this(swigfaissJNI.new_ReconstructFromNeighbors__SWIG_2(IndexHNSW.getCPtr(index), index), true);
}
public void add_codes(long n, SWIGTYPE_p_float x) {
swigfaissJNI.ReconstructFromNeighbors_add_codes(swigCPtr, this, n, SWIGTYPE_p_float.getCPtr(x));
}
public long compute_distances(long n, LongVector shortlist, SWIGTYPE_p_float query, SWIGTYPE_p_float distances) {
return swigfaissJNI.ReconstructFromNeighbors_compute_distances(swigCPtr, this, n, SWIGTYPE_p_long_long.getCPtr(shortlist.data()), shortlist, SWIGTYPE_p_float.getCPtr(query), SWIGTYPE_p_float.getCPtr(distances));
}
public void estimate_code(SWIGTYPE_p_float x, int i, SWIGTYPE_p_unsigned_char code) {
swigfaissJNI.ReconstructFromNeighbors_estimate_code(swigCPtr, this, SWIGTYPE_p_float.getCPtr(x), i, SWIGTYPE_p_unsigned_char.getCPtr(code));
}
public void reconstruct(int i, SWIGTYPE_p_float x, SWIGTYPE_p_float tmp) {
swigfaissJNI.ReconstructFromNeighbors_reconstruct(swigCPtr, this, i, SWIGTYPE_p_float.getCPtr(x), SWIGTYPE_p_float.getCPtr(tmp));
}
public void reconstruct_n(int n0, int ni, SWIGTYPE_p_float x) {
swigfaissJNI.ReconstructFromNeighbors_reconstruct_n(swigCPtr, this, n0, ni, SWIGTYPE_p_float.getCPtr(x));
}
public void get_neighbor_table(int i, SWIGTYPE_p_float out) {
swigfaissJNI.ReconstructFromNeighbors_get_neighbor_table(swigCPtr, this, i, SWIGTYPE_p_float.getCPtr(out));
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/RemapDimensionsTransform.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class RemapDimensionsTransform extends VectorTransform {
private transient long swigCPtr;
protected RemapDimensionsTransform(long cPtr, boolean cMemoryOwn) {
super(swigfaissJNI.RemapDimensionsTransform_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(RemapDimensionsTransform obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_RemapDimensionsTransform(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setMap(IntVector value) {
swigfaissJNI.RemapDimensionsTransform_map_set(swigCPtr, this, IntVector.getCPtr(value), value);
}
public IntVector getMap() {
long cPtr = swigfaissJNI.RemapDimensionsTransform_map_get(swigCPtr, this);
return (cPtr == 0) ? null : new IntVector(cPtr, false);
}
public RemapDimensionsTransform(int d_in, int d_out, SWIGTYPE_p_int map) {
this(swigfaissJNI.new_RemapDimensionsTransform__SWIG_0(d_in, d_out, SWIGTYPE_p_int.getCPtr(map)), true);
}
public RemapDimensionsTransform(int d_in, int d_out, boolean uniform) {
this(swigfaissJNI.new_RemapDimensionsTransform__SWIG_1(d_in, d_out, uniform), true);
}
public RemapDimensionsTransform(int d_in, int d_out) {
this(swigfaissJNI.new_RemapDimensionsTransform__SWIG_2(d_in, d_out), true);
}
public void apply_noalloc(long n, SWIGTYPE_p_float x, SWIGTYPE_p_float xt) {
swigfaissJNI.RemapDimensionsTransform_apply_noalloc(swigCPtr, this, n, SWIGTYPE_p_float.getCPtr(x), SWIGTYPE_p_float.getCPtr(xt));
}
public void reverse_transform(long n, SWIGTYPE_p_float xt, SWIGTYPE_p_float x) {
swigfaissJNI.RemapDimensionsTransform_reverse_transform(swigCPtr, this, n, SWIGTYPE_p_float.getCPtr(xt), SWIGTYPE_p_float.getCPtr(x));
}
public RemapDimensionsTransform() {
this(swigfaissJNI.new_RemapDimensionsTransform__SWIG_3(), true);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/ReproduceDistancesObjective.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class ReproduceDistancesObjective extends PermutationObjective {
private transient long swigCPtr;
protected ReproduceDistancesObjective(long cPtr, boolean cMemoryOwn) {
super(swigfaissJNI.ReproduceDistancesObjective_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(ReproduceDistancesObjective obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_ReproduceDistancesObjective(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setDis_weight_factor(double value) {
swigfaissJNI.ReproduceDistancesObjective_dis_weight_factor_set(swigCPtr, this, value);
}
public double getDis_weight_factor() {
return swigfaissJNI.ReproduceDistancesObjective_dis_weight_factor_get(swigCPtr, this);
}
public static double sqr(double x) {
return swigfaissJNI.ReproduceDistancesObjective_sqr(x);
}
public double dis_weight(double x) {
return swigfaissJNI.ReproduceDistancesObjective_dis_weight(swigCPtr, this, x);
}
public void setSource_dis(DoubleVector value) {
swigfaissJNI.ReproduceDistancesObjective_source_dis_set(swigCPtr, this, DoubleVector.getCPtr(value), value);
}
public DoubleVector getSource_dis() {
long cPtr = swigfaissJNI.ReproduceDistancesObjective_source_dis_get(swigCPtr, this);
return (cPtr == 0) ? null : new DoubleVector(cPtr, false);
}
public void setTarget_dis(SWIGTYPE_p_double value) {
swigfaissJNI.ReproduceDistancesObjective_target_dis_set(swigCPtr, this, SWIGTYPE_p_double.getCPtr(value));
}
public SWIGTYPE_p_double getTarget_dis() {
long cPtr = swigfaissJNI.ReproduceDistancesObjective_target_dis_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_double(cPtr, false);
}
public void setWeights(DoubleVector value) {
swigfaissJNI.ReproduceDistancesObjective_weights_set(swigCPtr, this, DoubleVector.getCPtr(value), value);
}
public DoubleVector getWeights() {
long cPtr = swigfaissJNI.ReproduceDistancesObjective_weights_get(swigCPtr, this);
return (cPtr == 0) ? null : new DoubleVector(cPtr, false);
}
public double get_source_dis(int i, int j) {
return swigfaissJNI.ReproduceDistancesObjective_get_source_dis(swigCPtr, this, i, j);
}
public double compute_cost(SWIGTYPE_p_int perm) {
return swigfaissJNI.ReproduceDistancesObjective_compute_cost(swigCPtr, this, SWIGTYPE_p_int.getCPtr(perm));
}
public double cost_update(SWIGTYPE_p_int perm, int iw, int jw) {
return swigfaissJNI.ReproduceDistancesObjective_cost_update(swigCPtr, this, SWIGTYPE_p_int.getCPtr(perm), iw, jw);
}
public ReproduceDistancesObjective(int n, SWIGTYPE_p_double source_dis_in, SWIGTYPE_p_double target_dis_in, double dis_weight_factor) {
this(swigfaissJNI.new_ReproduceDistancesObjective(n, SWIGTYPE_p_double.getCPtr(source_dis_in), SWIGTYPE_p_double.getCPtr(target_dis_in), dis_weight_factor), true);
}
public static void compute_mean_stdev(SWIGTYPE_p_double tab, long n2, SWIGTYPE_p_double mean_out, SWIGTYPE_p_double stddev_out) {
swigfaissJNI.ReproduceDistancesObjective_compute_mean_stdev(SWIGTYPE_p_double.getCPtr(tab), n2, SWIGTYPE_p_double.getCPtr(mean_out), SWIGTYPE_p_double.getCPtr(stddev_out));
}
public void set_affine_target_dis(SWIGTYPE_p_double source_dis_in) {
swigfaissJNI.ReproduceDistancesObjective_set_affine_target_dis(swigCPtr, this, SWIGTYPE_p_double.getCPtr(source_dis_in));
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_AlignedTableT_float_32_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_AlignedTableT_float_32_t {
private transient long swigCPtr;
protected SWIGTYPE_p_AlignedTableT_float_32_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_AlignedTableT_float_32_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_AlignedTableT_float_32_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_AlignedTableT_float_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_AlignedTableT_float_t {
private transient long swigCPtr;
protected SWIGTYPE_p_AlignedTableT_float_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_AlignedTableT_float_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_AlignedTableT_float_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_DirectMap.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_DirectMap {
private transient long swigCPtr;
protected SWIGTYPE_p_DirectMap(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_DirectMap() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_DirectMap obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_DirectMap__Type.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_DirectMap__Type {
private transient long swigCPtr;
protected SWIGTYPE_p_DirectMap__Type(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_DirectMap__Type() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_DirectMap__Type obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_FILE.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_FILE {
private transient long swigCPtr;
protected SWIGTYPE_p_FILE(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_FILE() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_FILE obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_IOReader.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_IOReader {
private transient long swigCPtr;
protected SWIGTYPE_p_IOReader(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_IOReader() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_IOReader obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_IOWriter.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_IOWriter {
private transient long swigCPtr;
protected SWIGTYPE_p_IOWriter(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_IOWriter() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_IOWriter obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_ScalarQuantizer.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_ScalarQuantizer {
private transient long swigCPtr;
protected SWIGTYPE_p_ScalarQuantizer(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_ScalarQuantizer() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_ScalarQuantizer obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_ScalarQuantizer__QuantizerType.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_ScalarQuantizer__QuantizerType {
private transient long swigCPtr;
protected SWIGTYPE_p_ScalarQuantizer__QuantizerType(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_ScalarQuantizer__QuantizerType() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_ScalarQuantizer__QuantizerType obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_double.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_double {
private transient long swigCPtr;
protected SWIGTYPE_p_double(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_double() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_double obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_float_32_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_faiss__AlignedTableTightAllocT_float_32_t {
private transient long swigCPtr;
protected SWIGTYPE_p_faiss__AlignedTableTightAllocT_float_32_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_faiss__AlignedTableTightAllocT_float_32_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_faiss__AlignedTableTightAllocT_float_32_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_uint16_t_32_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_faiss__AlignedTableTightAllocT_uint16_t_32_t {
private transient long swigCPtr;
protected SWIGTYPE_p_faiss__AlignedTableTightAllocT_uint16_t_32_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_faiss__AlignedTableTightAllocT_uint16_t_32_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_faiss__AlignedTableTightAllocT_uint16_t_32_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_unsigned_char_32_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_faiss__AlignedTableTightAllocT_unsigned_char_32_t {
private transient long swigCPtr;
protected SWIGTYPE_p_faiss__AlignedTableTightAllocT_unsigned_char_32_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_faiss__AlignedTableTightAllocT_unsigned_char_32_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_faiss__AlignedTableTightAllocT_unsigned_char_32_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__BinaryInvertedListScanner.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_faiss__BinaryInvertedListScanner {
private transient long swigCPtr;
protected SWIGTYPE_p_faiss__BinaryInvertedListScanner(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_faiss__BinaryInvertedListScanner() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_faiss__BinaryInvertedListScanner obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t {
private transient long swigCPtr;
protected SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_int64_t_t_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_int64_t_t_t {
private transient long swigCPtr;
protected SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_int64_t_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_int64_t_t_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_int64_t_t_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_int64_t_t_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_int64_t_t_t {
private transient long swigCPtr;
protected SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_int64_t_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_int64_t_t_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_int64_t_t_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__IOReader.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_faiss__IOReader {
private transient long swigCPtr;
protected SWIGTYPE_p_faiss__IOReader(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_faiss__IOReader() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_faiss__IOReader obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__IOWriter.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_faiss__IOWriter {
private transient long swigCPtr;
protected SWIGTYPE_p_faiss__IOWriter(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_faiss__IOWriter() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_faiss__IOWriter obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__InvertedListScanner.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_faiss__InvertedListScanner {
private transient long swigCPtr;
protected SWIGTYPE_p_faiss__InvertedListScanner(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_faiss__InvertedListScanner() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_faiss__InvertedListScanner obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__LockLevels.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_faiss__LockLevels {
private transient long swigCPtr;
protected SWIGTYPE_p_faiss__LockLevels(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_faiss__LockLevels() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_faiss__LockLevels obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch {
private transient long swigCPtr;
protected SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__RandomGenerator.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_faiss__RandomGenerator {
private transient long swigCPtr;
protected SWIGTYPE_p_faiss__RandomGenerator(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_faiss__RandomGenerator() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_faiss__RandomGenerator obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_float.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_float {
private transient long swigCPtr;
protected SWIGTYPE_p_float(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_float() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_float obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_int.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_int {
private transient long swigCPtr;
protected SWIGTYPE_p_int(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_int() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_int obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_long.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_long {
private transient long swigCPtr;
protected SWIGTYPE_p_long(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_long() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_long obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_long_long.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_long_long {
private transient long swigCPtr;
protected SWIGTYPE_p_long_long(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_long_long() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_long_long obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_omp_lock_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_omp_lock_t {
private transient long swigCPtr;
protected SWIGTYPE_p_omp_lock_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_omp_lock_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_omp_lock_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__Index.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_p_faiss__Index {
private transient long swigCPtr;
protected SWIGTYPE_p_p_faiss__Index(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_p_faiss__Index() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_p_faiss__Index obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__InvertedLists.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_p_faiss__InvertedLists {
private transient long swigCPtr;
protected SWIGTYPE_p_p_faiss__InvertedLists(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_p_faiss__InvertedLists() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_p_faiss__InvertedLists obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__VectorTransform.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_p_faiss__VectorTransform {
private transient long swigCPtr;
protected SWIGTYPE_p_p_faiss__VectorTransform(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_p_faiss__VectorTransform() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_p_faiss__VectorTransform obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__pairT_float_int_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__pairT_float_int_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__pairT_float_int_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__pairT_float_int_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__pairT_float_int_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__priority_queueT_std__pairT_float_int_t_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__priority_queueT_std__pairT_float_int_t_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__priority_queueT_std__pairT_float_int_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__priority_queueT_std__pairT_float_int_t_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__priority_queueT_std__pairT_float_int_t_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__unordered_mapT_long_long_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__unordered_mapT_long_long_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__unordered_mapT_long_long_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__unordered_mapT_long_long_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__unordered_mapT_long_long_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__unordered_multimapT_int64_t_int64_t_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__unordered_multimapT_int64_t_int64_t_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__unordered_multimapT_int64_t_int64_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__unordered_multimapT_int64_t_int64_t_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__unordered_multimapT_int64_t_int64_t_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__ClusteringIterationStats_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__vectorT_faiss__ClusteringIterationStats_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_faiss__ClusteringIterationStats_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_faiss__ClusteringIterationStats_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_faiss__ClusteringIterationStats_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__HNSW__NodeDistFarther_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__vectorT_faiss__HNSW__NodeDistFarther_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_faiss__HNSW__NodeDistFarther_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_faiss__HNSW__NodeDistFarther_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_faiss__HNSW__NodeDistFarther_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__Index_p_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__vectorT_faiss__Index_p_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_faiss__Index_p_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_faiss__Index_p_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_faiss__Index_p_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__OnDiskOneList_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__vectorT_faiss__OnDiskOneList_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_faiss__OnDiskOneList_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_faiss__OnDiskOneList_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_faiss__OnDiskOneList_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__RangeQueryResult_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__vectorT_faiss__RangeQueryResult_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_faiss__RangeQueryResult_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_faiss__RangeQueryResult_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_faiss__RangeQueryResult_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult_p_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult_p_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult_p_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult_p_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult_p_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_int64_t_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__vectorT_int64_t_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_int64_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_int64_t_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_int64_t_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_long_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__vectorT_long_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_long_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_long_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_long_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_omp_lock_t_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__vectorT_omp_lock_t_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_omp_lock_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_omp_lock_t_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_omp_lock_t_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_std__vectorT_int64_t_t_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__vectorT_std__vectorT_int64_t_t_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_std__vectorT_int64_t_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_std__vectorT_int64_t_t_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_std__vectorT_int64_t_t_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_uint16_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_uint16_t {
private transient long swigCPtr;
protected SWIGTYPE_p_uint16_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_uint16_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_uint16_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_uint32_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_uint32_t {
private transient long swigCPtr;
protected SWIGTYPE_p_uint32_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_uint32_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_uint32_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_unsigned_char.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_unsigned_char {
private transient long swigCPtr;
protected SWIGTYPE_p_unsigned_char(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_unsigned_char() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_unsigned_char obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_unsigned_long.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_unsigned_long {
private transient long swigCPtr;
protected SWIGTYPE_p_unsigned_long(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_unsigned_long() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_unsigned_long obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_void.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SWIGTYPE_p_void {
private transient long swigCPtr;
protected SWIGTYPE_p_void(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_void() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_void obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SimulatedAnnealingOptimizer.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SimulatedAnnealingOptimizer extends SimulatedAnnealingParameters {
private transient long swigCPtr;
protected SimulatedAnnealingOptimizer(long cPtr, boolean cMemoryOwn) {
super(swigfaissJNI.SimulatedAnnealingOptimizer_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(SimulatedAnnealingOptimizer obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_SimulatedAnnealingOptimizer(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setObj(PermutationObjective value) {
swigfaissJNI.SimulatedAnnealingOptimizer_obj_set(swigCPtr, this, PermutationObjective.getCPtr(value), value);
}
public PermutationObjective getObj() {
long cPtr = swigfaissJNI.SimulatedAnnealingOptimizer_obj_get(swigCPtr, this);
return (cPtr == 0) ? null : new PermutationObjective(cPtr, false);
}
public void setN(int value) {
swigfaissJNI.SimulatedAnnealingOptimizer_n_set(swigCPtr, this, value);
}
public int getN() {
return swigfaissJNI.SimulatedAnnealingOptimizer_n_get(swigCPtr, this);
}
public void setLogfile(SWIGTYPE_p_FILE value) {
swigfaissJNI.SimulatedAnnealingOptimizer_logfile_set(swigCPtr, this, SWIGTYPE_p_FILE.getCPtr(value));
}
public SWIGTYPE_p_FILE getLogfile() {
long cPtr = swigfaissJNI.SimulatedAnnealingOptimizer_logfile_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_FILE(cPtr, false);
}
public SimulatedAnnealingOptimizer(PermutationObjective obj, SimulatedAnnealingParameters p) {
this(swigfaissJNI.new_SimulatedAnnealingOptimizer(PermutationObjective.getCPtr(obj), obj, SimulatedAnnealingParameters.getCPtr(p), p), true);
}
public void setRnd(SWIGTYPE_p_faiss__RandomGenerator value) {
swigfaissJNI.SimulatedAnnealingOptimizer_rnd_set(swigCPtr, this, SWIGTYPE_p_faiss__RandomGenerator.getCPtr(value));
}
public SWIGTYPE_p_faiss__RandomGenerator getRnd() {
long cPtr = swigfaissJNI.SimulatedAnnealingOptimizer_rnd_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_faiss__RandomGenerator(cPtr, false);
}
public void setInit_cost(double value) {
swigfaissJNI.SimulatedAnnealingOptimizer_init_cost_set(swigCPtr, this, value);
}
public double getInit_cost() {
return swigfaissJNI.SimulatedAnnealingOptimizer_init_cost_get(swigCPtr, this);
}
public double optimize(SWIGTYPE_p_int perm) {
return swigfaissJNI.SimulatedAnnealingOptimizer_optimize(swigCPtr, this, SWIGTYPE_p_int.getCPtr(perm));
}
public double run_optimization(SWIGTYPE_p_int best_perm) {
return swigfaissJNI.SimulatedAnnealingOptimizer_run_optimization(swigCPtr, this, SWIGTYPE_p_int.getCPtr(best_perm));
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SimulatedAnnealingParameters.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SimulatedAnnealingParameters {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected SimulatedAnnealingParameters(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(SimulatedAnnealingParameters obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_SimulatedAnnealingParameters(swigCPtr);
}
swigCPtr = 0;
}
}
public void setInit_temperature(double value) {
swigfaissJNI.SimulatedAnnealingParameters_init_temperature_set(swigCPtr, this, value);
}
public double getInit_temperature() {
return swigfaissJNI.SimulatedAnnealingParameters_init_temperature_get(swigCPtr, this);
}
public void setTemperature_decay(double value) {
swigfaissJNI.SimulatedAnnealingParameters_temperature_decay_set(swigCPtr, this, value);
}
public double getTemperature_decay() {
return swigfaissJNI.SimulatedAnnealingParameters_temperature_decay_get(swigCPtr, this);
}
public void setN_iter(int value) {
swigfaissJNI.SimulatedAnnealingParameters_n_iter_set(swigCPtr, this, value);
}
public int getN_iter() {
return swigfaissJNI.SimulatedAnnealingParameters_n_iter_get(swigCPtr, this);
}
public void setN_redo(int value) {
swigfaissJNI.SimulatedAnnealingParameters_n_redo_set(swigCPtr, this, value);
}
public int getN_redo() {
return swigfaissJNI.SimulatedAnnealingParameters_n_redo_get(swigCPtr, this);
}
public void setSeed(int value) {
swigfaissJNI.SimulatedAnnealingParameters_seed_set(swigCPtr, this, value);
}
public int getSeed() {
return swigfaissJNI.SimulatedAnnealingParameters_seed_get(swigCPtr, this);
}
public void setVerbose(int value) {
swigfaissJNI.SimulatedAnnealingParameters_verbose_set(swigCPtr, this, value);
}
public int getVerbose() {
return swigfaissJNI.SimulatedAnnealingParameters_verbose_get(swigCPtr, this);
}
public void setOnly_bit_flips(boolean value) {
swigfaissJNI.SimulatedAnnealingParameters_only_bit_flips_set(swigCPtr, this, value);
}
public boolean getOnly_bit_flips() {
return swigfaissJNI.SimulatedAnnealingParameters_only_bit_flips_get(swigCPtr, this);
}
public void setInit_random(boolean value) {
swigfaissJNI.SimulatedAnnealingParameters_init_random_set(swigCPtr, this, value);
}
public boolean getInit_random() {
return swigfaissJNI.SimulatedAnnealingParameters_init_random_get(swigCPtr, this);
}
public SimulatedAnnealingParameters() {
this(swigfaissJNI.new_SimulatedAnnealingParameters(), true);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SliceInvertedLists.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SliceInvertedLists extends ReadOnlyInvertedLists {
private transient long swigCPtr;
protected SliceInvertedLists(long cPtr, boolean cMemoryOwn) {
super(swigfaissJNI.SliceInvertedLists_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(SliceInvertedLists obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_SliceInvertedLists(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setIl(InvertedLists value) {
swigfaissJNI.SliceInvertedLists_il_set(swigCPtr, this, InvertedLists.getCPtr(value), value);
}
public InvertedLists getIl() {
long cPtr = swigfaissJNI.SliceInvertedLists_il_get(swigCPtr, this);
return (cPtr == 0) ? null : new InvertedLists(cPtr, false);
}
public void setI0(long value) {
swigfaissJNI.SliceInvertedLists_i0_set(swigCPtr, this, value);
}
public long getI0() {
return swigfaissJNI.SliceInvertedLists_i0_get(swigCPtr, this);
}
public void setI1(long value) {
swigfaissJNI.SliceInvertedLists_i1_set(swigCPtr, this, value);
}
public long getI1() {
return swigfaissJNI.SliceInvertedLists_i1_get(swigCPtr, this);
}
public SliceInvertedLists(InvertedLists il, long i0, long i1) {
this(swigfaissJNI.new_SliceInvertedLists(InvertedLists.getCPtr(il), il, i0, i1), true);
}
public long list_size(long list_no) {
return swigfaissJNI.SliceInvertedLists_list_size(swigCPtr, this, list_no);
}
public SWIGTYPE_p_unsigned_char get_codes(long list_no) {
long cPtr = swigfaissJNI.SliceInvertedLists_get_codes(swigCPtr, this, list_no);
return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
}
public LongVector get_ids(long list_no) {
return new LongVector(swigfaissJNI.SliceInvertedLists_get_ids(swigCPtr, this, list_no), false);
}
public void release_codes(long list_no, SWIGTYPE_p_unsigned_char codes) {
swigfaissJNI.SliceInvertedLists_release_codes(swigCPtr, this, list_no, SWIGTYPE_p_unsigned_char.getCPtr(codes));
}
public void release_ids(long list_no, LongVector ids) {
swigfaissJNI.SliceInvertedLists_release_ids(swigCPtr, this, list_no, SWIGTYPE_p_long_long.getCPtr(ids.data()), ids);
}
public long get_single_id(long list_no, long offset) {
return swigfaissJNI.SliceInvertedLists_get_single_id(swigCPtr, this, list_no, offset);
}
public SWIGTYPE_p_unsigned_char get_single_code(long list_no, long offset) {
long cPtr = swigfaissJNI.SliceInvertedLists_get_single_code(swigCPtr, this, list_no, offset);
return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
}
public void prefetch_lists(LongVector list_nos, int nlist) {
swigfaissJNI.SliceInvertedLists_prefetch_lists(swigCPtr, this, SWIGTYPE_p_long_long.getCPtr(list_nos.data()), list_nos, nlist);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/SlidingIndexWindow.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class SlidingIndexWindow {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected SlidingIndexWindow(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(SlidingIndexWindow obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_SlidingIndexWindow(swigCPtr);
}
swigCPtr = 0;
}
}
public void setIndex(Index value) {
swigfaissJNI.SlidingIndexWindow_index_set(swigCPtr, this, Index.getCPtr(value), value);
}
public Index getIndex() {
long cPtr = swigfaissJNI.SlidingIndexWindow_index_get(swigCPtr, this);
return (cPtr == 0) ? null : new Index(cPtr, false);
}
public void setIls(ArrayInvertedLists value) {
swigfaissJNI.SlidingIndexWindow_ils_set(swigCPtr, this, ArrayInvertedLists.getCPtr(value), value);
}
public ArrayInvertedLists getIls() {
long cPtr = swigfaissJNI.SlidingIndexWindow_ils_get(swigCPtr, this);
return (cPtr == 0) ? null : new ArrayInvertedLists(cPtr, false);
}
public void setN_slice(int value) {
swigfaissJNI.SlidingIndexWindow_n_slice_set(swigCPtr, this, value);
}
public int getN_slice() {
return swigfaissJNI.SlidingIndexWindow_n_slice_get(swigCPtr, this);
}
public void setNlist(long value) {
swigfaissJNI.SlidingIndexWindow_nlist_set(swigCPtr, this, value);
}
public long getNlist() {
return swigfaissJNI.SlidingIndexWindow_nlist_get(swigCPtr, this);
}
public void setSizes(SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t value) {
swigfaissJNI.SlidingIndexWindow_sizes_set(swigCPtr, this, SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t.getCPtr(value));
}
public SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t getSizes() {
long cPtr = swigfaissJNI.SlidingIndexWindow_sizes_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t(cPtr, false);
}
public SlidingIndexWindow(Index index) {
this(swigfaissJNI.new_SlidingIndexWindow(Index.getCPtr(index), index), true);
}
public void step(Index sub_index, boolean remove_oldest) {
swigfaissJNI.SlidingIndexWindow_step(swigCPtr, this, Index.getCPtr(sub_index), sub_index, remove_oldest);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/StopWordsInvertedLists.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class StopWordsInvertedLists extends ReadOnlyInvertedLists {
private transient long swigCPtr;
protected StopWordsInvertedLists(long cPtr, boolean cMemoryOwn) {
super(swigfaissJNI.StopWordsInvertedLists_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(StopWordsInvertedLists obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_StopWordsInvertedLists(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setIl0(InvertedLists value) {
swigfaissJNI.StopWordsInvertedLists_il0_set(swigCPtr, this, InvertedLists.getCPtr(value), value);
}
public InvertedLists getIl0() {
long cPtr = swigfaissJNI.StopWordsInvertedLists_il0_get(swigCPtr, this);
return (cPtr == 0) ? null : new InvertedLists(cPtr, false);
}
public void setMaxsize(long value) {
swigfaissJNI.StopWordsInvertedLists_maxsize_set(swigCPtr, this, value);
}
public long getMaxsize() {
return swigfaissJNI.StopWordsInvertedLists_maxsize_get(swigCPtr, this);
}
public StopWordsInvertedLists(InvertedLists il, long maxsize) {
this(swigfaissJNI.new_StopWordsInvertedLists(InvertedLists.getCPtr(il), il, maxsize), true);
}
public long list_size(long list_no) {
return swigfaissJNI.StopWordsInvertedLists_list_size(swigCPtr, this, list_no);
}
public SWIGTYPE_p_unsigned_char get_codes(long list_no) {
long cPtr = swigfaissJNI.StopWordsInvertedLists_get_codes(swigCPtr, this, list_no);
return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
}
public LongVector get_ids(long list_no) {
return new LongVector(swigfaissJNI.StopWordsInvertedLists_get_ids(swigCPtr, this, list_no), false);
}
public void release_codes(long list_no, SWIGTYPE_p_unsigned_char codes) {
swigfaissJNI.StopWordsInvertedLists_release_codes(swigCPtr, this, list_no, SWIGTYPE_p_unsigned_char.getCPtr(codes));
}
public void release_ids(long list_no, LongVector ids) {
swigfaissJNI.StopWordsInvertedLists_release_ids(swigCPtr, this, list_no, SWIGTYPE_p_long_long.getCPtr(ids.data()), ids);
}
public long get_single_id(long list_no, long offset) {
return swigfaissJNI.StopWordsInvertedLists_get_single_id(swigCPtr, this, list_no, offset);
}
public SWIGTYPE_p_unsigned_char get_single_code(long list_no, long offset) {
long cPtr = swigfaissJNI.StopWordsInvertedLists_get_single_code(swigCPtr, this, list_no, offset);
return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
}
public void prefetch_lists(LongVector list_nos, int nlist) {
swigfaissJNI.StopWordsInvertedLists_prefetch_lists(swigCPtr, this, SWIGTYPE_p_long_long.getCPtr(list_nos.data()), list_nos, nlist);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/Uint64Vector.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class Uint64Vector {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected Uint64Vector(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Uint64Vector obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_Uint64Vector(swigCPtr);
}
swigCPtr = 0;
}
}
public Uint64Vector() {
this(swigfaissJNI.new_Uint64Vector(), true);
}
public void push_back(long arg0) {
swigfaissJNI.Uint64Vector_push_back(swigCPtr, this, arg0);
}
public void clear() {
swigfaissJNI.Uint64Vector_clear(swigCPtr, this);
}
public SWIGTYPE_p_unsigned_long data() {
long cPtr = swigfaissJNI.Uint64Vector_data(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_long(cPtr, false);
}
public long size() {
return swigfaissJNI.Uint64Vector_size(swigCPtr, this);
}
public long at(long n) {
return swigfaissJNI.Uint64Vector_at(swigCPtr, this, n);
}
public void resize(long n) {
swigfaissJNI.Uint64Vector_resize(swigCPtr, this, n);
}
public void reserve(long n) {
swigfaissJNI.Uint64Vector_reserve(swigCPtr, this, n);
}
public void swap(Uint64Vector other) {
swigfaissJNI.Uint64Vector_swap(swigCPtr, this, Uint64Vector.getCPtr(other), other);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/VStackInvertedLists.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class VStackInvertedLists extends ReadOnlyInvertedLists {
private transient long swigCPtr;
protected VStackInvertedLists(long cPtr, boolean cMemoryOwn) {
super(swigfaissJNI.VStackInvertedLists_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(VStackInvertedLists obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_VStackInvertedLists(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setIls(SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t value) {
swigfaissJNI.VStackInvertedLists_ils_set(swigCPtr, this, SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t.getCPtr(value));
}
public SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t getIls() {
long cPtr = swigfaissJNI.VStackInvertedLists_ils_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t(cPtr, false);
}
public void setCumsz(SWIGTYPE_p_std__vectorT_int64_t_t value) {
swigfaissJNI.VStackInvertedLists_cumsz_set(swigCPtr, this, SWIGTYPE_p_std__vectorT_int64_t_t.getCPtr(value));
}
public SWIGTYPE_p_std__vectorT_int64_t_t getCumsz() {
long cPtr = swigfaissJNI.VStackInvertedLists_cumsz_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_std__vectorT_int64_t_t(cPtr, false);
}
public VStackInvertedLists(int nil, SWIGTYPE_p_p_faiss__InvertedLists ils) {
this(swigfaissJNI.new_VStackInvertedLists(nil, SWIGTYPE_p_p_faiss__InvertedLists.getCPtr(ils)), true);
}
public long list_size(long list_no) {
return swigfaissJNI.VStackInvertedLists_list_size(swigCPtr, this, list_no);
}
public SWIGTYPE_p_unsigned_char get_codes(long list_no) {
long cPtr = swigfaissJNI.VStackInvertedLists_get_codes(swigCPtr, this, list_no);
return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
}
public LongVector get_ids(long list_no) {
return new LongVector(swigfaissJNI.VStackInvertedLists_get_ids(swigCPtr, this, list_no), false);
}
public void release_codes(long list_no, SWIGTYPE_p_unsigned_char codes) {
swigfaissJNI.VStackInvertedLists_release_codes(swigCPtr, this, list_no, SWIGTYPE_p_unsigned_char.getCPtr(codes));
}
public void release_ids(long list_no, LongVector ids) {
swigfaissJNI.VStackInvertedLists_release_ids(swigCPtr, this, list_no, SWIGTYPE_p_long_long.getCPtr(ids.data()), ids);
}
public long get_single_id(long list_no, long offset) {
return swigfaissJNI.VStackInvertedLists_get_single_id(swigCPtr, this, list_no, offset);
}
public SWIGTYPE_p_unsigned_char get_single_code(long list_no, long offset) {
long cPtr = swigfaissJNI.VStackInvertedLists_get_single_code(swigCPtr, this, list_no, offset);
return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
}
public void prefetch_lists(LongVector list_nos, int nlist) {
swigfaissJNI.VStackInvertedLists_prefetch_lists(swigCPtr, this, SWIGTYPE_p_long_long.getCPtr(list_nos.data()), list_nos, nlist);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/VectorTransform.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class VectorTransform {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected VectorTransform(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(VectorTransform obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_VectorTransform(swigCPtr);
}
swigCPtr = 0;
}
}
public void setD_in(int value) {
swigfaissJNI.VectorTransform_d_in_set(swigCPtr, this, value);
}
public int getD_in() {
return swigfaissJNI.VectorTransform_d_in_get(swigCPtr, this);
}
public void setD_out(int value) {
swigfaissJNI.VectorTransform_d_out_set(swigCPtr, this, value);
}
public int getD_out() {
return swigfaissJNI.VectorTransform_d_out_get(swigCPtr, this);
}
public void setIs_trained(boolean value) {
swigfaissJNI.VectorTransform_is_trained_set(swigCPtr, this, value);
}
public boolean getIs_trained() {
return swigfaissJNI.VectorTransform_is_trained_get(swigCPtr, this);
}
public void train(long n, SWIGTYPE_p_float x) {
swigfaissJNI.VectorTransform_train(swigCPtr, this, n, SWIGTYPE_p_float.getCPtr(x));
}
public SWIGTYPE_p_float apply(long n, SWIGTYPE_p_float x) {
long cPtr = swigfaissJNI.VectorTransform_apply(swigCPtr, this, n, SWIGTYPE_p_float.getCPtr(x));
return (cPtr == 0) ? null : new SWIGTYPE_p_float(cPtr, false);
}
public void apply_noalloc(long n, SWIGTYPE_p_float x, SWIGTYPE_p_float xt) {
swigfaissJNI.VectorTransform_apply_noalloc(swigCPtr, this, n, SWIGTYPE_p_float.getCPtr(x), SWIGTYPE_p_float.getCPtr(xt));
}
public void reverse_transform(long n, SWIGTYPE_p_float xt, SWIGTYPE_p_float x) {
swigfaissJNI.VectorTransform_reverse_transform(swigCPtr, this, n, SWIGTYPE_p_float.getCPtr(xt), SWIGTYPE_p_float.getCPtr(x));
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/VectorTransformVector.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class VectorTransformVector {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected VectorTransformVector(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(VectorTransformVector obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_VectorTransformVector(swigCPtr);
}
swigCPtr = 0;
}
}
public VectorTransformVector() {
this(swigfaissJNI.new_VectorTransformVector(), true);
}
public void push_back(VectorTransform arg0) {
swigfaissJNI.VectorTransformVector_push_back(swigCPtr, this, VectorTransform.getCPtr(arg0), arg0);
}
public void clear() {
swigfaissJNI.VectorTransformVector_clear(swigCPtr, this);
}
public SWIGTYPE_p_p_faiss__VectorTransform data() {
long cPtr = swigfaissJNI.VectorTransformVector_data(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_p_faiss__VectorTransform(cPtr, false);
}
public long size() {
return swigfaissJNI.VectorTransformVector_size(swigCPtr, this);
}
public VectorTransform at(long n) {
long cPtr = swigfaissJNI.VectorTransformVector_at(swigCPtr, this, n);
return (cPtr == 0) ? null : new VectorTransform(cPtr, false);
}
public void resize(long n) {
swigfaissJNI.VectorTransformVector_resize(swigCPtr, this, n);
}
public void reserve(long n) {
swigfaissJNI.VectorTransformVector_reserve(swigCPtr, this, n);
}
public void swap(VectorTransformVector other) {
swigfaissJNI.VectorTransformVector_swap(swigCPtr, this, VectorTransformVector.getCPtr(other), other);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/VisitedTable.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class VisitedTable {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected VisitedTable(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(VisitedTable obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_VisitedTable(swigCPtr);
}
swigCPtr = 0;
}
}
public void setVisited(ByteVector value) {
swigfaissJNI.VisitedTable_visited_set(swigCPtr, this, ByteVector.getCPtr(value), value);
}
public ByteVector getVisited() {
long cPtr = swigfaissJNI.VisitedTable_visited_get(swigCPtr, this);
return (cPtr == 0) ? null : new ByteVector(cPtr, false);
}
public void setVisno(int value) {
swigfaissJNI.VisitedTable_visno_set(swigCPtr, this, value);
}
public int getVisno() {
return swigfaissJNI.VisitedTable_visno_get(swigCPtr, this);
}
public VisitedTable(int size) {
this(swigfaissJNI.new_VisitedTable(size), true);
}
public void set(int no) {
swigfaissJNI.VisitedTable_set(swigCPtr, this, no);
}
public boolean get(int no) {
return swigfaissJNI.VisitedTable_get(swigCPtr, this, no);
}
public void advance() {
swigfaissJNI.VisitedTable_advance(swigCPtr, this);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/doubleArray.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class doubleArray {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected doubleArray(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(doubleArray obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_doubleArray(swigCPtr);
}
swigCPtr = 0;
}
}
public doubleArray(int nelements) {
this(swigfaissJNI.new_doubleArray(nelements), true);
}
public double getitem(int index) {
return swigfaissJNI.doubleArray_getitem(swigCPtr, this, index);
}
public void setitem(int index, double value) {
swigfaissJNI.doubleArray_setitem(swigCPtr, this, index, value);
}
public SWIGTYPE_p_double cast() {
long cPtr = swigfaissJNI.doubleArray_cast(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_double(cPtr, false);
}
public static doubleArray frompointer(SWIGTYPE_p_double t) {
long cPtr = swigfaissJNI.doubleArray_frompointer(SWIGTYPE_p_double.getCPtr(t));
return (cPtr == 0) ? null : new doubleArray(cPtr, false);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/floatArray.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class floatArray {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected floatArray(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(floatArray obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_floatArray(swigCPtr);
}
swigCPtr = 0;
}
}
public floatArray(int nelements) {
this(swigfaissJNI.new_floatArray(nelements), true);
}
public float getitem(int index) {
return swigfaissJNI.floatArray_getitem(swigCPtr, this, index);
}
public void setitem(int index, float value) {
swigfaissJNI.floatArray_setitem(swigCPtr, this, index, value);
}
public SWIGTYPE_p_float cast() {
long cPtr = swigfaissJNI.floatArray_cast(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_float(cPtr, false);
}
public static floatArray frompointer(SWIGTYPE_p_float t) {
long cPtr = swigfaissJNI.floatArray_frompointer(SWIGTYPE_p_float.getCPtr(t));
return (cPtr == 0) ? null : new floatArray(cPtr, false);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/float_maxheap_array_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class float_maxheap_array_t {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected float_maxheap_array_t(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(float_maxheap_array_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_float_maxheap_array_t(swigCPtr);
}
swigCPtr = 0;
}
}
public void setNh(long value) {
swigfaissJNI.float_maxheap_array_t_nh_set(swigCPtr, this, value);
}
public long getNh() {
return swigfaissJNI.float_maxheap_array_t_nh_get(swigCPtr, this);
}
public void setK(long value) {
swigfaissJNI.float_maxheap_array_t_k_set(swigCPtr, this, value);
}
public long getK() {
return swigfaissJNI.float_maxheap_array_t_k_get(swigCPtr, this);
}
public void setIds(LongVector value) {
swigfaissJNI.float_maxheap_array_t_ids_set(swigCPtr, this, SWIGTYPE_p_long_long.getCPtr(value.data()), value);
}
public LongVector getIds() {
return new LongVector(swigfaissJNI.float_maxheap_array_t_ids_get(swigCPtr, this), false);
}
public void setVal(SWIGTYPE_p_float value) {
swigfaissJNI.float_maxheap_array_t_val_set(swigCPtr, this, SWIGTYPE_p_float.getCPtr(value));
}
public SWIGTYPE_p_float getVal() {
long cPtr = swigfaissJNI.float_maxheap_array_t_val_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_float(cPtr, false);
}
public SWIGTYPE_p_float get_val(long key) {
long cPtr = swigfaissJNI.float_maxheap_array_t_get_val(swigCPtr, this, key);
return (cPtr == 0) ? null : new SWIGTYPE_p_float(cPtr, false);
}
public LongVector get_ids(long key) {
return new LongVector(swigfaissJNI.float_maxheap_array_t_get_ids(swigCPtr, this, key), false);
}
public void heapify() {
swigfaissJNI.float_maxheap_array_t_heapify(swigCPtr, this);
}
public void addn(long nj, SWIGTYPE_p_float vin, long j0, long i0, long ni) {
swigfaissJNI.float_maxheap_array_t_addn__SWIG_0(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin), j0, i0, ni);
}
public void addn(long nj, SWIGTYPE_p_float vin, long j0, long i0) {
swigfaissJNI.float_maxheap_array_t_addn__SWIG_1(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin), j0, i0);
}
public void addn(long nj, SWIGTYPE_p_float vin, long j0) {
swigfaissJNI.float_maxheap_array_t_addn__SWIG_2(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin), j0);
}
public void addn(long nj, SWIGTYPE_p_float vin) {
swigfaissJNI.float_maxheap_array_t_addn__SWIG_3(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin));
}
public void addn_with_ids(long nj, SWIGTYPE_p_float vin, LongVector id_in, long id_stride, long i0, long ni) {
swigfaissJNI.float_maxheap_array_t_addn_with_ids__SWIG_0(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin), SWIGTYPE_p_long_long.getCPtr(id_in.data()), id_in, id_stride, i0, ni);
}
public void addn_with_ids(long nj, SWIGTYPE_p_float vin, LongVector id_in, long id_stride, long i0) {
swigfaissJNI.float_maxheap_array_t_addn_with_ids__SWIG_1(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin), SWIGTYPE_p_long_long.getCPtr(id_in.data()), id_in, id_stride, i0);
}
public void addn_with_ids(long nj, SWIGTYPE_p_float vin, LongVector id_in, long id_stride) {
swigfaissJNI.float_maxheap_array_t_addn_with_ids__SWIG_2(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin), SWIGTYPE_p_long_long.getCPtr(id_in.data()), id_in, id_stride);
}
public void addn_with_ids(long nj, SWIGTYPE_p_float vin, LongVector id_in) {
swigfaissJNI.float_maxheap_array_t_addn_with_ids__SWIG_3(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin), SWIGTYPE_p_long_long.getCPtr(id_in.data()), id_in);
}
public void addn_with_ids(long nj, SWIGTYPE_p_float vin) {
swigfaissJNI.float_maxheap_array_t_addn_with_ids__SWIG_4(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin));
}
public void reorder() {
swigfaissJNI.float_maxheap_array_t_reorder(swigCPtr, this);
}
public void per_line_extrema(SWIGTYPE_p_float vals_out, LongVector idx_out) {
swigfaissJNI.float_maxheap_array_t_per_line_extrema(swigCPtr, this, SWIGTYPE_p_float.getCPtr(vals_out), SWIGTYPE_p_long_long.getCPtr(idx_out.data()), idx_out);
}
public float_maxheap_array_t() {
this(swigfaissJNI.new_float_maxheap_array_t(), true);
}
}
|
the-algorithm-main/ann/src/main/java/com/twitter/ann/faiss/swig/float_minheap_array_t.java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class float_minheap_array_t {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected float_minheap_array_t(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(float_minheap_array_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_float_minheap_array_t(swigCPtr);
}
swigCPtr = 0;
}
}
public void setNh(long value) {
swigfaissJNI.float_minheap_array_t_nh_set(swigCPtr, this, value);
}
public long getNh() {
return swigfaissJNI.float_minheap_array_t_nh_get(swigCPtr, this);
}
public void setK(long value) {
swigfaissJNI.float_minheap_array_t_k_set(swigCPtr, this, value);
}
public long getK() {
return swigfaissJNI.float_minheap_array_t_k_get(swigCPtr, this);
}
public void setIds(LongVector value) {
swigfaissJNI.float_minheap_array_t_ids_set(swigCPtr, this, SWIGTYPE_p_long_long.getCPtr(value.data()), value);
}
public LongVector getIds() {
return new LongVector(swigfaissJNI.float_minheap_array_t_ids_get(swigCPtr, this), false);
}
public void setVal(SWIGTYPE_p_float value) {
swigfaissJNI.float_minheap_array_t_val_set(swigCPtr, this, SWIGTYPE_p_float.getCPtr(value));
}
public SWIGTYPE_p_float getVal() {
long cPtr = swigfaissJNI.float_minheap_array_t_val_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_float(cPtr, false);
}
public SWIGTYPE_p_float get_val(long key) {
long cPtr = swigfaissJNI.float_minheap_array_t_get_val(swigCPtr, this, key);
return (cPtr == 0) ? null : new SWIGTYPE_p_float(cPtr, false);
}
public LongVector get_ids(long key) {
return new LongVector(swigfaissJNI.float_minheap_array_t_get_ids(swigCPtr, this, key), false);
}
public void heapify() {
swigfaissJNI.float_minheap_array_t_heapify(swigCPtr, this);
}
public void addn(long nj, SWIGTYPE_p_float vin, long j0, long i0, long ni) {
swigfaissJNI.float_minheap_array_t_addn__SWIG_0(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin), j0, i0, ni);
}
public void addn(long nj, SWIGTYPE_p_float vin, long j0, long i0) {
swigfaissJNI.float_minheap_array_t_addn__SWIG_1(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin), j0, i0);
}
public void addn(long nj, SWIGTYPE_p_float vin, long j0) {
swigfaissJNI.float_minheap_array_t_addn__SWIG_2(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin), j0);
}
public void addn(long nj, SWIGTYPE_p_float vin) {
swigfaissJNI.float_minheap_array_t_addn__SWIG_3(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin));
}
public void addn_with_ids(long nj, SWIGTYPE_p_float vin, LongVector id_in, long id_stride, long i0, long ni) {
swigfaissJNI.float_minheap_array_t_addn_with_ids__SWIG_0(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin), SWIGTYPE_p_long_long.getCPtr(id_in.data()), id_in, id_stride, i0, ni);
}
public void addn_with_ids(long nj, SWIGTYPE_p_float vin, LongVector id_in, long id_stride, long i0) {
swigfaissJNI.float_minheap_array_t_addn_with_ids__SWIG_1(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin), SWIGTYPE_p_long_long.getCPtr(id_in.data()), id_in, id_stride, i0);
}
public void addn_with_ids(long nj, SWIGTYPE_p_float vin, LongVector id_in, long id_stride) {
swigfaissJNI.float_minheap_array_t_addn_with_ids__SWIG_2(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin), SWIGTYPE_p_long_long.getCPtr(id_in.data()), id_in, id_stride);
}
public void addn_with_ids(long nj, SWIGTYPE_p_float vin, LongVector id_in) {
swigfaissJNI.float_minheap_array_t_addn_with_ids__SWIG_3(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin), SWIGTYPE_p_long_long.getCPtr(id_in.data()), id_in);
}
public void addn_with_ids(long nj, SWIGTYPE_p_float vin) {
swigfaissJNI.float_minheap_array_t_addn_with_ids__SWIG_4(swigCPtr, this, nj, SWIGTYPE_p_float.getCPtr(vin));
}
public void reorder() {
swigfaissJNI.float_minheap_array_t_reorder(swigCPtr, this);
}
public void per_line_extrema(SWIGTYPE_p_float vals_out, LongVector idx_out) {
swigfaissJNI.float_minheap_array_t_per_line_extrema(swigCPtr, this, SWIGTYPE_p_float.getCPtr(vals_out), SWIGTYPE_p_long_long.getCPtr(idx_out.data()), idx_out);
}
public float_minheap_array_t() {
this(swigfaissJNI.new_float_minheap_array_t(), true);
}
}
|