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

◆ validate_multi_channel_data()

template<ComputeData InputType = Kakshya::DataVariant, ComputeData OutputType = InputType>
bool MayaFlux::Yantra::Transformer< InputType, OutputType >::validate_multi_channel_data ( const std::vector< std::span< double > > & channels) const
inlinenodiscardprivate

Definition at line 197 of file Transformer.hpp.

198 {
199 if (channels.empty()) {
200 return false;
201 }
202 for (const auto& channel : channels) {
203 if (channel.empty()) {
204 continue;
205 }
206 for (double sample : channel) {
207 if (std::isnan(sample)) {
208 return false;
209 }
210 if (std::isinf(sample)) {
211 return false;
212 }
213 }
214 }
215 return true;
216 }
Base of every transformer family.

Referenced by validate_input().

Here is the caller graph for this function: