#include "reduction.h"
double reduction_cpu(double* A, size_t num_elements) {
double sum = 0.0;
for (size_t i = 0; i < num_elements; i++) {
sum += A[i];
}
return sum;