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

Function checked_product

src/framework/audio/dsp.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30int64_t checked_product(std::initializer_list<int64_t> dims) {
31 int64_t result = 1;
32 for (const int64_t dim : dims) {
33 result *= dim;
34 }
35 return result;
36}
37
38int64_t reflect_index(int64_t index, int64_t length) {
39 while (index < 0 || index >= length) {

Callers 7

normalize_batch_implFunction · 0.70
compute_magnitudeMethod · 0.70
compute_complexMethod · 0.70
computeMethod · 0.70
prepare_sparseMethod · 0.70
compute_customMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected