summaryrefslogtreecommitdiff
path: root/examples/chill/gemv.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/chill/gemv.c')
-rw-r--r--examples/chill/gemv.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/chill/gemv.c b/examples/chill/gemv.c
new file mode 100644
index 0000000..610d4cb
--- /dev/null
+++ b/examples/chill/gemv.c
@@ -0,0 +1,15 @@
+#define N 10
+
+int main() {
+ // int n;
+ float a[N];
+ float b[N];
+ float c[N][N];
+
+ int i, j;
+
+ for (i = 1; i < N; i++)
+ for (j = 1; j < N; j++)
+ a[i] = a[i] + c[i][j] * b[j];
+
+}