MGIS
Loading...
Searching...
No Matches
TensorView.hxx File Reference

This file declares the TensorView class and the transform function, as well as the as_fsarray, as_tvector, as_tmatrix, as_stensor and as_tensor modifiers. More...

Classes

struct  mgis::function::TensorView< FunctionType, TensorType >
 an evaluator returning the values of an immutable function view as a fixed size span or a scalar More...
 
struct  mgis::function::LightweightViewTraits< TensorView< FunctionType, TensorType > >
 partial specialisation More...
 

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.
 

Functions

template<FunctionConcept FunctionType, TensorConcept TensorType>
constexpr decltype(automgis::function::getSpace (const TensorView< FunctionType, TensorType > &)
 
template<FunctionConcept FunctionType, TensorConcept TensorType>
constexpr bool mgis::function::check (AbstractErrorHandler &, const TensorView< FunctionType, TensorType > &)
 perform consistency checks
 
template<FunctionConcept FunctionType, TensorConcept TensorType>
constexpr size_type mgis::function::getNumberOfComponents (const TensorView< FunctionType, TensorType > &) noexcept
 

Detailed Description

This file declares the TensorView class and the transform function, as well as the as_fsarray, as_tvector, as_tmatrix, as_stensor and as_tensor modifiers.

Author
Thomas Helfer
Date
09/05/2025

Function Documentation

◆ getNumberOfComponents()

template<FunctionConcept FunctionType, TensorConcept TensorType>
constexpr size_type mgis::function::getNumberOfComponents ( const TensorView< FunctionType, TensorType > &  v)
constexprnoexcept
Returns
the number of components