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

◆ convert_complex()

template<typename From , typename To >
requires (ComplexData<From> && ArithmeticData<To>)
void MayaFlux::Kakshya::convert_complex ( std::span< From >  source,
std::span< To >  destination,
Utils::ComplexConversionStrategy  strategy 
)

Legacy interface - redirects to convert_data.

Definition at line 349 of file DataUtils.hpp.

352{
353 std::vector<To> temp_storage;
354 auto result = convert_data(source, temp_storage, strategy);
355 std::copy_n(result.begin(), std::min(result.size(), destination.size()), destination.begin());
356}
std::span< To > convert_data(std::span< From > source, std::vector< To > &storage, Utils::ComplexConversionStrategy strategy=Utils::ComplexConversionStrategy::MAGNITUDE)
Convert a span of one data type to another (with type conversion).

References convert_data().

+ Here is the call graph for this function: