summaryrefslogtreecommitdiff
path: root/test-chill/mm.c
diff options
context:
space:
mode:
authorDerick Huth <derickhuth@gmail.com>2015-09-24 12:11:49 -0600
committerDerick Huth <derickhuth@gmail.com>2015-09-24 12:11:49 -0600
commit0cff3f9a3c4ccd434900162ebef4bd814850f481 (patch)
treef8dcba88576ec95e403f0c14efd80e970f30a260 /test-chill/mm.c
parentf925ba20c06d619d8c5825d6d859a1d2185795ee (diff)
downloadchill-0cff3f9a3c4ccd434900162ebef4bd814850f481.tar.gz
chill-0cff3f9a3c4ccd434900162ebef4bd814850f481.tar.bz2
chill-0cff3f9a3c4ccd434900162ebef4bd814850f481.zip
v0.2.1
Diffstat (limited to 'test-chill/mm.c')
-rw-r--r--test-chill/mm.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test-chill/mm.c b/test-chill/mm.c
new file mode 100644
index 0000000..354d929
--- /dev/null
+++ b/test-chill/mm.c
@@ -0,0 +1,15 @@
+
+
+void mm(float **A, float **B, float **C, int ambn, int an, int bm) {
+ int i, j, n;
+
+ for(i = 0; i < an; i++) {
+ for(j = 0; j < bm; j++) {
+ C[i][j] = 0.0f;
+ for(n = 0; n < ambn; n++) {
+ C[i][j] += A[i][n] * B[n][j];
+ }
+ }
+ }
+}
+