We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa8d5e1 commit 533885bCopy full SHA for 533885b
cmd/sh2peaks.cpp
@@ -134,12 +134,11 @@ class DataLoader { MEMALIGN(DataLoader)
134
item.pos[1] = sh.index(1);
135
item.pos[2] = sh.index(2);
136
137
- if (mask.valid()) {
+ if (mask.valid())
138
assign_pos_of(sh).to(mask);
139
- if (!mask.value()) {
140
- for (auto l = Loop(3) (sh); l; ++l)
141
- item.data[sh.index(3)] = NaN;
142
- }
+ if (mask.valid() && !mask.value()) {
+ for (auto l = Loop(3) (sh); l; ++l)
+ item.data[sh.index(3)] = NaN;
143
} else {
144
// iterates over SH coefficients
145
for (auto l = Loop(3) (sh); l; ++l)
0 commit comments