comparison scripts/sparse/sprandn.m @ 5642:2618a0750ae6

[project @ 2006-03-06 21:26:48 by jwe]
author jwe
date Mon, 06 Mar 2006 21:26:54 +0000
parents acbcb9f164ca
children 34f96dd5441b
comparison
equal deleted inserted replaced
5641:eb998631a4aa 5642:2618a0750ae6
13 ## Note: sometimes the actual density may be a bit smaller than @var{d}. 13 ## Note: sometimes the actual density may be a bit smaller than @var{d}.
14 ## This is unlikely to happen for large really sparse matrices. 14 ## This is unlikely to happen for large really sparse matrices.
15 ## 15 ##
16 ## If called with a single matrix argument, a random sparse matrix is 16 ## If called with a single matrix argument, a random sparse matrix is
17 ## generated wherever the matrix @var{S} is non-zero. 17 ## generated wherever the matrix @var{S} is non-zero.
18 ## @seealso{sprand}
18 ## @end deftypefn 19 ## @end deftypefn
19 ## @seealso{sprand}
20 20
21 ## This program is public domain 21 ## This program is public domain
22 ## Author: Paul Kienzle <pkienzle@users.sf.net> 22 ## Author: Paul Kienzle <pkienzle@users.sf.net>
23 23
24 function S = sprandn(m,n,d) 24 function S = sprandn(m,n,d)