Overview
Comment: | Simplified. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
bb7af62f8417e86f931fd8c2a8cf6b73 |
User & Date: | geraint@users.sourceforge.net on 2001-02-18 00:08:21 |
Other Links: | branch diff | manifest | tags |
Context
2001-02-18
| ||
00:10:30 | Print message. check-in: e80a06d712 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
00:08:21 | Simplified. check-in: bb7af62f84 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
2001-02-17
| ||
03:48:17 |
Use assignment LHS to gather tmp variable names. Prevents collection of long expressions, eg: tmp34*(tmp75 check-in: f4fd201171 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/cc/mtt_implicit.cc from [daf2306c04] to [039828956b].
1 | #include <octave/oct.h> | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 1 2 3 4 5 6 7 8 9 | #include <octave/oct.h> #include <octave/xdiv.h> #ifdef STANDALONE ColumnVector Fmtt_implicit ( ColumnVector &x, const ColumnVector &dx, const Matrix &AA, const ColumnVector &AAx, const double &t, |
︙ | ︙ | |||
98 99 100 101 102 103 104 | { if (0 != openx (i)) { n--; } } | | | | | | | < < | | | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | { if (0 != openx (i)) { n--; } } static Matrix tmp_dx (n,1); static Matrix tmp_x (n,1); static Matrix tmp_AAx (n,1); static Matrix tmp_AA (n,n); for (row_new = row_old = 0; row_old < Nx; row_old++) { if (0 == openx (row_old)) { tmp_dx (row_new,0) = dx (row_old); tmp_AAx (row_new,0) = AAx (row_old); for (col_new = col_old = 0; col_old < Nx; col_old++) { if (0 == openx (col_old)) { // xxx: this can be improved by symmetry tmp_AA (row_new,col_new) = AA (row_old,col_old); col_new++; } } row_new++; } } tmp_x = xleftdiv (tmp_AA, (tmp_AAx + tmp_dx * t)); row_new = 0; for (row_old = 0; row_old < Nx; row_old++) { if (0 == openx (row_old)) { x (row_old) = tmp_x (row_new,0); row_new++; } else { x (row_old) = 0.0; } } |
︙ | ︙ |