Returns the Gram matrix \(V^\top V\) of pairwise inner products of the
columns of V. Used as the discriminant for the tridiagonal-
structure test of is_tridiagonal.
Value
A symmetric numeric matrix of dimension ncol(V) %*%
ncol(V) with entry \((i, j)\) equal to \(v_i \cdot v_j\).
Details
The Gram matrix is positive semidefinite for any V and positive
definite when the columns are linearly independent. Tridiagonality of
\(V^\top V\) is the structural condition that activates the
simplified series of tridiagonal_series (Fitisone &
Zhou 2023, Theorem 4.1).
References
Strang, G. (2016). Introduction to Linear Algebra, 5th edition. Wellesley-Cambridge Press. ISBN 978-0980232776.
See also
is_tridiagonal for the tridiagonality test on the result;
compute_associated_matrix for the closely related
Ribando matrix \(M_n(C)\); tridiagonal_series for the
tridiagonal-aware backend.