inv (SVD pseudoinverse)
Module: forinv
D9c: verified
Derivatives / callbacks: not applicable
Moore-Penrose inverse with an explicit singular-value cutoff for rank-deficient input. Dedicated D9c driver checks five explicit known pseudoinverses (rank-one tall, full-rank tall/wide, singular diagonal, zero), all four Moore-Penrose identities and the rank-one minimum-norm solution (0.2,0.4). Uses method=gesvd and absolute cutoff 1e-10. Original matrices are preserved because the pinned ForSVD dependency can overwrite input. Other methods, cutoff selection, ill-conditioning and near-threshold ranks are not verified.
Pinned source: src/forinv.f90
Author examples/tests: test/test1.f90
Load checked GAMS driver: gams-forinv-pseudoinverse-reference