|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
An integer of 128 bits, in two words of 64. More...
#include <Johnson.H>
Static Public Member Functions | |
| template<std::integral T> | |
| static constexpr Wide | of (const T x) noexcept |
| The integer x, in two's complement. | |
| static constexpr bool | signed_less (const Wide &a, const Wide &b) noexcept |
| Whether a < b, as integers in two's complement. | |
Public Attributes | |
| std::uint64_t | hi = 0 |
| The high word. | |
| std::uint64_t | lo = 0 |
| The low word. | |
Friends | |
| constexpr Wide | operator+ (const Wide &a, const Wide &b) noexcept |
| a + b, modulo 2^128 | |
| constexpr Wide | operator- (const Wide &a, const Wide &b) noexcept |
| a - b, modulo 2^128 | |
| constexpr bool | operator== (const Wide &a, const Wide &b) noexcept=default |
| Whether a and b are the same integer. | |
| constexpr bool | operator< (const Wide &a, const Wide &b) noexcept |
| Whether a < b, as unsigned integers. | |
An integer of 128 bits, in two words of 64.
Johnson keeps in it the potentials, the new weights and the sums of Dijkstra when a potential is below lowest(), which only a signed integer type of up to 64 bits has: they fit in it. Its operations are those of the unsigned integers modulo 2^128, and signed_less() compares two of them as integers in two's complement, as the potentials are.
|
inlinestaticconstexprnoexcept |
The integer x, in two's complement.
Definition at line 114 of file Johnson.H.
Referenced by Aleph::Johnson< GT, Distance, Ait, NAit, SA >::wide_arcs(), Aleph::Johnson< GT, Distance, Ait, NAit, SA >::wide_potentials(), and Aleph::Johnson< GT, Distance, Ait, NAit, SA >::wide_unweighted().
|
inlinestaticconstexprnoexcept |
Whether a < b, as integers in two's complement.
Definition at line 147 of file Johnson.H.
References hi.
Referenced by Aleph::Johnson< GT, Distance, Ait, NAit, SA >::wide_arcs(), Aleph::Johnson< GT, Distance, Ait, NAit, SA >::wide_potentials(), and Aleph::Johnson< GT, Distance, Ait, NAit, SA >::wide_unweighted().
Whether a and b are the same integer.
| std::uint64_t Aleph::johnson_detail::Wide::hi = 0 |
| std::uint64_t Aleph::johnson_detail::Wide::lo = 0 |
The low word.
Definition at line 110 of file Johnson.H.
Referenced by Aleph::Johnson< GT, Distance, Ait, NAit, SA >::wide_unweighted().