dot-specfun.safe.product: Compute pmax(x y, -1) in such a way that zeros in x beat...

.specfun.safe.productR Documentation

Compute pmax(x y, -1) in such a way that zeros in x beat infinities in y.

Description

This is a common pattern in much of the distribution code, so it's worth factoring out.

Usage

.specfun.safe.product(x, y)

Arguments

x

a numeric vector

y

a numeric vector

Value

an appropriate numeric vector


harrysouthworth/texmex documentation built on March 8, 2024, 7:50 p.m.