Creates output with proper type conversion.
- Parameters
-
| data | Input data to convert |
- Returns
- Output with converted data type
Handles type conversion between InputType and OutputType when necessary, or direct assignment when types match. Ensures spectral processing results are properly converted back to the expected output type.
Definition at line 300 of file SpectralTransformer.hpp.
301 {
302 if constexpr (std::is_same_v<InputType, OutputType>) {
303 return input;
304 } else {
307 }
308 }
output_type convert_result(std::vector< std::vector< double > > &result_data, DataStructureInfo &metadata)
Convert processed double data back to OutputType using metadata and optional callback.
static std::tuple< std::vector< std::span< double > >, DataStructureInfo > extract_structured_double(T &compute_data)
Extract structured double data from IO container or direct ComputeData with automatic container handl...