LSE

class LSE(A, b)[source]

Bases: NamedTuple

A namedtuple representing a linear system of equations.

\[A x = b\]

Create new instance of LSE(A, b)

Attributes

A: ndarray

The left hand side of the LSE.

b: ndarray

The right hand side of the LSE.

x

Returns the $x$ Variable.

Methods

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

solve()[source]

Return the solution to this LSE: \(x=A^{-1}b\).

Returns:

The solution to this LSE.

Raises:

ValueError – if this LSE is parameterized with unassigned values.

Return type:

ndarray