proj
std.linalg.proj · Level L0Orthogonal projection of x onto the line spanned by u. Calls dot twice.
(x·u / u·u)·u
Signature
proj(x: f64[n], u: f64[n]) → f64[n]
Structure
The function as NOVA stores it: one box per input, operation and output, and arrows that carry values. A double border marks another library function this one runs — called once, or by Scan once per element; 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
(np.dot(x, u) / np.dot(u, u)) * uin exact rational arithmetic, on all 40 test cases. - All 122 float64 results inside the running error bound; the closest uses 61% of it.
- Interpreter and NumPy backend return bit-identical results.
Accuracy in detail
- correctly rounded (the float64 nearest the exact value)
- 74%
- bit-equal to the NumPy formula in float64
- 99%
- largest error, in units in the last place
- 2.42
Control handle
- Symbol
- Ω:std.linalg.proj · Ω:proj
- Pins
sha256:e1587a6bba8dc9010594174b8ed8137deedd08383a191843e12bc9135cc5e429this graph and the 1 it reaches through calls- Evidence
sha256:ce9186bc860bce145142438d20a6cc6e25605191f36f02372dbe2f1a0824bfadthe hash of its verification record- Needs
- no capability: a pure function
Through NOVA’s control layer, the symbol launches this function only while the program still matches what it pins: a change to this graph, or to any graph it reaches, needs a migration first.