#include <Rodin/Math/ForwardDecls.h>
template<class Operator, class Vector>
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:
For example, where:
- is the operator (matrix)
- is the solution vector (unknown)
- is the right-hand side vector
| Specialization | Description |
|---|---|
| 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:: | PETSc-backed distributed linear system assembled and solved through PETSc objects. |
| LinearSystem<Operator, Vector> | Generic linear system interface for compatible operator/vector pairs. |