Learn R Programming

TargetScore (version 1.10.0)

bsxfun.se: bsxfun with single expansion (real Matlab style) (Internal function)

Description

Depending on the dimension of x, repeat y in either by row or by column and apply element-wise operation defined by func.

Usage

bsxfun.se(func, x, y, expandByRow = TRUE)

Arguments

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)

Value

  • func(x,y)A matrix of having the same dimension of x.

Details

The function is used by vbgmm.

See Also

bsxfun

Examples

Run this code
bsxfun.se("*", matrix(c(1:10), nrow=2), matrix(c(1:5), nrow=5))

Run the code above in your browser using DataLab