Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::CA::ca_lattice_detail Namespace Reference

Classes

struct  is_constant_boundary
 True iff B is a ConstantBoundary<T, V>. More...
 
struct  is_constant_boundary< ConstantBoundary< T, V > >
 

Functions

ca_size_t magnitude (const ca_index_t c) noexcept
 
ca_size_t wrap_into_range (ca_index_t c, const ca_size_t n) noexcept
 Wrap a signed coordinate into [0, n) with positive modulo.
 
ca_size_t reflect_into_range (const ca_index_t c, const ca_size_t n) noexcept
 Reflect a signed coordinate into [0, n) (no-repeat triangle wave).
 

Variables

template<typename B >
constexpr bool is_constant_boundary_v = is_constant_boundary<B>::value
 

Function Documentation

◆ magnitude()

ca_size_t Aleph::CA::ca_lattice_detail::magnitude ( const ca_index_t  c)
inlinenoexcept

Definition at line 75 of file tpl_ca_lattice.H.

Referenced by reflect_into_range(), and wrap_into_range().

◆ reflect_into_range()

ca_size_t Aleph::CA::ca_lattice_detail::reflect_into_range ( const ca_index_t  c,
const ca_size_t  n 
)
inlinenoexcept

Reflect a signed coordinate into [0, n) (no-repeat triangle wave).

Maps -1 → 0, -2 → 1, n → n-1, n+1 → n-2, etc.

Definition at line 98 of file tpl_ca_lattice.H.

References Aleph::blossom_maximum_cardinality_matching(), magnitude(), and r.

Referenced by TEST().

◆ wrap_into_range()

ca_size_t Aleph::CA::ca_lattice_detail::wrap_into_range ( ca_index_t  c,
const ca_size_t  n 
)
inlinenoexcept

Wrap a signed coordinate into [0, n) with positive modulo.

Definition at line 83 of file tpl_ca_lattice.H.

References Aleph::blossom_maximum_cardinality_matching(), magnitude(), and r.

Referenced by TEST().

Variable Documentation

◆ is_constant_boundary_v

template<typename B >
constexpr bool Aleph::CA::ca_lattice_detail::is_constant_boundary_v = is_constant_boundary<B>::value
inlineconstexpr

Definition at line 134 of file tpl_ca_lattice.H.