Gram matrix
In linear algebra, the Gram matrix (or Gramian matrix, Gramian) of vectors v1,…,vn in an inner product space is the Hermitian matrix of inner products, whose entries are given by the inner product Gij=⟨vi,vj⟩. If the vectors v1,…,vn are the columns of matrix X then the Gram matrix is X†X in the general case that the vector coordinates are complex numbers, which simplifies to X⊤X for the case that the vector coordinates are real numbers. An important application is to compute linear independence: a set of vectors are linearly independent if and only if the Gram determinant (the determinant of the Gram matrix) is non-zero. It is named after Jørgen Pedersen Gram.
Wikipedia contributors, "Gram matrix", Wikipedia, revision 1359627782, retrieved 20 November 2026, source, CC BY-SA 4.0.