diff --git a/faiss/Clustering.cpp b/faiss/Clustering.cpp index 31955bd531..1fd33bb2e7 100644 --- a/faiss/Clustering.cpp +++ b/faiss/Clustering.cpp @@ -250,7 +250,7 @@ int split_clusters( return nsplit; } -} // namespace +}; // namespace void Clustering::train_encoded( idx_t nx, @@ -617,7 +617,7 @@ void copy_columns(idx_t n, idx_t d1, const float* src, idx_t d2, float* dest) { } } -} // namespace +}; // namespace void ProgressiveDimClustering::train( idx_t n, diff --git a/faiss/IndexIVFSpectralHash.cpp b/faiss/IndexIVFSpectralHash.cpp index 9a48befc29..dace151270 100644 --- a/faiss/IndexIVFSpectralHash.cpp +++ b/faiss/IndexIVFSpectralHash.cpp @@ -157,7 +157,7 @@ void binarize_with_freq( } } -} // namespace +}; // namespace void IndexIVFSpectralHash::encode_vectors( idx_t n, diff --git a/faiss/impl/AdditiveQuantizer.h b/faiss/impl/AdditiveQuantizer.h index 8eceabe5d6..9a4f4fa375 100644 --- a/faiss/impl/AdditiveQuantizer.h +++ b/faiss/impl/AdditiveQuantizer.h @@ -203,4 +203,4 @@ struct AdditiveQuantizer : Quantizer { virtual ~AdditiveQuantizer(); }; -} // namespace faiss +}; // namespace faiss diff --git a/faiss/impl/ProductAdditiveQuantizer.h b/faiss/impl/ProductAdditiveQuantizer.h index 9376ba121f..163d341cf2 100644 --- a/faiss/impl/ProductAdditiveQuantizer.h +++ b/faiss/impl/ProductAdditiveQuantizer.h @@ -151,4 +151,4 @@ struct ProductResidualQuantizer : ProductAdditiveQuantizer { ProductResidualQuantizer(); }; -} // namespace faiss \ No newline at end of file +}; // namespace faiss \ No newline at end of file diff --git a/faiss/impl/ResidualQuantizer.h b/faiss/impl/ResidualQuantizer.h index 004f7cabd4..95677d888b 100644 --- a/faiss/impl/ResidualQuantizer.h +++ b/faiss/impl/ResidualQuantizer.h @@ -155,4 +155,4 @@ struct ResidualQuantizer : AdditiveQuantizer { std::vector cent_norms; }; -} // namespace faiss +}; // namespace faiss diff --git a/faiss/invlists/InvertedLists.cpp b/faiss/invlists/InvertedLists.cpp index ca87ae00ea..46f31e6286 100644 --- a/faiss/invlists/InvertedLists.cpp +++ b/faiss/invlists/InvertedLists.cpp @@ -437,7 +437,7 @@ idx_t translate_list_no(const SliceInvertedLists* sil, idx_t list_no) { return list_no + sil->i0; } -} // namespace +}; // namespace SliceInvertedLists::SliceInvertedLists( const InvertedLists* il, @@ -522,7 +522,7 @@ idx_t sum_il_sizes(int nil, const InvertedLists** ils_in) { return tot; } -} // namespace +}; // namespace VStackInvertedLists::VStackInvertedLists(int nil, const InvertedLists** ils_in) : ReadOnlyInvertedLists( diff --git a/faiss/python/python_callbacks.cpp b/faiss/python/python_callbacks.cpp index bfcf883aec..c99c1a3f77 100644 --- a/faiss/python/python_callbacks.cpp +++ b/faiss/python/python_callbacks.cpp @@ -22,7 +22,7 @@ struct PyThreadLock { } }; -} // namespace +}; // namespace /*********************************************************** * Callbacks for IO reader and writer diff --git a/faiss/utils/sorting.cpp b/faiss/utils/sorting.cpp index 76fa5e6201..67dd51bf73 100644 --- a/faiss/utils/sorting.cpp +++ b/faiss/utils/sorting.cpp @@ -123,7 +123,7 @@ void parallel_merge( } } -} // namespace +}; // namespace void fvec_argsort(size_t n, const float* vals, size_t* perm) { for (size_t i = 0; i < n; i++) {