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

◆ to_double_vector()

MAYAFLUX_API std::vector< double > MayaFlux::to_double_vector ( const Kakshya::DataVariant data)

Convert DataVariant to vector<double> if possible.

Parameters
dataInput DataVariant
Returns
Extracted double vector, empty if conversion fails

Definition at line 1137 of file Yantra.cpp.

1138{
1139 auto span = Yantra::OperationHelper::extract_numeric_data(data);
1140 return span.empty() ? std::vector<double> {} : std::vector<double>(span.begin(), span.end());
1141}

References MayaFlux::Yantra::OperationHelper::extract_numeric_data().

+ Here is the call graph for this function: