log-methods: gpuR Logarithms and Exponentials

Description Usage Arguments Value

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S4 method for signature 'gpuVector'
log(x, base = NULL)

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

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

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

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.

Value

A gpuR object of the same class as x


gpuR documentation built on May 30, 2019, 1:02 a.m.