| dmult | R Documentation |
Fast multiplication of a diagonal matrix by another matrix, taking taking advantage of the properties of diagonal matrices.
dmult(matrix1, matrix2)
matrix1 |
A diagonal matrix. |
matrix2 |
An ordinary matrix. |
dmult() will turn matrix1 into a vector and multiply it
horizontally by every rows in matrix2. This saves precious computing
time.\
The number of rows and columns of the diagonal matrix1 must be
equal to the number of rows of matrix1.
Product of matrix1 and matrix2.
multd().
wio <- make_wio("wiodtest")
dmult(wio$W, wio$Bd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.