This function assumes X has full column rank, and returns the projection matrix onto the column space of X.
a matrix with full column rank, can be an empty matrix with
The projection matrix onto the column space of X can be written as
When X is an empty matrix, then this function returns the zero matrix.
This function returns the desired square matrix with dimension
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.