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

The diagonal of a LinOp implementing this interface can be extracted. More...

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

Public Types

using value_type = ValueType
 

Public Member Functions

virtual std::unique_ptr< matrix::Diagonal< ValueType > > extract_diagonal () const =0
 Extracts the diagonal entries of the matrix into a vector. More...
 

Detailed Description

template<typename ValueType>
class gko::DiagonalExtractable< ValueType >

The diagonal of a LinOp implementing this interface can be extracted.

extract_diagonal 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()

template<typename ValueType >
virtual std::unique_ptr<matrix::Diagonal<ValueType> > gko::DiagonalExtractable< ValueType >::extract_diagonal ( ) const
pure virtual

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