From 8795174f3a0c005c48ce7d140574bf3c98aada30 Mon Sep 17 00:00:00 2001 From: anna_schlittenhardt Date: Sat, 19 Dec 2020 14:06:13 +0100 Subject: [PATCH] added code for 61x67 matrix --- src/trans.c | 63 +++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 51 insertions(+), 12 deletions(-) diff --git a/src/trans.c b/src/trans.c index ecbe6e2..5edb029 100644 --- a/src/trans.c +++ b/src/trans.c @@ -27,15 +27,31 @@ int is_transpose(int M, int N, int A[N][M], int B[M][N]); char transpose_submit_desc[] = "Transpose submission"; void transpose_submit(int M, int N, int A[N][M], int B[M][N]) { - //343 misses (goal: <300; 0 points if >600) + + int blocksize=0; + switch (N) + { + case 32: + blocksize = 8; + break; + case 64: + blocksize = 4; + break; + case 67: + blocksize = 18; + break; + default: + break; + } + if(N == 32){ int n, m, nn, mm, diag_pos, diag_value; - for (n=0; n