MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / product

Function product

src/utils/inc/brainflow_array.h:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19template <size_t N>
20static inline int product (const std::array<int, N> &array)
21{
22 int result = 1;
23
24 for (int i = 0; i < N; i++)
25 {
26 result *= array[i];
27 }
28
29 return result;
30}
31
32template <size_t N>
33static inline std::array<int, N> zero_array ()

Callers 1

BrainFlowArrayMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected