Delegate PolyCombineKernel
The body of NumPy's polyutils._add / _sub after as_series: writes the
in-place-updated target series r[0..na) (contiguous, the result dtype) from the target
a (the operand NumPy updates in place) and the other operand b, both read through their
own strides and dtypes, then runs trimseq on r.
public delegate long PolyCombineKernel(byte* a, long aStride, long na, byte* b, long bStride, long nb, byte* r)
Parameters
abyte*Target series element 0 (NumPy's in-place operand: the longer one, or c2 on a tie).
aStridelongByte stride of
a.nalongLength of
a(the result length before trimming).bbyte*Other series element 0.
bStridelongByte stride of
b.nblongLength of
b(nb <= na).rbyte*Destination,
nacontiguous elements of the result dtype.
Returns
- long
trimseq of the result, encoded as PolyTrimLenKernel returns it:
nafor the array itself,-kfor the slicer[:k].