aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/multiplikation/code/c_matrix.h
blob: 14389fc7dfb4f9097e216fe9b2dbbf3adae05688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/* Seminar Matrizen, autogenerated File, Michael Schmid, 02/08/2021, 22:48:43 */ 
 
#include <stdint.h> 
const int A0[][2] = 
  {
    {75,47},
    {-41,-24}
  };
const int B0[][2] = 
  {
    {-53,-95},
    {-93,30}
  };
const double dB0[][2] = 
  {
    {-53,-95},
    {-93,30}
  };
const double dA0[][2] = 
  {
    {75,47},
    {-41,-24}
  };
const int A1[][4] = 
  {
    {47,11,-66,8},
    {36,98,39,82},
    {-32,12,40,-79},
    {61,-20,-85,-98}
  };
const int B1[][4] = 
  {
    {37,75,-53,9},
    {37,-33,-67,38},
    {70,39,-93,43},
    {43,41,23,-4}
  };
const double dB1[][4] = 
  {
    {37,75,-53,9},
    {37,-33,-67,38},
    {70,39,-93,43},
    {43,41,23,-4}
  };
const double dA1[][4] = 
  {
    {47,11,-66,8},
    {36,98,39,82},
    {-32,12,40,-79},
    {61,-20,-85,-98}
  };
const int A2[][8] = 
  {
    {-54,-87,87,69,52,-21,-86,55},
    {19,-75,-61,-50,-55,-23,66,-92},
    {-73,-67,-36,19,84,-11,24,46},
    {-98,62,-76,57,-100,6,-23,-51},
    {62,46,1,-64,42,-9,85,-12},
    {35,-59,-17,-47,78,86,-50,74},
    {-15,45,33,-59,-9,-81,49,96},
    {-57,22,-43,7,-30,-45,-5,13}
  };
const int B2[][8] = 
  {
    {-71,-82,-80,-78,83,-97,48,-24},
    {15,75,15,-60,-63,-53,1,-50},
    {-84,63,67,-2,78,93,-13,95},
    {61,-26,-88,56,56,27,26,1},
    {2,54,21,36,9,-41,53,53},
    {85,-11,42,-51,-6,3,27,97},
    {10,-2,90,-76,-75,0,8,-37},
    {10,-64,47,-69,66,-50,89,-66}
  };
const double dB2[][8] = 
  {
    {-71,-82,-80,-78,83,-97,48,-24},
    {15,75,15,-60,-63,-53,1,-50},
    {-84,63,67,-2,78,93,-13,95},
    {61,-26,-88,56,56,27,26,1},
    {2,54,21,36,9,-41,53,53},
    {85,-11,42,-51,-6,3,27,97},
    {10,-2,90,-76,-75,0,8,-37},
    {10,-64,47,-69,66,-50,89,-66}
  };
const double dA2[][8] = 
  {
    {-54,-87,87,69,52,-21,-86,55},
    {19,-75,-61,-50,-55,-23,66,-92},
    {-73,-67,-36,19,84,-11,24,46},
    {-98,62,-76,57,-100,6,-23,-51},
    {62,46,1,-64,42,-9,85,-12},
    {35,-59,-17,-47,78,86,-50,74},
    {-15,45,33,-59,-9,-81,49,96},
    {-57,22,-43,7,-30,-45,-5,13}
  };
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;