Overview
Comment: | Added big matrix version |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d76eb85012fc0406de3806bcb365f0b6 |
User & Date: | gawthrop@users.sourceforge.net on 1998-02-25 22:11:28 |
Other Links: | branch diff | manifest | tags |
Context
1998-02-25
| ||
22:12:07 | Added , to regexp for subscripts check-in: 5c6f9d7739 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
22:11:28 | Added big matrix version check-in: d76eb85012 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
22:10:25 | Initial revision check-in: e90b76f7be user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/latex_matrix.r from [32fe2d9726] to [2969ca8fc4].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | + + + + + + + + + + + + + + + + + + + + + + + + + | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% Model Transformation Tools %%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Reduce function to write matrices in latex form % P.J.Gawthrop January 22 1998 % Copyright (c) P.J.Gawthrop, 1998 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Version control history %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% $Id$ %% $Log$ %% Revision 1.1 1998/01/22 09:59:36 peterg %% Initial revision %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PROCEDURE Latex_Matrix; BEGIN IF MTT_Matrix_m<6 THEN %% Do matrix style version BEGIN IF MTT_Matrix_n>0 THEN IF MTT_Matrix_m>0 THEN BEGIN write "\begin{equation}"; write MTT_Matrix_name, " = \begin{pmatrix}"; FOR Row := 1:MTT_Matrix_n DO BEGIN FOR Col := 1:MTT_Matrix_m DO BEGIN write "{", MTT_Matrix(Row,Col), "}"; IF Col<MTT_Matrix_m THEN Write "&" END; IF Row<MTT_Matrix_n THEN Write "\cr"; END; write "\end{pmatrix}"; write "\end{equation}"; END; END ELSE %% write out the elements one-by-one. IF MTT_Matrix_n>0 THEN IF MTT_Matrix_m>0 THEN BEGIN FOR Row := 1:MTT_Matrix_n DO BEGIN FOR Col := 1:MTT_Matrix_m DO BEGIN MTT_element := MTT_Matrix(Row,Col); IF MTT_element NEQ 0 THEN BEGIN write "\begin{equation}"; write MTT_Matrix_name, "_", Row, ",", Col, " = {", MTT_element, "}\cr"; write "\end{equation}"; END; END; END; END; END; END; END;; |