Skip to content

Commit f144985

Browse files
committed
Refactor less used utility and type headers into core path
1 parent e21ccbb commit f144985

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+37
-36
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/openvic-simulation/utility/WeightedSampling.hpp renamed to src/openvic-simulation/core/random/WeightedSampling.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
#include <cstdint>
44
#include <limits>
5+
#include <span>
56

6-
#include "openvic-simulation/types/fixed_point/FixedPoint.hpp"
77
#include "openvic-simulation/core/Typedefs.hpp"
8+
#include "openvic-simulation/types/fixed_point/FixedPoint.hpp"
89

910
namespace OpenVic {
10-
OV_ALWAYS_INLINE static size_t sample_weighted_index(
11+
OV_SPEED_INLINE static size_t sample_weighted_index(
1112
const uint32_t random_value,
1213
const std::span<const fixed_point_t> positive_weights,
1314
const fixed_point_t weights_sum
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)