Orrery
A GPU-accelerated N-body gravitational simulator
Toggle main menu visibility
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
17
namespace
orrery::core {
18
19
#ifdef ORRERY_SINGLE_PRECISION
20
using
Real = float;
21
#else
22
using
Real = double;
23
#endif
24
34
inline
constexpr
bool
kSinglePrecision
= std::is_same_v<Real, float>;
35
45
using
Index
= std::size_t;
46
47
}
// namespace orrery::core
orrery::core::kSinglePrecision
constexpr bool kSinglePrecision
True when Real is float.
Definition
types.hpp:34
orrery::core::Index
std::size_t Index
The type of a particle index and of any count of particles.
Definition
types.hpp:45
orrery
core
types.hpp
Generated by
1.17.0