diff options
Diffstat (limited to 'src/ReductionAvg.c')
-rw-r--r-- | src/ReductionAvg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ReductionAvg.c b/src/ReductionAvg.c index dc320ae..d0e39aa 100644 --- a/src/ReductionAvg.c +++ b/src/ReductionAvg.c @@ -328,7 +328,7 @@ static int ReductionAvg (int N_dims, int operator_handle, { if (weight_on == 1) { - if (ABS(weight_sum) > 1e-12) + if (ABS(weight_sum) > SMALL_NUMBER) { for (i = 0; i< M_output_numbers; i++) { |