aux_x_log_y: Calculation of expression x\cdot \log y

Description Usage Arguments Value Examples

View source: R/aux_x_log_y.R

Description

Internal, auxiliary functions

Usage

1

Arguments

x

is a numeric vector

y

is a numeric vector (the same length of x)

Value

Function calculates the value of expression x\cdot \log y element-wise in a numerically stable way. The result is a numeric vector of the same length as x. It is assumed that 0\cdot \log 0 = 0.

Examples

1
2
3
SLEMI:::aux_x_log_y(1,2)
SLEMI:::aux_x_log_y(0,0)
SLEMI:::aux_x_log_y(1000,100)

SLEMI documentation built on Feb. 22, 2021, 5:11 p.m.