cos method Null safety

Tensor<T> cos()

Calculates cos(x) for each element.

Implementation

Tensor<T> cos() => (toBuilder()..cos()).build();