Skip to main content

sin

Function sin 

Source
pub fn sin<T: Float>(t: &Tensor<T>) -> Tensor<T>
Expand description

Element-wise sine.

§Examples

let t = Tensor::from_vec(vec![0.0_f64], vec![1]).unwrap();
assert!(math::sin(&t).as_slice()[0].abs() < 1e-15);