Computational Thinking, Python, Linear Algebra, Math, Mathematics.
you could scale d up to the infinity to increase the function to maximize. For instance, let’s see some vectors x that could maximize the function: d = np.array([[12], [26]]) d.T.dot(X.T).dot(X).dot(d) array([[4165298.04389264]]) However this d has not a unit norm (since d is a column vector we use