)
        ...    while not it.finished:
        ...        it[0] = lamdaexpr(*it[1:])
        ...        it.iternext()
        ...    return it.operands[0]
    
        >>> a = np.arange(5)
        >>> b = np.ones(5)
        >>> luf(lambda i,j:i*i + j/2, a, b)
        array([  0.5,   1.5,   4.5,   9.5,  16.5])
    
        If operand flags ``"writeonly"`` or ``"readwrite"`` are used the
        operands may be views into the original data with the
        `WRITEBACKIFCOPY` flag. In this case `nditer` must be used as a
        context manager or the `nditer.close` method must be called before
        using the result. The temporary data will be written back to the
        original data when the `__exit__` function is called but not before:
    
        >>> a = np.arange(6, dtype='i4')[::-2]
        >>> with np.nditer(a, [],
        ...        [['writeonly', 'updateifcopy']],
        ...        casting='unsafe',
        ...        op_dtypes=[np.dtype('f4')]) as i:
        ...    x = i.operands[0]
        ...    x[:] = [-1, -2, -3]
        ...    # a still unchanged here
        >>> a, x
        (array([-1, -2, -3], dtype=int32), array([-1., -2., -3.], dtype=float32))
    
        It is important to note that once the iterator is exited, dangling
        references (like `x` in the example) may or may not share data with
        the original data `a`. If writeback semantics were active, i.e. if
        `x.base.flags.writebackifcopy` is `True`, then exiting the iterator
        will sever the connection between `x` and `a`, writing to `x` will
        no longer write to `a`. If writeback semantics are not active, then
        `x.data` will still point at some part of `a.data`, and writing to
        one will affect the other.
    
        Context management and the `close` method appeared in version 1.15.0.
    """
    def close(self): # real signature unknown; restored from __doc__
        """
        close()
        
            Resolve all writeback semantics in writeablfrom typing import Any

from numpy import ndarray, dtype, int_
from numpy.polynomial._polybase import ABCPolyBase
from numpy.polynomial.polyutils import trimcoef

__all__: list[str]

hermetrim = trimcoef

def poly2herme(pol): ...
def herme2poly(c): ...

hermedomain: ndarray[Any, dtype[int_]]
hermezero: ndarray[Any, dtype[int_]]
hermeone: ndarray[Any, dtype[int_]]
hermex: ndarray[Any, dtype[int_]]

def hermeline(off, scl): ...
def hermefromroots(roots): ...
def hermeadd(c1, c2): ...
def hermesub(c1, c2): ...
def hermemulx(c): ...
def hermemul(c1, c2): ...
def hermediv(c1, c2): ...
def hermepow(c, pow, maxpower=...): ...
def hermeder(c, m=..., scl=..., axis=...): ...
def hermeint(c, m=..., k = ..., lbnd=..., scl=..., axis=...): ...
def hermeval(x, c, tensor=...): ...
def hermeval2d(x, y, c): ...
def hermegrid2d(x, y, c): ...
def hermeval3d(x, y, z, c): ...
def hermegrid3d(x, y, z, c): ...
def hermevander(x, deg): ...
def hermevander2d(x, y, deg): ...
def hermevander3d(x, y, z, deg): ...
def hermefit(x, y, deg, rcond=..., full=..., w=...): ...
def hermecompanion(c): ...
def hermeroots(c): ...
def hermegauss(deg): ...
def hermeweight(x): ...

class HermiteE(ABCPolyBase):
    domain: Any
    window: Any
    basis_name: Any
