MCPcopy Create free account
hub / github.com/TheAlgorithms/C / vector_proj

Function vector_proj

numerical_methods/qr_decompose.h:76–92  ·  view source on GitHub ↗

* Compute projection of vector \f$\vec{a}\f$ on \f$\vec{b}\f$ defined as * \f[\text{proj}_\vec{b}\vec{a}=\frac{\vec{a}\cdot\vec{b}}{\left|\vec{b}\right|^2}\vec{b}\f] * * \returns NULL if error, otherwise pointer to output */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

qr_decomposeFunction · 0.85

Calls 1

vector_dotFunction · 0.85

Tested by

no test coverage detected