Mercurial > hg > octave-nkf
comparison examples/mysparse.c @ 19007:9ac2357f19bc
doc: Replace "non-zero" with "nonzero" to match existing usage.
Replace all occurrences in both documentation and code comments.
* doc/interpreter/contrib.txi, doc/interpreter/diagperm.txi,
doc/interpreter/external.txi, doc/interpreter/sparse.txi,
doc/interpreter/stmt.txi, doc/interpreter/testfun.txi, doc/refcard/refcard.tex,
examples/mysparse.c, libinterp/corefcn/balance.cc,
libinterp/corefcn/cellfun.cc, libinterp/corefcn/data.cc,
libinterp/corefcn/filter.cc, libinterp/corefcn/find.cc,
libinterp/corefcn/kron.cc, libinterp/corefcn/ls-mat5.cc,
libinterp/corefcn/luinc.cc, libinterp/corefcn/mappers.cc,
libinterp/corefcn/oct-fstrm.cc, libinterp/corefcn/oct-fstrm.h,
libinterp/corefcn/oct-iostrm.cc, libinterp/corefcn/oct-iostrm.h,
libinterp/corefcn/oct-stdstrm.h, libinterp/corefcn/oct-strstrm.h,
libinterp/corefcn/spparms.cc, libinterp/corefcn/toplev.cc,
libinterp/corefcn/utils.cc, libinterp/dldfcn/symrcm.cc,
libinterp/octave-value/ov-bool-mat.cc, liboctave/array/CSparse.cc,
liboctave/array/Sparse.cc, liboctave/array/Sparse.h,
liboctave/array/dSparse.cc, liboctave/numeric/randmtzig.c,
liboctave/operators/Sparse-op-defs.h, scripts/help/get_first_help_sentence.m,
scripts/miscellaneous/edit.m, scripts/plot/draw/pie.m,
scripts/plot/draw/pie3.m, scripts/sparse/colperm.m, scripts/sparse/nonzeros.m,
scripts/sparse/spdiags.m, scripts/sparse/spfun.m, scripts/sparse/spones.m,
scripts/sparse/sprand.m, scripts/sparse/sprandn.m, scripts/sparse/sprandsym.m,
scripts/sparse/spstats.m, scripts/sparse/svds.m,
scripts/special-matrix/gallery.m, scripts/statistics/base/moment.m,
scripts/statistics/tests/cor_test.m:
Replace "non-zero" with "nonzero" to match existing usage.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 08 Jun 2014 17:59:59 -0700 |
parents | 4d7f95eb8bfe |
children |
comparison
equal
deleted
inserted
replaced
19006:c53e11fab75f | 19007:9ac2357f19bc |
---|---|
30 jc = mxGetJc (prhs[0]); | 30 jc = mxGetJc (prhs[0]); |
31 | 31 |
32 i = n; | 32 i = n; |
33 while (jc[i] == jc[i-1] && i != 0) i--; | 33 while (jc[i] == jc[i-1] && i != 0) i--; |
34 | 34 |
35 mexPrintf ("last non-zero element (%d, %d) = (%g, %g)\n", | 35 mexPrintf ("last nonzero element (%d, %d) = (%g, %g)\n", |
36 ir[nz-1]+ 1, i, pr[nz-1], pi[nz-1]); | 36 ir[nz-1]+ 1, i, pr[nz-1], pi[nz-1]); |
37 | 37 |
38 v = mxCreateSparse (m, n, nz, mxCOMPLEX); | 38 v = mxCreateSparse (m, n, nz, mxCOMPLEX); |
39 pr2 = mxGetPr (v); | 39 pr2 = mxGetPr (v); |
40 pi2 = mxGetPi (v); | 40 pi2 = mxGetPi (v); |
63 ir = mxGetIr (prhs[0]); | 63 ir = mxGetIr (prhs[0]); |
64 jc = mxGetJc (prhs[0]); | 64 jc = mxGetJc (prhs[0]); |
65 | 65 |
66 i = n; | 66 i = n; |
67 while (jc[i] == jc[i-1] && i != 0) i--; | 67 while (jc[i] == jc[i-1] && i != 0) i--; |
68 mexPrintf ("last non-zero element (%d, %d) = %d\n", | 68 mexPrintf ("last nonzero element (%d, %d) = %d\n", |
69 ir[nz-1]+ 1, i, pbr[nz-1]); | 69 ir[nz-1]+ 1, i, pbr[nz-1]); |
70 | 70 |
71 v = mxCreateSparseLogicalMatrix (m, n, nz); | 71 v = mxCreateSparseLogicalMatrix (m, n, nz); |
72 pbr2 = mxGetLogicals (v); | 72 pbr2 = mxGetLogicals (v); |
73 ir2 = mxGetIr (v); | 73 ir2 = mxGetIr (v); |
93 ir = mxGetIr (prhs[0]); | 93 ir = mxGetIr (prhs[0]); |
94 jc = mxGetJc (prhs[0]); | 94 jc = mxGetJc (prhs[0]); |
95 | 95 |
96 i = n; | 96 i = n; |
97 while (jc[i] == jc[i-1] && i != 0) i--; | 97 while (jc[i] == jc[i-1] && i != 0) i--; |
98 mexPrintf ("last non-zero element (%d, %d) = %g\n", | 98 mexPrintf ("last nonzero element (%d, %d) = %g\n", |
99 ir[nz-1]+ 1, i, pr[nz-1]); | 99 ir[nz-1]+ 1, i, pr[nz-1]); |
100 | 100 |
101 v = mxCreateSparse (m, n, nz, mxREAL); | 101 v = mxCreateSparse (m, n, nz, mxREAL); |
102 pr2 = mxGetPr (v); | 102 pr2 = mxGetPr (v); |
103 ir2 = mxGetIr (v); | 103 ir2 = mxGetIr (v); |