Ginkgo Generated from branch based on master. Ginkgo version 1.8.0
A numerical linear algebra library targeting many-core architectures
Loading...
Searching...
No Matches
gko::matrix::Csr< ValueType, IndexType >::strategy_type Class Referenceabstract

strategy_type is to decide how to set the csr algorithm. More...

#include <ginkgo/core/matrix/csr.hpp>

Inheritance diagram for gko::matrix::Csr< ValueType, IndexType >::strategy_type:
[legend]

Public Member Functions

 strategy_type (std::string name)
 Creates a strategy_type.
 
std::string get_name ()
 Returns the name of strategy.
 
virtual void process (const array< index_type > &mtx_row_ptrs, array< index_type > *mtx_srow)=0
 Computes srow according to row pointers.
 
virtual int64_t clac_size (const int64_t nnz)=0
 Computes the srow size according to the number of nonzeros.
 
virtual std::shared_ptr< strategy_typecopy ()=0
 Copy a strategy.
 

Friends

class automatical
 

Detailed Description

template<typename ValueType, typename IndexType>
class gko::matrix::Csr< ValueType, IndexType >::strategy_type

strategy_type is to decide how to set the csr algorithm.

The practical strategy method should inherit strategy_type and implement its process, clac_size function and the corresponding device kernel.

Constructor & Destructor Documentation

◆ strategy_type()

template<typename ValueType , typename IndexType >
gko::matrix::Csr< ValueType, IndexType >::strategy_type::strategy_type ( std::string name)
inline

Creates a strategy_type.

Parameters
namethe name of strategy

Member Function Documentation

◆ clac_size()

template<typename ValueType , typename IndexType >
virtual int64_t gko::matrix::Csr< ValueType, IndexType >::strategy_type::clac_size ( const int64_t nnz)
pure virtual

◆ copy()

template<typename ValueType , typename IndexType >
virtual std::shared_ptr< strategy_type > gko::matrix::Csr< ValueType, IndexType >::strategy_type::copy ( )
pure virtual

◆ get_name()

template<typename ValueType , typename IndexType >
std::string gko::matrix::Csr< ValueType, IndexType >::strategy_type::get_name ( )
inline

Returns the name of strategy.

Returns
the name of strategy

Referenced by gko::matrix::Csr< ValueType, IndexType >::automatical::process().

◆ process()

template<typename ValueType , typename IndexType >
virtual void gko::matrix::Csr< ValueType, IndexType >::strategy_type::process ( const array< index_type > & mtx_row_ptrs,
array< index_type > * mtx_srow )
pure virtual

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