default implementation of a function whose values are TFEL's tensorial objects
More...
|
| constexpr | TensorialFunction (const Space &) |
| | constructor from a space, checking the preconditions
|
template<bool doPreconditionsCheck>
requires (LinearElementSpaceConcept<Space> || LinearQuadratureSpaceConcept<Space>) |
| constexpr | TensorialFunction (const PreconditionsCheck< doPreconditionsCheck > &, const Space &) |
| | constructor from a space
|
| constexpr | TensorialFunction (TensorialFunction &&) |
| | move constructor: moves the values of the function and rebinds the view to them
|
| constexpr | TensorialFunction (const TensorialFunction &) |
| | copy constructor: copies the values of the function and rebinds the view to them
|
| constexpr UnderlyingTensorView & | view () &MGIS_NOEXCEPT |
| | return a view of the function
|
| constexpr const UnderlyingTensorView & | view () const &MGIS_NOEXCEPT |
| | return a view of the function
|
|
auto | view () &&=delete |
| | creating a view of a temporary function is forbidden
|
| constexpr | ~TensorialFunction () |
| | fill the structure using raw data
|
|
constexpr auto | operator() (const element_index< Space > &) const |
| | inherit the call operators of the view
|
|
constexpr auto | operator() (const element_workspace< Space > &, const element_index< Space > &) const |
| | inherit the call operators of the view
|
|
constexpr auto | operator() (const cell_index< Space > &, const quadrature_point_index< Space > &) const |
| | inherit the call operators of the view
|
|
constexpr auto | operator() (const cell_workspace< Space > &, const cell_index< Space > &, const quadrature_point_index< Space > &) const |
| | inherit the call operators of the view
|
|
constexpr auto | operator() (const element_index< Space > &) |
| | inherit the call operators of the view
|
|
constexpr auto | operator() (const element_workspace< Space > &, const element_index< Space > &) |
| | inherit the call operators of the view
|
|
constexpr auto | operator() (const cell_index< Space > &, const quadrature_point_index< Space > &) |
| | inherit the call operators of the view
|
|
constexpr auto | operator() (const cell_workspace< Space > &, const cell_index< Space > &, const quadrature_point_index< Space > &) |
| | inherit the call operators of the view
|
| constexpr | TensorView (ConstructorArgumentType) |
| | constructor, checking the preconditions
|
| constexpr bool | check (AbstractErrorHandler &) const |
| | perform consistency checks
|
| constexpr const Space & | getSpace () const |
| | return the underlying space
|
| constexpr size_type | getNumberOfComponents () const MGIS_NOEXCEPT |
| constexpr auto | operator() (const element_index< Space > &) const |
| | call operator
|
template<FunctionalSpaceConcept Space, TensorConcept TensorType>
requires (LinearElementSpaceConcept<
Space> || LinearQuadratureSpaceConcept<
Space>)
struct mgis::function::TensorialFunction< Space, TensorType >
default implementation of a function whose values are TFEL's tensorial objects
A TensorialFunction stores its values in a Function, whose number of components is the minimal size of the array of values required to store a TensorType, as computed by the tfel::math::getUnderlyingArrayMinimalSize function, and derives from the corresponding TensorView, so it can be called like a function and returns its values as tensorial objects viewing its storage.
- Template Parameters
-
| Space | type of the functional space |
| TensorType | type of the tensorial objects returned by the function, which must match the TensorConcept concept |
- Note
- the data stride is equal to the data size