21 #ifndef bempp_assembled_potential_operator_hpp
22 #define bempp_assembled_potential_operator_hpp
24 #include "../common/common.hpp"
26 #include "../common/armadillo_fwd.hpp"
27 #include "../common/scalar_traits.hpp"
28 #include "../common/shared_ptr.hpp"
34 template <
typename BasisFunctionType,
typename ResultType>
class GridFunction;
35 template <
typename BasisFunctionType>
class Space;
49 template <
typename BasisFunctionType,
typename ResultType>
77 const shared_ptr<
const arma::Mat<CoordinateType> >& evaluationPoints_,
84 shared_ptr<const Space<BasisFunctionType> >
space()
const;
95 shared_ptr<const DiscreteBoundaryOperator<ResultType> >
109 arma::Mat<ResultType>
apply(
114 shared_ptr<const Space<BasisFunctionType> > m_space;
115 shared_ptr<const arma::Mat<CoordinateType> > m_evaluationPoints;
116 shared_ptr<const DiscreteBoundaryOperator<ResultType> > m_op;
117 int m_componentCount;
Traits of scalar types.
Definition: scalar_traits.hpp:40
int componentCount() const
Return the number of components of the potential.
Definition: assembled_potential_operator.cpp:90
Function space.
Definition: assembled_potential_operator.hpp:35
shared_ptr< const Space< BasisFunctionType > > space() const
Definition: assembled_potential_operator.cpp:68
shared_ptr< const DiscreteBoundaryOperator< ResultType > > discreteOperator() const
Definition: assembled_potential_operator.cpp:83
Discrete boundary operator.
Definition: assembled_potential_operator.hpp:33
arma::Mat< ResultType > apply(const GridFunction< BasisFunctionType, ResultType > &argument) const
Apply the operator to a grid function.
Definition: assembled_potential_operator.cpp:97
Function defined on a grid.
Definition: assembled_potential_operator.hpp:34
AssembledPotentialOperator(const shared_ptr< const Space< BasisFunctionType > > &space_, const shared_ptr< const arma::Mat< CoordinateType > > &evaluationPoints_, const shared_ptr< const DiscreteBoundaryOperator< ResultType > > &op_, int componentCount_)
Constructor.
Definition: assembled_potential_operator.cpp:33
shared_ptr< const arma::Mat< CoordinateType > > evaluationPoints() const
Definition: assembled_potential_operator.cpp:76
ScalarTraits< ResultType >::RealType CoordinateType
Type used to represent point coordinates.
Definition: assembled_potential_operator.hpp:54
Assembled potential operator.
Definition: assembled_potential_operator.hpp:50