Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistently use addtogroup as opposed to ingroup #2078

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cpp/include/raft/core/cublas_macros.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
* Copyright (c) 2022-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -33,7 +33,7 @@
namespace raft {

/**
* @ingroup error_handling
* @addtogroup error_handling
* @{
*/

Expand Down Expand Up @@ -76,7 +76,7 @@ inline const char* cublas_error_to_string(cublasStatus_t err)
#undef _CUBLAS_ERR_TO_STR

/**
* @ingroup assertion
* @addtogroup assertion
* @{
*/

Expand Down Expand Up @@ -135,4 +135,4 @@ inline const char* cublas_error_to_string(cublasStatus_t err)
#define CUBLAS_CHECK_NO_THROW(call) RAFT_CUBLAS_TRY_NO_THROW(call)
#endif

#endif
#endif
6 changes: 3 additions & 3 deletions cpp/include/raft/core/cusolver_macros.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
* Copyright (c) 2022-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
namespace raft {

/**
* @ingroup error_handling
* @addtogroup error_handling
* @{
*/

Expand Down Expand Up @@ -75,7 +75,7 @@ inline const char* cusolver_error_to_string(cusolverStatus_t err)
#undef _CUSOLVER_ERR_TO_STR

/**
* @ingroup assertion
* @addtogroup assertion
* @{
*/

Expand Down
8 changes: 4 additions & 4 deletions cpp/include/raft/core/cusparse_macros.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2023, NVIDIA CORPORATION.
* Copyright (c) 2019-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,7 +38,7 @@
namespace raft {

/**
* @ingroup error_handling
* @addtogroup error_handling
* @{
*/

Expand Down Expand Up @@ -82,7 +82,7 @@ inline const char* cusparse_error_to_string(cusparseStatus_t err)
#undef _CUSPARSE_ERR_TO_STR

/**
* @ingroup assertion
* @addtogroup assertion
* @{
*/

Expand Down Expand Up @@ -122,7 +122,7 @@ inline const char* cusparse_error_to_string(cusparseStatus_t err)
#endif

/**
* @ingroup assertion
* @addtogroup assertion
* @{
*/
//@todo: use logger here once logging is enabled
Expand Down
8 changes: 4 additions & 4 deletions cpp/include/raft/core/host_mdarray.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
* Copyright (c) 2022-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -126,7 +126,7 @@ auto make_host_mdarray(extents<IndexType, Extents...> exts)
}

/**
* @ingroup host_mdarray_factories
* @addtogroup host_mdarray_factories
* @brief Create a 2-dim c-contiguous host mdarray.
* @tparam ElementType the data type of the matrix elements
* @tparam IndexType the index type of the extents
Expand Down Expand Up @@ -167,7 +167,7 @@ auto make_host_matrix(IndexType n_rows, IndexType n_cols)
}

/**
* @ingroup host_mdarray_factories
* @addtogroup host_mdarray_factories
* @brief Create a host scalar from v.
*
* @tparam ElementType the data type of the scalar element
Expand Down Expand Up @@ -217,7 +217,7 @@ auto make_host_scalar(ElementType const& v)
}

/**
* @ingroup host_mdarray_factories
* @addtogroup host_mdarray_factories
* @brief Create a 1-dim host mdarray.
* @tparam ElementType the data type of the vector elements
* @tparam IndexType the index type of the extents
Expand Down
4 changes: 2 additions & 2 deletions cpp/include/raft/linalg/add.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
* Copyright (c) 2022-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -29,7 +29,7 @@ namespace raft {
namespace linalg {

/**
* @ingroup arithmetic
* @addtogroup arithmetic
* @brief Elementwise scalar add operation on the input buffer
*
* @tparam InT input data-type. Also the data-type upon which the math ops
Expand Down
6 changes: 3 additions & 3 deletions cpp/include/raft/neighbors/ball_cover-inl.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2023, NVIDIA CORPORATION.
* Copyright (c) 2021-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -147,7 +147,7 @@ void all_knn_query(raft::resources const& handle,
}

/**
* @ingroup random_ball_cover
* @addtogroup random_ball_cover
* @{
*/

Expand Down Expand Up @@ -296,7 +296,7 @@ void knn_query(raft::resources const& handle,
}

/**
* @ingroup random_ball_cover
* @addtogroup random_ball_cover
* @{
*/

Expand Down
4 changes: 2 additions & 2 deletions cpp/include/raft/neighbors/ball_cover_types.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2023, NVIDIA CORPORATION.
* Copyright (c) 2021-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -26,7 +26,7 @@
namespace raft::neighbors::ball_cover {

/**
* @ingroup random_ball_cover
* @addtogroup random_ball_cover
* @{
*/

Expand Down
8 changes: 4 additions & 4 deletions cpp/include/raft/neighbors/ivf_flat-inl.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
* Copyright (c) 2022-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -237,7 +237,7 @@ auto extend(raft::resources const& handle,
}

/**
* @ingroup ivf_flat
* @addtogroup ivf_flat
* @{
*/

Expand Down Expand Up @@ -342,7 +342,7 @@ void extend(raft::resources const& handle,
}

/**
* @ingroup ivf_flat
* @addtogroup ivf_flat
* @{
*/

Expand Down Expand Up @@ -536,7 +536,7 @@ void search(raft::resources const& handle,
}

/**
* @ingroup ivf_flat
* @addtogroup ivf_flat
* @{
*/

Expand Down
4 changes: 2 additions & 2 deletions cpp/include/raft/neighbors/nn_descent_types.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, NVIDIA CORPORATION.
* Copyright (c) 2023-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -27,7 +27,7 @@

namespace raft::neighbors::experimental::nn_descent {
/**
* @ingroup nn_descent
* @addtogroup nn_descent
* @{
*/

Expand Down
30 changes: 15 additions & 15 deletions cpp/include/raft/random/rng.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018-2023, NVIDIA CORPORATION.
* Copyright (c) 2018-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -85,7 +85,7 @@ void uniform(raft::resources const& handle,
}

/**
* @ingroup univariate_random_sampling
* @addtogroup univariate_random_sampling
* @brief Generate uniformly distributed integers in the given range
*
* @tparam OutputValueType Integral type; value type of the output vector
Expand Down Expand Up @@ -138,7 +138,7 @@ void uniformInt(raft::resources const& handle,
}

/**
* @ingroup univariate_random_sampling
* @addtogroup univariate_random_sampling
* @brief Generate normal distributed numbers
* with a given mean and standard deviation
*
Expand Down Expand Up @@ -186,7 +186,7 @@ void normal(raft::resources const& handle,
}

/**
* @ingroup univariate_random_sampling
* @addtogroup univariate_random_sampling
* @brief Generate normal distributed integers
*
* @tparam OutputValueType Integral type; value type of the output vector
Expand Down Expand Up @@ -240,7 +240,7 @@ void normalInt(raft::resources const& handle,
}

/**
* @ingroup univariate_random_sampling
* @addtogroup univariate_random_sampling
* @brief Generate normal distributed table according to the given set of
* means and scalar standard deviations.
*
Expand Down Expand Up @@ -339,7 +339,7 @@ void normalTable(raft::resources const& handle,
}

/**
* @ingroup univariate_random_sampling
* @addtogroup univariate_random_sampling
* @brief Fill a vector with the given value
*
* @tparam OutputValueType Value type of the output vector
Expand Down Expand Up @@ -378,7 +378,7 @@ void fill(
}

/**
* @ingroup univariate_random_sampling
* @addtogroup univariate_random_sampling
* @brief Generate bernoulli distributed boolean array
*
* @tparam OutputValueType Type of each element of the output vector;
Expand Down Expand Up @@ -422,7 +422,7 @@ void bernoulli(
}

/**
* @ingroup univariate_random_sampling
* @addtogroup univariate_random_sampling
* @brief Generate bernoulli distributed array and applies scale
*
* @tparam OutputValueType Data type in which to compute the probabilities
Expand Down Expand Up @@ -469,7 +469,7 @@ void scaled_bernoulli(raft::resources const& handle,
}

/**
* @ingroup univariate_random_sampling
* @addtogroup univariate_random_sampling
* @brief Generate Gumbel distributed random numbers
*
* @tparam OutputValueType data type of output random number
Expand Down Expand Up @@ -518,7 +518,7 @@ void gumbel(raft::resources const& handle,
}

/**
* @ingroup univariate_random_sampling
* @addtogroup univariate_random_sampling
* @brief Generate lognormal distributed numbers
*
* @tparam OutputValueType data type of output random number
Expand Down Expand Up @@ -565,7 +565,7 @@ void lognormal(raft::resources const& handle,
}

/**
* @ingroup univariate_random_sampling
* @addtogroup univariate_random_sampling
* @brief Generate logistic distributed random numbers
*
* @tparam OutputValueType data type of output random number
Expand Down Expand Up @@ -612,7 +612,7 @@ void logistic(raft::resources const& handle,
}

/**
* @ingroup univariate_random_sampling
* @addtogroup univariate_random_sampling
* @brief Generate exponentially distributed random numbers
*
* @tparam OutputValueType data type of output random number
Expand Down Expand Up @@ -652,7 +652,7 @@ void exponential(
}

/**
* @ingroup univariate_random_sampling
* @addtogroup univariate_random_sampling
* @brief Generate rayleigh distributed random numbers
*
* @tparam OutputValueType data type of output random number
Expand Down Expand Up @@ -691,7 +691,7 @@ void rayleigh(
detail::rayleigh(rng_state, ptr, len, sigma, resource::get_cuda_stream(handle));
}
/**
* @ingroup univariate_random_sampling
* @addtogroup univariate_random_sampling
* @brief Generate laplace distributed random numbers
*
* @tparam OutputValueType data type of output random number
Expand Down Expand Up @@ -738,7 +738,7 @@ void laplace(raft::resources const& handle,
}

/**
* @ingroup univariate_random_sampling
* @addtogroup univariate_random_sampling
* @brief Generate random integers, where the probability of i is weights[i]/sum(weights)
*
* Usage example:
Expand Down
6 changes: 3 additions & 3 deletions cpp/include/raft/stats/stats_types.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2022, NVIDIA CORPORATION.
* Copyright (c) 2019-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,7 +21,7 @@
namespace raft::stats {

/**
* @ingroup stats_histogram
* @addtogroup stats_histogram
* @{
*/

Expand Down Expand Up @@ -62,7 +62,7 @@ enum HistType {
/** @} */

/**
* @ingroup stats_information_criterion
* @addtogroup stats_information_criterion
* @{
*/

Expand Down