bsxfun.se {TargetScore} | R Documentation |
Depending on the dimension of x, repeat y in either by row or by column and apply element-wise operation defined by func.
bsxfun.se(func, x, y, expandByRow = TRUE)
func |
function with two or more input parameters. |
x, y |
two vectors, matrices, or arrays |
expandByRow |
expand by row or by column of x when nrow(x)==ncol(x)==length(y) |
The function is used by vbgmm.
func(x,y) |
A matrix of having the same dimension of x. |
Internal function.
Yue Li
bsxfun.se("*", matrix(c(1:10), nrow=2), matrix(c(1:5), nrow=5))