template<class Number, class Mesh>
Rodin::Variational::GridFunction<P0<Number, Mesh>> class final

P0 GridFunction.

Base classes

template<class FES, class Derived>
class GridFunctionBase<P0<Number, Mesh>, GridFunction<P0<Number, Mesh>>>
Base class for grid function objects.

Constructors, destructors, conversion operators

GridFunction(const FESType& fes)
Constructs a grid function on a finite element space.
GridFunction(const GridFunction& other)
Copies the grid function.
GridFunction(GridFunction&& other)
Move constructs the grid function.

Public functions

auto operator=(GridFunction&& other) -> GridFunction& constexpr
Move assignment operator.
auto getValue(const std::pair<size_t, Index>& p, size_t local) const -> auto
Gets the value at the given polytope on the local degree of freedom.
auto getValue(Index global) const -> auto
Gets the value of the GridFunction at the global degree of freedom index.
void getValue(RangeType& res, const Geometry::Point& p) const
Gets the interpolated value at the point.
auto operator=(const RangeType& v) -> Derived&
Bulk assigns the value to the whole data array.
template<class NestedDerived>
auto operator=(const FunctionBase<NestedDerived>& fn) -> Derived&
Projection of a function.
auto operator+=(const ScalarType& rhs) -> Derived&
Addition of a scalar value.
auto operator-=(const ScalarType& rhs) -> Derived&
Substraction of a scalar value.
auto operator*=(const ScalarType& rhs) -> Derived&
Multiplication by a scalar value.
auto operator/=(const ScalarType& rhs) -> Derived&
Division by a scalar value.

Function documentation

template<class Number, class Mesh>
Rodin::Variational::GridFunction<P0<Number, Mesh>><Number, Mesh>::GridFunction(const FESType& fes)

Constructs a grid function on a finite element space.

Parameters
fes in Finite element space to which the function belongs to.

template<class Number, class Mesh>
Rodin::Variational::GridFunction<P0<Number, Mesh>><Number, Mesh>::GridFunction(const GridFunction& other)

Copies the grid function.

Parameters
other in Other grid function to copy.

template<class Number, class Mesh>
Rodin::Variational::GridFunction<P0<Number, Mesh>><Number, Mesh>::GridFunction(GridFunction&& other)

Move constructs the grid function.

Parameters
other in Other grid function to move.