doc building fails
running make html
in the docs
folder on the dev
branch seems to fail in the regression part.
from minterpy.utils import newt_eval
def get_regression_matrix(lag_poly, points):
""" constructs the regression matrix by evaluating the lagrange monomials on
all the points.
:return: (k x N) the value of each Lagrange monomial in Newton form at each point.
"""
coeffs_newton = mp.get_transformation(lag_poly, mp.NewtonPolynomial).transformation_operator.array_repr_full
exponents = lag_poly.multi_index.exponents
generating_points = lag_poly.grid.generating_points
return newt_eval(points, coeffs_newton, exponents,
generating_points)
------------------
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In [7], line 1
----> 1 from minterpy.utils import newt_eval
3 def get_regression_matrix(lag_poly, points):
4 """ constructs the regression matrix by evaluating the lagrange monomials on
5 all the points.
6 :return: (k x N) the value of each Lagrange monomial in Newton form at each point.
7 """
ImportError: cannot import name 'newt_eval' from 'minterpy.utils' (/Users/uwe/Desktop/minterpy_test/minterpy/src/minterpy/utils.py)
ImportError: cannot import name 'newt_eval' from 'minterpy.utils' (/Users/uwe/Desktop/minterpy_test/minterpy/src/minterpy/utils.py)