9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % $Id$
% % $Log$
% % Revision 1.4 1998/07/27 17:34:59 peterg
% % Sorted syntax errors
% %
% % Revision 1.3 1998/07/27 16:31:10 peterg
% % Sorted out to work with mtt_r2m
% %
% % Revision 1.2 1998/05/23 15:00:27 peterg
|
>
>
>
|
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % $Id$
% % $Log$
% % Revision 1.5 2000/08/24 17:12:01 peterg
% % Now optimises using SCOPE
% %
% % Revision 1.4 1998/07/27 17:34:59 peterg
% % Sorted syntax errors
% %
% % Revision 1.3 1998/07/27 16:31:10 peterg
% % Sorted out to work with mtt_r2m
% %
% % Revision 1.2 1998/05/23 15:00:27 peterg
|
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
BEGIN
FOR row := 1:MTT_Matrix_n DO
BEGIN
IF MTT_Matrix_m>1 THEN
BEGIN
FOR col := 1:MTT_Matrix_m DO
BEGIN
INAME(mtt_t);
GENTRAN mtt_matrix(row,col) ::=: mtt_matrix(row,col);
END;
END
ELSE
BEGIN
INAME(mtt_o);
GENTRAN mtt_matrix(row) ::=: mtt_matrix(row,1);
END;
END
END;
END;;
|
|
|
|
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
BEGIN
FOR row := 1:MTT_Matrix_n DO
BEGIN
IF MTT_Matrix_m>1 THEN
BEGIN
FOR col := 1:MTT_Matrix_m DO
BEGIN
INAME(mtt_o); % Set temp name
GENTRAN mtt_matrix(row,col) ::=: mtt_matrix(row,col);
END;
END
ELSE
BEGIN
INAME(mtt_o); % Set temp name
GENTRAN mtt_matrix(row) ::=: mtt_matrix(row,1);
END;
END
END;
END;;
|