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

◆ Logic() [10/10]

MayaFlux::Nodes::Generator::Logic::Logic ( CoefMultiInputFunction  function,
size_t  input_count,
std::vector< double >  coefficients = {} 
)

Constructs a Logic node for parallel inputs with a coefficient array.

Parameters
functionFunction receiving one value per slot and the coefficient array
input_countNumber of input slots
coefficientsInitial contents of the coefficient array

Definition at line 125 of file Logic.cpp.

126 : Logic(MultiInputFunction {}, input_count)
127{
128 m_coefficients = std::move(coefficients);
129 set_multi_input_function(std::move(function), input_count);
130}
Logic(double threshold=0.5)
Constructs a Logic node with threshold quantization.
Definition Logic.cpp:9
std::vector< double > m_coefficients
Coefficient array handed to coefficient-aware functions.
Definition Logic.hpp:718
std::function< bool(const std::vector< double > &)> MultiInputFunction
Function type for parallel input evaluation.
Definition Logic.hpp:190
void set_multi_input_function(MultiInputFunction function, size_t input_count)
Sets a custom parallel input evaluation function.
Definition Logic.cpp:570

References m_coefficients, and set_multi_input_function().

+ Here is the call graph for this function: