Orrery
A GPU-accelerated N-body gravitational simulator
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1#pragma once
2
13
14#include <cstddef>
15#include <type_traits>
16
17namespace orrery::core {
18
19#ifdef ORRERY_SINGLE_PRECISION
20using Real = float;
21#else
22using Real = double;
23#endif
24
34inline constexpr bool kSinglePrecision = std::is_same_v<Real, float>;
35
45using Index = std::size_t;
46
47} // namespace orrery::core
constexpr bool kSinglePrecision
True when Real is float.
Definition types.hpp:34
std::size_t Index
The type of a particle index and of any count of particles.
Definition types.hpp:45