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

◆ DeriveOperator() [2/3]

MayaFlux::Nodes::Network::DeriveOperator::DeriveOperator ( size_t  target,
std::vector< size_t >  inputs,
CoefFunction  function,
std::vector< double >  coefficients 
)
Parameters
targetIndex of the slot written
inputsIndices of the slots read
functionReceives the input values of one frame and the coefficients
coefficientsStarting coefficients, owned by this operator

Definition at line 86 of file RelationOperators.cpp.

87 : m_target(target)
88 , m_inputs(std::move(inputs))
89 , m_values(m_inputs.size(), 0.0)
90 , m_coefficients(std::move(coefficients))
91 , m_kernel(function ? Kernel([function = std::move(function)](const std::vector<double>& values, std::span<double> coefs) {
92 return function(values, coefs);
93 })
94 : Kernel {})
95{
96}
std::vector< std::byte > values
Definition VDBWriter.cpp:26
std::function< double(const std::vector< double > &, std::span< double >)> Kernel

References values.