template<class Operator, class Vector>
Rodin::Math::LinearSystem class

Represents a linear system of equations.

Template parameters
Operator Type of the linear operator (e.g., SparseMatrix, Matrix)

Generic linear system template declaration.

Forward declaration for the LinearSystem class template, which represents systems of linear equations in the form:

\[ \text{Operator} \cdot \text{Solution} = \text{Vector} \]

For example, $ Ax = b $ where:

  • $ A $ is the operator (matrix)
  • $ x $ is the solution vector (unknown)
  • $ b $ is the right-hand side vector
SpecializationDescription
LinearSystem<SparseMatrix, Vector>Local sparse linear system used by finite element assembly and iterative/direct sparse solvers.
LinearSystem<Matrix, Vector>Local dense linear system used by dense solvers and small algebraic systems.
LinearSystem<PETSc::Math::Matrix, PETSc::Math::Vector>PETSc-backed distributed linear system assembled and solved through PETSc objects.
LinearSystem<Operator, Vector>Generic linear system interface for compatible operator/vector pairs.