boundlab.polysp.legendre.Poly2Mul#

class boundlab.polysp.legendre.Poly2Mul[source]#

Bases: OpHandler

Evaluate a concrete-coefficient polynomial by Horner’s rule, each step one mul and one add through the enclosing domain.

Methods

__init__

condition

Whether this handler applies to these operands (default: always).

handle

Transform the operands; sub-operations go through interp.<op> so the enclosing domain's handlers apply to them too.

override_handler

A copy of this handler that takes precedence over other when both are ready for the same call.

op: str = 'poly'#
condition(coeffs, x, **kwargs)[source]#

Whether this handler applies to these operands (default: always).

handle(interp, coeffs, x, **kwargs)[source]#

Transform the operands; sub-operations go through interp.<op> so the enclosing domain’s handlers apply to them too.

override_handler(other)#

A copy of this handler that takes precedence over other when both are ready for the same call.

overrides: list[type[OpHandler]] = []#