Table of Contents

Delegate PolyLastAboveKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

trimcoef's scan (NumPy 2.4.2 polyutils.trimcoef): 1 + ind[-1] for [ind] = np.nonzero(np.abs(c) > tol), or 0 when no element exceeds tol.

public delegate long PolyLastAboveKernel(byte* p, long n, long byteStride, byte* tol)

Parameters

p byte*

Source element 0 (the caller's array, in its own dtype).

n long

Element count.

byteStride long

Signed byte stride.

tol byte*

One value of the comparison dtype (already converted by NumPy's rules).

Returns

long

The kept length, or 0 when nothing exceeds the tolerance.