22 #ifndef bempp_aca_approximate_lu_inverse_hpp
23 #define bempp_aca_approximate_lu_inverse_hpp
25 #include "../common/common.hpp"
27 #include "bempp/common/config_trilinos.hpp"
28 #include "discrete_boundary_operator.hpp"
30 #include "ahmed_aux_fwd.hpp"
31 #include "index_permutation.hpp"
32 #include "../fiber/scalar_traits.hpp"
33 #include "../fiber/verbosity_level.hpp"
36 #include <Thyra_SpmdVectorSpaceBase_decl.hpp>
45 template <
typename ValueType>
class DiscreteAcaBoundaryOperator;
51 template <
typename ValueType>
65 VerbosityLevel::Level verbosityLevel = VerbosityLevel::DEFAULT);
69 virtual unsigned int rowCount()
const;
72 virtual void addBlock(
const std::vector<int>& rows,
73 const std::vector<int>& cols,
74 const ValueType alpha,
75 arma::Mat<ValueType>& block)
const;
79 virtual Teuchos::RCP<const Thyra::VectorSpaceBase<ValueType> > domain()
const;
80 virtual Teuchos::RCP<const Thyra::VectorSpaceBase<ValueType> > range()
const;
83 virtual bool opSupportedImpl(Thyra::EOpTransp M_trans)
const;
88 const arma::Col<ValueType>& x_in,
89 arma::Col<ValueType>& y_inout,
90 const ValueType alpha,
91 const ValueType beta)
const;
99 typedef mblock<typename AhmedTypeTraits<ValueType>::Type> AhmedMblock;
102 Teuchos::RCP<const Thyra::SpmdVectorSpaceBase<ValueType> > m_domainSpace;
103 Teuchos::RCP<const Thyra::SpmdVectorSpaceBase<ValueType> > m_rangeSpace;
105 unsigned int m_rowCount;
106 unsigned int m_columnCount;
109 blcluster* m_blockCluster;
110 AhmedMblock** m_blocksL;
111 AhmedMblock** m_blocksU;
Traits of scalar types.
Definition: scalar_traits.hpp:40
virtual unsigned int rowCount() const
Number of rows of the operator.
Definition: aca_approximate_lu_inverse.cpp:133
Permutation of indices.
Definition: index_permutation.hpp:39
Approximate LU decomposition of a H-matrix.
Definition: aca_approximate_lu_inverse.hpp:52
Verbosity level.
Definition: verbosity_level.hpp:30
TranspositionMode
Enumeration determining how a discrete boundary operator is transformed before being applied...
Definition: transposition_mode.hpp:37
Discrete linear operator stored as a H-matrix.
Definition: discrete_aca_boundary_operator.hpp:144
Discrete boundary operator.
Definition: assembled_potential_operator.hpp:33
An Ahmed-compatible degree-of-freedom type.
Definition: ahmed_aux.hpp:89
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: aca_approximate_lu_inverse.cpp:153
AcaApproximateLuInverse(const DiscreteAcaBoundaryOperator< ValueType > &fwdOp, MagnitudeType delta, VerbosityLevel::Level verbosityLevel=VerbosityLevel::DEFAULT)
Construct an approximate LU decomposition of a H-matrix.
Definition: aca_approximate_lu_inverse.cpp:45
virtual unsigned int columnCount() const
Number of columns of the operator.
Definition: aca_approximate_lu_inverse.cpp:143