20 #ifndef GEOS_LINEARALGEBRA_UTILITIES_TRANSPOSEOPERATOR_HPP_
21 #define GEOS_LINEARALGEBRA_UTILITIES_TRANSPOSEOPERATOR_HPP_
32 template<
typename MATRIX >
64 m_matrix.applyTranspose( src, dst );
72 return m_matrix.numGlobalCols();
80 return m_matrix.numGlobalRows();
88 return m_matrix.numLocalCols();
96 return m_matrix.numLocalRows();
103 virtual MPI_Comm
comm()
const override
105 return m_matrix.comm();
Abstract base class for linear operators.
VECTOR Vector
Alias for template parameter.
Simple class that wraps a matrix and represents its transpose as a linear operator.
virtual MPI_Comm comm() const override
Get the MPI communicator the matrix was created with.
MATRIX Matrix
Alias for matrix type.
virtual localIndex numLocalRows() const override
virtual globalIndex numGlobalCols() const override
virtual globalIndex numGlobalRows() const override
virtual localIndex numLocalCols() const override
TransposeOperator(Matrix const &mat)
Constructor.
virtual void apply(Vector const &src, Vector &dst) const override
Apply operator to a vector.
typename Base::Vector Vector
Alias for vector type.
GEOS_GLOBALINDEX_TYPE globalIndex
Global index type (for indexing objects across MPI partitions).
GEOS_LOCALINDEX_TYPE localIndex
Local index type (for indexing objects within an MPI partition).