I am writing a program which computes the LU decomposition of a matrix, with partial pivoting, and I would like the function to output several (2 or 3) matrices without running the program several times, which is a waste of time since it gets me everything I want in one run. Is there a way of doing this?