// File: kernel.cpp
#include "loop_221.h"
#include <stdint.h>

extern "C" void inner_loop_221(struct loop_221_data *data) {
    uint64_t m = data->m;
    uint64_t n = data->n;
    double *a = data->a;
    double *x = data->x;
    double *b = data->b;
    for (uint64_t i = 0; i < m; i++) {
        double d = 0;
        for (uint64_t j = 0; j < n; j++) d += a[(i * n) + j] * x[j];
        b[i] = d;
    }
}