Creates a polynomial generator that evaluates a standard polynomial function defined by the provided coefficients. The coefficients are ordered from highest power to lowest (e.g., [2, 3, 1] represents 2x² + 3x + 1).
12{
15}
PolynomialMode m_mode
Current processing mode.
DirectFunction create_polynomial_function(const std::vector< double > &coefficients)
Creates a polynomial function from coefficients.
Memory::HistoryBuffer< double > m_history
Ring buffer for input/output history.
PolynomialContextGpu m_context_gpu
double m_scale_factor
Scaling factor for output.
size_t m_buffer_size
Maximum size of the buffers.
bool m_coef_direct
True while DIRECT output is evaluated from m_coefficients.
DirectFunction m_direct_function
Function for direct mode.
PolynomialContext m_context
std::vector< double > m_coefficients
Polynomial coefficients (if using coefficient-based definition)
std::span< const float > get_gpu_data_buffer() const
Provides access to the GPU data buffer.
@ DIRECT
Evaluates f(x) where x is the current phase/input.