From 49b0cd87717ba3fae129ed52aa9eb476636c4353 Mon Sep 17 00:00:00 2001 From: Yinzuo Jiang Date: Sat, 27 Apr 2024 23:56:25 +0800 Subject: [PATCH] Fix comments in cpp/include/raft/neighbors/cagra_serialize.cuh --- .../raft/neighbors/cagra_serialize.cuh | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/cpp/include/raft/neighbors/cagra_serialize.cuh b/cpp/include/raft/neighbors/cagra_serialize.cuh index 83830c7457..eae2269662 100644 --- a/cpp/include/raft/neighbors/cagra_serialize.cuh +++ b/cpp/include/raft/neighbors/cagra_serialize.cuh @@ -32,14 +32,14 @@ namespace raft::neighbors::cagra { * * @code{.cpp} * #include - * #include + * #include * * raft::resources handle; * * // create an output stream * std::ostream os(std::cout.rdbuf()); - * // create an index with `auto index = raft::cagra::build(...);` - * raft::cagra::serialize(handle, os, index); + * // create an index with `auto index = raft::neighbors::cagra::build(...);` + * raft::neighbors::cagra::serialize(handle, os, index); * @endcode * * @tparam T data element type @@ -67,14 +67,14 @@ void serialize(raft::resources const& handle, * * @code{.cpp} * #include - * #include + * #include * * raft::resources handle; * * // create a string with a filepath * std::string filename("/path/to/index"); - * // create an index with `auto index = raft::cagra::build(...);` - * raft::cagra::serialize(handle, filename, index); + * // create an index with `auto index = raft::neighbors::cagra::build(...);` + * raft::neighbors::cagra::serialize(handle, filename, index); * @endcode * * @tparam T data element type @@ -102,14 +102,14 @@ void serialize(raft::resources const& handle, * * @code{.cpp} * #include - * #include + * #include * * raft::resources handle; * * // create an output stream * std::ostream os(std::cout.rdbuf()); - * // create an index with `auto index = raft::cagra::build(...);` - * raft::cagra::serialize_to_hnswlib(handle, os, index); + * // create an index with `auto index = raft::neighbors::cagra::build(...);` + * raft::neighbors::cagra::serialize_to_hnswlib(handle, os, index); * @endcode * * @tparam T data element type @@ -135,14 +135,14 @@ void serialize_to_hnswlib(raft::resources const& handle, * * @code{.cpp} * #include - * #include + * #include * * raft::resources handle; * * // create a string with a filepath * std::string filename("/path/to/index"); - * // create an index with `auto index = raft::cagra::build(...);` - * raft::cagra::serialize_to_hnswlib(handle, filename, index); + * // create an index with `auto index = raft::neighbors::cagra::build(...);` + * raft::neighbors::cagra::serialize_to_hnswlib(handle, filename, index); * @endcode * * @tparam T data element type @@ -168,7 +168,7 @@ void serialize_to_hnswlib(raft::resources const& handle, * * @code{.cpp} * #include - * #include + * #include * * raft::resources handle; * @@ -176,7 +176,7 @@ void serialize_to_hnswlib(raft::resources const& handle, * std::istream is(std::cin.rdbuf()); * using T = float; // data element type * using IdxT = int; // type of the index - * auto index = raft::cagra::deserialize(handle, is); + * auto index = raft::neighbors::cagra::deserialize(handle, is); * @endcode * * @tparam T data element type @@ -200,7 +200,7 @@ index deserialize(raft::resources const& handle, std::istream& is) * * @code{.cpp} * #include - * #include + * #include * * raft::resources handle; * @@ -208,7 +208,7 @@ index deserialize(raft::resources const& handle, std::istream& is) * std::string filename("/path/to/index"); * using T = float; // data element type * using IdxT = int; // type of the index - * auto index = raft::cagra::deserialize(handle, filename); + * auto index = raft::neighbors::cagra::deserialize(handle, filename); * @endcode * * @tparam T data element type