Transposable Class Reference

Transposable Class Reference#

Reference API: gko::Transposable Class Reference
Reference API
gko::Transposable Class Referenceabstract

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

Inheritance diagram for gko::Transposable:
[legend]

Public Member Functions

virtual std::unique_ptr< LinOptranspose () const =0
 
virtual std::unique_ptr< LinOpconj_transpose () const =0
 

Detailed Description

Linear operators which support transposition should implement the Transposable interface.

It provides two functionalities, the normal transpose and the conjugate transpose.

The normal transpose returns the transpose of the linear operator without changing any of its elements representing the operation, \(B = A^{T}\).

The conjugate transpose returns the conjugate of each of the elements and additionally transposes the linear operator representing the operation, \(B = A^{H}\).

Example: Transposing a Csr matrix:

++
//Transposing an object of LinOp type.
//The object you want to transpose.
auto op = matrix::Csr::create(exec);
//Transpose the object by first converting it to a transposable type.
auto trans = op->transpose();
static std::unique_ptr< Csr > create(std::shared_ptr< const Executor > exec, std::shared_ptr< strategy_type > strategy)

Member Function Documentation

◆ conj_transpose()

◆ transpose()


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