template<class FES>
Rodin::Variational::QuadratureRule<GridFunction<FES>> class

Integration of a GridFunction object.

Derived classes

template<class FES>
class Integral<GridFunction<FES>> final
Integration of a GridFunction object.

Constructors, destructors, conversion operators

QuadratureRule(const IntegrandType& u)
Constructs the integral object from the given integrand.
QuadratureRule(const QuadratureRule& other)
Copy constructor.
QuadratureRule(QuadratureRule&& other)
Move constructor.
operator ScalarType()
Returns the value of the integral, computing it if necessary.

Public functions

auto compute() -> ScalarType
Integrates the expression and returns the value.
auto copy() const -> QuadratureRule* override noexcept
Copies the object and returns a non-owning pointer to the copied object.

Function documentation

template<class FES>
Rodin::Variational::QuadratureRule<GridFunction<FES>><FES>::operator ScalarType()

Returns the value of the integral, computing it if necessary.

Returns Value of integral

If compute() has been called before, returns the value of the cached value. Otherwise, it will call compute() and return the newly computed value.

template<class FES>
ScalarType Rodin::Variational::QuadratureRule<GridFunction<FES>><FES>::compute()

Integrates the expression and returns the value.

Returns Value of integral

Compute the value of the integral, caches it and returns it.

template<class FES>
QuadratureRule* Rodin::Variational::QuadratureRule<GridFunction<FES>><FES>::copy() const override noexcept

Copies the object and returns a non-owning pointer to the copied object.

Returns Non-owning pointer to the copied object.