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