GEOS
|
Simple class that wraps a matrix and represents its transpose as a linear operator. More...
#include <TransposeOperator.hpp>
Public Types | |
using | Base = LinearOperator< typename LAI::ParallelVector > |
Alias for base type. | |
using | Vector = typename Base::Vector |
Alias for vector type. | |
using | Matrix = typename LAI::ParallelMatrix |
Alias for matrix type. | |
Public Types inherited from geos::LinearOperator< LAI::ParallelVector > | |
using | Vector = LAI::ParallelVector |
Alias for template parameter. | |
Public Member Functions | |
TransposeOperator (Matrix const &mat) | |
Constructor. More... | |
virtual | ~TransposeOperator () override=default |
Destructor. | |
virtual void | apply (Vector const &src, Vector &dst) const override |
Apply operator to a vector. More... | |
virtual globalIndex | numGlobalRows () const override |
Get the number of global rows. More... | |
virtual globalIndex | numGlobalCols () const override |
Get the number of global columns. More... | |
virtual localIndex | numLocalRows () const override |
Get the number of local rows. More... | |
virtual localIndex | numLocalCols () const override |
Get the number of local columns. More... | |
virtual MPI_Comm | comm () const override |
Get the MPI communicator the matrix was created with. More... | |
Public Member Functions inherited from geos::LinearOperator< LAI::ParallelVector > | |
LinearOperator ()=default | |
Constructor. | |
virtual | ~LinearOperator ()=default |
Destructor. | |
virtual void | apply (Vector const &src, Vector &dst) const=0 |
Apply operator to a vector, dst = this(src) . More... | |
virtual void | residual (Vector const &x, Vector const &b, Vector &r) const |
Compute residual r = b - this(x) . More... | |
Simple class that wraps a matrix and represents its transpose as a linear operator.
LAI | the linear algebra interface |
Definition at line 33 of file TransposeOperator.hpp.
|
inlineexplicit |
Constructor.
mat | the underlying matrix |
Definition at line 50 of file TransposeOperator.hpp.
|
inlineoverridevirtual |
Apply operator to a vector.
src | input vector (x) |
dst | output vector (b) |
src
and dst
cannot alias the same vector (some implementations may allow this). Definition at line 67 of file TransposeOperator.hpp.
|
inlineoverridevirtual |
Get the MPI communicator the matrix was created with.
Implements geos::LinearOperator< LAI::ParallelVector >.
Definition at line 112 of file TransposeOperator.hpp.
|
inlineoverridevirtual |
Get the number of global columns.
Implements geos::LinearOperator< LAI::ParallelVector >.
Definition at line 85 of file TransposeOperator.hpp.
|
inlineoverridevirtual |
Get the number of global rows.
Implements geos::LinearOperator< LAI::ParallelVector >.
Definition at line 76 of file TransposeOperator.hpp.
|
inlineoverridevirtual |
Get the number of local columns.
Implements geos::LinearOperator< LAI::ParallelVector >.
Definition at line 103 of file TransposeOperator.hpp.
|
inlineoverridevirtual |
Get the number of local rows.
Implements geos::LinearOperator< LAI::ParallelVector >.
Definition at line 94 of file TransposeOperator.hpp.