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

◆ collect()

template<ComputeData InputType = Eigen::MatrixXd, ComputeData OutputType = std::vector<std::vector<double>>>
std::optional< IntervalExtraction > MayaFlux::Yantra::IntervalExtractor< InputType, OutputType >::collect ( )
inlinenodiscard

The result of the outstanding submission, once it has completed.

Returns
The record, or nothing when none is outstanding or it has not completed yet. Never waits.

Definition at line 438 of file IntervalExtractor.hpp.

439 {
440 if (!m_outstanding || !ready()) {
441 return std::nullopt;
442 }
444 record.config = m_outstanding->config;
445 record.channels.resize(m_outstanding->calls.size());
446 for (size_t channel = 0; channel < m_outstanding->calls.size(); ++channel) {
448 }
449 m_outstanding.reset();
450 return record;
451 }
bool ready() const
True when nothing is outstanding or the outstanding submission has completed.
ChannelIntervals read_channel(size_t channel, const ChannelCall &call) const
std::optional< Outstanding > m_outstanding
Finds where each score sequence is engaged, on the GPU, as a stream.