LinearSystem

Represents a linear system of equations.

template <
  class Operator,
  class Vector>
class LinearSystem;
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
::Mat, ::Vec
Full specialization
template <>
class LinearSystem<
  ::Mat,
  ::Vec>;
Specialization of LinearSystem for PETSc objects (Mat and Vec).
Math::Matrix<MatrixScalar>, Math::Vector<VectorScalar>
Full specialization
template <
  class MatrixScalar,
  class VectorScalar>
class LinearSystem<
  Math::Matrix< MatrixScalar >,
  Math::Vector< VectorScalar >>;
Linear system specialization for dense matrices.
Math::SparseMatrix<MatrixScalar>, Math::Vector<VectorScalar>
Full specialization
template <
  class MatrixScalar,
  class VectorScalar>
class LinearSystem<
  Math::SparseMatrix< MatrixScalar >,
  Math::Vector< VectorScalar >>;
Linear system specialization for sparse matrices.