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