Performance penalty when overriding Numpy's __array_function__() method
Performance penalty when overriding Numpy's __array_function__() method Question: I wrote an array-like class ‘Vector’ which behaves like an ‘np.ndarray’ but has a few extra attributes and methods to be used in a geometry engine (which are omitted here). The MVP below overrides ‘__ array_function __()’ to ensure that a Vector object is returned when using …