Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/r-utility-rowcolmult.R
This function performs row-wise matrix by vector multiplication, multiplying the rows of a matrix by the corresponding elements of a vector. It is used in examples presented in the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R. See Appendix B or http://www.wiley.com/go/data_mining_algorithms for more details.
1 | rmm(m, v)
|
m |
a numeric matrix |
v |
a numeric vector |
For each row of m
the element-wise multiplication by v
is performed, assuming length(v)==ncol(m)
.
A matrix of the same dimensions as m
, with each row
obtained by multiplying the corresponding row of m
by v
.
Pawel Cichosz <p.cichosz@elka.pw.edu.pl>
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.