Compute gram matrix (x^T x) and ordinate (x^T y).
x (np.ndarray) – input matrix of shape (n_samples, n_features).
y (np.ndarray) – output vector of length n_samples.
Gram matrix (X’X) b: ordinate (X’y)
a