![]() |
libdl
0.0.1
Simple yet powerful deep learning
|

Functions | |
| TensorPtr | dl::pow (TensorPtr base, float exponent) noexcept |
Computes the exponent -th power of each element in base and returns the resulting tensor. | |
| TensorPtr | dl::exp (TensorPtr x) noexcept |
Computes the elementwise x -th power of e. | |
| TensorPtr | dl::log (TensorPtr x) noexcept |
| Natural logarithm, \(\log_e(\,\cdot\,)\). | |
| TensorPtr | dl::sqrt (TensorPtr x) noexcept |
Computes the elementwise square root of x . | |
| TensorPtr | dl::rsqrt (TensorPtr x) noexcept |
Computes the reciprocal square root for each element in x. | |
Computes the elementwise x -th power of e.
\[(x_i)_{1\leq i \leq n} \mapsto (e^{x_i})_{1\leq i \leq n}.\]
| base |
x -th power of e for each component of x . Natural logarithm, \(\log_e(\,\cdot\,)\).
\[(x_i)_{1\leq i \leq n} \mapsto (\log_e x_i)_{1\leq i \leq n}.\]
| x |
x . Computes the exponent -th power of each element in base and returns the resulting tensor.
| base | the basis for which to compute the exponent -th power. |
| exponent | the exponent. |
exponent -th power of each component of base . Computes the reciprocal square root for each element in x.
\[(x_i)_{1\leq i \leq n} \mapsto \left(\frac{1}{\sqrt{x_i}}\right)_{1\leq i \leq n}.\]
| x |