SCM

SCM Repository

[matrix] Diff of /pkg/Matrix/src/dense.c
ViewVC logotype

Diff of /pkg/Matrix/src/dense.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2345, Wed Mar 11 18:41:28 2009 UTC revision 2346, Thu Mar 12 10:40:52 2009 UTC
# Line 300  Line 300 
300  #define SET_ZERO_OUTSIDE                                \  #define SET_ZERO_OUTSIDE                                \
301          for (j = 0; j < n; j++) {                       \          for (j = 0; j < n; j++) {                       \
302              int i, i1 = j - k2, i2 = j + 1 - k1;        \              int i, i1 = j - k2, i2 = j + 1 - k1;        \
303                if(i1 > m) i1 = m;                          \
304                if(i2 < 0) i2 = 0;                          \
305              for (i = 0; i < i1; i++) xx[i + j * m] = 0; \              for (i = 0; i < i1; i++) xx[i + j * m] = 0; \
306              for (i = i2; i < m; i++) xx[i + j * m] = 0; \              for (i = i2; i < m; i++) xx[i + j * m] = 0; \
307          }          }

Legend:
Removed from v.2345  
changed lines
  Added in v.2346

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge