2020#include < itertools/omp_chunk.hpp>
2121
2222namespace 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);
@@ -206,17 +204,15 @@ namespace nda {
206204 }
207205 };
208206
209- /* *
210- * Default constructor for sym_grp class
211- */
207+ // / Default constructor for sym_grp class
212208 sym_grp () = default ;
213209
214210 /* *
215211 * Constructor for sym_grp class
216212 * @param x An NdArray
217213 * @param sym_list List of symmetries modeling the NdaSymmetry concept
218214 * @param max_length Maximum recursion depth for out-of-bounds projection. Default is 0.
219- */
215+ */
220216 sym_grp (A const &x, std::vector<F> const &sym_list, long const max_length = 0 ) {
221217
222218 // array to check whether index has been sorted into a symmetry class already
0 commit comments