Fix pinv tests for 32-bit configurations
Merge pull request #9090 from zgimbutas/optimize-pinv-fix

Fix pinv tests for 32-bit configurations