Mercurial > hg > octave-thorsten
changeset 13857:9f28f0d05473
sprandsym.m: trivial doc fix
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Fri, 11 Nov 2011 22:44:06 -0500 |
parents | d490ca8ab1a5 |
children | 9326fc1f0c71 |
files | scripts/sparse/sprandsym.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/sparse/sprandsym.m +++ b/scripts/sparse/sprandsym.m @@ -81,8 +81,8 @@ function r = pick_rand_diag (n, k) ## Pick a random number R of entries for the diagonal of a sparse NxN - ## square matrix with exactly K nonzero entries, ensuring that this R - ## is chosen uniformly over all such matrices. + ## symmetric square matrix with exactly K nonzero entries, ensuring + ## that this R is chosen uniformly over all such matrices. ## ## Let D be the number of diagonal entries and M the number of ## off-diagonal entries. Then K = D + 2*M. Let A = N*(N-1)/2 be the