Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/r-utility-rowcolmult.R
This function performs column-wise matrix by vector multiplication, multiplying the columns 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 | cmm(m, v)
|
m |
a numeric matrix |
v |
a numeric vector |
For each column of m
the element-wise multiplication by v
is performed, assuming length(v)==nrow(m)
.
A matrix of the same dimensions as m
, with each column
obtained by multiplying the corresponding column 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.