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

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/vbgmm.R

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

1
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)

Details

The function is used by vbgmm.

Value

func(x,y)

A matrix of having the same dimension of x.

Note

Internal function.

Author(s)

Yue Li

See Also

bsxfun

Examples

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

TargetScore documentation built on Nov. 8, 2020, 6:56 p.m.