Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec / test / src / arrays_arnaud / MatrixAndArrays.lus @ b3381ae8

History | View | Annotate | Download (984 Bytes)

1
#open "dummy_lib"
2

    
3
const MatrixAndArrays_Constant_Value = [ [ 2.2, 3.3, 4.4, 2.2, 4.4, 3.3 ] ] ;
4
const MatrixAndArrays_Gain_Gain = [ [ 2.1, 1.0, 3.0, 4.2 ] ] ;
5
const MatrixAndArrays_UnitDelay_InitialValue = [ [ 1.1, 2.2, 1.0, 1.0 ] ] ;
6

    
7

    
8
node MatrixAndArrays (
9
	In1_Out1_11 : real^2^3)
10
returns (
11
	Out1_In1_57 : real^2^2) ;
12
var
13
	Gain_Out1_28 : real^2^2 ;
14
	Product_Out1_40 : real^2^2 ;
15
	UnitDelay_Out1_45 : real^2^2 ;
16
	Gain_In1_27 : real^2^2 ;
17
	Product_In1_38 : real^2^3 ;
18
	Product_In2_39 : real^3^2 ;
19
	UnitDelay_In1_44 : real^2^2 ;
20
let
21
	Gain_Out1_28 = _MatMul_real (2, 2, 2, MatrixAndArrays_Gain_Gain, Gain_In1_27) ;
22
	Product_Out1_40 = _MatMul_real (2, 3, Product_In1_38, Product_In2_39) ;
23
	UnitDelay_Out1_45 = MatrixAndArrays_UnitDelay_InitialValue -> pre UnitDelay_In1_44 ;
24
	Product_In1_38 = In1_Out1_11 ;
25
	Product_In2_39 = MatrixAndArrays_Constant_Value ;
26
	Gain_In1_27 = Product_Out1_40 ;
27
	UnitDelay_In1_44 = Gain_Out1_28 ;
28
	Out1_In1_57 = UnitDelay_Out1_45 ;
29
	--! MAIN : true ;
30
tel