21 #include "bempp/common/config_trilinos.hpp"
23 #ifndef bempp_complexified_discrete_boundary_operator_hpp
24 #define bempp_complexified_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>
34 #include <Thyra_SpmdVectorSpaceBase_decl.hpp>
45 template <
typename RealType>
51 typedef std::complex<RealType> ComplexType;
52 typedef ComplexType ValueType;
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;
79 const arma::Col<ValueType>& x_in,
80 arma::Col<ValueType>& y_inout,
81 const ValueType alpha,
82 const ValueType beta)
const;
86 shared_ptr<const DiscreteBoundaryOperator<RealType> > m_operator;
88 Teuchos::RCP<const Thyra::VectorSpaceBase<ValueType> > m_domainSpace;
89 Teuchos::RCP<const Thyra::VectorSpaceBase<ValueType> > m_rangeSpace;
virtual unsigned int rowCount() const
Number of rows of the operator.
Definition: complexified_discrete_boundary_operator.cpp:42
virtual unsigned int columnCount() const
Number of columns of the operator.
Definition: complexified_discrete_boundary_operator.cpp:48
virtual arma::Mat< ValueType > asMatrix() const
Matrix representation of the operator.
Definition: complexified_discrete_boundary_operator.cpp:31
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: complexified_discrete_boundary_operator.cpp:54
TranspositionMode
Enumeration determining how a discrete boundary operator is transformed before being applied...
Definition: transposition_mode.hpp:37
Discrete boundary operator.
Definition: assembled_potential_operator.hpp:33
ComplexifiedDiscreteBoundaryOperator(const shared_ptr< const DiscreteBoundaryOperator< RealType > > &op)
Constructor.
Definition: complexified_discrete_boundary_operator.cpp:14
Complexified discrete boundary operator.
Definition: complexified_discrete_boundary_operator.hpp:46