gram
std.linalg.gram · Level L0Gram matrix of the columns of X.
G = Xᵀ·X
Signature
gram(X: f64[m, n]) → f64[n, n]
Structure
The function as NOVA stores it: one box per input, operation and output, and arrows that carry values. A double border marks a call to another library function; select it to open that function.
- input
- operation
- constant
- call
- output
Verification
- Signature proven by NOVA’s shape solver, for every size.
- Equal to the reference
X.T @ Xin exact rational arithmetic, on all 40 test cases. - All 591 float64 results inside the running error bound; the closest uses 80% of it.
- Interpreter and NumPy backend return bit-identical results.
Accuracy in detail
- correctly rounded (the float64 nearest the exact value)
- 85%
- bit-equal to the NumPy formula in float64
- 100%
- largest error, in units in the last place
- 9.95
Identity
Calls
—
Called by
—
sha256:19bdf6b4d6b47714fa718f49302c01fde11360afe7f30c97e86c8e2896208ed1The semantic hash of the graph. It changes when the program changes, and never when only its documentation does.