public static INDArray pLeftInvert ( INDArray arr , boolean inPlace ) { try { final INDArray inv = invert ( arr . transpose ( ) . mmul ( arr ) , inPlace ) . mmul ( arr . transpose ( ) ) ; if ( inPlace ) arr . assign ( inv ) ; return inv ; } catch ( SingularMatrixException e ) { throw new IllegalArgumentException ( "Full column rank condition for left pseudo inverse was not met." ) ; } }
Compute the left pseudo inverse . Input matrix must have full column rank .