DUNE-FEM (unstable)

denserow.hh
1#ifndef DUNE_FEM_OPERATOR_LINEAR_DENSEROW_HH
2#define DUNE_FEM_OPERATOR_LINEAR_DENSEROW_HH
3
4#include <string>
5
7
8#include <dune/fem/operator/matrix/densematrix.hh>
9
10namespace Dune
11{
12
13 namespace Fem
14 {
15
16 // DenseRowLinearOperator
17 // ----------------------
18
19 template< class DomainFunction, class RangeFunction >
20 class DenseRowLinearOperator
21 : public DenseRowMatrixObject< typename DomainFunction::DiscreteFunctionSpaceType, typename RangeFunction::DiscreteFunctionSpaceType >,
22 public Fem::AssembledOperator< DomainFunction, RangeFunction >
23 {
24 typedef DenseRowLinearOperator< DomainFunction, RangeFunction > ThisType;
25 typedef DenseRowMatrixObject< typename DomainFunction::DiscreteFunctionSpaceType, typename RangeFunction::DiscreteFunctionSpaceType > BaseType;
26
27 public:
28 typedef typename DomainFunction::DiscreteFunctionSpaceType DomainSpaceType;
29 typedef typename RangeFunction::DiscreteFunctionSpaceType RangeSpaceType;
30
31 static constexpr bool assembled = true;
32
33 using BaseType::apply;
34
35 DenseRowLinearOperator ( const std::string &, const DomainSpaceType &domainSpace, const RangeSpaceType &rangeSpace )
36 : BaseType( domainSpace, rangeSpace )
37 {}
38
39 virtual void clear() { BaseType::clear(); }
40
41 virtual void operator() ( const DomainFunction &arg, RangeFunction &dest ) const override { apply( arg, dest ); }
42
43 };
44
45 } // namespace Fem
46
47} // namespace Dune
48
49#endif // #ifndef DUNE_FEM_OPERATOR_LINEAR_DENSEROW_HH
utility functions to compute eigenvalues for dense matrices.
Dune namespace.
Definition: alignedallocator.hh:13
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 13, 23:29, 2024)