|
D.2.7.5 sparsematrix
Procedure from library random.lib (see random_lib).
- Usage:
- sparsematrix(n,m,o[,u,pe,pp,b]); n,m,o,u,pe,pp,b integers
- Return:
- nxm matrix, about pe percent of the entries are 0, the remaining
are random polynomials of degree d, u<=d<=o, with pp percent of
the terms being 0, the remaining have random coefficients
in the interval [1,b] [default: (pe,u,pp,b) = (0,50,75,100)]
Example:
|