log1p_arma: Armadillo wrapper for R's log1p function.

Description Usage Arguments Details Value Examples

Description

Armadillo wrapper for R's log1p function.

Usage

1

Arguments

x

A numeric vector.

Details

This is simply a wrapper to the vectorized Rcpp sugar function log1p which uses the same implementation as R. It takes an Armadillo vector as input and returns and Armadillo vector as output. It is intended for use in C++ code that uses only Armadillo types.

Value

A numeric vector whose values are log(1 + x).

Examples

1
log1p_arma(1/10^(0:5))

fditraglia/zoofactr documentation built on May 16, 2019, 12:12 p.m.