Template Numerical Library  version develop:4b9c6207
Public Types | Public Member Functions | Protected Attributes | List of all members
TNL::Solvers::Linear::Preconditioners::Diagonal< Matrices::DistributedMatrix< Matrix, Communicator > > Class Template Reference
Inheritance diagram for TNL::Solvers::Linear::Preconditioners::Diagonal< Matrices::DistributedMatrix< Matrix, Communicator > >:
Inheritance graph
[legend]
Collaboration diagram for TNL::Solvers::Linear::Preconditioners::Diagonal< Matrices::DistributedMatrix< Matrix, Communicator > >:
Collaboration graph
[legend]

Public Types

using ConstLocalViewType = Containers::VectorView< std::add_const_t< RealType >, DeviceType, IndexType >
 
using DeviceType = typename MatrixType::DeviceType
 
using IndexType = typename MatrixType::IndexType
 
using LocalViewType = Containers::VectorView< RealType, DeviceType, IndexType >
 
using MatrixType = Matrices::DistributedMatrix< Matrix, Communicator >
 
using RealType = typename MatrixType::RealType
 
using VectorType = Containers::Vector< RealType, DeviceType, IndexType >
 
- Public Types inherited from TNL::Solvers::Linear::Preconditioners::Preconditioner< Matrices::DistributedMatrix< Matrix, Communicator > >
using ConstVectorViewType = typename Traits< Matrices::DistributedMatrix< Matrix, Communicator > >::ConstVectorViewType
 
using DeviceType = typename Matrices::DistributedMatrix< Matrix, Communicator > ::DeviceType
 
using IndexType = typename Matrices::DistributedMatrix< Matrix, Communicator > ::IndexType
 
using MatrixPointer = Pointers::SharedPointer< std::add_const_t< MatrixType > >
 
using MatrixType = Matrices::DistributedMatrix< Matrix, Communicator >
 
using RealType = typename Matrices::DistributedMatrix< Matrix, Communicator > ::RealType
 
using VectorViewType = typename Traits< Matrices::DistributedMatrix< Matrix, Communicator > >::VectorViewType
 

Public Member Functions

virtual void solve (ConstVectorViewType b, VectorViewType x) const override
 
virtual void update (const MatrixPointer &matrixPointer) override
 
- Public Member Functions inherited from TNL::Solvers::Linear::Preconditioners::Preconditioner< Matrices::DistributedMatrix< Matrix, Communicator > >
virtual bool setup (const Config::ParameterContainer &parameters, const String &prefix="")
 
virtual void solve (ConstVectorViewType b, VectorViewType x) const
 
virtual void update (const MatrixPointer &matrixPointer)
 

Protected Attributes

VectorType diagonal
 

Additional Inherited Members

- Static Public Member Functions inherited from TNL::Solvers::Linear::Preconditioners::Preconditioner< Matrices::DistributedMatrix< Matrix, Communicator > >
static void configSetup (Config::ConfigDescription &config, const String &prefix="")
 

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