21 #include "bempp/common/config_ahmed.hpp"
22 #include "bempp/common/config_trilinos.hpp"
24 #ifndef bempp_scaled_discrete_boundary_operator_hpp
25 #define bempp_scaled_discrete_boundary_operator_hpp
27 #include "../common/common.hpp"
29 #include "discrete_boundary_operator.hpp"
31 #include "../common/shared_ptr.hpp"
34 #include <Teuchos_RCP.hpp>
44 template <
typename ValueType>
57 const shared_ptr<const Base>& op);
59 virtual arma::Mat<ValueType>
asMatrix()
const;
61 virtual unsigned int rowCount()
const;
64 virtual void addBlock(
const std::vector<int>& rows,
65 const std::vector<int>& cols,
66 const ValueType alpha,
67 arma::Mat<ValueType>& block)
const;
70 shared_ptr<const DiscreteBoundaryOperator<ValueType> >
72 bool interleave=
false)
const;
77 virtual Teuchos::RCP<const Thyra::VectorSpaceBase<ValueType> > domain()
const;
78 virtual Teuchos::RCP<const Thyra::VectorSpaceBase<ValueType> > range()
const;
81 virtual bool opSupportedImpl(Thyra::EOpTransp M_trans)
const;
86 const arma::Col<ValueType>& x_in,
87 arma::Col<ValueType>& y_inout,
88 const ValueType alpha,
89 const ValueType beta)
const;
92 ValueType m_multiplier;
93 shared_ptr<const Base> m_operator;
virtual arma::Mat< ValueType > asMatrix() const
Matrix representation of the operator.
Definition: scaled_discrete_boundary_operator.cpp:22
Scaled discrete boundary operator.
Definition: scaled_discrete_boundary_operator.hpp:45
TranspositionMode
Enumeration determining how a discrete boundary operator is transformed before being applied...
Definition: transposition_mode.hpp:37
ScaledDiscreteBoundaryOperator(ValueType multiplier, const shared_ptr< const Base > &op)
Constructor.
Definition: scaled_discrete_boundary_operator.cpp:11
Discrete boundary operator.
Definition: assembled_potential_operator.hpp:33
virtual unsigned int columnCount() const
Number of columns of the operator.
Definition: scaled_discrete_boundary_operator.cpp:34
shared_ptr< const DiscreteBoundaryOperator< ValueType > > asDiscreteAcaBoundaryOperator(double eps=-1, int maximumRank=-1, bool interleave=false) const
Return a representation that can be cast to a DiscreteAcaBoundaryOperator.
Definition: scaled_discrete_boundary_operator.cpp:52
virtual unsigned int rowCount() const
Number of rows of the operator.
Definition: scaled_discrete_boundary_operator.cpp:28
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: scaled_discrete_boundary_operator.cpp:40