NeoFOAM
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
Public Member Functions | List of all members
NeoFOAM::la::LinearSystem< ValueType, IndexType > Class Template Reference

A class representing a linear system of equations. More...

#include <linearSystem.hpp>

Public Member Functions

 LinearSystem (const CSRMatrix< ValueType, IndexType > &matrix, const Field< ValueType > &rhs)
 
 ~LinearSystem ()=default
 
CSRMatrix< ValueType, IndexType > & matrix ()
 
Field< ValueType > & rhs ()
 
const CSRMatrix< ValueType, IndexType > & matrix () const
 
const Field< ValueType > & rhs () const
 
const Executorexec () const
 

Detailed Description

template<typename ValueType, typename IndexType>
class NeoFOAM::la::LinearSystem< ValueType, IndexType >

A class representing a linear system of equations.

The LinearSystem class provides functionality to store and manipulate a linear system of equations. It supports the storage of the coefficient matrix and the right-hand side vector, as well as the solution vector.

Definition at line 21 of file linearSystem.hpp.

Constructor & Destructor Documentation

◆ LinearSystem()

template<typename ValueType , typename IndexType >
NeoFOAM::la::LinearSystem< ValueType, IndexType >::LinearSystem ( const CSRMatrix< ValueType, IndexType > &  matrix,
const Field< ValueType > &  rhs 
)
inline

Definition at line 25 of file linearSystem.hpp.

◆ ~LinearSystem()

template<typename ValueType , typename IndexType >
NeoFOAM::la::LinearSystem< ValueType, IndexType >::~LinearSystem ( )
default

Member Function Documentation

◆ exec()

template<typename ValueType , typename IndexType >
const Executor & NeoFOAM::la::LinearSystem< ValueType, IndexType >::exec ( ) const
inline

Definition at line 40 of file linearSystem.hpp.

◆ matrix() [1/2]

template<typename ValueType , typename IndexType >
CSRMatrix< ValueType, IndexType > & NeoFOAM::la::LinearSystem< ValueType, IndexType >::matrix ( )
inline

Definition at line 34 of file linearSystem.hpp.

◆ matrix() [2/2]

template<typename ValueType , typename IndexType >
const CSRMatrix< ValueType, IndexType > & NeoFOAM::la::LinearSystem< ValueType, IndexType >::matrix ( ) const
inline

Definition at line 37 of file linearSystem.hpp.

◆ rhs() [1/2]

template<typename ValueType , typename IndexType >
Field< ValueType > & NeoFOAM::la::LinearSystem< ValueType, IndexType >::rhs ( )
inline

Definition at line 35 of file linearSystem.hpp.

◆ rhs() [2/2]

template<typename ValueType , typename IndexType >
const Field< ValueType > & NeoFOAM::la::LinearSystem< ValueType, IndexType >::rhs ( ) const
inline

Definition at line 38 of file linearSystem.hpp.


The documentation for this class was generated from the following file: