template<class Vector>
LinearFormBase class
Base class for linear form objects.
Base classes
- class Base
- Base class for all classes which are part of Rodin's FormLanguage.
Derived classes
-
template<class FES, class Vector>class LinearForm
- Represents a linear form on some finite element space.
-
template<class FES, class Vector>class LinearForm
- Represents a linear form on some finite element space.
Constructors, destructors, conversion operators
- LinearFormBase()
- Constructs a linear form with a default constructed vector which is owned by the LinearFormBase instance.
- LinearFormBase(VectorType& vec)
- Constructs a linear form with reference to vector which is not owned by the LinearFormBase instance.
- LinearFormBase(VectorType&& vec)
- Constructs a linear form with a vector which is owned by the LinearFormBase instance.
Public functions
- auto getVector() -> VectorType&
- Gets the reference to the (local) associated vector to the LinearForm.
- auto getVector() const -> const VectorType&
- Gets the reference to the (local) associated vector to the LinearForm.
- void assemble() pure virtual
- Assembles the linear form.
-
auto getTestFunction() const -> const FormLanguage::
Base& pure virtual - Gets the test function argument associated to this linear form.
- auto copy() const -> LinearFormBase* override noexcept
- Copies the object and returns a non-owning pointer to the copied object.
Function documentation
template<class Vector>
void Rodin:: Variational:: LinearFormBase<Vector>:: assemble() pure virtual
Assembles the linear form.
This method will assemble the underlying vector associated the linear form.
template<class Vector>
LinearFormBase* Rodin:: Variational:: LinearFormBase<Vector>:: 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. |
---|