SQLITE_NOTICE(283): recovered 5 frames from WAL file /data/mtt.fossil-wal
Artifact d9d59df9cfde37e3ef0b658a6b410cb2e375d4f391a90a29238413aede1ab874:
- Executable file mtt/bin/trans/matlab_matrix.r — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 1195) [annotate] [blame] [check-ins using] [more...]
- Executable file mttroot/mtt/bin/trans/matlab_matrix.r — part of check-in [5ca7145984] at 2000-12-28 12:48:53 on branch origin/master — Put under RCS (user: gawthrop@users.sourceforge.net, size: 1195) [annotate] [blame] [check-ins using]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% Model Transformation Tools %%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Reduce function to write matrices in matlab form % P.J.Gawthrop March 1998 % Copyright (c) P.J.Gawthrop, 1998 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % $Id$ % % $Log$ % % Revision 1.1 1998/03/22 10:26:47 peterg % % Initial revision % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Load the general translator package LOAD GENTRAN; GENTRANLANG!* := 'FORTRAN; ON GENTRANSEG; MAXEXPPRINTLEN!* := 400; PROCEDURE matlab_Matrix; BEGIN ON NERO; write "mtt_matrix = zeros(", mtt_matrix_n, ",", mtt_matrix_m, ");"; IF MTT_Matrix_n>0 THEN IF MTT_Matrix_m>0 THEN BEGIN FOR i := 1:MTT_Matrix_n DO IF MTT_Matrix_m>1 THEN BEGIN FOR j := 1:MTT_Matrix_m DO GENTRAN mtt_matrix(i,j) ::=: mtt_matrix(i,j); END ELSE BEGIN GENTRAN mtt_matrix(i) ::=: mtt_matrix(i,1); END; END; write MTT_matrix_name, " = mtt_matrix;"; END; END;;