# gram_schmidt¶

probnum.utils.linalg.gram_schmidt(v, orthogonal_basis, inner_product=None, normalize=False)[source]

Orthogonalize a vector with respect to an orthogonal basis and inner product.

Computes a vector $$v'$$ such that $$\langle v', b_i \rangle = 0$$ for all basis vectors $$b_i \in B$$ in the orthogonal basis.

Parameters
Returns

Orthogonalized vector.

Return type

v_orth