boundlab.polysp.Poly#
- class boundlab.polysp.Poly[source]#
Bases:
OpHandlerApply a concrete polynomial (given as a coefficient list) to a
PolySpviaPolySp.sparse_applypoly().Methods
Whether this handler applies to these operands (default: always).
Transform the operands; sub-operations go through
interp.<op>so the enclosing domain's handlers apply to them too.A copy of this handler that takes precedence over
otherwhen both are ready for the same call.- 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
otherwhen both are ready for the same call.