Fishnet
2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
CantorPairing.hpp
Go to the documentation of this file.
1
#pragma once
2
3
namespace
fishnet::math
{
4
5
constexpr
inline
size_t
CantorPairing
(
size_t
x,
size_t
y)
noexcept
{
6
return
((x+y+1)*(x+y))/2 +y;
7
}
8
}
fishnet::math
Definition
NumericConcepts.hpp:4
fishnet::math::CantorPairing
constexpr size_t CantorPairing(size_t x, size_t y) noexcept
Definition
CantorPairing.hpp:5
lib
math
include
fishnet
CantorPairing.hpp
Generated by
1.9.8