21 #include "bempp/common/config_trilinos.hpp"
23 #ifndef bempp_transposed_discrete_boundary_operator_hpp
24 #define bempp_transposed_discrete_boundary_operator_hpp
26 #include "../common/common.hpp"
28 #include "discrete_boundary_operator.hpp"
30 #include "../common/shared_ptr.hpp"
33 #include <Teuchos_RCP.hpp>
44 template <
typename ValueType>
56 const shared_ptr<const Base>& op);
58 virtual arma::Mat<ValueType>
asMatrix()
const;
60 virtual unsigned int rowCount()
const;
63 virtual void addBlock(
const std::vector<int>& rows,
64 const std::vector<int>& cols,
65 const ValueType alpha,
66 arma::Mat<ValueType>& block)
const;
70 virtual Teuchos::RCP<const Thyra::VectorSpaceBase<ValueType> > domain()
const;
71 virtual Teuchos::RCP<const Thyra::VectorSpaceBase<ValueType> > range()
const;
74 virtual bool opSupportedImpl(Thyra::EOpTransp M_trans)
const;
78 bool isTransposed()
const;
81 const arma::Col<ValueType>& x_in,
82 arma::Col<ValueType>& y_inout,
83 const ValueType alpha,
84 const ValueType beta)
const;
88 shared_ptr<const Base> m_operator;
virtual void addBlock(const std::vector< int > &rows, const std::vector< int > &cols, const ValueType alpha, arma::Mat< ValueType > &block) const
Add a subblock of this operator to a matrix.
Definition: transposed_discrete_boundary_operator.cpp:63
virtual unsigned int columnCount() const
Number of columns of the operator.
Definition: transposed_discrete_boundary_operator.cpp:57
TranspositionMode
Enumeration determining how a discrete boundary operator is transformed before being applied...
Definition: transposition_mode.hpp:37
TransposedDiscreteBoundaryOperator(TranspositionMode trans, const shared_ptr< const Base > &op)
Constructor.
Definition: transposed_discrete_boundary_operator.cpp:10
Discrete boundary operator.
Definition: assembled_potential_operator.hpp:33
Transposed and/or conjugated discrete boundary operator.
Definition: transposed_discrete_boundary_operator.hpp:45
virtual unsigned int rowCount() const
Number of rows of the operator.
Definition: transposed_discrete_boundary_operator.cpp:51
virtual arma::Mat< ValueType > asMatrix() const
Matrix representation of the operator.
Definition: transposed_discrete_boundary_operator.cpp:26