Create a Householder reflection matrix from a vector.
H = I - 2 * (u u^T) / (u^T u)
- Parameters:
u (ndarray) – Vector orthogonal to the reflection hyperplane, shape (N,).
- Return type:
ndarray
- Returns:
Householder matrix of shape (N, N). Orthogonal and symmetric.