ReadableFromMatrixData< ValueType, IndexType > Class Template Reference#
|
Reference API
|
#include <ginkgo/core/base/lin_op.hpp>
Public Types | |
| using | value_type = ValueType |
| using | index_type = IndexType |
Public Member Functions | |
| virtual void | read (const matrix_data< ValueType, IndexType > &data)=0 |
| void | read (const matrix_assembly_data< ValueType, IndexType > &data) |
| virtual void | read (const device_matrix_data< ValueType, IndexType > &data) |
| virtual void | read (device_matrix_data< ValueType, IndexType > &&data) |
Detailed Description
class gko::ReadableFromMatrixData< ValueType, IndexType >
A LinOp implementing this interface can read its data from a matrix_data structure.
Member Function Documentation
◆ read() [1/4]
|
inlinevirtual |
Reads a matrix from a device_matrix_data structure.
- Parameters
-
data the device_matrix_data structure.
Reimplemented in gko::matrix::Coo< ValueType, IndexType >, gko::matrix::Csr< ValueType, IndexType >, gko::matrix::Ell< ValueType, IndexType >, gko::matrix::Fbcsr< ValueType, IndexType >, gko::matrix::Hybrid< ValueType, IndexType >, gko::matrix::Sellp< ValueType, IndexType >, and gko::matrix::SparsityCsr< ValueType, IndexType >.
References gko::device_matrix_data< ValueType, IndexType >::copy_to_host(), and gko::read().
◆ read() [2/4]
|
inline |
Reads a matrix from a matrix_assembly_data structure.
- Parameters
-
data the matrix_assembly_data structure
References gko::matrix_assembly_data< ValueType, IndexType >::get_ordered_data(), and gko::read().
◆ read() [3/4]
|
pure virtual |
Reads a matrix from a matrix_data structure.
- Parameters
-
data the matrix_data structure
Implemented in gko::matrix::Coo< ValueType, IndexType >, gko::matrix::Csr< ValueType, IndexType >, gko::matrix::Ell< ValueType, IndexType >, gko::matrix::Fbcsr< ValueType, IndexType >, gko::matrix::Hybrid< ValueType, IndexType >, gko::matrix::Sellp< ValueType, IndexType >, and gko::matrix::SparsityCsr< ValueType, IndexType >.
◆ read() [4/4]
|
inlinevirtual |
Reads a matrix from a device_matrix_data structure. The structure may be emptied by this function.
- Parameters
-
data the device_matrix_data structure.
Reimplemented in gko::matrix::Coo< ValueType, IndexType >, gko::matrix::Csr< ValueType, IndexType >, gko::matrix::Ell< ValueType, IndexType >, gko::matrix::Fbcsr< ValueType, IndexType >, gko::matrix::Hybrid< ValueType, IndexType >, gko::matrix::Sellp< ValueType, IndexType >, and gko::matrix::SparsityCsr< ValueType, IndexType >.
References gko::read().
The documentation for this class was generated from the following file:
- ginkgo/core/base/lin_op.hpp
Generated by