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:
For example, where:
- is the operator (matrix)
- is the solution vector (unknown)
- is the right-hand side vector
| Specialization | Description |
|---|---|
::Mat, ::VecFull specializationtemplate <> class LinearSystem< ::Mat, ::Vec>; | Specialization of LinearSystem for PETSc objects (Mat and Vec). |
Math::Matrix<MatrixScalar>, Math::Vector<VectorScalar>Full specializationtemplate < 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 specializationtemplate < class MatrixScalar, class VectorScalar> class LinearSystem< Math::SparseMatrix< MatrixScalar >, Math::Vector< VectorScalar >>; | Linear system specialization for sparse matrices. |