Delegate PolyLastAboveKernel
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
pbyte*Source element 0 (the caller's array, in its own dtype).
nlongElement count.
byteStridelongSigned byte stride.
tolbyte*One value of the comparison dtype (already converted by NumPy's rules).
Returns
- long
The kept length, or 0 when nothing exceeds the tolerance.