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 Simplex & operator= (Simplex const &other)=default
 
KOKKOS_DEFAULTED_FUNCTION Simplex & operator= (Simplex &&other)=default
 
KOKKOS_FUNCTION base_type discrete_element () noexcept
 
KOKKOS_FUNCTION const base_type discrete_element () const noexcept
 
KOKKOS_FUNCTION discrete_vector_type & discrete_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) const
 
KOKKOS_FUNCTION bool operator!= (Simplex< s_k, Tag... > simplex) const
 

Static Public Member Functions

static 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 120 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 133 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 constexpr std::size_t sil::exterior::Simplex< K, Tag >::dimension ( )
inlinestaticconstexprnoexcept

Definition at line 152 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 157 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 162 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 167 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 172 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 177 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 182 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 187 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 193 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) const
inline

Definition at line 204 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) const
inline

Definition at line 211 of file simplex.hpp.


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