I have a function fun() that accepts a NumPy ArrayLike and a "matrix", and returns a numpy array.
from numpy.typing import ArrayLike
import numpy as np
def fun(A, x: ArrayLike) -> np.ndarray:
return (A @ x) ** 2 - 27.0
What's the correct type for entities that have an @ operation? Note that fun() could also accept a scipy.sparse; perhaps more.