MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / planner_numeric_values

Function planner_numeric_values

src/models/ace_step/planner.cpp:1053–1060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051 uint32_t seen_stamp_ = 1;
1052};
1053
1054template <typename Allowed>
1055int32_t masked_argmax_index(const std::vector<float> & values, Allowed && allowed) {
1056 int32_t best = -1;
1057 float best_value = -std::numeric_limits<float>::infinity();
1058 for (size_t i = 0; i < values.size(); ++i) {
1059 const int32_t token = static_cast<int32_t>(i);
1060 if (!allowed(token)) {
1061 continue;
1062 }
1063 if (best < 0 || values[i] > best_value) {

Callers 1

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected