SimiLie
Loading...
Searching...
No Matches
sil::exterior::Simplex< K, Tag > Class Template Reference

Simplex class. More...

#include <simplex.hpp>

Inheritance diagram for sil::exterior::Simplex< K, Tag >:
Inheritance graph
Collaboration diagram for sil::exterior::Simplex< K, Tag >:
Collaboration graph

Public Types

using discrete_element_type = base_type
 
using discrete_vector_type = ddc::DiscreteVector<Tag...>
 

Public Member Functions

KOKKOS_DEFAULTED_FUNCTION constexpr Simplex ()=default
 
KOKKOS_DEFAULTED_FUNCTION constexpr Simplex (Simplex const &)=default
 
KOKKOS_DEFAULTED_FUNCTION constexpr Simplex (Simplex &&)=default
 
template<misc::Specialization< ddc::DiscreteVector > T>
KOKKOS_FUNCTION constexpr Simplex (discrete_element_type elem, T vect=ddc::DiscreteVector<> {}, bool negative=false) noexcept
 
template<misc::Specialization< ddc::DiscreteVector > T = ddc::DiscreteVector<>>
KOKKOS_FUNCTION constexpr Simplex (std::integral_constant< std::size_t, K >, discrete_element_type elem, T vect=ddc::DiscreteVector<> {}, bool negative=false) noexcept
 
KOKKOS_DEFAULTED_FUNCTION ~Simplex ()=default
 
KOKKOS_DEFAULTED_FUNCTION Simplexoperator= (Simplex const &other)=default
 
KOKKOS_DEFAULTED_FUNCTION Simplexoperator= (Simplex &&other)=default
 
KOKKOS_FUNCTION base_type discrete_element () noexcept
 
KOKKOS_FUNCTION const base_type discrete_element () const noexcept
 
KOKKOS_FUNCTION discrete_vector_typediscrete_vector () noexcept
 
KOKKOS_FUNCTION discrete_vector_type const & discrete_vector () const noexcept
 
KOKKOS_FUNCTION bool & negative () noexcept
 
KOKKOS_FUNCTION bool const & negative () const noexcept
 
KOKKOS_FUNCTION Simplex< s_k, Tag... > operator- ()
 
template<class T >
KOKKOS_FUNCTION auto operator* (T t)
 
KOKKOS_FUNCTION bool operator== (Simplex< s_k, Tag... > simplex)
 

Static Public Member Functions

static KOKKOS_FUNCTION constexpr std::size_t dimension () noexcept
 

Protected Types

using base_type = ddc::DiscreteElement<Tag...>
 

Detailed Description

template<std::size_t K, class... Tag>
class sil::exterior::Simplex< K, Tag >

Simplex class.

Definition at line 74 of file simplex.hpp.

Member Typedef Documentation

◆ base_type

template<std::size_t K, class... Tag>
using sil::exterior::Simplex< K, Tag >::base_type = ddc::DiscreteElement<Tag...>
protected

Definition at line 77 of file simplex.hpp.

◆ discrete_element_type

template<std::size_t K, class... Tag>
using sil::exterior::Simplex< K, Tag >::discrete_element_type = base_type

Definition at line 80 of file simplex.hpp.

◆ discrete_vector_type

template<std::size_t K, class... Tag>
using sil::exterior::Simplex< K, Tag >::discrete_vector_type = ddc::DiscreteVector<Tag...>

Definition at line 81 of file simplex.hpp.

Constructor & Destructor Documentation

◆ Simplex() [1/5]

template<std::size_t K, class... Tag>
KOKKOS_DEFAULTED_FUNCTION constexpr sil::exterior::Simplex< K, Tag >::Simplex ( )
constexprdefault

◆ Simplex() [2/5]

template<std::size_t K, class... Tag>
KOKKOS_DEFAULTED_FUNCTION constexpr sil::exterior::Simplex< K, Tag >::Simplex ( Simplex< K, Tag > const & )
constexprdefault

◆ Simplex() [3/5]

template<std::size_t K, class... Tag>
KOKKOS_DEFAULTED_FUNCTION constexpr sil::exterior::Simplex< K, Tag >::Simplex ( Simplex< K, Tag > && )
constexprdefault

◆ Simplex() [4/5]

template<std::size_t K, class... Tag>
template<misc::Specialization< ddc::DiscreteVector > T>
KOKKOS_FUNCTION constexpr sil::exterior::Simplex< K, Tag >::Simplex ( discrete_element_type elem,
T vect = ddc::DiscreteVector<> {},
bool negative = false )
inlineexplicitconstexprnoexcept

Definition at line 119 of file simplex.hpp.

◆ Simplex() [5/5]

template<std::size_t K, class... Tag>
template<misc::Specialization< ddc::DiscreteVector > T = ddc::DiscreteVector<>>
KOKKOS_FUNCTION constexpr sil::exterior::Simplex< K, Tag >::Simplex ( std::integral_constant< std::size_t, K > ,
discrete_element_type elem,
T vect = ddc::DiscreteVector<> {},
bool negative = false )
inlineexplicitconstexprnoexcept

Definition at line 132 of file simplex.hpp.

◆ ~Simplex()

template<std::size_t K, class... Tag>
KOKKOS_DEFAULTED_FUNCTION sil::exterior::Simplex< K, Tag >::~Simplex ( )
default

Member Function Documentation

◆ operator=() [1/2]

template<std::size_t K, class... Tag>
KOKKOS_DEFAULTED_FUNCTION Simplex & sil::exterior::Simplex< K, Tag >::operator= ( Simplex< K, Tag > const & other)
default

◆ operator=() [2/2]

template<std::size_t K, class... Tag>
KOKKOS_DEFAULTED_FUNCTION Simplex & sil::exterior::Simplex< K, Tag >::operator= ( Simplex< K, Tag > && other)
default

◆ dimension()

template<std::size_t K, class... Tag>
static KOKKOS_FUNCTION constexpr std::size_t sil::exterior::Simplex< K, Tag >::dimension ( )
inlinestaticconstexprnoexcept

Definition at line 151 of file simplex.hpp.

◆ discrete_element() [1/2]

template<std::size_t K, class... Tag>
KOKKOS_FUNCTION base_type sil::exterior::Simplex< K, Tag >::discrete_element ( )
inlinenoexcept

Definition at line 156 of file simplex.hpp.

◆ discrete_element() [2/2]

template<std::size_t K, class... Tag>
KOKKOS_FUNCTION const base_type sil::exterior::Simplex< K, Tag >::discrete_element ( ) const
inlinenoexcept

Definition at line 161 of file simplex.hpp.

◆ discrete_vector() [1/2]

template<std::size_t K, class... Tag>
KOKKOS_FUNCTION discrete_vector_type & sil::exterior::Simplex< K, Tag >::discrete_vector ( )
inlinenoexcept

Definition at line 166 of file simplex.hpp.

◆ discrete_vector() [2/2]

template<std::size_t K, class... Tag>
KOKKOS_FUNCTION discrete_vector_type const & sil::exterior::Simplex< K, Tag >::discrete_vector ( ) const
inlinenoexcept

Definition at line 171 of file simplex.hpp.

◆ negative() [1/2]

template<std::size_t K, class... Tag>
KOKKOS_FUNCTION bool & sil::exterior::Simplex< K, Tag >::negative ( )
inlinenoexcept

Definition at line 176 of file simplex.hpp.

◆ negative() [2/2]

template<std::size_t K, class... Tag>
KOKKOS_FUNCTION bool const & sil::exterior::Simplex< K, Tag >::negative ( ) const
inlinenoexcept

Definition at line 181 of file simplex.hpp.

◆ operator-()

template<std::size_t K, class... Tag>
KOKKOS_FUNCTION Simplex< s_k, Tag... > sil::exterior::Simplex< K, Tag >::operator- ( )
inline

Definition at line 186 of file simplex.hpp.

◆ operator*()

template<std::size_t K, class... Tag>
template<class T >
KOKKOS_FUNCTION auto sil::exterior::Simplex< K, Tag >::operator* ( T t)
inline

Definition at line 192 of file simplex.hpp.

◆ operator==()

template<std::size_t K, class... Tag>
KOKKOS_FUNCTION bool sil::exterior::Simplex< K, Tag >::operator== ( Simplex< s_k, Tag... > simplex)
inline

Definition at line 203 of file simplex.hpp.


The documentation for this class was generated from the following file: