Input validation.
188 {
189 try {
190 if constexpr (RequiresContainer<input_type>) {
191 if (!input.has_container())
192 return false;
193 }
195 if (numeric_data.empty())
196 return false;
197 for (const auto& span : numeric_data) {
199 }
200 return true;
201 } catch (const std::exception& e) {
203 return false;
204 }
205 }
#define MF_ERROR(comp, ctx,...)
static std::span< double > extract_numeric_data(const T &compute_data)
extract numeric data from single-variant types
@ ComputeMatrix
Compute operations (Yantra - algorithms, matrices, DSP)
@ Yantra
DSP algorithms, computational units, matrix operations, Grammar.
bool validate_window_parameters(uint32_t window_size, uint32_t hop_size, size_t data_size) noexcept
Validate window/hop parameters for windowed processing.