aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/multiplikation/code/c_matrix.h
diff options
context:
space:
mode:
authorNunigan <michael.schmid2@ost.ch>2021-07-27 22:01:05 +0200
committerNunigan <michael.schmid2@ost.ch>2021-07-27 22:01:05 +0200
commit3875ac2b8df9145a66e9f6fcf34e77eb3bc2d072 (patch)
treeb5113260e190dfc7a94e4298bf6eb5ae21c08344 /buch/papers/multiplikation/code/c_matrix.h
parentMerge pull request #50 from paschost/patch-1 (diff)
downloadSeminarMatrizen-3875ac2b8df9145a66e9f6fcf34e77eb3bc2d072.tar.gz
SeminarMatrizen-3875ac2b8df9145a66e9f6fcf34e77eb3bc2d072.zip
added first part of paper and code
Diffstat (limited to 'buch/papers/multiplikation/code/c_matrix.h')
-rw-r--r--buch/papers/multiplikation/code/c_matrix.h101
1 files changed, 101 insertions, 0 deletions
diff --git a/buch/papers/multiplikation/code/c_matrix.h b/buch/papers/multiplikation/code/c_matrix.h
new file mode 100644
index 0000000..13df55d
--- /dev/null
+++ b/buch/papers/multiplikation/code/c_matrix.h
@@ -0,0 +1,101 @@
+/* Seminar Matrizen, autogenerated File, Michael Schmid, 30/05/2021, 22:00:57 */
+
+#include <stdint.h>
+const int A0[][2] =
+ {
+ {-15,68},
+ {49,86}
+ };
+const int B0[][2] =
+ {
+ {33,73},
+ {38,-76}
+ };
+const double dB0[][2] =
+ {
+ {33,73},
+ {38,-76}
+ };
+const double dA0[][2] =
+ {
+ {-15,68},
+ {49,86}
+ };
+const int A1[][4] =
+ {
+ {75,-38,-32,-65},
+ {37,74,-31,29},
+ {15,-62,-20,-20},
+ {-31,-35,-89,47}
+ };
+const int B1[][4] =
+ {
+ {71,90,78,-98},
+ {4,63,12,-47},
+ {11,-44,75,-69},
+ {95,-15,64,23}
+ };
+const double dB1[][4] =
+ {
+ {71,90,78,-98},
+ {4,63,12,-47},
+ {11,-44,75,-69},
+ {95,-15,64,23}
+ };
+const double dA1[][4] =
+ {
+ {75,-38,-32,-65},
+ {37,74,-31,29},
+ {15,-62,-20,-20},
+ {-31,-35,-89,47}
+ };
+const int A2[][8] =
+ {
+ {80,42,3,-16,6,55,87,16},
+ {-99,-14,21,-1,-94,-56,91,10},
+ {-47,-55,-59,62,12,-53,87,-65},
+ {-60,94,-67,23,-62,33,-63,-72},
+ {12,-75,16,21,22,-37,1,16},
+ {-100,-99,82,-66,2,64,-13,44},
+ {59,-100,-90,8,36,-24,18,88},
+ {73,-58,75,-100,-19,-29,85,-19}
+ };
+const int B2[][8] =
+ {
+ {-61,88,69,49,-53,47,73,45},
+ {16,14,-88,-11,-67,-73,-20,43},
+ {-60,-63,26,32,-29,18,-44,-69},
+ {1,21,21,38,7,-100,-61,-76},
+ {-90,95,-99,88,49,-80,27,-36},
+ {24,-12,-47,-7,29,15,52,37},
+ {-98,-76,29,76,-41,-75,97,79},
+ {62,-90,-35,-14,-30,-42,-95,52}
+ };
+const double dB2[][8] =
+ {
+ {-61,88,69,49,-53,47,73,45},
+ {16,14,-88,-11,-67,-73,-20,43},
+ {-60,-63,26,32,-29,18,-44,-69},
+ {1,21,21,38,7,-100,-61,-76},
+ {-90,95,-99,88,49,-80,27,-36},
+ {24,-12,-47,-7,29,15,52,37},
+ {-98,-76,29,76,-41,-75,97,79},
+ {62,-90,-35,-14,-30,-42,-95,52}
+ };
+const double dA2[][8] =
+ {
+ {80,42,3,-16,6,55,87,16},
+ {-99,-14,21,-1,-94,-56,91,10},
+ {-47,-55,-59,62,12,-53,87,-65},
+ {-60,94,-67,23,-62,33,-63,-72},
+ {12,-75,16,21,22,-37,1,16},
+ {-100,-99,82,-66,2,64,-13,44},
+ {59,-100,-90,8,36,-24,18,88},
+ {73,-58,75,-100,-19,-29,85,-19}
+ };
+const int *Ap[3] = {(int*) A0,(int*) A1,(int*) A2};
+const int *Bp[3] = {(int*) B0,(int*) B1,(int*) B2};
+const double *dAp[3] = {(double*) dA0,(double*) dA1,(double*) dA2};
+const double *dBp[3] = {(double*) dB0,(double*) dB1,(double*) dB2};
+int n[3] = {2,4,8};
+int n_arrays = 3;