rowMultiply {RCM} | R Documentation |
A function to efficiently row multiply a matrix and a vector
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 |
Memory intensive but that does not matter with given matrix sizes
a matrix, row multplied by the vector