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 16f6b3a commit 10c791dCopy full SHA for 10c791d
include/armadillo_bits/fn_accu.hpp
@@ -156,11 +156,6 @@ accu_proxy_at_mp(const Proxy<T1>& P)
156
157
typedef typename T1::elem_type eT;
158
159
- if(P.get_n_elem() == uword(0))
160
- {
161
- return eT(0);
162
- }
163
-
164
eT val = eT(0);
165
166
#if defined(ARMA_USE_OPENMP)
@@ -240,6 +235,10 @@ accu_proxy_at_mp(const Proxy<T1>& P)
240
235
val = arrayops::accumulate(col_accs.memptr(), n_cols);
241
236
}
242
237
238
+ #else
239
+ {
+ arma_ignore(P);
+ }
243
#endif
244
245
return val;
@@ -634,6 +633,10 @@ accu_cube_proxy_at_mp(const ProxyCube<T1>& P)
634
633
635
val = arrayops::accumulate(slice_accs.memptr(), slice_accs.n_elem);
636
637
638
639
640
641
642
0 commit comments