MayaFlux 0.3.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,
ComplexConversionStrategy  strategy 
)

Legacy interface - redirects to convert_data.

Definition at line 359 of file DataUtils.hpp.

362{
363 std::vector<To> temp_storage;
364 auto result = convert_data(source, temp_storage, strategy);
365 std::copy_n(result.begin(), std::min(result.size(), destination.size()), destination.begin());
366}
std::span< To > 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).

References convert_data().

+ Here is the call graph for this function: