![]() |
MoCSI API Reference
|
Implementation of the Tridiagonal Matrix Algorithm (TDMA) to solve 1D cases. More...
#include <TridiagonalMatrixSolver.h>


Public Member Functions | |
| TridiagonalMatrixSolver (SimulationClassBase< T > *sim_ptr, std::shared_ptr< MatrixManager< T > > matrix_manager_ptr) | |
| Constructor of the TDMA algorithm implementation. | |
| void | solveMatrixSystem (std::string_view field_name) override |
| Standard serialized implementation of the TDMA. Solves a tridiagonal linear system of equations in O(n) time. | |
Public Member Functions inherited from SolverInterface< T > | |
| SolverInterface (SimulationClassBase< T > *sim, std::shared_ptr< MatrixManager< T > > matrix_manager_ptr) | |
| virtual | ~SolverInterface ()=default |
Additional Inherited Members | |
Protected Attributes inherited from SolverInterface< T > | |
| SimulationClassBase< T > * | sim {} |
| std::shared_ptr< MatrixManager< T > > | m_matrix_manager {} |
Implementation of the Tridiagonal Matrix Algorithm (TDMA) to solve 1D cases.
| TridiagonalMatrixSolver< T >::TridiagonalMatrixSolver | ( | SimulationClassBase< T > * | sim_ptr, |
| std::shared_ptr< MatrixManager< T > > | matrix_manager_ptr | ||
| ) |
Constructor of the TDMA algorithm implementation.
| T | Numeric type used in the simulation (e.g., float, double). |
| sim_ptr | Pointer to the sim class. |
| matrix_manager_ptr | Pointer to the matrix manager containing the global matrices. |
|
overridevirtual |
Standard serialized implementation of the TDMA. Solves a tridiagonal linear system of equations in O(n) time.
| T | Numeric type used in the simulation (e.g., float, double). |
| field_name | The name of the field variable that is used as x, when solving A*x=b linear systems of equations. |
Implements SolverInterface< T >.