Overview
Comment: | Simplified version using GENTRAN matrix :=: matrix lang_matrix is no longer used at all |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
19241f3b2dab8015960c19c7120197d4 |
User & Date: | gawthrop@users.sourceforge.net on 2000-08-30 10:43:17 |
Other Links: | branch diff | manifest | tags |
Context
2000-08-30
| ||
11:43:04 | Put in the -opt switch for code optimisation check-in: ea55c44147 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
10:43:17 |
Simplified version using GENTRAN matrix :=: matrix lang_matrix is no longer used at all check-in: 19241f3b2d user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
10:24:03 | Initial revision check-in: 968668b6d5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/mtt_r2m from [a9e0b889bf] to [c4b66df764].
︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | + + + + + | # Copyright (c) P.J.Gawthrop 1991, 1994, 1995, 1996, 1998 ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.19 2000/08/28 20:17:59 peterg ## Put in Winfried Neun's bug fix ## -- prevents segmentation violation using optimised gentran when matrix ## comtains a number ## ## Revision 1.18 2000/08/24 17:11:40 peterg ## Now optimises as well as segmenting - uses the SCOPE package ## ## Revision 1.17 2000/05/20 15:23:56 peterg ## Paramererised version of sm etc etc (using -parameter switch) ## ## Revision 1.16 2000/04/18 11:14:18 peterg |
︙ | |||
111 112 113 114 115 116 117 118 119 120 121 | 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | + + + - + - + | % Load the general translator package LOAD GENTRAN; LOAD SCOPE; GENTRANLANG!* := '$codegenerator; ON GENTRANSEG; % Segmentation ON GENTRANOPT; % Code optimise using scope ON GETDECS; % Create decrarations automatically DEFTYPE!* := 'REAL; % and default to real OFF GENDECS; % No declarations MAXEXPPRINTLEN!* := 80; TEMPVARNUM!* := 1; TEMPVARNAME!* := 'mtt_s; |
︙ | |||
177 178 179 180 181 182 183 | 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 | - - - - + + + + - + + + - - - - + + + + + - + + - - - - + + + + + - + - + | $SYMBOLIC > mtt_r2m.log <<EOF %Set up the code generator in"mtt_setreduce.r"; % The body of the odeo function GENTRANOUT "mtt_odeo"; |
︙ | |||
344 345 346 347 348 349 350 | 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 | - - - + + + + | in"mtt_setreduce.r"; OUT "mtt_zero.m"; write "mtt$Symbol = zeros(", $N, ",", $M , ");" ; SHUT "mtt_zero.m"; GENTRANOUT "$outfile.1"; mtt_matrix := MTT$Symbol; |
︙ | |||
370 371 372 373 374 375 376 | 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 | - + | fi # Convert from Pascal syntax to Octave syntax mtt_p2m <$outfile.pas > $outfile.m rm -f $outfile.pas rm -f mtt_zero.m |