Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec / test / src / arrays_arnaud / MatrixAddition.lus @ 22fe1c93

History | View | Annotate | Download (1.18 KB)

1
const MatrixAddition_Constant_Value = [ [ 2, 3, 4 ], [ 5, 6, 7 ] ] ;
2
const MatrixAddition_Constant1_Value = [ [ 8, 9, 10 ], [ 11, 12, 13 ] ] ;
3
const MatrixAddition_Constant2_Value = [ [ 2, 3, 4 ] ] ;
4
const MatrixAddition_Constant4_Value = [ [ 5 ], [ 6 ], [ 7 ] ] ;
5
const MatrixAddition_Constant5_Value = [ [ 11 ], [ 12 ], [ 13 ] ] ;
6

    
7
node MatrixAddition (
8
	In1_Out1_11 : int)
9
returns (
10
	Out1_In1_93 : int^2^3 ;
11
	Out3_In1_105 : int^3^1 ;
12
	Out2_In1_117 : int^1^3) ;
13
var
14
	Sum_Out1_61 : int^2^3 ;
15
	Sum1_Out1_71 : int^1^3 ;
16
	Sum2_Out1_81 : int^3^1 ;
17
	Sum_In1_59 : int^2^3 ;
18
	Sum_In2_60 : int^2^3 ;
19
	Sum1_In1_69 : int^1^3 ;
20
	Sum1_In2_70 : int^1^3 ;
21
	Sum2_In1_79 : int^3^1 ;
22
	Sum2_In2_80 : int^3^1 ;
23
let
24
	Sum_Out1_61 = Sum_In1_59 + Sum_In2_60 ;
25
	Sum1_Out1_71 = Sum1_In1_69 + Sum1_In2_70 ;
26
	Sum2_Out1_81 = Sum2_In1_79 + Sum2_In2_80 ;
27
	Sum1_In1_69 = MatrixAddition_Constant2_Value ;
28
	Sum2_In1_79 = MatrixAddition_Constant4_Value ;
29
	Sum2_In2_80 = MatrixAddition_Constant5_Value ;
30
	Out1_In1_93 = Sum_Out1_61 ;
31
	Sum_In1_59 = MatrixAddition_Constant_Value ;
32
	Sum_In2_60 = MatrixAddition_Constant1_Value ;
33
	Out2_In1_117 = Sum1_Out1_71 ;
34
	Out3_In1_105 = Sum2_Out1_81 ;
35
	Sum1_In2_70 = In1_Out1_11 ;
36
	--! MAIN : true ;
37
tel