MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / sum

Method sum

source/core/StarVector.hpp:426–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424
425template <typename T, size_t N>
426T Vector<T, N>::sum() const {
427 T s = (*this)[0];
428 for (size_t i = 1; i < N; ++i)
429 s += (*this)[i];
430 return s;
431}
432
433template <typename T, size_t N>
434T Vector<T, N>::product() const {

Callers 3

expandMethod · 0.45
setCellIndexMethod · 0.45
adjustLightingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected