<< sparse | Sparse type | spones >> |
S = speye() |
S = speye(n) |
S = speye(n, m) |
S = speye(sz) |
dimension sizes: nonnegative integer scalar.
dimension sizes: two-element row vector.
a sparse matrix.
S = speye() returns a sparse scalar 1.
S = speye(n) returns a sparse n-by-n identity matrix, with ones on the main diagonal.
S = speye(n, m) returns a sparse n-by-m matrix, with ones on the main diagonal.
S = speye(sz) returns a matrix with ones on the main diagonal.
tic();S = speye(5000, 5000);toc()
tic();S = sparse(eye(5000, 5000));toc()
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET