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

Represents a constant scalar function with type Real.

Constructors, destructors, conversion operators

ScalarFunction(const ScalarType& x)
Constructs a ScalarFunction from a constant scalar value.

Public functions

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

Function documentation

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

Constructs a ScalarFunction from a constant scalar value.

Parameters
in Constant scalar value

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