PowerSeries#
- class pinnx.fnspace.PowerSeries(N=100, M=1)[source]#
Power series.
p(x) = sum_{i=0}^{N-1} a_i x^i
- Parameters:
- eval_batch(features, xs)[source]#
Evaluate a list of functions at a list of points.
- Parameters:
features – A NumPy array of shape (n_functions, n_features). A list of the feature vectors of the functions to be evaluated.
xs – A NumPy array of shape (n_points, dim). A list of points to be evaluated.
- Returns:
A NumPy array of shape (n_functions, n_points). The values of different functions at different points.