|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
common/scalarproducts.hh
Go to the documentation of this file.
84 typedef AuxiliaryDofs< typename DiscreteFunctionSpaceType::GridPartType, MapperType > AuxiliaryDofsType;
101 RangeFieldType scalarProductDofs ( const DiscreteFunctionType &x, const OtherDiscreteFunctionType &y ) const
122 Hybrid::forEach( LocalBlockIndices(), [ &x, &y, &scp, dof ] ( auto &&j ) { scp += x[ dof ][ j ] * y[ dof ][ j ]; } );
131 typedef typename ISTLScalarProductSelector< typename DiscreteFunction :: DofVectorType > :: type BlockVectorType;
SolverCategory::Category category() const override
auto dot(const A &a, const B &b) -> typename std::enable_if< IsNumber< A >::value &&!IsVector< A >::value &&!std::is_same< typename FieldTraits< A >::field_type, typename FieldTraits< A >::real_type > ::value, decltype(conj(a) *b)>::type
constexpr void forEach(Range &&range, F &&f)
Dune::FieldTraits< RangeFieldType >::real_type real_type
Definition common/scalarproducts.hh:87
const DiscreteFunctionSpaceType & space_
Definition common/scalarproducts.hh:167
const AuxiliaryDofsType & auxiliaryDofs() const
Definition common/scalarproducts.hh:108
const DiscreteFunctionSpaceType & space() const
Definition common/scalarproducts.hh:94
static void forEachAuxiliaryDof(const AuxiliaryDofs &auxiliaryDofs, F &&f)
Apply action encoded in Functor f to all auxiliary dofs.
Definition auxiliarydofs.hh:285
RangeFieldType scalarProductDofs(const DiscreteFunctionType &x, const OtherDiscreteFunctionType &y) const
evaluate scalar product and omit auxiliary nodes
Definition common/scalarproducts.hh:101
AuxiliaryDofs< typename DiscreteFunctionSpaceType::GridPartType, MapperType > AuxiliaryDofsType
Definition common/scalarproducts.hh:84
RangeFieldType field_type
Definition common/scalarproducts.hh:86
DiscreteFunctionSpaceType::BlockMapperType MapperType
type of used mapper
Definition common/scalarproducts.hh:81
DiscreteFunction DiscreteFunctionType
Definition common/scalarproducts.hh:67
ParallelScalarProduct(const DiscreteFunctionSpaceType &space)
constructor taking space
Definition common/scalarproducts.hh:90
RangeFieldType dotProduct(const DofVector &x, const OtherDofVector &y) const
evaluate scalar product on dofVector and omit auxiliary nodes
Definition common/scalarproducts.hh:116
DiscreteFunctionSpaceType::RangeFieldType RangeFieldType
type of range field
Definition common/scalarproducts.hh:78
DiscreteFunctionType::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
type of the discrete function space
Definition common/scalarproducts.hh:71
static void forEachPrimaryDof(const AuxiliaryDofs &auxiliaryDofs, F &&f)
Apply action encoded in Functor f to all primary dofs.
Definition auxiliarydofs.hh:303
T real_type
Category
Definition common/scalarproducts.hh:65
In parallel computations the dofs of a discrete function are made up by all primary dofs....
Definition auxiliarydofs.hh:46
T sqrt(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8