MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / ProductOfArray

Method ProductOfArray

lib/mdflib/mdflib/src/ca4block.cpp:563–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563uint64_t Ca4Block::ProductOfArray() const {
564 uint64_t product = 1;
565 std::for_each(dim_size_list_.cbegin(), dim_size_list_.cend(),
566 [&] (auto dimension) -> void {
567 product *= dimension > 0 ? dimension : 1;
568 });
569 return product;
570}
571
572size_t Ca4Block::Dimensions() const {
573 return dimensions_;

Callers 1

TEST_FFunction · 0.80

Calls 2

cbeginMethod · 0.80
cendMethod · 0.80

Tested by 1

TEST_FFunction · 0.64