Copyright | (c) Sam Stites 2017 |
---|---|
License | BSD3 |
Maintainer | sam@stites.io |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- cinv_ :: Dynamic -> IO ()
- cinv :: Dynamic -> Dynamic
- sigmoid_ :: Dynamic -> IO ()
- sigmoid :: Dynamic -> Dynamic
- log_ :: Dynamic -> IO ()
- log :: Dynamic -> Dynamic
- lgamma_ :: Dynamic -> IO ()
- lgamma :: Dynamic -> Dynamic
- log1p_ :: Dynamic -> IO ()
- log1p :: Dynamic -> Dynamic
- exp_ :: Dynamic -> IO ()
- exp :: Dynamic -> Dynamic
- cos_ :: Dynamic -> IO ()
- cos :: Dynamic -> Dynamic
- acos_ :: Dynamic -> IO ()
- acos :: Dynamic -> Dynamic
- cosh_ :: Dynamic -> IO ()
- cosh :: Dynamic -> Dynamic
- sin_ :: Dynamic -> IO ()
- sin :: Dynamic -> Dynamic
- asin_ :: Dynamic -> IO ()
- asin :: Dynamic -> Dynamic
- sinh_ :: Dynamic -> IO ()
- sinh :: Dynamic -> Dynamic
- tan_ :: Dynamic -> IO ()
- tan :: Dynamic -> Dynamic
- atan_ :: Dynamic -> IO ()
- atan :: Dynamic -> Dynamic
- tanh_ :: Dynamic -> IO ()
- tanh :: Dynamic -> Dynamic
- erf_ :: Dynamic -> IO ()
- erf :: Dynamic -> Dynamic
- erfinv_ :: Dynamic -> IO ()
- erfinv :: Dynamic -> Dynamic
- pow_ :: Dynamic -> HsReal -> IO ()
- pow :: Dynamic -> HsReal -> Dynamic
- tpow_ :: HsReal -> Dynamic -> IO ()
- tpow :: HsReal -> Dynamic -> Dynamic
- sqrt_ :: Dynamic -> IO ()
- sqrt :: Dynamic -> Dynamic
- rsqrt_ :: Dynamic -> IO ()
- rsqrt :: Dynamic -> Dynamic
- ceil_ :: Dynamic -> IO ()
- ceil :: Dynamic -> Dynamic
- floor_ :: Dynamic -> IO ()
- floor :: Dynamic -> Dynamic
- round_ :: Dynamic -> IO ()
- round :: Dynamic -> Dynamic
- trunc_ :: Dynamic -> IO ()
- trunc :: Dynamic -> Dynamic
- frac_ :: Dynamic -> IO ()
- frac :: Dynamic -> Dynamic
- lerp_ :: Dynamic -> Dynamic -> HsReal -> IO ()
- lerp :: Dynamic -> Dynamic -> HsReal -> Dynamic
- atan2_ :: Dynamic -> Dynamic -> IO ()
- atan2 :: Dynamic -> Dynamic -> Dynamic
Documentation
sigmoid_ :: Dynamic -> IO () Source #
Inplace version of sigmoid
, mutating the first tensor argument.
log :: Dynamic -> Dynamic Source #
Returns a new tensor with the natural logarithm of the elements of x.
lgamma :: Dynamic -> Dynamic Source #
Returns a new tensor with the natural logarithm of the absolute value of the gamma function of the elements of x.
log1p :: Dynamic -> Dynamic Source #
Returns a new tensor with the natural logarithm of the elements of x + 1.
This function is more accurate than log for small values of x.
exp :: Dynamic -> Dynamic Source #
Returns, for each element in x, e (Neper number, the base of natural logarithms) raised to the power of the element in x.
cosh :: Dynamic -> Dynamic Source #
Returns a new tensor with the hyberbolic cosine of the elements of x.
sinh :: Dynamic -> Dynamic Source #
Returns a new tensor with the hyperbolic sine of the elements of x.
tanh :: Dynamic -> Dynamic Source #
Returns a new tensor with the hyperbolic tangent of the elements of x.
erf :: Dynamic -> Dynamic Source #
Returns a new tensor with the gauss error function applied to the elements of x.
The error function comes from https://en.wikipedia.org/wiki/Error_function
erfinv :: Dynamic -> Dynamic Source #
Returns a new tensor with the inverse gauss error function applied to the elements of x.
See https://en.wikipedia.org/wiki/Error_function for the gauss error function. This is its inverse.
pow_ :: Dynamic -> HsReal -> IO () Source #
Inplace version of pow
, mutating the first tensor argument.
pow :: Dynamic -> HsReal -> Dynamic Source #
Returns a new tensor with the elements of x
to the power of n
.
tpow_ :: HsReal -> Dynamic -> IO () Source #
Inplace version of tpow
, mutating the first tensor argument.
Returns a new tensor with the scalar n
, raised to the power of each element in the tensor x
.
rsqrt :: Dynamic -> Dynamic Source #
Returns a new tensor with the reciprocal of the square root of the elements of x.
ceil :: Dynamic -> Dynamic Source #
Returns a new tensor with the values of the elements of x rounded up to the nearest integers.
floor :: Dynamic -> Dynamic Source #
Returns a new Tensor with the values of the elements of x rounded down to the nearest integers.
round :: Dynamic -> Dynamic Source #
Returns a new tensor with the values of the elements of x rounded to the nearest integers.
FIXME: The lua docs don't state how this rounding works. Someone should read the source code and document this.
trunc :: Dynamic -> Dynamic Source #
Returns a new tensor with the truncated integer values of the elements of x.
FIXME: The lua docs don't state how this truncation works. Someone
should read the source code, document this, and explain how this
differs from floor
.
frac :: Dynamic -> Dynamic Source #
Returns a new tensor with the fractional portion of the elements of x.
lerp_ :: Dynamic -> Dynamic -> HsReal -> IO () Source #
Inplace version of lerp
, mutating the first tensor argument.
lerp :: Dynamic -> Dynamic -> HsReal -> Dynamic Source #
Linear interpolation of two scalars or tensors based on a weight:
res = a + weight * (b - a)