8#include <similie/misc/are_all_same.hpp>
9#include <similie/misc/specialization.hpp>
18template <
class SimplexType,
class ElementType =
double>
28 SimplexType m_simplex;
32 KOKKOS_DEFAULTED_FUNCTION
constexpr Cosimplex() =
default;
40 ElementType
value) noexcept
54 return SimplexType::dimension();
57 KOKKOS_FUNCTION SimplexType
simplex() noexcept
62 KOKKOS_FUNCTION SimplexType
const simplex() const noexcept
69 return m_simplex.discrete_element();
74 return m_simplex.discrete_element();
79 return m_simplex.discrete_vector();
84 return m_simplex.discrete_vector();
89 return m_simplex.negative();
94 return m_simplex.negative();
113template <misc::Specialization<Cosimplex> CosimplexType>
114std::ostream&
operator<<(std::ostream& out, CosimplexType
const& cosimplex)
116 out <<
" " << cosimplex.simplex() <<
": " << cosimplex.value() <<
"\n";
KOKKOS_FUNCTION element_type value() noexcept
SimplexType::discrete_vector_type discrete_vector_type
static constexpr std::size_t dimension() noexcept
KOKKOS_DEFAULTED_FUNCTION constexpr Cosimplex(Cosimplex const &)=default
KOKKOS_FUNCTION element_type const value() const noexcept
KOKKOS_DEFAULTED_FUNCTION constexpr Cosimplex(Cosimplex &&)=default
KOKKOS_FUNCTION discrete_vector_type discrete_vector() noexcept
KOKKOS_FUNCTION discrete_element_type discrete_element() const noexcept
KOKKOS_FUNCTION SimplexType simplex() noexcept
KOKKOS_DEFAULTED_FUNCTION Cosimplex & operator=(Cosimplex const &other)=default
KOKKOS_DEFAULTED_FUNCTION ~Cosimplex()=default
KOKKOS_DEFAULTED_FUNCTION constexpr Cosimplex()=default
KOKKOS_FUNCTION discrete_vector_type discrete_vector() const noexcept
KOKKOS_FUNCTION SimplexType const simplex() const noexcept
KOKKOS_FUNCTION bool negative() noexcept
SimplexType::discrete_element_type discrete_element_type
KOKKOS_FUNCTION bool negative() const noexcept
KOKKOS_FUNCTION discrete_element_type discrete_element() noexcept
KOKKOS_FUNCTION Cosimplex const * operator->() const noexcept
KOKKOS_FUNCTION constexpr Cosimplex(SimplexType const &simplex, ElementType value) noexcept
KOKKOS_DEFAULTED_FUNCTION Cosimplex & operator=(Cosimplex &&other)=default
std::ostream & operator<<(std::ostream &out, ChainType const &chain)
The top-level namespace of SimiLie.