Let with and let . The pseudo inverse of is where:
If is invertible then . If is with and , then (right inverse) If is with and , then (left inverse)