Table of Contents

Delegate PolyCombineKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

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

a byte*

Target series element 0 (NumPy's in-place operand: the longer one, or c2 on a tie).

aStride long

Byte stride of a.

na long

Length of a (the result length before trimming).

b byte*

Other series element 0.

bStride long

Byte stride of b.

nb long

Length of b (nb <= na).

r byte*

Destination, na contiguous elements of the result dtype.

Returns

long

trimseq of the result, encoded as PolyTrimLenKernel returns it: na for the array itself, -k for the slice r[:k].