Description Usage Arguments Details Value
Generate sparse matrices.
1 2 3 | spar_gen_bandish(nrows, ncols, seed)
spar_gen_banded(nrows, ncols, band = 2)
|
nrows, ncols |
The dimension |
seed |
Random seed. |
band |
The band size, a positive integer. |
spar_gen_bandish()
generates a "band-ish" matrix, a matrix whose
entries are probabilistically more likely to be 1 the closer to the main
diagonal they are.
spar_gen_banded()
generates a banded matrix.
A sparse "dgCMatrix"
object is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.