TrainSum.cos(grid, factor, offset)

\(f(x)=\cos{\left(a(x-x_0)\right)}\).

Construct a quantics tensor train representing a cosine on the given grid. The provided grid has to be one-dimensional.The resulting TensorTrain will have the rank 2.

Parameters:
Return type:

TensorTrain