Description Usage Arguments Details See Also Examples
Returns the lower or upper triangular structure or entries of a sparse matrix.
1 2 |
x |
a sparse matrix of class |
diag |
logical. Should the diagonal be included? |
Often not only the structure of the matrix is required but the
entries as well. For compatibility, the default is only a structure
consisting of ones (representing TRUE
s). Setting the flag
getOption( "spam.trivalues")
to TRUE
,
the function returns the actual
values.
spam.options
and diag
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.