Mercurial > hg > octave-lyh
comparison liboctave/CMatrix.cc @ 5139:f2858bbf0277
[project @ 2005-02-10 14:08:29 by jwe]
author | jwe |
---|---|
date | Thu, 10 Feb 2005 14:08:30 +0000 |
parents | e35b034d3523 |
children | deed800e7bef |
comparison
equal
deleted
inserted
replaced
5138:5fa9670b5956 | 5139:f2858bbf0277 |
---|---|
2440 | 2440 |
2441 boolMatrix b (nr, nc); | 2441 boolMatrix b (nr, nc); |
2442 | 2442 |
2443 for (int j = 0; j < nc; j++) | 2443 for (int j = 0; j < nc; j++) |
2444 for (int i = 0; i < nr; i++) | 2444 for (int i = 0; i < nr; i++) |
2445 b.elem (i, j) = elem (i, j) != 0.0; | 2445 b.elem (i, j) = elem (i, j) == 0.0; |
2446 | 2446 |
2447 return b; | 2447 return b; |
2448 } | 2448 } |
2449 | 2449 |
2450 // other operations | 2450 // other operations |