Gram matrix

Given vectors in an inner product space , the Gram matrix is with entries .

is symmetric positive semidefinite
is positive definite iff are linearly independent.

Sample gram matrix

For , the sample gram matrix is .

Feature gram matrix

For , the feature gram matrix
The second moment matrix refers to the and covariance matrix.