MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_total_elements() [2/2]

uint64_t MayaFlux::Kakshya::ContainerDataStructure::get_total_elements ( const std::vector< DataDimension > &  dimensions)
static

Get total elements across all dimensions.

Parameters
dimensionsVector of dimension descriptors
Returns
Total number of elements

Definition at line 134 of file NDimensionalContainer.cpp.

135{
136 uint64_t total = 1;
137 for (const auto& dim : dimensions) {
138 total *= dim.size;
139 }
140 return total;
141}

References dimensions.

Referenced by MayaFlux::Kakshya::SoundStreamContainer::get_total_elements(), and MayaFlux::Kakshya::ContiguousAccessProcessor::store_metadata().

+ Here is the caller graph for this function: