Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (1.05 KB)

1 22fe1c93 ploc
const MatrixAndArrays_Constant_Value = [ [ 2.2, 3.3, 4.4, 2.2, 4.4, 3.3 ] ] ;
2
const MatrixAndArrays_Gain_Gain = [ [ 2.1, 1.0, 3.0, 4.2 ] ] ;
3
const MatrixAndArrays_UnitDelay_InitialValue = [ [ 1.1, 2.2, 1.0, 1.0 ] ] ;
4
5
function _MatMul_real (
6
	const n, m, p : int ;
7
	in1 : real^n^m ;
8
	in2 : real^m^p)
9
returns (
10
	out : real^n^p) ;
11
12
node MatrixAndArrays (
13
	In1_Out1_11 : real^2^3)
14
returns (
15
	Out1_In1_57 : real^2^2) ;
16
var
17
	Gain_Out1_28 : real^2^2 ;
18
	Product_Out1_40 : real^2^2 ;
19
	UnitDelay_Out1_45 : real^2^2 ;
20
	Gain_In1_27 : real^2^2 ;
21
	Product_In1_38 : real^2^3 ;
22
	Product_In2_39 : real^3^2 ;
23
	UnitDelay_In1_44 : real^2^2 ;
24
let
25
	Gain_Out1_28 = _MatMul_real (2, 2, 2, MatrixAndArrays_Gain_Gain, Gain_In1_27) ;
26
	Product_Out1_40 = _MatMul_real (2, 3, Product_In1_38, Product_In2_39) ;
27
	UnitDelay_Out1_45 = MatrixAndArrays_UnitDelay_InitialValue -> pre UnitDelay_In1_44 ;
28
	Product_In1_38 = In1_Out1_11 ;
29
	Product_In2_39 = MatrixAndArrays_Constant_Value ;
30
	Gain_In1_27 = Product_Out1_40 ;
31
	UnitDelay_In1_44 = Gain_Out1_28 ;
32
	Out1_In1_57 = UnitDelay_Out1_45 ;
33
	--! MAIN : true ;
34
tel