Skip to content

Commit 528a7a0

Browse files
Review comments
1 parent 03eddf9 commit 528a7a0

5 files changed

Lines changed: 10 additions & 29 deletions

File tree

dpnp/backend/extensions/statistics/histogram_common.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ using ext::validation::check_size_at_least;
5252
using ext::validation::common_checks;
5353
using ext::validation::name_of;
5454

55-
namespace statistics
56-
{
57-
58-
namespace histogram
55+
namespace statistics::histogram
5956
{
6057

6158
void validate(const usm_ndarray &sample,
@@ -200,5 +197,4 @@ uint32_t get_local_hist_copies_count(uint32_t loc_mem_size_in_items,
200197
return local_hist_count;
201198
}
202199

203-
} // namespace histogram
204-
} // namespace statistics
200+
} // namespace statistics::histogram

dpnp/backend/extensions/statistics/histogram_common.hpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ using ext::common::AtomicOp;
4040
using ext::common::IsNan;
4141
using ext::common::Less;
4242

43-
namespace statistics
44-
{
45-
46-
namespace histogram
43+
namespace statistics::histogram
4744
{
4845

4946
template <typename T, int Dims>
@@ -370,5 +367,4 @@ uint32_t get_local_hist_copies_count(uint32_t loc_mem_size_in_items,
370367
uint32_t local_size,
371368
uint32_t hist_size_in_items);
372369

373-
} // namespace histogram
374-
} // namespace statistics
370+
} // namespace statistics::histogram

dpnp/backend/extensions/statistics/histogramdd.hpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131
#include "dpctl4pybind11.hpp"
3232
#include "ext/dispatch_table.hpp"
3333

34-
namespace statistics
35-
{
36-
namespace histogram
34+
namespace statistics::histogram
3735
{
3836
struct Histogramdd
3937
{
@@ -63,5 +61,4 @@ struct Histogramdd
6361
};
6462

6563
void populate_histogramdd(py::module_ m);
66-
} // namespace histogram
67-
} // namespace statistics
64+
} // namespace statistics::histogram

dpnp/backend/extensions/statistics/sliding_window1d.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ using ext::validation::check_num_dims;
4343
using ext::validation::common_checks;
4444
using ext::validation::name_of;
4545

46-
namespace statistics
47-
{
48-
49-
namespace sliding_window1d
46+
namespace statistics::sliding_window1d
5047
{
5148

5249
void validate(const usm_ndarray &a,
@@ -90,5 +87,4 @@ void validate(const usm_ndarray &a,
9087
}
9188
}
9289

93-
} // namespace sliding_window1d
94-
} // namespace statistics
90+
} // namespace statistics::sliding_window1d

dpnp/backend/extensions/statistics/sliding_window1d.hpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ using dpctl::tensor::usm_ndarray;
3838
using ext::common::Align;
3939
using ext::common::CeilDiv;
4040

41-
namespace statistics
42-
{
43-
44-
namespace sliding_window1d
41+
namespace statistics::sliding_window1d
4542
{
4643

4744
template <typename T, uint32_t Size>
@@ -669,5 +666,4 @@ void validate(const usm_ndarray &a,
669666
const usm_ndarray &out,
670667
const size_t l_pad,
671668
const size_t r_pad);
672-
} // namespace sliding_window1d
673-
} // namespace statistics
669+
} // namespace statistics::sliding_window1d

0 commit comments

Comments
 (0)