Function dfdx::tensor_ops::exp
source · [−]Expand description
Exponential function (exp). e^t
It’s derivative is itself! e^t
.
Examples:
let t = Tensor1D::new([-1.0, 0.0, 1.0, 2.0]);
// use function version
let r = exp(t.clone());
// or the tensor method!
let r2 = t.exp();