Alien  1.3.0
Developer documentation
Loading...
Searching...
No Matches
Alien::DoKtoSimpleCSRMatrixConverter Class Reference
Inheritance diagram for Alien::DoKtoSimpleCSRMatrixConverter:
Collaboration diagram for Alien::DoKtoSimpleCSRMatrixConverter:

Public Types

typedef DoKMatrix SrcMatrix
typedef SimpleCSRMatrix< Arccore::Real > TgtMatrix
Public Types inherited from Alien::IMatrixConverter
typedef Alien::IMatrixImpl IMatrixImpl
 Type of matrix implementation.
typedef Alien::BackEndId BackEndId
 Type of matrix backend.

Public Member Functions

BackEndId sourceBackend () const override
 Get the source backend id.
BackEndId targetBackend () const override
 Get the target backend id.
void convert (const IMatrixImpl *sourceImpl, IMatrixImpl *targetImpl) const override
 Convert a matrix from one format to another.
Public Member Functions inherited from Alien::IMatrixConverter
virtual ~IMatrixConverter ()
 Free resources.
Public Member Functions inherited from Alien::ObjectWithTrace
template<typename T>
void alien_info (T &&t) const
template<typename T>
void alien_debug (T &&t) const
template<typename T>
void alien_warning (T &&t) const
template<typename T>
void alien_fatal (T &&t) const
ITraceMng * traceMng () const

Private Member Functions

void _build (const SrcMatrix &src, TgtMatrix &tgt) const
void _buildProfile (const SrcMatrix &src, TgtMatrix &tgt) const

Additional Inherited Members

Static Public Member Functions inherited from Alien::IMatrixConverter
template<typename T>
static T & cast (IMatrixImpl *impl, BackEndId backend)
 Cast a matrix implementation in its actual type.
template<typename T>
static const T & cast (const IMatrixImpl *impl, BackEndId backend)
 Const cast a matrix implementation in its actual type.
Protected Member Functions inherited from Alien::ObjectWithTrace
TraceMessage cout () const

Detailed Description

Definition at line 33 of file dok/converters/to_simple_csr_matrix.h.

Member Typedef Documentation

◆ SrcMatrix

typedef DoKMatrix Alien::DoKtoSimpleCSRMatrixConverter::SrcMatrix

Definition at line 36 of file dok/converters/to_simple_csr_matrix.h.

◆ TgtMatrix

typedef SimpleCSRMatrix<Arccore::Real> Alien::DoKtoSimpleCSRMatrixConverter::TgtMatrix

Definition at line 37 of file dok/converters/to_simple_csr_matrix.h.

Constructor & Destructor Documentation

◆ DoKtoSimpleCSRMatrixConverter()

Alien::DoKtoSimpleCSRMatrixConverter::DoKtoSimpleCSRMatrixConverter ( )

Definition at line 22 of file dok/converters/to_simple_csr_matrix.cc.

◆ ~DoKtoSimpleCSRMatrixConverter()

Alien::DoKtoSimpleCSRMatrixConverter::~DoKtoSimpleCSRMatrixConverter ( )
virtual

Definition at line 24 of file dok/converters/to_simple_csr_matrix.cc.

Member Function Documentation

◆ _build()

void Alien::DoKtoSimpleCSRMatrixConverter::_build ( const SrcMatrix & src,
TgtMatrix & tgt ) const
private

Definition at line 58 of file dok/converters/to_simple_csr_matrix.cc.

◆ _buildProfile()

void Alien::DoKtoSimpleCSRMatrixConverter::_buildProfile ( const SrcMatrix & src,
TgtMatrix & tgt ) const
private

Definition at line 63 of file dok/converters/to_simple_csr_matrix.cc.

◆ convert()

void Alien::DoKtoSimpleCSRMatrixConverter::convert ( const IMatrixImpl * sourceImpl,
IMatrixImpl * targetImpl ) const
overridevirtual

Convert a matrix from one format to another.

Parameters
[in]sourceImplImplementation of the source matrix
[in,out]targetImplImplementation of the target matrix

Implements Alien::IMatrixConverter.

Definition at line 38 of file dok/converters/to_simple_csr_matrix.cc.

References Alien::IMatrixImpl::block(), Alien::IMatrixConverter::cast(), sourceBackend(), targetBackend(), and Alien::IMatrixImpl::vblock().

Here is the call graph for this function:

◆ sourceBackend()

BackEndId Alien::DoKtoSimpleCSRMatrixConverter::sourceBackend ( ) const
overridevirtual

Get the source backend id.

Returns
The source backend id

Implements Alien::IMatrixConverter.

Definition at line 27 of file dok/converters/to_simple_csr_matrix.cc.

Referenced by convert().

Here is the caller graph for this function:

◆ targetBackend()

BackEndId Alien::DoKtoSimpleCSRMatrixConverter::targetBackend ( ) const
overridevirtual

Get the target backend id.

Returns
The target backend id

Implements Alien::IMatrixConverter.

Definition at line 33 of file dok/converters/to_simple_csr_matrix.cc.

Referenced by convert().

Here is the caller graph for this function:

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