let K(x, z) be (x_transpose*z + p_constant)**2.
I want to compute the n*n matrix K, where K_ij = k(X_i, X_j)
X is a n by d matrix, and X_i is the transpose of the ith row of X.
Does anyone know of a quick way to compute this? I'm using python.
Wait a second, is K just XX^T?