aux_x_log_y: Calculation of expression x\cdot \log y

View source: R/aux_x_log_y.R

aux_x_log_yR Documentation

Calculation of expression x\cdot \log y

Description

Internal, auxiliary functions

Usage

aux_x_log_y(x, y)

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

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 Nov. 20, 2023, 1:06 a.m.