bsxfun.se {TargetScore}R Documentation

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)

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

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

[Package TargetScore version 1.18.0 Index]