MGIS 3.1.0
Loading...
Searching...
No Matches
BasicLinearSpace.ixx File Reference

Implementation of the mgis::function::BasicLinearSpace structure and of the functions associated with this space. More...

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.

Functions

constexpr size_type mgis::function::getSpaceSize (const BasicLinearSpace &s) MGIS_NOEXCEPT
 returns the size of the space
constexpr bool mgis::function::areEquivalent (const BasicLinearSpace &s1, const BasicLinearSpace &s2) MGIS_NOEXCEPT
 checks if two spaces are equivalent, i.e. if they have the same size

Detailed Description

Implementation of the mgis::function::BasicLinearSpace structure and of the functions associated with this space.

Author
Thomas Helfer
Date
01/05/2025

Function Documentation

◆ areEquivalent()

bool mgis::function::areEquivalent ( const BasicLinearSpace & s1,
const BasicLinearSpace & s2 )
nodiscardconstexpr

checks if two spaces are equivalent, i.e. if they have the same size

Parameters
[in]s1first space
[in]s2second space
Returns
true if the two spaces are equivalent

◆ getSpaceSize()

size_type mgis::function::getSpaceSize ( const BasicLinearSpace & s)
constexpr

returns the size of the space

implementation of the getSpaceSize function, which delegates to the size member function

Parameters
[in]sspace
Returns
the number of elements the space contains