Skip to content

Commit 9e30e27

Browse files
committed
Minor formatting simplifications consistency changes in sym_grp.hpp
1 parent 6679e41 commit 9e30e27

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

c++/nda/sym_grp.hpp

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
#include <itertools/omp_chunk.hpp>
2121

2222
namespace nda {
23-
/**
24-
* A structure to capture combinations of complex conjugation and sign flip.
25-
*/
23+
/// A structure to capture combinations of complex conjugation and sign flip.
2624
struct operation {
2725
/*@{*/
2826
bool sgn = false; /**< change sign? */
@@ -97,13 +95,13 @@ namespace nda {
9795
/**
9896
* Accessor for symmetry classes
9997
* @return Vector including the individual classes
100-
*/
98+
*/
10199
[[nodiscard]] std::vector<sym_class_t> const &get_sym_classes() const { return sym_classes; }
102100

103101
/**
104102
* Accessor for number of symmetry classes
105103
* @return Number of deduced symmetry classes
106-
*/
104+
*/
107105
long num_classes() const { return sym_classes.size(); }
108106

109107
/**
@@ -112,7 +110,7 @@ namespace nda {
112110
* @param x An NdArray
113111
* @param init_func The init function to be used
114112
* @param parallel Switch to enable parallel evaluation of init_func. Default is false
115-
*/
113+
*/
116114
template <typename H>
117115
requires(NdaInitFunc<H, A>)
118116
void init(A &x, H const &init_func, bool parallel = false) const {
@@ -121,7 +119,7 @@ namespace nda {
121119
// reset input array to allow for mpi reduction
122120
x() = 0.0;
123121

124-
#pragma omp parallel
122+
#pragma omp parallel
125123
for (auto const &sym_class : itertools::omp_chunk(mpi::chunk(sym_classes))) {
126124
auto idx = x.indexmap().to_idx(sym_class[0].first);
127125
auto ref_val = init_func(idx);
@@ -207,17 +205,15 @@ namespace nda {
207205
}
208206
};
209207

210-
/**
211-
* Default constructor for sym_grp class
212-
*/
208+
/// Default constructor for sym_grp class
213209
sym_grp() = default;
214210

215211
/**
216212
* Constructor for sym_grp class
217213
* @param x An NdArray
218214
* @param sym_list List of symmetries modeling the NdaSymmetry concept
219215
* @param max_length Maximum recursion depth for out-of-bounds projection. Default is 0.
220-
*/
216+
*/
221217
sym_grp(A const &x, std::vector<F> const &sym_list, long const max_length = 0) {
222218

223219
// array to check whether index has been sorted into a symmetry class already

0 commit comments

Comments
 (0)