template<>
Rodin::Variational::RealFunction<Real> class final

Represents a constant scalar function with type Real.

Base classes

template<class Derived>
class RealFunctionBase<RealFunction<Real>>
Base class for real-valued functions defined on a mesh.

Constructors, destructors, conversion operators

RealFunction(const Real& x)
Constructs a RealFunction from a constant scalar value.

Public functions

auto copy() const -> RealFunction* override noexcept
Copies the object and returns a non-owning pointer to the copied object.

Function documentation

template<>
Rodin::Variational::RealFunction<Real>::RealFunction(const Real& x)

Constructs a RealFunction from a constant scalar value.

Parameters
in Constant scalar value

template<>
RealFunction* Rodin::Variational::RealFunction<Real>::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.