boundlab.polysp.Poly#

class boundlab.polysp.Poly[source]#

Bases: OpHandler

Apply a concrete polynomial (given as a coefficient list) to a PolySp via PolySp.sparse_applypoly().

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'#
eps: float = 0.001#
order: int = 2#
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.

__init__(op='poly', eps=0.001, order=2)#
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]] = []#