Text this: Generalized equivalence of matrices over Prüfer domains