# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1321069446 18000 # Node ID 9f28f0d0547390961e9c699f0a860e4a1a780211 # Parent d490ca8ab1a57f1f2c27d08a4479d840a716ea90 sprandsym.m: trivial doc fix diff --git a/scripts/sparse/sprandsym.m b/scripts/sparse/sprandsym.m --- 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