View source: R/F_rowMultiply.R
rowMultiply | R Documentation |
A function to efficiently row multiply a a-by-b matrix by a vector of length b. More memory intensive but that does not matter with given matrix sizes
rowMultiply(matrix, vector)
matrix |
a numeric matrix of dimension a-by-b |
vector |
a numeric vector of length b |
t(t(matrix)*vector) but then faster
a matrix, row multplied by the vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.