public static IndexFlatSafeHandle New(long d, MetricType metric = MetricType.MetricL2) { var index = new IndexFlatSafeHandle(); FaissEnvironment.FaissNativeInit(); _native.faiss_IndexFlat_new_with(ref index, d, metric); return(index); }
internal IndexFlat(IndexFlatSafeHandle handle) : base(handle) { }
public IndexFlat(long dimension, MetricType metric) : base(IndexFlatSafeHandle.New(dimension, metric)) { }