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

◆ validate_sort_keys()

void MayaFlux::Yantra::validate_sort_keys ( const std::vector< SortKey > & keys)
inline

Checks that every sort key has a positive, finite weight.

Exceptions
std::invalid_argumentwhen a weight is not a positive finite number.

Definition at line 155 of file SortingHelper.hpp.

156{
157 for (const auto& key : keys) {
158 if (!(key.weight > 0.0) || !std::isfinite(key.weight)) {
159 error<std::invalid_argument>(Journal::Component::Yantra, Journal::Context::ComputeMatrix, std::source_location::current(), "Sort key weight must be a positive finite number");
160 }
161 }
162}
@ ComputeMatrix
Compute operations (Yantra - algorithms, matrices, DSP).
@ Yantra
DSP algorithms, computational units, matrix operations, Grammar.

References MayaFlux::Journal::ComputeMatrix, and MayaFlux::Journal::Yantra.