spectral.BvpProblem#
- class spectral.BvpProblem(operator: ndarray, rhs: ndarray)[source]#
Bases:
objectDense linear BVP system with convenience helpers.
Methods
__init__Apply Dirichlet boundary conditions in-place.
Solve the linear BVP system.
Attributes
- apply_dirichlet(indices: Iterable[int], values: Iterable[float]) None[source]#
Apply Dirichlet boundary conditions in-place.
- solve() ndarray[source]#
Solve the linear BVP system.
- Returns:
np.ndarraySolution vector