MGIS 3.1.0
Loading...
Searching...
No Matches
CoalescedMemoryAccessTensorView.hxx File Reference

File which defines the CoalescedMemoryAccessTensorView class, a view which acts as a function returning TFEL's tensorial objects whose components are stored in separate contiguous memory regions. More...

Classes

struct  mgis::function::internals::FunctionResultTypeTraits<::tfel::math::CoalescedView< TensorType > >
 partial specialization allowing functions to return a tfel::math::CoalescedView, i.e. a tensorial object whose components are stored in separate contiguous memory regions More...
struct  mgis::function::CoalescedMemoryAccessTensorView< Space, TensorType, is_mutable >
 a coalesced memory access view which acts as a function returning TFEL's tensorial objects More...
struct  mgis::function::LightweightViewTraits< CoalescedMemoryAccessTensorView< Space, TensorType, is_mutable > >
 partial specialisation stating that a CoalescedMemoryAccessTensorView is its own view: it only stores the views of the components, so copying it is cheap More...

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.

Functions

template<FunctionalSpaceConcept Space, TensorConcept TensorType, bool is_mutable>
constexpr const Space & mgis::function::getSpace (const CoalescedMemoryAccessTensorView< Space, TensorType, is_mutable > &) MGIS_NOEXCEPT
 return the underlying space
template<FunctionalSpaceConcept Space, TensorConcept TensorType, bool is_mutable>
constexpr bool mgis::function::check (AbstractErrorHandler &, const CoalescedMemoryAccessTensorView< Space, TensorType, is_mutable > &) MGIS_NOEXCEPT
 a noop function to match the EvaluatorConcept concept
template<FunctionalSpaceConcept Space, TensorConcept TensorType, bool is_mutable>
constexpr size_type mgis::function::getNumberOfComponents (const CoalescedMemoryAccessTensorView< Space, TensorType, is_mutable > &) MGIS_NOEXCEPT
 return the number of components

Detailed Description

File which defines the CoalescedMemoryAccessTensorView class, a view which acts as a function returning TFEL's tensorial objects whose components are stored in separate contiguous memory regions.

Author
Thomas Helfer
Date
27/10/2025

Function Documentation

◆ check()

template<FunctionalSpaceConcept Space, TensorConcept TensorType, bool is_mutable>
bool mgis::function::check ( AbstractErrorHandler & ,
const CoalescedMemoryAccessTensorView< Space, TensorType, is_mutable > &  )
nodiscardconstexpr

a noop function to match the EvaluatorConcept concept

Template Parameters
Spacefunctional space on which the view is defined
TensorTypetype of the tensorial object mapped
is_mutableboolean stating if the view can return mutable values
Parameters
[in]ehunused error handler
[in]vunused coalesced memory access tensor view
Returns
always true: the validity of the view is guaranteed by its constructors

◆ getNumberOfComponents()

template<FunctionalSpaceConcept Space, TensorConcept TensorType, bool is_mutable>
size_type mgis::function::getNumberOfComponents ( const CoalescedMemoryAccessTensorView< Space, TensorType, is_mutable > & )
nodiscardconstexpr

return the number of components

Template Parameters
Spacefunctional space on which the view is defined
TensorTypetype of the tensorial object mapped
is_mutableboolean stating if the view can return mutable values
Parameters
[in]vunused coalesced memory access tensor view
Returns
the number of components of the view, which is the number of components of the tensorial type

◆ getSpace()

template<FunctionalSpaceConcept Space, TensorConcept TensorType, bool is_mutable>
const Space & mgis::function::getSpace ( const CoalescedMemoryAccessTensorView< Space, TensorType, is_mutable > & v)
nodiscardconstexpr

return the underlying space

Template Parameters
Spacefunctional space on which the view is defined
TensorTypetype of the tensorial object mapped
is_mutableboolean stating if the view can return mutable values
Parameters
[in]vcoalesced memory access tensor view
Returns
the space on which the view is defined