Ginkgo
Generated from pipelines/1570051012 branch based on develop. Ginkgo version 1.9.0
A numerical linear algebra library targeting many-core architectures
|
The diagonal of a LinOp can be extracted. More...
#include <ginkgo/core/base/lin_op.hpp>
Public Member Functions | |
virtual std::unique_ptr< LinOp > | extract_diagonal_linop () const =0 |
Extracts the diagonal entries of the matrix into a vector. More... | |
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.
|
pure virtual |
Extracts the diagonal entries of the matrix into a vector.
Implemented in gko::DiagonalExtractable< ValueType >.