LinearSystem

class probnum.problems.LinearSystem(A, b, solution=None)

Bases: object

Linear system of equations.

Compute \(x\) from \(Ax=b\). Solved by probabilistic linear solvers in probnum.linalg

Parameters:

Examples

>>> import numpy as np
>>> A = np.eye(3)
>>> b = np.arange(3)
>>> linsys = LinearSystem(A, b)
>>> linsys
LinearSystem(A=array([[1., 0., 0.],
       [0., 1., 0.],
       [0., 0., 1.]]), b=array([0, 1, 2]), solution=None)

Attributes Summary

solution

Attributes Documentation

solution: np.ndarray | randvars.RandomVariable | None = None