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

◆ convert_data()

template<typename From , typename To >
std::span< To > MayaFlux::Kakshya::convert_data ( std::span< From >  source,
std::vector< To > &  storage,
ComplexConversionStrategy  strategy = ComplexConversionStrategy::MAGNITUDE 
)

Convert a span of one data type to another (with type conversion).

Template Parameters
FromSource type.
ToDestination type.
Parameters
sourceSource data span.
destDestination data span.
Returns
Span of converted data.

Definition at line 347 of file DataUtils.hpp.

350{
351 return DataConverter<From, To>::convert(source, storage, strategy);
352}
Eigen::MatrixXd storage

References MayaFlux::Kakshya::DataConverter< From, To, Enable >::convert(), and storage.

Referenced by convert_complex(), convert_variant(), and extract_from_variant().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: