DiagonalLinOpExtractable Class Reference#
|
Reference API
|
gko::DiagonalLinOpExtractable Class Referenceabstract
#include <ginkgo/core/base/lin_op.hpp>
Inheritance diagram for gko::DiagonalLinOpExtractable:
Public Member Functions | |
| virtual std::unique_ptr< LinOp > | extract_diagonal_linop () const =0 |
Detailed Description
The diagonal of a LinOp can be extracted. It will be implemented by DiagonalExtractable<ValueType>, so the class does not need to implement it. extract_diagonal_linop returns a linop which extracts the elements whose col and row index are the same and stores the result in a min(nrows, ncols) x 1 dense matrix.
Member Function Documentation
◆ extract_diagonal_linop()
|
pure virtual |
Extracts the diagonal entries of the matrix into a vector.
- Returns
- linop the linop of diagonal format
Implemented in gko::DiagonalExtractable< ValueType >, gko::DiagonalExtractable< default_precision >, and gko::DiagonalExtractable< value_type >.
The documentation for this class was generated from the following file:
- ginkgo/core/base/lin_op.hpp
Generated by