Learn R Programming

gpuR (version 2.0.6)

log,gpuVector-method: gpuR Logarithms and Exponentials

Description

log computes logarithms, by default natural logarithms and log10 computes common (i.e. base 10) logarithms. The general form log(x, base) computes logarithms with base base.

exp computes the exponential function.

Usage

# S4 method for gpuVector
log(x, base = NULL)

# S4 method for vclMatrix log(x, base = NULL)

# S4 method for vclVector log(x, base = NULL)

# S4 method for gpuMatrix log(x, base = NULL)

Value

A gpuVector object with the element-wise natural logarithm of the elements of the input gpuVector object x.

A vclMatrix object.

A vclVector object.

A gpuR object of the same class as x

Arguments

x

A gpuR object

base

A positive number (complex not currently supported by OpenCL): the base with respect to which logarithms are computed. Defaults to the natural log.