All-ones matrix
= All-ones matrix
{title2=$J$}
{wiki}
The all-ones matrix $J=\mathbf e\mathbf e^T$ has every entry equal to one, where $\mathbf e=(1,\ldots,1)^T$. On $\mathbb R^n$, the matrix $J/n$ is the <orthogonal projection matrix> onto $\operatorname{span}\{\mathbf e\}$.