Description Usage Arguments Details Value See Also Examples
Computes faster the product of a diagonal matrix times a full matrix.
1 | diagv(v, M)
|
v |
A numeric vector specifying the elements on the diagonal of a matrix. |
M |
A numeric matrix compatible with the product D_v M. |
Computes N = D_v M where D_v is diagonal
avoiding the diag
operator.
A matrix N
.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.