pub fn sin<T: Tensor<Dtype = f32>>(t: T) -> T
Expand description

Sine function.

It’s derivative is cos(t)

Examples:

let t = Tensor1D::new([-1.0, 0.0, 1.0, 2.0]);

// use function version
let r = sin(t.clone());

// or the tensor method!
let r2 = t.sin();