log,gpuVector-method {gpuR} | R Documentation |
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 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 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
[Package gpuR version 2.0.6 Index]