Gram matrix

Given a set $$V$$ of $$m$$ vectors (points in $$\mathcal R^n$$), the Gram matrix $$G$$ is the matrix of all possible inner products of $$V$$, i.e., $g_{ij} = \mathbf v_i^T \mathbf v_j$