Ginkgo  Generated from pipelines/2897303314 branch based on develop. Ginkgo version 2.0.0
A numerical linear algebra library targeting many-core architectures
Public Types | Public Member Functions | List of all members
gko::WritableToMatrixData< ValueType, IndexType > Class Template Referenceabstract

A LinOp implementing this interface can write its data to a matrix_data structure. More...

#include <ginkgo/core/base/lin_op.hpp>

Inheritance diagram for gko::WritableToMatrixData< ValueType, IndexType >:
[legend]

Public Types

using value_type = ValueType
 
using index_type = IndexType
 

Public Member Functions

virtual void write (matrix_data< ValueType, IndexType > &data) const =0
 Writes a matrix to a matrix_data structure. More...
 
virtual void write (device_matrix_data< ValueType, IndexType > &data) const
 Writes a matrix to a device_matrix_data structure. More...
 

Detailed Description

template<typename ValueType, typename IndexType>
class gko::WritableToMatrixData< ValueType, IndexType >

A LinOp implementing this interface can write its data to a matrix_data structure.

Member Function Documentation

◆ write() [1/2]

template<typename ValueType, typename IndexType>
virtual void gko::WritableToMatrixData< ValueType, IndexType >::write ( device_matrix_data< ValueType, IndexType > &  data) const
inlinevirtual

Writes a matrix to a device_matrix_data structure.

The entries are written on the executor of the output data. The default implementation goes through the host; formats that can produce the entries on the executor should override this.

Parameters
datathe device_matrix_data structure

Reimplemented in gko::matrix::Csr< ValueType, IndexType >.

◆ write() [2/2]

template<typename ValueType, typename IndexType>
virtual void gko::WritableToMatrixData< ValueType, IndexType >::write ( matrix_data< ValueType, IndexType > &  data) const
pure virtual

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