MayaFlux 0.5.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 353 of file DataUtils.hpp.

356{
357 return DataConverter<From, To>::convert(source, storage, strategy);
358}
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: