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

◆ safe_copy_data_variant_to_span()

std::span< const double > MayaFlux::Kakshya::safe_copy_data_variant_to_span ( const DataVariant input,
std::vector< double > &  output 
)
inline

Safely copy data from a DataVariant to a span of doubles.

Parameters
inputSource DataVariant.
outputDestination span of doubles.
Exceptions
std::runtime_errorif complex types are involved.

Definition at line 538 of file DataUtils.hpp.

539{
540 return extract_from_variant(input, output);
541}
std::span< T > extract_from_variant(const DataVariant &variant, std::vector< T > &storage, Utils::ComplexConversionStrategy strategy=Utils::ComplexConversionStrategy::MAGNITUDE)
Get typed span from DataVariant using concepts.

References extract_from_variant().

+ Here is the call graph for this function: