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

Public Member Functions

BackEndId sourceBackend () const
 Get the source backend id.
BackEndId targetBackend () const
 Get the target backend id.
void convert (const IMatrixImpl *sourceImpl, IMatrixImpl *targetImpl) const
 Convert a matrix from one format to another.
void _build (const SimpleCSRMatrix< Real > &sourceImpl, SYCLBEllPackMatrix< Real > &targetImpl) const
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

Additional Inherited Members

Public Types inherited from Alien::IMatrixConverter
typedef Alien::IMatrixImpl IMatrixImpl
 Type of matrix implementation.
typedef Alien::BackEndId BackEndId
 Type of matrix backend.
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 26 of file SimpleCSRtoSYCLMatrixConverter.cc.

Constructor & Destructor Documentation

◆ SimpleCSRtoSYCLMatrixConverter()

SimpleCSRtoSYCLMatrixConverter::SimpleCSRtoSYCLMatrixConverter ( )

Definition at line 44 of file SimpleCSRtoSYCLMatrixConverter.cc.

◆ ~SimpleCSRtoSYCLMatrixConverter()

virtual SimpleCSRtoSYCLMatrixConverter::~SimpleCSRtoSYCLMatrixConverter ( )
inlinevirtual

Definition at line 30 of file SimpleCSRtoSYCLMatrixConverter.cc.

Member Function Documentation

◆ _build()

void SimpleCSRtoSYCLMatrixConverter::_build ( const SimpleCSRMatrix< Real > & sourceImpl,
SYCLBEllPackMatrix< Real > & targetImpl ) const

Definition at line 64 of file SimpleCSRtoSYCLMatrixConverter.cc.

◆ convert()

void SimpleCSRtoSYCLMatrixConverter::convert ( const IMatrixImpl * sourceImpl,
IMatrixImpl * targetImpl ) const
virtual

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 51 of file SimpleCSRtoSYCLMatrixConverter.cc.

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

Here is the call graph for this function:

◆ sourceBackend()

BackEndId SimpleCSRtoSYCLMatrixConverter::sourceBackend ( ) const
inlinevirtual

Get the source backend id.

Returns
The source backend id

Implements Alien::IMatrixConverter.

Definition at line 33 of file SimpleCSRtoSYCLMatrixConverter.cc.

Referenced by convert().

Here is the caller graph for this function:

◆ targetBackend()

BackEndId SimpleCSRtoSYCLMatrixConverter::targetBackend ( ) const
inlinevirtual

Get the target backend id.

Returns
The target backend id

Implements Alien::IMatrixConverter.

Definition at line 37 of file SimpleCSRtoSYCLMatrixConverter.cc.

Referenced by convert().

Here is the caller graph for this function:

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