aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/multiplikation/code/c_matrix.h
blob: 13df55d464ffcaa378dc2192720a43bc444e986b (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, 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;