- TrainSum.polyval(grid, coeffs, offset)
\(f(x)=\sum_i{v_i(x-x_0)^i}\).
Construct a quantics tensor train representing a polynomial on the given grid. The provided grid has to be one-dimensional.The resulting TensorTrain will have the rank len(coeffs)+1.
- Parameters:
grid (UniformGrid)
coeffs (Sequence[float])
offset (float)
- Return type: