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

◆ set_coefficients()

void MayaFlux::Nodes::Generator::Polynomial::set_coefficients ( const std::vector< double > &  coefficients)

Sets the polynomial coefficients (for direct mode)

Parameters
coefficientsVector of polynomial coefficients (highest power first)

Updates the polynomial function to use the specified coefficients. This allows dynamically changing the polynomial during operation. A node built from a coefficient list evaluates this array directly, so the change applies on the next sample. A node built from a function keeps its function; the array then only reaches coefficient-aware buffer functions. Updates of unchanged size are written in place; changing the size should happen on the scheduler tick, not concurrently with processing.

Definition at line 143 of file Polynomial.cpp.

144{
146}
std::vector< double > m_coefficients
Polynomial coefficients (if using coefficient-based definition)

References m_coefficients.