zmodn.Zmodn.__array_function__(func, types, args, kwargs)

Implement NumPy’s __array_function__ protocol for custom array-like behavior.

Parameters:
func : callable

The NumPy function being called.

types : tuple

The types of arguments passed to the function.

args : tuple

The arguments passed to the function.

kwargs : dict

The keyword arguments passed to the function.

Returns:

The result of the NumPy function applied to Zmodn objects, or NotImplemented.