sprandn
Sparse normally distributed random matrix
Syntax
R = sprandn(S)
R = sprandn(m,n,density)
R = sprandn(m,n,density,rc)
Description
R = sprandn(S)
has the same sparsity structure asS
, but normally distributed random entries with mean0
and variance1
.
R = sprandn(m,n,density)
is a random,m
-by-n
, sparse matrix with approximatelydensity*m*n
normally distributed nonzero entries (0 <= density <= 1
).
R = sprandn(m,n,density,rc)
also has reciprocal condition number approximately equal torc
.R
is constructed from a sum of matrices of rank one.
Ifrc
is a vector of lengthlr
, wherelr <= min(m,n)
, thenR
hasrc
as its firstlr
singular values, all others are zero. In this case,R
is generated by random plane rotations applied to a diagonal matrix with the given singular values. It has a great deal of topological and algebraic structure.