Mercurial > hg > octave-nkf
comparison scripts/sparse/sprandsym.m @ 17312:088d014a7fe2
Use semicolon after "return" statement in core m-files.
* scripts/general/accumdim.m, scripts/image/imformats.m, scripts/io/textread.m,
scripts/io/textscan.m, scripts/linear-algebra/expm.m,
scripts/miscellaneous/edit.m, scripts/optimization/lsqnonneg.m,
scripts/optimization/pqpnonneg.m, scripts/pkg/private/dirempty.m,
scripts/plot/findobj.m, scripts/plot/graphics_toolkit.m,
scripts/plot/private/__errplot__.m, scripts/plot/private/__interp_cube__.m,
scripts/plot/private/__marching_cube__.m, scripts/plot/subplot.m,
scripts/polynomial/residue.m, scripts/sparse/sprandsym.m,
scripts/special-matrix/gallery.m, scripts/strings/strjoin.m:
Use semicolon after "return" statement in core m-files.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 21 Aug 2013 19:53:42 -0700 |
parents | 095d8d22c87d |
children | d63878346099 |
comparison
equal
deleted
inserted
replaced
17311:56404cdcb723 | 17312:088d014a7fe2 |
---|---|
119 ## numerically to avoid overflow. | 119 ## numerically to avoid overflow. |
120 | 120 |
121 ## Degenerate case | 121 ## Degenerate case |
122 if (k == 1) | 122 if (k == 1) |
123 r = 1; | 123 r = 1; |
124 return | 124 return; |
125 endif | 125 endif |
126 | 126 |
127 ## Compute the stuff described above | 127 ## Compute the stuff described above |
128 a = n*(n - 1)/2; | 128 a = n*(n - 1)/2; |
129 d = [mod(k,2):2:min(n,k)-2]; | 129 d = [mod(k,2):2:min(n,k)-2]; |